OLD | NEW |
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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "media/base/media_switches.h" | 6 #include "media/base/media_switches.h" |
7 #include "ppapi/features/features.h" | 7 #include "ppapi/features/features.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; | 131 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; |
132 | 132 |
133 // Force media player using SurfaceView instead of SurfaceTexture on Android. | 133 // Force media player using SurfaceView instead of SurfaceTexture on Android. |
134 const char kForceVideoOverlays[] = "force-video-overlays"; | 134 const char kForceVideoOverlays[] = "force-video-overlays"; |
135 | 135 |
136 // Allows explicitly specifying MSE audio/video buffer sizes. | 136 // Allows explicitly specifying MSE audio/video buffer sizes. |
137 // Default values are 150M for video and 12M for audio. | 137 // Default values are 150M for video and 12M for audio. |
138 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; | 138 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; |
139 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; | 139 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; |
140 | 140 |
| 141 // Ignores all autoplay restrictions. It will ignore the current autoplay policy |
| 142 // and all restrictions such as playback in a background tab. It should only be |
| 143 // enabled for testing. |
| 144 const char kIgnoreAutoplayRestrictionsForTests[] = |
| 145 "ignore-autoplay-restrictions"; |
| 146 |
141 namespace autoplay { | 147 namespace autoplay { |
142 | 148 |
143 // Autoplay policy to require a user gesture in ordor to play for cross origin | 149 // Autoplay policy to require a user gesture in ordor to play for cross origin |
144 // iframes. | 150 // iframes. |
145 const char kCrossOriginUserGestureRequiredPolicy[] = | 151 const char kCrossOriginUserGestureRequiredPolicy[] = |
146 "cross-origin-user-gesture-required"; | 152 "cross-origin-user-gesture-required"; |
147 | 153 |
148 // Autoplay policy that does not require any user gesture. | 154 // Autoplay policy that does not require any user gesture. |
149 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required"; | 155 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required"; |
150 | 156 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // This is completely insecure - DO NOT USE except for testing. | 232 // This is completely insecure - DO NOT USE except for testing. |
227 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", | 233 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", |
228 base::FEATURE_DISABLED_BY_DEFAULT}; | 234 base::FEATURE_DISABLED_BY_DEFAULT}; |
229 | 235 |
230 // Enables H264 HW encode acceleration using Media Foundation for Windows. | 236 // Enables H264 HW encode acceleration using Media Foundation for Windows. |
231 const base::Feature kMediaFoundationH264Encoding{ | 237 const base::Feature kMediaFoundationH264Encoding{ |
232 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; | 238 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; |
233 #endif // defined(OS_WIN) | 239 #endif // defined(OS_WIN) |
234 | 240 |
235 } // namespace media | 241 } // namespace media |
OLD | NEW |