mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 11:44:43 +00:00
type check
This commit is contained in:
@@ -1050,6 +1050,9 @@ func (t *PCTransport) AddRemoteTrackAndNegotiate(
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if aptPayload < 0 || aptPayload > 255 {
|
||||
continue
|
||||
}
|
||||
|
||||
if !slices.Contains(disabledPayloads, webrtc.PayloadType(aptPayload)) {
|
||||
enabledCodecs = append(enabledCodecs, c)
|
||||
|
||||
Reference in New Issue
Block a user