blob: 9af0f9b130c6c2e4564534e9022de07e757fc8c1 [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
39 VideoMediaChannel* CreateChannel(webrtc::Call* call,
nisse51542be2016-02-12 02:27:06 -080040 const MediaConfig& config,
41 const VideoOptions& options) {
jbauch4cb3e392016-01-26 13:07:54 -080042 return nullptr;
43 }
jbauch4cb3e392016-01-26 13:07:54 -080044};
45
46} // namespace cricket
47
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020048#endif // MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_