Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SoundCloudStream

SoundCloud Stream class

Hierarchy

  • SoundCloudStream

Index

Constructors

Properties

downloaded_segments: number

Total segments Downloaded so far

downloaded_time: number

Total time of downloaded segments data.

request: null | IncomingMessage

Incoming message that we recieve.

Storing this is essential. This helps to destroy the TCP connection completely if you stopped player in between the stream

segment_urls: string[]

Array of segment_urls in dash file.

stream: Readable

Readable Stream through which data passes

time: number[]

Array of segment time. Useful for calculating downloaded_time.

timer: Timer

Timer for looping code every 5 minutes

Type of audio data that we recieved from normal youtube url.

url: string

Dash Url containing segment urls.

Methods

  • cleanup(): void
  • This cleans every used variable in class.

    This is used to prevent re-use of this class and helping garbage collector to collect it.

    Returns void

  • loop(): Promise<void>
  • parser(): Promise<void>
  • pause(): void
  • Pauses timer. Stops running of loop.

    Useful if you don't want to get excess data to be stored in stream.

    Returns void

  • resume(): void
  • start(): Promise<void>

Generated using TypeDoc