WIP: Use audio support to send live data
This commit is contained in:
parent
bbf05c8eac
commit
ce3847c9fc
4 changed files with 62 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue