1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Add WebRTC

This commit is contained in:
Daniel Neto 2025-01-12 19:51:04 -03:00
parent e5c41d4ff3
commit 5dc7bee07c
16 changed files with 285 additions and 164 deletions

View file

@ -1379,6 +1379,22 @@ function avideoAlertAJAXHTML(url) {
});
}
function avideoAlertAJAXJson(url) {
modal.showPleaseWait();
$.ajax({
url: url,
complete: function (jqXHR) {
response = (jqXHR.responseJSON);
if(typeof response == 'object' && typeof response.msg !== 'undefined'){
avideoAlertText(response.msg);
}else{
avideoAlertText(response);
}
modal.hidePleaseWait();
}
});
}
function avideoAlertAJAX(url) {
modal.showPleaseWait();
$.ajax({