Skip to content

OnAudioFocusChanged

This is a callback function triggered when the audio focus changes. It must be implemented when muted is set to false.

Signature

typescript
type OnAudioFocusChanged = (event: { hasAudioFocus: boolean }) => void;

Parameter

  • eventrequired · Object

    An event object that contains audio focus information.

    • event.hasAudioFocusrequired · boolean

      Indicates whether the video component currently has audio focus.