build_media

Render multiple media source segments into a single output asset in a folder.

build_media

Render multiple media source segments into a single output asset in a folder.

Render a media-builder composition into destination_folder_id. Returns nothing.

Safety class: B · API type: portal · Min version:

📘

Confinement

Class B: destination_folder_id AND every source asset must be within your run-root anchor.

Signatures

def build_media(sdk, sources, destination_folder_id, title=None,
                tags=None, collections=None, related_contents=None):
    """Render `sources` into a new output asset under destination_folder_id (confined)."""
    return sdk.build_media(
        sources, title, tags, collections, related_contents, destination_folder_id
    )
export async function buildMedia(sdk, sources, destinationFolderId, title = null,
        tags = null, collections = null, relatedContents = null) {
    // Render `sources` into a new output asset under destinationFolderId (confined).
    return await sdk.buildMedia(sources, title, tags, collections, relatedContents, destinationFolderId);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes
sourcessourceslist[dict]yesordered source segments for the composition
destination_folder_iddestinationFolderIdstryese.g. <folder-uuid>
titletitlestr | Nonenoe.g. composed.mp4
tagstagslist[dict] | Noneno
collectionscollectionslist[dict] | Noneno
related_contentsrelatedContentslist[dict] | Noneno

Returns

None — no body; the rendered output lands in destination_folder_id (async).

Errors

  • 401 unauthenticated
  • 404 source/folder not found

See also: Python ↔ JS naming map · Return shapes.