Skip to content

getVideoTransformUrl

function getVideoTransformUrl(asset, opts): string | null;

Defined in: packages/asset-client/src/transform.ts:231

Build a transform URL for a VIDEO asset. Same DSL shape as image transforms; the server branches on the asset’s kind column. Video URLs use .mp4 (default) or .webm extension and on cache miss the server returns 202 Accepted while a Cloud Run Job encodes the clip; subsequent GETs return 302 to the cached R2 object.

<video src={aq.transformVideo(asset, { width: 1080, height: 1920 })} autoPlay muted loop playsInline />

Parameter Type
asset Pick<AssetDTO, "sha">
opts TransformOptions

string | null