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 {
|
if onBinding != nil {
|
||||||
onBinding(err)
|
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.
|
// 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