mirror of
https://github.com/kerberos-io/joy4.git
synced 2025-12-24 13:57:59 +08:00
workaround for OPUS, stop blocking!
This commit is contained in:
@@ -816,13 +816,18 @@ func (self *Stream) makeCodecData() (err error) {
|
||||
err = fmt.Errorf("rtsp: aac sdp config invalid: %s", err)
|
||||
return
|
||||
}
|
||||
/*case av.OPUS:
|
||||
channelLayout := av.CH_MONO
|
||||
if media.ChannelCount == 2 {
|
||||
channelLayout = av.CH_STEREO
|
||||
}
|
||||
case av.OPUS:
|
||||
|
||||
// TODO!
|
||||
self.CodecData = codec.NewPCMMulawCodecData()
|
||||
|
||||
//channelLayout := av.CH_MONO
|
||||
//if media.ChannelCount == 2 {
|
||||
// channelLayout = av.CH_STEREO
|
||||
//}
|
||||
|
||||
//self.CodecData = codec.NewOpusCodecData(media.TimeScale, channelLayout)
|
||||
|
||||
self.CodecData = codec.NewOpusCodecData(media.TimeScale, channelLayout)*/
|
||||
default:
|
||||
err = fmt.Errorf("rtsp: Type=%d unsupported", media.Type)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user