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" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 class MediaPlayerAndroid; | 15 class MediaPlayerAndroid; |
16 class MediaResourceGetter; | 16 class MediaResourceGetter; |
17 class MediaUrlInterceptor; | |
17 | 18 |
18 // This class is responsible for managing active MediaPlayerAndroid objects. | 19 // This class is responsible for managing active MediaPlayerAndroid objects. |
19 class MEDIA_EXPORT MediaPlayerManager { | 20 class MEDIA_EXPORT MediaPlayerManager { |
20 public: | 21 public: |
21 virtual ~MediaPlayerManager() {} | 22 virtual ~MediaPlayerManager() {} |
22 | 23 |
23 // Return a pointer to the MediaResourceGetter object. | 24 // Return a pointer to the MediaResourceGetter object. |
24 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; | 25 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; |
25 | 26 |
27 // Return a pointer to the MediaUrlInterceptor object or null. | |
qinmin
2014/07/24 21:05:27
s/Return/Returns/
Ignacio Solla
2014/07/25 10:35:07
Done.
| |
28 virtual MediaUrlInterceptor* GetMediaUrlInterceptor() = 0; | |
29 | |
26 // 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, |
27 // current time. | 31 // current time. |
28 virtual void OnTimeUpdate(int player_id, base::TimeDelta current_time) = 0; | 32 virtual void OnTimeUpdate(int player_id, base::TimeDelta current_time) = 0; |
29 | 33 |
30 // Called when media metadata changed. Args: player ID, duration of the | 34 // Called when media metadata changed. Args: player ID, duration of the |
31 // media, width, height, whether the metadata is successfully extracted. | 35 // media, width, height, whether the metadata is successfully extracted. |
32 virtual void OnMediaMetadataChanged( | 36 virtual void OnMediaMetadataChanged( |
33 int player_id, | 37 int player_id, |
34 base::TimeDelta duration, | 38 base::TimeDelta duration, |
35 int width, | 39 int width, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 #if defined(VIDEO_HOLE) | 73 #if defined(VIDEO_HOLE) |
70 // Returns true if a media player should use video-overlay for the embedded | 74 // Returns true if a media player should use video-overlay for the embedded |
71 // encrypted video. | 75 // encrypted video. |
72 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; | 76 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; |
73 #endif // defined(VIDEO_HOLE) | 77 #endif // defined(VIDEO_HOLE) |
74 }; | 78 }; |
75 | 79 |
76 } // namespace media | 80 } // namespace media |
77 | 81 |
78 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 82 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |