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: Videos start muted on initial session #4864

Merged
merged 1 commit into from
Oct 7, 2020
Merged

Fix: Videos start muted on initial session #4864

merged 1 commit into from
Oct 7, 2020

Conversation

infinite-persistence
Copy link
Contributor

Issue

Closes #4831: Videos start muted on Desktop (fresh install) and web (sometimes resets)

This covers the Desktop fresh install and Web fresh session (incognito) part.
It doesn't cover the "sometimes reset" part -- not sure how to reproduce that.

Change

sessionStorage is always empty when that piece of code is called, even for non-fresh Desktop and even in Brave.
localStorage doesn't have a volume entry either.

We now fallback to 1 when volume is null. Still not sure the purpose of that code, but leaving it there just in case something relies on it.

Tests

[/] Desktop fresh-install is not muted.
[/] Desktop return session restores previous volume level.
[/] Web* fresh session (cleared data) is not muted.
[/] Web return session restores previous volume level.

*Web = Chrome, Firefox and Brave.

## Issue
4831: Videos start muted on Desktop (fresh install) and web (sometimes resets)

This covers the Desktop fresh install and Web fresh session (incognito) part. It doesn't cover the "sometimes reset" part as I don't know how to reproduce that.

## Change
`sessionStorage` is always empty when that piece of code is called, even for non-fresh Desktop and even in Brave. We now fallback to `1` when `volume` is `null`. Still not sure the purpose of that code, but leaving it there just in case something relies on it.

## Tests
[/] Desktop fresh-install is not muted.
[/] Desktop return session restores previous volume level.
[/] Web* fresh session (cleared data) is not muted.
[/] Web return session restores previous volume level.

*Web = Chrome, Firefox and Brave.
@neb-b neb-b merged commit 4a2e9bf into master Oct 7, 2020
@neb-b neb-b deleted the ip-muted-4831 branch October 7, 2020 20:24
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.

Videos start muted on Desktop (fresh install) and web (sometimes resets)
2 participants