advice please on most efficient way to code for playing many videos

  • Hi all

    I am working on a project where I have a virtual tour of a factory with many pano's. For some panos there will be a corresponding video (normal video, not 360).

    For example there may be a 360 pano of robot welder and a video of the robot in operation.

    Within each pano I can easily create a plugin:

    <plugin name="robot-welder"
    url="../plugins/videoplayer.swf"
    alturl="../plugins/videoplayer.js"
    videourl="../video/robot.m4v"
    posterurl="../hotspots/robot.jpg"
    align="centre" x="0" y="0"
    scale="2.5"
    volume="1.0"
    loop="true"
    pausedonstart="true"
    directionalsound="true"
    range="100"
    rangefalloff="5.0"
    outofrangevolume="0.1"
    onclick="togglepause();"
    visible="false"
    />

    And then have a video play button:

    <plugin name="video-play"
    parent="group2"
    align="topright" x="0" y="500"
    url="../hotspots/play-video.png"
    alpha="1.0"
    keep="false"
    onclick="set(plugin[robot-welder].visible,1)"
    />

    Clicking the video-play icon will then show the video and clicking on the video (html5) will start it playing.

    This is a bit clunky to put this code in every pano, so ideally I'd like to have a plugin defined at the start of the xml and then call it from within the pano and tell it which video to run also I'd like an option to make the video disappear, i.e. an 'x' in the corner of the video.

    Any help or advice would be much appreciated.

    Thanks in advance and happy new year to everyone.

    Tim

    ps - forgot to make clear, there is only one video per pano

    Einmal editiert, zuletzt von trek (28. Dezember 2015 um 00:02)

Jetzt mitmachen!

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