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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 virtual const std::vector<RtpHeaderExtension>& | 112 virtual const std::vector<RtpHeaderExtension>& |
113 audio_rtp_header_extensions() = 0; | 113 audio_rtp_header_extensions() = 0; |
114 virtual const std::vector<VideoCodec>& video_codecs() = 0; | 114 virtual const std::vector<VideoCodec>& video_codecs() = 0; |
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, a maximum file size in bytes can be |
123 virtual bool StartAecDump(rtc::PlatformFile file) = 0; | 123 // specified. If the log file grows to be larger than the limit, logging is |
124 // stopped and the file is closed. If max_size_bytes is set to a value <= 0, | |
kwiberg-webrtc
2015/11/08 19:09:07
Is it really the case that logging stops *after* t
ivoc
2015/11/11 16:44:31
It is not, fixed the comment.
| |
125 // no limit will be used. | |
126 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; | |
124 | 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) |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 return video_.rtp_header_extensions(); | 217 return video_.rtp_header_extensions(); |
215 } | 218 } |
216 | 219 |
217 virtual void SetVoiceLogging(int min_sev, const char* filter) { | 220 virtual void SetVoiceLogging(int min_sev, const char* filter) { |
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, int64_t max_size_bytes) { |
225 return voice_.StartAecDump(file); | 228 return voice_.StartAecDump(file, max_size_bytes); |
226 } | 229 } |
227 | 230 |
228 virtual bool StartRtcEventLog(rtc::PlatformFile file) { | 231 virtual bool StartRtcEventLog(rtc::PlatformFile file) { |
229 return voice_.StartRtcEventLog(file); | 232 return voice_.StartRtcEventLog(file); |
230 } | 233 } |
231 | 234 |
232 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); } | 235 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); } |
233 | 236 |
234 protected: | 237 protected: |
235 VOICE voice_; | 238 VOICE voice_; |
(...skipping 19 matching lines...) Expand all Loading... | |
255 *level = 0; | 258 *level = 0; |
256 return true; | 259 return true; |
257 } | 260 } |
258 bool SetOutputVolume(int level) { return true; } | 261 bool SetOutputVolume(int level) { return true; } |
259 int GetInputLevel() { return 0; } | 262 int GetInputLevel() { return 0; } |
260 const std::vector<AudioCodec>& codecs() { return codecs_; } | 263 const std::vector<AudioCodec>& codecs() { return codecs_; } |
261 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { | 264 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { |
262 return rtp_header_extensions_; | 265 return rtp_header_extensions_; |
263 } | 266 } |
264 void SetLogging(int min_sev, const char* filter) {} | 267 void SetLogging(int min_sev, const char* filter) {} |
265 bool StartAecDump(rtc::PlatformFile file) { return false; } | 268 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { |
269 return false; | |
270 } | |
266 bool StartRtcEventLog(rtc::PlatformFile file) { return false; } | 271 bool StartRtcEventLog(rtc::PlatformFile file) { return false; } |
267 void StopRtcEventLog() {} | 272 void StopRtcEventLog() {} |
268 | 273 |
269 private: | 274 private: |
270 std::vector<AudioCodec> codecs_; | 275 std::vector<AudioCodec> codecs_; |
271 std::vector<RtpHeaderExtension> rtp_header_extensions_; | 276 std::vector<RtpHeaderExtension> rtp_header_extensions_; |
272 }; | 277 }; |
273 | 278 |
274 // NullVideoEngine can be used with CompositeMediaEngine in the case where only | 279 // NullVideoEngine can be used with CompositeMediaEngine in the case where only |
275 // a voice engine is desired. | 280 // a voice engine is desired. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 class DataEngineInterface { | 314 class DataEngineInterface { |
310 public: | 315 public: |
311 virtual ~DataEngineInterface() {} | 316 virtual ~DataEngineInterface() {} |
312 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 317 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
313 virtual const std::vector<DataCodec>& data_codecs() = 0; | 318 virtual const std::vector<DataCodec>& data_codecs() = 0; |
314 }; | 319 }; |
315 | 320 |
316 } // namespace cricket | 321 } // namespace cricket |
317 | 322 |
318 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ | 323 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ |
OLD | NEW |