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);
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »HansNyb« (25. Oktober 2021, 11:43)