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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Rebased. 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index 7c10f9fe3981b98b65561a2e49d7f3a4fe8f9ca8..b69e9c074da3975ef2ea1c9da0cd1c6e87fcdb40 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -2334,10 +2334,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) {
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698