360°video and flat video

  • Hi everybody
    i would like to alternate several 360°video and flat video in a video player
    When my first video is completed (360°video or flat video), I would like to load another one (360°video or flat video). When this one is complete, load an onher one (360° or flat)
    my code just load a new video, but how coding to launch more 2/3/4.... ( 360°video or flat video)?
    i think there is to do something with (onvideocomplete="action(loadnextvideo);") that work but just for one video.
    thanks
    here the code:

    <krpano version="1.18" bgcolor="0x000000">

    <krpano>
    <include url="video.xml" />
    <plugin name="video"
    url="videoplayer.swf"
    alturl="videoplayer.js"
    posterurl="video.jpg"
    loop="false"
    pausedonstart="false"
    volume="1"
    buffertime="0.1"
    onvideoready="video_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>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!