VideoSDK Class Events - Flutter
deviceChanged
deviceChanged
event is emitted whenever any media devices, such as a camera, microphone or speaker is connected to or removed from the device.
info
- The
deviceChanged
event is not supported in macOS applications.
Example
VideoSDK.on(Events.deviceChanged, (devices) {
print("device changed ${devices}");
});
info
Ensure that media permissions are granted on the device; otherwise, this event will not return the list of devices.
Got a Question? Ask us on discord