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