Файловый менеджер - Редактировать - /var/www/html/components/com_jchat/js/livestreaming.js
Ðазад
/* (C)2021 Joomla! Extensions Store @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,g){a!=Array.prototype&&a!=Object.prototype&&(a[c]=g.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+a++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var c=0;return $jscomp.iteratorPrototype(function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}})}; $jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();$jscomp.initSymbol();$jscomp.initSymbolIterator();var c=a[Symbol.iterator];return c?c.call(a):$jscomp.arrayIterator(a)}; $jscomp.polyfill=function(a,c,g,f){if(c){g=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var b=a[f];b in g||(g[b]={});g=g[b]}a=a[a.length-1];f=g[a];c=c(f);c!=f&&null!=c&&$jscomp.defineProperty(g,a,{configurable:!0,writable:!0,value:c})}};$jscomp.FORCE_POLYFILL_PROMISE=!1; $jscomp.polyfill("Promise",function(a){function c(){this.batch_=null}function g(a){return a instanceof b?a:new b(function(d,b){d(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;c.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};c.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var f=$jscomp.global.setTimeout;c.prototype.asyncExecuteFunction=function(a){f(a, 0)};c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var h=0;h<a.length;++h){var b=a[h];delete a[h];try{b()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};c.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var b=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var d=this.createResolveAndReject_();try{a(d.resolve,d.reject)}catch(t){d.reject(t)}};b.prototype.createResolveAndReject_= function(){function a(a){return function(d){b||(b=!0,a.call(h,d))}}var h=this,b=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};b.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var d=null!=a;break a;case "function":d=!0;break a;default:d=!1}d?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};b.prototype.resolveToNonPromiseObj_=function(a){var d= void 0;try{d=a.then}catch(t){this.reject_(t);return}"function"==typeof d?this.settleSameAsThenable_(d,a):this.fulfill_(a)};b.prototype.reject_=function(a){this.settle_(2,a)};b.prototype.fulfill_=function(a){this.settle_(1,a)};b.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};b.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a= this.onSettledCallbacks_,b=0;b<a.length;++b)a[b].call(),a[b]=null;this.onSettledCallbacks_=null}};var m=new c;b.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};b.prototype.settleSameAsThenable_=function(a,b){var d=this.createResolveAndReject_();try{a.call(b,d.resolve,d.reject)}catch(l){d.reject(l)}};b.prototype.then=function(a,f){function d(a,b){return"function"==typeof a?function(b){try{c(a(b))}catch(v){h(v)}}:b}var c,h,g=new b(function(a, b){c=a;h=b});this.callWhenSettled_(d(a,c),d(f,h));return g};b.prototype.catch=function(a){return this.then(void 0,a)};b.prototype.callWhenSettled_=function(a,b){function d(){switch(c.state_){case 1:a(c.result_);break;case 2:b(c.result_);break;default:throw Error("Unexpected state: "+c.state_);}}var c=this;null==this.onSettledCallbacks_?m.asyncExecute(d):this.onSettledCallbacks_.push(function(){m.asyncExecute(d)})};b.resolve=g;b.reject=function(a){return new b(function(b,d){d(a)})};b.race=function(a){return new b(function(b, d){for(var c=$jscomp.makeIterator(a),f=c.next();!f.done;f=c.next())g(f.value).callWhenSettled_(b,d)})};b.all=function(a){var d=$jscomp.makeIterator(a),c=d.next();return c.done?g([]):new b(function(a,b){function f(b){return function(c){h[b]=c;l--;0==l&&a(h)}}var h=[],l=0;do h.push(void 0),l++,g(c.value).callWhenSettled_(f(h.length-1),b),c=d.next();while(!c.done)})};return b},"es6","es3"); $jscomp.executeAsyncGenerator=function(a){function c(c){return a.next(c)}function g(c){return a.throw(c)}return new Promise(function(f,b){function m(a){a.done?f(a.value):Promise.resolve(a.value).then(c,g).then(m,b)}m(a.next())})}; (function(a){window.JChatLivestreaming=function(c,g){var f=null,b=null,m=null,d=null,h=null,t=null,l=null,C=null,n=1E3*jchat_recorded_media_chunk_duration,G=1E3*jchat_retry_interval,E=null,F=null,v=null,x={mimeType:"video/webm"},p,D,y,z=!1,A=function(){},w=!1,k=!1,I=function(a){H(a.data)},L=function(e){if(a(e).data("streaming"))return k&&console.log("Already started recording session"),J(e),!1;var d=null;d=c.getLocalStream();if(!d)return!1;try{var u=function(){f&&"recording"==f.state&&(f.requestData(), f.stop(),f=void 0);f=new MediaRecorder(d,x);f.ondataavailable=I;k&&(f.onerror=function(a){console.log("An error has occurred: "+a.message)});f.start();E=new Date;q(1)};u();z=!0;b=setInterval(u,n);a(e).data("streaming",!0).addClass("jchat_stop_live_streaming").text(COM_JCHAT_END_LIVESTREAMING);a("#jchat_webrtc_upload").data("empty",!0).removeClass("jchat_btn_enabled");a("#jchat_trigger_conference_fileupload").removeClass("jchat_disabled");k&&(console.log("Started recording"),console.log("State:"+f.state))}catch(K){k&& console.log("Error starting recording: "+K.message)}},J=function(e){if(!a(e).data("streaming"))return k&&console.log("Still not started recording session to stop it"),!1;var d=c.getLocalStream().getVideoTracks()[0];d.enabled||(d.enabled=!0);clearInterval(b);a(e).data("streaming",!1).removeClass("jchat_stop_live_streaming").text(COM_JCHAT_START_LIVESTREAMING);a("#jchat_trigger_conference_fileupload").addClass("jchat_disabled");try{f.stop(),q(0),F=new Date,v=F-E,k&&(console.log(v+" seconds"),console.log("Stopped recording"), console.log("State:"+f.state))}catch(u){k&&console.log("Error stopping recording: "+u.message)}},H=function(b){l=new Blob([b],{type:x.mimeType});C="livestreaming_"+jchat_usersessionid+".webm";if(l&&l.size){var e=new FormData;e.append("filename",C);e.append("blob",l);e.append("task","livestreaming.saveEntity");e.append("itemid",jchat_current_itemid);var c=function(){a.ajax({url:jchat_livesite+"index.php?option=com_jchat&format=json",type:"POST",data:e,cache:!1,dataType:"json",processData:!1,contentType:!1, xhr:function(){var b=a.ajaxSettings.xhr();b.upload.onload=function(){console.log("Chunk uploaded successfully!")};return b},success:function(a,b,e){a.result?k&&console.log("Chunk upload completed"):(r(a.exception_message),k&&console.log(jchat_upload_error))},error:function(a,b,e){}})};"inactive"==f.state?setTimeout(function(){c();setTimeout(function(){var b=new FormData;b.append("filename",C);b.append("task","livestreaming.deleteEntity");(function(){a.ajax({url:jchat_livesite+"index.php?option=com_jchat&format=json", type:"POST",data:b,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a,b,e){z=!1;a.result?k&&console.log("Last chunk deleted, live streaming closed"):(r(a.exception_message),k&&console.log(jchat_upload_error))},error:function(a,b,e){}})})()},n)},n-v):"recording"==f.state&&c()}},N=function(b){if(a(b).data("streaming"))return k&&console.log("Already started watching the live"),B(b),!1;a("#jchat_webrtc_watch_recorded_streaming").addClass("jchat_disabled");try{var e=jchatBaseURI+ "media/com_jchat/livestreaming/livestreaming_"+jchat_livestreaming_broadcaster_sessionid+".webm",c=function(){var c=document.createElement("canvas"),d=document.querySelector("video.jchat_conference_remotepeer"),f=a("video.jchat_conference_remotepeer");d.videoWidth&&d.videoHeight&&(c.width=d.videoWidth,c.height=d.videoHeight,c.getContext("2d").drawImage(d,0,0,c.width,c.height),c=c.toDataURL("image/jpeg"),f.attr("poster",c));f.attr("src",e+"?time="+Date.now());a("div.jchat_wrapper_remotevideo.jchat_wrapper_livestreaming").addClass("active"); a.ajax({type:"GET",url:e+"?time="+Date.now()}).done(function(a,b,c){}).fail(function(a,c,e){r(COM_JCHAT_LIVESTREAMING_IS_ENDED);B(b)})},d=function(){c();q(1);m=setInterval(c,n);a(b).data("streaming",!0).addClass("jchat_stop_live_streaming").text(COM_JCHAT_STOP_WATCHING_LIVESTREAMING);var e=new FormData;e.append("watcheriswatching",1);e.append("broadcastersessionid",a("#jchat_livestreaming_identifier").val());e.append("task","livestreaming.updateEntity");a.ajax({url:jchat_livesite+"index.php?option=com_jchat&format=json", type:"POST",data:e,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a,b,e){},error:function(a,b,e){}});k&&console.log("Live streaming is available on server")};a.Deferred(function(b){a.ajax({type:"GET",url:e+"?time="+Date.now()}).done(function(a,e,c){b.resolve()}).fail(function(a,e,c){a=e[0].toUpperCase()+e.slice(1);b.reject("-"+a+"- "+c)})}).promise().then(function(a){d()},function(b,c){r(COM_JCHAT_LIVESTREAMING_STILL_NOT_AVAILABLE);c=jchatBaseURI+"components/com_jchat/images/default/waitlivestreaming.gif"; var f=a("video.jchat_conference_remotepeer"),u=f.height();f.attr("poster",c).addClass("jchat_waiting_livestreaming").css("height",u+"px");a("#jchat_webrtc_watch_livestreaming").addClass("jchat_pause_live_streaming").text(COM_JCHAT_PAUSE_WATCHING_LIVESTREAMING);y=setInterval(function(){a.ajax({type:"GET",url:e+"?time="+Date.now()}).done(function(b,e,c){clearInterval(y);a("#jchat_webrtc_watch_livestreaming").removeClass("jchat_pause_live_streaming").text(COM_JCHAT_WATCH_LIVESTREAMING);b=jchatBaseURI+ "components/com_jchat/images/default/placeholder.png";a("video.jchat_conference_remotepeer").removeClass("jchat_waiting_livestreaming").attr("poster",b);d()}).fail(function(a,b,e){})},G);q(0);k&&console.log("Live streaming is not available on server: "+b)})}catch(M){k&&console.log("Error starting watching the live streaming: "+M.message)}},B=function(b){var c=jchatBaseURI+"components/com_jchat/images/default/placeholder.png";"undefined"!==typeof y&&clearInterval(y);a("#jchat_webrtc_watch_recorded_streaming").removeClass("jchat_disabled"); if(!a(b).data("streaming"))return a("#jchat_webrtc_watch_livestreaming").removeClass("jchat_pause_live_streaming").text(COM_JCHAT_WATCH_LIVESTREAMING),a("video.jchat_conference_remotepeer").removeClass("jchat_waiting_livestreaming").attr("poster",c),k&&console.log("Still not started watching the live to stop it"),!1;var e=a("video.jchat_conference_remotepeer").get(0);e.pause();e.removeAttribute("src");e.removeAttribute("poster");e.load();a("video.jchat_conference_remotepeer").removeAttr("src").attr("poster", c);q(0);a("div.jchat_wrapper_remotevideo.jchat_wrapper_livestreaming").removeClass("active");clearInterval(m);a(b).data("streaming",!1).removeClass("jchat_stop_live_streaming").text(COM_JCHAT_WATCH_LIVESTREAMING);b=new FormData;b.append("watcheriswatching",0);b.append("broadcastersessionid",a("#jchat_livestreaming_identifier").val());b.append("task","livestreaming.updateEntity");a.ajax({url:jchat_livesite+"index.php?option=com_jchat&format=json",type:"POST",data:b,cache:!1,dataType:"json",processData:!1, contentType:!1,success:function(a,b,c){},error:function(a,b,c){}})},O=function(b){var c=function(c){c||r(COM_JCHAT_RECORDEDSTREAMING_IS_ENDED);"undefined"!==typeof d&&clearTimeout(d);c=a("video.jchat_conference_remotepeer").get(0);c.pause();c.removeAttribute("src");c.removeAttribute("poster");c.load();c.controls=!1;c=jchatBaseURI+"components/com_jchat/images/default/placeholder.png";a("video.jchat_conference_remotepeer").removeAttr("src").attr("poster",c);q(0);a("#jchat_webrtc_watch_livestreaming").removeClass("jchat_disabled"); a("div.jchat_wrapper_remotevideo.jchat_wrapper_livestreaming").removeClass("active");a(b).data("recording",!1).removeClass("jchat_stop_live_streaming").text(COM_JCHAT_WATCH_RECORDED_STREAMING);a("#jchat_webrtc_pause_recorded_streaming").addClass("jchat_hidden_btn").removeClass("jchat_paused_livestreaming");w=!1;"undefined"!==typeof h&&clearTimeout(h)};if(a(b).data("recording"))return k&&console.log("Already started watching the recorded live"),c(!0),!1;var e=0,f=jchatBaseURI+"media/com_jchat/livestreaming/archive/"+ jchat_livestreaming_broadcaster_sessionid+"/";q(1);a("#jchat_webrtc_watch_livestreaming").addClass("jchat_disabled");A=function(){if(!w){var b=document.createElement("canvas"),g=document.querySelector("video.jchat_conference_remotepeer"),h=a("video.jchat_conference_remotepeer");g.videoWidth&&g.videoHeight&&(b.width=g.videoWidth,b.height=g.videoHeight,b.getContext("2d").drawImage(g,0,0,b.width,b.height),b=b.toDataURL("image/jpeg"),h.attr("poster",b));b=f+e+".webm?time="+Date.now();h.attr("src",b); e++;a("div.jchat_wrapper_remotevideo.jchat_wrapper_livestreaming").addClass("active");a.ajax({type:"GET",url:b}).done(function(a,b,c){}).fail(function(a,b,e){c()});d=setTimeout(A,n)}};var g=a("video.jchat_conference_remotepeer");g.attr("controls",!1);g.get(0).addEventListener("seeking",function(a){return!1});A();a(b).data("recording",!0).addClass("jchat_stop_live_streaming").text(COM_JCHAT_STOP_WATCHING_LIVESTREAMING);a("#jchat_webrtc_pause_recorded_streaming").removeClass("jchat_hidden_btn");k&& console.log("Recorded live streaming is started")},q=function(b){if(1==b){if(!a("#jchat_webrtc_duration").length){a("#jchat_conference_controls #jchat_trigger_conference_fileupload, #jchat_conference_controls #jchat_webrtc_watch_livestreaming").after('<div id="jchat_webrtc_duration"><span></span></div>');a("#jchat_webrtc_duration").hide();var c=Date.now();D=setInterval(function(){if(w)c+=1E3;else{var b=Date.now();b=(new Date(b-c)).toUTCString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1");a("#jchat_webrtc_duration > span").text(b); a("#jchat_webrtc_duration").show()}},1E3)}}else a("#jchat_webrtc_duration").remove(),"undefined"!==typeof D&&clearInterval(D)},P=function(){if(navigator.clipboard)navigator.clipboard.writeText(a("input.jchat_livestreaming_share_link").val()).then(function(){var b=a("#jchat_copy_addon_tooltip");a("#jchat_copy_addon_tooltip div.jchat_tooltip_content").text(jchat_copy_addon_success);var c=parseInt(b.css("top"));b.css("top",c+50)}).catch(function(a){});else try{a("input.jchat_livestreaming_share_link").get(0).select(), document.execCommand("copy")&&a("#jchat_copy_addon_tooltip div.jchat_tooltip_content").text(jchat_copy_addon_success),window.getSelection().removeAllRanges()}catch(e){}},Q=function(){a("#jchat_webrtc_start_livestreaming",p).on("click.jchatwebrtc",{scope:this},function(a){L(this)});jchat_livestreaming_iswatcher&&(a("#jchat_webrtc_watch_livestreaming:not(.jchat_pause_live_streaming)",p).on("click.jchatwebrtc",{scope:this},function(b){if(a(this).hasClass("jchat_pause_live_streaming"))B(this);else{if(a(b.target).hasClass("jchat_disabled"))return!1; N(this)}}),a("#jchat_webrtc_watch_livestreaming.jchat_stop_live_streaming,#jchat_webrtc_watch_livestreaming.jchat_pause_live_streaming",p).on("click.jchatwebrtc",{scope:this},function(a){B(this)}),a("#jchat_webrtc_watch_recorded_streaming",p).on("click.jchatwebrtc",{scope:this},function(b){if(a(b.target).hasClass("jchat_disabled"))return!1;O(this)}),a("#jchat_webrtc_pause_recorded_streaming",p).on("click.jchatwebrtc",{scope:this},function(b){var c=a("video.jchat_conference_remotepeer").get(0);b=a(b.target); b.hasClass("jchat_paused_livestreaming")?(t=n-1E3*c.currentTime,"undefined"!==typeof d&&clearTimeout(d),"undefined"!==typeof h&&clearTimeout(h),h=setTimeout(A,t),c.play(),w=!1,b.removeClass("jchat_paused_livestreaming")):("undefined"!==typeof d&&clearTimeout(d),"undefined"!==typeof h&&clearTimeout(h),c.pause(),w=!0,b.addClass("jchat_paused_livestreaming"))}));a(document).on("click.jchatwebrtc","#jchat_conference_userslist li.jchat_userbox span.jchat_usersbox_name",function(b){b=a(this).parents("li.jchat_userbox").data("sessionid"); a("div.jchat_userscontent #jchat_userlist_"+b).trigger("click")});a(document).on("click.jchatwebrtc","span.jchat_copy_addon",function(a){P()});a(document).on("click.jchatwebrtc","video.jchat_conference_remotepeer",function(a){this.requestFullScreen=this.webkitRequestFullScreen||this.mozRequestFullScreen||this.requestFullScreen;this.requestFullScreen()})},r=function(b){a("div#jchat_msg").remove();a("<div/>").attr("id","jchat_msg").prependTo("body").append('<div id="jchat_msgtext">'+b+"</div>").css("margin-top", 0).hide().fadeIn(500).delay(3500).fadeOut(500,function(){a(this).remove()})};this.initializeVideo=function(b){a("#jchat_webrtc_end_conference,div.jchat_peer_bandwidth,div.jchat_conference_btns,#jchat_conference_maximizebutton").remove();p=b;var c=a("#jchat_conference_controls",p);c.append('<div id="jchat_webrtc_start_livestreaming">'+COM_JCHAT_START_LIVESTREAMING+"</div>");a("#jchat_conference_remotevideos").append('<div class="jchat_livestreaming_share_container"><div class="input-prepend"><span class="add-on jchat_copy_addon"><img class="jchat_copy_icon" src="'+ jchat_livesite+'components/com_jchat/images/default/copy-solid.svg" alt="copy">'+COM_JCHAT_SHARE_LIVESTREAMING+'</span><input class="jchat_livestreaming_share_link" value="'+jchat_livestreaming_share_link+'"/></div></div>');if(jchat_livestreaming_iswatcher){c.prepend('<div id="jchat_webrtc_volume"><input class="jchat_slider" type="range" min="0" max="100" step="10" value="'+100*g.defaultAudioVolume+'"/></div>');a("#jchat_webrtc_start_livestreaming").attr("id","jchat_webrtc_watch_livestreaming").text(COM_JCHAT_WATCH_LIVESTREAMING); jchat_livestreaming_stale&&(a("#jchat_webrtc_watch_livestreaming").after('<div class="jchat_livestreaming_error"><div class=" jchat_icon_error"></div><div class=" jchat_tooltip_error">'+COM_JCHAT_LIVE_STREAMING_STALE+"</div></div>"),a("#jchat_webrtc_watch_livestreaming").remove());jchat_livestreaming_ismine&&a("#jchat_conference_controls *").remove();var d='<div class="jchat_wrapper_remotevideo jchat_wrapper_livestreaming"><span class="jchat_video_tab jchat_no_pin_video">'+jchat_livestreaming_broadcaster_name+ '</span><video class="jchat_conference_remotepeer"'+(' poster="'+jchat_livesite+'components/com_jchat/images/default/placeholder.png"')+' autoplay="autoplay"></video></span>';a("#jchat_conference_remotevideo").prepend(d);a.jStorage.get("jchat_webrtc_volume",!1)&&(d=a.jStorage.get("jchat_webrtc_volume"),a("#jchat_webrtc_volume input",b).val(100*d));a("#jchat_webrtc_volume input",c).on("mousemove.jchatwebrtc, touchmove.jchatwebrtc",function(b){b=a(this).val()/100;a("video.jchat_conference_remotepeer").get(0).volume= b;a.jStorage.set("jchat_webrtc_volume",b)})}a("#jchat_webrtc_upload").data("empty",!0);Q.call(this)};"undefined"!==typeof MediaRecorder&&(window.addEventListener("beforeunload",function(b){if(!0===a("#jchat_webrtc_start_livestreaming, #jchat_webrtc_watch_livestreaming").data("streaming")||z)jchat_livestreaming_iswatcher?r(COM_JCHAT_LIVESTREAMING_PREVENT_OTHER_TABS):r(COM_JCHAT_LIVESTREAMING_TERMINATE_BEFORE_CLOSING.replace("%d",n/1E3)),b.preventDefault(),b.returnValue="";return!1}),window.addEventListener("unload", function(b){return $jscomp.executeAsyncGenerator(function(){function b(b,g,h){for(;;)switch(c){case 0:if(!0!==a("#jchat_webrtc_start_livestreaming, #jchat_webrtc_watch_livestreaming").data("streaming")&&!z){c=1;break}if(!jchat_livestreaming_iswatcher){c=2;break}f=new Promise(function(b,c){c=new FormData;c.append("watcheriswatching",0);c.append("broadcastersessionid",a("#jchat_livestreaming_identifier").val());c.append("task","livestreaming.updateEntity");a.ajax({url:jchat_livesite+"index.php?option=com_jchat&format=json", type:"POST",data:c,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a,c,d){b("Watcher removed")},error:function(a,c,d){b("An error occurred removing the watcher")}})});c=3;return{value:f,done:!1};case 3:if(1!=b){c=4;break}c=-1;throw h;case 4:d=e=g,k&&console.log(d);case 2:case 1:return c=-1,{value:!1,done:!0};default:return{value:void 0,done:!0}}}var c=0,d,e,f,g={next:function(a){return b(0,a,void 0)},throw:function(a){return b(1,void 0,a)},return:function(a){throw Error("Not yet implemented"); }};$jscomp.initSymbolIterator();g[Symbol.iterator]=function(){return this};return g}())}),k=g.debugEnabled,"undefined"!==typeof MediaRecorder.isTypeSupported&&(MediaRecorder.isTypeSupported("video/webm;codecs=vp9")?x={mimeType:"video/webm;codecs=vp9"}:MediaRecorder.isTypeSupported("video/webm;codecs=vp8,opus")&&(x={mimeType:"video/webm;codecs=vp8,opus"})))}})(jQuery);
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка