VideoToolBox decoder/encoder for MacOS & iOS (#19)

* VideoDecoderFactory wrapper

* wip

* fix compilation

* add notes

* upgrade webrtc version
This commit is contained in:
Théo Monnom
2023-01-07 18:30:11 +01:00
committed by GitHub
parent 579782a813
commit d4233867eb
9 changed files with 190 additions and 3 deletions
+5 -1
View File
@@ -8,7 +8,7 @@ use std::path;
use std::process::Command;
use tar::Archive;
const WEBRTC_TAG: &str = "m104.5112.06";
const WEBRTC_TAG: &str = "m104.5112.07";
fn download_prebuilt(
target_os: &str,
@@ -156,6 +156,8 @@ fn main() {
builder.file("src/rtp_transceiver.cpp");
builder.file("src/rtc_error.cpp");
builder.file("src/webrtc.cpp");
builder.file("src/video_encoder_factory.cpp");
builder.file("src/video_decoder_factory.cpp");
for include in includes {
builder.include(include);
@@ -232,6 +234,8 @@ fn main() {
}
}
builder.file("src/objc_video_factory.mm");
builder
.flag("-stdlib=libc++")
.flag("-std=c++17")