Triggered whenever a media device (camera, microphone, or speaker) is connected to or disconnected from the system.
This event emits the updated list of available devices after the change has occurred.
An object containing the updated list of available media devices.
import VideoSDK from "@videosdk.live/js-sdk";VideoSDK.on("device-changed", ({ devices }) => { // devices: DeviceInfo[] console.log(devices);}); Copy
import VideoSDK from "@videosdk.live/js-sdk";VideoSDK.on("device-changed", ({ devices }) => { // devices: DeviceInfo[] console.log(devices);});
Triggered whenever a media device (camera, microphone, or speaker) is connected to or disconnected from the system.
This event emits the updated list of available devices after the change has occurred.