Skip to main content

Function: getRecordingAnimatedUrl()

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / getRecordingAnimatedUrl

Function: getRecordingAnimatedUrl()

getRecordingAnimatedUrl(tokenName, recordingId, baseUrl, extension?): string

Defined in: packages/launchpad-sdk/dist/utils/assetUrls.d.ts:315

Get redirect URL for a recording animated asset

Animated version of a recording (e.g., GIF preview of recording).

Backend: Redirects to Mux animated asset if available, otherwise placeholder.

Parameters​

tokenName​

string

Token name (lowercase)

recordingId​

string

Recording asset ID (from Mux)

baseUrl​

string

API base URL

extension?​

string

File extension (optional, default: 'gif')

Returns​

string

Full redirect URL to animated recording

Throws​

Error if token name or recording ID is invalid

Example​

const animUrl = getRecordingAnimatedUrl(
'anime',
'asset_abc123',
'https://api.example.com',
'webp'
);
// → "https://api.example.com/v1/tokens/anime/recordings/asset_abc123/assets/animated.webp"

Since​

7.3.0