| 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 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 virtual ~MediaPlayerManager() {} | 22 virtual ~MediaPlayerManager() {} |
| 23 | 23 |
| 24 // Returns a pointer to the MediaResourceGetter object. | 24 // Returns a pointer to the MediaResourceGetter object. |
| 25 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; | 25 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; |
| 26 | 26 |
| 27 // Returns a pointer to the MediaUrlInterceptor object or null. | 27 // Returns a pointer to the MediaUrlInterceptor object or null. |
| 28 virtual MediaUrlInterceptor* GetMediaUrlInterceptor() = 0; | 28 virtual MediaUrlInterceptor* GetMediaUrlInterceptor() = 0; |
| 29 | 29 |
| 30 // Called when time update messages need to be sent. Args: player ID, | 30 // Called when time update messages need to be sent. Args: player ID, |
| 31 // current time. | 31 // current timestamp, current time ticks. |
| 32 virtual void OnTimeUpdate(int player_id, base::TimeDelta current_time) = 0; | 32 virtual void OnTimeUpdate(int player_id, |
| 33 base::TimeDelta current_timestamp, |
| 34 base::TimeTicks current_time_ticks) = 0; |
| 33 | 35 |
| 34 // Called when media metadata changed. Args: player ID, duration of the | 36 // Called when media metadata changed. Args: player ID, duration of the |
| 35 // media, width, height, whether the metadata is successfully extracted. | 37 // media, width, height, whether the metadata is successfully extracted. |
| 36 virtual void OnMediaMetadataChanged( | 38 virtual void OnMediaMetadataChanged( |
| 37 int player_id, | 39 int player_id, |
| 38 base::TimeDelta duration, | 40 base::TimeDelta duration, |
| 39 int width, | 41 int width, |
| 40 int height, | 42 int height, |
| 41 bool success) = 0; | 43 bool success) = 0; |
| 42 | 44 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 73 #if defined(VIDEO_HOLE) | 75 #if defined(VIDEO_HOLE) |
| 74 // Returns true if a media player should use video-overlay for the embedded | 76 // Returns true if a media player should use video-overlay for the embedded |
| 75 // encrypted video. | 77 // encrypted video. |
| 76 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; | 78 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; |
| 77 #endif // defined(VIDEO_HOLE) | 79 #endif // defined(VIDEO_HOLE) |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace media | 82 } // namespace media |
| 81 | 83 |
| 82 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 84 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |