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.
error
- This event will be emitted when and error occurs in the VideoSDK methods.
Example
VideoSDK.on(Events.error, (error) {
log("VIDEOSDK ERROR :: " +
error['code'].toString() +
" :: " +
error['name'].toString() +
" :: " +
error['message'].toString());
});
Got a Question? Ask us on discord