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 sticky mute when switching from video to audio in mobile #419

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

Dananji
Copy link
Collaborator

@Dananji Dananji commented Feb 15, 2024

Related issue: #390

In VideoJSPlayer module the VolumePanel Video.js component is added a CSS class to make it always visible in audio players.
In mobile devices the VolumePanel component is replaced by MuteToggle and VolumePanel is non-existent in a mobile device context.
So the code where the CSS class is set, was throwing an error stopping the execution of the rest of the code in the player.ready() function, where the sticky mute is set.

@Dananji Dananji merged commit 2f31fb4 into main Feb 15, 2024
2 checks passed
@Dananji Dananji deleted the sticky-mute-fix branch February 15, 2024 20:06
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.

2 participants