fix: ⚡ ice candidate string transformation
This commit is contained in:
parent
64e89b006a
commit
dd0c0cf42a
3 changed files with 8 additions and 6 deletions
|
@ -5,6 +5,7 @@ use leptos::{
|
|||
prelude::{OnAttribute, Read, Show, ShowProps, ToChildren},
|
||||
server::LocalResource,
|
||||
};
|
||||
use wasm_bindgen_futures::spawn_local;
|
||||
|
||||
use crate::{media::audio, webrtc::WebRTC};
|
||||
|
||||
|
@ -22,7 +23,12 @@ pub fn app() -> impl IntoView {
|
|||
let webrtc_offer = webrtc.clone();
|
||||
let offer_button = button()
|
||||
.on(leptos::ev::click, move |_| {
|
||||
let webrtc_offer = webrtc_offer.clone();
|
||||
log!("{:#?}", webrtc_offer.get_status());
|
||||
spawn_local(async move {
|
||||
let offer_result = webrtc_offer.offer().await;
|
||||
log!("Offer Result Is = {:#?}", offer_result);
|
||||
});
|
||||
})
|
||||
.child("Offer");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue