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(bool)33 std::vector<VideoCodec> send_codecs(bool) const override { 34 return std::vector<VideoCodec>(); 35 } 36 recv_codecs(bool)37 std::vector<VideoCodec> recv_codecs(bool) const override { 38 return std::vector<VideoCodec>(); 39 } send_codecs()40 std::vector<VideoCodec> send_codecs() const override { 41 return std::vector<VideoCodec>(); 42 } 43 recv_codecs()44 std::vector<VideoCodec> recv_codecs() const override { 45 return std::vector<VideoCodec>(); 46 } 47 GetRtpHeaderExtensions()48 std::vector<webrtc::RtpHeaderExtensionCapability> GetRtpHeaderExtensions() 49 const override { 50 return {}; 51 } 52 CreateMediaChannel(webrtc::Call * call,const MediaConfig & config,const VideoOptions & options,const webrtc::CryptoOptions & crypto_options,webrtc::VideoBitrateAllocatorFactory * video_bitrate_allocator_factory)53 VideoMediaChannel* CreateMediaChannel( 54 webrtc::Call* call, 55 const MediaConfig& config, 56 const VideoOptions& options, 57 const webrtc::CryptoOptions& crypto_options, 58 webrtc::VideoBitrateAllocatorFactory* video_bitrate_allocator_factory) 59 override { 60 return nullptr; 61 } 62 }; 63 64 } // namespace cricket 65 66 #endif // MEDIA_ENGINE_NULL_WEBRTC_VIDEO_ENGINE_H_ 67