Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioStream

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private audio

audio: HTMLAudioElement = ...

Private audioEvents

audioEvents: string[] = ...

Private config

config: StreamConfig

Protected state

state: StreamState = ...

Private stateChange

stateChange: Subject<any> = ...

Methods

Protected addEvents

  • addEvents(obj: any, events: string[], handler: any): void
  • method to add events listener for audio stream internal implementation, don't use it.

    Parameters

    • obj: any
    • events: string[]
    • handler: any

    Returns void

events

  • events(): Observable<any>

getState

  • getState(): Subject<any>

loadTrack

  • loadTrack(src: string): void

pause

  • pause(): void

play

  • play(): void

Protected removeEvents

  • removeEvents(obj: any, events: string[], handler: any): void
  • method to remove events listeners for audio stream internal implementation, don't use it.

    Parameters

    • obj: any
    • events: string[]
    • handler: any

    Returns void

seekTo

  • seekTo(time: number): void

setMute

  • setMute(muted: boolean): void

setSinkId

  • setSinkId(deviceId: string): void

setVolume

  • setVolume(volume: number): void

stop

  • stop(): void

Protected updateStateEvents

  • updateStateEvents(event: Event): void
  • method to update state from audio events internal implementation, don't use it.

    Parameters

    • event: Event

    Returns void

Protected updateStateProps

  • updateStateProps(obj: any, prop: string, value: any): void
  • method to update state from properties internal implementation, don't use it.

    Parameters

    • obj: any
    • prop: string
    • value: any

    Returns void

Generated using TypeDoc