Fix external producers

This commit is contained in:
Alexey Khit
2022-11-13 21:33:09 +03:00
parent 220b9ca318
commit e6d3939c78
4 changed files with 51 additions and 25 deletions
+5
View File
@@ -20,6 +20,11 @@ func (c *Conn) GetTrack(media *streamer.Media, codec *streamer.Codec) *streamer.
}
}
// can't setup new tracks from play state
if c.state == StatePlay {
return nil
}
track, err := c.SetupMedia(media, codec)
if err != nil {
return nil