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

Unified Diff: remoting/webapp/client_session.js

Issue 344483002: Enable MediaSource rendering in chromoting client with Chrome 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | remoting/webapp/plugin_settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index 08ad854079c63346a0f40e4dad35cf2adfd1f6cd..331702dc36e85b22620c167c29aff9fbba0fa94a 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -505,8 +505,11 @@ remoting.ClientSession.prototype.onPluginInitialized_ = function(initialized) {
this.applyRemapKeys_(true);
}
- // Enable MediaSource-based rendering if available.
- if (remoting.settings.USE_MEDIA_SOURCE_RENDERING &&
+
+ // Enable MediaSource-based rendering on Chrome 37 and above.
+ var chromeVersionMajor =
+ parseInt((remoting.getChromeVersion() || '0').split('.')[0], 10);
+ if (chromeVersionMajor >= 37 &&
this.plugin_.hasFeature(
remoting.ClientPlugin.Feature.MEDIA_SOURCE_RENDERING)) {
this.video_ = /** @type {HTMLMediaElement} */(
« no previous file with comments | « no previous file | remoting/webapp/plugin_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698