fune/testing/web-platform/tests/webrtc/RTCPeerConnection-setRemoteDescription-simulcast.https.html
phancke@microsoft.com 719b9a5bbe Bug 1835994 [wpt PR 40316] - webrtc wpt: restore mid extension locally in simulcast tests, a=testonly
Automatic update from web-platform-tests
webrtc wpt: restore mid extension locally in simulcast tests

which is mandatory to implement per
https://datatracker.ietf.org/doc/html/rfc8853#section-5.5

BUG=chromium:1422258

Change-Id: I3f04492a6379f11c58a77e18d91cff37c26e3009
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4572428
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1151140}

--

wpt-commits: a9033015288e30ef89608d6258fc1fe859adcb13
wpt-pr: 40316
2023-06-13 07:15:06 +00:00

51 lines
1.5 KiB
HTML

<!doctype html>
<meta charset=utf-8>
<title>RTCPeerConnection.prototype.setRemoteDescription rollback</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="RTCPeerConnection-helper.js"></script>
<script>
'use strict';
// Test for https://github.com/w3c/webrtc-pc/pull/2155
promise_test(async t => {
const pc = new RTCPeerConnection();
t.add_cleanup(() => pc.close());
const [track, stream] = await getTrackFromUserMedia('video');
t.add_cleanup(() => track.stop());
pc.addTrack(track, stream);
const offer_sdp = `v=0
o=- 3840232462471583827 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:Li6+
a=ice-pwd:3C05CTZBRQVmGCAq7hVasHlT
a=ice-options:trickle
a=fingerprint:sha-256 5B:D3:8E:66:0E:7D:D3:F3:8E:E6:80:28:19:FC:55:AD:58:5D:B9:3D:A8:DE:45:4A:E7:87:02:F8:3C:0B:3B:B3
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:2 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=recvonly
a=rtcp-mux
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rid:foo recv
a=rid:bar recv
a=rid:baz recv
a=simulcast:recv foo;bar;baz
`;
await pc.setRemoteDescription({type: 'offer', sdp: offer_sdp});
const transceivers = pc.getTransceivers();
assert_equals(transceivers.length, 1, 'Expected exactly one transceiver');
}, 'createAnswer() attaches to an existing transceiver with a remote simulcast offer');
</script>