-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mute toggle stops working #3036
Comments
That's really weird. The mute toggle should not ever be setting the volume to 0. What version of videojs are you using? Also, would you happen to have a reduced test case? |
I'm using the latest tagged version. I don't have much of a reduced test 2016-01-26 17:45 GMT+01:00 Gary Katsevman notifications@github.com:
|
I just ran the following test locally in the sandbox and it worked just fine. var i = 1000;
function loop() {
player.controlBar.volumeMenuButton.el_.click();
if (i--) {
setTimeout(loop, 1);
console.log(i);
}}
loop(); Unfortunately, unless you'll be able to get exact steps to reproduce or a working testcase there's nothing we can do. |
Same for me. videojs version 4.12.15 var player = videojs('video-player');
player.volume(0.5);
player.muted(true);
player.muted(false);
alert(player.volume()); And result will be |
Just tried it with 5.6.0 and did not see this issue: player.volume()
// 1
player.volume(0.5)
player.volume()
// 0.5
player.muted()
// false
player.muted(true)
player.volume()
// 0.5
player.muted(false)
player.volume()
// 0.5 |
and flash version to? |
So, I think we've finally been able to track down the issue, thanks to @imbcmdth. If when you're clicking on the mute toggle, you move the mouse slightly, it'll end up changing the slider. This is because the slider is a child of the mute button in the normal control and we want users to be able to use more than just the 4 pixels of the volume slider itself for sliding the volume up and down. We just have to be stricter about not allowing the volume to change when the mouse is being moved on top of the mute toggle itself. May be a bit tricky but should definitely be doable. |
… toggle stop working. fixes videojs#3036
@Lumbendil @FDiskas this should be fixed in the 5.8.8 release. Please try it out. |
Confirmed |
Awesome, thanks @FDiskas! |
* upstream/stable: (77 commits) v5.9.2 @gkatsev grouped text track errors in the console, if we can. closes videojs#3259 v5.9.1 @gkatsev fixed text track tests for older IEs. closes videojs#3269 revert 75116d4 adding chrome to travis (videojs#3254) @forbesjo added back the background color to the poster. closes videojs#3267 @gkatsev fixed removeRemoteTextTracks not working with return value from addRemoteTextTracks. closes videojs#3253 @gkatsev made the first emulated text track enabled by default. closes videojs#3248 @mister-ben blacklisted Chrome for Android for playback rate support. closes videojs#3246 @benjipott updated IS_CHROME to not be true on MS Edge. closes videojs#3232 v5.9.0 @andyearnshaw updated document event handlers to use el.ownerDocument. closes videojs#3230 @chrisauclair added ARIA region and label to player element. closes videojs#3227 @MCGallaspy added vttjs to the self-hosting guide. closes videojs#3229 @forbesjo added chrome for PR tests. closes videojs#3235 @OwenEdwards improved handling of deprecated use of Button component. closes videojs#3236 v5.8.8 @seescode fixed dragging on mute toggle changing the volume. Fixes videojs#3036. Closes videojs#3228 @seescode fixed css failing on IE8 due to incorrect ie8 hack. Fixes videojs#3140. Closes videojs#3226. @vtytar fixed auto-setup failing if taking too long to load. Fixes videojs#2386. Closes videojs#3233. ...
I still can reproduce it on videojs v.5.20.4 @gkatsev according to you its fixed in 5.8.8 ! here: https://googleads.github.io/videojs-ima/examples/simple/ |
Can you elaborate on where you're clicking and what you mean by "does not work"? |
Im using videojs-ima (google plugin to play vast/vpaid) and unfortunately they still support videojs 5.20.x so cant blame videojs really but if its fixed in 5.8.x I dont expect the issue in 5.20.x or may be its different that above mentioned issue. I can reproduce that easily (im using chrome btw) its not about dragging mute button, instead if you drag or click on Hope I explained it correctly now :) |
that is a different bug then. also, is this during the ad? if so, in the example you've given the ad has its own controls so it's probably a bug with the ad or videojs-ima. |
yes its during the ad so most probably I shud report it to videojs-ima. |
you're welcome. |
If I press the mute toggle multiple times, it arrives to a point to which it stopps working.
Tested on Ubuntu with both Chrome and Firefox.
Additional info: It seems it gets stuck into such a position because volume gets set to 0, thus making the toggle unoperative. I've found this because when muted without the bug, calling
player.volume()
returns the volume if it was unmuted, while if it gets bugged,player.volume()
reports a 0, thus the toggle does nothing.The text was updated successfully, but these errors were encountered: