Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
94
rated 0 times [  95] [ 1]  / answers: 1 / hits: 121390  / 13 Years ago, thu, june 16, 2011, 12:00:00

I've found how to pause and play the video using jquery



$(video).get(0).play();
$(video).get(0).pause();


But I can't find the mute button, if there isn't a jquery solution, I'm fine with just an onclick js solution. I need it asap.

Also is there a way to fix the mute delay? I want it to mute/unmute the sound as soon as the button is clicked.


More From » jquery

 Answers
40
$(video).prop('muted', true); //mute


AND



$(video).prop('muted', false); //unmute


See all events here



(side note: use attr if in jQuery < 1.6)


[#91670] Wednesday, June 15, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marisela

Total Points: 103
Total Questions: 105
Total Answers: 102

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
;