From 2d60c0a44105b3f92011999243f32280c870d651 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Tue, 9 Jun 2020 12:35:40 -0400 Subject: [PATCH] release version 6 updates I've fixed issues with innerHTML calls in this release that would normally totally break things if there were changes to index.html. Now, if there is an error, it is handled more gracefully and usually just a single UI element breaks. You should be able to customize the index.html file now without too many hassles. You will also notice that the index.html has the following line: you can specify different languages or different branding/wording translations by setting the data-translation value to that of the json filename located in the translations folder. You can also create your own json files and specify them that way. By default I am specifying the "blank" translation. I'm trying to steer the app code in the direction of being a bit like a library, for numerous reasons, but please reach out if you have issues with this new release. This release has numerous bug fixes and uses a new handshake server to improve the group-room experience, which I will continue to update. I will continue to work towards allowing greater accessibility in stylizing the application. --- animations.js | 116 +-- electron.html | 45 +- index.html | 171 +++- main.css | 62 +- main.js | 2101 +-------------------------------------- translations/blank.json | 42 + translations/en.json | 2 +- translations/ru.json | 2 +- 8 files changed, 258 insertions(+), 2283 deletions(-) create mode 100644 translations/blank.json diff --git a/animations.js b/animations.js index 5f14a95..de120bb 100644 --- a/animations.js +++ b/animations.js @@ -1,115 +1 @@ - -/* We need to create dynamic keyframes to show the animation from full-screen to normal. So we create a stylesheet in which we can insert CSS keyframe rules */ -$("body").append(''); - -/* Click on the container */ -$(".column").on('click', function() { - /* The position of the container will be set to fixed, so set the top & left properties of the container */ - - var bounding_box = $(this).get(0).getBoundingClientRect(); - $(this).css({ top: bounding_box.top + 'px', left: bounding_box.left -20+ 'px' }); - - /* Set container to fixed position. Add animation */ - $(this).addClass('in-animation'); - - /* An empty container has to be added in place of the lightbox container so that the elements below don't come up - Dimensions of this empty container is the same as the original container */ - $("#empty-container").remove(); - $('
').insertAfter(this); - - /* To animate the container from full-screen to normal, we need dynamic keyframes */ - var styles = ''; - styles = '@keyframes outlightbox {'; - styles += '0% {'; - styles += 'height: 100%;'; - styles += 'width: 100%;'; - styles += 'top: 0px;'; - styles += 'left: 0px;'; - styles += '}'; - styles += '50% {'; - styles += 'height: 220px;'; - styles += 'top: ' + bounding_box.y + 'px;'; - styles += '}'; - styles += '100% {'; - styles += 'height: 220px;'; - styles += 'width: '+bounding_box.width+'px;'; - styles += 'top: ' + bounding_box.y + 'px;'; - styles += 'left: ' + bounding_box.x + 'px;'; - styles += '}'; - styles += '}'; - - /* Add keyframe to CSS */ - $("#lightbox-animations").get(0).sheet.insertRule(styles, 0); - - /* Hide the window scrollbar */ - $("body").css('overflow', 'hidden'); -}); - -/* Click on close button when full-screen */ -$(".close").on('click', function(e) { -$(this).hide(); -$(".container-inner").hide(); -/* Window scrollbar normal */ -$("body").css('overflow', 'auto'); - -var bounding_box = $(this).parent().get(0).getBoundingClientRect(); -$(this).parent().css({ top: bounding_box.top + 'px', left: bounding_box.left + 'px' }); - -/* Show animation */ -$(this).parent().addClass('out-animation'); - -e.stopPropagation(); -}); - -/* On animationend : from normal to full screen & full screen to normal */ -$(".column").on('animationend', function(e) { -/* On animation end from normal to full-screen */ -if(e.originalEvent.animationName == 'inlightbox') { - $(this).children(".close").show(); - $(this).children(".container-inner").show(); -} -/* On animation end from full-screen to normal */ -else if(e.originalEvent.animationName == 'outlightbox') { -/* Remove fixed positioning, remove animation rules */ -$(this).removeClass('in-animation').removeClass('out-animation').removeClass('columnfade'); - -/* Remove the empty container that was earlier added */ -$("#empty-container").remove(); - -/* Delete the dynamic keyframe rule that was earlier created */ -$("#lightbox-animations").get(0).sheet.deleteRule(0); -} -}); - - -// multiselect dropdowns -$('.multiselect-trigger').on('mousedown touchend focusin focusout', function(e) { - var state = $(this).data('state') || 0; - if( state == 0 ) { - // open the dropdown - $(this).data('state', '1').addClass('open').removeClass('closed'); - $(this).find('.fa').removeClass('fa-chevron-down').addClass('fa-chevron-up'); - $(this).parent().find('.multiselect-contents').show(); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; - } else { - // close the dropdown - $(this).data('state', '0').addClass('closed').removeClass('open'); - $(this).find('.fa').removeClass('fa-chevron-up').addClass('fa-chevron-down'); - //$(this).parent().find('.multiselect-contents').hide(); - //$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide(); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();; - } - e.preventDefault(); -}); - - -// when no preference is checked, uncheck the others -$('#multiselect1').on('change', function(e) { - if( $(this).is(':checked') ) { - $(this).parent().parent().find('input[type="checkbox"]').not('#multiselect1').prop('checked', false); - } - e.preventDefault(); -}); - +var _0x5d73=['state','click','.multiselect-contents','get','checked','hide','overflow','hidden','out-animation','children','mousedown\x20touchend\x20focusin\x20focusout','insertRule','animationName','','auto','getBoundingClientRect','.close','left:\x20','data','not','#multiselect1','body','left:\x200px;','parent','in-animation','find','css',':checked','50%\x20{','open','append','fa-chevron-down','width:\x20100%;','fa-chevron-up','.fa','.column','.multiselect-trigger','closed','change','left','width:\x20','stopPropagation','sheet','top','width','show','outlightbox','prop','input[type=\x22checkbox\x22]','px;','deleteRule','originalEvent','#empty-container','removeClass','preventDefault','addClass','remove'];(function(_0x595800,_0x40cbf8){var _0x1a0c5e=function(_0x38e004){while(--_0x38e004){_0x595800['push'](_0x595800['shift']());}};_0x1a0c5e(++_0x40cbf8);}(_0x5d73,0x154));var _0x431c=function(_0x595800,_0x40cbf8){_0x595800=_0x595800-0x0;var _0x1a0c5e=_0x5d73[_0x595800];return _0x1a0c5e;};$(_0x431c('0x17'))[_0x431c('0x20')](_0x431c('0xf'));$(_0x431c('0x25'))['on']('click',function(){var _0xe8d30c=$(this)[_0x431c('0x5')](0x0)[_0x431c('0x11')]();$(this)[_0x431c('0x1c')]({'top':_0xe8d30c[_0x431c('0x2d')]+'px','left':_0xe8d30c[_0x431c('0x29')]-0x14+'px'});$(this)[_0x431c('0x0')](_0x431c('0x1a'));$(_0x431c('0x36'))[_0x431c('0x1')]();$('')['insertAfter'](this);var _0x2e9e26='';_0x2e9e26='@keyframes\x20outlightbox\x20{';_0x2e9e26+='0%\x20{';_0x2e9e26+='height:\x20100%;';_0x2e9e26+=_0x431c('0x22');_0x2e9e26+='top:\x200px;';_0x2e9e26+=_0x431c('0x18');_0x2e9e26+='}';_0x2e9e26+=_0x431c('0x1e');_0x2e9e26+='height:\x20220px;';_0x2e9e26+='top:\x20'+_0xe8d30c['y']+_0x431c('0x33');_0x2e9e26+='}';_0x2e9e26+='100%\x20{';_0x2e9e26+='height:\x20220px;';_0x2e9e26+=_0x431c('0x2a')+_0xe8d30c[_0x431c('0x2e')]+'px;';_0x2e9e26+='top:\x20'+_0xe8d30c['y']+_0x431c('0x33');_0x2e9e26+=_0x431c('0x13')+_0xe8d30c['x']+_0x431c('0x33');_0x2e9e26+='}';_0x2e9e26+='}';$('#lightbox-animations')['get'](0x0)[_0x431c('0x2c')][_0x431c('0xd')](_0x2e9e26,0x0);$('body')[_0x431c('0x1c')]('overflow',_0x431c('0x9'));});$(_0x431c('0x12'))['on'](_0x431c('0x3'),function(_0x4329aa){$(this)[_0x431c('0x7')]();$('.container-inner')[_0x431c('0x7')]();$(_0x431c('0x17'))['css'](_0x431c('0x8'),_0x431c('0x10'));var _0xb72a49=$(this)[_0x431c('0x19')]()[_0x431c('0x5')](0x0)[_0x431c('0x11')]();$(this)[_0x431c('0x19')]()['css']({'top':_0xb72a49[_0x431c('0x2d')]+'px','left':_0xb72a49[_0x431c('0x29')]+'px'});$(this)['parent']()[_0x431c('0x0')]('out-animation');_0x4329aa[_0x431c('0x2b')]();});$(_0x431c('0x25'))['on']('animationend',function(_0x5025e5){if(_0x5025e5[_0x431c('0x35')][_0x431c('0xe')]=='inlightbox'){$(this)[_0x431c('0xb')](_0x431c('0x12'))[_0x431c('0x2f')]();$(this)['children']('.container-inner')[_0x431c('0x2f')]();}else if(_0x5025e5[_0x431c('0x35')]['animationName']==_0x431c('0x30')){$(this)[_0x431c('0x37')](_0x431c('0x1a'))[_0x431c('0x37')](_0x431c('0xa'))[_0x431c('0x37')]('columnfade');$(_0x431c('0x36'))[_0x431c('0x1')]();$('#lightbox-animations')['get'](0x0)['sheet'][_0x431c('0x34')](0x0);}});$(_0x431c('0x26'))['on'](_0x431c('0xc'),function(_0x3fce8b){var _0x28cd2d=$(this)[_0x431c('0x14')]('state')||0x0;if(_0x28cd2d==0x0){$(this)['data']('state','1')['addClass'](_0x431c('0x1f'))[_0x431c('0x37')](_0x431c('0x27'));$(this)[_0x431c('0x1b')]('.fa')[_0x431c('0x37')](_0x431c('0x21'))[_0x431c('0x0')](_0x431c('0x23'));$(this)[_0x431c('0x19')]()[_0x431c('0x1b')](_0x431c('0x4'))[_0x431c('0x2f')]();$(this)[_0x431c('0x19')]()[_0x431c('0x1b')](_0x431c('0x4'))[_0x431c('0x1b')](_0x431c('0x32'))[_0x431c('0x19')]()[_0x431c('0x2f')]();;$(this)[_0x431c('0x19')]()['find'](_0x431c('0x4'))[_0x431c('0x1b')](_0x431c('0x32'))['show']();;}else{$(this)[_0x431c('0x14')](_0x431c('0x2'),'0')['addClass']('closed')[_0x431c('0x37')]('open');$(this)[_0x431c('0x1b')](_0x431c('0x24'))['removeClass']('fa-chevron-up')[_0x431c('0x0')](_0x431c('0x21'));$(this)[_0x431c('0x19')]()['find'](_0x431c('0x4'))[_0x431c('0x1b')]('input[type=\x22checkbox\x22]')[_0x431c('0x15')](_0x431c('0x1d'))[_0x431c('0x19')]()[_0x431c('0x7')]();;$(this)[_0x431c('0x19')]()[_0x431c('0x1b')](_0x431c('0x4'))['find'](_0x431c('0x32'))['hide']();;}_0x3fce8b[_0x431c('0x38')]();});$(_0x431c('0x16'))['on'](_0x431c('0x28'),function(_0x132688){if($(this)['is'](':checked')){$(this)['parent']()[_0x431c('0x19')]()[_0x431c('0x1b')](_0x431c('0x32'))[_0x431c('0x15')](_0x431c('0x16'))[_0x431c('0x31')](_0x431c('0x6'),![]);}_0x132688[_0x431c('0x38')]();}); \ No newline at end of file diff --git a/electron.html b/electron.html index 3821dd0..50c35e3 100644 --- a/electron.html +++ b/electron.html @@ -75,21 +75,31 @@ input[type='checkbox']:checked { -
+
+ + + + -


-
- - -

- -
+ + + + + +


+
+ + +

+ + +
@@ -121,7 +131,7 @@ function getPermssions(e){ return; } e.currentTarget.blur(); - navigator.mediaDevices.getUserMedia({audio: true,video: false}).then(function(stream){ + navigator.mediaDevices.getUserMedia({audio: true,video: false}).then((stream)=>{ navigator.mediaDevices.enumerateDevices().then(gotDevices).catch(console.error); // list all devices stream.getTracks().forEach(track => { track.stop(); @@ -207,10 +217,13 @@ function updateURLParameter(url, param, paramVal){ if(TheParams){baseURL = TheParams;} } - if (paramVal==false){ + if (paramVal===false){ temp=""; if(TheAnchor){temp += "#" + TheAnchor;} var rows_txt = temp + } else if (paramVal===""){ + if(TheAnchor){paramVal += "#" + TheAnchor;} + var rows_txt = temp + "" + param; } else { if(TheAnchor){paramVal += "#" + TheAnchor;} var rows_txt = temp + "" + param + "=" + paramVal; @@ -230,7 +243,7 @@ function modURL(ele=false){ console.log(url); if ((url.split("view").length>0) || (url.split("room").length>0)){ if (!document.getElementById("showcursor").checked){ - url=updateURLParameter(url, "nocursor", "1"); + url=updateURLParameter(url, "nocursor", ""); } else { url=updateURLParameter(url, "nocursor", false); } @@ -254,12 +267,20 @@ function modURL(ele=false){ if (ele.id =="stereo"){ if (document.getElementById("stereo").checked){ - url=updateURLParameter(url, "stereo", "1"); + url=updateURLParameter(url, "stereo", ""); alert('Audio bitrate increased to 256kbps.\n\nPlease note: the Video Publisher must also have the stereo flag enabled for stereo to work.'); } else { url=updateURLParameter(url, "stereo", false); } } + + if (ele.id =="buffer"){ + if (document.getElementById("buffer").checked){ + url=updateURLParameter(url, "buffer", ""); + } else { + url=updateURLParameter(url, "buffer", false); + } + } } } diff --git a/index.html b/index.html index 6d6f07f..278770c 100644 --- a/index.html +++ b/index.html @@ -2,24 +2,49 @@ - + + + + + +OBS.Ninja + + + + + + + + + + + + + + + + + + + + - + - + - +
+
+ +
- \x09GUEST\x20SLOT\x20#2(A\x20video\x20will\x20appear\x20here\x20when\x20a\x20guest\x20joins)A\x20Solo\x20Link\x20for\x20OBS\x20will\x20appear\x20here
\x09GUEST\x20SLOT\x20#3(A\x20video\x20will\x20appear\x20here\x20when\x20a\x20guest\x20joins)A\x20Solo\x20Link\x20for\x20OBS\x20will\x20appear\x20here\x09GUEST\x20SLOT\x20#4(A\x20video\x20will\x20appear\x20here\x20when\x20a\x20guest\x20joins)A\x20Solo\x20Link\x20for\x20OBS\x20will\x20appear\x20here';joinRoom(_0x5b3db5);}function toggle(_0x15b3b8,_0x84400c=![]){var _0x6e3757=_0x15b3b8;if(_0x6e3757[_0xac62('0x26')][_0xac62('0x87')]===_0xac62('0x151')){_0x6e3757['style'][_0xac62('0x87')]='block';}else{_0x6e3757[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x151');}if(_0x84400c){if(_0x84400c['dataset'][_0xac62('0x60')]){_0x84400c[_0xac62('0xc8')]=_0x84400c[_0xac62('0x24f')][_0xac62('0x60')];delete _0x84400c['dataset'][_0xac62('0x60')];}else{_0x84400c[_0xac62('0x24f')][_0xac62('0x60')]=_0x84400c[_0xac62('0xc8')];_0x84400c['innerHTML']=_0xac62('0x21e');}}}function enumerateDevices(){log(_0xac62('0x1ae'));if(typeof navigator['enumerateDevices']==='function'){errorlog('enumerated\x20failed\x201');return navigator[_0xac62('0x14f')]();}else if(typeof navigator['mediaDevices']===_0xac62('0x8e')&&typeof navigator['mediaDevices']['enumerateDevices']===_0xac62('0x108')){errorlog(_0xac62('0x10b'));return navigator[_0xac62('0x124')]['enumerateDevices']();}else{if('jUPAN'===_0xac62('0x1be')){return new Promise((_0x3da818,_0x4eac53)=>{try{if(window['MediaStreamTrack']==null||window[_0xac62('0xcc')][_0xac62('0xb9')]==null){throw new Error();}window[_0xac62('0xcc')][_0xac62('0xb9')](_0x3eb895=>{_0x3da818(_0x3eb895['filter'](_0x29d45d=>{return _0x29d45d[_0xac62('0x240')][_0xac62('0x43')]()===_0xac62('0xb0')||_0x29d45d[_0xac62('0x240')][_0xac62('0x43')]()==='videoinput';})[_0xac62('0x1c1')](_0x4190b5=>{return{'deviceId':_0x4190b5[_0xac62('0xc6')]!=null?_0x4190b5['deviceId']:'','groupId':_0x4190b5[_0xac62('0xa6')],'kind':_0xac62('0x1e6'),'label':_0x4190b5[_0xac62('0x173')],'toJSON':function(){return this;}};}));});}catch(_0x2aed50){errorlog(_0x2aed50);}});}else{if(tog['dataset'][_0xac62('0x60')]){tog[_0xac62('0xc8')]=tog[_0xac62('0x24f')]['saved'];delete tog[_0xac62('0x24f')][_0xac62('0x60')];}else{tog[_0xac62('0x24f')][_0xac62('0x60')]=tog[_0xac62('0xc8')];tog[_0xac62('0xc8')]=_0xac62('0x21e');}}}}function requestAudioStream(){try{return navigator[_0xac62('0x124')][_0xac62('0xe4')]({'audio':!![],'video':![]})['then'](function(_0x3b8488){log(_0xac62('0xbc'));return enumerateDevices()[_0xac62('0xf1')](function(_0x3bda5a){if(_0xac62('0x23f')===_0xac62('0x23f')){_0x3b8488[_0xac62('0x1cb')]()[_0xac62('0x12a')](function(_0x1671ab){_0x1671ab[_0xac62('0xd9')]();});log('updating\x20audio');const _0x2f2da4=document[_0xac62('0x216')](_0xac62('0x19e'));_0x2f2da4['remove'](0x1);_0x2f2da4[_0xac62('0x10')](_0xac62('0x8f'));for(let _0x2f55a8=0x0;_0x2f55a8!==_0x3bda5a[_0xac62('0x1b')];++_0x2f55a8){const _0x526e13=_0x3bda5a[_0x2f55a8];if(_0x526e13==null){if(_0xac62('0xb7')==='RavMt'){if(e[_0xac62('0x201')]===0x1b){toggleMenuOff();}}else{continue;}}const _0xb148a9=document[_0xac62('0x198')](_0xac62('0x1d'));_0xb148a9[_0xac62('0x247')]=_0x526e13[_0xac62('0xc6')];if(_0x526e13[_0xac62('0x240')]==='audioinput'){_0xb148a9[_0xac62('0x131')]=_0x526e13[_0xac62('0x173')]||_0xac62('0x204')+(_0x2f2da4[_0xac62('0x1b')]+0x1);_0x2f2da4[_0xac62('0x1c9')](_0xb148a9);}else{log(_0xac62('0x155'),_0x526e13);}}}else{const _0x29c1c5=new Blob(recordedBlobs,{'type':_0xac62('0x23')});const _0xa33a85=window[_0xac62('0x11f')][_0xac62('0x146')](_0x29c1c5);const _0xa14363=document[_0xac62('0x198')]('a');_0xa14363[_0xac62('0x26')]['display']='none';_0xa14363[_0xac62('0x8')]=_0xa33a85;_0xa14363['download']=filename+_0xac62('0x142');document[_0xac62('0x13d')][_0xac62('0x1c9')](_0xa14363);_0xa14363[_0xac62('0x101')]();setTimeout(()=>{document['body']['removeChild'](_0xa14363);window[_0xac62('0x11f')][_0xac62('0xf5')](_0xa33a85);},0x64);}});});}catch(_0x120efa){if(window[_0xac62('0x2a')]){alert('An\x20error\x20has\x20occured\x20when\x20trying\x20to\x20access\x20the\x20webcam.\x20The\x20reason\x20is\x20not\x20known.');}else{alert(_0xac62('0x234'));}}}function gotDevices(_0x22166f){log(_0xac62('0x20'));log(_0x22166f);try{const _0xd04f96=document['querySelector'](_0xac62('0x218'));const _0x46ae76=document[_0xac62('0x216')]('select#videoSource');const _0x2d74cc=[_0x46ae76];const _0x3f9dcb=_0x2d74cc[_0xac62('0x1c1')](_0x5f49aa=>_0x5f49aa[_0xac62('0x247')]);_0x2d74cc[_0xac62('0x12a')](_0x2619e4=>{while(_0x2619e4[_0xac62('0x1bd')]){if(_0xac62('0x19c')===_0xac62('0x19c')){_0x2619e4[_0xac62('0xb5')](_0x2619e4[_0xac62('0x1bd')]);}else{log(_0xac62('0xec'));session[_0xac62('0xb0')]=![];}}});var _0xfa2d52=0x1;for(let _0x30f700=0x0;_0x30f700!==_0x22166f[_0xac62('0x1b')];++_0x30f700){const _0x27c980=_0x22166f[_0x30f700];if(_0x27c980==null){continue;}if(_0x27c980['kind']==='audioinput'){const _0x5eb594=document[_0xac62('0x198')](_0xac62('0x253'));_0x5eb594[_0xac62('0x7c')]=_0xac62('0x9b');_0xfa2d52++;const _0x4ad68f=document['createElement']('li');if(_0xfa2d52==0x2){_0x5eb594[_0xac62('0x5f')]=!![];_0x4ad68f[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x5c');_0x5eb594[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x151');getById(_0xac62('0x19b'))[_0xac62('0x5f')]=![];getById(_0xac62('0x19b'))[_0xac62('0x1cd')]['style'][_0xac62('0x87')]='none';}else{_0x4ad68f[_0xac62('0x26')]['display']=_0xac62('0x151');}_0x5eb594[_0xac62('0x247')]=_0x27c980[_0xac62('0xc6')];_0x5eb594[_0xac62('0x1b4')]=_0xac62('0xe8')+_0xfa2d52;_0x5eb594['id']=_0xac62('0xe8')+_0xfa2d52;const _0x5477fe=document[_0xac62('0x198')](_0xac62('0x173'));_0x5477fe[_0xac62('0x132')]=_0x5eb594[_0xac62('0x1b4')];_0x5477fe['innerHTML']='\x20'+(_0x27c980['label']||_0xac62('0x204')+(_0xd04f96['length']+0x1));_0x4ad68f['appendChild'](_0x5eb594);_0x4ad68f[_0xac62('0x1c9')](_0x5477fe);_0xd04f96[_0xac62('0x1c9')](_0x4ad68f);getById(_0xac62('0x19b'))['onchange']=function(_0x30f113){if(!getById(_0xac62('0x19b'))[_0xac62('0x5f')]){getById(_0xac62('0x19b'))[_0xac62('0x5f')]=!![];}};_0x5eb594[_0xac62('0x8f')]=function(_0x42afe7){getById(_0xac62('0x19b'))[_0xac62('0x5f')]=![];if(!CtrlPressed){document[_0xac62('0x3f')](_0xac62('0x16f'))[_0xac62('0x12a')](function(_0x12b183){if('TmeoX'===_0xac62('0x1f')){sq=0x2;}else{if(_0x42afe7['currentTarget']['id']!==_0x12b183['id']){_0x12b183[_0xac62('0x5f')]=![];}else{_0x12b183['checked']=!![];}}});}};}else if(_0x27c980[_0xac62('0x240')]===_0xac62('0x1e6')){const _0x3a5063=document[_0xac62('0x198')](_0xac62('0x1d'));_0x3a5063[_0xac62('0x247')]=_0x27c980[_0xac62('0xc6')];_0x3a5063[_0xac62('0x131')]=_0x27c980[_0xac62('0x173')]||_0xac62('0x243')+(_0x46ae76[_0xac62('0x1b')]+0x1);_0x46ae76[_0xac62('0x1c9')](_0x3a5063);}else{log(_0xac62('0x155'),_0x27c980);}}option=document[_0xac62('0x198')](_0xac62('0x1d'));option[_0xac62('0x131')]=_0xac62('0xc5');option[_0xac62('0x247')]=_0xac62('0xd');_0x46ae76['appendChild'](option);_0x2d74cc[_0xac62('0x12a')]((_0x365bfb,_0x20bf8c)=>{if(Array[_0xac62('0x1d3')]['slice'][_0xac62('0x20e')](_0x365bfb['childNodes'])['some'](_0xeb5c2b=>_0xeb5c2b[_0xac62('0x247')]===_0x3f9dcb[_0x20bf8c])){_0x365bfb[_0xac62('0x247')]=_0x3f9dcb[_0x20bf8c];}});}catch(_0x18179d){if(_0xac62('0x241')===_0xac62('0x241')){errorlog(_0x18179d);}else{window['location'][_0xac62('0xc4')](!![]);}}}if(location['protocol']!=='https:'){alert('SSL\x20(https)\x20is\x20not\x20enabled.\x20This\x20site\x20will\x20not\x20work\x20without\x20it!');}function getUserMediaVideoParams(_0x5d0b7e,_0x16c998){switch(_0x5d0b7e){case 0x0:if(_0x16c998){return{'width':{'min':0x168,'ideal':0x780,'max':0x780},'height':{'min':0x168,'ideal':0x438,'max':0x438}};}else{return{'width':{'min':0x2d0,'ideal':0x780,'max':0x780},'height':{'min':0x2d0,'ideal':0x438,'max':0x780}};}case 0x1:if(_0x16c998){return{'width':{'min':0x168,'ideal':0x500,'max':0x500},'height':{'min':0x168,'ideal':0x2d0,'max':0x2d0}};}else{return{'width':{'min':0x2d0,'ideal':0x500,'max':0x500},'height':{'min':0x2d0,'ideal':0x2d0,'max':0x500}};}case 0x2:if(_0x16c998){return{'width':{'min':0x280},'height':{'min':0x168}};}else{return{'width':{'min':0xf0,'ideal':0x280,'max':0x500},'height':{'min':0xf0,'ideal':0x168,'max':0x500}};}case 0x3:if(_0x16c998){return{'width':{'min':0x168,'ideal':0x500,'max':0x5a0}};}else{return{'width':{'min':0x168,'ideal':0x500,'max':0x5a0}};}case 0x4:if(_0x16c998){return{'height':{'min':0x168,'ideal':0x2d0,'max':0x3c0}};}else{return{'height':{'min':0x168,'ideal':0x3c0,'max':0x3c0}};}case 0x5:if(_0x16c998){return{'width':{'min':0x168,'ideal':0x280,'max':0x5a0},'height':{'min':0x168,'ideal':0x168,'max':0x2d0}};}else{return{'width':{'min':0x168,'ideal':0x280,'max':0xf00},'height':{'min':0x168,'ideal':0x168,'max':0x870}};}case 0x6:if(_0x16c998){return{};}else{if(_0xac62('0x138')!==_0xac62('0xce')){return{'width':{'min':0x168,'max':0x780},'height':{'min':0x168,'max':0x780}};}else{resolve(devices['filter'](_0x214cbf=>{return _0x214cbf[_0xac62('0x240')][_0xac62('0x43')]()==='video'||_0x214cbf[_0xac62('0x240')][_0xac62('0x43')]()===_0xac62('0x1e6');})[_0xac62('0x1c1')](_0x15136f=>{return{'deviceId':_0x15136f[_0xac62('0xc6')]!=null?_0x15136f[_0xac62('0xc6')]:'','groupId':_0x15136f[_0xac62('0xa6')],'kind':_0xac62('0x1e6'),'label':_0x15136f[_0xac62('0x173')],'toJSON':function(){return this;}};}));}}case 0x7:return{'width':{'min':0x168,'ideal':0x280},'height':{'min':0x168,'ideal':0x168},'frameRate':0xa};case 0x8:return{'width':{'min':0x168,'max':0x780},'height':{'min':0x168,'max':0x780}};case 0x9:return{'frameRate':0x0};default:return{};}}function grabVideo(_0x25cbf5=0x0,_0x5f07b1=![]){if(activatedPreview==!![]){log(_0xac62('0x1f0'));return;}activatedPreview=!![];log(_0x25cbf5);log(_0xac62('0x2'));var _0x12dda5=document[_0xac62('0x216')](_0xac62('0x2b'));var _0x2e13e0=0x0;if(session[_0xac62('0x225')]>0x2){_0x2e13e0=0x2;}else{_0x2e13e0=session[_0xac62('0x225')];}if(_0x2e13e0!==![]){if(_0x25cbf5>_0x2e13e0){_0x25cbf5=_0x2e13e0;}}if(iOS){if(_0x25cbf5==0x0){_0x25cbf5=0x1;}}else if(iPad){if(_0x25cbf5==0x0){_0x25cbf5=0x1;}}var _0x43a450=![];var _0x22fab1=[];if(_0x12dda5[_0xac62('0x247')]==_0xac62('0xd')||_0x5f07b1==!![]){var _0x1b41b1=document['querySelector'](_0xac62('0x218'))[_0xac62('0x3f')]('input');var _0x3c9bc0=[];for(var _0x410736=0x0;_0x410736<_0x1b41b1['length'];_0x410736++){if(_0x1b41b1[_0x410736][_0xac62('0x247')]==_0xac62('0xd')){continue;}if(_0x1b41b1[_0x410736][_0xac62('0x5f')]){_0x3c9bc0[_0xac62('0x1e7')](_0x1b41b1[_0x410736]);}}for(var _0x410736=0x1;_0x410736<_0x3c9bc0[_0xac62('0x1b')];_0x410736++){if(_0xac62('0x32')===_0xac62('0xf4')){button['onclick']=function(){var _0x42c27c=event[_0xac62('0x81')];if(session[_0xac62('0xb8')]===!![]){session['infocus']=![];_0x42c27c['innerHTML']=_0xac62('0xca');}else{session[_0xac62('0xb8')]=!![];log('session:\x20myself');_0x42c27c[_0xac62('0xc8')]=_0xac62('0x1a4');}setTimeout(()=>updateMixer(),0xa);};}else{var _0x200268={'audio':{'deviceId':{'exact':_0x3c9bc0[_0x410736][_0xac62('0x247')]}}};if(session[_0xac62('0x227')]==0x1||session[_0xac62('0x227')]==0x3){_0x200268['audio']['echoCancellation']=![];_0x200268[_0xac62('0x15f')][_0xac62('0x7e')]=![];_0x200268[_0xac62('0x15f')]['noiseSuppression']=![];}navigator[_0xac62('0x124')][_0xac62('0xe4')](_0x200268)[_0xac62('0xf1')](function(_0x515cfb){_0x22fab1[_0xac62('0x1e7')](_0x515cfb);})[_0xac62('0x217')](errorlog);}}if(_0x3c9bc0[_0xac62('0x1b')]){_0x43a450={'deviceId':{'exact':_0x3c9bc0[0x0][_0xac62('0x247')]}};if(session[_0xac62('0x227')]==0x1||session[_0xac62('0x227')]==0x3){_0x43a450[_0xac62('0x188')]=![];_0x43a450[_0xac62('0x7e')]=![];_0x43a450['noiseSuppression']=![];}}}if(_0x12dda5[_0xac62('0x247')]==_0xac62('0xd')){var _0xab56f2={'audio':_0x43a450,'video':![]};navigator[_0xac62('0x124')][_0xac62('0xe4')](_0xab56f2)[_0xac62('0xf1')](function(_0x21c733){if(_0xac62('0x213')!==_0xac62('0xf8')){log('adding\x20additional\x20audio\x20tracks');for(var _0x5e4960=0x0;_0x5e4960<_0x22fab1['length'];_0x5e4960++){_0x22fab1[_0x5e4960][_0xac62('0x147')]()[_0xac62('0x12a')](function(_0x507a22){_0x21c733[_0xac62('0xd8')](_0x507a22);log(_0x507a22);});}_0x22fab1=null;getById(_0xac62('0x1f3'))[_0xac62('0x1db')]=_0x21c733;var _0x12b5c4=getById(_0xac62('0x41'));_0x12b5c4[_0xac62('0xc3')]=![];_0x12b5c4[_0xac62('0x26')][_0xac62('0x1fc')]=_0xac62('0x2f');_0x12b5c4[_0xac62('0x26')][_0xac62('0x93')]=_0xac62('0x12f');_0x12b5c4[_0xac62('0x26')][_0xac62('0x117')]=_0xac62('0x1b1');_0x12b5c4['innerHTML']=_0xac62('0xfe');}else{track0['applyConstraints']({'advanced':[{'zoom':input[_0xac62('0x247')]}]});}})['catch'](function(_0x291a78){errorlog(_0x291a78);alert(_0xac62('0x48'));});}else{var _0xab56f2={'audio':_0x43a450,'video':getUserMediaVideoParams(_0x25cbf5,iOS)};_0xab56f2['video'][_0xac62('0xc6')]=_0x12dda5['value'];if(session['width']){_0xab56f2[_0xac62('0xb0')][_0xac62('0x175')]={'exact':session[_0xac62('0x175')]};}if(session['height']){_0xab56f2[_0xac62('0xb0')]['height']={'exact':session[_0xac62('0x157')]};}if(session[_0xac62('0x208')]){_0xab56f2['video'][_0xac62('0x1d8')]={'exact':session[_0xac62('0x208')]};}else if(session[_0xac62('0x16a')]){_0xab56f2[_0xac62('0xb0')][_0xac62('0x1d8')]={'max':session[_0xac62('0x16a')]};}log(_0xab56f2);setTimeout(()=>{try{log(_0xac62('0x1b0'));var _0x305301=getById(_0xac62('0x1f3'))[_0xac62('0x1db')];if(_0x305301){_0x305301[_0xac62('0x1cb')]()[_0xac62('0x12a')](function(_0x149193){_0x149193[_0xac62('0xd9')]();});}}catch(_0x1f46d8){errorlog(_0x1f46d8);}navigator[_0xac62('0x124')][_0xac62('0xe4')](_0xab56f2)[_0xac62('0xf1')](function(_0x417ee8){if(_0x5f07b1==![]){_0x417ee8['getTracks']()[_0xac62('0x12a')](function(_0x1475bf){_0x1475bf[_0xac62('0xd9')]();});log(_0xac62('0x79'));activatedPreview=![];grabVideo(_0x25cbf5,!![]);}else{log(_0xac62('0x210'));for(var _0x2e5d55=0x0;_0x2e5d55<_0x22fab1['length'];_0x2e5d55++){_0x22fab1[_0x2e5d55][_0xac62('0x147')]()[_0xac62('0x12a')](function(_0x487ab0){_0x417ee8[_0xac62('0xd8')](_0x487ab0);log(_0x487ab0);});}_0x22fab1=null;getById(_0xac62('0x1f3'))[_0xac62('0x1db')]=_0x417ee8;var _0x47385b=getById(_0xac62('0x41'));_0x47385b['disabled']=![];_0x47385b['style']['backgroundColor']=_0xac62('0x2f');_0x47385b[_0xac62('0x26')][_0xac62('0x93')]=_0xac62('0x12f');_0x47385b[_0xac62('0x26')][_0xac62('0x117')]=_0xac62('0x1b1');_0x47385b['innerHTML']=_0xac62('0xfe');setTimeout(function(){dragElement(getById(_0xac62('0x1f3')));},0x3e8);log(_0xac62('0x45'));}})[_0xac62('0x217')](function(_0x4b468e){activatedPreview=![];errorlog(_0x4b468e);if(_0x4b468e[_0xac62('0x1b4')]===_0xac62('0x2c')){errorlog(_0x4b468e['message']);log('Resolution\x20didn\x27t\x20work');}else if(_0x4b468e['name']===_0xac62('0x52')){if(iOS){alert(_0xac62('0x136'));}else{alert(_0xac62('0xa9'));}getById(_0xac62('0x41'))[_0xac62('0xc8')]='Problem\x20with\x20Camera';activatedPreview=!![];return;}else if(_0x4b468e[_0xac62('0x1b4')]===_0xac62('0x18c')){getById(_0xac62('0x41'))[_0xac62('0xc8')]=_0xac62('0xef');alert(_0xac62('0x80'));return;}else{errorlog('An\x20unknown\x20camera\x20error\x20occured');}if(_0x25cbf5<=0x9){if(_0xac62('0x1ff')==='bZWPR'){grabVideo(_0x25cbf5+0x1);}else{return el;}}else{errorlog(_0xac62('0x86'));activatedPreview=!![];getById(_0xac62('0x41'))[_0xac62('0xc8')]=_0xac62('0xef');alert(_0xac62('0x109'));}});},0x0);}}function enterPressed(_0x17ea07,_0x501bf8){if(_0x17ea07[_0xac62('0x201')]===0xd){_0x17ea07[_0xac62('0x1b8')]();_0x501bf8();}}function dragElement(_0x3fa6f1){var _0x2f6f21=Date[_0xac62('0xbb')]();log(_0x3fa6f1);try{var _0x2c3e1f=getById(_0xac62('0x51'));var _0x2fd2cf=_0x3fa6f1[_0xac62('0x1db')];log(_0x2fd2cf);var _0xccd2e6=_0x2fd2cf[_0xac62('0x2d')]();log(_0xccd2e6);_0xccd2e6=_0xccd2e6[0x0];var _0x2ca300=_0xccd2e6[_0xac62('0xea')]();var _0x5a5fed=_0xccd2e6[_0xac62('0xac')]();if(!(_0xac62('0x3b')in _0x2ca300)){log(_0xac62('0x82')+_0xccd2e6[_0xac62('0x173')]);return;}_0x2c3e1f[_0xac62('0x126')]=_0x2ca300[_0xac62('0x3b')][_0xac62('0x126')];_0x2c3e1f[_0xac62('0x6b')]=_0x2ca300[_0xac62('0x3b')][_0xac62('0x6b')];_0x2c3e1f[_0xac62('0x10d')]=_0x2ca300['zoom'][_0xac62('0x10d')];_0x2c3e1f[_0xac62('0x247')]=_0x5a5fed['zoom'];}catch(_0x12ab1b){errorlog(_0x12ab1b);return;}log(_0xac62('0x6c'));_0x3fa6f1[_0xac62('0x1ab')]=_0x44b961;_0x3fa6f1[_0xac62('0xf9')]=_0x28a06f;_0x3fa6f1[_0xac62('0x1fa')]=function(_0x1dce39){_0x44b961(_0x1dce39);};var _0x185e27=0x1;function _0x28a06f(_0x3ad9c0){log(_0xac62('0x101'),_0x3ad9c0);_0x3ad9c0=_0x3ad9c0||window[_0xac62('0x40')];_0x3ad9c0[_0xac62('0x1b8')]();return![];}function _0x44b961(_0xad204c){if(_0xac62('0x1eb')==='UeZjA'){log(_0xad204c);_0x3fa6f1[_0xac62('0x1f5')]=![];_0xad204c=_0xad204c||window[_0xac62('0x40')];_0xad204c[_0xac62('0x1b8')]();_0x185e27=_0x2c3e1f[_0xac62('0x247')];if(_0xad204c[_0xac62('0x7c')]==_0xac62('0x171')||_0xad204c[_0xac62('0x7c')]=='touchmove'||_0xad204c[_0xac62('0x7c')]==_0xac62('0xc7')||_0xad204c[_0xac62('0x7c')]==_0xac62('0x22e')){var _0x485e73=_0xad204c['touches'][0x0]||_0xad204c[_0xac62('0x193')][_0xac62('0x1e0')][0x0]||_0xad204c[_0xac62('0x193')][_0xac62('0x1ec')][0x0];pos3=_0x485e73[_0xac62('0xd1')];pos4=_0x485e73[_0xac62('0x1b3')];}else if(_0xad204c[_0xac62('0x7c')]==_0xac62('0x1ac')||_0xad204c[_0xac62('0x7c')]==_0xac62('0x24a')||_0xad204c['type']==_0xac62('0xa4')||_0xad204c[_0xac62('0x7c')]==_0xac62('0x160')||_0xad204c[_0xac62('0x7c')]==_0xac62('0xaa')||_0xad204c[_0xac62('0x7c')]==_0xac62('0x10f')||_0xad204c[_0xac62('0x7c')]==_0xac62('0x1a6')){pos3=_0xad204c[_0xac62('0xd1')];pos4=_0xad204c[_0xac62('0x1b3')];}document[_0xac62('0xe9')]=_0x57d4f4;document[_0xac62('0x11d')]=_0x1ed874;document[_0xac62('0xdc')]=_0x57d4f4;}else{var _0x26d104=getById(_0xac62('0x51'));var _0x5c3696=_0x3fa6f1[_0xac62('0x1db')];log(_0x5c3696);var _0x38e40f=_0x5c3696[_0xac62('0x2d')]();log(_0x38e40f);_0x38e40f=_0x38e40f[0x0];var _0x581fe5=_0x38e40f[_0xac62('0xea')]();var _0x122b7c=_0x38e40f[_0xac62('0xac')]();if(!(_0xac62('0x3b')in _0x581fe5)){log(_0xac62('0x82')+_0x38e40f[_0xac62('0x173')]);return;}_0x26d104[_0xac62('0x126')]=_0x581fe5[_0xac62('0x3b')]['min'];_0x26d104[_0xac62('0x6b')]=_0x581fe5[_0xac62('0x3b')][_0xac62('0x6b')];_0x26d104[_0xac62('0x10d')]=_0x581fe5['zoom']['step'];_0x26d104[_0xac62('0x247')]=_0x122b7c['zoom'];}}function _0x57d4f4(_0x537db0){_0x537db0=_0x537db0||window[_0xac62('0x40')];_0x537db0[_0xac62('0x1b8')]();if(Date[_0xac62('0xbb')]()-_0x2f6f21<0x32){return;}_0x2f6f21=Date[_0xac62('0xbb')]();if(_0x537db0['type']==_0xac62('0x171')||_0x537db0[_0xac62('0x7c')]==_0xac62('0x105')||_0x537db0['type']==_0xac62('0xc7')||_0x537db0[_0xac62('0x7c')]=='touchcancel'){var _0x2239ef=_0x537db0[_0xac62('0x1e0')][0x0]||_0x537db0[_0xac62('0x193')]['touches'][0x0]||_0x537db0[_0xac62('0x193')][_0xac62('0x1ec')][0x0];pos1=_0x2239ef[_0xac62('0xd1')];pos2=_0x2239ef[_0xac62('0x1b3')];}else if(_0x537db0[_0xac62('0x7c')]==_0xac62('0x1ac')||_0x537db0['type']=='mouseup'||_0x537db0['type']==_0xac62('0xa4')||_0x537db0[_0xac62('0x7c')]=='mouseover'||_0x537db0[_0xac62('0x7c')]=='mouseout'||_0x537db0[_0xac62('0x7c')]==_0xac62('0x10f')||_0x537db0['type']==_0xac62('0x1a6')){pos1=_0x537db0['clientX'];pos2=_0x537db0['clientY'];}var _0x145c9b=parseFloat((pos4-pos2)*0x2/_0x3fa6f1[_0xac62('0x1cc')]);if(_0x145c9b>0x1){_0x145c9b=0x1;}else if(_0x145c9b<-0x1){_0x145c9b=-0x1;}_0x2c3e1f[_0xac62('0x247')]=_0x145c9b*(_0x2c3e1f[_0xac62('0x6b')]-_0x2c3e1f[_0xac62('0x126')])+_0x2c3e1f[_0xac62('0x126')];if(_0x2c3e1f[_0xac62('0x247')]!=_0x185e27){_0xccd2e6[_0xac62('0x133')]({'advanced':[{'zoom':_0x2c3e1f['value']}]});}}function _0x1ed874(_0x428425){_0x3fa6f1[_0xac62('0x1f5')]=!![];document[_0xac62('0x11d')]=null;document[_0xac62('0xdc')]=null;document[_0xac62('0xe9')]=null;}}function setupWebcamSelection(){log(_0xac62('0x39'));try{return enumerateDevices()[_0xac62('0xf1')](gotDevices)[_0xac62('0xf1')](function(){log(_0xac62('0xa0'));if(parseInt(getById(_0xac62('0x14e'))[_0xac62('0x186')][_0xac62('0x164')](_0xac62('0x4b'))[_0xac62('0x247')])==0x3){session[_0xac62('0x16a')]=0x1e;}else{session[_0xac62('0x16a')]=![];}if(iOS||iPad){getById(_0xac62('0x19b'))[_0xac62('0x1cd')][_0xac62('0x26')][_0xac62('0x163')]=_0xac62('0xf6');getById(_0xac62('0x19b'))[_0xac62('0x1cd')]['style'][_0xac62('0x157')]=_0xac62('0x1e2');}var _0x93d6b8=document['querySelector']('#audioSource');var _0x11d80f=document[_0xac62('0x216')](_0xac62('0x2b'));_0x93d6b8[_0xac62('0x8f')]=function(){var _0x4540db=getById(_0xac62('0x41'));_0x4540db[_0xac62('0xc3')]=!![];_0x4540db[_0xac62('0x26')][_0xac62('0x1fc')]=_0xac62('0xc2');_0x4540db[_0xac62('0x26')][_0xac62('0x117')]=_0xac62('0xad');_0x4540db[_0xac62('0xc8')]=_0xac62('0x22f');log(_0xac62('0x9e'));activatedPreview=![];grabVideo(parseInt(getById(_0xac62('0x14e'))[_0xac62('0x186')][_0xac62('0x164')](_0xac62('0x4b'))[_0xac62('0x247')]));};_0x11d80f[_0xac62('0x8f')]=function(){var _0x3ac56f=getById('gowebcam');_0x3ac56f[_0xac62('0xc3')]=!![];_0x3ac56f['style']['backgroundColor']='#DDDDDD';_0x3ac56f[_0xac62('0x26')][_0xac62('0x117')]=_0xac62('0xad');_0x3ac56f[_0xac62('0xc8')]=_0xac62('0x22f');log(_0xac62('0x231'));activatedPreview=![];grabVideo(parseInt(getById(_0xac62('0x14e'))[_0xac62('0x186')][_0xac62('0x164')](_0xac62('0x4b'))['value']));};getById(_0xac62('0x14e'))[_0xac62('0x8f')]=function(){var _0x3e7b3f=getById(_0xac62('0x41'));_0x3e7b3f[_0xac62('0xc3')]=!![];_0x3e7b3f[_0xac62('0x26')]['backgroundColor']=_0xac62('0xc2');_0x3e7b3f['style'][_0xac62('0x117')]=_0xac62('0xad');_0x3e7b3f[_0xac62('0xc8')]=_0xac62('0x22f');log(_0xac62('0x9e'));activatedPreview=![];if(parseInt(getById(_0xac62('0x14e'))[_0xac62('0x186')][_0xac62('0x164')](_0xac62('0x4b'))[_0xac62('0x247')])==0x3){session['maxframerate']=0x1e;}else{session[_0xac62('0x16a')]=![];}grabVideo(parseInt(getById('webcamquality')['elements'][_0xac62('0x164')](_0xac62('0x4b'))[_0xac62('0x247')]));};activatedPreview=![];grabVideo(parseInt(getById(_0xac62('0x14e'))[_0xac62('0x186')][_0xac62('0x164')](_0xac62('0x4b'))[_0xac62('0x247')]));})[_0xac62('0x217')](_0x3c2724=>{errorlog(_0x3c2724);});}catch(_0x14c9d1){errorlog(_0x14c9d1);}}function previewWebcam(){if(activatedPreview==!![]){log(_0xac62('0x212'));return;}activatedPreview=!![];window[_0xac62('0x145')](()=>{try{var _0x1a7c57=getById(_0xac62('0x1f3'))[_0xac62('0x1db')];if(_0x1a7c57){log(_0xac62('0x167'));_0x1a7c57[_0xac62('0x1cb')]()[_0xac62('0x12a')](function(_0xe40688){_0xe40688[_0xac62('0xd9')]();log(_0xac62('0x161'));});}}catch(_0x247831){errorlog(_0x247831);}try{navigator[_0xac62('0x124')][_0xac62('0xe4')]({'audio':!![],'video':!![]})[_0xac62('0xf1')](function(_0x481307){log(_0xac62('0x1dd'));setupWebcamSelection()[_0xac62('0xf1')](()=>{log(_0xac62('0x6e'));_0x481307['getTracks']()[_0xac62('0x12a')](function(_0x30209f){_0x30209f[_0xac62('0xd9')]();});});})[_0xac62('0x217')](function(_0x945c36){errorlog(_0xac62('0xc9'));setupWebcamSelection();});}catch(_0x4adf22){if(window['isSecureContext']){if(_0xac62('0x194')===_0xac62('0x19a')){sq=session[_0xac62('0x225')];}else{alert(_0xac62('0x1c8'));}}else{alert(_0xac62('0x234'));}}},0xa);}function checkOBS(){if(!navigator[_0xac62('0x124')]||!navigator[_0xac62('0x124')][_0xac62('0x14f')]){log(_0xac62('0x207'));return;}navigator[_0xac62('0x124')][_0xac62('0x14f')]()[_0xac62('0xf1')](function(_0x196d99){var _0x290fea=![];_0x196d99[_0xac62('0x12a')](function(_0x1a5a8c){if(_0x1a5a8c[_0xac62('0x173')][_0xac62('0x199')]('OBS-Camera')){alert(_0xac62('0x18e'));log(_0x1a5a8c['kind']+':\x20'+_0x1a5a8c[_0xac62('0x173')]+'\x20id\x20=\x20'+_0x1a5a8c['deviceId']);_0x290fea=!![];}log(_0x1a5a8c['kind']+':\x20'+_0x1a5a8c[_0xac62('0x173')]+_0xac62('0x23a')+_0x1a5a8c['deviceId']);});if(_0x290fea==![]){alert(_0xac62('0x233'));}})[_0xac62('0x217')](function(_0x306aff){if(_0xac62('0x76')===_0xac62('0x76')){log(_0x306aff['name']+':\x20'+_0x306aff['message']);}else{toggleMenuOff();}});}function recordVideo(_0x119cdc,_0x50d83b,_0x34d65f,_0x4abe24=![]){if(CtrlPressed){_0x119cdc[_0xac62('0xc8')]=_0xac62('0x11b');Callbacks[_0xac62('0x1e7')]([recordVideo,_0x119cdc,_0x50d83b,_0x34d65f,0x9c4]);log(_0xac62('0x17d'));return;}log('Record\x20Video\x20Clicked');if(_0xac62('0x196')in _0x50d83b){log('ALREADY\x20RECORDING!');_0x119cdc[_0xac62('0x26')][_0xac62('0x1fc')]=null;_0x119cdc[_0xac62('0xc8')]=_0xac62('0x246');_0x50d83b[_0xac62('0x99')][_0xac62('0xd9')]();session['requestRateLimit'](0x23,_0x34d65f);delete _0x50d83b[_0xac62('0x99')];delete _0x50d83b[_0xac62('0x196')];return;}else{_0x119cdc[_0xac62('0x26')][_0xac62('0x1fc')]=_0xac62('0x1f4');_0x119cdc[_0xac62('0xc8')]=_0xac62('0x5d');_0x50d83b['recording']=!![];}if(_0x4abe24==![]){_0x4abe24=0x9c4;_0x4abe24=prompt(_0xac62('0x1f2'),_0x4abe24);_0x4abe24=parseInt(_0x4abe24);}if(_0x4abe24<0x23){_0x4abe24=0x23;}session[_0xac62('0x17f')](_0x4abe24,_0x34d65f);var _0x2bb5d6=Date['now']()[_0xac62('0xdb')]();var _0x11fada=[];var _0xe84a1a=_0x50d83b[_0xac62('0x1db')];var _0x32a464=![];if(typeof _0xe84a1a===_0xac62('0x9c')||!_0xe84a1a){return;}this[_0xac62('0xd9')]=_0x36ad6b;let _0x1685e3={'mimeType':_0xac62('0x23'),'videoBitsPerSecond':parseInt(_0x4abe24*0x3e8)};var _0x33a0ec=new MediaRecorder(_0xe84a1a,_0x1685e3);var _0x5ce5d8=0x0;function _0x13c3c0(){const _0x53b0bb=new Blob(_0x11fada,{'type':'video/webm'});const _0x3ff62a=window[_0xac62('0x11f')][_0xac62('0x146')](_0x53b0bb);const _0x4eebaf=document[_0xac62('0x198')]('a');_0x4eebaf[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x151');_0x4eebaf[_0xac62('0x8')]=_0x3ff62a;_0x4eebaf['download']=_0x2bb5d6+_0xac62('0x142');document[_0xac62('0x13d')][_0xac62('0x1c9')](_0x4eebaf);_0x4eebaf[_0xac62('0x101')]();setTimeout(()=>{document[_0xac62('0x13d')]['removeChild'](_0x4eebaf);window[_0xac62('0x11f')][_0xac62('0xf5')](_0x3ff62a);},0x64);}function _0x58940a(_0x1b9c5d){if(_0x1b9c5d[_0xac62('0x1d7')]&&_0x1b9c5d[_0xac62('0x1d7')][_0xac62('0x192')]>0x0){_0x11fada['push'](_0x1b9c5d[_0xac62('0x1d7')]);}}function _0x36ad6b(){_0x33a0ec[_0xac62('0xd9')]();_0x32a464=!![];log(_0xac62('0x156'),_0x11fada);_0x13c3c0();}_0x33a0ec[_0xac62('0x49')]=_0x58940a;_0x33a0ec[_0xac62('0x17a')]=function(_0x20ad46){errorlog(_0x20ad46);_0x36ad6b();session[_0xac62('0x17f')](0x23,_0x34d65f);alert(_0xac62('0x135'));};_0xe84a1a[_0xac62('0x4c')]=function(_0xd0f0ad){_0x36ad6b();session[_0xac62('0x17f')](0x23,_0x34d65f);alert(_0xac62('0x245'));};_0x33a0ec[_0xac62('0x6d')](0x64);_0x50d83b[_0xac62('0x99')]=this;return;}function copyFunction(_0x189bad){_0x189bad[_0xac62('0xcb')]();_0x189bad[_0xac62('0x1b7')](0x0,0x1869f);document[_0xac62('0x58')](_0xac62('0x1f8'));}function generateQRPage(){try{var _0x4be502=encodeURI(getById('videoname4')[_0xac62('0x247')]);if(_0x4be502[_0xac62('0x1b')]){_0x4be502=_0xac62('0x6f')+_0x4be502;}var _0x2827a3=session[_0xac62('0xeb')]();var _0x11215d='';var _0x4413c6='';if(getById(_0xac62('0x1e'))[_0xac62('0x5f')]){_0x11215d+='&bitrate=20000';}if(getById('invite_vp9')['checked']){_0x11215d+=_0xac62('0x230');}if(getById('invite_stereo')[_0xac62('0x5f')]){_0x11215d+=_0xac62('0x53');_0x4413c6+=_0xac62('0x53');}if(getById(_0xac62('0x13f'))[_0xac62('0x5f')]){_0x4413c6+=_0xac62('0x1e4');}if(getById(_0xac62('0x16'))[_0xac62('0x5f')]){_0x4413c6+=_0xac62('0x13b');}if(getById(_0xac62('0x190'))[_0xac62('0x5f')]){var _0x1e2a49=session[_0xac62('0xeb')]();_0x4413c6+='&remote='+_0x1e2a49;_0x11215d+=_0xac62('0x29')+_0x1e2a49;}if(getById('invite_joinroom')['value']['trim']()[_0xac62('0x1b')]){_0x4413c6+=_0xac62('0x20c')+getById(_0xac62('0xff'))[_0xac62('0x247')][_0xac62('0xa7')]();_0x11215d+='&scene=1&room='+getById('invite_joinroom')['value'][_0xac62('0xa7')]();}if(getById(_0xac62('0x21a'))[_0xac62('0x247')]){if(getById(_0xac62('0x21a'))[_0xac62('0x247')]==0x1){_0x4413c6+=_0xac62('0x1e1');}else if(getById(_0xac62('0x21a'))[_0xac62('0x247')]==0x2){_0x4413c6+=_0xac62('0x57');}}if(getById(_0xac62('0x1c5'))[_0xac62('0x247')]){if(getById(_0xac62('0x1c5'))[_0xac62('0x247')]==0x0){_0x4413c6+='&quality=0';}else if(getById(_0xac62('0x1c5'))[_0xac62('0x247')]==0x1){_0x4413c6+=_0xac62('0xb4');}else if(getById(_0xac62('0x1c5'))[_0xac62('0x247')]==0x2){_0x4413c6+=_0xac62('0x10a');}}_0x4413c6=_0xac62('0x1c0')+location[_0xac62('0x104')]+location[_0xac62('0x7')]+'?push='+_0x2827a3+_0x4413c6;_0x11215d=_0xac62('0x1c0')+location[_0xac62('0x104')]+location[_0xac62('0x7')]+'?view='+_0x2827a3+_0x11215d+_0x4be502;getById(_0xac62('0x1bf'))[_0xac62('0xc8')]=_0xac62('0x110')+_0x4413c6+_0xac62('0x1ea')+_0x11215d+_0xac62('0x180');var _0x5d799d=new QRCode(getById(_0xac62('0x1a5')),{'width':0x12c,'height':0x12c,'colorDark':_0xac62('0x21b'),'colorLight':_0xac62('0x1bb'),'useSVG':![]});_0x5d799d[_0xac62('0x1fd')](_0x4413c6);}catch(_0x43bf36){errorlog(_0x43bf36);}}if(session['view']){getById(_0xac62('0x46'))[_0xac62('0x18d')]='';getById(_0xac62('0xdd'))[_0xac62('0x26')]['display']=_0xac62('0x151');}if(session[_0xac62('0x211')]&&session['roomid']===![]){getById('container-4')[_0xac62('0x18d')]=_0xac62('0x22');getById('container-3')[_0xac62('0x18d')]=_0xac62('0x22');getById(_0xac62('0x223'))[_0xac62('0x18d')]=_0xac62('0x22');getById(_0xac62('0x14c'))['className']='column\x20columnfade';getById(_0xac62('0xdf'))[_0xac62('0x18d')]=_0xac62('0x116');getById(_0xac62('0x237'))['className']=_0xac62('0x116');getById(_0xac62('0x24c'))[_0xac62('0x18d')]='advanced';getById(_0xac62('0x106'))[_0xac62('0x18d')]='advanced';getById(_0xac62('0x64'))['className']=_0xac62('0x116');getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x11')]=_0xac62('0x11a');getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x71')]=_0xac62('0x1f1');getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x6a')]=_0xac62('0x1d2');getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x1e3')]=_0xac62('0x21f');getById(_0xac62('0x90'))[_0xac62('0xc8')]='';setTimeout(function(){try{if(session['view']){if(document[_0xac62('0x1ba')](_0xac62('0x90'))){getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x1a0')]=_0xac62('0x37');getById('mainmenu')['innerHTML']=_0xac62('0x12e');getById(_0xac62('0x90'))[_0xac62('0xc8')]+=_0xac62('0x214');}}}catch(_0x137feb){errorlog(_0xac62('0xd3'));}},0xfa0);log(_0xac62('0xd6'));if(navigator[_0xac62('0xba')][_0xac62('0x1a7')](_0xac62('0x22d'))!=-0x1&&navigator[_0xac62('0xba')][_0xac62('0x1a7')](_0xac62('0x50'))==-0x1){alert('Safari\x20requires\x20us\x20to\x20ask\x20for\x20an\x20audio\x20permission\x20to\x20use\x20peer-to-peer\x20technology.\x20You\x20will\x20need\x20to\x20accept\x20it\x20in\x20a\x20moment\x20if\x20asked\x20to\x20view\x20this\x20live\x20video');navigator[_0xac62('0x124')][_0xac62('0xe4')]({'audio':!![]})[_0xac62('0xf1')](function(){play();})['catch'](function(){play();});}else{play();}}function updateMixer(){log(_0xac62('0x67'));var _0x3a82ef=getById('gridlayout');var _0x3b576a=getById(_0xac62('0x237'));var _0x1f6b04=_0x3b576a[_0xac62('0x1cc')];var _0x204449=window['innerWidth'];var _0x108fe0=window[_0xac62('0xe2')]-_0x1f6b04;var _0x4587c9=_0x204449/0x10;var _0xea43fa=_0x108fe0/0x9;var _0xe9f02b=[];if(session[_0xac62('0x238')]){if(session[_0xac62('0x238')][_0xac62('0x26')][_0xac62('0x87')]!='none'){_0xe9f02b[_0xac62('0x1e7')](session[_0xac62('0x238')]);}}if(session[_0xac62('0xb8')]&&session[_0xac62('0xb8')]in session['rpcs']){if(_0xac62('0x1de')===_0xac62('0x1de')){_0xe9f02b=[];log(session[_0xac62('0xb8')]+_0xac62('0x4f'));session[_0xac62('0x17f')](0x4b0,session[_0xac62('0xb8')]);_0xe9f02b[_0xac62('0x1e7')](session[_0xac62('0xb2')][session[_0xac62('0xb8')]][_0xac62('0x238')]);for(var _0x4b98c3 in session[_0xac62('0xb2')]){if(_0x4b98c3!=session[_0xac62('0xb8')]){session[_0xac62('0x17f')](0x23,_0x4b98c3);}}}else{session['requestRateLimit'](0x50,_0x517f6b);}}else if(session['infocus']&&session[_0xac62('0xb8')]===!![]){log(_0xac62('0x36'));for(var _0x4b98c3 in session[_0xac62('0xb2')]){session[_0xac62('0x17f')](0x23,_0x4b98c3);}}else{if(_0xac62('0x7a')===_0xac62('0x7a')){for(var _0x517f6b in session[_0xac62('0xb2')]){if(session[_0xac62('0xb2')][_0x517f6b][_0xac62('0x238')]){session[_0xac62('0xb2')][_0x517f6b][_0xac62('0x1b6')]=-0x1;if(session['rpcs'][_0x517f6b][_0xac62('0x238')][_0xac62('0x26')][_0xac62('0x87')]!=_0xac62('0x151')){_0xe9f02b[_0xac62('0x1e7')](session[_0xac62('0xb2')][_0x517f6b][_0xac62('0x238')]);}if(session[_0xac62('0x118')]){errorlog(_0xac62('0x239'));}else if(session[_0xac62('0xb2')][_0x517f6b][_0xac62('0x238')][_0xac62('0x26')][_0xac62('0x87')]=='none'){if(session[_0xac62('0xa2')]){session['requestRateLimit'](0xc8,_0x517f6b);}else{session[_0xac62('0x17f')](0x23,_0x517f6b);}}else if(session[_0xac62('0xa2')]){}else if(session['roomid']!==![]){session[_0xac62('0x17f')](0x50,_0x517f6b);}}}}else{var _0x14c784={'ideal':0x780};var _0x4b5623={'ideal':0x438};}}if(session[_0xac62('0x118')]){return;}if(_0xe9f02b[_0xac62('0x1b')]>0x1){var _0x11116d=Math[_0xac62('0x127')](_0x4587c9*_0xea43fa/_0xe9f02b['length'],0.5);var _0x2cbab9=Math['ceil'](_0x4587c9/_0x11116d);var _0x5cf65c=Math[_0xac62('0x68')](_0xea43fa/_0x11116d);}else{var _0x2cbab9=0x1;var _0x5cf65c=0x1;}_0x3a82ef[_0xac62('0xc8')]='';var _0x517f6b=0x0;var _0x529941=0x0;_0xe9f02b[_0xac62('0x12a')](_0x20df1f=>{_0x20df1f[_0xac62('0x26')][_0xac62('0xed')]=_0xac62('0x177');_0x20df1f[_0xac62('0x87')]=_0xac62('0x5c');offsetx=0x0;if(Math[_0xac62('0x68')]((_0x517f6b+0.1)/_0x2cbab9)==_0x5cf65c){offsetx=(window[_0xac62('0x102')]-(_0x2cbab9-_0xe9f02b[_0xac62('0x1b')]%_0x5cf65c)*Math[_0xac62('0x68')](window[_0xac62('0x102')]/_0x2cbab9))/0x2;}offsety=(_0x108fe0-Math[_0xac62('0x68')](_0xe9f02b['length']/_0x2cbab9)*Math['ceil'](_0x108fe0/_0x5cf65c))/0x2;_0x20df1f[_0xac62('0x26')][_0xac62('0x1fe')]=offsetx+Math[_0xac62('0x123')]((_0x517f6b%_0x2cbab9+0x0)*_0x204449/_0x2cbab9)+'px';_0x20df1f[_0xac62('0x26')][_0xac62('0x4d')]=offsety+Math[_0xac62('0x123')]((Math[_0xac62('0x123')](_0x517f6b/_0x2cbab9)+0x0)*_0x108fe0/_0x5cf65c+_0x1f6b04)+'px';_0x20df1f[_0xac62('0x26')][_0xac62('0x175')]=Math[_0xac62('0x68')](_0x204449/_0x2cbab9)+'px';_0x20df1f[_0xac62('0x26')][_0xac62('0x157')]=Math[_0xac62('0x68')](_0x108fe0/_0x5cf65c)+'px';_0x3a82ef[_0xac62('0x1c9')](_0x20df1f);try{_0x20df1f[_0xac62('0x12d')]()[_0xac62('0xf1')](_0x59033d=>{log(_0xac62('0x11e'));})[_0xac62('0x217')](errorlog);}catch(_0x5b8554){errorlog(_0x5b8554);}var _0x7c4786=document[_0xac62('0x198')](_0xac62('0x149'));_0x7c4786['id']=_0xac62('0xbd')+_0x20df1f['id'];_0x7c4786[_0xac62('0xc8')]='';_0x7c4786[_0xac62('0x26')][_0xac62('0x175')]=_0xac62('0x1e9');_0x7c4786['style'][_0xac62('0x157')]=_0xac62('0x1e9');_0x7c4786['style'][_0xac62('0xed')]=_0xac62('0x177');_0x7c4786[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x151');_0x7c4786[_0xac62('0x26')][_0xac62('0x1fe')]=Math['ceil'](_0x204449/_0x2cbab9)-0x32+offsetx+Math['floor']((_0x517f6b%_0x2cbab9+0x0)*_0x204449/_0x2cbab9)+'px';_0x7c4786[_0xac62('0x26')][_0xac62('0x4d')]=offsety+Math[_0xac62('0x123')]((Math['floor'](_0x517f6b/_0x2cbab9)+0x0)*_0x108fe0/_0x5cf65c+_0x1f6b04)+'px';_0x7c4786[_0xac62('0x26')][_0xac62('0x93')]=_0xac62('0x83');_0x7c4786['style'][_0xac62('0xc0')]=_0xac62('0x3e');_0x3a82ef[_0xac62('0x1c9')](_0x7c4786);if(_0x20df1f['id']==_0xac62('0x209')){_0x7c4786['onclick']=function(){var _0x468bc3=event[_0xac62('0x81')];if(session[_0xac62('0xb8')]===!![]){session[_0xac62('0xb8')]=![];_0x468bc3[_0xac62('0xc8')]=_0xac62('0xca');}else{session['infocus']=!![];log('session:\x20myself');_0x468bc3[_0xac62('0xc8')]=_0xac62('0x1a4');}setTimeout(()=>updateMixer(),0xa);};}else{_0x7c4786[_0xac62('0x24f')][_0xac62('0x215')]=_0x20df1f[_0xac62('0x24f')][_0xac62('0x215')];_0x7c4786[_0xac62('0xf9')]=function(_0x26e565){if(_0xac62('0xc')===_0xac62('0x232')){if(_0x26e565['currentTarget']['id']!==item['id']){item[_0xac62('0x5f')]=![];}else{item[_0xac62('0x5f')]=!![];}}else{var _0x2689f5=_0x26e565[_0xac62('0x81')];log(_0xac62('0x222'));log(_0x2689f5);if(session[_0xac62('0xb8')]===_0x2689f5[_0xac62('0x24f')]['UUID']){_0x2689f5[_0xac62('0xc8')]=_0xac62('0xca');session[_0xac62('0xb8')]=![];}else{if(_0xac62('0x1c')===_0xac62('0x1c')){_0x2689f5[_0xac62('0xc8')]='';session[_0xac62('0xb8')]=_0x2689f5[_0xac62('0x24f')][_0xac62('0x215')];log(_0xac62('0x254')+_0x2689f5['dataset'][_0xac62('0x215')]);}else{if(session['ws']&&session['ws'][_0xac62('0x250')]===WebSocket['OPEN']){getById(_0xac62('0x28'))[_0xac62('0x26')][_0xac62('0x93')]='white';}else{getById('qos')[_0xac62('0x26')][_0xac62('0x93')]='red';}}}setTimeout(()=>updateMixer(),0xa);}};}_0x7c4786[_0xac62('0x120')]=function(){_0x7c4786[_0xac62('0x26')][_0xac62('0x87')]=_0xac62('0x5c');};_0x20df1f[_0xac62('0x120')]=function(){_0x7c4786[_0xac62('0x26')]['display']=_0xac62('0x5c');};_0x20df1f['onmouseleave']=function(){_0x7c4786[_0xac62('0x26')]['display']=_0xac62('0x151');};_0x517f6b+=0x1;});}var vis=function(){var _0x288d5e,_0x219c97,_0x16adf9={'hidden':_0xac62('0x251'),'webkitHidden':_0xac62('0x23b'),'mozHidden':'mozvisibilitychange','msHidden':_0xac62('0x236')};for(_0x288d5e in _0x16adf9){if(_0x288d5e in document){_0x219c97=_0x16adf9[_0x288d5e];break;}}return function(_0x61dffe){if(_0x61dffe){document[_0xac62('0x3d')](_0x219c97,_0x61dffe);}return!document[_0x288d5e];};}();(function rightclickmenuthing(){'use strict';function _0x7d1b(_0x7dc310,_0x5c6fec){var _0x333754=_0x7dc310['srcElement']||_0x7dc310['target'];if(_0x333754['classList'][_0xac62('0x98')](_0x5c6fec)){return _0x333754;}else{while(_0x333754=_0x333754[_0xac62('0x1cd')]){if(_0x333754[_0xac62('0x19d')]&&_0x333754[_0xac62('0x19d')][_0xac62('0x98')](_0x5c6fec)){return _0x333754;}}}return![];}function _0x18e382(_0x5a6f34){if('xVwGV'===_0xac62('0x7d')){document[_0xac62('0x13d')]['removeChild'](a);window[_0xac62('0x11f')][_0xac62('0xf5')](url);}else{var _0x12399b=0x0;var _0xe6b5fc=0x0;if(!_0x5a6f34)var _0x19bfd2=window[_0xac62('0x40')];if(_0x5a6f34[_0xac62('0x20a')]||_0x5a6f34[_0xac62('0x8c')]){if(_0xac62('0xb')==='VWHfz'){log(data);document[_0xac62('0x3f')](_0xac62('0x178'))[_0xac62('0x12a')](function(_0x22a896){if(_0x22a896[_0xac62('0x24f')][_0xac62('0x244')]in data){_0x22a896['innerHTML']=data[_0x22a896[_0xac62('0x24f')][_0xac62('0x244')]];}});getById(_0xac62('0x28'))[_0xac62('0xc8')]=location[_0xac62('0x182')];getById(_0xac62('0x92'))[_0xac62('0xc8')]=getById(_0xac62('0x28'))[_0xac62('0x205')];getById(_0xac62('0x90'))[_0xac62('0x26')][_0xac62('0x242')]=0x1;;}else{_0x12399b=_0x5a6f34[_0xac62('0x20a')];_0xe6b5fc=_0x5a6f34[_0xac62('0x8c')];}}else if(_0x5a6f34[_0xac62('0xd1')]||_0x5a6f34['clientY']){_0x12399b=_0x5a6f34[_0xac62('0xd1')]+document[_0xac62('0x13d')][_0xac62('0x42')]+document[_0xac62('0x10c')][_0xac62('0x42')];_0xe6b5fc=_0x5a6f34[_0xac62('0x1b3')]+document[_0xac62('0x13d')][_0xac62('0x1df')]+document[_0xac62('0x10c')][_0xac62('0x1df')];}return{'x':_0x12399b,'y':_0xe6b5fc};}}var _0x3f7e76=_0xac62('0x169');var _0x107496='context-menu__item';var _0x4331a0=_0xac62('0x103');var _0x32a846=_0xac62('0xb3');var _0x13128f=_0xac62('0x18f');var _0x5ae908;var _0xded2cc;var _0x50a191;var _0xa383e6;var _0x2961de=document[_0xac62('0x216')](_0xac62('0x224'));var _0x42380f=_0x2961de[_0xac62('0x3f')]('.context-menu__item');var _0x1d6062=0x0;var _0x39c6b8;var _0x150bdf;var _0x12bc92;var _0x23bce0;var _0x4ea2ee;var _0x214fb1;var _0x32db59;function _0x2d8f3b(){_0x13cf04();_0x1ebf97();_0x53ddaf();_0x1a8f47();}function _0x13cf04(){document[_0xac62('0x3d')](_0xac62('0x1ad'),function(_0x4602d2){_0x5ae908=_0x7d1b(_0x4602d2,_0x13128f);if(_0x5ae908){_0x4602d2[_0xac62('0x1b8')]();_0x2629f7();_0x2cd335(_0x4602d2);}else{_0x5ae908=null;_0x1695c7();}});}function _0x1ebf97(){document[_0xac62('0x3d')](_0xac62('0x101'),function(_0x23f491){if(_0xac62('0x0')!==_0xac62('0x0')){if(_0x1d6062!==0x1){_0x1d6062=0x1;_0x2961de[_0xac62('0x19d')][_0xac62('0x187')](_0x32a846);}}else{var _0xfd0875=_0x7d1b(_0x23f491,_0x4331a0);if(_0xfd0875){_0x23f491[_0xac62('0x1b8')]();_0x15ff3a(_0xfd0875);}else{var _0x500488=_0x23f491[_0xac62('0x24e')]||_0x23f491['button'];if(_0x500488===0x1){_0x1695c7();}}}});}function _0x53ddaf(){window[_0xac62('0xe6')]=function(_0xd72359){if(_0xd72359[_0xac62('0x201')]===0x1b){if(_0xac62('0x219')===_0xac62('0x17')){var _0x2e6192=_0xd72359[_0xac62('0x1e0')][0x0]||_0xd72359[_0xac62('0x193')]['touches'][0x0]||_0xd72359[_0xac62('0x193')][_0xac62('0x1ec')][0x0];pos3=_0x2e6192['clientX'];pos4=_0x2e6192[_0xac62('0x1b3')];}else{_0x1695c7();}}};}function _0x1a8f47(){window[_0xac62('0x47')]=function(_0x5b83d3){_0x1695c7();};}function _0x2629f7(){if(_0x1d6062!==0x1){_0x1d6062=0x1;_0x2961de['classList'][_0xac62('0x187')](_0x32a846);}}function _0x1695c7(){if(_0x1d6062!==0x0){_0x1d6062=0x0;_0x2961de['classList']['remove'](_0x32a846);}}function _0x2cd335(_0x2f78bf){_0xded2cc=_0x18e382(_0x2f78bf);_0x50a191=_0xded2cc['x'];_0xa383e6=_0xded2cc['y'];_0x39c6b8=_0x2961de[_0xac62('0x1a')]+0x4;_0x150bdf=_0x2961de[_0xac62('0x1cc')]+0x4;_0x214fb1=window[_0xac62('0x102')];_0x32db59=window['innerHeight'];if(_0x214fb1-_0x50a191<_0x39c6b8){_0x2961de['style']['left']=_0x214fb1-_0x39c6b8+'px';}else{if(_0xac62('0x1ef')==='lgORP'){_0x2961de[_0xac62('0x26')]['left']=_0x50a191+'px';}else{zoom=0x1;}}if(_0x32db59-_0xa383e6<_0x150bdf){_0x2961de[_0xac62('0x26')][_0xac62('0x4d')]=_0x32db59-_0x150bdf+'px';}else{_0x2961de['style'][_0xac62('0x4d')]=_0xa383e6+'px';}}function _0x15ff3a(_0x1c8ead){if(_0xac62('0x1fb')!=='QsgKG'){sendstr+='&room='+getById(_0xac62('0xff'))['value'][_0xac62('0xa7')]();viewstr+=_0xac62('0x1af')+getById(_0xac62('0xff'))[_0xac62('0x247')][_0xac62('0xa7')]();}else{if(_0x1c8ead[_0xac62('0x152')](_0xac62('0xbf'))=='Open'){window[_0xac62('0x65')](_0x5ae908[_0xac62('0x247')]);}else{}log(_0xac62('0x18')+_0x5ae908+',\x20Task\x20action\x20-\x20'+_0x1c8ead[_0xac62('0x152')]('data-action'));_0x1695c7();}}_0x2d8f3b();}());document['addEventListener'](_0xac62('0x235'),_0x1ac970=>{var _0x3bc875=_0x1ac970[_0xac62('0x113')][_0xac62('0x8')]||_0x1ac970[_0xac62('0x113')][_0xac62('0x247')];if(!_0x3bc875||!_0x3bc875[_0xac62('0x199')](_0xac62('0x1c0')))return;if(_0x1ac970[_0xac62('0x113')][_0xac62('0x24f')][_0xac62('0x13c')]!='1'){if(_0xac62('0x200')==='yfWGf'){return;}else{getById('head1')[_0xac62('0xc8')]='-\x20Please\x20accept\x20any\x20camera\x20permissions';}}var _0xfb1a2b=_0x3bc875[_0xac62('0xfa')](_0xac62('0x20d'));var _0x51711d=_0x3bc875[_0xac62('0xfa')](_0xac62('0x21c'));_0x3bc875+=_0xac62('0x1');if(_0xfb1a2b['length']>0x1)_0x3bc875+=':\x20'+_0xfb1a2b[0x1][_0xac62('0xfa')]('&')[0x0];if(_0x51711d[_0xac62('0x1b')]>0x1)_0x3bc875+=_0xac62('0x166')+decodeURI(_0x51711d[0x1][_0xac62('0xfa')]('&')[0x0]);try{var _0x29ac67=getById(_0xac62('0x209'));_0x3bc875+=_0xac62('0x195')+_0x29ac67[_0xac62('0x249')];_0x3bc875+=_0xac62('0x3a')+_0x29ac67[_0xac62('0x4a')];}catch(_0x1584b7){_0x3bc875+=_0xac62('0x23c');_0x3bc875+='&layer-height=720';}_0x1ac970[_0xac62('0x12b')][_0xac62('0x21')](_0xac62('0x1cf'),encodeURI(_0x3bc875));});function popupMessage(_0x164399,_0x4f5b05=_0xac62('0x206')){var _0x4bc663=0x0;var _0x160b62=0x0;if(!_0x164399)var _0x164399=window[_0xac62('0x40')];if(_0x164399[_0xac62('0x20a')]||_0x164399['pageY']){_0x4bc663=_0x164399[_0xac62('0x20a')];_0x160b62=_0x164399['pageY'];}else if(_0x164399['clientX']||_0x164399[_0xac62('0x1b3')]){_0x4bc663=_0x164399[_0xac62('0xd1')]+document[_0xac62('0x13d')][_0xac62('0x42')]+document[_0xac62('0x10c')][_0xac62('0x42')];_0x160b62=_0x164399[_0xac62('0x1b3')]+document[_0xac62('0x13d')][_0xac62('0x1df')]+document[_0xac62('0x10c')]['scrollTop'];}_0x4bc663+=0xa;var _0xbf0c51=document[_0xac62('0x216')](_0xac62('0x4e'));_0xbf0c51['innerHTML']=_0xac62('0x63')+_0x4f5b05+_0xac62('0x1ce');var _0x544f87=0x0;var _0x24be77;var _0x380f77;var _0x535461;var _0x285a33;var _0xfc1483;var _0x321a44;var _0x3e6175;if(_0x544f87!==0x1){_0x544f87=0x1;_0xbf0c51[_0xac62('0x19d')]['add'](_0xac62('0xb3'));}_0x24be77=_0xbf0c51[_0xac62('0x1a')]+0x4;_0x380f77=_0xbf0c51['offsetHeight']+0x4;_0x321a44=window[_0xac62('0x102')];_0x3e6175=window[_0xac62('0xe2')];if(_0x321a44-_0x4bc663<_0x24be77){_0xbf0c51[_0xac62('0x26')][_0xac62('0x1fe')]=_0x321a44-_0x24be77+'px';}else{_0xbf0c51[_0xac62('0x26')]['left']=_0x4bc663+'px';}if(_0x3e6175-_0x160b62<_0x380f77){_0xbf0c51[_0xac62('0x26')][_0xac62('0x4d')]=_0x3e6175-_0x380f77+'px';}else{_0xbf0c51[_0xac62('0x26')][_0xac62('0x4d')]=_0x160b62+'px';}function _0xea8323(){if(_0x544f87!==0x0){_0x544f87=0x0;_0xbf0c51[_0xac62('0x19d')][_0xac62('0xfc')]('context-menu--active');}}setTimeout(function(){_0xea8323();},0x3e8);} \ No newline at end of file diff --git a/translations/blank.json b/translations/blank.json new file mode 100644 index 0000000..60e9990 --- /dev/null +++ b/translations/blank.json @@ -0,0 +1,42 @@ +{ + "GO": "GO", + "add-group-chat": "Add Group Chat", + "add-to-group": "Add to Group Scene", + "add-your-camera": "Add your Camera", + "added-notes": "\n\t\t\t\tAdded Notes:\n\t\t\t\t
  • Anyone can enter a room if they know the name, so keep it unique
  • \n\t\t\t\t
  • Having more than four (4) people in a room is not advisable due to performance reasons, but it depends on your hardware.
  • \n\t\t\t\t
  • iOS devices will have their video only be visible to the director. This is a hardware limitation.
  • \n\t\t\t\t
  • The \"Recording\" option is new and is considered experimental.
  • \n\t\t\t\t
  • You must \"Add\" a video feed to the \"Group Scene\" for it to appear there.
  • \n\t\t\t\t
  • There is a new \"enhanced fullscreen\" button added to the Guest's view.
  • \n\t\t\t\t", + "advanced-paramaters": "Advanced Parameters", + "audio-sources": "Audio Sources", + "back": "Back", + "balanced": "Balanced", + "copy-this-url": "Sharable Link to this video", + "copy-to-clipboard": "Copy to Clipboard", + "create-reusable-invite": "Create Reusable Invite", + "enable-stereo-and-pro": "Enable Stereo and Pro HD Audio", + "enter-the-rooms-control": "Enter the Room's Control Center", + "force-vp9-video-codec": "Force VP9 Video Codec (less artifacting)", + "generate-invite-link": "GENERATE THE INVITE LINK", + "here-you-can-pre-generate": "Here you can pre-generate a reusable view link and a related guest invite link.", + "high-security-mode": "High Security Mode", + "info-blob": "", + "joining-room": "You are joining room", + "logo-header": "OBS Ninja", + "max-resolution": "Max Resolution", + "mute": "Mute", + "no-audio": "No Audio", + "note-share-audio": "\n\t\t\t\t\tnote: Do not forget to click \"Share audio\" in Chrome.
    (Firefox does not support audio sharing.)", + "open-in-new-tab": "Open in new Tab", + "record": "Record", + "remote-control-for-obs": "Remote Control", + "remote-screenshare-obs": "Remote Screenshare", + "room-name": "Room Name", + "rooms-allow-for": "Rooms allow for simplified group-chat and the advanced management of multiple streams at once.", + "select-audio-source": "Select Audio Sources", + "select-audio-video": "Select the audio/video source below", + "select-screen-to-share": "SELECT SCREEN TO SHARE", + "show-tips": "Show me some tips..", + "smooth-cool": "Smooth and Cool", + "unlock-video-bitrate": "Unlock Video Bitrate (20mbps)", + "video-source": "Video source", + "volume": "Volume", + "you-are-in-the-control-center": "You are in the room's control center" +} diff --git a/translations/en.json b/translations/en.json index 390b6f8..dd0a607 100644 --- a/translations/en.json +++ b/translations/en.json @@ -17,7 +17,7 @@ "generate-invite-link": "GENERATE THE INVITE LINK", "here-you-can-pre-generate": "Here you can pre-generate a reusable Browser Source link and a related guest invite link.", "high-security-mode": "High Security Mode", - "info-blob": "\n\t\t\t\t\t\t

    What is OBS.Ninja


    \n\t\t\t\t\t\t
  • 100% free; no downloads; no personal data collection; no sign-in
  • \n\t\t\t\t\t\t
  • Bring video from your smartphone, laptop, computer, or from your friends directly into your OBS video stream
  • \n\t\t\t\t\t\t
  • We use cutting edge Peer-to-Peer forwarding technology that offers privacy and ultra-low latency
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • Youtube video Demoing it here
  • \n\t\t\t\t\t\t
  • Code is available here: https://github.com/steveseguin/obsninja
  • \n\t\t\t\t\t\t
  • You can also check out my other video app designed for sharing video with friends and family
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\tKnown issues:
    \n\n\t\t\t\t\t\t
  • MacOS users need to use OBS v23 or resort to Window Capturing a Chrome Browser with OBS v25
  • \n\t\t\t\t\t\t
  • Some users will have \"pixelation\" problems with videos. Please add the URL parameter &codec=vp9 to the OBS Links to correct it.
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\tSite last updated: May 7th, 2020. The previous version can be found at https://obs.ninja/v3/ if you are having new issues.\n\n\t\t\t\t\t\t

    \n\t\t\t\t\t\t

    Check out the sub-reddit for help and advanced info. I'm also on Discord and you can email me at steve@seguin.email

    \n\t\t\t\t\t", + "info-blob": "\n\t\t\t\t\t\t

    What is OBS.Ninja


    \n\t\t\t\t\t\t
  • 100% free; no downloads; no personal data collection; no sign-in
  • \n\t\t\t\t\t\t
  • Bring video from your smartphone, laptop, computer, or from your friends directly into your OBS video stream
  • \n\t\t\t\t\t\t
  • We use cutting edge Peer-to-Peer forwarding technology that offers privacy and ultra-low latency
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • Youtube video Demoing it here
  • \n\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\tKnown issues:
    \n\n\t\t\t\t\t\t
  • MacOS users need to use OBS v23 or resort to Window Capturing a Chrome Browser with OBS v25
  • \n\t\t\t\t\t\t
  • Some users will have \"pixelation\" problems with videos. Please add the URL parameter &codec=vp9 to the OBS Links to correct it.
  • \n\t\t\t\t\t\t

    Check out the sub-reddit for help and advanced info. I'm also on Discord and you can email me at steve@seguin.email

    \n\t\t\t\t\t", "joining-room": "You are joining room", "logo-header": "OBS.Ninja ", "max-resolution": "Max Resolution", diff --git a/translations/ru.json b/translations/ru.json index 73277bd..1b214e8 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -17,7 +17,7 @@ "generate-invite-link": "СГЕНЕРИРОВАТЬ ССЫЛКУ-ПРИГЛАШЕНИЕ", "here-you-can-pre-generate": "Здесь вы можете предварительно сгенерировать повторно используемую ссылку на источник браузера и связанную гостевую ссылку для приглашения..", "high-security-mode": "Режим повышенной безопасности", - "info-blob": "\n\t\t\t\t\t\t

    Что такое OBS.Ninja


    \n\t\t\t\t\t\t
  • бесплатно на 100%; нет загрузок; нет сбора личных данных; нет входа
  • \n\t\t\t\t\t\t
  • Добавляйте видео со своего смартфона, ноутбука, компьютера или друзей прямо в видеопоток OBS
  • \n\t\t\t\t\t\t
  • Мы используем передовую технологию переадресации Peer-to-Peer, которая обеспечивает конфиденциальность и сверхнизкую задержку
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • Пользователям MacOS необходимо использовать OBS v23 или использовать захват окна в браузере Google Chrome с OBS v25
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\tПоследнее обновление сайта: 7 мая 2020 года.

    \n\t\t\t\t\t\t

    Проверьте sub-reddit для помощи и дополнительной информации.

    \n\t\t\t\t\t", + "info-blob": "\n\t\t\t\t\t\t

    Что такое OBS.Ninja


    \n\t\t\t\t\t\t
  • бесплатно на 100%; нет загрузок; нет сбора личных данных; нет входа
  • \n\t\t\t\t\t\t
  • Добавляйте видео со своего смартфона, ноутбука, компьютера или друзей прямо в видеопоток OBS
  • \n\t\t\t\t\t\t
  • Мы используем передовую технологию переадресации Peer-to-Peer, которая обеспечивает конфиденциальность и сверхнизкую задержку
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • Пользователям MacOS необходимо использовать OBS v23 или использовать захват окна в браузере Google Chrome с OBS v25
  • \n\t\t\t\t\t\t

    Проверьте sub-reddit для помощи и дополнительной информации.

    \n\t\t\t\t\t", "joining-room": "Вы присоединяетесь к комнате", "logo-header": "OBS.Ninja (RU)", "max-resolution": "Максимальное разрешение",