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

Side by Side Diff: media/filters/dummy_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: . 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
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/dummy_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Implements the Demuxer interface. DummyDemuxer returns corresponding 5 // Implements the Demuxer interface. DummyDemuxer returns corresponding
6 // DummyDemuxerStream as signal for media pipeline to construct correct 6 // DummyDemuxerStream as signal for media pipeline to construct correct
7 // playback channels. 7 // playback channels.
8 8
9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ 9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_
10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_ 10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_
(...skipping 30 matching lines...) Expand all
41 class DummyDemuxer : public Demuxer { 41 class DummyDemuxer : public Demuxer {
42 public: 42 public:
43 DummyDemuxer(bool has_video, bool has_audio); 43 DummyDemuxer(bool has_video, bool has_audio);
44 virtual ~DummyDemuxer(); 44 virtual ~DummyDemuxer();
45 45
46 // Demuxer implementation. 46 // Demuxer implementation.
47 virtual scoped_refptr<DemuxerStream> GetStream( 47 virtual scoped_refptr<DemuxerStream> GetStream(
48 DemuxerStream::Type type) OVERRIDE; 48 DemuxerStream::Type type) OVERRIDE;
49 virtual void SetPreload(Preload preload) OVERRIDE; 49 virtual void SetPreload(Preload preload) OVERRIDE;
50 virtual base::TimeDelta GetStartTime() const OVERRIDE; 50 virtual base::TimeDelta GetStartTime() const OVERRIDE;
51 virtual int GetBitrate() OVERRIDE;
51 52
52 private: 53 private:
53 bool has_video_; 54 bool has_video_;
54 bool has_audio_; 55 bool has_audio_;
55 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; 56 std::vector< scoped_refptr<DummyDemuxerStream> > streams_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); 58 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer);
58 }; 59 };
59 60
60 } // namespace media 61 } // namespace media
61 62
62 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ 63 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/dummy_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698