| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Returns the player with the specified id. | 91 // Returns the player with the specified id. |
| 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 |
| 101 // Called when player wants the media element to initiate a seek. |
| 102 virtual void OnMediaSeekRequest(int player_id, |
| 103 base::TimeDelta time_to_seek, |
| 104 bool request_surface) = 0; |
| 100 }; | 105 }; |
| 101 | 106 |
| 102 } // namespace media | 107 } // namespace media |
| 103 | 108 |
| 104 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 109 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |