You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* jshint -W117 */
  2. /* application specific logic */
  3. var nickname = null;
  4. var focusMucJid = null;
  5. var ssrc2jid = {};
  6. //TODO: this array must be removed when firefox implement multistream support
  7. var notReceivedSSRCs = [];
  8. var jid2Ssrc = {};
  9. /**
  10. * Indicates whether ssrc is camera video or desktop stream.
  11. * FIXME: remove those maps
  12. */
  13. var ssrc2videoType = {};
  14. /**
  15. * Currently focused video "src"(displayed in large video).
  16. * @type {String}
  17. */
  18. var focusedVideoInfo = null;
  19. function init() {
  20. RTC.start();
  21. xmpp.start(UI.getCreadentials);
  22. }
  23. $(document).ready(function () {
  24. if(API.isEnabled())
  25. API.init();
  26. UI.start();
  27. statistics.start();
  28. // Set default desktop sharing method
  29. desktopsharing.init();
  30. });
  31. $(window).bind('beforeunload', function () {
  32. if(API.isEnabled())
  33. API.dispose();
  34. });