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 "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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Default values are 150M for video and 12M for audio. | 149 // Default values are 150M for video and 12M for audio. |
150 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; | 150 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; |
151 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; | 151 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; |
152 | 152 |
153 // Ignores all autoplay restrictions. It will ignore the current autoplay policy | 153 // 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 | 154 // and all restrictions such as playback in a background tab. It should only be |
155 // enabled for testing. | 155 // enabled for testing. |
156 const char kIgnoreAutoplayRestrictionsForTests[] = | 156 const char kIgnoreAutoplayRestrictionsForTests[] = |
157 "ignore-autoplay-restrictions"; | 157 "ignore-autoplay-restrictions"; |
158 | 158 |
| 159 #if !defined(OS_ANDROID) |
| 160 // Turns on the internal media session backend. This should be used by embedders |
| 161 // that want to control the media playback with the media session interfaces. |
| 162 const char kEnableInternalMediaSession[] = "enable-internal-media-session"; |
| 163 #endif // !defined(OS_ANDROID) |
| 164 |
159 namespace autoplay { | 165 namespace autoplay { |
160 | 166 |
161 // Autoplay policy that does not require any user gesture. | 167 // Autoplay policy that does not require any user gesture. |
162 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required"; | 168 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required"; |
163 | 169 |
164 // Autoplay policy to require a user gesture in order to play. | 170 // Autoplay policy to require a user gesture in order to play. |
165 const char kUserGestureRequiredPolicy[] = "user-gesture-required"; | 171 const char kUserGestureRequiredPolicy[] = "user-gesture-required"; |
166 | 172 |
167 // Autoplay policy to require a user gesture in ordor to play for cross origin | 173 // Autoplay policy to require a user gesture in ordor to play for cross origin |
168 // iframes. | 174 // iframes. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 284 |
279 // The default value is platform dependant. | 285 // The default value is platform dependant. |
280 #if defined(OS_ANDROID) | 286 #if defined(OS_ANDROID) |
281 return switches::autoplay::kUserGestureRequiredPolicy; | 287 return switches::autoplay::kUserGestureRequiredPolicy; |
282 #else | 288 #else |
283 return switches::autoplay::kNoUserGestureRequiredPolicy; | 289 return switches::autoplay::kNoUserGestureRequiredPolicy; |
284 #endif | 290 #endif |
285 } | 291 } |
286 | 292 |
287 } // namespace media | 293 } // namespace media |
OLD | NEW |