fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
6094271
livekit/livekit-ffi@0.13.0
1/* 2* Copyright 2023 LiveKit 3* 4* Licensed under the Apache License, Version 2.0 (the “License”); 5* you may not use this file except in compliance with the License. 6* You may obtain a copy of the License at 7* 8* http://www.apache.org/licenses/LICENSE-2.0 9* 10* Unless required by applicable law or agreed to in writing, software 11* distributed under the License is distributed on an “AS IS” BASIS, 12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13* See the License for the specific language governing permissions and 14* limitations under the License. 15*/ 16 17#include "livekit/objc_video_factory.h" 18 19#import <sdk/objc/components/video_codec/RTCVideoDecoderFactoryH264.h> 20#import <sdk/objc/components/video_codec/RTCVideoEncoderFactoryH264.h> 21#include "sdk/objc/native/api/video_decoder_factory.h" 22#include "sdk/objc/native/api/video_encoder_factory.h" 23 24namespace livekit { 25 26std ::unique_ptr < webrtc ::VideoEncoderFactory > CreateObjCVideoEncoderFactory () { 27// TODO(theomonnom): Simulcast? 28return webrtc ::ObjCToNativeVideoEncoderFactory ([[RTCVideoEncoderFactoryH264 alloc ]init ]); 29} 30 31std ::unique_ptr < webrtc ::VideoDecoderFactory > CreateObjCVideoDecoderFactory () { 32return webrtc ::ObjCToNativeVideoDecoderFactory ([[RTCVideoDecoderFactoryH264 alloc ]init ]); 33} 34 35}// namespace livekit