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

Unified Diff: media/base/demuxer.h

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move canplaythrough logic into pipeline; fix other stuff Created 9 years, 2 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 | media/base/pipeline.h » ('j') | media/base/pipeline_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index d6013ff446b75c27f787a50bb8ddd0d375a9d30b..51e03a1778d41920cd8fa379732b0373d591db8e 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -57,6 +57,10 @@ class MEDIA_EXPORT Demuxer
// Returns the starting time for the media file.
virtual base::TimeDelta GetStartTime() const = 0;
+ // Returns the bitrate of media file. May be obtained from container or
acolwell GONE FROM CHROMIUM 2011/10/28 18:24:13 s/content bitrate/bitrate of media file/ since Chu
vrk (LEFT CHROMIUM) 2011/11/01 21:57:34 Done.
+ // approximated. Returns 0 if it is unknown.
+ virtual int GetBitrate() = 0;
+
protected:
Demuxer();
FilterHost* host() { return host_; }
« no previous file with comments | « no previous file | media/base/pipeline.h » ('j') | media/base/pipeline_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698