blob: ede0d1b52bf7d802cca89eaa182f10d85380a26f [file] [log] [blame]
jbauch4cb3e392016-01-26 21:07:541/*
kjellander1afca732016-02-08 04:46:452 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
jbauch4cb3e392016-01-26 21:07:543 *
kjellander1afca732016-02-08 04:46:454 * 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.
jbauch4cb3e392016-01-26 21:07:549 */
10
Steve Anton10542f22019-01-11 17:11:0011#ifndef MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_
12#define MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_
jbauch4cb3e392016-01-26 21:07:5413
14#include <vector>
15
Steve Anton10542f22019-01-11 17:11:0016#include "media/base/media_channel.h"
17#include "media/base/media_engine.h"
jbauch4cb3e392016-01-26 21:07:5418
19namespace webrtc {
20
21class Call;
22
23} // namespace webrtc
24
jbauch4cb3e392016-01-26 21:07:5425namespace cricket {
26
27class VideoMediaChannel;
jbauch4cb3e392016-01-26 21:07:5428
29// Video engine implementation that does nothing and can be used in
30// CompositeMediaEngine.
Sebastian Jansson84848f22018-11-16 09:40:3631class NullWebRtcVideoEngine : public VideoEngineInterface {
jbauch4cb3e392016-01-26 21:07:5432 public:
Harald Alvestrandc3fa7c32022-05-22 10:57:0133 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 Alvestrand485457f2022-05-23 08:46:5740 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 }
jbauch4cb3e392016-01-26 21:07:5447
Markus Handell0357b3e2020-03-16 12:40:5148 std::vector<webrtc::RtpHeaderExtensionCapability> GetRtpHeaderExtensions()
49 const override {
50 return {};
51 }
jbauch4cb3e392016-01-26 21:07:5452
Sebastian Jansson84848f22018-11-16 09:40:3653 VideoMediaChannel* CreateMediaChannel(
Benjamin Wrightbfb444c2018-10-15 17:20:2454 webrtc::Call* call,
55 const MediaConfig& config,
56 const VideoOptions& options,
Jonas Orelanda3aa9bd2019-04-17 05:38:4057 const webrtc::CryptoOptions& crypto_options,
58 webrtc::VideoBitrateAllocatorFactory* video_bitrate_allocator_factory)
59 override {
jbauch4cb3e392016-01-26 21:07:5460 return nullptr;
61 }
jbauch4cb3e392016-01-26 21:07:5462};
63
64} // namespace cricket
65
Steve Anton10542f22019-01-11 17:11:0066#endif // MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_