Chromium Code Reviews| 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/time.h" | 8 #include "base/time.h" |
| 9 #include "media/base/media_export.h" | 9 #include "media/base/media_export.h" |
| 10 #include "media/base/android/demuxer_stream_player_params.h" | 10 #include "media/base/android/demuxer_stream_player_params.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0; | 92 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0; |
| 93 | 93 |
| 94 // Release all the players managed by this object. | 94 // Release all the players managed by this object. |
| 95 virtual void DestroyAllMediaPlayers() = 0; | 95 virtual void DestroyAllMediaPlayers() = 0; |
| 96 | 96 |
| 97 // Callback when DemuxerStreamPlayer wants to read data from the demuxer. | 97 // Callback when DemuxerStreamPlayer wants to read data from the demuxer. |
| 98 virtual void OnReadFromDemuxer( | 98 virtual void OnReadFromDemuxer( |
| 99 int player_id, media::DemuxerStream::Type type, bool seek_done) = 0; | 99 int player_id, media::DemuxerStream::Type type, bool seek_done) = 0; |
| 100 | 100 |
| 101 // Called when player wants the media element to initiate a seek. | 101 // Called when player wants the media element to initiate a seek. |
| 102 virtual void OnMediaSeekRequest(int player_id, | 102 virtual void OnMediaSeekRequest( |
| 103 base::TimeDelta time_to_seek, | 103 int player_id, base::TimeDelta time_to_seek, |
| 104 bool request_surface) = 0; | 104 unsigned media_request_id) = 0; |
|
acolwell GONE FROM CHROMIUM
2013/06/04 15:19:14
nit:s/media/seek/ to match all other methods
qinmin
2013/06/04 19:03:23
Done.
| |
| 105 | |
| 106 // Called when player wants to read the config data from the demuxer. | |
| 107 virtual void OnMediaConfigRequest(int player_id) = 0; | |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace media | 110 } // namespace media |
| 108 | 111 |
| 109 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 112 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |