зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1632489 - Negotiate repaired-rtp-stream-id in simulcast mochitests; r=ng
Depends on D74840 Differential Revision: https://phabricator.services.mozilla.com/D74841
This commit is contained in:
Родитель
110b9c482b
Коммит
154646f213
|
@ -238,6 +238,10 @@ var sdputils = {
|
|||
.replace(
|
||||
/a=extmap:[^\s]* urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id.*\r\n/g,
|
||||
""
|
||||
)
|
||||
.replace(
|
||||
/a=extmap:[^\s]* urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id.*\r\n/g,
|
||||
""
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -265,6 +269,16 @@ var sdputils = {
|
|||
"a=extmap:" +
|
||||
extmap_id[1] +
|
||||
"/recvonly urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\n";
|
||||
var extmap_id = offer_sdp.match(
|
||||
"a=extmap:([0-9+])/sendonly urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
|
||||
);
|
||||
ok(extmap_id != null, "Offer contains RID RTP header extension");
|
||||
new_answer_sdp =
|
||||
new_answer_sdp +
|
||||
"a=extmap:" +
|
||||
extmap_id[1] +
|
||||
"/recvonly urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\n";
|
||||
|
||||
return new_answer_sdp;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче