I wanted to organize the onclick event to start the video with actions, but the "playvideo" doesn't start the video. Why?
Code
<hotspot name="video"
url="video/videoplayer.swf"
visible="true"
enabled="true"
distorted="true"
ath="-90.0" atv="0.0"
width="290.91"
height="163.64"
edge="lefttop"
ox="-145.45"
oy="-81.82"
alturl="video/videoplayer.js"
videourl="video/introroh.m4v"
altvideourl="video/introroh.m4v"
posterurl="video/door.jpg"
zorder="99"
alpha="1"
pausedonstart="true"
loop="false"
volume="0.1"
buffertime="0.1"
updateeveryframe="false"
onvideoready=""
onvideocomplete=""
onunsupported=""
onclick="black();"
/>
<action name="black">
set(plugin[schwarz].visible,true);
tween(plugin[schwarz].alpha,1.0,1,default,startvideo());
</action>
<action name="startvideo">
tween(hotspot[video].flying, 1.0, 0.5, default);
tween(hotspot[video].width, 640);
tween(hotspot[video].height, 360);
tween(hotspot[video].ox, -320);
tween(hotspot[video].oy, -180);
playvideo(video/introroh.m4v);
</action>
<plugin name="schwarz"
url="video/schwarz.png"
visible="false"
enabled="false"
width="100%"
height="100%"
align="center" x="0" y="0"
alpha="0"
zorder="0"
/>
Alles anzeigen
Next problem is the size.
Because I need to use the posterurl to fit it into the pano for the iPad I have to scale the hotspot which works perfect.
But when I run the video I want to move it to the center of the screen and scale to it's original size (640 x 360) but it doesnt do that.
In fact the size is 530 x 306. Why? The image for the posterurl has the same size as the video.
I also discovered that any "wait" argument in an action or within the onclick event would prevent the video from starting on the iPad.
Thank you
Jürgen