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.

app.js 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* jshint -W117 */
  2. /* application specific logic */
  3. var APP =
  4. {
  5. init: function () {
  6. this.UI = require("./modules/UI/UI");
  7. this.API = require("./modules/API/API");
  8. this.connectionquality = require("./modules/connectionquality/connectionquality");
  9. this.statistics = require("./modules/statistics/statistics");
  10. this.RTC = require("./modules/RTC/RTC");
  11. this.desktopsharing = require("./modules/desktopsharing/desktopsharing");
  12. this.xmpp = require("./modules/xmpp/xmpp");
  13. this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");
  14. this.translation = require("./modules/translation/translation");
  15. this.settings = require("./modules/settings/Settings");
  16. this.DTMF = require("./modules/DTMF/DTMF");
  17. this.members = require("./modules/members/MemberList");
  18. }
  19. };
  20. function init() {
  21. APP.desktopsharing.init();
  22. APP.RTC.start();
  23. APP.xmpp.start();
  24. APP.statistics.start();
  25. APP.connectionquality.init();
  26. APP.keyboardshortcut.init();
  27. APP.members.start();
  28. }
  29. $(document).ready(function () {
  30. var URLProcessor = require("./modules/URLProcessor/URLProcessor");
  31. URLProcessor.setConfigParametersFromUrl();
  32. APP.init();
  33. APP.translation.init();
  34. if(APP.API.isEnabled())
  35. APP.API.init();
  36. APP.UI.start(init);
  37. });
  38. $(window).bind('beforeunload', function () {
  39. if(APP.API.isEnabled())
  40. APP.API.dispose();
  41. });
  42. module.exports = APP;