Guest User

Untitled

a guest
Oct 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. if (!testSession) {
  2. var url = 'http://127.0.0.1:9645/widget?command=connect&agent=' + System.AgentName + '&password=' + $('#UserPassword').val();
  3. var scr = XMLHttpRequest('http://127.0.0.1:9645/widget');
  4. loggingAction('info', 'NOTIFICATION : Screen recording connection attempt to [' + url + '].');
  5. var screenRecorder1 = $.post(url);
  6. screenRecorder1.done(function (e) {
  7. if (e.indexOf('OK') !== -1) {
  8. screenRecorder = true;
  9. loggingAction('info', 'INFORMATION : Screen ecorder widget active and sent response of ' + e);
  10. } else {
  11. screenRecorder = false;
  12. loggingAction('warn', 'WARNING : Screen recorder widget not active.');
  13. }
  14. loggingAction('info', 'NOTIFICATION : Audio connection processing complete.');
  15. });
  16. }
Add Comment
Please, Sign In to add comment