-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Autoplay isn't working every time #460
Comments
@Aarbel I had the same issue and a quick search turned this up, which helped me out!
TLDR: Chrome makes you choose to either not autoplay or autoplay muted, so web developers are building pages that can annoy their users. Adding |
thanks a lot @yoiang, did you found a workaround to allow both autoplay and not muted ? (like a Timeout hack, or something like that) |
I haven't explored that yet! |
@Aarbel Unfortunately there is no such way. An unmuted video can be played (for 100% of the use cases) only after a user interaction. |
Even if there was a hack to enable unmuted autoplay, soon enough Chrome would release a patch so the hack would no longer work. I agree that unmuted autoplay can be useful when used responsibly, but the unfortunate reality is that the majority of companies use it to create a negative, annoying experience for the user that needlessly uses up bandwidth. Safari on iOS started the trend, Chrome is catching up, and eventually the rest will too. |
adding muted tag does not allow safari / mobile chrome to autoplay. https://github.com/bridgedxyz/bridged.xyz <ReactPlayer
url="https://www.youtube.com/watch?v=RIZjZFoDhRc&ab_channel=Bridged"
width="100%"
height="100%"
playing
loop
muted
onStart={handleOnYoutubePlayStart}
onEnded={handleOnYoutubePlayEnd}
config={{
file: {
attributes: {
preload: "auto",
},
},
}}
/> |
my player cannot auto play still even when i sett playing to true |
Add the |
okey thank you |
Hi @cookpete,
I'm facing some issue with autoplay and basic prop
playing={true}
.This happens when the navigator opens from an external link
To reproduce :
playing
istrue
.How could i force
play
?The text was updated successfully, but these errors were encountered: