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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual const std::vector<RtpHeaderExtension>& | 115 virtual const std::vector<RtpHeaderExtension>& |
116 video_rtp_header_extensions() = 0; | 116 video_rtp_header_extensions() = 0; |
117 | 117 |
118 // Logging control | 118 // Logging control |
119 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; | 119 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; |
120 virtual void SetVideoLogging(int min_sev, const char* filter) = 0; | 120 virtual void SetVideoLogging(int min_sev, const char* filter) = 0; |
121 | 121 |
122 // Starts AEC dump using existing file. | 122 // Starts AEC dump using existing file. |
123 virtual bool StartAecDump(rtc::PlatformFile file) = 0; | 123 virtual bool StartAecDump(rtc::PlatformFile file) = 0; |
124 | 124 |
| 125 // Same as above, but using a specified maximum file size in bytes. |
| 126 virtual bool StartAecDump(rtc::PlatformFile file, int max_size_bytes) = 0; |
| 127 |
125 // Starts RtcEventLog using existing file. | 128 // Starts RtcEventLog using existing file. |
126 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; | 129 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; |
127 | 130 |
128 // Stops recording an RtcEventLog. | 131 // Stops recording an RtcEventLog. |
129 virtual void StopRtcEventLog() = 0; | 132 virtual void StopRtcEventLog() = 0; |
130 }; | 133 }; |
131 | 134 |
132 | 135 |
133 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) | 136 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) |
134 class MediaEngineFactory { | 137 class MediaEngineFactory { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 voice_.SetLogging(min_sev, filter); | 221 voice_.SetLogging(min_sev, filter); |
219 } | 222 } |
220 virtual void SetVideoLogging(int min_sev, const char* filter) { | 223 virtual void SetVideoLogging(int min_sev, const char* filter) { |
221 video_.SetLogging(min_sev, filter); | 224 video_.SetLogging(min_sev, filter); |
222 } | 225 } |
223 | 226 |
224 virtual bool StartAecDump(rtc::PlatformFile file) { | 227 virtual bool StartAecDump(rtc::PlatformFile file) { |
225 return voice_.StartAecDump(file); | 228 return voice_.StartAecDump(file); |
226 } | 229 } |
227 | 230 |
| 231 virtual bool StartAecDump(rtc::PlatformFile file, int max_size_bytes) { |
| 232 return voice_.StartAecDump(file, max_size_bytes); |
| 233 } |
| 234 |
228 virtual bool StartRtcEventLog(rtc::PlatformFile file) { | 235 virtual bool StartRtcEventLog(rtc::PlatformFile file) { |
229 return voice_.StartRtcEventLog(file); | 236 return voice_.StartRtcEventLog(file); |
230 } | 237 } |
231 | 238 |
232 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); } | 239 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); } |
233 | 240 |
234 protected: | 241 protected: |
235 VOICE voice_; | 242 VOICE voice_; |
236 VIDEO video_; | 243 VIDEO video_; |
237 }; | 244 }; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 class DataEngineInterface { | 316 class DataEngineInterface { |
310 public: | 317 public: |
311 virtual ~DataEngineInterface() {} | 318 virtual ~DataEngineInterface() {} |
312 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 319 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
313 virtual const std::vector<DataCodec>& data_codecs() = 0; | 320 virtual const std::vector<DataCodec>& data_codecs() = 0; |
314 }; | 321 }; |
315 | 322 |
316 } // namespace cricket | 323 } // namespace cricket |
317 | 324 |
318 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ | 325 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ |
OLD | NEW |