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

Unified Diff: media/mojo/interfaces/renderer.mojom

Issue 2075303002: [DO NOT COMMIT] Initial MediaPlayerRenderer plumbing and basic features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: media/mojo/interfaces/renderer.mojom
diff --git a/media/mojo/interfaces/renderer.mojom b/media/mojo/interfaces/renderer.mojom
index 16267c4ce5a3a2b2f52b88b4e8ed3bdf7707a3d0..69ba95556e230ac7ef660be854b303b9fcedaabf 100644
--- a/media/mojo/interfaces/renderer.mojom
+++ b/media/mojo/interfaces/renderer.mojom
@@ -13,7 +13,9 @@ interface Renderer {
// executing the callback with whether the initialization succeeded.
Initialize(RendererClient client,
DemuxerStream? audio,
- DemuxerStream? video) => (bool success);
+ DemuxerStream? video,
+ string? url,
xhwang 2016/06/22 17:39:02 In the future we may want to wrap audio, video and
+ int64 surface_id) => (bool success);
xhwang 2016/06/22 17:39:02 In C++, currently we pass the |request_surface_cb|
xhwang 2016/06/22 17:43:09 For more background, we try to keep the mojo part
sandersd (OOO until July 31) 2016/06/23 18:43:35 The last time we talked, we decided against parame
// Discards any buffered data, executing callback when completed.
// NOTE: If an error occurs, RendererClient::OnError() can be called
@@ -59,4 +61,8 @@ interface RendererClient {
// Executed for the first video frame and whenever opacity changes.
OnVideoOpacityChange(bool opaque);
+
+ // Executed the first time the metadata is updated, and whenever the duration
+ // changes.
+ OnDurationChange(int64 duration_usec);
};

Powered by Google App Engine
This is Rietveld 408576698