Download OpenAPI specification:Download
For information about getting started, please see Lightflow Getting Started.
An asset is a video, including the output formats used to watch it online and offline, and the set of optimizations applied to maximize the viewers quality of experience. The assets generated by LightFlow are ready to be streamed through Internet.
Return a paginated list of assets.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
creationDateFrom | string Created date from filter (ISO date format) |
creationDateTo | string Created date to filter (ISO date format) |
features | string Features filter (perceptual-quality, perceptual-quality-per-scene, content-moderation, archive-enrichment, taxonomy-classifier, face-recognition). Provided as comma-separated string values |
status | string Status filter (queued, running, error, finished, canceled). Provided as comma-separated string values |
inputUrlPath | string Input URL filter |
uuid | string Asset UUID filter |
name | string Name filter |
referenceId | string Reference ID filter |
tags | string Tags filter |
label | string Label filter |
showDemo | string If set to true, response includes assets from demo account |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "workflowId": "string",
- "username": "string",
- "accountName": "string",
- "creationDate": "2019-08-24",
- "status": "string",
- "stage": "string",
- "priority": 50,
- "assetError": {
- "code": 0,
- "output": "string"
}, - "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- { }
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "playbackManifests": [
- {
- "type": "string",
- "url": "string"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}, - "duration": -1,
- "transcodeRenditions": [
- {
- "bitrate": 0,
- "resolution": 0,
- "profile": "string"
}
], - "stageTimings": {
- "init": {
- "startDate": "string",
- "timeMS": 0
}, - "download": {
- "startDate": "string",
- "timeMS": 0
}, - "analysis": {
- "startDate": "string",
- "timeMS": 0
}, - "processing": {
- "startDate": "string",
- "timeMS": 0
}, - "upload": {
- "startDate": "string",
- "timeMS": 0
}, - "complete": {
- "startDate": "string",
- "timeMS": 0
}
}, - "statusTimings": {
- "queued": {
- "startDate": "string",
- "timeMS": 0
}, - "running": {
- "startDate": "string",
- "timeMS": 0
}, - "finished": {
- "startDate": "string",
- "timeMS": 0
}
}
}
]
}
Publish a new asset.
label | string The asset will be tagged with a label. Usage and billing information for assets /reports/usage-metrics can be then filtered by the label (100 characters max). |
priority | number Default: 50 Priority of the asset processing to start. Value between 0 (lowest) to 100 (highest). |
object Asset configuration. | |
Array of objects List of callbacks that will be used to notify when the asset processing task is done. | |
object Asset metadata. |
{- "label": "string",
- "priority": 50,
- "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}
}
{- "uuid": "string",
- "workflowId": "string",
- "username": "string",
- "accountName": "string",
- "creationDate": "2019-08-24",
- "status": "string",
- "stage": "string",
- "priority": 50,
- "assetError": {
- "code": 0,
- "output": "string"
}, - "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "playbackManifests": [
- {
- "type": "string",
- "url": "string"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}, - "duration": -1,
- "transcodeRenditions": [
- {
- "bitrate": 0,
- "resolution": 0,
- "profile": "string"
}
], - "stageTimings": {
- "init": {
- "startDate": "string",
- "timeMS": 0
}, - "download": {
- "startDate": "string",
- "timeMS": 0
}, - "analysis": {
- "startDate": "string",
- "timeMS": 0
}, - "processing": {
- "startDate": "string",
- "timeMS": 0
}, - "upload": {
- "startDate": "string",
- "timeMS": 0
}, - "complete": {
- "startDate": "string",
- "timeMS": 0
}
}, - "statusTimings": {
- "queued": {
- "startDate": "string",
- "timeMS": 0
}, - "running": {
- "startDate": "string",
- "timeMS": 0
}, - "finished": {
- "startDate": "string",
- "timeMS": 0
}
}
}
Return the asset whose id is equal to {uuid}.
uuid required | string Identifier of the asset to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/mVvxI'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "workflowId": "string",
- "username": "string",
- "accountName": "string",
- "creationDate": "2019-08-24",
- "status": "string",
- "stage": "string",
- "priority": 50,
- "assetError": {
- "code": 0,
- "output": "string"
}, - "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "playbackManifests": [
- {
- "type": "string",
- "url": "string"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}, - "duration": -1,
- "transcodeRenditions": [
- {
- "bitrate": 0,
- "resolution": 0,
- "profile": "string"
}
], - "stageTimings": {
- "init": {
- "startDate": "string",
- "timeMS": 0
}, - "download": {
- "startDate": "string",
- "timeMS": 0
}, - "analysis": {
- "startDate": "string",
- "timeMS": 0
}, - "processing": {
- "startDate": "string",
- "timeMS": 0
}, - "upload": {
- "startDate": "string",
- "timeMS": 0
}, - "complete": {
- "startDate": "string",
- "timeMS": 0
}
}, - "statusTimings": {
- "queued": {
- "startDate": "string",
- "timeMS": 0
}, - "running": {
- "startDate": "string",
- "timeMS": 0
}, - "finished": {
- "startDate": "string",
- "timeMS": 0
}
}
}
Updates the asset metadata object with the provided data
uuid required | string Identifier of the asset to be updated. |
name | string Name of the asset. |
value | string Value of asset. |
{- "name": "string",
- "value": "string"
}
Delete the asset whose id is equal to {uuid}.
uuid required | string Identifier of the asset to be deleted. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/assets/90VLf'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Return the asset playback info whose id is equal to {uuid}.
uuid required | string Identifier of the asset. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/Y2lq8/playback'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "metadata": {
- "name": "string",
- "value": "string"
}, - "protection": {
- "vendor": "string",
- "contentId": "string",
- "widevine": {
- "licenseURL": "string"
}, - "playready": {
- "licenseURL": "string"
}, - "fairplay": {
- "licenseURL": "string"
}
}, - "playbackManifests": [
- {
- "type": "dash",
- "url": "string"
}
], - "rootPath": "string",
- "imagesConfigJSON": "string",
- "images": [
- {
- "pathTemplate": "string",
- "numImages": 0,
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
]
}
Create a new job for a previous asset and overwrites its former parameters.
label | string The asset will be tagged with a label. Usage and billing information for assets /reports/usage-metrics can be then filtered by the label (100 characters max). |
priority | number Default: 50 Priority of the asset processing to start. Value between 0 (lowest) to 100 (highest). |
object Asset configuration. | |
Array of objects List of callbacks that will be used to notify when the asset processing task is done. | |
object Asset metadata. |
{- "label": "string",
- "priority": 50,
- "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}
}
{- "uuid": "string",
- "workflowId": "string",
- "username": "string",
- "accountName": "string",
- "creationDate": "2019-08-24",
- "status": "string",
- "stage": "string",
- "priority": 50,
- "assetError": {
- "code": 0,
- "output": "string"
}, - "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "playbackManifests": [
- {
- "type": "string",
- "url": "string"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}, - "duration": -1,
- "transcodeRenditions": [
- {
- "bitrate": 0,
- "resolution": 0,
- "profile": "string"
}
], - "stageTimings": {
- "init": {
- "startDate": "string",
- "timeMS": 0
}, - "download": {
- "startDate": "string",
- "timeMS": 0
}, - "analysis": {
- "startDate": "string",
- "timeMS": 0
}, - "processing": {
- "startDate": "string",
- "timeMS": 0
}, - "upload": {
- "startDate": "string",
- "timeMS": 0
}, - "complete": {
- "startDate": "string",
- "timeMS": 0
}
}, - "statusTimings": {
- "queued": {
- "startDate": "string",
- "timeMS": 0
}, - "running": {
- "startDate": "string",
- "timeMS": 0
}, - "finished": {
- "startDate": "string",
- "timeMS": 0
}
}
}
Cancel an asset that is being processed.
uuid required | string Id of the asset to be cancelled. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('PUT', '/assets/DqhJ8/cancel'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Return a JSON object with the smart encoding ladder.
uuid required | string Id of the asset whose ladder should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/N0FIb/output'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": {
- "results": {
- "h264": [
- {
- "bitrate": 0,
- "quality_score": 0,
- "resolution": 0
}
], - "h265": [
- {
- "bitrate": 0,
- "quality_score": 0,
- "resolution": 0
}
], - "vp9": [
- {
- "bitrate": 0,
- "quality_score": 0,
- "resolution": 0
}
], - "av1": [
- {
- "bitrate": 0,
- "quality_score": 0,
- "resolution": 0
}
]
}
}
}
Return a JSON object with the asset info.
uuid required | string Id of the asset whose input details should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/ljOYP/input'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": {
- "format": {
- "bit_rate": "string",
- "duration": "string",
- "filename": "string",
- "format_name": "string",
- "nb_streams": 0,
- "size": "string",
- "start_time": "string"
}, - "streams": [
- {
- "avg_frame_rate": "string",
- "bit_rate": "string",
- "bits_per_raw_sample": "string",
- "chroma_location": "string",
- "codec_long_name": "string",
- "codec_name": "string",
- "codec_tag": "string",
- "codec_time_base": "string",
- "codec_type": "string",
- "coded_height": 0,
- "coded_width": 0,
- "display_aspect_ratio": "string",
- "duration": "string",
- "has_b_frames": 0,
- "height": 0,
- "index": 0,
- "is_avc": "string",
- "level": 0,
- "nal_length_size": "string",
- "nb_frames": 0,
- "pix_fmt": 0,
- "profile": "string",
- "r_frame_rate": "string",
- "sample_aspect_ratio": "string"
}
]
}
}
Return a JSON object with the R/D curves of a processed asset.
uuid required | string Id of the asset whose R/D curves should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/HEb7r/predictions'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "predictions": {
- "240": [
- {
- "bitrate": 0,
- "quality_score": 0
}
], - "288": [
- {
- "bitrate": 0,
- "quality_score": 0
}
], - "384": [
- {
- "bitrate": 0,
- "quality_score": 0
}
], - "480": [
- {
- "bitrate": 0,
- "quality_score": 0
}
], - "720": [
- {
- "bitrate": 0,
- "quality_score": 0
}
], - "1080": [
- {
- "bitrate": 0,
- "quality_score": 0
}
]
}, - "version": "string"
}
Return a JSON object with archive enrichment results.
uuid required | string Id of the asset whose archive enrichment results should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/X7cCO/archive-enrichment'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": [
- {
- "chunk": "string",
- "time": "string",
- "values": [
- {
- "text": "string",
- "weight": "string"
}
]
}
]
}
Return a JSON object with content moderation results.
uuid required | string Id of the asset whose content moderation results should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/OISDb/content-moderation'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": [
- {
- "chunk": "string",
- "time": "string",
- "values": [
- {
- "text": "string",
- "weight": "string"
}
]
}
]
}
Return a JSON object with face recognition results.
uuid required | string Id of the asset whose face recognition results should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/YSYis/face-recognition'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": {
- "data": [
- {
- "frames": [
- {
- "chunk": "string",
- "time": "string",
- "values": [
- {
- "text": "string",
- "weight": "string"
}
]
}
]
}
]
}
}
Return a JSON object with taxonomy classifier results.
uuid required | string Id of the asset whose taxonomy classifier results should be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/assets/anzZ8/taxonomy-classifier'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "data": { }
}
Manage storage locations used as input/outputs of the assets.
Supported locations:
Google Cloud Storage
id: gcs
id | description |
---|---|
bucket | Bucket name |
accessKey | Access key |
secretKey | Secret key |
AWS S3
id: s3
id | description |
---|---|
bucket | Bucket name |
accessKey | Access key |
secretKey | Secret key |
Azure
id: abs
id | description |
---|---|
bucket | Bucket name |
accessKey | Access key |
secretKey | Secret key |
Akamai NetStorage
id: netstorage
id | description |
---|---|
host | NetStorage hostname |
username | NetStorage username |
password | NetStorage password |
FTP / SFTP
id: ftp
id | description |
---|---|
host | Hostname |
port | Port |
username | Username |
password | Password |
secure | (boolean) Is secure server |
Object Matrix
id: object-matrix
id | description |
---|---|
bucket | Bucket name |
accessKey | Access key |
secretKey | Secret key |
Scality
id: scality
id | description |
---|---|
bucket | Bucket name |
accessKey | Access key |
secretKey | Secret key |
Return a paginated list of supported input/output location types. These types can be defined as asset's input, output or both.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/inputs-outputs-types'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "storageId": "string",
- "version": 0,
- "label": "string",
- "storageTypes": [
- {
- "id": "string",
- "label": "string"
}
], - "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
]
}
Return a paginated list of configured input/output location. These objects can be referenced in the asset creation process, used as input, output or both.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/inputs-outputs'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
]
}
Return the created input/output location.
Example:
curl -XPOST 'https://api.lightflow.media/inputs-outputs' \
-H 'authorization: Bearer API_KEY' \
-H 'content-type: application/json' \
-d '{
"storageId":"s3",
"storageType":"input-output",
"name":"S3 bucket",
"args":[{
"id":"bucket",
"value":"custom_bucket"
},{
"id":"accessKey",
"value":"access_key"
},{
"id":"secretKey",
"value":"secret_key"
}]
}'
name required | string Name of the storage. |
storageId required | string Unique identifier of the input/output storage location. See supported location types for details. |
storageType required | string Type of the input/output storage. It can be "input", "output" or "input-output". |
Array of objects Set of arguments required by the specified storage type. See supported location types for details. |
{- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
{- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
Return the input/output whose id is equal to {uuid}.
uuid required | string Identifier of the input/output location to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/inputs-outputs/Nn1iX'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
Update the asset whose id is equal to {uuid}.
uuid required | string Identifier of the input/output location to be removed. |
uuid | string Unique identifier of the input/output storage location. |
name | string Name of the storage. |
storageId | string Unique identifier of the input/output storage location type. See supported location types for details. |
storageType | string Type of the input/output storage. It can be "input", "output" or "input-output". |
Array of objects Set of arguments required by the specified storage type. See supported location types for details. |
{- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
{- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}
Delete the asset whose id is equal to {uuid}.
uuid required | string Identifier of the input/output location to be removed. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/inputs-outputs/93eQe'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Return a paginated list of encoders.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/encoders'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
]
}
Create an encoder.
name required | string Name of the encoder. |
type required | string Enum: "lightflow" "aws" "brightcovecms" "azure" Type of the encoder. |
inputUuid | string For AWS Media Convert encoders, unique identifier of the S3 storage to be used as the default input storage. |
outputUuid | string For AWS Media Convert encoders, unique identifier of the S3 storage to be used as the default output storage. |
apiKey | string For AWS Media Convert encoders, API Key generated in AWS console to access the encoder. |
apiSecret | string For AWS Media Convert encoders, API Secret generated in AWS console to access the encoder. |
endpointURL | string For AWS Media Convert encoders, API Endpoint URL provided by AWS to access the encoder (example: https://somecode.mediaconvert.us-east-2.amazonaws.com). |
queue | string For AWS Media Convert encoders, Id of the On demand Queue. If empty, the default queue configured in AWS will be used (example: arn:aws:mediaconvert:us-east-2:1111111111111:queues/Default). |
role | string For AWS Media Convert encoders, Role to use to create encoding jobs (example: arn:aws:iam::1111111111111:role/MediaConvertRole). |
clientId | string For Brightcove based encoder, client Id of the Brightcove account. |
clientSecret | string For Brightcove based encoder, client secret of the Brightcove account. |
accountId | string For Brightcove based encoder, Id of the Brightcove account. |
fallbackProfileId | string For Brightcove based encoder, Id of the default encoding profile. It will be used in case of failure while creating a custom encoding profile for an specific asset. |
tenantId | string For Azure Media Services encoder, the Tenant Id for the Azure subscription. |
client | string For Azure Media Services encoder, Id of the Service Principal App. |
key | string For Azure Media Services encoder, the service principal password. |
subscriptionId | string For Azure Media Services encoder, the Id of the Azure susbscription. |
azureAccountName | string For Azure Media Services encoder, the Azure Media Services Account Name. |
resourceGroupName | string For Azure Media Services encoder, the Resource Group namme. |
token | string For Livepeer encoder, the service token. |
{- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
Return the encoder whose id is equal to {uuid}.
uuid required | string Identifier of the encoder to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/encoders/UIntY'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
Update the encoder whose id is equal to {uuid}.
uuid required | string Identifier of the encoder to be updated. |
name | string Name of the encoder. |
type | string Enum: "lightflow" "aws" "brightcovecms" "azure" Type of the encoder. |
inputUuid | string For AWS Media Convert encoders, unique identifier of the S3 storage to be used as the default input storage. |
outputUuid | string For AWS Media Convert encoders, unique identifier of the S3 storage to be used as the default output storage. |
apiKey | string For AWS Media Convert encoders, API Key generated in AWS console to access the encoder. |
apiSecret | string For AWS Media Convert encoders, API Secret generated in AWS console to access the encoder. |
endpointURL | string For AWS Media Convert encoders, API Endpoint URL provided by AWS to access the encoder (example: https://somecode.mediaconvert.us-east-2.amazonaws.com). |
queue | string For AWS Media Convert encoders, Id of the On demand Queue. If empty, the default queue configured in AWS will be used (example: arn:aws:mediaconvert:us-east-2:1111111111111:queues/Default). |
role | string For AWS Media Convert encoders, Role to use to create encoding jobs (example: arn:aws:iam::1111111111111:role/MediaConvertRole). |
clientId | string For Brightcove based encoder, client Id of the Brightcove account. |
clientSecret | string For Brightcove based encoder, client secret of the Brightcove account. |
accountId | string For Brightcove based encoder, Id of the Brightcove account. |
fallbackProfileId | string For Brightcove based encoder, Id of the default encoding profile. It will be used in case of failure while creating a custom encoding profile for an specific asset. |
tenantId | string For Azure Media Services encoder, the Tenant Id for the Azure subscription. |
client | string For Azure Media Services encoder, Id of the Service Principal App. |
key | string For Azure Media Services encoder, the service principal password. |
subscriptionId | string For Azure Media Services encoder, the Id of the Azure susbscription. |
azureAccountName | string For Azure Media Services encoder, the Azure Media Services Account Name. |
resourceGroupName | string For Azure Media Services encoder, the Resource Group namme. |
token | string For Livepeer encoder, the service token. |
{- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
Delete the encoder whose id is equal to {uuid}.
uuid required | string Identifier of the encoder. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/encoders/dOzhN'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}
Return a paginated list of DRM providers.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/drms'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}
]
}
Create a DRM provider.
accountName required | string |
name required | string |
type required | string Enum: "ezdrm" "irdeto" |
username | string |
password | string |
accountId | string |
host | string |
{- "accountName": "string",
- "name": "string",
- "type": "ezdrm",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}
Return the DRM provider whose id is equal to {uuid}.
uuid required | string Identifier of the asset to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/drms/SAeK2'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}
Update the DRM provider whose id is equal to {uuid}.
uuid required | string Identifier of the asset to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('PUT', '/drms/s7mpZ'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}
Delete the encoder whose id is equal to {uuid}.
uuid required | string Identifier of the asset to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/drms/gy0nd'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Manage the Content Preparation profiles. These profiles will define the parameters to be considered during a asset creation (through VoD Workflows or Watchfolders).
A Content Preparation profile can define the parameters for a CAO (Content Aware Optimization) job or for an static ladder job (classic transcoding).
Return a paginated list of content preparation profiles.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/content-preparations'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
]
}
Create a content preparation profile.
uuid | string Unique identifier of the content preparation profile. |
accountName | string Account that owns the content preparation profile. |
name required | string Name of the content preparation profile. |
type required | string Enum: "smart" "static" Type of content preparation profile. |
required | object Encoding configuration for the content preparation profile. |
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
Return the content preparation profile whose id is equal to {uuid}.
uuid required | string Identifier of the content preparation to be updated. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/content-preparations/Hyf9r'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
Return the content preparation profile whose id is equal to {uuid}.
uuid required | string Identifier of the content preparation to be removed. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/content-preparations/ndz02'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Update the content preparation profile whose id is equal to {uuid}.
uuid required | string Identifier of the content preparation to be updated. |
uuid | string Unique identifier of the content preparation profile. |
accountName | string Account that owns the content preparation profile. |
name required | string Name of the content preparation profile. |
type required | string Enum: "smart" "static" Type of content preparation profile. |
required | object Encoding configuration for the content preparation profile. |
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}
Delivery optimization profiles allow to define your business logic to be taken into account during the delivery process.
Return a paginated list of the delivery optimization profiles
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/delivery-optimization'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "name": "string",
- "treeObj": { }
}
]
}
Create a new delivery optimization profile
name required | string Name of the delivery optimization profile. |
treeObj required | object Object with the delivery logic. |
{- "name": "string",
- "treeObj": { }
}
{- "name": "string",
- "treeObj": { }
}
Return a delivery optimization profile given its uuid
uuid required | string Identifier of the delivery optimization profile to be retrieved |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/delivery-optimization/LTCZI'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "name": "string",
- "treeObj": { }
}
Delete a delivery optimization profile given its uuid
uuid required | string Identifier of the delivery optimization profile to be removed |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/delivery-optimization/mzxCh'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Update a delivery optimization profile given its uuid
uuid required | string Identifier of the delivery optimization profile to be updated |
name required | string Name of the delivery optimization profile. |
treeObj required | object Object with the delivery logic. |
{- "name": "string",
- "treeObj": { }
}
{- "name": "string",
- "treeObj": { }
}
Return a paginated list of CDNs associated with your LightFlow account.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/cdns'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
]
}
Create a CDN.
uuid | string Unique identifier of the CDN. |
accountName | string Account name of the user that created the CDN. |
creationDate | string <date-time> Date and time when the CDN was created. |
name required | string Name of the CDN |
hostname required | string Hostname of the CDN. |
commit required | number Commit of the CDN. |
pricePerGB required | number Price per gigabyte of the CDN. |
maxUsageGB required | number Maximum usage in gigabytes of the CDN. |
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
Return the CDN given its uuid
uuid required | string Identifier of the CDN to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/cdns/vmOvb'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
Delete the CDN given its uuid
uuid required | string Identifier of the CDN to be removed |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/cdns/xkMJf'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Update the CDN given its uuid
uuid required | string Identifier of the CDN to be updated |
uuid | string Unique identifier of the CDN. |
accountName | string Account name of the user that created the CDN. |
creationDate | string <date-time> Date and time when the CDN was created. |
name required | string Name of the CDN |
hostname required | string Hostname of the CDN. |
commit required | number Commit of the CDN. |
pricePerGB required | number Price per gigabyte of the CDN. |
maxUsageGB required | number Maximum usage in gigabytes of the CDN. |
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
{- "uuid": "string",
- "accountName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "hostname": "string",
- "commit": 0,
- "pricePerGB": 0,
- "maxUsageGB": 0
}
A session context in WisePath is defined as a combination of viewer context (ex: type of device, ISP, geographic location), quality of experience delivered by the CDN (ex: join time, buffer ratio) and CDN cost/usage.
For each request, WisePath will apply your delivery logic configuration to its session context parameters and will come back with:
assetId | string Asset id (Only required if there is no vodWorkflowId in the request) |
vodWorkflowId required | string Workflow id (Only required if there is no assetId in the request) |
ip | string IP address of the user for which WisePath should provide CDN recommendations |
referer | string Request referrer |
userAgent | string User agent of the user for which WisePath should provide CDN recommendations |
protocol | string Enum: "smooth_streaming" "progressive_media_download" "dash" "hls" Streaming Protocol to be considered for the CDN recommendations |
{- "assetId": "string",
- "vodWorkflowId": "string",
- "ip": "string",
- "referer": "string",
- "userAgent": "string",
- "protocol": "smooth_streaming"
}
{- "selectedCDN": {
- "uuid": "string",
- "name": "string",
- "hostname": "string",
- "score": 0
}, - "cdns": [
- {
- "uuid": "string",
- "name": "string",
- "hostname": "string",
- "score": 0
}
], - "leafId": "string",
- "vodWorkflowId": "string",
- "deliveryOptimizationId": "string",
- "enableP2P": true
}
Retrieve WisePath usage information
groupby | string^\w+(,\w+)*$ Field or fields that will be used to group resulting data. Allowed values: cdn or country. |
from | number unix epoch time to start retrieving data. |
to | number unix epoch time up to the data is retrieved. |
granularity | string Time interval to group the data by. Default is 1 day. Allowed values: 1-minute, 5-minutes, 1-hour, 1-day, 1-week, 1-month |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports-wisepath/requests'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "keys": {
- "cdnName": "string",
- "country": "string",
- "intervalStart": 0
}, - "data": [
- {
- "timestamp": 0,
- "accountName": "string",
- "cdnName": "string",
- "country": "string",
- "leafId": "string",
- "requests": 0
}
]
}
Return WisePath information regarding quality of experience
uuid required | string Identifier of the CDN for which quality of experience data will be retrieved |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports-wisepath/qoe'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "keys": {
- "cdnName": "string",
- "country": "string",
- "intervalStart": 0
}, - "data": [
- {
- "timestamp": 0,
- "accountName": "string",
- "feedId": "string",
- "cdnName": "string",
- "country": "string",
- "type": "VOD",
- "rebufferCount": 0,
- "clientThroughput": 0,
- "plays": 0,
- "playtime": 0,
- "bytesSent": 0,
- "joinTime": 0,
- "bufferRatio": 0,
- "ebvs": 0,
- "bitrate": 0,
- "playFailures": 0,
- "streamFailures": 0
}
]
}
Manage Feeds (video analytics sources). Integrating your video analytics sources with LightFlow enables it to take smarter decissions and to adapt your content to your viewers base. Once configured, LightFlow will connect to your analytics system on a period basis using its API and will produce metrics like:
LightFlow AI engine will use the knowledge acquired by automatically processing these aggregated metrics to increase the efficiency of your streaming service.
Create a data feed.
name required | string Name of the feed. |
type required | string Enum: "analytics" "cdn-usage" "availability" "lightflow" Type of the feed. |
provider required | string Value: "youbora" Brand of the feed. |
apiKey required | string API Key or user name given by the feed. |
apiSecret required | string API Secret given by the feed. |
{- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "apiSecret": "string"
}
{- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}
Return a paginated list of data feeds.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/feeds'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}
]
}
Return the data feed whose id is equal to {uuid}.
uuid required | string Identifier of the feed to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/feeds/ub3ee'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}
Update the data feed whose id is equal to {uuid}.
uuid required | string Identifier of the feed to be updated. |
name required | string Name of the feed. |
type required | string Enum: "analytics" "cdn-usage" "availability" "lightflow" Type of the feed. |
provider required | string Value: "youbora" Brand of the feed. |
apiKey required | string API Key or user name given by the feed. |
apiSecret required | string API Secret given by the feed. |
{- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "apiSecret": "string"
}
{- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}
Delete the data feed whose id is equal to {uuid}.
uuid required | string Identifier of the feed. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/feeds/P0QZM'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}
VoD Workflows allow to define the complete workflow in order to facilitate the creation of new assets, i.e., the input and output storages, the Content Preparation profile to be applied, the encoder to be used, the DRM protection, etc.
Return a paginated list of VoD workflows.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
versions | boolean Whether to attach the published versions (VodWorkflowVersion) to the VoD Workflows or not. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflows'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
]
}
Create a VoD workflow.
uuid | string Unique identifier of the VoD workflow. |
accountName | string Account name of the user that created the VoD workflow. |
name required | string Name for the VoD workflow. |
description | string Description for the VoD workflow. |
inputId | string UUID of the input sources storage. If not provided, HTTP will be considered. |
contentPreparationId | string UUID of the content preparation profile to be used. |
encoderId | string UUID of the encoder to be used. If not provided, LightFlow will do the encoding. |
drmId | string UUID of the DRM provider to be used. If not provided, no DRM protection will be applied. |
outputId | string UUID of the output storage. If not provided, LightFlow will be used. |
deliveryOptimizationId | string UUID of the delivery optimization profile to be applied. |
analyticsId | string UUID of the analytics provided to be attached. |
Array of objects |
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
Return the vod workflow whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow to be updated. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflows/cJ5PU'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
Delete the vod workflow whose id is equal to {uuid}. A VoDWorkflow with at least one VoDWorkflowVersion associated cannot be deleted.
uuid required | string Identifier of the vod workflow to be deleted. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/vod-workflows/0cUPk'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Update the vod workflow whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow to be updated. |
uuid | string Unique identifier of the VoD workflow. |
accountName | string Account name of the user that created the VoD workflow. |
name required | string Name for the VoD workflow. |
description | string Description for the VoD workflow. |
inputId | string UUID of the input sources storage. If not provided, HTTP will be considered. |
contentPreparationId | string UUID of the content preparation profile to be used. |
encoderId | string UUID of the encoder to be used. If not provided, LightFlow will do the encoding. |
drmId | string UUID of the DRM provider to be used. If not provided, no DRM protection will be applied. |
outputId | string UUID of the output storage. If not provided, LightFlow will be used. |
deliveryOptimizationId | string UUID of the delivery optimization profile to be applied. |
analyticsId | string UUID of the analytics provided to be attached. |
Array of objects |
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
{- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "description": "string",
- "inputId": "string",
- "contentPreparationId": "string",
- "encoderId": "string",
- "drmId": "string",
- "outputId": "string",
- "deliveryOptimizationId": "string",
- "analyticsId": "string",
- "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
]
}
Create an asset using the vod workflow whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow. |
required | object Asset input data |
object Asset output data | |
priority | number Default: 50 Priority of the asset processing to start. Value between 0 (lowest) to 100 (highest). |
label | string The asset will be tagged with a label. Usage and billing information for assets /reports/usage-metrics can be then filtered by the label (100 characters max). |
object Asset metadata. | |
object Protection parameters to be used for the asset. |
{- "input": {
- "urlPath": "string"
}, - "output": {
- "path": "string"
}, - "priority": 50,
- "label": "string",
- "metadata": {
- "name": "string",
- "value": "string"
}, - "protection": {
- "contentId": "string"
}
}
{- "uuid": "string",
- "workflowId": "string",
- "username": "string",
- "accountName": "string",
- "creationDate": "2019-08-24",
- "status": "string",
- "stage": "string",
- "priority": 50,
- "assetError": {
- "code": 0,
- "output": "string"
}, - "parameters": {
- "input": {
- "urlPath": "string",
- "id": "string",
- "token": "string",
- "filters": {
- "deinterlacer": true,
- "loudnorm": true
}, - "subtitles": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "lang": "string",
- "inManifest": true,
- "fileNameFormat": "string",
- "label": "string"
}
], - "checkIntegrity": false
}, - "output": {
- "id": "string",
- "path": "string",
- "fileNameFormat": "string",
- "packaging": {
- "mp4": true,
- "mpegdash": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "hbbtv": false,
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "hls": {
- "path": "string",
- "version": 0,
- "manifest": "string",
- "maxTopBitrate": 0,
- "segmentDuration": 0
}, - "mss": {
- "path": "string",
- "manifest": "string",
- "segmentDuration": 0,
- "mode": "string",
- "drmOptions": {
- "emeSignalingVersion": "string",
- "encryptionArgs": "string"
}
}, - "mp3": true
}, - "languageMap": "string",
- "packagingPerCodec": true,
- "saveOriginal": true,
- "filters": {
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": 0,
- "end": 0
}
]
}
}
]
}
}, - "perceptual-quality": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "mp3": {
- "bitrate": 0,
- "sampleRate": 0
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "effects": {
- "fadeIn": 0,
- "fadeOut": 0
}, - "deviceAwareOptimization": true,
- "contentPreparationId": "string"
}, - "transcoding": {
- "encoder": "lightflow",
- "contentPreparationId": "string"
}, - "content-moderation": {
- "smokerDetectionThreshold": 0,
- "smokerDetectionEDL": false
}, - "face-recognition": {
- "dataset": [
- "string"
], - "images": [
- {
- "mainFaces": 0,
- "imagesPerFace": 0,
- "fileNameFormat": "string",
- "resolution": "string"
}
]
}, - "archive-enrichment": { },
- "taxonomy-classifier": { },
- "protection": {
- "drmProviderId": "string",
- "contentId": "string",
- "mpegdash": {
- "playready": false,
- "widevine": false
}, - "hls": {
- "aes": false,
- "fairplay": false
}, - "mss": {
- "playready": false
}
}
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "playbackManifests": [
- {
- "type": "string",
- "url": "string"
}
], - "metadata": {
- "name": "string",
- "value": "string"
}, - "duration": -1,
- "transcodeRenditions": [
- {
- "bitrate": 0,
- "resolution": 0,
- "profile": "string"
}
], - "stageTimings": {
- "init": {
- "startDate": "string",
- "timeMS": 0
}, - "download": {
- "startDate": "string",
- "timeMS": 0
}, - "analysis": {
- "startDate": "string",
- "timeMS": 0
}, - "processing": {
- "startDate": "string",
- "timeMS": 0
}, - "upload": {
- "startDate": "string",
- "timeMS": 0
}, - "complete": {
- "startDate": "string",
- "timeMS": 0
}
}, - "statusTimings": {
- "queued": {
- "startDate": "string",
- "timeMS": 0
}, - "running": {
- "startDate": "string",
- "timeMS": 0
}, - "finished": {
- "startDate": "string",
- "timeMS": 0
}
}
}
Before using a VoD Workflow you first need to publish a valid version of it. When you publish a VoD workflow, LightFlow creates a immutable version of the workflow so any further change over it is not applied to your assets in production.
Once you have a version of your VoD workflow published, you will be able to create an asset by defining its input path, its output path (if needed) and the VoD Workflow to be used. LightFlow will create/deliver your asset following the configuration of the active version of that VoD Workflow version.
Return a paginated list of VoD workflows versions.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflow-versions'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": null,
- "id": null
}, - "config": {
- "opacity": null,
- "width": null,
- "height": null,
- "top": null,
- "bottom": null,
- "left": null,
- "right": null,
- "timeRanges": [ ]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
]
}
Return the VoD Workflow Version whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow version |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflow-versions/2flsw'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
Create a new VoD Workflow version for the VoD Workflow whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow |
description required | string Description of the VoD Workflow version |
{- "description": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
Retrieve the VoD Workflow versions bound to a VoD Workflow given its {uuid}.
uuid required | string Identifier of the vod workflow |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflow-versions/vod-workflow/8fKwH'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": null,
- "resolution": null
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": null,
- "id": null
}, - "config": {
- "opacity": null,
- "width": null,
- "height": null,
- "top": null,
- "bottom": null,
- "left": null,
- "right": null,
- "timeRanges": [ ]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
]
}
Retrieve the last VoD Workflow version bound to a VoD Workflow given its {uuid}.
uuid required | string Identifier of the vod workflow |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflow-versions/vod-workflow/yHXYU/active'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
Clone and publish the VoD Workflow Version whose id is equal to {uuid}.
uuid required | string Identifier of the vod workflow version |
description required | string Description of the VoD Workflow version |
{- "description": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
Without storing it into database, create a new VoD Workflow Version for the VoD Workflow whose id is equal to {uuid}. This endpoint is intended to validate the VoD Workflow Version before publishing it.
uuid required | string Identifier of the vod workflow |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/vod-workflow-versions/validate/0jVBR'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "description": "string",
- "publishDate": "string",
- "vodWorkflowName": "string",
- "vodWorkflowUuid": "string",
- "vodWorkflowComponents": {
- "contentPreparation": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "smart",
- "config": {
- "static": [
- {
- "bitrate": 0,
- "width": 0,
- "height": 0,
- "codec": "h264",
- "h264EncodingProfile": "baseline",
- "fps": 0,
- "fpsAsInput": false,
- "audio": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_he"
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "keyframeIntervalMs": 0
}
], - "cao": {
- "h264": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "fps": 0,
- "fpsAsInput": false,
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 5,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "h265": {
- "maxBitrate": 25000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 2160,
- "forceMaxResolution": false,
- "minResolution": 480,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 8,
- "minSDRenditions": 0,
- "minMaxSDBitrate": 0,
- "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
], - "keyframeIntervalMs": 0
}, - "vp9": {
- "maxBitrate": 8000,
- "minMaxBitrate": 1150,
- "minBitrate": 250,
- "maxMinBitrate": 500,
- "maxResolution": 1080,
- "forceMaxResolution": false,
- "minResolution": 240,
- "maxFPS": "auto",
- "targetQuality": 100,
- "complexityPeaksAwareness": 1,
- "minimumQualityIncrease": 0,
- "maxRenditions": 0,
- "minSDRenditions": 0,
- "renditionsSelectionMode": "default",
- "fixedResolutions": [
- "string"
], - "useInputResolutionAsOutput": true,
- "encoder": "lightflow",
- "profileBaselineLowest": true,
- "profileMain": true,
- "profileHigh": true,
- "staticRenditions": [
- {
- "value": 0,
- "resolution": 0
}
]
}, - "packaging": {
- "mp4": true,
- "mpegdash": false,
- "hls": false,
- "mss": false
}, - "aac": {
- "bitrate": 128,
- "channels": 0,
- "sampleRate": 0,
- "profile": "aac_low"
}, - "images": [
- {
- "fileNameFormat": "string",
- "fps": 0,
- "resolution": "string",
- "spriteMap": "string",
- "configFilePath": "string"
}
], - "deviceAwareOptimization": true
}, - "filters": {
- "deinterlacer": true,
- "loudnorm": true,
- "watermarks": [
- {
- "input": {
- "urlPath": "string",
- "id": "string"
}, - "config": {
- "opacity": 100,
- "width": "string",
- "height": "string",
- "top": "50",
- "bottom": "string",
- "left": "50",
- "right": "string",
- "timeRanges": [
- {
- "start": null,
- "end": null
}
]
}
}
]
}, - "inputBitrateFilter": false,
- "inputCheckIntegrity": false,
- "output": {
- "languageMap": "string"
}
}
}, - "inputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "drm": {
- "uuid": "string",
- "accountName": "string",
- "name": "string",
- "type": "string",
- "username": "string",
- "password": "string",
- "accountId": "string",
- "host": "string"
}, - "protectionSettings": {
- "mpegdash": {
- "widevine": true,
- "playread": true
}, - "hls": {
- "fairplay": true
}, - "mss": {
- "playready": true
}, - "deliveryRestrictions": {
- "enforceGeoBlock": true,
- "enforceExpiration": true
}
}, - "encoder": {
- "uuid": "string",
- "accountName": "string",
- "creationDate": "string",
- "readonly": true,
- "name": "string",
- "type": "lightflow",
- "inputUuid": "string",
- "outputUuid": "string",
- "apiKey": "string",
- "apiSecret": "string",
- "endpointURL": "string",
- "queue": "string",
- "role": "string",
- "clientId": "string",
- "clientSecret": "string",
- "accountId": "string",
- "fallbackProfileId": "string",
- "tenantId": "string",
- "client": "string",
- "key": "string",
- "subscriptionId": "string",
- "azureAccountName": "string",
- "resourceGroupName": "string",
- "token": "string"
}, - "outputStorage": {
- "uuid": "string",
- "name": "string",
- "storageId": "string",
- "storageType": "string",
- "args": [
- {
- "id": "string",
- "value": "string"
}
]
}, - "deliveryOptimization": {
- "name": "string",
- "treeObj": { }
}, - "feeds": {
- "accountName": "string",
- "uuid": "string",
- "userName": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "analytics",
- "provider": "youbora",
- "apiKey": "string",
- "feedAccountName": "string"
}, - "callbacks": [
- {
- "url": "string",
- "method": "get",
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "source": "lightflow"
}
], - "filters": {
- "deinterlacer": true,
- "loudnorm": true
}
}
}
Watch Folders allow to set up folders in which to put files that will be automatically detected and processed.
Each folder, has an associtated VoD Workflow that will be used to generate the assets.
Return a paginated list of watch folders.
pageIndex | number Pagination page index |
pageSize | number Pagination page size |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/watch-folder'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "totalItems": 0,
- "pageIndex": 0,
- "pageSize": 0,
- "pages": 0,
- "items": [
- {
- "uuid": "string",
- "accountName": "string",
- "user": { },
- "createdOn": "2019-08-24T14:15:22Z",
- "enabled": false,
- "name": "string",
- "workflowId": "string",
- "path": "string",
- "pathOnSuccess": "string",
- "pathOnFailure": "string",
- "destinationPath": "string"
}
]
}
Return the watch folder whose id is equal to {uuid}.
uuid required | string Identifier of the watch folder to be retrieved. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/watch-folder/4UVwe'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "uuid": "string",
- "accountName": "string",
- "user": { },
- "createdOn": "2019-08-24T14:15:22Z",
- "enabled": false,
- "name": "string",
- "workflowId": "string",
- "path": "string",
- "pathOnSuccess": "string",
- "pathOnFailure": "string",
- "destinationPath": "string"
}
Delete the watch folder whose id is equal to {uuid}.
uuid required | string Identifier of the watch folder to be deleted. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('DELETE', '/watch-folder/p7tUX'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
Update the watch folder whose id is equal to {uuid}.
uuid required | string Identifier of the watch folder to be updated. |
enabled | boolean Default: false If true, the watch folder is enabled and it will be watched. |
name required | string Name of the watch folder |
workflowId required | string UUID of the VOD Workflow associated with the watch folder. It has to be a workflow with an input configured. If no output is configured for the workflow, the destination path property is not required. |
path required | string Path of the folder to be watched. |
pathOnSuccess required | string Path where the successfully processed files will be moved. If not provided, input file will be just removed from its original location. |
pathOnFailure required | string Path where the files that failed at processing will be moved. |
destinationPath | string Path where the processed assets will be put. |
{- "enabled": false,
- "name": "string",
- "workflowId": "string",
- "path": "string",
- "pathOnSuccess": "string",
- "pathOnFailure": "string",
- "destinationPath": "string"
}
{- "uuid": "string",
- "accountName": "string",
- "user": { },
- "createdOn": "2019-08-24T14:15:22Z",
- "enabled": false,
- "name": "string",
- "workflowId": "string",
- "path": "string",
- "pathOnSuccess": "string",
- "pathOnFailure": "string",
- "destinationPath": "string"
}
Return quality of experience settings used to calculate quality of experience metrics
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/qoe-settings'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "username": "string",
- "accountName": "string",
- "qoeUserBandwidthMbps": 0,
- "qoeStartBufferLength": 0,
- "qoeCodificationCost": 0,
- "qoeStorageCost": 0,
- "qoeDeliveryCost": 0,
- "qoeDeliveredTimes": 0
}
Update and return quality of experience settings.
qoeUserBandwidthMbps | number Estimated average bandwidth of users consuming your assets. |
qoeStartBufferLength | number Estimated buffer length required for the playback to start. |
qoeCodificationCost | number Your encoding costs ($/min). Used for calculating estimated encoding savings. |
qoeStorageCost | number Your storage costs ($/GB). Used for calculating estimated storage savings. |
qoeDeliveryCost | number Your delivery costs ($/GB). Used for calculating estimated delivery savings. |
qoeDeliveredTimes | number In average, number of times an asset is delivered to users. |
{- "qoeUserBandwidthMbps": 0,
- "qoeStartBufferLength": 0,
- "qoeCodificationCost": 0,
- "qoeStorageCost": 0,
- "qoeDeliveryCost": 0,
- "qoeDeliveredTimes": 0
}
{- "username": "string",
- "accountName": "string",
- "qoeUserBandwidthMbps": 0,
- "qoeStartBufferLength": 0,
- "qoeCodificationCost": 0,
- "qoeStorageCost": 0,
- "qoeDeliveryCost": 0,
- "qoeDeliveredTimes": 0
}
Return usage / billing data.
from | number Beginning of period to query (Milliseconds Epoch Time). |
to | number End of period to query (Milliseconds Epoch Time). |
labels | Array of strings Set of labels to be considered for filtering. |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/usage-metrics'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "accountName": "string",
- "currency": {
- "label": "string",
- "name": "string",
- "alphabeticCode": "string"
}, - "date": 0,
- "execTimestamp": 0,
- "metrics": {
- "smartEncoding": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
], - "archiveEnrichment": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
], - "smokerDetection": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
], - "taxonomyClassifier": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
], - "faceRecognition": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
], - "notCategorized": [
- {
- "jobs": 0,
- "inputDuration": 0,
- "outputDuration": 0,
- "cost": 0
}
]
}
}
Return usage / billing data filtered by time.
timeFrame required | string A value of 'this-month', 'last-month', 'this-year' |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/usage-metrics/:timeFrame'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "metrics": {
- "smartEncoding": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
], - "archiveEnrichment": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
], - "smokerDetection": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
], - "taxonomyClassifier": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
], - "faceRecognition": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
], - "notCategorized": [
- {
- "inputDuration": 0,
- "outputDuration": 0,
- "jobs": 0,
- "usageInUSD": 0,
- "startTime": 0
}
]
}, - "aggregations": {
- "totalSecondsProcesed": 0,
- "totalSecondsAssetsDuration": 0,
- "totalJobs": 0,
- "featuresUsed": [
- "string"
]
}
}
Return the unique values of the labels used in billing data
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/usage-metrics/labels'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
[- "label1",
- "label2",
- "label3"
]
Return savings costs data, comparing LightFlow values with industry standard.
timeFrame required | string A value of 'this-month', 'last-month', 'this-year' |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/savings-metrics/:timeFrame'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "encoding": [
- {
- "savingsInUSD": 0,
- "startTime": 0
}
], - "storage": [
- {
- "savingsInUSD": 0,
- "startTime": 0
}
], - "delivery": [
- {
- "savingsInUSD": 0,
- "startTime": 0
}
]
}
Return Quality of experience metrics for the logged account.
timeFrame required | string A value of 'this-month', 'last-month', 'this-year' |
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener('readystatechange', function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open('GET', '/reports/qoe-metrics/:timeFrame'); xhr.setRequestHeader('Authorization', 'Bearer eyJh...'); xhr.setRequestHeader('Accept', 'application/json'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(data);
{- "videoQuality": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "startupTime": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "rebufferingTime": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "ebvs": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "totalSavings": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "encodingSavings": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "storageSavings": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}, - "deliverySavings": {
- "esense": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "industry": {
- "value": "string",
- "measure": "string",
- "measureLabel": "string"
}, - "improvementPercentage": "string"
}
}