OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_MEDIA_SOURCE_PLAYER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual int GetVideoWidth() OVERRIDE; | 51 virtual int GetVideoWidth() OVERRIDE; |
52 virtual int GetVideoHeight() OVERRIDE; | 52 virtual int GetVideoHeight() OVERRIDE; |
53 virtual base::TimeDelta GetCurrentTime() OVERRIDE; | 53 virtual base::TimeDelta GetCurrentTime() OVERRIDE; |
54 virtual base::TimeDelta GetDuration() OVERRIDE; | 54 virtual base::TimeDelta GetDuration() OVERRIDE; |
55 virtual bool IsPlaying() OVERRIDE; | 55 virtual bool IsPlaying() OVERRIDE; |
56 virtual bool CanPause() OVERRIDE; | 56 virtual bool CanPause() OVERRIDE; |
57 virtual bool CanSeekForward() OVERRIDE; | 57 virtual bool CanSeekForward() OVERRIDE; |
58 virtual bool CanSeekBackward() OVERRIDE; | 58 virtual bool CanSeekBackward() OVERRIDE; |
59 virtual bool IsPlayerReady() OVERRIDE; | 59 virtual bool IsPlayerReady() OVERRIDE; |
60 virtual void OnSeekRequestAck(unsigned seek_request_id) OVERRIDE; | 60 virtual void OnSeekRequestAck(unsigned seek_request_id) OVERRIDE; |
61 virtual void DemuxerReady( | 61 virtual void DemuxerReady(const DemuxerConfigs& configs) OVERRIDE; |
62 const MediaPlayerHostMsg_DemuxerReady_Params& params) OVERRIDE; | 62 virtual void ReadFromDemuxerAck(const DemuxerData& data) OVERRIDE; |
63 virtual void ReadFromDemuxerAck( | |
64 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) OVERRIDE; | |
65 virtual void DurationChanged(const base::TimeDelta& duration) OVERRIDE; | 63 virtual void DurationChanged(const base::TimeDelta& duration) OVERRIDE; |
66 virtual void SetDrmBridge(MediaDrmBridge* drm_bridge) OVERRIDE; | 64 virtual void SetDrmBridge(MediaDrmBridge* drm_bridge) OVERRIDE; |
67 | 65 |
68 private: | 66 private: |
69 // Update the current timestamp. | 67 // Update the current timestamp. |
70 void UpdateTimestamps(const base::TimeDelta& presentation_timestamp, | 68 void UpdateTimestamps(const base::TimeDelta& presentation_timestamp, |
71 size_t audio_output_bytes); | 69 size_t audio_output_bytes); |
72 | 70 |
73 // Helper function for starting media playback. | 71 // Helper function for starting media playback. |
74 void StartInternal(); | 72 void StartInternal(); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 199 |
202 MediaDrmBridge* drm_bridge_; | 200 MediaDrmBridge* drm_bridge_; |
203 | 201 |
204 friend class MediaSourcePlayerTest; | 202 friend class MediaSourcePlayerTest; |
205 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); | 203 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); |
206 }; | 204 }; |
207 | 205 |
208 } // namespace media | 206 } // namespace media |
209 | 207 |
210 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 208 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
OLD | NEW |