Add more video & audio codecs to Janus session

+ change the order of preference.
Tested locally, seems to work, at least no error is thrown.
This commit is contained in:
Gunnar 2023-04-26 16:57:53 +02:00 committed by GitHub
parent dd37df185e
commit d20e6cd78c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -735,6 +735,10 @@ func (m *mcuJanus) getOrCreatePublisherHandle(ctx context.Context, id string, st
// Do not use the video-orientation RTP extension as it breaks video
// orientation changes in Firefox.
"videoorient_ext": false,
// Offer more video & audio codecs
"audiocodec": "opus,g722,pcmu,pcma,isac32",
"videocodec": "vp9,h264,h265,vp8,av1",
}
}
var maxBitrate int
if streamType == streamTypeScreen {