WIP: Use audio support to send live data

This commit is contained in:
Mikayla Maki 2023-06-12 16:46:39 -07:00
parent bbf05c8eac
commit ce3847c9fc
No known key found for this signature in database
4 changed files with 62 additions and 12 deletions

View file

@ -1,3 +1,6 @@
use std::time::Duration;
use futures::StreamExt;
use gpui::{actions, keymap_matcher::Binding, Menu, MenuItem};
use live_kit_client::{LocalVideoTrack, RemoteVideoTrackUpdate, Room, LocalAudioTrack, RemoteAudioTrackUpdate};
@ -69,6 +72,11 @@ fn main() {
panic!("unexpected message");
}
let res = room_b.remote_audio_tracks("test-participant-1")[0].start().await;
println!("Attempting to start: {:?}", res);
let timer = cx.background().timer(Duration::from_secs(10));
timer.await;
let remote_audio_track = room_b
.remote_audio_tracks("test-participant-1")
.pop()