OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 void StopAecDump(); | 170 void StopAecDump(); |
171 | 171 |
172 // Starts RtcEventLog using existing file. | 172 // Starts RtcEventLog using existing file. |
173 bool StartRtcEventLog(rtc::PlatformFile file); | 173 bool StartRtcEventLog(rtc::PlatformFile file); |
174 | 174 |
175 // Stops logging RtcEventLog. | 175 // Stops logging RtcEventLog. |
176 void StopRtcEventLog(); | 176 void StopRtcEventLog(); |
177 | 177 |
178 sigslot::signal2<VideoCapturer*, CaptureState> SignalVideoCaptureStateChange; | 178 sigslot::signal2<VideoCapturer*, CaptureState> SignalVideoCaptureStateChange; |
179 | 179 |
180 protected: | |
181 // Adds non-transient parameters which can only be changed through the | |
182 // options store. | |
183 bool SetAudioOptions(const AudioOptions& options); | |
184 | |
185 private: | 180 private: |
186 typedef std::vector<VoiceChannel*> VoiceChannels; | 181 typedef std::vector<VoiceChannel*> VoiceChannels; |
187 typedef std::vector<VideoChannel*> VideoChannels; | 182 typedef std::vector<VideoChannel*> VideoChannels; |
188 typedef std::vector<DataChannel*> DataChannels; | 183 typedef std::vector<DataChannel*> DataChannels; |
189 | 184 |
190 void Construct(MediaEngineInterface* me, | 185 void Construct(MediaEngineInterface* me, |
191 DataEngineInterface* dme, | 186 DataEngineInterface* dme, |
192 CaptureManager* cm, | 187 CaptureManager* cm, |
193 rtc::Thread* worker_thread); | 188 rtc::Thread* worker_thread); |
194 bool InitMediaEngine_w(); | 189 bool InitMediaEngine_w(); |
(...skipping 11 matching lines...) Expand all Loading... |
206 TransportController* transport_controller, | 201 TransportController* transport_controller, |
207 const std::string& content_name, | 202 const std::string& content_name, |
208 bool rtcp, | 203 bool rtcp, |
209 const VideoOptions& options); | 204 const VideoOptions& options); |
210 void DestroyVideoChannel_w(VideoChannel* video_channel); | 205 void DestroyVideoChannel_w(VideoChannel* video_channel); |
211 DataChannel* CreateDataChannel_w(TransportController* transport_controller, | 206 DataChannel* CreateDataChannel_w(TransportController* transport_controller, |
212 const std::string& content_name, | 207 const std::string& content_name, |
213 bool rtcp, | 208 bool rtcp, |
214 DataChannelType data_channel_type); | 209 DataChannelType data_channel_type); |
215 void DestroyDataChannel_w(DataChannel* data_channel); | 210 void DestroyDataChannel_w(DataChannel* data_channel); |
216 bool SetAudioOptions_w(const AudioOptions& options, | |
217 const Device* in_dev, const Device* out_dev); | |
218 void OnVideoCaptureStateChange(VideoCapturer* capturer, | 211 void OnVideoCaptureStateChange(VideoCapturer* capturer, |
219 CaptureState result); | 212 CaptureState result); |
220 void GetSupportedFormats_w( | 213 void GetSupportedFormats_w( |
221 VideoCapturer* capturer, | 214 VideoCapturer* capturer, |
222 std::vector<cricket::VideoFormat>* out_formats) const; | 215 std::vector<cricket::VideoFormat>* out_formats) const; |
223 bool IsScreencastRunning_w() const; | 216 bool IsScreencastRunning_w() const; |
224 virtual void OnMessage(rtc::Message *message); | 217 virtual void OnMessage(rtc::Message *message); |
225 | 218 |
226 rtc::scoped_ptr<MediaEngineInterface> media_engine_; | 219 rtc::scoped_ptr<MediaEngineInterface> media_engine_; |
227 rtc::scoped_ptr<DataEngineInterface> data_media_engine_; | 220 rtc::scoped_ptr<DataEngineInterface> data_media_engine_; |
228 rtc::scoped_ptr<CaptureManager> capture_manager_; | 221 rtc::scoped_ptr<CaptureManager> capture_manager_; |
229 bool initialized_; | 222 bool initialized_; |
230 rtc::Thread* main_thread_; | 223 rtc::Thread* main_thread_; |
231 rtc::Thread* worker_thread_; | 224 rtc::Thread* worker_thread_; |
232 | 225 |
233 VoiceChannels voice_channels_; | 226 VoiceChannels voice_channels_; |
234 VideoChannels video_channels_; | 227 VideoChannels video_channels_; |
235 DataChannels data_channels_; | 228 DataChannels data_channels_; |
236 | 229 |
237 AudioOptions audio_options_; | |
238 int audio_output_volume_; | 230 int audio_output_volume_; |
239 VideoEncoderConfig default_video_encoder_config_; | 231 VideoEncoderConfig default_video_encoder_config_; |
240 VideoRenderer* local_renderer_; | 232 VideoRenderer* local_renderer_; |
241 bool enable_rtx_; | 233 bool enable_rtx_; |
242 | 234 |
243 bool capturing_; | 235 bool capturing_; |
244 }; | 236 }; |
245 | 237 |
246 } // namespace cricket | 238 } // namespace cricket |
247 | 239 |
248 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ | 240 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ |
OLD | NEW |