blob: ae519b6ceaeea610917f72581cb2114b99d11046 [file] [log] [blame]
jbauch4cb3e392016-01-26 13:07:54 -08001/*
kjellander1afca732016-02-07 20:46:45 -08002 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
jbauch4cb3e392016-01-26 13:07:54 -08003 *
kjellander1afca732016-02-07 20:46:45 -08004 * 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 13:07:54 -08009 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
12#define MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
jbauch4cb3e392016-01-26 13:07:54 -080013
14#include <vector>
15
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020016#include "media/base/mediachannel.h"
17#include "media/base/mediaengine.h"
jbauch4cb3e392016-01-26 13:07:54 -080018
19namespace webrtc {
20
21class Call;
22
23} // namespace webrtc
24
jbauch4cb3e392016-01-26 13:07:54 -080025namespace cricket {
26
27class VideoMediaChannel;
28class WebRtcVideoDecoderFactory;
29class WebRtcVideoEncoderFactory;
30
31// Video engine implementation that does nothing and can be used in
32// CompositeMediaEngine.
33class NullWebRtcVideoEngine {
34 public:
magjed2475ae22017-09-12 04:42:15 -070035 std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); }
jbauch4cb3e392016-01-26 13:07:54 -080036
magjed2475ae22017-09-12 04:42:15 -070037 RtpCapabilities GetCapabilities() const { return RtpCapabilities(); }
jbauch4cb3e392016-01-26 13:07:54 -080038
Benjamin Wrightbfb444c2018-10-15 10:20:24 -070039 VideoMediaChannel* CreateChannel(
40 webrtc::Call* call,
41 const MediaConfig& config,
42 const VideoOptions& options,
43 const webrtc::CryptoOptions& crypto_options) {
jbauch4cb3e392016-01-26 13:07:54 -080044 return nullptr;
45 }
jbauch4cb3e392016-01-26 13:07:54 -080046};
47
48} // namespace cricket
49
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020050#endif // MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_