jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 1 | /* |
kjellander | 1afca73 | 2016-02-08 04:46:45 | [diff] [blame] | 2 | * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 3 | * |
kjellander | 1afca73 | 2016-02-08 04:46:45 | [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 21:07:54 | [diff] [blame] | 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #ifndef MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_ |
| 12 | #define MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_ |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 13 | |
| 14 | #include <vector> |
| 15 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 16 | #include "media/base/media_channel.h" |
| 17 | #include "media/base/media_engine.h" |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | class Call; |
| 22 | |
| 23 | } // namespace webrtc |
| 24 | |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 25 | namespace cricket { |
| 26 | |
| 27 | class VideoMediaChannel; |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 28 | |
| 29 | // Video engine implementation that does nothing and can be used in |
| 30 | // CompositeMediaEngine. |
Sebastian Jansson | 84848f2 | 2018-11-16 09:40:36 | [diff] [blame] | 31 | class NullWebRtcVideoEngine : public VideoEngineInterface { |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 32 | public: |
Harald Alvestrand | c3fa7c3 | 2022-05-22 10:57:01 | [diff] [blame] | 33 | std::vector<VideoCodec> send_codecs(bool) const override { |
| 34 | return std::vector<VideoCodec>(); |
| 35 | } |
| 36 | |
| 37 | std::vector<VideoCodec> recv_codecs(bool) const override { |
| 38 | return std::vector<VideoCodec>(); |
| 39 | } |
Harald Alvestrand | 485457f | 2022-05-23 08:46:57 | [diff] [blame] | 40 | std::vector<VideoCodec> send_codecs() const override { |
| 41 | return std::vector<VideoCodec>(); |
| 42 | } |
| 43 | |
| 44 | std::vector<VideoCodec> recv_codecs() const override { |
| 45 | return std::vector<VideoCodec>(); |
| 46 | } |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 47 | |
Markus Handell | 0357b3e | 2020-03-16 12:40:51 | [diff] [blame] | 48 | std::vector<webrtc::RtpHeaderExtensionCapability> GetRtpHeaderExtensions() |
| 49 | const override { |
| 50 | return {}; |
| 51 | } |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 52 | |
Sebastian Jansson | 84848f2 | 2018-11-16 09:40:36 | [diff] [blame] | 53 | VideoMediaChannel* CreateMediaChannel( |
Benjamin Wright | bfb444c | 2018-10-15 17:20:24 | [diff] [blame] | 54 | webrtc::Call* call, |
| 55 | const MediaConfig& config, |
| 56 | const VideoOptions& options, |
Jonas Oreland | a3aa9bd | 2019-04-17 05:38:40 | [diff] [blame] | 57 | const webrtc::CryptoOptions& crypto_options, |
| 58 | webrtc::VideoBitrateAllocatorFactory* video_bitrate_allocator_factory) |
| 59 | override { |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 60 | return nullptr; |
| 61 | } |
jbauch | 4cb3e39 | 2016-01-26 21:07:54 | [diff] [blame] | 62 | }; |
| 63 | |
| 64 | } // namespace cricket |
| 65 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 66 | #endif // MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_ |