8000 YouTube player will not autoplay if window is not focused · Issue #7 · cookpete/react-player · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
YouTube player will not autoplay if window is not focused #7
Closed
@takempf

Description

@takempf

When you use a page with react-player in it, YouTube videos will not autoplay when the window does not have focus. While I'm certain YouTube has good intentions here, my application requires YouTube videos to play automatically regardless of whether the window is focused or not. Here are a few things I've tried but don't seem to work:

  • Run .playVideo() after the onReady event of the YouTube player fires
  • Constantly run window.focus() in the hope that they have a listener there (nope)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0