Closed tfabris closed 5 years ago
This issue recurred on the morning of 2019-05-08 after having encountered some troubles on the live stream (it happened after issued #23 occurred). The stream key got changed.
I suspect that maybe each time there is one of these occurrences, a new "Upcoming" entry appears on the live dashboard. I only see these entries on the "Beta" version of the live dashboard site but perhaps there is a way to see them on the "Classic" site too and I just forget the URL. In any case they look like this: https://studio.youtube.com/channel/UCqPZGFtBau8rm7wnScxdA3g/videos/live?filter=%5B%5D&sort=%7B%22columnType%22%3A%22date%22%2C%22sortOrder%22%3A%22DESCENDING%22%7D
When I look into the details of those "Upcoming" entries, I can't see their stream keys in the web UI. but perhaps the whole issue is that you must "bind" your current stream to one specific one of those "Upcoming" entries as described here? https://stackoverflow.com/questions/55029629/youtube-api-v3-how-set-the-stream-key-on-new-event
Don't know. I mean, how could I bind to one of those if it won't show me the stream key value?
Update: Looked into it more. The docs on the "bind" command are here: https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/bind The URL format is like this:
https://www.googleapis.com/youtube/v3/liveBroadcasts/bind?id=YOUR_BROADCAST_ID&part=snippet&streamId=YOUR_STREAM_ID
This doesn't appear to help me with this bug. If the stream key changes out from under me, I don't care whether the stream key is related to the "broadcast" or the "stream", either way I'm sunk if I don't know the key.
Also:
Oh hey, at this URL the dude has a screen shot: https://stackoverflow.com/questions/55029629/youtube-api-v3-how-set-the-stream-key-on-new-event It shows that you can create a "re-usable stream key" instead of a single use stream key. Is it possible that I simply created single use key when I set up the channel? Look for this! How do I find it?
I can't find that "Reusable stream key" setting described above.
I have a piece of Work In Progress code that is now checked in which shows how to read the stream key from the YouTube API.
Will fix this issue with the following steps in CrowCam.sh:
To Do:
The latest commit fixes this by updating the stream key if it differs.
Okay. On 2019-06-02, there was a problem:
This is similar to the situations which occur when the stream key gets clobbered out from under me. However it's different because the key didn't change, but the title and metadata did change. So what happened here?
To do:
I'm going to close this bug and open a separate bug about the stream metadata changing.
I don't know why, but once in a while I find that the stream is unexpectedly down and then I notice that YouTube changed my stream key.
Some time overnight last night (during the night of 2019-05-04 to 2019-05-05) the stream key changed, so the stream was down in the morning. This is the second time that the stream key had changed out from under me. The prior time this happened was only ten days ago, on 2019-04-25.
The fix is:
To do: