Video controls in popup videos

  • I have tried to get controls for videos using the new video-player.xml
    They do appear using this addition to the xml.

    However they do not work. The only function you get is a visible view of the length of the video and how far it has played.
    You can not scroll it or use any of the other controls.

    <action name="videoplayer_plugin_ready">
    if(layer[videoplayer_plugin],
    set(events[videoplayer_events].onresize, videoplayer_plugin_resize() );
    set(layer[videoplayer_plugin].pausedonstart,false);
    set(layer[videoplayer_plugin].html5controls,true);

  • Problem is solved.

    Adding the line to the first action solved it. Now all functions are working.
    However you have to remove the line with the togglepause option
    and instead ad it to your videospot onclick. If not it will not work.
    <layer name="videospot1"
    url="images/video.png"
    scale="0.15"
    zoom="false"

    x="0" y="120" align="top"
    pausedonstart="false"

    onclick="looktohotspot(get(name),90);togglepause(); videoplayer_open('video/kunst.mp4', 'video/kunst.jpg', 0.5);"
    />

    <action name="videoplayer_open">
    addlayer(videoplayer_plugin);
    set(layer[videoplayer_plugin].parent, layer[videoplayer_bg]);

    set(layer[videoplayer_plugin].align, center);
    set(layer[videoplayer_plugin].loop, true);
    set(layer[videoplayer_plugin].html5controls,true);

    2 Mal editiert, zuletzt von HansNyb (25. Oktober 2021 um 11:43)

  • Unfotunatelly solving one problem get you another.
    The controlbar works perfect on ipad and iphone but on ipad you now have fullscreen option for the virtual tour.
    Finally after 10 years we have it. And if you are in Fullscreen and use the video controlbar fullscreen option you at locked in fullscreen. Clicking on the video does not give me back the controlbar. You have to get out with the Homebutton.

Jetzt mitmachen!

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