Index: media/blink/webmediaplayer_impl.cc |
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc |
index be11a949aa3c70d29c72134e57691a0ae07effde..ec65cab2abcbbb9065ea4b9b6a427c753aea8351 100644 |
--- a/media/blink/webmediaplayer_impl.cc |
+++ b/media/blink/webmediaplayer_impl.cc |
@@ -2325,10 +2325,16 @@ void WebMediaPlayerImpl::ReportTimeFromForegroundToFirstFrame( |
time_to_first_frame); |
} |
} |
-void WebMediaPlayerImpl::SwitchRenderer(bool disable_pipeline_auto_suspend) { |
+void WebMediaPlayerImpl::SwitchRenderer(bool is_rendered_remotely) { |
DCHECK(main_task_runner_->BelongsToCurrentThread()); |
- disable_pipeline_auto_suspend_ = disable_pipeline_auto_suspend; |
+ disable_pipeline_auto_suspend_ = is_rendered_remotely; |
ScheduleRestart(); |
+ if (client_) { |
+ if (is_rendered_remotely) |
+ client_->MediaRemotingStarted(); |
+ else |
+ client_->MediaRemotingStopped(); |
+ } |
} |
void WebMediaPlayerImpl::RecordUnderflowDuration(base::TimeDelta duration) { |