diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 19:52:08 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 19:52:08 +0000 |
commit | 7b268b7a549561344b59da31d58cbe3c6ca71dd8 (patch) | |
tree | b93d5a298c4e40b896026ed02a28efb999701d35 /media/base/demuxer.h | |
parent | 49d633905b2467796aa6a4794f64001664358334 (diff) | |
download | chromium_src-7b268b7a549561344b59da31d58cbe3c6ca71dd8.zip chromium_src-7b268b7a549561344b59da31d58cbe3c6ca71dd8.tar.gz chromium_src-7b268b7a549561344b59da31d58cbe3c6ca71dd8.tar.bz2 |
Fire canplaythrough event at the proper time for audio/video
In this CL, the browser fires the canplaythrough event based on an
approximation of the download speed of the media instead of firing the
event right away.
BUG=73609
TEST=NONE
Review URL: http://codereview.chromium.org/8399023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/demuxer.h')
-rw-r--r-- | media/base/demuxer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/demuxer.h b/media/base/demuxer.h index d6013ff..a75f248 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_; } |