My project consists of a main "standard" panorama from where i link to several video panoramas. To avoid setting up the video plugin in every video-scene, I integrated it in the main scene and set keep="true". Works so far, but after jumping to the second video-panorama a wrong video is played. Is there a method to clear the videosources or to reset the player?
Problem with videoplayer set to keep "true"
-
-
Ok! Apparently the videoplayer can be "cleared " with:
plugin[video].playvideo();
Afterwards sending a new video to the plugin with:
plugin[video].playvideo(get(vs.videourl), get(vs.posterurl), get(plugin[video].pausedonstart), 0);
plugin[video].play();
works as expected.
Thanks for listening -
This solution seems to work on desktop pc. But on iOS devices it leads to caching problems and again a wrong (cached) video is played.
So I decided to go back and initialize a new video plugin in every scene (and omit keep=true) -
What kind of caching problems do you mean?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!