refactor: ♻️ media stream
This commit is contained in:
parent
53a73285b9
commit
87f7d0763f
3 changed files with 27 additions and 23 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue