Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unmuted state lost or reverted when playing a new video. #4483

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

infinite-persistence
Copy link
Contributor

Issue

Fixes #4460 unmuted state lost / reverted

  1. Play a video.
  2. Press mute.
  3. Drag the volume bar to unmute.
  4. Play a new video --> the video starts muted.

Fix

The volumechange handler was comparing against stale variables, so there are times where the state was not saved. Just save both muted and volume without additional gating (the gating is probably unnecessary in the first place, since we are in a onChange function).

@infinite-persistence
Copy link
Contributor Author

Adding changelog:

@neb-b
Copy link

neb-b commented Jul 6, 2020

I tried fixing the conflict from github.com but failed. @infinite-persistence Can you rebase this? You can push over my 'merge' commit.

@infinite-persistence
Copy link
Contributor Author

Rebased to equivalent spot.

## Issue
Fixes 4460 `unmuted state lost / reverted`

1. Play a video.
2. Press mute.
3. Drag the volume bar to unmute.
4. Play a new video --> the video starts muted.

## Fix
The `volumechange` handler was comparing against stale variables, so there are times where the state was not saved. Just save both `muted` and `volume` without additional gating (the gating is probably unnecessary in the first place, since we are in a onChange function).
@infinite-persistence
Copy link
Contributor Author

Rebasing again to latest master since there's another conflict in the changelog (might as well):

@neb-b
Copy link

neb-b commented Jul 7, 2020

Thank you.

@neb-b neb-b merged commit 833bcee into master Jul 7, 2020
@neb-b neb-b deleted the #4460-lost_unmute branch July 7, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unmuted state lost / reverted
2 participants