fix: ice candidate string transformation

This commit is contained in:
Ahmet Kaan Gümüş 2025-04-27 21:11:18 +03:00
parent 64e89b006a
commit dd0c0cf42a
3 changed files with 8 additions and 6 deletions

View file

@ -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");