registerOnAudioStateChange

abstract fun registerOnAudioStateChange(audioHash: Int, onAudioStateChange: (AudioState) -> Unit)

Subscribing for audio state changes for the audio of the hash

Parameters

audioHash

the identifier of the audio track

onAudioStateChange

The listener of the AudioState change.