yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
485 stars 160 forks source link

Dynamically changing video source #41

Open mikewgd opened 7 years ago

mikewgd commented 7 years ago

I have one video player on the page and I have various links that swap out the video source. How do I accomplish this? I currently have this:

... player.src('url'); player.load();

I know the source is updating but the CANVAS will not update. Unless I click on it again. Any ideas on how I can have dynamic videos work with this plugin? Thanks!

yanwsh commented 7 years ago

Hey, when you swap the video, did you play the video automatically? the canvas only refresh when video is playing. If video is not playing, it won't update to perform better performance.

mikewgd commented 7 years ago

@yanwsh I am playing it automatically. However even if I dont. I still see the last video until I click play. Since I am pausing the video before swapping out the source. I still see the paused video.

yanwsh commented 7 years ago

I will test it, do you use any other videojs plugins?

mikewgd commented 7 years ago

No. Only yours.