blob: 0ff997d7ad37dc85d8f747d2979a069c3dda0710 [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
25
26namespace cricket {
27
28class VideoMediaChannel;
29class WebRtcVideoDecoderFactory;
30class WebRtcVideoEncoderFactory;
31
32// Video engine implementation that does nothing and can be used in
33// CompositeMediaEngine.
34class NullWebRtcVideoEngine {
35 public:
magjed2475ae22017-09-12 04:42:15 -070036 std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); }
jbauch4cb3e392016-01-26 13:07:54 -080037
magjed2475ae22017-09-12 04:42:15 -070038 RtpCapabilities GetCapabilities() const { return RtpCapabilities(); }
jbauch4cb3e392016-01-26 13:07:54 -080039
40 VideoMediaChannel* CreateChannel(webrtc::Call* call,
nisse51542be2016-02-12 02:27:06 -080041 const MediaConfig& config,
42 const VideoOptions& options) {
jbauch4cb3e392016-01-26 13:07:54 -080043 return nullptr;
44 }
jbauch4cb3e392016-01-26 13:07:54 -080045};
46
47} // namespace cricket
48
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020049#endif // MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_