MCPcopy Create free account
hub / github.com/Monibuca/engine / Audio

Struct Audio

track/audio.go:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type 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
23func (a *Audio) Attach() {
24 if err := a.Publisher.GetStream().AddTrack(a).Await(); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected