| 10 | ) |
| 11 | |
| 12 | type Audio struct { |
| 13 | Media |
| 14 | CodecID codec.AudioCodecID |
| 15 | Channels byte |
| 16 | SampleSize byte |
| 17 | AVCCHead []byte // 音频包在AVCC格式中,AAC会有两个字节,其他的只有一个字节 |
| 18 | codec.AudioSpecificConfig |
| 19 | AACDecoder rtpmpeg4audio.Decoder |
| 20 | AACFormat *format.MPEG4Audio // 仅在 rtsp 转发 rtsp 时使用 |
| 21 | } |
| 22 | |
| 23 | func (a *Audio) Attach() { |
| 24 | if err := a.Publisher.GetStream().AddTrack(a).Await(); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected