mirror of
https://github.com/pion/webrtc.git
synced 2025-10-28 09:41:35 +08:00
Add comment for GetCodecForPayloadType
This commit is contained in:
@@ -67,6 +67,7 @@ func BaseSessionDescription(iceUsername, icePassword, fingerprint string, candid
|
||||
}
|
||||
}
|
||||
|
||||
// GetCodecForPayloadType scans the SessionDescription for the given payloadType and returns the codec
|
||||
func GetCodecForPayloadType(payloadType uint8, sd *SessionDescription) (ok bool, codec string) {
|
||||
for _, m := range sd.MediaDescriptions {
|
||||
for _, a := range m.Attributes {
|
||||
|
||||
Reference in New Issue
Block a user