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 />
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
asset |
Pick<AssetDTO, "sha"> |
opts |
TransformOptions |
Returns
Section titled “Returns”string | null