YouTube Stream Class constructor
Audio Endpoint url.
Duration of audio playback [ in seconds ]
Length of the header in bytes.
Total length of Audio file in bytes.
Bitrate provided by YouTube.
YouTube video url.
Options provided to stream function.
Used to calculate no of bytes data that we have recieved
Total length of audio file in bytes
Length of the header in bytes
Calculate per second bytes by using contentLength (Total bytes) / Duration (in seconds)
Quality given by user. [ Used only for retrying purposes only. ]
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
WebmSeeker Stream through which data passes
Timer for looping data every 265 seconds.
Type of audio data that we recieved from normal youtube url.
Audio Endpoint Format Url to get data from.
YouTube video url. [ Used only for retrying purposes only. ]
This cleans every used variable in class.
This is used to prevent re-use of this class and helping garbage collector to collect it.
Getting data from audio endpoint url and passing it to stream.
If 404 or 403 occurs, it will retry again.
Pauses timer. Stops running of loop.
Useful if you don't want to get excess data to be stored in stream.
Resumes timer. Starts running of loop.
Retry if we get 404 or 403 Errors.
INTERNAL Function
Uses stream functions to parse Webm Head and gets Offset byte to seek to.
Nothing
Generated using TypeDoc
YouTube Stream Class for seeking audio to a timeStamp.