phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.3k stars 1.43k forks source link

How can i repaint? #415

Closed 18845778092 closed 11 months ago

18845778092 commented 11 months ago

When I switched the ws URL on the same canvas element and wanted to switch the playback URL, I destroyed the previous player instance and recreated it. But the new player instance cannot play the video. The canvas element still exists on the page.