VideoSDK Class Events - Flutter
The VideoSDK class reports no events in v5.0.0. Use these instead:
- Errors: listen on the room with
room.on(Events.error, ...), and catch theVideoSDKErrorthat a failed call throws, such asVideoSDK.createCameraVideoTrack(). To learn more, see Room Error Codes. - Audio device changes: set a listener with
room.setAudioDeviceChangeListener(). It runs when a headset or Bluetooth device connects or disconnects. - Device lists: call
VideoSDK.getDevices(),getCameras()orgetMics()when you need the current list, for example each time you open a device picker.
Got a Question? Ask us on discord