L
L
lexbt2021-12-22 16:30:09
WebRTC
lexbt, 2021-12-22 16:30:09

Are there any solutions for seamless webrtc operation?

Hello everyone, the webrtc connection to the aster is implemented on the page, when the conversation is rebooted, of course, the conversation flies, are there any ways to solve this problem so that the conversation becomes "seamless" upon reboot?
So far, the issue has been resolved by opening an additional tab, in which webrtc is connected, and the conversation is controlled from the main page. But add. so-so solution tab

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Drno, 2021-12-22
@Drno

Why reload?

D
Denis Ineshin, 2015-08-10
@SimBioT19

No way, it's an anonymous function assigned to this click only.
To avoid this, you need to do this:

function foo () {
    // code
}

$("#button li").on('click', foo); // теперь foo можно вызвать и по клику
foo(); // и просто так

// либо

$("#button li").on('click', function () {
    foo(); // тот же результат
});

D
dev2expert, 2015-08-10
@dev2expert

$('#button li').trigger('click');
Only the trouble is that if there is more than one li, then you will be disappointed and need to redo it as written Denis Ineshin wrote

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question