-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test simulcast screenshare in webrtc/simulcast/screenshare.https.html…
… WPT. Depends on D189663 Differential Revision: https://phabricator.services.mozilla.com/D189677 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1692873 gecko-commit: efbb9e1af880f1a6fc1aee81e670b399906a8698 gecko-reviewers: bwc
- Loading branch information
1 parent
79ffeb2
commit 92f1c29
Showing
9 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>RTCPeerConnection Screen-sharing Simulcast Tests</title> | ||
<meta name="timeout" content="long"> | ||
<script src="../third_party/sdp/sdp.js"></script> | ||
<script src="simulcast.js"></script> | ||
<script src="../RTCPeerConnection-helper.js"></script> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/testdriver.js"></script> | ||
<script src="/resources/testdriver-vendor.js"></script> | ||
<script> | ||
promise_test(async t => { | ||
// Test getDisplayMedia with simulcast | ||
await test_driver.bless('getDisplayMedia'); | ||
const stream = await navigator.mediaDevices.getDisplayMedia({ | ||
video: {width: 1280, height: 720} | ||
}); | ||
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop())); | ||
const rids = [0, 1]; | ||
const pc1 = new RTCPeerConnection(); | ||
t.add_cleanup(() => pc1.close()); | ||
const pc2 = new RTCPeerConnection(); | ||
t.add_cleanup(() => pc2.close()); | ||
|
||
return negotiateSimulcastAndWaitForVideo(t, stream, rids, pc1, pc2); | ||
}, 'Basic simulcast setup with two spatial layers'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters