summaryrefslogtreecommitdiffstats
path: root/media/base/pipeline_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/pipeline_impl.h')
-rw-r--r--media/base/pipeline_impl.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index 27ce43f..61f360b 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -79,7 +79,7 @@ class PipelineImpl : public Pipeline, public FilterHost {
virtual float GetVolume() const;
virtual void SetVolume(float volume);
virtual base::TimeDelta GetCurrentTime() const;
- virtual base::TimeDelta GetBufferedTime() const;
+ virtual base::TimeDelta GetBufferedTime();
virtual base::TimeDelta GetMediaDuration() const;
virtual int64 GetBufferedBytes() const;
virtual int64 GetTotalBytes() const;
@@ -153,6 +153,8 @@ class PipelineImpl : public Pipeline, public FilterHost {
virtual void SetNetworkActivity(bool network_activity);
virtual void NotifyEnded();
virtual void DisableAudioRenderer();
+ virtual void SetCurrentReadPosition(int64 offset);
+ virtual int64 GetCurrentReadPosition();
// Method called during initialization to insert a mime type into the
// |rendered_mime_types_| set.
@@ -357,6 +359,15 @@ class PipelineImpl : public Pipeline, public FilterHost {
// replies.
base::TimeDelta seek_timestamp_;
+ // For GetCurrentBytes()/SetCurrentBytes() we need to know what byte we are
+ // currently reading.
+ int64 current_bytes_;
+
+ // Keep track of the maximum buffered position so the buffering appears
+ // smooth.
+ // TODO(vrk): This is a hack.
+ double max_buffered_time_;
+
// Filter factory as passed in by Start().
scoped_refptr<FilterFactory> filter_factory_;