| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 webrtc::Call* call, | 67 webrtc::Call* call, |
| 68 const MediaConfig& config, | 68 const MediaConfig& config, |
| 69 const VideoOptions& options) = 0; | 69 const VideoOptions& options) = 0; |
| 70 | 70 |
| 71 // Gets the current microphone level, as a value between 0 and 10. | 71 // Gets the current microphone level, as a value between 0 and 10. |
| 72 virtual int GetInputLevel() = 0; | 72 virtual int GetInputLevel() = 0; |
| 73 | 73 |
| 74 virtual const std::vector<AudioCodec>& audio_send_codecs() = 0; | 74 virtual const std::vector<AudioCodec>& audio_send_codecs() = 0; |
| 75 virtual const std::vector<AudioCodec>& audio_recv_codecs() = 0; | 75 virtual const std::vector<AudioCodec>& audio_recv_codecs() = 0; |
| 76 virtual RtpCapabilities GetAudioCapabilities() = 0; | 76 virtual RtpCapabilities GetAudioCapabilities() = 0; |
| 77 virtual const std::vector<VideoCodec>& video_codecs() = 0; | 77 virtual std::vector<VideoCodec> video_codecs() = 0; |
| 78 virtual RtpCapabilities GetVideoCapabilities() = 0; | 78 virtual RtpCapabilities GetVideoCapabilities() = 0; |
| 79 | 79 |
| 80 // Starts AEC dump using existing file, a maximum file size in bytes can be | 80 // Starts AEC dump using existing file, a maximum file size in bytes can be |
| 81 // specified. Logging is stopped just before the size limit is exceeded. | 81 // specified. Logging is stopped just before the size limit is exceeded. |
| 82 // If max_size_bytes is set to a value <= 0, no limit will be used. | 82 // If max_size_bytes is set to a value <= 0, no limit will be used. |
| 83 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; | 83 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; |
| 84 | 84 |
| 85 // Stops recording AEC dump. | 85 // Stops recording AEC dump. |
| 86 virtual void StopAecDump() = 0; | 86 virtual void StopAecDump() = 0; |
| 87 }; | 87 }; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 140 } |
| 141 virtual const std::vector<AudioCodec>& audio_send_codecs() { | 141 virtual const std::vector<AudioCodec>& audio_send_codecs() { |
| 142 return voice_.send_codecs(); | 142 return voice_.send_codecs(); |
| 143 } | 143 } |
| 144 virtual const std::vector<AudioCodec>& audio_recv_codecs() { | 144 virtual const std::vector<AudioCodec>& audio_recv_codecs() { |
| 145 return voice_.recv_codecs(); | 145 return voice_.recv_codecs(); |
| 146 } | 146 } |
| 147 virtual RtpCapabilities GetAudioCapabilities() { | 147 virtual RtpCapabilities GetAudioCapabilities() { |
| 148 return voice_.GetCapabilities(); | 148 return voice_.GetCapabilities(); |
| 149 } | 149 } |
| 150 virtual const std::vector<VideoCodec>& video_codecs() { | 150 virtual std::vector<VideoCodec> video_codecs() { return video_.codecs(); } |
| 151 return video_.codecs(); | |
| 152 } | |
| 153 virtual RtpCapabilities GetVideoCapabilities() { | 151 virtual RtpCapabilities GetVideoCapabilities() { |
| 154 return video_.GetCapabilities(); | 152 return video_.GetCapabilities(); |
| 155 } | 153 } |
| 156 | 154 |
| 157 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { | 155 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { |
| 158 return voice_.StartAecDump(file, max_size_bytes); | 156 return voice_.StartAecDump(file, max_size_bytes); |
| 159 } | 157 } |
| 160 | 158 |
| 161 virtual void StopAecDump() { | 159 virtual void StopAecDump() { |
| 162 voice_.StopAecDump(); | 160 voice_.StopAecDump(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 174 virtual ~DataEngineInterface() {} | 172 virtual ~DataEngineInterface() {} |
| 175 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 173 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
| 176 virtual const std::vector<DataCodec>& data_codecs() = 0; | 174 virtual const std::vector<DataCodec>& data_codecs() = 0; |
| 177 }; | 175 }; |
| 178 | 176 |
| 179 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); | 177 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); |
| 180 | 178 |
| 181 } // namespace cricket | 179 } // namespace cricket |
| 182 | 180 |
| 183 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 181 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ |
| OLD | NEW |