diff --git a/server/internal/types/codec/codecs.go b/server/internal/types/codec/codecs.go index 8fe0691d..621655e0 100644 --- a/server/internal/types/codec/codecs.go +++ b/server/internal/types/codec/codecs.go @@ -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 {