question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoplay isn't working every time

See original GitHub issue

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 :

  • Click on your app link from outside your navigator (for me i clicked from VScode, and that opens the link inside Chrome) - The video doesn’t autoplay and is in paused mode, even if the prop playing is true.
  • Reload the page - The autoplay works

How could i force play ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

29reactions
yoiangcommented, Aug 5, 2018

@Aarbel I had the same issue and a quick search turned this up, which helped me out!

  • Autoplay Policy Changes in Chrome: #395

TLDR: Chrome makes you choose to either not autoplay or autoplay muted, so web developers are building pages that can annoy their users. Adding muted to my react-player tag works consistently!

2reactions
softmarshmallowcommented, May 29, 2021

adding muted tag does not allow safari / mobile chrome to autoplay. Any alternative theory?

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",
                },
              },
            }}
          />
Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Fixes When the AutoPlay Isn't Working on Windows 11
1. Turn Off and On AutoPlay in the Settings ... You can quickly turn on and off the AutoPlay feature to fix any...
Read more >
How to Fix Windows 10 AutoPlay Not Working? – 6 Methods
Sometimes, Windows 10 AutoPlay may not work. How to fix windows 10 autoplay not working issue? This video offers 6 methods. Method 1....
Read more >
Autoplay not working in Windows 10/11 [COMPLETE GUIDE]
Open the Settings app. You can do that quickly by pressing Windows Key + I shortcut. · When the Settings app opens, go...
Read more >
AutoPlay not working in Windows 11/10
Open Settings > Bluetooth & devices. Select AutoPlay from the list of options. Under Choose AutoPlay defaults, change the value to Ask me...
Read more >
Windows 10 Autoplay not working - Microsoft Community
Windows 10 Autoplay not working · Click the Start button Image , click All Programs, click Accessories, right-click Command Prompt, and then ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found