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_VIDEO_RENDERER_H_ | 5 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_ |
6 #define MEDIA_BASE_VIDEO_RENDERER_H_ | 6 #define MEDIA_BASE_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 virtual void Flush(const base::Closure& callback) = 0; | 47 virtual void Flush(const base::Closure& callback) = 0; |
48 | 48 |
49 // Starts playback at |timestamp| by reading from |stream| and decoding and | 49 // Starts playback at |timestamp| by reading from |stream| and decoding and |
50 // rendering video. | 50 // rendering video. |
51 // | 51 // |
52 // Only valid to call after a successful Initialize() or Flush(). | 52 // Only valid to call after a successful Initialize() or Flush(). |
53 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; | 53 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; |
54 | 54 |
55 // Called when time starts or stops moving. Time progresses when a base time | 55 // Called when time starts or stops moving. Time progresses when a base time |
56 // has been set and the playback rate is > 0. If either condition changes, | 56 // has been set and the playback rate is > 0. If either condition changes, |
57 // |time_progressing| will be false. | 57 // time stops progressing. |
58 virtual void OnTimeStateChanged(bool time_progressing) = 0; | 58 virtual void TimeStartedProgressing() = 0; |
DaleCurtis
2016/09/27 17:12:25
OnTimeProgressing(), OnTimeStopped() ?
| |
59 virtual void TimeStoppedProgressing() = 0; | |
59 | 60 |
60 private: | 61 private: |
61 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); | 62 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace media | 65 } // namespace media |
65 | 66 |
66 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ | 67 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ |
OLD | NEW |