The audioEnded event fires when the SDK stops audio playback during a Click To Call session.
Emitted when the SDK stops audio playback. This happens when the call ends or fails, when you call disconnect() or destroy(), and when the audio element finishes playback. The event can be emitted more than once, and it’s emitted before the ended or failed event.
Category
Audio
Callback parameters
None.
Example
client.on('audioEnded', () => { console.log('Remote audio playback has stopped');});