1#ifndef SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
2#define SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
4#include "api/environment/environment.h"
5#include "api/video_codecs/video_encoder_factory.h"
6#include "skyway/media/rtp/passthrough_video_encoder.hpp"
12class PassthroughVideoEncoderFactory :
public webrtc::VideoEncoderFactory {
14 PassthroughVideoEncoderFactory(
15 std::shared_ptr<interface::RtpCapturerVideoSourceRepository> source_repo);
16 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats()
const override;
17 std::unique_ptr<webrtc::VideoEncoder> Create(
const webrtc::Environment& env,
18 const webrtc::SdpVideoFormat& format)
override;
21 std::weak_ptr<interface::RtpCapturerVideoSourceRepository> source_repo_;