Update streamer NewTrack function

This commit is contained in:
Alexey Khit
2023-03-04 06:17:04 +03:00
parent c2cdf60ffc
commit 5aa20f0845
17 changed files with 73 additions and 24 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ func (c *Conn) SetupMedia(media *streamer.Media, codec *streamer.Codec, first bo
return nil, err
}
track := streamer.NewTrack(codec, media.Direction)
track := streamer.NewTrack(media, codec)
switch track.Direction {
case streamer.DirectionSendonly: