Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5731)

Unified Diff: chrome/test/data/webrtc/manual/peerconnection.js

Issue 12472032: Add screen capture constraints, video tag resize and removed auto video resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testingscreen
Patch Set: gjslint issues + fixed if statement for constraints Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webrtc/manual/peerconnection.js
diff --git a/chrome/test/data/webrtc/manual/peerconnection.js b/chrome/test/data/webrtc/manual/peerconnection.js
index 5c27fb4303c6d06d0d179263ce93bcfe7ad4b582..4575a7aadd9d90fa334f547fd4af8ed4f748e1a6 100644
--- a/chrome/test/data/webrtc/manual/peerconnection.js
+++ b/chrome/test/data/webrtc/manual/peerconnection.js
@@ -123,9 +123,14 @@ function forceOpusChanged() {
*/
function updateGetUserMediaConstraints() {
var constraints = {
- audio: $('audio').checked,
- video: $('video').checked
+ audio: $('audio').checked,
+ video: $('video').checked
};
+ if ($('screencapture').checked)
+ var constraints = {
+ audio: $('audio').checked = false,
kjellander_chromium 2013/04/08 14:19:52 I don't think we should alter the $('audio').check
jansson 2013/04/10 12:11:48 Done.
+ video: {mandatory: {chromeMediaSource: 'screen'}}
+ };
$('getusermedia-constraints').value =
JSON.stringify(constraints, null, ' ');
}
@@ -166,6 +171,8 @@ window.onload = function() {
doNotAutoAddLocalStreamWhenCalled();
hookupDataChannelCallbacks_();
hookupDtmfSenderCallback_();
+ _displayVideoSize($('local-view'));
+ _displayVideoSize($('remote-view'));
};
/**

Powered by Google App Engine
This is Rietveld 408576698