File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 7575 sudo apt update -y
7676 sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
7777
78+ - name : Install VA-API/NVIDIA drivers for linux x64 build
79+ if : ${{ matrix.os == 'ubuntu-latest'}}
80+ run : |
81+ sudo apt install -y libva-dev libdrm-dev libnvidia-compute-570 libnvidia-decode-570 nvidia-cuda-dev -y
82+
7883 - uses : actions-rs/toolchain@v1
7984 with :
8085 toolchain : stable
Original file line number Diff line number Diff line change @@ -16,12 +16,19 @@ use livekit_protocol::enum_dispatch;
1616
1717use crate :: imp:: video_source as vs_imp;
1818
19- #[ derive( Default , Debug , Clone ) ]
19+ #[ derive( Debug , Clone ) ]
2020pub struct VideoResolution {
2121 pub width : u32 ,
2222 pub height : u32 ,
2323}
2424
25+ impl Default for VideoResolution {
26+ // Default to 720p
27+ fn default ( ) -> Self {
28+ VideoResolution { width : 1280 , height : 720 }
29+ }
30+ }
31+
2532#[ non_exhaustive]
2633#[ derive( Debug , Clone ) ]
2734pub enum RtcVideoSource {
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ fn main() {
219219 . flag ( "-std=c++20" ) ;
220220 }
221221 "ios" => {
222+ println ! ( "cargo:rustc-link-lib=framework=Foundation" ) ;
222223 println ! ( "cargo:rustc-link-lib=framework=CoreFoundation" ) ;
223224 println ! ( "cargo:rustc-link-lib=framework=AVFoundation" ) ;
224225 println ! ( "cargo:rustc-link-lib=framework=CoreAudio" ) ;
You can’t perform that action at this time.
0 commit comments