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

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: . Created 9 years, 1 month 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/download_rate_monitor.h » ('j') | no next file with comments »
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..a75f248844cab6d65efa415e7c065ff0ad0e2d61 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 content bitrate. May be obtained from container or
+ // 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/download_rate_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698