2016-01-26 13:07:54 -08:00
|
|
|
/*
|
2016-02-07 20:46:45 -08:00
|
|
|
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
2016-01-26 13:07:54 -08:00
|
|
|
*
|
2016-02-07 20:46:45 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2016-01-26 13:07:54 -08:00
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
|
|
|
|
|
#define MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
|
2016-01-26 13:07:54 -08:00
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "media/base/mediachannel.h"
|
|
|
|
|
#include "media/base/mediaengine.h"
|
2016-01-26 13:07:54 -08:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class Call;
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
namespace cricket {
|
|
|
|
|
|
|
|
|
|
class VideoMediaChannel;
|
|
|
|
|
class WebRtcVideoDecoderFactory;
|
|
|
|
|
class WebRtcVideoEncoderFactory;
|
|
|
|
|
|
|
|
|
|
// Video engine implementation that does nothing and can be used in
|
|
|
|
|
// CompositeMediaEngine.
|
|
|
|
|
class NullWebRtcVideoEngine {
|
|
|
|
|
public:
|
2017-09-12 04:42:15 -07:00
|
|
|
std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); }
|
2016-01-26 13:07:54 -08:00
|
|
|
|
2017-09-12 04:42:15 -07:00
|
|
|
RtpCapabilities GetCapabilities() const { return RtpCapabilities(); }
|
2016-01-26 13:07:54 -08:00
|
|
|
|
|
|
|
|
VideoMediaChannel* CreateChannel(webrtc::Call* call,
|
2016-02-12 02:27:06 -08:00
|
|
|
const MediaConfig& config,
|
|
|
|
|
const VideoOptions& options) {
|
2016-01-26 13:07:54 -08:00
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace cricket
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
|