| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual bool IsPlaying() = 0; | 81 virtual bool IsPlaying() = 0; |
| 82 virtual bool IsPlayerReady() = 0; | 82 virtual bool IsPlayerReady() = 0; |
| 83 virtual bool CanPause() = 0; | 83 virtual bool CanPause() = 0; |
| 84 virtual bool CanSeekForward() = 0; | 84 virtual bool CanSeekForward() = 0; |
| 85 virtual bool CanSeekBackward() = 0; | 85 virtual bool CanSeekBackward() = 0; |
| 86 virtual GURL GetUrl(); | 86 virtual GURL GetUrl(); |
| 87 virtual GURL GetFirstPartyForCookies(); | 87 virtual GURL GetFirstPartyForCookies(); |
| 88 | 88 |
| 89 // Methods for DemuxerStreamPlayer. | 89 // Methods for DemuxerStreamPlayer. |
| 90 // Informs DemuxerStreamPlayer that the demuxer is ready. | 90 // Informs DemuxerStreamPlayer that the demuxer is ready. |
| 91 virtual void DemuxerReady( | 91 virtual void DemuxerReady(const MediaConfigs& configs); |
| 92 const MediaPlayerHostMsg_DemuxerReady_Params& params); | 92 |
| 93 // Called when the requested data is received from the demuxer. | 93 // Called when the requested data is received from the demuxer. |
| 94 virtual void ReadFromDemuxerAck( | 94 virtual void ReadFromDemuxerAck(const MediaData& data); |
| 95 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); | |
| 96 | 95 |
| 97 // Called when a seek request is acked by the render process. | 96 // Called when a seek request is acked by the render process. |
| 98 virtual void OnSeekRequestAck(unsigned seek_request_id); | 97 virtual void OnSeekRequestAck(unsigned seek_request_id); |
| 99 | 98 |
| 100 // Called when the demuxer has changed the duration. | 99 // Called when the demuxer has changed the duration. |
| 101 virtual void DurationChanged(const base::TimeDelta& duration); | 100 virtual void DurationChanged(const base::TimeDelta& duration); |
| 102 | 101 |
| 103 // Pass a drm bridge to a player. | 102 // Pass a drm bridge to a player. |
| 104 virtual void SetDrmBridge(MediaDrmBridge* drm_bridge); | 103 virtual void SetDrmBridge(MediaDrmBridge* drm_bridge); |
| 105 | 104 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 132 | 131 |
| 133 // Resource manager for all the media players. | 132 // Resource manager for all the media players. |
| 134 MediaPlayerManager* manager_; | 133 MediaPlayerManager* manager_; |
| 135 | 134 |
| 136 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); | 135 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 } // namespace media | 138 } // namespace media |
| 140 | 139 |
| 141 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 140 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| OLD | NEW |