part 2 - v20-beta

This commit is contained in:
Steve Seguin 2021-11-24 20:54:21 -05:00 committed by GitHub
parent 9ed7ab3c44
commit 1a5e0852a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 450 additions and 2 deletions

View File

@ -28,7 +28,6 @@ Copyright (c) 2012-2020 [Muaz Khan](https://github.com/muaz-khan)
var CodecsHandler = (function() {
function preferCodec(sdp, codecName) {
var info = splitLines(sdp);
if (!info.videoCodecNumbers) {
return sdp;
} else if (codecName === 'vp8' && info.vp8LineNumber === info.videoCodecNumbers[0]) {
@ -134,7 +133,9 @@ var CodecsHandler = (function() {
info.h264LineNumber = line.replace('a=rtpmap:', '').split(' ')[0];
}
if (line.indexOf('AV1X/90000') !== -1 && !info.av1LineNumber) {
if (line.indexOf('AV1X/90000') !== -1 && !info.av1LineNumber) {
info.av1LineNumber = line.replace('a=rtpmap:', '').split(' ')[0];
} else if (line.indexOf('AV1/90000') !== -1 && !info.av1LineNumber) {
info.av1LineNumber = line.replace('a=rtpmap:', '').split(' ')[0];
}

447
thirdparty/webmidi3.js vendored Normal file

File diff suppressed because one or more lines are too long