| 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 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 
| 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[]; | 21 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[]; | 
| 22 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[]; | 22 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[]; | 
| 23 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[]; | 23 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[]; | 
| 24 | 24 | 
| 25 // Experimental constraint to do device matching.  When this optional constraint | 25 // Experimental constraint to do device matching.  When this optional constraint | 
| 26 // is set, WebRTC audio renderer will render audio from media streams to an | 26 // is set, WebRTC audio renderer will render audio from media streams to an | 
| 27 // output device that belongs to the same hardware as the requested source | 27 // output device that belongs to the same hardware as the requested source | 
| 28 // device belongs to. | 28 // device belongs to. | 
| 29 CONTENT_EXPORT extern const char kMediaStreamRenderToAssociatedSink[]; | 29 CONTENT_EXPORT extern const char kMediaStreamRenderToAssociatedSink[]; | 
| 30 | 30 | 
|  | 31 // Controls whether ducking of audio is enabled on platforms that support it. | 
|  | 32 CONTENT_EXPORT extern const char kMediaStreamAudioDucking[]; | 
|  | 33 | 
| 31 // StreamOptions is a Chromium representation of constraints | 34 // StreamOptions is a Chromium representation of constraints | 
| 32 // used in WebUserMediaRequest. | 35 // used in WebUserMediaRequest. | 
| 33 // It describes properties requested by JS in a request for a new | 36 // It describes properties requested by JS in a request for a new | 
| 34 // media stream. | 37 // media stream. | 
| 35 class CONTENT_EXPORT StreamOptions { | 38 class CONTENT_EXPORT StreamOptions { | 
| 36  public: | 39  public: | 
| 37   StreamOptions(); | 40   StreamOptions(); | 
| 38   StreamOptions(bool request_audio, bool request_video); | 41   StreamOptions(bool request_audio, bool request_video); | 
| 39   ~StreamOptions(); | 42   ~StreamOptions(); | 
| 40 | 43 | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 105 | 108 | 
| 106   // Id for this capture session. Unique for all sessions of the same type. | 109   // Id for this capture session. Unique for all sessions of the same type. | 
| 107   int session_id; | 110   int session_id; | 
| 108 }; | 111 }; | 
| 109 | 112 | 
| 110 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; | 113 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; | 
| 111 | 114 | 
| 112 }  // namespace content | 115 }  // namespace content | 
| 113 | 116 | 
| 114 #endif  // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 117 #endif  // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 
| OLD | NEW | 
|---|