516 / 5000
http://undefinedhttp://undefinedÜbersetzungsergebnisse
Hello everyone, I'm still pretty new to coding and have another question. I have a hotspot for which I wrote an action for a video player. so all in all the whole thing works. But now I would like to add a close button if you don't want to see the video all the way to the end that closes the video. Unfortunately I am failing at the moment. I've only been programming with XML for two weeks and hope you can help me a bit further. here is the code as I wrote it:
<!-- emvideo hotspot -->
<hotspot name="video1hs"
url="grafik/video.png"
alpha="0.9"
scale="0.25"
onhover="set(alpha,1); tween(scale,0.35,0.5); showtext([p]emVideo[p])"
onout="set(alpha,0.9); tween(scale,0.25,0.5);"
ath="+114.000" atv="9.5"
onclick="video1()"
/>
<!-- video1 action -->
<action name="video1">
addplugin(v1);
set(plugin[v1].url,plugins/videoplayer.js);
set(plugin[v1].videourl,video/bestof.mp4);
set(plugin[v1].posterurl,skin/icons/postervideo1.png);
set(plugin[v1].align,center);
set(plugin[v1].width, 854);
set(plugin[v1].height, 480);
set(plugin[v1].loop, false);
set(plugin[v1].onvideoready, play());
set(plugin[v1].onvideocomplete, removeplugin(v1)());
set(plugin[v1].enabled, true);
set(plugin[v1].visible, true);
set(plugin[v1].html5controls, true)
</action>