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

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

Issue 2428873002: Add about_flag for experimenting MediaSession on Desktop (Closed)
Patch Set: Created 4 years, 2 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
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 "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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #if defined(USE_CRAS) 64 #if defined(USE_CRAS)
65 // Use CRAS, the ChromeOS audio server. 65 // Use CRAS, the ChromeOS audio server.
66 const char kUseCras[] = "use-cras"; 66 const char kUseCras[] = "use-cras";
67 #endif 67 #endif
68 68
69 #if !defined(OS_ANDROID) 69 #if !defined(OS_ANDROID)
70 // Use a media session for each tabs in a way that two tabs can't play on top of 70 // Use a media session for each tabs in a way that two tabs can't play on top of
71 // each other. This is different from the Media Session API as it is enabling a 71 // each other. This is different from the Media Session API as it is enabling a
72 // default behaviour for the browser. 72 // default behaviour for the browser.
73 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; 73 const char kEnableDefaultMediaSession[] = "enable-default-media-session";
74 #endif 74
75 #if defined(ENABLE_PLUGINS)
76 const char kEnableDefaultMediaSessionWithFlash[] = "with-flash";
77 #endif // defined(ENABLE_PLUGINS)
78
79 #endif // !defined(OS_ANDROID)
75 80
76 // Use fake device for Media Stream to replace actual camera and microphone. 81 // Use fake device for Media Stream to replace actual camera and microphone.
77 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 82 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
78 83
79 // Use an .y4m file to play as the webcam. See the comments in 84 // Use an .y4m file to play as the webcam. See the comments in
80 // media/capture/video/file_video_capture_device.h for more details. 85 // media/capture/video/file_video_capture_device.h for more details.
81 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; 86 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
82 87
83 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat 88 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat
84 // the bits as if they came from the microphone, which means you should disable 89 // the bits as if they came from the microphone, which means you should disable
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const base::Feature kExternalClearKeyForTesting{ 173 const base::Feature kExternalClearKeyForTesting{
169 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 174 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
170 175
171 #if defined(OS_ANDROID) 176 #if defined(OS_ANDROID)
172 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 177 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
173 const base::Feature kAndroidMediaPlayerRenderer{ 178 const base::Feature kAndroidMediaPlayerRenderer{
174 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; 179 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT};
175 #endif 180 #endif
176 181
177 } // namespace media 182 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698