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

Side by Side Diff: media/base/media_switches.cc

Issue 2928873002: Enable VP9 in MP4 by default (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "media/base/media_switches.h" 5 #include "media/base/media_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ppapi/features/features.h" 8 #include "ppapi/features/features.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Allows clients to override the threshold for when the media renderer will 131 // Allows clients to override the threshold for when the media renderer will
132 // declare the underflow state for the video stream when audio is present. 132 // declare the underflow state for the video stream when audio is present.
133 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. 133 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish.
134 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; 134 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms";
135 135
136 // Disables the new rendering algorithm for webrtc, which is designed to improve 136 // Disables the new rendering algorithm for webrtc, which is designed to improve
137 // the rendering smoothness. 137 // the rendering smoothness.
138 const char kDisableRTCSmoothnessAlgorithm[] = 138 const char kDisableRTCSmoothnessAlgorithm[] =
139 "disable-rtc-smoothness-algorithm"; 139 "disable-rtc-smoothness-algorithm";
140 140
141 // Enables demuxing of vp9 in mp4. Note that this flag will not have any effect
142 // if MP4 demuxing is not enabled in the build.
143 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4";
144
145 // Force media player using SurfaceView instead of SurfaceTexture on Android. 141 // Force media player using SurfaceView instead of SurfaceTexture on Android.
146 const char kForceVideoOverlays[] = "force-video-overlays"; 142 const char kForceVideoOverlays[] = "force-video-overlays";
147 143
148 // Allows explicitly specifying MSE audio/video buffer sizes. 144 // Allows explicitly specifying MSE audio/video buffer sizes.
149 // Default values are 150M for video and 12M for audio. 145 // Default values are 150M for video and 12M for audio.
150 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; 146 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit";
151 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; 147 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit";
152 148
153 // Ignores all autoplay restrictions. It will ignore the current autoplay policy 149 // Ignores all autoplay restrictions. It will ignore the current autoplay policy
154 // and all restrictions such as playback in a background tab. It should only be 150 // and all restrictions such as playback in a background tab. It should only be
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 294
299 // The default value is platform dependent. 295 // The default value is platform dependent.
300 #if defined(OS_ANDROID) 296 #if defined(OS_ANDROID)
301 return switches::autoplay::kUserGestureRequiredPolicy; 297 return switches::autoplay::kUserGestureRequiredPolicy;
302 #else 298 #else
303 return switches::autoplay::kNoUserGestureRequiredPolicy; 299 return switches::autoplay::kNoUserGestureRequiredPolicy;
304 #endif 300 #endif
305 } 301 }
306 302
307 } // namespace media 303 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698