jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 1 | /* |
kjellander | 1afca73 | 2016-02-07 20:46:45 -0800 | [diff] [blame] | 2 | * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 3 | * |
kjellander | 1afca73 | 2016-02-07 20:46:45 -0800 | [diff] [blame] | 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 9 | */ |
| 10 | |
kjellander@webrtc.org | 5ad1297 | 2016-02-12 06:39:40 +0100 | [diff] [blame] | 11 | #ifndef WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ |
| 12 | #define WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 13 | |
| 14 | #include <vector> |
| 15 | |
kjellander | a96e2d7 | 2016-02-04 23:52:28 -0800 | [diff] [blame] | 16 | #include "webrtc/media/base/mediachannel.h" |
| 17 | #include "webrtc/media/base/mediaengine.h" |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | class Call; |
| 22 | |
| 23 | } // namespace webrtc |
| 24 | |
| 25 | |
| 26 | namespace cricket { |
| 27 | |
| 28 | class VideoMediaChannel; |
| 29 | class WebRtcVideoDecoderFactory; |
| 30 | class WebRtcVideoEncoderFactory; |
| 31 | |
| 32 | // Video engine implementation that does nothing and can be used in |
| 33 | // CompositeMediaEngine. |
| 34 | class NullWebRtcVideoEngine { |
| 35 | public: |
magjed | 2475ae2 | 2017-09-12 04:42:15 -0700 | [diff] [blame^] | 36 | std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); } |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 37 | |
magjed | 2475ae2 | 2017-09-12 04:42:15 -0700 | [diff] [blame^] | 38 | RtpCapabilities GetCapabilities() const { return RtpCapabilities(); } |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 39 | |
| 40 | VideoMediaChannel* CreateChannel(webrtc::Call* call, |
nisse | 51542be | 2016-02-12 02:27:06 -0800 | [diff] [blame] | 41 | const MediaConfig& config, |
| 42 | const VideoOptions& options) { |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 43 | return nullptr; |
| 44 | } |
jbauch | 4cb3e39 | 2016-01-26 13:07:54 -0800 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | } // namespace cricket |
| 48 | |
kjellander@webrtc.org | 5ad1297 | 2016-02-12 06:39:40 +0100 | [diff] [blame] | 49 | #endif // WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ |