how can i detect jplayer is on full screen mode?
The jplayer adds a class of jp-video-full
to the div when full screen.
You can use that selector for whatever you're trying to achieve.
if ($("#jp_container_1").hasClass("jp-video-full")) {
//do something
} else {
//do something else
}
ok, this is how i had to go:
$("a.jp-full-screen").click(function(){
if($(this).attr("title")=="full screen"){
$(".hover, ul#navigation").hide()
}
})
$("a.jp-restore-screen").click(function(){
if($(this).attr("title")=="restore screen"){
$(".hover, ul#navigation").show()
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With