I want to pause the background music when the video is played.
below is my code,when pauseonstart is false,i can not use onvideoplay event. How can I deal with it?
Code
<hotspot name="videospot" url="%SWFPATH%/plugins/videoplayer.swf"
alturl="%SWFPATH%/plugins/videoplayer.js" videourl="1.mp4|1.webm"
posterurl="1.jpg"
ath="-0.024664"
atv="-2.167905"
width="200"
height="300"
scale="0.31117"
distorted="true"
rx="0"
ry="0"
rz="-0.137759"
edge="center"
loop="false"
pausedonstart="false"
directionalsound="true"
range="200" volume="0.7"
onclick="togglepause();"
onvideoplay="test(true);"
onvideopaused="test(false);"
onvideocomplete="test(false);"
/>
<action name="test">
if(%1 == true,set(plugin[soundinterface].mute,true);,set(plugin[soundinterface].mute,false););
</action>
Display More