The component expose several methods you can use to control the player.
If you want to pause or play the video you can use the below method:
jQuery('#bgndVideo_home').playYTP()
jQuery('#bgndVideo_home').pauseYTP()
See the documentation page here:
https://github.com/pupunzi/jquery.mb.YTPlayer/wiki
Bye,
M
Ok, thanks, but can you say me where i need add this code or method.
Editing wpmbytplayer/css/mb.YTPlayer.css?
This is javascript, not CSS…
The two methods above let you control the player from external javascript actions. for exaple applied to a button:
<input type="button" onclick="jQuery('#bgndVideo_home').pauseYTP()">pause the video</button>
or to a specific element binded via javascript:
$("#myElement").on("click",function(){
jQuery('#bgndVideo_home').pauseYTP()
})
Bye,
M
Hi, how can we add stop/play button beside fullscreen button http://www.pozeski.hr
Ty
Use the above code.
Bye,
Matteo
In which file and which row I can add
<input type=”button” onclick=”jQuery(‘#bgndVideo_home’).pauseYTP()”>pause the video</button>
Ty