mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-04 22:42:44 +08:00
适配engine修改
This commit is contained in:
4
main.go
4
main.go
@@ -162,13 +162,13 @@ func (rtc *WebRTC) Publish(streamPath string) bool {
|
||||
case MimeTypePCMA:
|
||||
at := engine.NewAudioTrack()
|
||||
at.SoundFormat = 7
|
||||
at.SoundType = byte(codec.Channels) - 1
|
||||
at.Channels = byte(codec.Channels)
|
||||
rtc.SetOriginAT(at)
|
||||
etrack = at
|
||||
case MimeTypePCMU:
|
||||
at := engine.NewAudioTrack()
|
||||
at.SoundFormat = 8
|
||||
at.SoundType = byte(codec.Channels) - 1
|
||||
at.Channels = byte(codec.Channels)
|
||||
rtc.SetOriginAT(at)
|
||||
etrack = at
|
||||
default:
|
||||
|
Reference in New Issue
Block a user