您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import './_';
  2. // The library lib-jitsi-meet (externally) depends on the libraries jQuery and
  3. // Strophe
  4. (global => {
  5. // jQuery
  6. if (typeof global.$ === 'undefined') {
  7. const jQuery = require('jquery');
  8. jQuery(global);
  9. global.$ = jQuery;
  10. }
  11. // Strophe
  12. if (typeof global.Strophe === 'undefined') {
  13. require('strophe');
  14. require('strophejs-plugins/disco/strophe.disco');
  15. require('strophejs-plugins/caps/strophe.caps.jsonly');
  16. }
  17. })(global || window || this); // eslint-disable-line no-invalid-this
  18. // Re-export JitsiMeetJS from the library lib-jitsi-meet to (the other features
  19. // of) the project jitsi-meet-react.
  20. //
  21. // TODO The Web support implemented by the jitsi-meet project explicitly uses
  22. // the library lib-jitsi-meet as a binary and keeps it out of the application
  23. // bundle. The mobile support implemented by the jitsi-meet-react project did
  24. // not get to keeping the lib-jitsi-meet library out of the application bundle
  25. // and even used it from source. As an intermediate step, start using the
  26. // library lib-jitsi-meet as a binary on mobile at the time of this writing. In
  27. // the future, implement not packaging it in the application bundle.
  28. import JitsiMeetJS from 'lib-jitsi-meet/lib-jitsi-meet.min';
  29. export { JitsiMeetJS as default };
  30. export * from './actions';
  31. export * from './actionTypes';
  32. export * from './functions';