Skip to main content

index/functions/getRecordingPosterUrl.md

getRecordingPosterUrl(tokenName, recordingId, baseUrl): string

Get redirect URL for a recording poster image

High-quality still frame from the recording, typically used as a placeholder before playback or in list views.

Backend: Redirects to Mux poster image if available, otherwise placeholder.

Parameters​

ParameterTypeDescription
tokenNamestringToken name (lowercase)
recordingIdstringRecording asset ID (from Mux)
baseUrlstringAPI base URL

Returns​

string

Full redirect URL to recording poster

Throws​

Error if token name or recording ID is invalid

Example​

const posterUrl = getRecordingPosterUrl(
'anime',
'asset_abc123',
'https://api.example.com'
);
// → "https://api.example.com/v1/tokens/anime/recordings/asset_abc123/assets/poster.jpg"

Since​

7.3.0