Skip to content

Commit 93be67c

Browse files
committed
use prebuilt webrtc libs.
1 parent 6588ffc commit 93be67c

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

libwebrtc/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ fn main() {
2929
let use_dylib = !cfg!(feature = "static");
3030
let webrtc_dir = webrtc_sys_build::webrtc_dir();
3131

32+
if !webrtc_dir.exists() {
33+
webrtc_sys_build::download_webrtc().unwrap();
34+
}
35+
3236
if use_dylib {
3337
if let Err(e) = webrtc_sys_build::copy_dylib_to_target(&webrtc_dir) {
3438
println!("cargo:warning=failed to copy livekit_rtc dylib to target: {}", e);

libwebrtc/build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use regex::Regex;
3030
use reqwest::StatusCode;
3131

3232
pub const SCRATH_PATH: &str = "livekit_webrtc";
33-
pub const WEBRTC_TAG: &str = "webrtc-0001d84-2";
33+
pub const WEBRTC_TAG: &str = "webrtc-38b585d";
3434
pub const IGNORE_DEFINES: [&str; 2] = ["CR_CLANG_REVISION", "CR_XCODE_VERSION"];
3535

3636
pub fn target_os() -> String {

libwebrtc/src/peer_connection_factory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use std::{
1616
fmt::Debug,
17-
rc::Rc,
1817
sync::{Arc, Mutex},
1918
};
2019

0 commit comments

Comments
 (0)