codec is video & audio.
This commit is contained in:
parent
2649594c2e
commit
89737dd4ce
@ -50,10 +50,12 @@ func ParseStr(codecName string) (codec RTPCodec, ok bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsVideo(codecType webrtc.RTPCodecType) (ok bool) {
|
func IsVideo(codecType webrtc.RTPCodecType) bool {
|
||||||
ok = codecType == webrtc.RTPCodecTypeVideo
|
return codecType == webrtc.RTPCodecTypeVideo
|
||||||
|
}
|
||||||
|
|
||||||
return
|
func IsAudio(codecType webrtc.RTPCodecType) bool {
|
||||||
|
return codecType == webrtc.RTPCodecTypeAudio
|
||||||
}
|
}
|
||||||
|
|
||||||
type RTPCodec struct {
|
type RTPCodec struct {
|
||||||
|
Reference in New Issue
Block a user