Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!testSession) {
- var url = 'http://127.0.0.1:9645/widget?command=connect&agent=' + System.AgentName + '&password=' + $('#UserPassword').val();
- var scr = XMLHttpRequest('http://127.0.0.1:9645/widget');
- loggingAction('info', 'NOTIFICATION : Screen recording connection attempt to [' + url + '].');
- var screenRecorder1 = $.post(url);
- screenRecorder1.done(function (e) {
- if (e.indexOf('OK') !== -1) {
- screenRecorder = true;
- loggingAction('info', 'INFORMATION : Screen ecorder widget active and sent response of ' + e);
- } else {
- screenRecorder = false;
- loggingAction('warn', 'WARNING : Screen recorder widget not active.');
- }
- loggingAction('info', 'NOTIFICATION : Audio connection processing complete.');
- });
- }
Add Comment
Please, Sign In to add comment