ITADN

Go: Catalog becomes unavailable after a minute of playing

#2087Openpisoj 创建于 2026-07-04
P
pisojcommented
If I create a track, then publish the broadcast and start writing audio to that track, the stream breaks after about a minute of playing. ```go mediaProducer, err := broadcast.PublishMedia("aac", []byte{/* AAC audio specific config */}) origin.Publish("listen_to_me.hang", broadcast) produceAudio(mediaProducer) ``` This is the error returned from the player: ```c broadcast=listen_to_me.hang track=catalog.json error=Received RESET_STREAM. ``` However, if I publish the broadcast inside a loop, even if that loop **only repeats once**, the stream continues indefinitely **without any errors**: ```go for i := 0; i < 1; i++ { origin.Publish("listen_to_me.hang", broadcast) produceAudio(mediaProducer) } ``` ### A full project to reproduce this can be found [here](https://github.com/pisoj/moq-bug).
3 条评论