I have a html5 video which is background of my website, and on that video i am placing some text like Welcome to blah blah blah.....
Initially the video will not be played, but when user clicks on play button the video will start playing, here I want to fadeOut the text which am showing on that video.
When user clicks on pause the text should be displayed, when clicks on play it should be fadeout. This is story :-)
I found below things
$("#player").get(0).paused
$("#player").get(0).play()
$("#player").get(0).pause()
But didn't found
$("#player").get(0).played
How to detect if my video is playing or paused? I need something like below
if(video == "playing"){
$("#introText").fadeOut();
else {$("#introText").fadeIn();}
}
Thanks in adv...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…