Hi, I would like to display "Loading" until the video is ready to play on ipad, cose sometimes it's a bit long to start.
I launch video by clicking a hotspot
Code
<hotspot name="hs1" devices="all"
url="%SWFPATH%/skin/icons/film.png"
ath="82.84167084088503" atv="32.5333410038324"
onclick="video1()"
onhover="showtext(Les places,buttonstyle);"/>
<action name="video1">
addplugin(v1);
set(plugin[v1].url,%SWFPATH%/plugins/videoplayer.swf);
set(plugin[v1].alturl,%SWFPATH%/plugins/videoplayer.js);
set(plugin[v1].videourl,%SWFPATH%/videos/01_Lesplaces.mp4);
set(plugin[v1].posterurl,%SWFPATH%/skin/icons/videoposter.jpg);
set(plugin[v1].align,center);
set(plugin[v1].updateeveryframe,true);
set(plugin[v1].width, 480);
set(plugin[v1].height, 264);
set(plugin[v1].loop, false);
set(plugin[v1].onclick,show_loading();play());
set(plugin[v1]. onvideoready,hide_loading());
set(plugin[v1]. onvideocomplete, closevideo());
set(plugin[fermer_video_v1].enabled, true);
set(plugin[fermer_video_v1].visible, true);
</action>
Display More
and dislay a message when you click on the videoplayer
Code
<plugin name="chargement" devices="html5"
url="%SWFPATH%/plugins/textfield.swf"
backgroundcolor="0xffffff"
align="top"
alpha="0"
html="[p]Chargement[/p]"
css="data:cssdata"
shadow="2"
roundedge="10"
autosize="top"
enabled="false"
y="50"
/>
<action name="show_loading">
tween(plugin[chargement].enabled,true);
tween(plugin[chargement].alpha,0.7,0.5);
</action>
<action name="hide_loading">
tween(plugin[chargement].alpha,0,0.5);
tween(plugin[chargement].enabled,false);
</action>
Display More
the message is displayed but doesn't disapear when video is launched...
is
wrong ? or am I missing something ?
Thanx !