You are not logged in.

1

Thursday, September 1st 2016, 4:11pm

Videoplayer plugins set pausedonstart="false",the onvideoplay cant work

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?



Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<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>

This post has been edited 7 times, last edit by "arielei" (Sep 2nd 2016, 5:07am)


2

Friday, September 2nd 2016, 3:07pm

1.19pr4 adn 1.19pr5 is ok, but iphone(ios 9.3.3) don't have video sound.