rtmp: support publishing G711 and LPCM tracks (#2857) (#2884)

This commit is contained in:
Alessandro Ros
2024-01-07 17:02:22 +01:00
committed by GitHub
parent bc7804cb33
commit 27975d8b67
36 changed files with 527 additions and 129 deletions

View File

@@ -33,9 +33,9 @@ var readWriterCases = []struct {
DTS: 6013806 * time.Millisecond,
MessageStreamID: 4534543,
Codec: CodecMPEG1Audio,
Rate: flvio.SOUND_44Khz,
Depth: flvio.SOUND_16BIT,
Channels: flvio.SOUND_STEREO,
Rate: Rate44100,
Depth: Depth16,
Channels: ChannelsStereo,
Payload: []byte{0x01, 0x02, 0x03, 0x04},
},
[]byte{
@@ -50,9 +50,9 @@ var readWriterCases = []struct {
DTS: 6013806 * time.Millisecond,
MessageStreamID: 4534543,
Codec: CodecMPEG4Audio,
Rate: flvio.SOUND_44Khz,
Depth: flvio.SOUND_16BIT,
Channels: flvio.SOUND_STEREO,
Rate: Rate44100,
Depth: Depth16,
Channels: ChannelsStereo,
AACType: AudioAACTypeAU,
Payload: []byte{0x5A, 0xC0, 0x77, 0x40},
},