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

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

Issue 734993002: Makes the WebRTC fake device capable of playing audio from a file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing bug which broke the beep mode. Created 6 years, 1 month 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
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/base/media_switches.h" 5 #include "media/base/media_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Allow users to specify a custom buffer size for debugging purpose. 9 // Allow users to specify a custom buffer size for debugging purpose.
10 const char kAudioBufferSize[] = "audio-buffer-size"; 10 const char kAudioBufferSize[] = "audio-buffer-size";
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #endif 84 #endif
85 85
86 #if defined(USE_CRAS) 86 #if defined(USE_CRAS)
87 // Use CRAS, the ChromeOS audio server. 87 // Use CRAS, the ChromeOS audio server.
88 const char kUseCras[] = "use-cras"; 88 const char kUseCras[] = "use-cras";
89 #endif 89 #endif
90 90
91 // Use fake device for Media Stream to replace actual camera and microphone. 91 // Use fake device for Media Stream to replace actual camera and microphone.
92 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 92 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
93 93
94 // Use a raw video file as fake video capture device. 94 // Use an .y4m file to play as the webcam. See the comments in
95 // media/video/capture/file_video_capture_device.h for more details.
95 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; 96 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
96 97
98 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat
99 // the bits as if they came from the microphone, which means you should disable
DaleCurtis 2014/11/20 19:13:47 I don't think this comment is specific enough. Dis
phoglund_chromium 2014/11/20 19:48:31 Right, I should have written more on the channel r
100 // audio processing (lest your audio file will play back distorted).
101 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture";
102
97 // Enables support for inband text tracks in media content. 103 // Enables support for inband text tracks in media content.
98 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; 104 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
99 105
100 } // namespace switches 106 } // namespace switches
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698