Creates a VOD packaging configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateVodPackagingConfiguration |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupName |
string |
No |
The name of the packaging group, up to 128 characters in length. Letters, digits, underscores (_), and hyphens (-) are supported. |
vod_hls |
| ConfigurationName |
string |
No |
The name of the packaging configuration. Must be unique within an account and up to 128 characters in length. Letters, digits, underscores (_), and hyphens (-) are supported. |
hls_3s |
| Protocol |
string |
No |
The package type.
|
HLS |
| Description |
string |
No |
The description of the packaging configuration. |
HLS 3s vod packaging |
| PackageConfig |
object |
No |
The packaging configuration. |
|
| ManifestName |
string |
No |
The manifest name, up to 128 characters in length. Letters, digits, underscores (_), and hyphens (-) are supported. |
index |
| SegmentDuration |
integer |
No |
The duration of each segment in a packaged stream. Unit: seconds. MediaPackage rounds segments to the nearest multiple of the input segment duration. Valid values: 1 to 30. |
6 |
| StreamSelection |
object |
No |
The stream selection settings. |
|
| MinVideoBitsPerSecond |
integer |
No |
The minimum bitrate of the video stream. Unit: bit/s. |
100000 |
| MaxVideoBitsPerSecond |
integer |
No |
The maximum bitrate of the video stream. Unit: bit/s. |
1000000000 |
| StreamOrder |
string |
No |
The order of manifest files in the master playlist. Valid values:
|
ORIGINAL |
| DrmProvider |
object |
No |
The digital rights management (DRM) encryption settings. |
|
| EncryptionMethod |
string |
No |
The encryption method. Valid values:
|
AES_128 |
| IV |
string |
No |
A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting data blocks. If not specified, MediaPackage creates a constant initialization vector (IV). If specified, the value is passed to the DRM service. |
00001111222233334444555566667777 |
| SystemIds |
array |
No |
The DRM system ID. The maximum number of system IDs depends on the protocol type:
Apple FairPlay, Google Widevine, and Microsoft PlayReady are supported. Their system IDs are as follows:
|
|
|
string |
No |
The ID of the DRM system. |
94ce86fb-07ff-4f43-adb8-93d2fa968ca2 |
|
| Url |
string |
No |
The URL of the DRM key provider. |
https://***drm***/getcontent |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| PackagingConfiguration |
VodPackagingConfiguration |
The packaging configuration. |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"PackagingConfiguration": {
"GroupName": "",
"Description": "",
"CreateTime": "",
"ConfigurationName": "",
"Protocol": "",
"PackageConfig": {
"ManifestName": "",
"StreamSelection": {
"MinVideoBitsPerSecond": 0,
"StreamOrder": "",
"MaxVideoBitsPerSecond": 0
},
"DrmProvider": {
"SystemIds": [
""
],
"EncryptionMethod": "",
"IV": "",
"Url": ""
},
"SegmentDuration": 0
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.