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(); | |
bulach
2013/05/29 18:31:23
can these be pure virtuals, or at least move tho t
whywhat
2013/05/29 18:50:12
Nope, not every MediaPlayerAndroid will have a URL
| |
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 // Called when a seek request is acked by the render process. | 89 // Called when a seek request is acked by the render process. |
(...skipping 28 matching lines...) Expand all Loading... | |
116 | 118 |
117 // Resource manager for all the media players. | 119 // Resource manager for all the media players. |
118 MediaPlayerManager* manager_; | 120 MediaPlayerManager* manager_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); | 122 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
121 }; | 123 }; |
122 | 124 |
123 } // namespace media | 125 } // namespace media |
124 | 126 |
125 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 127 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
OLD | NEW |