react-player
react-player copied to clipboard
`getVideoData().isLive` is `false` on Youtube live videos
Current Behavior
getInternalPlayer().getVideoData().isLive is false even if the URL provided is live on youtube videos.
Expected Behavior
getInternalPlayer().getVideoData().isLive should be true if the youtube URL is a live video
Steps to Reproduce
- Set URL to
https://www.youtube.com/watch?v=jfKfPfyJRdk - get
reactPlayerRef.current.getInternalPlayer().getVideoData().isLive
Environment
- URL attempting to play: https://www.youtube.com/watch?v=jfKfPfyJRdk
- Browser: Brave (Version 1.44.105 Chromium: 106.0.5249.91 (Official Build) (arm64))
- Operating system: MacOS Monterey 12.6
Other Information
I also noticed that the getDuration() method returns 0 on live videos as well