I'm writing a program which is reading a non-continuous stream of Opus packets transmitted via UDP - in other words, I may get 30 seconds of audio, 30 minutes of nothing, and then 2 minutes of audio.
I've been able to use the official Opus docs to be able to decode, save, and playback the audio, but I haven't been able to find a way to determine that a stream is complete. I've seen references to a flag indicating that a stream is complete (e.g. Ogg pages have a flag), but I'm not familiar enough with audio to be sure if what I'm getting is Ogg-encoded or if I should be looking deeper into the actual Opus packet itself. The RFC itself doesn't seem to help that much either.
For what it's worth, this is the program doing the transmitting (and my receiving code is Python.)