• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3  *
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.
9  */
10 
11 #ifndef MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_
12 #define MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_
13 
14 #include <vector>
15 
16 #include "media/base/media_channel.h"
17 #include "media/base/media_engine.h"
18 
19 namespace webrtc {
20 
21 class Call;
22 
23 }  // namespace webrtc
24 
25 namespace cricket {
26 
27 class VideoMediaChannel;
28 
29 // Video engine implementation that does nothing and can be used in
30 // CompositeMediaEngine.
31 class NullWebRtcVideoEngine : public VideoEngineInterface {
32  public:
send_codecs()33   std::vector<VideoCodec> send_codecs() const override {
34     return std::vector<VideoCodec>();
35   }
36 
recv_codecs()37   std::vector<VideoCodec> recv_codecs() const override {
38     return std::vector<VideoCodec>();
39   }
40 
GetRtpHeaderExtensions()41   std::vector<webrtc::RtpHeaderExtensionCapability> GetRtpHeaderExtensions()
42       const override {
43     return {};
44   }
45 
CreateMediaChannel(webrtc::Call * call,const MediaConfig & config,const VideoOptions & options,const webrtc::CryptoOptions & crypto_options,webrtc::VideoBitrateAllocatorFactory * video_bitrate_allocator_factory)46   VideoMediaChannel* CreateMediaChannel(
47       webrtc::Call* call,
48       const MediaConfig& config,
49       const VideoOptions& options,
50       const webrtc::CryptoOptions& crypto_options,
51       webrtc::VideoBitrateAllocatorFactory* video_bitrate_allocator_factory)
52       override {
53     return nullptr;
54   }
55 };
56 
57 }  // namespace cricket
58 
59 #endif  // MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_
60