5#ifndef SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
6#define SKYWAY_MEDIA_PASSTHROUGH_VIDEO_ENCODER_FACTORY_HPP_
8#include "api/video_codecs/video_encoder_factory.h"
9#include "skyway/media/rtp/passthrough_video_encoder.hpp"
15class PassthroughVideoEncoderFactory :
public webrtc::VideoEncoderFactory {
17 PassthroughVideoEncoderFactory(
18 std::shared_ptr<interface::RtpCapturerVideoSourceRepository> source_repo);
19 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats()
const override;
20 std::unique_ptr<webrtc::VideoEncoder> CreateVideoEncoder(
21 const webrtc::SdpVideoFormat& format)
override;
24 std::weak_ptr<interface::RtpCapturerVideoSourceRepository> source_repo_;