From 9d8c6da308c378adb3236b3723918897aca039e6 Mon Sep 17 00:00:00 2001 From: "ajwong@chromium.org" Date: Fri, 21 Aug 2009 20:00:30 +0000 Subject: Correct network state and ready state reporting. For network state, make it return "loading" for everything that's not a file source since our cache does not yet reliably support caching the full media w/o need for a network. For ready state, correctly handle seeks to drop from HaveEnoughData down to HaveMetaData until the seek completes. Also implement the seeking() function. BUG=18975 TEST=none Review URL: http://codereview.chromium.org/165432 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24002 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/pipeline_impl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'media/base/pipeline_impl.h') diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h index c448106..891404a 100644 --- a/media/base/pipeline_impl.h +++ b/media/base/pipeline_impl.h @@ -84,6 +84,7 @@ class PipelineImpl : public Pipeline, public FilterHost { virtual int64 GetTotalBytes() const; virtual void GetVideoSize(size_t* width_out, size_t* height_out) const; virtual bool IsStreaming() const; + virtual bool IsLoaded() const; virtual PipelineError GetError() const; // Sets a permanent callback owned by the pipeline that will be executed when @@ -143,6 +144,7 @@ class PipelineImpl : public Pipeline, public FilterHost { virtual void SetBufferedBytes(int64 buffered_bytes); virtual void SetVideoSize(size_t width, size_t height); virtual void SetStreaming(bool streamed); + virtual void SetLoaded(bool loaded); virtual void NotifyEnded(); virtual void BroadcastMessage(FilterMessage message); @@ -293,6 +295,10 @@ class PipelineImpl : public Pipeline, public FilterHost { // source. bool streaming_; + // Sets by the filters to indicate whether the data source is a fully + // loaded source. + bool loaded_; + // Current volume level (from 0.0f to 1.0f). This value is set immediately // via SetVolume() and a task is dispatched on the message loop to notify the // filters. -- cgit v1.1