pt-no-bundle.html (1222B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>RTCPeerconnection Payload Type Reuse</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="../RTCPeerConnection-helper.js"></script> 7 <script> 8 'use strict'; 9 const preamble = `v=0 10 o=- 0 3 IN IP4 127.0.0.1 11 s=- 12 t=0 0 13 a=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93 14 a=ice-ufrag:6HHHdzzeIhkE0CKj 15 a=ice-pwd:XYDGVpfvklQIEnZ6YnyLsAew 16 m=video 1 RTP/SAVPF 100 17 c=IN IP4 0.0.0.0 18 a=rtcp-mux 19 a=mid:video 20 a=rtpmap:100 VP8/90000 21 a=setup:actpass 22 m=audio 1 RTP/SAVPF 100 23 c=IN IP4 0.0.0.0 24 a=rtcp-mux 25 a=mid:audio 26 a=rtpmap:100 opus/48000/2 27 a=setup:actpass 28 `; 29 30 31 promise_test(async t => { 32 const pc = new RTCPeerConnection(); 33 t.add_cleanup(() => pc.close()); 34 const ontrackPromise = addEventListenerPromise(t, pc, 'track'); 35 await pc.setRemoteDescription({type: 'offer', sdp: preamble}); 36 assert_equals(pc.getReceivers().length, 2); 37 await pc.setLocalDescription(); 38 assert_not_equals(pc.getReceivers()[0].transport, 39 pc.getReceivers()[1].transport); 40 }, 'Description with no BUNDLE group and PT number reuse validates'); 41 42 </script>