| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Start playing the media. | 46 // Start playing the media. |
| 47 virtual void Start() = 0; | 47 virtual void Start() = 0; |
| 48 | 48 |
| 49 // Pause the media. | 49 // Pause the media. |
| 50 virtual void Pause(bool is_media_related_action) = 0; | 50 virtual void Pause(bool is_media_related_action) = 0; |
| 51 | 51 |
| 52 // Seek to a particular position, based on renderer signaling actual seek | 52 // Seek to a particular position, based on renderer signaling actual seek |
| 53 // with MediaPlayerHostMsg_Seek. If eventual success, OnSeekComplete() will be | 53 // with MediaPlayerHostMsg_Seek. If eventual success, OnSeekComplete() will be |
| 54 // called. | 54 // called. |
| 55 virtual void SeekTo(const base::TimeDelta& timestamp) = 0; | 55 virtual void SeekTo(base::TimeDelta timestamp) = 0; |
| 56 | 56 |
| 57 // Release the player resources. | 57 // Release the player resources. |
| 58 virtual void Release() = 0; | 58 virtual void Release() = 0; |
| 59 | 59 |
| 60 // Set the player volume. | 60 // Set the player volume. |
| 61 virtual void SetVolume(double volume) = 0; | 61 virtual void SetVolume(double volume) = 0; |
| 62 | 62 |
| 63 // Get the media information from the player. | 63 // Get the media information from the player. |
| 64 virtual bool IsRemote() const; | 64 virtual bool IsRemote() const; |
| 65 virtual int GetVideoWidth() = 0; | 65 virtual int GetVideoWidth() = 0; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Resource manager for all the media players. | 105 // Resource manager for all the media players. |
| 106 MediaPlayerManager* manager_; | 106 MediaPlayerManager* manager_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); | 108 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace media | 111 } // namespace media |
| 112 | 112 |
| 113 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ | 113 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ |
| OLD | NEW |