Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Audio

Implements

  • IAudio

Index

Constructors

constructor

  • new Audio(__namedParameters: object): Audio
  • Parameters

    • __namedParameters: object
      • positionInterval: undefined | string | number | IImmutable<string | number>
      • rest: rest
      • state: undefined | Buffering | Playing | Stopped

    Returns Audio

Accessors

buffering

  • get buffering(): boolean

duration

  • get duration(): Milliseconds | undefined

end

  • get end(): Milliseconds

error

  • get error(): Error | undefined

loaded

  • get loaded(): boolean

loading

  • get loading(): boolean

looping

  • get looping(): boolean

paused

  • get paused(): boolean

playing

  • get playing(): boolean

position

  • get position(): Milliseconds | undefined

start

  • get start(): Milliseconds

stopped

  • get stopped(): boolean

transitioning

  • get transitioning(): boolean

unloaded

  • get unloaded(): boolean

url

  • get url(): Url

Methods

pause

  • pause(): Promise<void>

play

  • play(): Promise<void>

seek

  • seek(milliseconds: MillisecondsAccepted): Promise<void>
  • Parameters

    • milliseconds: MillisecondsAccepted

    Returns Promise<void>

stop

  • stop(): Promise<void>

unload

  • unload(): Promise<void>