SongGuess
    Preparing search index...

    Interface MediaTransformationResult

    Result of a media transformation operation. Provides multiple ways to access the transformed media content.

    interface MediaTransformationResult {
        contentType(): Promise<string>;
        media(): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
        response(): Promise<Response>;
    }
    Index

    Methods

    • Returns the MIME type of the transformed media.

      Returns Promise<string>

      A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')

    • Returns the transformed media as a readable stream of bytes.

      Returns Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>

      A promise containing a readable stream with the transformed media

    • Returns the transformed media as an HTTP response object.

      Returns Promise<Response>

      The transformed media as a Promise, ready to store in cache or return to users