OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 | 213 |
214 // Called from WebMediaPlayerCast. | 214 // Called from WebMediaPlayerCast. |
215 // TODO(hubbe): WMPI_CAST make private. | 215 // TODO(hubbe): WMPI_CAST make private. |
216 void OnPipelineSeeked(bool time_updated); | 216 void OnPipelineSeeked(bool time_updated); |
217 | 217 |
218 // Restart the player/pipeline as soon as possible. This will destroy the | 218 // Restart the player/pipeline as soon as possible. This will destroy the |
219 // current renderer, if any, and create a new one via the RendererFactory; and | 219 // current renderer, if any, and create a new one via the RendererFactory; and |
220 // then seek to resume playback at the current position. | 220 // then seek to resume playback at the current position. |
221 void ScheduleRestart(); | 221 void ScheduleRestart(); |
222 | 222 |
223 // Called when media starts/stops being rendered remotely. | |
224 void OnRemoteRenderingChanged(bool is_displayed_remotely); | |
xhwang
2016/12/14 18:11:41
Do rendering and displayed mean the same thing?
D
xjz
2016/12/15 00:01:41
This name seems confusing. This is not actually te
| |
225 | |
223 // Distinct states that |delegate_| can be in. | 226 // Distinct states that |delegate_| can be in. |
224 // TODO(sandersd): This should move into WebMediaPlayerDelegate. | 227 // TODO(sandersd): This should move into WebMediaPlayerDelegate. |
225 // (Public for testing.) | 228 // (Public for testing.) |
226 enum class DelegateState { | 229 enum class DelegateState { |
227 GONE, | 230 GONE, |
228 PLAYING, | 231 PLAYING, |
229 PAUSED, | 232 PAUSED, |
230 ENDED, | 233 ENDED, |
231 }; | 234 }; |
232 | 235 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
578 | 581 |
579 // Whether the player is currently in autoplay muted state. | 582 // Whether the player is currently in autoplay muted state. |
580 bool autoplay_muted_ = false; | 583 bool autoplay_muted_ = false; |
581 | 584 |
582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 585 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
583 }; | 586 }; |
584 | 587 |
585 } // namespace media | 588 } // namespace media |
586 | 589 |
587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 590 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |