Archived
2
0

codec is video & audio.

This commit is contained in:
Miroslav Šedivý 2023-01-29 18:21:34 +01:00
parent 2649594c2e
commit 89737dd4ce

View File

@ -50,10 +50,12 @@ func ParseStr(codecName string) (codec RTPCodec, ok bool) {
return
}
func IsVideo(codecType webrtc.RTPCodecType) (ok bool) {
ok = codecType == webrtc.RTPCodecTypeVideo
func IsVideo(codecType webrtc.RTPCodecType) bool {
return codecType == webrtc.RTPCodecTypeVideo
}
return
func IsAudio(codecType webrtc.RTPCodecType) bool {
return codecType == webrtc.RTPCodecTypeAudio
}
type RTPCodec struct {