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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Shuts down the media engine. | 95 // Shuts down the media engine. |
96 void Terminate(); | 96 void Terminate(); |
97 | 97 |
98 // The operations below all occur on the worker thread. | 98 // The operations below all occur on the worker thread. |
99 // Creates a voice channel, to be associated with the specified session. | 99 // Creates a voice channel, to be associated with the specified session. |
100 VoiceChannel* CreateVoiceChannel( | 100 VoiceChannel* CreateVoiceChannel( |
101 webrtc::MediaControllerInterface* media_controller, | 101 webrtc::MediaControllerInterface* media_controller, |
102 TransportController* transport_controller, | 102 TransportController* transport_controller, |
103 const std::string& content_name, | 103 const std::string& content_name, |
104 bool rtcp, | 104 bool rtcp, |
105 const AudioOptions& options); | 105 const MediaChannelOptions& options, |
| 106 const AudioOptions& audio_options); |
106 // Destroys a voice channel created with the Create API. | 107 // Destroys a voice channel created with the Create API. |
107 void DestroyVoiceChannel(VoiceChannel* voice_channel); | 108 void DestroyVoiceChannel(VoiceChannel* voice_channel); |
108 // Creates a video channel, synced with the specified voice channel, and | 109 // Creates a video channel, synced with the specified voice channel, and |
109 // associated with the specified session. | 110 // associated with the specified session. |
110 VideoChannel* CreateVideoChannel( | 111 VideoChannel* CreateVideoChannel( |
111 webrtc::MediaControllerInterface* media_controller, | 112 webrtc::MediaControllerInterface* media_controller, |
112 TransportController* transport_controller, | 113 TransportController* transport_controller, |
113 const std::string& content_name, | 114 const std::string& content_name, |
114 bool rtcp, | 115 bool rtcp, |
115 const VideoOptions& options); | 116 const MediaChannelOptions& options, |
| 117 const VideoOptions& video_options); |
116 // Destroys a video channel created with the Create API. | 118 // Destroys a video channel created with the Create API. |
117 void DestroyVideoChannel(VideoChannel* video_channel); | 119 void DestroyVideoChannel(VideoChannel* video_channel); |
118 DataChannel* CreateDataChannel(TransportController* transport_controller, | 120 DataChannel* CreateDataChannel(TransportController* transport_controller, |
119 const std::string& content_name, | 121 const std::string& content_name, |
120 bool rtcp, | 122 bool rtcp, |
121 DataChannelType data_channel_type); | 123 DataChannelType data_channel_type); |
122 // Destroys a data channel created with the Create API. | 124 // Destroys a data channel created with the Create API. |
123 void DestroyDataChannel(DataChannel* data_channel); | 125 void DestroyDataChannel(DataChannel* data_channel); |
124 | 126 |
125 // Indicates whether any channels exist. | 127 // Indicates whether any channels exist. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 CaptureManager* cm, | 192 CaptureManager* cm, |
191 rtc::Thread* worker_thread); | 193 rtc::Thread* worker_thread); |
192 bool InitMediaEngine_w(); | 194 bool InitMediaEngine_w(); |
193 void DestructorDeletes_w(); | 195 void DestructorDeletes_w(); |
194 void Terminate_w(); | 196 void Terminate_w(); |
195 VoiceChannel* CreateVoiceChannel_w( | 197 VoiceChannel* CreateVoiceChannel_w( |
196 webrtc::MediaControllerInterface* media_controller, | 198 webrtc::MediaControllerInterface* media_controller, |
197 TransportController* transport_controller, | 199 TransportController* transport_controller, |
198 const std::string& content_name, | 200 const std::string& content_name, |
199 bool rtcp, | 201 bool rtcp, |
200 const AudioOptions& options); | 202 const MediaChannelOptions& options, |
| 203 const AudioOptions& audio_options); |
201 void DestroyVoiceChannel_w(VoiceChannel* voice_channel); | 204 void DestroyVoiceChannel_w(VoiceChannel* voice_channel); |
202 VideoChannel* CreateVideoChannel_w( | 205 VideoChannel* CreateVideoChannel_w( |
203 webrtc::MediaControllerInterface* media_controller, | 206 webrtc::MediaControllerInterface* media_controller, |
204 TransportController* transport_controller, | 207 TransportController* transport_controller, |
205 const std::string& content_name, | 208 const std::string& content_name, |
206 bool rtcp, | 209 bool rtcp, |
207 const VideoOptions& options); | 210 const MediaChannelOptions& options, |
| 211 const VideoOptions& video_options); |
208 void DestroyVideoChannel_w(VideoChannel* video_channel); | 212 void DestroyVideoChannel_w(VideoChannel* video_channel); |
209 DataChannel* CreateDataChannel_w(TransportController* transport_controller, | 213 DataChannel* CreateDataChannel_w(TransportController* transport_controller, |
210 const std::string& content_name, | 214 const std::string& content_name, |
211 bool rtcp, | 215 bool rtcp, |
212 DataChannelType data_channel_type); | 216 DataChannelType data_channel_type); |
213 void DestroyDataChannel_w(DataChannel* data_channel); | 217 void DestroyDataChannel_w(DataChannel* data_channel); |
214 void OnVideoCaptureStateChange(VideoCapturer* capturer, | 218 void OnVideoCaptureStateChange(VideoCapturer* capturer, |
215 CaptureState result); | 219 CaptureState result); |
216 void GetSupportedFormats_w( | 220 void GetSupportedFormats_w( |
217 VideoCapturer* capturer, | 221 VideoCapturer* capturer, |
(...skipping 15 matching lines...) Expand all Loading... |
233 int audio_output_volume_; | 237 int audio_output_volume_; |
234 VideoRenderer* local_renderer_; | 238 VideoRenderer* local_renderer_; |
235 bool enable_rtx_; | 239 bool enable_rtx_; |
236 | 240 |
237 bool capturing_; | 241 bool capturing_; |
238 }; | 242 }; |
239 | 243 |
240 } // namespace cricket | 244 } // namespace cricket |
241 | 245 |
242 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ | 246 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ |
OLD | NEW |