I have stumbled upon an unexpected behavior of YouTube liveStream API.
Whenever I request liveStream.list
method, the only streams I get back are the ones initiated by my encoding software or liveStream.insert
calls.
What I am trying to retrieve instead is the stream that is proposed by YouTube in the default encoder setup:
Am I doing something wrong?
Here's my final complete code for this ,
$api_stream_url
containsServerURL/StreamKey
listLiveBroadcasts persistent – Return only persistent broadcasts.
listLiveStreams cdn -
format
,rtmp
,streamName
,ingestionAddress
You can retrieve information about the default, or "Stream Now" broadcast by passing persistent for the broadcastType parameter in liveBroadcast.list.