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

Unified Diff: content/browser/android/media_player_manager_impl.cc

Issue 17563002: Add the SetMediaKeys handler to pass a drm bridge to a MediaSourcePlayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/android/media_player_manager_impl.cc
diff --git a/content/browser/android/media_player_manager_impl.cc b/content/browser/android/media_player_manager_impl.cc
index dbcdc714dff5ecffa6b7988d788ce2e40ac8506b..aca5a5bec520022826f9b35d8e2907d517965823 100644
--- a/content/browser/android/media_player_manager_impl.cc
+++ b/content/browser/android/media_player_manager_impl.cc
@@ -508,4 +508,16 @@ void MediaPlayerManagerImpl::RemoveDrmBridge(int media_keys_id) {
}
}
+void MediaPlayerManagerImpl::OnSetMediaKeys(int player_id, int media_keys_id) {
+ MediaPlayerAndroid* player = GetPlayer(player_id);
+ if (!player)
+ return;
+ MediaDrmBridge* drm_bridge = GetDrmBridge(media_keys_id);
+ if (!drm_bridge)
+ return;
+ // TODO(qinmin): add the logic to decide whether we should create the
+ // fullscreen surface for EME lv1.
+ player->SetDrmBridge(drm_bridge);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698