| 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 |
| 11 #ifndef WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 11 #ifndef WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ |
| 12 #define WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 12 #define WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ |
| 13 | 13 |
| 14 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 14 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
| 15 #include <CoreAudio/CoreAudio.h> | 15 #include <CoreAudio/CoreAudio.h> |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include <string> | 18 #include <string> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "webrtc/audio_state.h" | 21 #include "webrtc/audio_state.h" |
| 22 #include "webrtc/api/rtpparameters.h" | 22 #include "webrtc/api/rtpparameters.h" |
| 23 #include "webrtc/base/fileutils.h" | 23 #include "webrtc/base/fileutils.h" |
| 24 #include "webrtc/base/sigslotrepeater.h" | 24 #include "webrtc/base/sigslotrepeater.h" |
| 25 #include "webrtc/media/base/codec.h" | 25 #include "webrtc/media/base/codec.h" |
| 26 #include "webrtc/media/base/mediachannel.h" | 26 #include "webrtc/media/base/mediachannel.h" |
| 27 #include "webrtc/media/base/mediacommon.h" | 27 #include "webrtc/media/base/mediacommon.h" |
| 28 #include "webrtc/media/base/videocapturer.h" | |
| 29 #include "webrtc/media/base/videocommon.h" | 28 #include "webrtc/media/base/videocommon.h" |
| 30 #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h" | 29 #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h" |
| 31 | 30 |
| 32 #if defined(GOOGLE_CHROME_BUILD) || defined(CHROMIUM_BUILD) | 31 #if defined(GOOGLE_CHROME_BUILD) || defined(CHROMIUM_BUILD) |
| 33 #define DISABLE_MEDIA_ENGINE_FACTORY | 32 #define DISABLE_MEDIA_ENGINE_FACTORY |
| 34 #endif | 33 #endif |
| 35 | 34 |
| 36 namespace webrtc { | 35 namespace webrtc { |
| 37 class AudioDeviceModule; | 36 class AudioDeviceModule; |
| 38 class Call; | 37 class Call; |
| 39 } | 38 } |
| 40 | 39 |
| 41 namespace cricket { | 40 namespace cricket { |
| 42 | 41 |
| 43 class VideoCapturer; | |
| 44 | |
| 45 struct RtpCapabilities { | 42 struct RtpCapabilities { |
| 46 std::vector<webrtc::RtpExtension> header_extensions; | 43 std::vector<webrtc::RtpExtension> header_extensions; |
| 47 }; | 44 }; |
| 48 | 45 |
| 49 // MediaEngineInterface is an abstraction of a media engine which can be | 46 // MediaEngineInterface is an abstraction of a media engine which can be |
| 50 // subclassed to support different media componentry backends. | 47 // subclassed to support different media componentry backends. |
| 51 // It supports voice and video operations in the same class to facilitate | 48 // It supports voice and video operations in the same class to facilitate |
| 52 // proper synchronization between both media types. | 49 // proper synchronization between both media types. |
| 53 class MediaEngineInterface { | 50 class MediaEngineInterface { |
| 54 public: | 51 public: |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual ~DataEngineInterface() {} | 179 virtual ~DataEngineInterface() {} |
| 183 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 180 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
| 184 virtual const std::vector<DataCodec>& data_codecs() = 0; | 181 virtual const std::vector<DataCodec>& data_codecs() = 0; |
| 185 }; | 182 }; |
| 186 | 183 |
| 187 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); | 184 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); |
| 188 | 185 |
| 189 } // namespace cricket | 186 } // namespace cricket |
| 190 | 187 |
| 191 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 188 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ |
| OLD | NEW |