SongGuess
    Preparing search index...
    interface StreamScopedDownloads {
        delete(downloadType?: StreamDownloadType): Promise<void>;
        generate(
            downloadType?: StreamDownloadType,
        ): Promise<StreamDownloadGetResponse>;
        get(): Promise<StreamDownloadGetResponse>;
    }
    Index

    Methods

    • Delete the downloads for a video. Available types are default and audio. Defaults to default when omitted.

      Parameters

      Returns Promise<void>

      A promise that resolves when deletion completes.

      if the video or downloads are not found

      if an unexpected error occurs

    • Generates a download for a video when a video is ready to view. Available types are default and audio. Defaults to default when omitted.

      Parameters

      Returns Promise<StreamDownloadGetResponse>

      The current downloads for the video.

      if the video is not found

      if the download type is invalid

      if the video duration is too long to generate a download

      if the video is not ready to stream

      if an unexpected error occurs

    • Lists the downloads created for a video.

      Returns Promise<StreamDownloadGetResponse>

      The current downloads for the video.

      if the video or downloads are not found

      if an unexpected error occurs