Creates a VOD packaging configuration.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ice:CreateVodPackagingConfiguration | create | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| GroupName | string | No | The name of the packaging group. The name can be up to 128 characters in length. Letters, digits, underscores (_), and hyphens (-) are supported. | vod_hls |
| ConfigurationName | string | No | The name of the packaging configuration. The name must be unique in an account and can be 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. The name can be up to 128 characters in length. Letters, digits, underscores (_), and hyphens (-) are supported. | index |
| SegmentDuration | long | 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 settings of stream selection. | |
| MinVideoBitsPerSecond | long | No | The minimum bitrate of the video stream. Unit: bit/s. | 100000 |
| MaxVideoBitsPerSecond | long | 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 settings of digital rights management (DRM) encryption. | |
| 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 that is used with the key for encrypting data blocks. If you leave this parameter empty, MediaPackage creates a constant initialization vector (IV). If it is specified, the value is passed to the DRM service. | 00001111222233334444555566667777 |
| SystemIds | array | No | The ID of the DRM system. The maximum number of system IDs allowed is determined by the protocol type. Limits:
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 parameters
Examples
Sample success responses
JSONformat
{
"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
For a list of error codes, visit the Service error codes.
