The stream asset creator ingests a stream and stores the data as an asset in the TDO.
| Engine property | Value |
|---|
| ID | 75fc943b-b5b0-4fe1-bcb6-9a7e1884257a |
| Mode | Stream |
| Input type | Any |
| I ‚Üí O | |
| Fields | assetType - the value to use for assetType on the asset. Defaults to "media" setAsPrimary - true to make the asset primary |
A primary asset is the asset that will be used by default in a "reprocess job" (a job with isReprocessJob set to true, meaning that the media file was previously ingested and associated with an existing TDO).
If you have a URL for a file and want to attach it to a TDO as an asset:
Create a Webstream Adapter task to download the URL as a stream, then send the stream to this engine.
tasks: [
{
# Webstream Adapter
engineId: "9e611ad7-2d3b-48f6-a51b-0a1ba40fe255"
payload: { url: "" }
ioFolders: [
{ referenceId: "wsa-output", mode: stream, type: output }
]
}
{
# Asset Ingester
engineId: "75fc943b-b5b0-4fe1-bcb6-9a7e1884257a"
executionPreferences: { parentCompleteBeforeStarting: true }
ioFolders: [
{ referenceId: "ai-input", mode: stream, type: input }
]
}
]
routes: [
{
parentIoFolderReferenceId: "wsa-output"
childIoFolderReferenceId: "ai-input"
}
If you want to create a brand new TDO and attach the file as an asset to it, supply the target field of the createJob call to trigger the creation of a new TDO. If you want to attach the file as an asset to an existing TDO, then use the targetId field of createJob to specify the TDO by ID.
If you are using launchSingleEngineJob instead, then provide the uploadUrl to create a new TDO and attach the file to it.