Device End Events
Since version 1.7.1, the Eyeson SDK includes automatic detection and handling of broken microphone and camera streams. When a camera stream is disrupted, the SDK automatically switches off video transmission. For broken microphone streams, the SDK intelligently attempts to switch to another available audio device to maintain audio connectivity.
audio_device_ended
When a microphone stream breaks, the SDK automatically attempts to switch to another available audio device. This event is triggered after the SDK detects the broken stream and completes the device switch operation.
{
type: 'audio_device_ended',
newAudioDevice: '<new audio device label>' | undefined
}
video_device_ended
When a camera stream becomes disrupted or disconnected, the SDK detects this issue and automatically mutes the video. This event is triggered to notify the application that the camera stream has ended and video transmission has been stopped.
{
type: 'video_device_ended'
}
all_devices_ended
This event is triggered when both microphone and camera streams have been disrupted simultaneously. In this scenario, the SDK automatically attempts to switch to a new audio device while muting the video. The event provides information about the new audio device if one was successfully selected.
{
type: 'all_devices_ended',
newAudioDevice: '<new audio device label>' | undefined
}