| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 // Notify the host that buffered time ranges have changed. Note that buffered | 31 // Notify the host that buffered time ranges have changed. Note that buffered |
| 32 // time ranges can grow (when new media data is appended), but they can also | 32 // time ranges can grow (when new media data is appended), but they can also |
| 33 // shrink (when buffering reaches limit capacity and some buffered data | 33 // shrink (when buffering reaches limit capacity and some buffered data |
| 34 // becomes evicted, e.g. due to MSE GC algorithm, or by explicit removal of | 34 // becomes evicted, e.g. due to MSE GC algorithm, or by explicit removal of |
| 35 // ranges directed by MSE web app). | 35 // ranges directed by MSE web app). |
| 36 virtual void OnBufferedTimeRangesChanged( | 36 virtual void OnBufferedTimeRangesChanged( |
| 37 const Ranges<base::TimeDelta>& ranges) = 0; | 37 const Ranges<base::TimeDelta>& ranges) = 0; |
| 38 | 38 |
| 39 // Sets the duration of the media in microseconds. | 39 // Sets the duration of the media in microseconds. |
| 40 // Duration may be kInfiniteDuration() if the duration is not known. | 40 // Duration may be kInfiniteDuration if the duration is not known. |
| 41 virtual void SetDuration(base::TimeDelta duration) = 0; | 41 virtual void SetDuration(base::TimeDelta duration) = 0; |
| 42 | 42 |
| 43 // Stops execution of the pipeline due to a fatal error. Do not call this | 43 // Stops execution of the pipeline due to a fatal error. Do not call this |
| 44 // method with PIPELINE_OK. Stopping is not immediate so demuxers must be | 44 // method with PIPELINE_OK. Stopping is not immediate so demuxers must be |
| 45 // prepared to soft fail on subsequent calls. E.g., if Demuxer::Seek() is | 45 // prepared to soft fail on subsequent calls. E.g., if Demuxer::Seek() is |
| 46 // called after an unrecoverable error the provided PipelineStatusCB must be | 46 // called after an unrecoverable error the provided PipelineStatusCB must be |
| 47 // called with an error. | 47 // called with an error. |
| 48 virtual void OnDemuxerError(PipelineStatus error) = 0; | 48 virtual void OnDemuxerError(PipelineStatus error) = 0; |
| 49 | 49 |
| 50 // Add |text_stream| to the collection managed by the text renderer. | 50 // Add |text_stream| to the collection managed by the text renderer. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 const std::vector<MediaTrack::Id>& track_ids, | 145 const std::vector<MediaTrack::Id>& track_ids, |
| 146 base::TimeDelta currTime) = 0; | 146 base::TimeDelta currTime) = 0; |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 149 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace media | 152 } // namespace media |
| 153 | 153 |
| 154 #endif // MEDIA_BASE_DEMUXER_H_ | 154 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |