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

first try to auto play without muting the audio #6030

Closed
USAMAWIZARD opened this issue Jan 12, 2024 · 0 comments · Fixed by ant-media/Web-Player#5
Closed

first try to auto play without muting the audio #6030

USAMAWIZARD opened this issue Jan 12, 2024 · 0 comments · Fixed by ant-media/Web-Player#5
Assignees

Comments

@USAMAWIZARD
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Here are autoplay policy for auto-playback with sound.Please read the below chrome policy may be we can first try to play the video with audio and if it fails we can try muting a video on the playback. This will increase user experience a lot and reduce the support tickets as well.

Chrome's autoplay policies are simple: https://developer.chrome.com/blog/autoplay/

Muted autoplay is always allowed.
Autoplay with sound is allowed if:
The user has interacted with the domain (click, tap, etc.).
On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.

Describe the solution you'd like
Try to auto play the video with sound , detect if it fails to auto play , mute the video and play again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants