Open ollytom opened 1 month ago
swills6 suggests something more specific rather than wording "Set", maybe... type Request struct { BufLengthRequested bool BufLength time.Duration ... }
Asked the original question asker if they ever ran into any players/devices which sent information with something like "I made a request for content of 0 milliseconds". Probably going to close this, but will see if we get a response, maybe some weird player bugs that we could fix... for you know... geek cred...?
Thread containing discussion on video-dev chat: https://video-dev.slack.com/archives/C5PNWM562/p1714536663841469
For example, in Request, we have BufLength:
What if the buffer length was never sent in CMCD info? How can we tell if a player actually requested cotent of zero length? I'm not sure if this is possible or not, but it was a good question brought up by someone on video-dev.slack.com:
I don't want to re-invent NULL or NaN in Go, so twitch.tv/swills6 suggested using a bool to store that kind of info. For example:
This is what we do in other packages in this module. We could also store BufLength as a
*time.Duration
but that doesn't feel right to introduce nil checking, panics etc. when it's just a int64 under the hood.