The version of the Zoom Video SDK for web.
Shows which features are supported and not supported on the current browser or platform.
A SupportFeatures
object. The object has following properties:
platform
: string, the browser version info or platform version info.supportFeatures
: ArrayunSupportFeatures
: ArrayChecks the compatibility of the current browser. Use this method before calling init to check if the SDK is compatible with the web browser.
A MediaCompatiblity
object. The object has following properties:
audio
: boolean, whether the audio is compatible with the current web browser.video
: boolean, whether the video is compatible with the current web browser.screen
: boolean, whether the screen is compatible with the current web browser.Destroys the client.
Enumerates the media input and output devices available, such as microphones, cameras, and headsets.
If this method call succeeds, the SDK returns a list of media devices in an array of MediaDeviceInfo objects.
Calling this method turns on the camera and microphone shortly for the device permission request. On browsers including Chrome 81 or later, Firefox, and Safari, the SDK cannot get accurate device information without permission to use the media device.
ZoomVideo.getDevices().then(devices => {
console.log(devices);
}).catch(e => {
console.log('get devices error!', e);
})
// Using await...
try {
const devices = await ZoomVideo.getDevices();
console.log(devices);
} catch (e) {
console.log('get devices error!', e);
}
Determines whether to skip the permission check. If you set this parameter as true
, the SDK does not trigger the request for media device permission. In this case, the retrieved media device information may be inaccurate.
true
: Skip the permission check.false
: (Default) Do not skip the permission check.Preloads dependent assets to optimize performance.
Creates a client for managing the session. This method will return a same instance if called multiple times. This is usually the first step of using the Zoom Video SDK for web.
Creates a new LocalAudioTrack to manage local audio capture.
Creates a new LocalVideoTrack to start or stop local video capture and playback.
Zoom Video SDK for web platform.