| 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_PLAYER_ANDROID_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual bool CanSeekBackward() = 0; | 77 virtual bool CanSeekBackward() = 0; |
| 78 | 78 |
| 79 // Methods for DeumxerStreamPlayer. | 79 // Methods for DeumxerStreamPlayer. |
| 80 // Informs DemuxerStreamPlayer that the demuxer is ready. | 80 // Informs DemuxerStreamPlayer that the demuxer is ready. |
| 81 virtual void DemuxerReady( | 81 virtual void DemuxerReady( |
| 82 const MediaPlayerHostMsg_DemuxerReady_Params& params); | 82 const MediaPlayerHostMsg_DemuxerReady_Params& params); |
| 83 // Called when the requested data is received from the demuxer. | 83 // Called when the requested data is received from the demuxer. |
| 84 virtual void ReadFromDemuxerAck( | 84 virtual void ReadFromDemuxerAck( |
| 85 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); | 85 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); |
| 86 | 86 |
| 87 // Called when a seek request is acked by the render process. |
| 88 virtual void OnSeekRequestAck(); |
| 89 |
| 87 int player_id() { return player_id_; } | 90 int player_id() { return player_id_; } |
| 88 | 91 |
| 89 protected: | 92 protected: |
| 90 MediaPlayerAndroid(int player_id, | 93 MediaPlayerAndroid(int player_id, |
| 91 MediaPlayerManager* manager); | 94 MediaPlayerManager* manager); |
| 92 | 95 |
| 93 // Called when player status changes. | 96 // Called when player status changes. |
| 94 virtual void OnMediaError(int error_type); | 97 virtual void OnMediaError(int error_type); |
| 95 virtual void OnVideoSizeChanged(int width, int height); | 98 virtual void OnVideoSizeChanged(int width, int height); |
| 96 virtual void OnBufferingUpdate(int percent); | 99 virtual void OnBufferingUpdate(int percent); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 113 | 116 |
| 114 // Resource manager for all the media players. | 117 // Resource manager for all the media players. |
| 115 MediaPlayerManager* manager_; | 118 MediaPlayerManager* manager_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); | 120 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace media | 123 } // namespace media |
| 121 | 124 |
| 122 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 125 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| OLD | NEW |