Skip to main content

Overview

A pre-meeting device check page and an in-meeting settings page both need to “turn the device on to see and hear it without sending it to anyone”. How each check works on the Web meeting layer: publish: false is available since 0.3.5: it only captures and previews, without asking the meeting for permission, publishing, or firing state events, and you can call it before or during a meeting. The host turning off your device or disabling it for everyone doesn’t affect a preview-only track.

Device list

Browsers don’t return device names before permission is granted, so when the names are empty the SDK first requests camera / microphone permission once. Pass false as the second argument if you don’t want to trigger the permission prompt.

Camera preview

  • Deciding to turn the camera on after previewing: call requestOpenCamera() again with the default publish: true. It asks the meeting for permission and publishes the same track, without restarting capture.
  • Opening a preview while the meeting camera is already on: publish: false just returns the track in use and adds the container you pass as a preview, without starting another capture.
  • A camera opened with default parameters before entering a meeting: calling requestOpenCamera() again after entering publishes it to the meeting.

Mic level

  • Processors set with setAudioProcessor() (such as AI noise suppression) are attached during capture-only too, so you can hear and see the result after noise suppression directly.
  • Deciding to open the mic after testing, the meeting mic already being on, and opening before entering a meeting follow the same rules as the camera; use isMicOpened() to decide whether to close it.

Speaker test

The SDK has no API for playing a test sound. Play it with the browser’s <audio>, and choose the output device with setSinkId (some browsers don’t support setSinkId; there you can only use the system default output):
To use the chosen speaker for remote audio in the meeting, pass it through toggleRemoteAudioMute(false, { deviceId: speakerId }).