diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 99acf50c4..cbb194093 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -75,6 +75,11 @@ jobs: sudo apt update -y sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev + - name: Install VA-API/NVIDIA drivers for linux x64 build + if: ${{ matrix.os == 'ubuntu-latest'}} + run: | + sudo apt install -y libva-dev libdrm-dev libnvidia-compute-570 libnvidia-decode-570 nvidia-cuda-dev -y + - uses: actions-rs/toolchain@v1 with: toolchain: stable diff --git a/libwebrtc/src/video_source.rs b/libwebrtc/src/video_source.rs index 4efb9e365..ff2d8826f 100644 --- a/libwebrtc/src/video_source.rs +++ b/libwebrtc/src/video_source.rs @@ -16,12 +16,19 @@ use livekit_protocol::enum_dispatch; use crate::imp::video_source as vs_imp; -#[derive(Default, Debug, Clone)] +#[derive(Debug, Clone)] pub struct VideoResolution { pub width: u32, pub height: u32, } +impl Default for VideoResolution { + // Default to 720p + fn default() -> Self { + VideoResolution { width: 1280, height: 720 } + } +} + #[non_exhaustive] #[derive(Debug, Clone)] pub enum RtcVideoSource { diff --git a/webrtc-sys/build.rs b/webrtc-sys/build.rs index e2a3dcdfd..03bdbd700 100644 --- a/webrtc-sys/build.rs +++ b/webrtc-sys/build.rs @@ -219,6 +219,7 @@ fn main() { .flag("-std=c++20"); } "ios" => { + println!("cargo:rustc-link-lib=framework=Foundation"); println!("cargo:rustc-link-lib=framework=CoreFoundation"); println!("cargo:rustc-link-lib=framework=AVFoundation"); println!("cargo:rustc-link-lib=framework=CoreAudio");