mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user