modified lib-jitsi-meet dev repo
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.

ExternalBrowserCapabilities.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import BrowserCapabilities from './BrowserCapabilities';
  2. /**
  3. * API for checking the capabilities for Jitsi Meet for the current or passed
  4. * browser.
  5. */
  6. export default class ExternalBrowserCapabilities {
  7. /**
  8. * Creates new ExternalBrowserCapabilities instance.
  9. *
  10. * @param {boolean} [isUsingIFrame] - True if Jitsi Meet is loaded in iframe
  11. * and false otherwise.
  12. * @param {Object} [browserInfo] - Information about the browser.
  13. * @param {string} browserInfo.name - The name of the browser.
  14. * @param {string} browserInfo.version - The version of the browser.
  15. */
  16. constructor(isUsingIFrame, browserInfo) {
  17. this._capabilities
  18. = new BrowserCapabilities(isUsingIFrame, browserInfo);
  19. }
  20. /**
  21. * Checks whether the browser is supported by Jitsi Meet.
  22. *
  23. * @returns {boolean}
  24. */
  25. isSupported() {
  26. return this._capabilities.isSupported();
  27. }
  28. /**
  29. * Checks whether the browser supports incoming audio.
  30. *
  31. * @returns {boolean}
  32. */
  33. supportsAudioIn() {
  34. return this._capabilities.supportsAudioIn();
  35. }
  36. /**
  37. * Checks whether the browser supports outgoing audio.
  38. *
  39. * @returns {boolean}
  40. */
  41. supportsAudioOut() {
  42. return this._capabilities.supportsAudioOut();
  43. }
  44. /**
  45. * Checks whether the browser supports video.
  46. *
  47. * @returns {boolean}
  48. */
  49. supportsVideo() {
  50. return this._capabilities.supportsVideo();
  51. }
  52. /**
  53. * Checks whether the browser supports screen sharing.
  54. *
  55. * @returns {boolean}
  56. */
  57. supportsScreenSharing() {
  58. return this._capabilities.supportsScreenSharing();
  59. }
  60. }