Skip to content

Commit

Permalink
Check that scalabilityMode is present in sender parameters
Browse files Browse the repository at this point in the history
Bug: none
Change-Id: If011bd5d963b3362c62b2205e2e8a0c95898e7f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3240743
Reviewed-by: Philipp Hancke <philipp.hancke@googlemail.com>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#934501}
  • Loading branch information
alvestrand authored and chromium-wpt-export-bot committed Oct 25, 2021
1 parent dc472c2 commit c0a735e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webrtc-svc/RTCRtpParameters-scalability.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/webrtc/dictionary-helper.js"></script>
<script src="/webrtc/RTCRtpParameters-helper.js"></script>
<script src="/webrtc/RTCPeerConnection-helper.js"></script>
<script src="../webrtc/RTCPeerConnection-helper.js"></script>
<script>
'use strict';

Expand Down Expand Up @@ -45,6 +45,8 @@
v.srcObject = new MediaStream([(await haveTrackEvent).track]);
await new Promise(r => v.onloadedmetadata = r);
await detectSignal(t, v, 100);
const sendParams = pc1.getSenders()[0].getParameters();
assert_equals(sendParams.encodings[0].scalabilityMode, scalabilityMode);
}, `[${index++}] ${codec.mimeType} - ${scalabilityMode} should produce valid video content`);
}
}
Expand Down

0 comments on commit c0a735e

Please sign in to comment.