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

Side by Side Diff: chrome/test/data/webrtc/jsep01_call.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: removed line break Created 7 years, 9 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** @private */ 7 /** @private */
8 var gTransformOutgoingSdp = function(sdp) { return sdp; } 8 var gTransformOutgoingSdp = function(sdp) { return sdp; }
9 9
10 /** @private */ 10 /** @private */
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 /** @private */ 216 /** @private */
217 function addStreamCallback_(event) { 217 function addStreamCallback_(event) {
218 debug('Receiving remote stream...'); 218 debug('Receiving remote stream...');
219 var videoTag = document.getElementById('remote-view'); 219 var videoTag = document.getElementById('remote-view');
220 videoTag.src = webkitURL.createObjectURL(event.stream); 220 videoTag.src = webkitURL.createObjectURL(event.stream);
221 221
222 // Due to crbug.com/110938 the size is 0 when onloadedmetadata fires. 222 // Due to crbug.com/110938 the size is 0 when onloadedmetadata fires.
223 // videoTag.onloadedmetadata = updateVideoTagSize_('remote-view'); 223 // videoTag.onloadedmetadata = updateVideoTagSize_('remote-view');
224 // Use setTimeout as a workaround for now. 224 // Use setTimeout as a workaround for now.
225 setTimeout(function() {updateVideoTagSize_('remote-view')}, 500); 225 // setTimeout(function() {updateVideoTagSize_('remote-view')}, 500);
kjellander_chromium 2013/03/25 13:33:58 Remove the unused code and update the code to be p
jansson 2013/04/05 10:29:42 Done.
226 // Displays the remote video size for both the video element and the stream.
227 setTimeout(function() {displayVideoSize(videoTag);}, 500);
226 } 228 }
227 229
228 /** @private */ 230 /** @private */
229 function removeStreamCallback_(event) { 231 function removeStreamCallback_(event) {
230 debug('Call ended.'); 232 debug('Call ended.');
231 document.getElementById("remote-view").src = ''; 233 document.getElementById("remote-view").src = '';
232 } 234 }
233 235
234 /** @private */ 236 /** @private */
235 function onCreateDataChannelCallback_(event) { 237 function onCreateDataChannelCallback_(event) {
(...skipping 16 matching lines...) Expand all
252 // about the created data channel. 254 // about the created data channel.
253 onDataChannelReadyStateChange_(); 255 onDataChannelReadyStateChange_();
254 } 256 }
255 257
256 /** @private */ 258 /** @private */
257 function onDataChannelReadyStateChange_() { 259 function onDataChannelReadyStateChange_() {
258 var readyState = gDataChannel.readyState; 260 var readyState = gDataChannel.readyState;
259 debug('DataChannel state:' + readyState); 261 debug('DataChannel state:' + readyState);
260 gDataStatusCallback(readyState); 262 gDataStatusCallback(readyState);
261 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698