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

Unified Diff: content/public/browser/android/external_video_surface_container.h

Issue 714643002: Pause EME player whose external surface is stolen by another player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuse Java_ExternalVideoSurfaceContainer_destroy() and OnMediaInterrupted() Created 6 years 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/public/browser/android/external_video_surface_container.h
diff --git a/content/public/browser/android/external_video_surface_container.h b/content/public/browser/android/external_video_surface_container.h
index 38cbe5987bac76912dcae34ef3502e4e4ffe0f9a..a42aff2c0ff61cba1ec66ce44f4b3a45d9a9297c 100644
--- a/content/public/browser/android/external_video_surface_container.h
+++ b/content/public/browser/android/external_video_surface_container.h
@@ -32,9 +32,16 @@ class CONTENT_EXPORT ExternalVideoSurfaceContainer {
const SurfaceCreatedCB& surface_created_cb,
const SurfaceDestroyedCB& surface_destroyed_cb) = 0;
- // Called when a media player wants to release an external video surface.
+ // Returns id of player currently using the external video surface.
+ virtual int GetCurrentPlayerId() = 0;
+
+ // Called when a media player wants to release a certain player's external
+ // video surface.
virtual void ReleaseExternalVideoSurface(int player_id) = 0;
+ // Called when a media player wants to release current external video surface.
+ virtual void ReleaseCurrentExternalVideoSurface() = 0;
+
// Called when the position and size of the video element which uses
// the external video surface is changed.
// |rect| contains the new position and size in css pixels.

Powered by Google App Engine
This is Rietveld 408576698