diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html')
-rw-r--r-- | testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html b/testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html index ff28c2b5e9..134a28bd5e 100644 --- a/testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html +++ b/testing/web-platform/tests/webrtc-svc/RTCRtpParameters-scalability.html @@ -78,13 +78,17 @@ const param = transceiver.sender.getParameters(); const encoding = param.encodings[0]; assert_true('scalabilityMode' in encoding); + // If L3T3 is not supported at all, abort test. assert_implements_optional(encoding.scalabilityMode === 'L3T3'); - // Pick a codec known to not have L3T3 support - const capabilities = RTCRtpSender.getCapabilities('video'); - const codec = capabilities.codecs.find(c => c.mimeType === 'video/VP8'); - assert_true(codec !== undefined); - transceiver.setCodecPreferences([codec]); + + pc2.ontrack = e => { + // Pick a codec known to not have L3T3 support. + const capabilities = RTCRtpReceiver.getCapabilities('video'); + const codec = capabilities.codecs.find(c => c.mimeType === 'video/VP8'); + assert_true(codec !== undefined); + e.transceiver.setCodecPreferences([codec]); + } exchangeIceCandidates(pc1, pc2); await exchangeOfferAnswer(pc1, pc2); const sendParams = pc1.getSenders()[0].getParameters(); |