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

Unified Diff: media/filters/ffmpeg_demuxer.h

Issue 236023003: Add WebMediaPlayer::timelineOffset() support to WebMediaPlayerImpl. (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 side-by-side diff with in-line comments
Download patch
Index: media/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 7acdd430ccca06761479d859e8740d063cf50d08..60506521f43f1453a0437bdd98bbde20b7c1be70 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -154,6 +154,7 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
virtual void OnAudioRendererDisabled() OVERRIDE;
virtual DemuxerStream* GetStream(DemuxerStream::Type type) OVERRIDE;
virtual base::TimeDelta GetStartTime() const OVERRIDE;
+ virtual base::Time GetWallclockTimelineOffset() const OVERRIDE;
// Calls |need_key_cb_| with the initialization data encountered in the file.
void FireNeedKey(const std::string& init_data_type,
@@ -246,6 +247,10 @@ class MEDIA_EXPORT FFmpegDemuxer : public Demuxer {
// is 0.
base::TimeDelta start_time_;
+ // The wallclock time associated with timestamp 0. Set to a null
+ // time if the file doesn't have an association to wallclock time.
+ base::Time wallclock_timeline_offset_;
+
// Whether audio has been disabled for this demuxer (in which case this class
// drops packets destined for AUDIO demuxer streams on the floor).
bool audio_disabled_;

Powered by Google App Engine
This is Rietveld 408576698