Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Addressed liberato's comments. Changed to use HTMLDivElement instead of HTMLInputElement. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698