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.
Asked
Active
Viewed 1,066 times
1 Answers
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