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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2818823002: [Media] Add a finch trial param for background MediaSource videos (Closed)
Patch Set: 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 | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 3d0566c37d5de42f838c0fc3ca1912ad29472a0d..94ae46cb6f6e8fb0238a35fb9512cc2ade374c95 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2880,6 +2880,11 @@ blink::WebMediaPlayer* RenderFrameImpl::CreateMediaPlayer(
base::TimeDelta::FromMilliseconds(base::GetFieldTrialParamByFeatureAsInt(
media::kBackgroundVideoTrackOptimization, "max_keyframe_distance_ms",
base::TimeDelta::FromSeconds(10).InMilliseconds()));
+ base::TimeDelta max_keyframe_distance_to_disable_background_video_mse =
+ base::TimeDelta::FromMilliseconds(base::GetFieldTrialParamByFeatureAsInt(
+ media::kBackgroundVideoTrackOptimization,
+ "max_keyframe_distance_media_source_ms",
+ base::TimeDelta::FromSeconds(10).InMilliseconds()));
media::WebMediaPlayerParams params(
base::Bind(&ContentRendererClient::DeferMediaLoad,
@@ -2894,6 +2899,7 @@ blink::WebMediaPlayer* RenderFrameImpl::CreateMediaPlayer(
base::Unretained(blink::MainThreadIsolate())),
initial_cdm, media_surface_manager_, media_observer,
max_keyframe_distance_to_disable_background_video,
+ max_keyframe_distance_to_disable_background_video_mse,
GetWebkitPreferences().enable_instant_source_buffer_gc,
GetContentClient()->renderer()->AllowMediaSuspend(),
embedded_media_experience_enabled);
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698