Add comment for GetCodecForPayloadType

This commit is contained in:
Sean DuBois
2018-07-01 02:15:30 -07:00
parent 176efccff2
commit 6ada65bc0e

View File

@@ -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 {