Hello there,
I have been trying the whole day to make this code work. I read a bunch of the documentation, followed templates and xml-usage but I dont seem to give with the right code to make this work.
What I want to do is very simple:
I have a video plugin that is loading a video using the video.xml
When my video is completed, I want to load another one. Then possibly another one, and when this one is complete, to play the whole sequence again.
on video.xml I wrote:
(I ignored view settings etc to make the code simpler)
Code
<krpano>
<include url="videointerface.xml" />
<plugin name="video"
url="%SWFPATH%/plugins/videoplayer.swf"
alturl="%SWFPATH%/plugins/videoplayer.js"
posterurl="video.jpg"
loop="true"
pausedonstart="false"
volume="1"
buffertime="0.1"
onvideoready="videointerface_setvideo(get(name));"
onvideocomplete="action(loadnextvideo);"
/>
<plugin name="video" videourl="videos/video.mp4" devices="flash" />
<plugin name="video" videourl="videos/video.webm" devices="firefox|chrome|opera" />
<plugin name="video" videourl="videos/video.mp4" devices="ios|android|blackberry|ie" />
<action name="loadnextvideo">
playvideo("videos/video_street.mp4|videos/video_street.webm"); </action>
</krpano>
Display More
What am I doing wrong and this code is not functioning?
Any feedback will be much appreciated.
Thanks in advance.