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.

1234567891011121314151617181920212223242526272829
  1. /* jshint -W117 */
  2. /* application specific logic */
  3. var nickname = null;
  4. var ssrc2jid = {};
  5. function init() {
  6. RTC.start();
  7. xmpp.start(UI.getCreadentials);
  8. }
  9. $(document).ready(function () {
  10. if(API.isEnabled())
  11. API.init();
  12. UI.start();
  13. statistics.start();
  14. // Set default desktop sharing method
  15. desktopsharing.init();
  16. });
  17. $(window).bind('beforeunload', function () {
  18. if(API.isEnabled())
  19. API.dispose();
  20. });