| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const char kDisableRTCSmoothnessAlgorithm[] = | 119 const char kDisableRTCSmoothnessAlgorithm[] = |
| 120 "disable-rtc-smoothness-algorithm"; | 120 "disable-rtc-smoothness-algorithm"; |
| 121 | 121 |
| 122 // Enables demuxing of vp9 in mp4. Note that this flag will not have any effect | 122 // Enables demuxing of vp9 in mp4. Note that this flag will not have any effect |
| 123 // if MP4 demuxing is not enabled in the build. | 123 // if MP4 demuxing is not enabled in the build. |
| 124 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; | 124 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; |
| 125 | 125 |
| 126 // Force media player using SurfaceView instead of SurfaceTexture on Android. | 126 // Force media player using SurfaceView instead of SurfaceTexture on Android. |
| 127 const char kForceVideoOverlays[] = "force-video-overlays"; | 127 const char kForceVideoOverlays[] = "force-video-overlays"; |
| 128 | 128 |
| 129 // Allows explicitly specifying MSE audio/video buffer sizes. |
| 130 // Default values are 150M for video and 12M for audio. |
| 131 const char kMSEAudioBufferSize[] = "mse-audio-buffer-size"; |
| 132 const char kMSEVideoBufferSize[] = "mse-video-buffer-size"; |
| 133 |
| 129 } // namespace switches | 134 } // namespace switches |
| 130 | 135 |
| 131 namespace media { | 136 namespace media { |
| 132 | 137 |
| 133 #if defined(ENABLE_PLUGINS) | 138 #if defined(ENABLE_PLUGINS) |
| 134 // Let flash join and be controlled by media session, only valid when | 139 // Let flash join and be controlled by media session, only valid when |
| 135 // |kEnableDefaultMediaSession| is on. | 140 // |kEnableDefaultMediaSession| is on. |
| 136 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", | 141 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", |
| 137 base::FEATURE_DISABLED_BY_DEFAULT}; | 142 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 138 #endif // defined(ENABLE_PLUGINS) | 143 #endif // defined(ENABLE_PLUGINS) |
| 139 | 144 |
| 140 // Use new audio rendering mixer. | 145 // Use new audio rendering mixer. |
| 141 const base::Feature kNewAudioRenderingMixingStrategy{ | 146 const base::Feature kNewAudioRenderingMixingStrategy{ |
| 142 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; | 147 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 143 | 148 |
| 144 // Use shared block-based buffering for media. | 149 // Use shared block-based buffering for media. |
| 145 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 150 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 146 base::FEATURE_ENABLED_BY_DEFAULT}; | 151 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 147 | 152 |
| 148 } // namespace media | 153 } // namespace media |
| OLD | NEW |