Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

browser-capabilities.md 2.0KB

Jitsi Meet browser capabilities

An API for checking browser capabilities for Jitsi Meet.

Installation

To use the Jitsi Meet browser capabilities API in your application you need to add a JS file with BrowserCapabilities implementation:

<script src="https://example.com/libs/browser_capabilities.min.js"></script>

API

Constructor

  • isUsingIFrame: true if Jitsi Meet is loaded in iframe and false otherwise. The default value is false.
  • browserInfo: Information about the browser which capabilities will be checked. If not specified BrowserCapabilities class will detect the current browser. browserInfo is JS object with the following properties:
    • name: The name of the browser compatible with the names returned by bowser
    • version: The version of the browser compatible with the version returned by bowser

Example:

const browserCapabilities = new BrowserCapabilities(); // not using iframe;  capabilities for the current browser
const browserCapabilities1 = new BrowserCapabilities(true); // using iframe; capabilities for the current browser.
const browserCapabilities1 = new BrowserCapabilities(true, {
    name: 'Chrome',
    version: '63.0'
}); // using iframe; capabilities for Chrome 63.0

Methods:

  • isSupported - returns true if the browser is supported by Jitsi Meet and false otherwise.

  • supportsAudioIn - returns true if the browser supports incoming audio and false otherwise.

  • supportsAudioOut - returns true if the browser supports outgoing audio and false otherwise.

  • supportsVideoIn - returns true if the browser is supports incoming video and false otherwise.

  • supportsVideoOut - returns true if the browser is supports outgoing video and false otherwise.

  • supportsScreenSharing - returns true if the browser is supports screen sharing and false otherwise.