Answer the question
In order to leave comments, you need to log in
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
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(); // тот же результат
});
$('#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 questionAsk a Question
731 491 924 answers to any question