Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3721

Any way to get stream health of a YouTube stream via YouTube API

$
0
0

Is there a way to get the stream health of a stream via the YouTube API?

I am streaming RTSP data using ffmpeg to YouTube and for some reason the stream stops after a certain amount of time and complains it isnt getting any data. I know the RTSP stream is good any my script is still running at the time. If I restart my script, YouTube magically gets data again, but I have to setup the stream again which means a new URL etc (as I have multiple streams running).

Within the YouTube studio, the stream gives a Health readout, weather its 'Good', 'Excellent' or 'No Data': https://pasteboard.co/8KbR7JUxgdGQ.png

Is there a way this is accessible via the YouTube API? If I can know that the stream health has gone 'No Data' I can automate restarting the script to keep the stream alive.

I have read through some of the documentation but cannot find anything obvious.

I can get "liveBroadcastContent": "live" from the API but that just tells me that the stream is live, not if no data is being received.


Viewing all articles
Browse latest Browse all 3721

Latest Images

Trending Articles



Latest Images