SongGuess
    Preparing search index...

    Handle for operations scoped to a single Stream video.

    interface StreamVideoHandle {
        captions: StreamScopedCaptions;
        downloads: StreamScopedDownloads;
        id: string;
        delete(): Promise<void>;
        details(): Promise<StreamVideo>;
        generateToken(): Promise<string>;
        update(params: StreamUpdateVideoParams): Promise<StreamVideo>;
    }
    Index

    Properties

    id: string

    The unique identifier for the video.

    Methods

    • Deletes a video and its copies from Cloudflare Stream.

      Returns Promise<void>

      A promise that resolves when deletion completes.

      if the video is not found

      if an unexpected error occurs

    • Get a full videos details

      Returns Promise<StreamVideo>

      The full video details.

      if the video is not found

      if an unexpected error occurs

    • Creates a signed URL token for a video.

      Returns Promise<string>

      The signed token that was created.

      if the signing key cannot be retrieved or the token cannot be signed

    • Update details for a single video.

      Parameters

      Returns Promise<StreamVideo>

      The updated video details.

      if the video is not found

      if the parameters are invalid

      if an unexpected error occurs