refactor: ♻️ media stream

This commit is contained in:
Ahmet Kaan Gümüş 2025-05-01 16:57:03 +03:00
parent 53a73285b9
commit 87f7d0763f
3 changed files with 27 additions and 23 deletions

View file

@ -25,7 +25,7 @@ pub fn app() -> impl IntoView {
})
.children(ToChildren::to_children(move || {
let audio_stream = audio_stream.read();
let audio_stream = audio_stream.as_deref().unwrap().clone();
let audio_stream = audio_stream.as_deref().unwrap().as_ref().unwrap().clone();
let webrtc = WebRTC::new(Some(audio_stream), None, None).unwrap();
let webrtc_state = webrtc.clone();