mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
move constant (#5190)
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled
This commit is contained in:
parent
b7071aefe7
commit
d02fb4ed8e
2 changed files with 9 additions and 9 deletions
|
|
@ -27,6 +27,15 @@ const (
|
||||||
webrtcPayloadMaxSize = 1188 // 1200 - 12 (RTP header)
|
webrtcPayloadMaxSize = 1188 // 1200 - 12 (RTP header)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var multichannelOpusSDP = map[int]string{
|
||||||
|
3: "channel_mapping=0,2,1;num_streams=2;coupled_streams=1",
|
||||||
|
4: "channel_mapping=0,1,2,3;num_streams=2;coupled_streams=2",
|
||||||
|
5: "channel_mapping=0,4,1,2,3;num_streams=3;coupled_streams=2",
|
||||||
|
6: "channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2",
|
||||||
|
7: "channel_mapping=0,4,1,2,3,5,6;num_streams=4;coupled_streams=4",
|
||||||
|
8: "channel_mapping=0,6,1,4,5,2,3,7;num_streams=5;coupled_streams=4",
|
||||||
|
}
|
||||||
|
|
||||||
var errNoSupportedCodecsFrom = errors.New(
|
var errNoSupportedCodecsFrom = errors.New(
|
||||||
"the stream doesn't contain any supported codec, which are currently " +
|
"the stream doesn't contain any supported codec, which are currently " +
|
||||||
"AV1, VP9, VP8, H265, H264, Opus, G722, G711, LPCM")
|
"AV1, VP9, VP8, H265, H264, Opus, G722, G711, LPCM")
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,6 @@ import (
|
||||||
"github.com/pion/webrtc/v4"
|
"github.com/pion/webrtc/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
var multichannelOpusSDP = map[int]string{
|
|
||||||
3: "channel_mapping=0,2,1;num_streams=2;coupled_streams=1",
|
|
||||||
4: "channel_mapping=0,1,2,3;num_streams=2;coupled_streams=2",
|
|
||||||
5: "channel_mapping=0,4,1,2,3;num_streams=3;coupled_streams=2",
|
|
||||||
6: "channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2",
|
|
||||||
7: "channel_mapping=0,4,1,2,3,5,6;num_streams=4;coupled_streams=4",
|
|
||||||
8: "channel_mapping=0,6,1,4,5,2,3,7;num_streams=5;coupled_streams=4",
|
|
||||||
}
|
|
||||||
|
|
||||||
// OutgoingTrack is a WebRTC outgoing track
|
// OutgoingTrack is a WebRTC outgoing track
|
||||||
type OutgoingTrack struct {
|
type OutgoingTrack struct {
|
||||||
Caps webrtc.RTPCodecCapability
|
Caps webrtc.RTPCodecCapability
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue