Sanity Library Reference Docs
    Preparing search index...

    Interface MediaLibraryPlaybackInfoOptions

    Options for requesting playback info (URLs + optional tokens) for a Media Library video asset.

    Removed: generic fallback parameters (width, height, fit, format). Supply per‑transformation values instead. Animated transformations intentionally exclude any fit option (not supported by Mux).

    includeTokens is a client-side flag (not sent to the server) controlling whether returned tokens should be appended to URLs when consumed.

    interface MediaLibraryPlaybackInfoOptions {
        expiration?: string | number;
        transformations?: MediaLibraryVideoPlaybackTransformations;
    }
    Index

    Properties

    expiration?: string | number

    Expiration hint for secured/signed URLs (string or number, number will be stringified).

    Explicit per-video transformation options (thumbnail, animated, storyboard).