8000 YouTube Live URLs fail canPlay check · Issue #1580 · cookpete/react-player · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
YouTube Live URLs fail canPlay check #1580
Closed
@okcscott

Description

@okcscott

Current Behavior

YouTube's live URL format (ex: https://youtube.com/live/AbCdE1Fgh2i) fails the pattern check if you use ReactPlayer.canPlay().

Expected Behavior

ReactPlayer.canPlay("https://youtube.com/live/AbCdE1Fgh2i") should return true

Steps to Reproduce

Pass "https://youtube.com/live/AbCdE1Fgh2i" into ReactPlayer.canPlay(url)

Environment

  • URL attempting to play: Any YouTube video containing live instead of watch in the URL. This is not my video but an example https://youtube.com/live/WrFhI8AxpOc
  • Browser: Chrome Version 108.0.5359.98
  • Operating system: macOS Monterey

Other Information

The product I work on allows users to embed a video into their instance. We use ReactPlayer.canPlay(url) to validate a form field. The form field is showing a validation error anytime someone uses a /live URL.

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