How can I check the end of a youtube stream?

Asked

Viewed 32 times

1

I know that using the youtube API I can check when a video ends. But what about a stream? The code is the same?

This is an example of the code I use

<iframe width="100%" style="height: 200px !important;" src="https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID&amp;modestbranding=1&amp;autoplay=1&controls=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  • 1

    Maybe this document can help: https://developers.google.com/youtube/iframe_api_reference#Retrieving_video_information

  • @dvd I will explore this option!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.