@iamtraction/play-dl
    Preparing search index...

    Class Stream

    YouTube Stream Class for playing audio from normal videos.

    Index
    • YouTube Stream Class constructor

      Parameters

      • url: string

        Audio Endpoint url.

      • type: StreamType

        Type of Stream

      • duration: number

        Duration of audio playback [ in seconds ]

      • contentLength: number

        Total length of Audio file in bytes.

      • video_url: string

        YouTube video url.

      • options: StreamOptions

        Options provided to stream function.

      Returns Stream

    stream: Readable

    Readable Stream through which data passes

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

    • Pauses timer. Stops running of loop.

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

      Returns void