Skip to content

InnerAudioContext.onCanplay ​

JS
 InnerAudioContext.onCanplay(function callback)

Listens for the event when the audio enters a playable state. However, smooth playback afterwards is not guaranteed.

Parameters

  • function callback: Callback function for the event when the audio enters a playable state.