The playback segment creator creates playback segments (chunks) from an input stream into the TDO.
| Engine property | Value |
|---|
| ID | 352556c7-de07-4d55-b33f-74b1cf237f25 |
| Mode | Stream |
| Input type | Any |
| I ‚Üí O | |
| Fields | None |
If you have a URL for a media file and want to store as segments in the TDO for play back in Media Streamer:
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 }
]
}
{
# Playback
engineId: "352556c7-de07-4d55-b33f-74b1cf237f25"
executionPreferences: { parentCompleteBeforeStarting: true }
ioFolders: [
{ referenceId: "pb-input", mode: stream, type: input }
]
}
]
routes: [
{
parentIoFolderReferenceId: "wsa-output"
childIoFolderReferenceId: "pb-input"
}
If you want to create a brand new TDO and attach this stream as an asset to it, use the target field of the createJob call to trigger the creation of a new TDO. If you want to attach the stream as an asset to an existing TDO, use the targetId field of createJob.
If you are using launchSingleEngineJob instead, then provide the uploadUrl to create a new TDO and attach the stream to it.