Closed
Description
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 ofwatch
in the URL. This is not my video but an examplehttps://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
Labels
No labels