feat: ✨ ice local and remote changes
This commit is contained in:
parent
4f874d8789
commit
3b122dc4f7
6 changed files with 88 additions and 27 deletions
|
@ -81,7 +81,9 @@ fn signalling(username: (ReadSignal<String>, WriteSignal<String>)) -> impl IntoV
|
|||
|
||||
fn rtc_offer(username: ReadSignal<String>) -> impl IntoView {
|
||||
let offer_trigger = move || {
|
||||
spawn_local(offer(username.get()));
|
||||
spawn_local(async move {
|
||||
let peer_connection = offer(username.get()).await;
|
||||
});
|
||||
};
|
||||
|
||||
let offer_button = button()
|
||||
|
@ -95,7 +97,9 @@ fn rtc_offer(username: ReadSignal<String>) -> impl IntoView {
|
|||
|
||||
fn rtc_answer(username: ReadSignal<String>) -> impl IntoView {
|
||||
let answer_trigger = move || {
|
||||
spawn_local(answer(username.get()));
|
||||
spawn_local(async move {
|
||||
let peer_connection = answer(username.get()).await;
|
||||
});
|
||||
};
|
||||
|
||||
let answer_button = button()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue