1

Is it possible to check given youtube link is currently streaming live? I need to catch moment, when it is ended and link become an ordinary video.

Andrey Khataev
  • 1,303
  • 6
  • 20
  • 46

1 Answers1

2

You could check the duration periodically. During live events, getDuration returns the elapsed time since the video started streaming. So you can assume that a video is live until this value stops changing.

Ted Noelker
  • 171
  • 3