mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 19:55:41 +00:00
Don't return bind error on unsupport codec (#3085)
pion will not start transports if Bind fails at first answer
This commit is contained in:
@@ -444,7 +444,8 @@ func (d *DownTrack) Bind(t webrtc.TrackLocalContext) (webrtc.RTPCodecParameters,
|
||||
if onBinding != nil {
|
||||
onBinding(err)
|
||||
}
|
||||
return webrtc.RTPCodecParameters{}, err
|
||||
// don't return error here, as pion will not start transports if Bind fails at first answer
|
||||
return webrtc.RTPCodecParameters{}, nil
|
||||
}
|
||||
|
||||
// if a downtrack is closed before bind, it already unsubscribed from client, don't do subsequent operation and return here.
|
||||
|
||||
Reference in New Issue
Block a user