Hi Klaus! I have a question about videohotspot playback behavior: I need to look_play() executes only once, how can I achieve this? And I have a little bug with playback: when I'm watching video second time and pausing playback after resume playback resets instead of continuing.
<events onviewchange="if(hotspot[videospot].ispaused, look_play());"/>
<action name="look_play">
if(view.hlookat GE 240,hotspot[videospot].togglepause(););
if(view.hlookat LE -20,hotspot[videospot].togglepause(););
</action>
<hotspot name="videospot" devices="all"
url="plugins/videoplayer.swf"
keep="false"
ath="-66.5209546227529" atv="23.724131255666126"
zoom="false" distorted="true" details="8" flying="0"
width="200" height="120"
scale="1.1576834753657954"
rx="23.75" ry="16.25" rz="1.4408785922601488"
edge="center"
visible="true" enabled="true"
onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
onclick="if(ispaused, play(), pause());"
directionalsound="true"
loop="false"
pausedonstart="true"
posterurl="poster.jpg"
totaltime="6.006"
updateeveryframe="true"
videourl="cats-short.flv"
volume="0.1"
/>