OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_DEMUXER_ANDROID_H_ | 5 #ifndef MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ |
6 #define MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ | 6 #define MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "media/base/demuxer_stream.h" | 9 #include "media/base/demuxer_stream.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Called when the demuxer has initialized. | 43 // Called when the demuxer has initialized. |
44 virtual void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) = 0; | 44 virtual void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) = 0; |
45 | 45 |
46 // Called in response to RequestDemuxerData(). | 46 // Called in response to RequestDemuxerData(). |
47 virtual void OnDemuxerDataAvailable(const DemuxerData& params) = 0; | 47 virtual void OnDemuxerDataAvailable(const DemuxerData& params) = 0; |
48 | 48 |
49 // Called in response to RequestDemuxerSeek(). | 49 // Called in response to RequestDemuxerSeek(). |
50 // If this is in response to a request with |is_browser_seek| set to true, | 50 // If this is in response to a request with |is_browser_seek| set to true, |
51 // then |actual_browser_seek_time| may differ from the requested | 51 // then |actual_browser_seek_time| may differ from the requested |
52 // |time_to_seek|, and reflects the actual time seeked to by the demuxer. | 52 // |time_to_seek|, and reflects the actual time seeked to by the demuxer. |
53 // For regular demuxer seeks, |actual_browser_seek_time| is kNoTimestamp() and | 53 // For regular demuxer seeks, |actual_browser_seek_time| is kNoTimestamp and |
54 // should be ignored by browser player. | 54 // should be ignored by browser player. |
55 virtual void OnDemuxerSeekDone( | 55 virtual void OnDemuxerSeekDone( |
56 base::TimeDelta actual_browser_seek_time) = 0; | 56 base::TimeDelta actual_browser_seek_time) = 0; |
57 | 57 |
58 // Called whenever the demuxer has detected a duration change. | 58 // Called whenever the demuxer has detected a duration change. |
59 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) = 0; | 59 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) = 0; |
60 | 60 |
61 protected: | 61 protected: |
62 virtual ~DemuxerAndroidClient() {} | 62 virtual ~DemuxerAndroidClient() {} |
63 }; | 63 }; |
64 | 64 |
65 } // namespace media | 65 } // namespace media |
66 | 66 |
67 #endif // MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ | 67 #endif // MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ |
OLD | NEW |