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

Side by Side Diff: media/filters/chunk_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: Move canplaythrough logic into pipeline; fix other stuff 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 19 matching lines...) Expand all
30 void Init(const PipelineStatusCB& cb); 30 void Init(const PipelineStatusCB& cb);
31 31
32 // Demuxer implementation. 32 // Demuxer implementation.
33 virtual void set_host(FilterHost* filter_host) OVERRIDE; 33 virtual void set_host(FilterHost* filter_host) OVERRIDE;
34 virtual void Stop(const base::Closure& callback) OVERRIDE; 34 virtual void Stop(const base::Closure& callback) OVERRIDE;
35 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; 35 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE;
36 virtual void OnAudioRendererDisabled() OVERRIDE; 36 virtual void OnAudioRendererDisabled() OVERRIDE;
37 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type); 37 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type);
38 virtual void SetPreload(Preload preload) OVERRIDE; 38 virtual void SetPreload(Preload preload) OVERRIDE;
39 virtual base::TimeDelta GetStartTime() const OVERRIDE; 39 virtual base::TimeDelta GetStartTime() const OVERRIDE;
40 virtual int GetBitrate() OVERRIDE;
40 41
41 // Methods used by an external object to control this demuxer. 42 // Methods used by an external object to control this demuxer.
42 void FlushData(); 43 void FlushData();
43 44
44 // Appends media data to the stream. Returns false if this method 45 // Appends media data to the stream. Returns false if this method
45 // is called in an invalid state. 46 // is called in an invalid state.
46 bool AppendData(const uint8* data, size_t length); 47 bool AppendData(const uint8* data, size_t length);
47 void EndOfStream(PipelineStatus status); 48 void EndOfStream(PipelineStatus status);
48 bool HasEnded(); 49 bool HasEnded();
49 void Shutdown(); 50 void Shutdown();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool seek_waits_for_data_; 122 bool seek_waits_for_data_;
122 123
123 ByteQueue byte_queue_; 124 ByteQueue byte_queue_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 126 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
126 }; 127 };
127 128
128 } // namespace media 129 } // namespace media
129 130
130 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 131 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698