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

Side by Side Diff: media/filters/ffmpeg_demuxer.h

Issue 231283005: Add live mode detection in WebM MediaSource parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 using FFmpeg's libavformat. At this time 5 // Implements the Demuxer interface using FFmpeg's libavformat. At this time
6 // will support demuxing any audio/video format thrown at it. The streams 6 // will support demuxing any audio/video format thrown at it. The streams
7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer
8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs
9 // can be used to create and initialize the corresponding FFmpeg decoder. 9 // can be used to create and initialize the corresponding FFmpeg decoder.
10 // 10 //
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Demuxer implementation. 148 // Demuxer implementation.
149 virtual void Initialize(DemuxerHost* host, 149 virtual void Initialize(DemuxerHost* host,
150 const PipelineStatusCB& status_cb, 150 const PipelineStatusCB& status_cb,
151 bool enable_text_tracks) OVERRIDE; 151 bool enable_text_tracks) OVERRIDE;
152 virtual void Stop(const base::Closure& callback) OVERRIDE; 152 virtual void Stop(const base::Closure& callback) OVERRIDE;
153 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; 153 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE;
154 virtual void OnAudioRendererDisabled() OVERRIDE; 154 virtual void OnAudioRendererDisabled() OVERRIDE;
155 virtual DemuxerStream* GetStream(DemuxerStream::Type type) OVERRIDE; 155 virtual DemuxerStream* GetStream(DemuxerStream::Type type) OVERRIDE;
156 virtual base::TimeDelta GetStartTime() const OVERRIDE; 156 virtual base::TimeDelta GetStartTime() const OVERRIDE;
157 virtual base::Time GetTimelineOffset() const OVERRIDE; 157 virtual base::Time GetTimelineOffset() const OVERRIDE;
158 virtual bool IsLiveMode() const OVERRIDE;
158 159
159 // Calls |need_key_cb_| with the initialization data encountered in the file. 160 // Calls |need_key_cb_| with the initialization data encountered in the file.
160 void FireNeedKey(const std::string& init_data_type, 161 void FireNeedKey(const std::string& init_data_type,
161 const std::string& encryption_key_id); 162 const std::string& encryption_key_id);
162 163
163 // Allow FFmpegDemuxerStream to notify us when there is updated information 164 // Allow FFmpegDemuxerStream to notify us when there is updated information
164 // about capacity and what buffered data is available. 165 // about capacity and what buffered data is available.
165 void NotifyCapacityAvailable(); 166 void NotifyCapacityAvailable();
166 void NotifyBufferingChanged(); 167 void NotifyBufferingChanged();
167 168
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 271
271 // NOTE: Weak pointers must be invalidated before all other member variables. 272 // NOTE: Weak pointers must be invalidated before all other member variables.
272 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; 273 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_;
273 274
274 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); 275 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
275 }; 276 };
276 277
277 } // namespace media 278 } // namespace media
278 279
279 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ 280 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698