Use ScreenCaptureKit-enabled LiveKit SDK and add display_sources function

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Nathan Sobo
2022-10-17 09:59:16 +02:00
committed by Antonio Scandurra
co-authored by Antonio Scandurra
parent 23d7143298
commit 0bbba90f30
5 changed files with 56 additions and 5 deletions
+5
View File
@@ -38,6 +38,11 @@ fn main() {
let live_kit_secret = std::env::var("LIVE_KIT_SECRET").unwrap();
cx.spawn(|mut cx| async move {
match live_kit::display_sources().await {
Ok(sources) => println!("found {} sources", sources.len()),
Err(error) => println!("error finding display sources {}", error),
}
let user1_token = live_kit_token::create_token(
&live_kit_key,
&live_kit_secret,