| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Called when error happens. Args: player ID, error type. | 62 // Called when error happens. Args: player ID, error type. |
| 63 virtual void OnError(int player_id, int error) = 0; | 63 virtual void OnError(int player_id, int error) = 0; |
| 64 | 64 |
| 65 // Called when video size has changed. Args: player ID, width, height. | 65 // Called when video size has changed. Args: player ID, width, height. |
| 66 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0; | 66 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0; |
| 67 | 67 |
| 68 // Callback when DemuxerStreamPlayer wants to read data from the demuxer. | 68 // Callback when DemuxerStreamPlayer wants to read data from the demuxer. |
| 69 virtual void OnReadFromDemuxer( | 69 virtual void OnReadFromDemuxer( |
| 70 int player_id, media::DemuxerStream::Type type, bool seek_done) = 0; | 70 int player_id, media::DemuxerStream::Type type, bool seek_done) = 0; |
| 71 |
| 72 // Called when player wants the media element to initiate a seek. |
| 73 virtual void OnMediaSeekRequest(int player_id, |
| 74 base::TimeDelta time_to_seek) = 0; |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 } // namespace media | 77 } // namespace media |
| 74 | 78 |
| 75 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 79 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |