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

Unified Diff: media/base/renderer_client.h

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Fixed typo Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer_client.h
diff --git a/media/base/renderer_client.h b/media/base/renderer_client.h
index 49b098e70511d3ecc978794e3013c34e7ebd52b6..402c31b2e877db6a9a2b292392df282d9bb5efc9 100644
--- a/media/base/renderer_client.h
+++ b/media/base/renderer_client.h
@@ -5,13 +5,14 @@
#ifndef MEDIA_BASE_RENDERER_CLIENT_H_
#define MEDIA_BASE_RENDERER_CLIENT_H_
+#include "base/time/time.h"
#include "media/base/pipeline_status.h"
#include "ui/gfx/geometry/size.h"
namespace media {
-// Interface used by Renderer, AudioRenderer, and VideoRenderer implementations
-// to notify their clients.
+// Interface used by Renderer, AudioRenderer, VideoRenderer and
+// MediaPlayerRenderer implementations to notify their clients.
class RendererClient {
public:
// Executed if any error was encountered after Renderer initialization.
@@ -36,6 +37,10 @@ class RendererClient {
// Executed for the first video frame and whenever opacity changes.
// Only used if media stream contains video track.
virtual void OnVideoOpacityChange(bool opaque) = 0;
+
+ // Executed when video metadata is first read, and whenever it changes.
+ // Only used when we are using a URL demuxer (e.g. for MediaPlayerRenderer).
+ virtual void OnDurationChange(base::TimeDelta duration) = 0;
};
} // namespace media
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698