| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "media/base/android/demuxer_stream_player_params.h" | 10 #include "media/base/android/demuxer_stream_player_params.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void OnSeekComplete( | 56 virtual void OnSeekComplete( |
| 57 int player_id, | 57 int player_id, |
| 58 const base::TimeDelta& current_time) = 0; | 58 const base::TimeDelta& current_time) = 0; |
| 59 | 59 |
| 60 // Called when error happens. Args: player ID, error type. | 60 // Called when error happens. Args: player ID, error type. |
| 61 virtual void OnError(int player_id, int error) = 0; | 61 virtual void OnError(int player_id, int error) = 0; |
| 62 | 62 |
| 63 // Called when video size has changed. Args: player ID, width, height. | 63 // Called when video size has changed. Args: player ID, width, height. |
| 64 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0; | 64 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0; |
| 65 | 65 |
| 66 // Called when the player thinks it stopped or started making sound. |
| 67 virtual void OnAudibleStateChanged(int player_id, bool is_audible_now) = 0; |
| 68 |
| 66 // Returns the player that's in the fullscreen mode currently. | 69 // Returns the player that's in the fullscreen mode currently. |
| 67 virtual MediaPlayerAndroid* GetFullscreenPlayer() = 0; | 70 virtual MediaPlayerAndroid* GetFullscreenPlayer() = 0; |
| 68 | 71 |
| 69 // Returns the player with the specified id. | 72 // Returns the player with the specified id. |
| 70 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0; | 73 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0; |
| 71 | 74 |
| 72 // Called by the player to get a hardware protected surface. | 75 // Called by the player to get a hardware protected surface. |
| 73 virtual void RequestFullScreen(int player_id) = 0; | 76 virtual void RequestFullScreen(int player_id) = 0; |
| 74 | 77 |
| 75 #if defined(VIDEO_HOLE) | 78 #if defined(VIDEO_HOLE) |
| 76 // Returns true if a media player should use video-overlay for the embedded | 79 // Returns true if a media player should use video-overlay for the embedded |
| 77 // encrypted video. | 80 // encrypted video. |
| 78 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; | 81 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; |
| 79 #endif // defined(VIDEO_HOLE) | 82 #endif // defined(VIDEO_HOLE) |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace media | 85 } // namespace media |
| 83 | 86 |
| 84 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 87 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |