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 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Allow users to specify a custom buffer size for debugging purpose. | 10 // Allow users to specify a custom buffer size for debugging purpose. |
(...skipping 11 matching lines...) Expand all Loading... |
22 const char kDisableMediaThreadForMediaPlayback[] = | 22 const char kDisableMediaThreadForMediaPlayback[] = |
23 "disable-media-thread-for-media-playback"; | 23 "disable-media-thread-for-media-playback"; |
24 | 24 |
25 // Sets the MediaSource player that uses the separate media thread | 25 // Sets the MediaSource player that uses the separate media thread |
26 const char kEnableMediaThreadForMediaPlayback[] = | 26 const char kEnableMediaThreadForMediaPlayback[] = |
27 "enable-media-thread-for-media-playback"; | 27 "enable-media-thread-for-media-playback"; |
28 | 28 |
29 // Use WebMediaPlayerImpl instead of WebMediaPlayerAndroid. This is a temporary | 29 // Use WebMediaPlayerImpl instead of WebMediaPlayerAndroid. This is a temporary |
30 // switch for experimenting with unifying the Android playback pipeline. | 30 // switch for experimenting with unifying the Android playback pipeline. |
31 const char kEnableUnifiedMediaPipeline[] = "enable-unified-media-pipeline"; | 31 const char kEnableUnifiedMediaPipeline[] = "enable-unified-media-pipeline"; |
| 32 |
| 33 // Used in conjunction with kEnableUnifiedMediaPipeline to force the usage of |
| 34 // Android MediaPlayer instead of the unified media pipeline for URLs ending in |
| 35 // any of the extensions in the provided comma separated list. |
| 36 const char kUseMediaPlayerForExtensions[] = "use-media-player-for-extensions"; |
| 37 |
32 #endif | 38 #endif |
33 | 39 |
34 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 40 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
35 // The Alsa device to use when opening an audio input stream. | 41 // The Alsa device to use when opening an audio input stream. |
36 const char kAlsaInputDevice[] = "alsa-input-device"; | 42 const char kAlsaInputDevice[] = "alsa-input-device"; |
37 // The Alsa device to use when opening an audio stream. | 43 // The Alsa device to use when opening an audio stream. |
38 const char kAlsaOutputDevice[] = "alsa-output-device"; | 44 const char kAlsaOutputDevice[] = "alsa-output-device"; |
39 #endif | 45 #endif |
40 | 46 |
41 // Use GpuMemoryBuffers for Video Capture when this is an option for the device. | 47 // Use GpuMemoryBuffers for Video Capture when this is an option for the device. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 138 |
133 } // namespace switches | 139 } // namespace switches |
134 | 140 |
135 namespace media { | 141 namespace media { |
136 | 142 |
137 // Use shared block-based buffering for media. | 143 // Use shared block-based buffering for media. |
138 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 144 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
139 base::FEATURE_DISABLED_BY_DEFAULT}; | 145 base::FEATURE_DISABLED_BY_DEFAULT}; |
140 | 146 |
141 } // namespace media | 147 } // namespace media |
OLD | NEW |