react-player icon indicating copy to clipboard operation
react-player copied to clipboard

`getVideoData().isLive` is `false` on Youtube live videos

Open blankart opened this issue 3 years ago • 0 comments

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

  1. Set URL to https://www.youtube.com/watch?v=jfKfPfyJRdk
  2. get reactPlayerRef.current.getInternalPlayer().getVideoData().isLive

Environment

Other Information

I also noticed that the getDuration() method returns 0 on live videos as well

blankart avatar Oct 02 '22 22:10 blankart