-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
YouTube video playback doesn't start when the video is muted #132
Comments
Hello @carelevers, thanks for your report! I've tested the Youtube example with |
Hello @yoriiis, thanks for the quick response, I updated the issue with a screen recording of this example: https://glitch.com/edit/#!/sage-quilted-hippopotamus, in a Chrome incognito window with all extensions disabled. |
@carelevers I think the issue is on Glitch only. Do you reproduce the same issue outside of this site? |
Hmm, yes, I am also experiencing the same issue on some sites where we use vlite with the YouTube provider. Additionally, in other sandbox environments, the issue persists: https://jsfiddle.net/a3tv6zpf/ fcc96a0bc81cf1a696f14adcff6113f5.mp4I don't know if there are other ways to reproduce this behavior? |
Sorry for the delay, I think the problem is visible when the player is inside an other iframe. Glitch and JSFiddle use iframe to sandbox the content. The url of the Glitch iframe works: https://vlitejs-youtube-video.glitch.me Are you using Vlitejs in an iframe? Normally the problem is only present in this case. |
This warning is normal because automatic playback with sound requires user interaction; it is the browser that decides whether sound will be activated, not Vlitejs. More info from Chrome: https://developer.chrome.com/blog/autoplay |
Hi, I managed to fix it! It wasn’t something with Vlitejs after all, sorry for the confusion :) The issue was actually with this header in my .htaccess : Specifically, the autoplay=self policy Thanks for the help anyway! |
Describe the bug
When attempting to start playback of a YouTube video while it is muted, the video doesn't start. This issue occurs in chrome or chromium based browsers. It behaves normally in firefox.
Steps to reproduce
The issue also occurs in the provided glitch demo playground : https://glitch.com/edit/#!/vlitejs-youtube-video
However, i noticed this playground runs on vlite-js release 5, so I remixed a glitch environment to vlite-js 6.0.3 where the issue also occurs: https://glitch.com/edit/#!/sage-quilted-hippopotamus
It also works when you preview in a new window with glitch, but it doesn't work when it's previewed in the preview pane
Expected behavior
Youtube video's should playback whether muted or unmuted.
Screenshots and recordings
4fdb550d874f56d67fcba74be0c6a247.mp4
Vlite.js
6.0.3
Browser
Chrome 126.0.6478.62 (Officiële build) (64-bits)
OS
Windows 11
Additional context
No response
The text was updated successfully, but these errors were encountered: