9#ifndef SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
10#define SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
12#include "api/video_codecs/video_encoder_factory.h"
13#include "skyway/media/rtp/passthrough_video_encoder.hpp"
19class PassthroughVideoEncoderFactory :
public webrtc::VideoEncoderFactory {
21 PassthroughVideoEncoderFactory(
22 std::shared_ptr<interface::RtpCapturerVideoSourceRepository> source_repo);
23 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats()
const override;
24 std::unique_ptr<webrtc::VideoEncoder> CreateVideoEncoder(
25 const webrtc::SdpVideoFormat& format)
override;
28 std::weak_ptr<interface::RtpCapturerVideoSourceRepository> source_repo_;