| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Get the media information from the player. | 68 // Get the media information from the player. |
| 69 virtual int GetVideoWidth() = 0; | 69 virtual int GetVideoWidth() = 0; |
| 70 virtual int GetVideoHeight() = 0; | 70 virtual int GetVideoHeight() = 0; |
| 71 virtual base::TimeDelta GetDuration() = 0; | 71 virtual base::TimeDelta GetDuration() = 0; |
| 72 virtual base::TimeDelta GetCurrentTime() = 0; | 72 virtual base::TimeDelta GetCurrentTime() = 0; |
| 73 virtual bool IsPlaying() = 0; | 73 virtual bool IsPlaying() = 0; |
| 74 virtual bool IsPlayerReady() = 0; | 74 virtual bool IsPlayerReady() = 0; |
| 75 virtual bool CanPause() = 0; | 75 virtual bool CanPause() = 0; |
| 76 virtual bool CanSeekForward() = 0; | 76 virtual bool CanSeekForward() = 0; |
| 77 virtual bool CanSeekBackward() = 0; | 77 virtual bool CanSeekBackward() = 0; |
| 78 virtual GURL GetUrl(); |
| 79 virtual GURL GetFirstPartyForCookies(); |
| 78 | 80 |
| 79 // Methods for DeumxerStreamPlayer. | 81 // Methods for DeumxerStreamPlayer. |
| 80 // Informs DemuxerStreamPlayer that the demuxer is ready. | 82 // Informs DemuxerStreamPlayer that the demuxer is ready. |
| 81 virtual void DemuxerReady( | 83 virtual void DemuxerReady( |
| 82 const MediaPlayerHostMsg_DemuxerReady_Params& params); | 84 const MediaPlayerHostMsg_DemuxerReady_Params& params); |
| 83 // Called when the requested data is received from the demuxer. | 85 // Called when the requested data is received from the demuxer. |
| 84 virtual void ReadFromDemuxerAck( | 86 virtual void ReadFromDemuxerAck( |
| 85 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); | 87 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); |
| 86 | 88 |
| 87 int player_id() { return player_id_; } | 89 int player_id() { return player_id_; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 113 | 115 |
| 114 // Resource manager for all the media players. | 116 // Resource manager for all the media players. |
| 115 MediaPlayerManager* manager_; | 117 MediaPlayerManager* manager_; |
| 116 | 118 |
| 117 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); | 119 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 } // namespace media | 122 } // namespace media |
| 121 | 123 |
| 122 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 124 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| OLD | NEW |