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

Side by Side Diff: remoting/webapp/client_plugin.js

Issue 372943002: Add video frame recording capability to Chromoting hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct comment Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * Class that wraps low-level details of interacting with the client plugin. 7 * Class that wraps low-level details of interacting with the client plugin.
8 * 8 *
9 * This abstracts a <embed> element and controls the plugin which does 9 * This abstracts a <embed> element and controls the plugin which does
10 * the actual remoting work. It also handles differences between 10 * the actual remoting work. It also handles differences between
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 // Let the host know that the webapp can be requested to always send 211 // Let the host know that the webapp can be requested to always send
212 // the client's dimensions. 212 // the client's dimensions.
213 this.capabilities_.push( 213 this.capabilities_.push(
214 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION); 214 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION);
215 215
216 // Let the host know that we're interested in knowing whether or not 216 // Let the host know that we're interested in knowing whether or not
217 // it rate-limits desktop-resize requests. 217 // it rate-limits desktop-resize requests.
218 this.capabilities_.push( 218 this.capabilities_.push(
219 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS); 219 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS);
220
221 // Let the host know that we can use the video framerecording extension.
222 this.capabilities_.push(
223 remoting.ClientSession.Capability.VIDEO_RECORDER);
220 } else if (this.pluginApiVersion_ >= 6) { 224 } else if (this.pluginApiVersion_ >= 6) {
221 this.pluginApiFeatures_ = ['highQualityScaling', 'injectKeyEvent']; 225 this.pluginApiFeatures_ = ['highQualityScaling', 'injectKeyEvent'];
222 } else { 226 } else {
223 this.pluginApiFeatures_ = ['highQualityScaling']; 227 this.pluginApiFeatures_ = ['highQualityScaling'];
224 } 228 }
225 this.helloReceived_ = true; 229 this.helloReceived_ = true;
226 if (this.onInitializedCallback_ != null) { 230 if (this.onInitializedCallback_ != null) {
227 this.onInitializedCallback_(true); 231 this.onInitializedCallback_(true);
228 this.onInitializedCallback_ = null; 232 this.onInitializedCallback_ = null;
229 } 233 }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 * Undo the CSS rules needed to make the plugin clickable for click-to-play. 759 * Undo the CSS rules needed to make the plugin clickable for click-to-play.
756 * @private 760 * @private
757 */ 761 */
758 remoting.ClientPlugin.prototype.hidePluginForClickToPlay_ = function() { 762 remoting.ClientPlugin.prototype.hidePluginForClickToPlay_ = function() {
759 this.plugin.style.width = ''; 763 this.plugin.style.width = '';
760 this.plugin.style.height = ''; 764 this.plugin.style.height = '';
761 this.plugin.style.top = ''; 765 this.plugin.style.top = '';
762 this.plugin.style.left = ''; 766 this.plugin.style.left = '';
763 this.plugin.style.position = ''; 767 this.plugin.style.position = '';
764 }; 768 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698