bvibber / yuv-canvas

JS class to draw YUV image frame buffers to an HTML5 canvas
MIT License
273 stars 60 forks source link

renew WebGL texture if frame resolution has changed #34

Closed lishunbo closed 3 years ago

lishunbo commented 3 years ago

video resolution changes dynamically in WebRTC scenarios

bvibber commented 3 years ago

Looks about right, I'll test in a bit & merge with the next set of updates. :)

lishunbo commented 3 years ago

Sorry I forgot to commit file 'docs/demo-bundled.js' yesterday, and it had been added just now

bvibber commented 3 years ago

Thanks for the patch!

I'll be doing some more cleanup soon (modernizing some old code & build steps etc) so give a shout if anything in particular is broken / weird while I'm in here. ;)