From 7b268b7a549561344b59da31d58cbe3c6ca71dd8 Mon Sep 17 00:00:00 2001 From: "vrk@google.com" Date: Fri, 18 Nov 2011 19:52:08 +0000 Subject: 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 --- media/base/demuxer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'media/base/demuxer.h') 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_; } -- cgit v1.1