Options
All
  • Public
  • Public/Protected
  • All
Menu

The audio resource instance

Hierarchy

  • Resource

Index

Constructors

constructor

Properties

Private _autoPaused

_autoPaused: boolean = false

If audio source is from youtube, it will auto paused when ytdl-core getting next chunk

Private _player

_player: AudioPlayer

The audio player that currently use the audio resource

allCached

allCached: boolean = false

true if all audio is cached, otherwise false

Optional Readonly cache

cache: Cache

The cache instance of audio source

Optional Readonly cacheWriter

cacheWriter: CacheWriter

The audio cache writer

cachedSecond

cachedSecond: number = 0

The audio cached in seconds

Readonly decoder

decoder: Transform | Duplex

The audio decoder

Optional Readonly demuxer

demuxer: Transform

The audio demuxer

Readonly identifier

identifier: string

The audio identifier

Readonly isLive

isLive: boolean

true if the audio source is livestream, otherwise false

Readonly source

source: Readable

The audio source

Accessors

autoPaused

  • get autoPaused(): boolean
  • set autoPaused(paused: boolean): void

player

Generated using TypeDoc