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 problem with video isMuted #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sasha-Zayets
Copy link

Fix this issue #41

}
videoRef.current.play().catch(() => {

videoRef.current.play().then(() => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it not cause a play pause glitch ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these changes fix a problem with this issue on the top

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original code happens next error

DOMException: The play() request was interrupted because video-only background media was paused to save power

@hannadrehman
Copy link
Owner

@Sasha-Zayets can u please rebase this branch

@hannadrehman
Copy link
Owner

Fix this issue #41

the issue created seems to be different than this change.

@Sasha-Zayets
Copy link
Author

Fix this issue #41

the issue created seems to be different than this change.

These changes will fix a problem when changing the story needs the correct mute or not video

@hannadrehman
Copy link
Owner

@Sasha-Zayets please rebase this branch with master. i will merge it

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