Parameterize LiveKit URL

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-09-07 16:20:37 +02:00
parent 376e674748
commit 37ca5651ee

View file

@ -30,6 +30,7 @@ fn main() {
}],
}]);
let live_kit_url = std::env::var("LIVE_KIT_URL").unwrap();
let live_kit_key = std::env::var("LIVE_KIT_KEY").unwrap();
let live_kit_secret = std::env::var("LIVE_KIT_SECRET").unwrap();
@ -45,9 +46,7 @@ fn main() {
cx.foreground()
.spawn(async move {
println!("connecting...");
room.connect("wss://zed.livekit.cloud", &token)
.await
.unwrap();
room.connect(&live_kit_url, &token).await.unwrap();
let windows = live_kit::list_windows();
println!("connected! {:?}", windows);