OLD | NEW |
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 #ifndef MEDIA_BASE_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_H_ |
6 #define MEDIA_BASE_DEMUXER_H_ | 6 #define MEDIA_BASE_DEMUXER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // TODO(scherkus): this might not be needed http://crbug.com/234708 | 80 // TODO(scherkus): this might not be needed http://crbug.com/234708 |
81 virtual void OnAudioRendererDisabled() = 0; | 81 virtual void OnAudioRendererDisabled() = 0; |
82 | 82 |
83 // Returns the first stream of the given stream type (which is not allowed | 83 // Returns the first stream of the given stream type (which is not allowed |
84 // to be DemuxerStream::TEXT), or NULL if that type of stream is not present. | 84 // to be DemuxerStream::TEXT), or NULL if that type of stream is not present. |
85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; | 85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; |
86 | 86 |
87 // Returns the starting time for the media file. | 87 // Returns the starting time for the media file. |
88 virtual base::TimeDelta GetStartTime() const = 0; | 88 virtual base::TimeDelta GetStartTime() const = 0; |
89 | 89 |
| 90 // Returns Time represented by presentation timestamp 0. |
| 91 // If the timstamps are not associated with a Time, then |
| 92 // a null Time is returned. |
| 93 virtual base::Time GetTimelineOffset() const = 0; |
| 94 |
90 private: | 95 private: |
91 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 96 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
92 }; | 97 }; |
93 | 98 |
94 } // namespace media | 99 } // namespace media |
95 | 100 |
96 #endif // MEDIA_BASE_DEMUXER_H_ | 101 #endif // MEDIA_BASE_DEMUXER_H_ |
OLD | NEW |