Search...

AudioPlayerPlayingState

interface AudioPlayerPlayingState 
interface AudioPlayerPlayingState 
The state that an AudioPlayer is in when it is actively playing an AudioResource. When playback ends, it will enter the Idle state.

missedFrames

:

number

The number of consecutive times that the audio resource has been unable to provide an Opus frame.

onStreamError

:

(error: Error) => void

playbackDuration

:

number

The playback duration in milliseconds of the current audio resource. This includes filler silence packets that have been played when the resource was buffering.

resource

:

AudioResource

The resource that is being played.

status

:

AudioPlayerStatus.Playing