Download OpenAPI specification:Download
ByteArk Stream APIs Specification (OpenAPI)
การเริ่มต้นใช้งาน ByteArk Stream
วิธีการสร้างและจัดการโปรเจ็ค Project
List exist jobs in video
videoKey required | string Example: SWhMaRylfmt7 Video key string |
[- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": false,
- "formatType": "hls",
- "tracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enable": true,
- "resolutionType": "default",
- "jobs": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "status": "pending",
- "progress": 0,
- "retryCount": 0,
- "isLatestRetry": true,
- "failureResolution": null,
- "failedReason": null,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "startedAt": "2020-03-30T04:50:20.635Z",
- "stoppedAt": "2020-03-30T04:50:20.635Z",
- "expiredAt": "2020-03-30T04:50:20.635Z",
- "payload": {
- "type": "video",
- "videoId": "5e817a8cecb9cf0228467837",
- "trackKey": "S0G9uJdc",
- "profileKey": "S0G9uJdN"
}
}
]
}
]
}
]
List exist videos
projectKey | string project key string |
q | string title of video |
tagIds | string Example: tagIds=60fa7fd128ad1347f591b3b5,60fa7fd128ad1347f591b3b4 tagIds of video |
page | number Number of the page for the pagination |
limit | number Number of the items in the response |
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": null,
- "size": null,
- "allowUpscale": null,
- "allowSourceHaveNoVideo": null
}, - "frameRateControl": {
- "maxFrameRate": null
}, - "videoCodecOptions": {
- "type": null,
- "profile": null,
- "crf": null,
- "targetBitRateKbps": null,
- "maxBitRateKbps": null
}, - "pathPatternOptions": {
- "primaryFilenamePattern": null,
- "storagePathPrefixPattern": null
}, - "keyServer": {
- "id": null,
- "keyServerName": null,
- "teamNamespace": null,
- "status": null,
- "encoderSecret": null,
- "encryptionKeyRequestTokenSecret": null,
- "createdById": null,
- "encryption": { },
- "updatedById": null,
- "createdAt": null,
- "updatedAt": null
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": null,
- "bitRateKbps": null,
- "sampleRate": null,
- "channels": null
}, - "pathPatternOptions": {
- "primaryFilenamePattern": null,
- "storagePathPrefixPattern": null
}, - "keyServer": {
- "id": null,
- "keyServerName": null,
- "teamNamespace": null,
- "status": null,
- "encoderSecret": null,
- "encryptionKeyRequestTokenSecret": null,
- "createdById": null,
- "encryption": { },
- "updatedById": null,
- "createdAt": null,
- "updatedAt": null
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
]
}
สร้างวิดีโอสำหรับการรับชมแบบออนดีมานด์
projectKey required | string โปรเจ็กต์ที่ต้องการสร้างวิดีโอ |
presetId | string presetId ที่ต้องการใช้กับวิดีโอ |
required | Array of objects List ข้อมูลเบื้องต้นของวิดีโอที่ต้องการสร้าง |
{- "projectKey": "tsetst-7o8d35",
- "presetId": "60de850ca05d52b33910491f",
- "videos": [
- {
- "title": "I tried so hard and got so far",
- "tags": [
- {
- "name": "TagExample"
}
], - "geoblockPolicy": {
- "type": "customRule",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}
}
]
}
[- {
- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": null,
- "playbackEncryptionKeyRequestApiEndpoint": null,
- "type": null
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": null,
- "playbackEncryptionKeyRequestApiEndpoint": null,
- "type": null
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
]
Show exist video
videoKey required | string Example: SWhMaRylfmt7 Video key string |
{- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
Update video detail
videoKey required | string Example: SWhMaRylfmt7 Video key string |
title required | string |
subtitle | string |
description | string |
object | |
Array of objects | |
GeoblockPolicyCustomRule (object) or GeoblockPolicyExistingRule (object) |
{- "title": "TestVideo.mp4",
- "subtitle": "Subtitle Example",
- "description": "Description Example",
- "coverImage": {
- "mediaServerType": "imgproxy",
- "sizes": {
- "small": "/url/to/image",
- "mediam": "/url/to/image",
- "large": "/url/to/image"
}
}, - "tags": [
- {
- "name": "TagExample"
}
], - "geoblockPolicy": {
- "type": "customRule",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}
}
{- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
อัปโหลดไฟล์วิดีโอไปยัง video key ที่กำหนด
videoKey required | string Example: SWhMaRylfmt7 Video key string |
file required | string <binary> ไฟล์ที่ต้องการอัปโหลด |
{- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
List VOD Revision
videoKey required | string Example: SWhMaRylfmt7 Video key string |
[- {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}
]
Set VOD Revision
videoKey required | string Example: SWhMaRylfmt7 Video key string |
{- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
List exist jobs in video from current revision key
videoKey required | string Example: SWhMaRylfmt7 Video key string |
[- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": false,
- "formatType": "hls",
- "tracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enable": true,
- "resolutionType": "default",
- "jobs": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "status": "pending",
- "progress": 0,
- "retryCount": 0,
- "isLatestRetry": true,
- "failureResolution": null,
- "failedReason": null,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "startedAt": "2020-03-30T04:50:20.635Z",
- "stoppedAt": "2020-03-30T04:50:20.635Z",
- "expiredAt": "2020-03-30T04:50:20.635Z",
- "payload": {
- "type": "video",
- "videoId": "5e817a8cecb9cf0228467837",
- "trackKey": "S0G9uJdc",
- "profileKey": "S0G9uJdN"
}
}
]
}
]
}
]
Restore deleted video
videoKey required | string Example: SWhMaRylfmt7 Video key string |
{- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4",
- "vod": {
- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}, - "creator": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "videoTimemachineId": "5f62e36e211aef111068f288",
- "videoTimemachine": {
- "id": "5e817a8cecb9cf0228467837",
- "videoId": "5e817a8cecb9cf0228467832",
- "liveEndedAt": "2020-03-30T04:50:20.635Z",
- "timemachineURL": "string",
- "liveStartedAt": "2020-03-30T06:50:20.635Z",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "geoblockPolicy": {
- "type": "existingRule",
- "ruleId": "5e817a8cecb9cf0228467837",
- "name": "string",
- "appliedRule": {
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}, - "customFields": {
- "property1": "string",
- "property2": "string"
}, - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEnries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "simpleCustomImageEnries": [
- {
- "originalFileUrl": "path/to/original-image-file",
- "defaultUrl": "path/to/image",
- "customImageFieldId": "624410418e785d20d2275740",
- "customImageFieldName": "logo_16_9"
}
]
}
Show VOD Revision
videoKey required | string Example: SWhMaRylfmt7 Video key string |
revisionKey required | string Example: SZdkKi0Dv6d9 Video revision key |
{- "sourceId": "5e817a8cecb9cf0228467838",
- "hostingId": "5e817a8cecb9cf0228467838",
- "storageId": "5e817a8cecb9cf0228467838",
- "presetId": "5e817a8cecb9cf02284678ea",
- "processingInfo": {
- "state": "sourceWaiting",
- "totalCompletedOutputs": 0,
- "totalExpectedOutputs": 0
}, - "videoKey": "string",
- "revisionKey": "string",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "sourceAvailabledAt": "2020-03-30T04:50:34.121Z",
- "createdAt": "2020-03-30T04:50:20.652Z",
- "updatedAt": "2020-03-30T04:50:20.652Z",
- "source": {
- "id": "5e817a8cecb9cf0228467838",
- "type": "mp4",
- "fileName": "file.mp4",
- "path": "/R/u/RuguHtZPJYm4.mp4",
- "size": 110371096,
- "duration": 492,
- "width": 1280,
- "height": 720,
- "displayAspectRatio": "16:9",
- "frameRate": "25/1",
- "videoCodec": "mp4",
- "audioCodec": "aac",
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z",
- "submittedAt": "2020-03-30T04:50:34.121Z",
- "probeStartedAt": "2020-03-30T04:50:34.121Z",
- "probeCompletedAt": "2020-03-30T04:50:34.121Z",
- "probeErrorType": 1,
- "probeErrorMessage": "error error error",
- "probeDetail": "string",
- "snapshotStartedAt": "2020-03-30T04:50:34.121Z",
- "snapshotCompletedAt": "2020-03-30T04:50:34.121Z",
- "snapshotErrorType": 1,
- "snapshotErrorDetail": "error error error",
- "fileDeletedAt": "2020-03-31T04:50:34.121Z"
}, - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "captions": [
- {
- "customName": "string",
- "groupId": "string",
- "languageCode": "string",
- "key": "string",
- "videoId": "string",
- "storageId": "string",
- "primaryFileName": "string",
- "path": "string",
- "characteristicEntries": "string"
}
], - "outputs": [
- {
- "type": "string",
- "videoKey": "string",
- "formatType": "string",
- "jobId": "string",
- "videoId": "string",
- "storageId": "string",
- "trackKey": "string",
- "path": "string",
- "name": "string",
- "version": "string",
- "size": "string",
- "resolutionType": "string",
- "width": "string",
- "height": "string",
- "displayAspectRatio": "string",
- "frameRate": "string",
- "audioGroupId": "string",
- "storage": {
- "id": "string",
- "storageTierKey": "nearline"
}
}
]
}
List exist jobs in video from revision key
videoKey required | string Example: SWhMaRylfmt7 Video key string |
revisionKey required | string Example: SZdkKi0Dv6d9 Video revision key |
[- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": false,
- "formatType": "hls",
- "tracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enable": true,
- "resolutionType": "default",
- "jobs": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "status": "pending",
- "progress": 0,
- "retryCount": 0,
- "isLatestRetry": true,
- "failureResolution": null,
- "failedReason": null,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "startedAt": "2020-03-30T04:50:20.635Z",
- "stoppedAt": "2020-03-30T04:50:20.635Z",
- "expiredAt": "2020-03-30T04:50:20.635Z",
- "payload": {
- "type": "video",
- "videoId": "5e817a8cecb9cf0228467837",
- "trackKey": "S0G9uJdc",
- "profileKey": "S0G9uJdN"
}
}
]
}
]
}
]
Create new video Tag
projectKey required | string Example: byteark-staging-123456 Project key |
name required | string |
[- {
- "name": "movie"
}
]
[- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
List exist video Tag
projectKey required | string Example: byteark-staging-123456 Project key |
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}
Create new project
name required | string |
key required | string^[a-z0-9]{3,}[a-z0-9-]*-[a-z0-9]{6}$ Project key สำหรับเรียกใช้งาน |
description | string |
Array of objects (NewMembership) >= 0 items กำหนดรายช่ือสมาชิกในทีมที่สามารถเข้าถึงโปรเจ็กต์ (ผู้สร้างโปรเจ็กต์จะถูกเพิ่มในรายชื่อโดยอัตโนมัติ) | |
ProjectNewHosting (object) or ProjectExistingHosting (object) | |
required | ProjectNewPreset (object) or ProjectExistingPreset (object) |
ProjectNewPlaybackChannel (object) or ProjectExistingPlaybackChannel (object) กำหนดช่องทางการเผยแพร่การรับชม | |
ProjectNewGeoblock (object) or ProjectExistingGeoblock (object) กำหนดการตั้งค่า Geo-blocking |
{- "name": "string",
- "key": "mynamespace-sample-project-a23da1",
- "description": "string",
- "memberships": [
- {
- "projectRole": "admin",
- "account": {
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "user@byteark.com",
- "username": "byteark/user@byteark.com",
- "role": "manager",
- "isBot": true,
- "displayImage": { }
}
}
], - "hosting": {
- "hostingSourceType": "newHosting",
- "hostingDomainPrefix": "string"
}, - "preset": {
- "presetSourceType": "newPreset",
- "name": "HLS up to 1080p",
- "profiles": [
- {
- "name": "HLS",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "name": "1080p",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "keyServer": {
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "name": "1080p",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "keyServer": {
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "enableBitRatePrediction": false
}, - "playbackChannel": {
- "playbackChannelSourceType": "newPlaybackChannel",
- "name": "for_production"
}, - "geoblockRule": {
- "geoblockSourceType": "newGeoblock",
- "name": "Allow From TH",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
}
{- "name": "ByteArk",
- "description": "string",
- "key": "byteark-123fqasdf",
- "teamNamespace": "byteark",
- "creatorId": "5f2906c4d9c2cc002333f742",
- "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z",
- "deletedAt": "2019-12-26T09:43:57.032Z",
- "geoblockRuleId": "5e817a8cecb9cf0228467837",
- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "playerId": "5f3cd3e92d87cd167aede980",
- "primaryPlaybackChannelId": "string",
- "playbackChannelIds": [
- "string"
], - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "geoblockRule": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}, - "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isDefault": true,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "primaryPlaybackChannel": {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}, - "playbackChannels": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
], - "currentJobQueueKey": "RuguHtZPJYm4",
- "currentJobQueue": {
- "key": "RuguHtZPJYm4",
- "name": "on-premise-encoder-queue",
- "isSystemDefaultQueue": false
}
}
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "name": "ByteArk",
- "description": "string",
- "key": "byteark-123fqasdf",
- "teamNamespace": "byteark",
- "creatorId": "5f2906c4d9c2cc002333f742",
- "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z",
- "deletedAt": "2019-12-26T09:43:57.032Z",
- "geoblockRuleId": "5e817a8cecb9cf0228467837",
- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "playerId": "5f3cd3e92d87cd167aede980",
- "primaryPlaybackChannelId": "string",
- "playbackChannelIds": [
- "string"
], - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": null,
- "playbackEncryptionKeyRequestApiEndpoint": null,
- "type": null
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": null,
- "playbackEncryptionKeyRequestApiEndpoint": null,
- "type": null
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "geoblockRule": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}, - "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isDefault": true,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "primaryPlaybackChannel": {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}, - "playbackChannels": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
], - "currentJobQueueKey": "RuguHtZPJYm4",
- "currentJobQueue": {
- "key": "RuguHtZPJYm4",
- "name": "on-premise-encoder-queue",
- "isSystemDefaultQueue": false
}
}
]
}
Show exist project
projectKey required | string Example: byteark-staging-123456 Project key |
{- "name": "ByteArk",
- "description": "string",
- "key": "byteark-123fqasdf",
- "teamNamespace": "byteark",
- "creatorId": "5f2906c4d9c2cc002333f742",
- "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z",
- "deletedAt": "2019-12-26T09:43:57.032Z",
- "geoblockRuleId": "5e817a8cecb9cf0228467837",
- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "playerId": "5f3cd3e92d87cd167aede980",
- "primaryPlaybackChannelId": "string",
- "playbackChannelIds": [
- "string"
], - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "geoblockRule": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}, - "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isDefault": true,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "primaryPlaybackChannel": {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}, - "playbackChannels": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
], - "currentJobQueueKey": "RuguHtZPJYm4",
- "currentJobQueue": {
- "key": "RuguHtZPJYm4",
- "name": "on-premise-encoder-queue",
- "isSystemDefaultQueue": false
}
}
Update project
projectKey required | string Example: byteark-staging-123456 Project key |
name required | string Project name |
description | string |
presetId | string Preset id ที่ต้องการเปลี่ยนมาใช้งาน (มีผลกับวิดีโอใหม่เท่านั้น) |
geoblockRuleId | string Geoblock rule id ที่ต้องการเปลี่ยนมาใช้งาน (มีผลกับวิดีโอใหม่เท่านั้น) |
playerId | string Player id ที่ต้องการเปลี่ยนมาใช้งาน (มีผลย้อนหลังทุกวิดีโอใน Project) |
storageTierKey | string Enum: "standard" "nearline" "standard_2_sites" storage tier key for updated video in project |
{- "name": "Name Example",
- "description": "Description Example",
- "presetId": "string",
- "geoblockRuleId": "5e817a8cecb9cf0228467837",
- "playerId": "5e817a8cecb9cf0228467837",
- "storageTierKey": "nearline"
}
{- "name": "ByteArk",
- "description": "string",
- "key": "byteark-123fqasdf",
- "teamNamespace": "byteark",
- "creatorId": "5f2906c4d9c2cc002333f742",
- "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z",
- "deletedAt": "2019-12-26T09:43:57.032Z",
- "geoblockRuleId": "5e817a8cecb9cf0228467837",
- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "playerId": "5f3cd3e92d87cd167aede980",
- "primaryPlaybackChannelId": "string",
- "playbackChannelIds": [
- "string"
], - "hosting": {
- "id": "string",
- "name": "string",
- "teamNamespace": "string",
- "activeStorageId": "string",
- "activeStorage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}, - "linkedStorages": [
- {
- "storageId": "string",
- "linkedAt": "string",
- "storage": {
- "id": "string",
- "name": "string",
- "bucket": "string",
- "teamNamespace": "string",
- "storageType": "amazon-s3",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "acl": "public-read"
}
}
], - "domainId": "string",
- "domain": {
- "id": "string",
- "teamNamespace": "string",
- "name": "string",
- "type": "standard",
- "domain": "string",
- "accessKeyId": "string",
- "secretAccessKey": "string",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
}, - "preset": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}, - "geoblockRule": {
- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}, - "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isDefault": true,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "primaryPlaybackChannel": {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}, - "playbackChannels": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
], - "currentJobQueueKey": "RuguHtZPJYm4",
- "currentJobQueue": {
- "key": "RuguHtZPJYm4",
- "name": "on-premise-encoder-queue",
- "isSystemDefaultQueue": false
}
}
Show memberships in project
projectKey required | string Example: byteark-staging-123456 Project key |
{- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Add new memberships to project
projectKey required | string Example: byteark-staging-123456 Project key |
Array of objects (NewMembership) |
{- "memberships": [
- {
- "projectRole": "admin",
- "account": {
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "user@byteark.com",
- "username": "byteark/user@byteark.com",
- "role": "manager",
- "isBot": true,
- "displayImage": { }
}
}
]
}
{- "memberships": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Update role of membership
projectKey required | string Example: byteark-staging-123456 Project key |
accountId required | string Example: 5e8da15216511941396124e4 |
projectRole required | string Enum: "admin" "uploader" "viewer" |
{- "projectRole": "uploader"
}
{- "membership": [
- {
- "accountId": "5e7dac065ca55e01b2a976cb",
- "projectRole": "admin",
- "addedById": "string",
- "addedAt": "2019-08-24T14:15:22Z",
- "account": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "addedBy": {
- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
{- "id": "string",
- "bytearkAccountUserId": 123,
- "name": "ByteArk User",
- "email": "byteark-user@inox.co.th",
- "username": "byteark/user@byteark.com",
- "lang": "th",
- "role": "manager",
- "isBot": true,
- "displayImage": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "team": {
- "id": 123,
- "name": "INOX",
- "namespace": "inox"
}
}
List existing collections in project
projectKey required | string Example: byteark-staging-123456 Project key |
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "string",
- "collectionTypeId": "string",
- "name": "Sample Collection",
- "excerpt": "This is a sample collection",
- "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEntries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}
Show existing collection within a project, with videos inside
projectKey required | string Example: byteark-staging-123456 Project key |
collectionId required | string Example: 5e817a8cecb9cf0228467837 |
{- "id": "string",
- "collectionTypeId": "string",
- "name": "Sample Collection",
- "excerpt": "This is a sample collection",
- "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "customFieldEntries": [
- {
- "name": "program_type",
- "textValue": "string",
- "switchValue": true,
- "numberValue": 0,
- "dateTimeValue": "string",
- "labelsValue": [
- {
- "name": "program_type"
}
]
}
], - "customImageEntries": [
- {
- "mediaServerType": "resizableImage",
- "path": "/custom-images/project-key/customImageFieldName/fileName.extention",
- "imageStorageName": "storageName",
- "customImageFieldName": "logo_16_9",
- "fileName": "Piesjg.png",
- "customImageFieldId": "623d498d6de8f01cc78d5a3d",
- "parentKey": "SxXuAM2QgU8D",
- "projectKey": "sample-project-key"
}
], - "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "itemLists": [
- {
- "videoCounts": 1,
- "videos": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "key": "RuguHtZPJYm4",
- "title": "test-video1",
- "subtitle": "awesome movie you'll never seen before",
- "duration": 60.1,
- "tagIds": [
- "5e817a8cecb9cf0228463482"
], - "tags": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "movie",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
], - "coverImage": {
- "mediaServerType": "imgproxy",
- "size": { }
}, - "projectId": "5e817a56ecb9cf0228467836",
- "creatorId": "5e81789f5c6dfc0033beb9d3",
- "qoderProjectId": 0,
- "qoderVideoId": 0,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "playable": false,
- "playableAt": "2020-03-30T04:50:34.122Z",
- "playerId": "5f62e36e211aef111068f287",
- "player": {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}, - "primaryPlaybackChannelId": "6087aa53cd7df70e44249807",
- "primaryPlaybackUrl": {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}, - "playbackChannelIds": [
- "6087aa53cd7df70e44249807"
], - "playbackUrls": [
- {
- "name": "thisisplayback1",
- "hls": [
], - "mp4Playlist": [
]
}
], - "embeddedUrl": "stream-playlist.stream.byteark.com/players/5f62e36e211aef111068f287/videos/RuguHtZPJYm4"
}
]
}
]
}
Show video snapshot
videoKey required | string Example: SWhMaRylfmt7 Video key string |
[- {
- "id": "5e817a8cecb9cf0228467838",
- "index": 0,
- "teamNamespace": "team",
- "mediaServerType": "imgproxy",
- "size": { },
- "createdAt": "2020-03-30T04:50:20.644Z",
- "updatedAt": "2020-03-30T04:50:20.644Z"
}
]
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}
]
}
[- {
- "id": "5ecb976e2a5b6303e8f55525",
- "name": "HLS",
- "type": "hls"
}
]
[- {
- "id": "5ecb976e2a5b6303e8f55525",
- "name": "H264",
- "type": "h264",
- "mediaType": "video"
}
]
[- {
- "name": "1080p",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}
}
]
Show exist preset
presetId required | string Example: 5e817a8cecb9cf0228467837 |
{- "id": "5e817a8cecb9cf0228467837",
- "name": "HLS only",
- "key": "S0G9uJaV",
- "teamNamespace": "inox",
- "isTeamDefault": true,
- "isGlobalDefault": false,
- "editable": true,
- "enableBitRatePrediction": false,
- "profiles": [
- {
- "id": "5e817a8cecb9cf022846783d",
- "name": "HLS",
- "key": "S0G9uJdN",
- "enabled": true,
- "audioVariantType": "manual",
- "audioTrackEncodeMode": "non-seperate-audio",
- "audioVariants": [
- {
- "name": "string",
- "key": "string",
- "languageCode": "string",
- "characteristic": "string"
}
], - "hlsOptions": {
- "segmentTargetDuration": 6
}, - "formatType": "hls",
- "encryption": {
- "isEnableVideoEncryption": true,
- "keyServerId": "5e817a8cecb9cf022846783c"
}, - "videoTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "type": "video",
- "resolutionType": "default",
- "resolutionControl": {
- "type": "scaleByShorterSide",
- "size": 1080,
- "allowUpscale": false,
- "allowSourceHaveNoVideo": false
}, - "frameRateControl": {
- "maxFrameRate": 30
}, - "videoCodecOptions": {
- "type": "h264",
- "profile": "main",
- "crf": 21,
- "targetBitRateKbps": 2000,
- "maxBitRateKbps": 4000
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}, - "audioTrackKey": "string"
}
], - "audioTracks": [
- {
- "id": "5e817a8cecb9cf022846783c",
- "name": "1080p",
- "key": "S0G9uJdc",
- "enabled": true,
- "audioCodecOptions": {
- "type": "acc",
- "bitRateKbps": 128,
- "sampleRate": 44100,
- "channels": 2
}, - "pathPatternOptions": {
- "primaryFilenamePattern": "prog_index.m3u8",
- "storagePathPrefixPattern": "assets/{bucket}/media/{projectKey}/{videoKey3Levels}/{videoKey}/{formatType}/{trackKey}/{resolution}/"
}, - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "keyServer": {
- "id": "5e817a8cecb9cf0228467837",
- "keyServerName": "test keyServer",
- "teamNamespace": "inox",
- "status": "active",
- "encoderSecret": "string",
- "encryptionKeyRequestTokenSecret": "string",
- "createdById": "string",
- "encryption": {
- "encodingEncryptionKeyRequestApiEndpoint": "string",
- "playbackEncryptionKeyRequestApiEndpoint": "string",
- "type": "clearkey"
}, - "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
}
], - "createdAt": "2019-12-26T09:43:57.032Z",
- "updatedAt": "2019-12-26T09:43:57.032Z"
}
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
]
}
Show playback channel
playbackChannelId required | string Playback Channel ID |
{- "id": "5f3cd3e92d87cd167aede980",
- "teamNamespace": "byteark",
- "defaultPlaybackDomain": "string",
- "playbackDomains": [
- "string"
], - "signedUrl": {
- "required": false,
- "urlSigningKeyIds": [
- "string"
], - "urlSigningKeys": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "keyId": "test-SF9bdeadwSAuS0k2",
- "teamNamespace": "inox",
- "keySecret": "string",
- "revoked": true,
- "createdById": "string",
- "updatedById": "string",
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z"
}
]
}, - "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}, - "allowPreview": true,
- "isTeamDefault": false
}
List exist geoblockRule of team including default geoblockRule
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
]
}
Show exist geoblockRule
geoblockRuleId required | string Example: 5e817a8cecb9cf0228467837 Geoblock rule ID |
{- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
Update GeoblockRule
geoblockRuleId required | string Example: 5e817a8cecb9cf0228467837 Geoblock rule ID |
name required | string |
allowCountryCodes required | Array of strings >= 0 items ระบุประเทศที่อนุญาตให้รับชม โดยใช้รหัสประเทศ 2 ตัว จาก API List Country |
denyCountryCodes required | Array of strings >= 0 items ระบุประเทศที่ไม่อนุญาตให้รับชม โดยใช้รหัสประเทศ 2 ตัว จาก API List Country |
{- "name": "Allow From TH",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
{- "id": "5e817a8cecb9cf0228467837",
- "name": "test geoblock",
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "isGlobalDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "allowCountryCodes": [
- "TH"
], - "denyCountryCodes": [ ]
}
[- {
- "countryNameTH": "ประเทศไทย",
- "countryNameEN": "Thailand",
- "countryCode": "TH"
}
]
{- "total": 1,
- "from": 1,
- "to": 1,
- "currentPage": 1,
- "lastPage": 1,
- "perPage": 20,
- "data": [
- {
- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}
]
}
Show exist player
playerId required | string Example: 5f3cd3e92d87cd167aede980 |
{- "id": "5f3cd3e92d87cd167aede980",
- "name": "test player",
- "options": { },
- "teamNamespace": "inox",
- "isTeamDefault": false,
- "createdAt": "2020-03-30T04:50:20.635Z",
- "updatedAt": "2020-03-30T04:50:34.122Z",
- "accessControlPolicy": {
- "allowDomains": [
- "my-domain1.com",
- "sub.my-domain2.com"
], - "denyDomains": [
- "block-domain.com"
]
}
}