Parameter | Type | Required | Description |
LiveChannelConfiguration | Container | Yes | The container that stores the configurations of the LiveChannel. Child nodes: Description, Status, and Target Parent nodes: none |
Description | String | No | The description of the LiveChannel. The description can be up to 128 bytes in length. Child nodes: none Parent nodes: LiveChannelConfiguration |
Status | Enumerated string | No | The status of the LiveChannel. Child nodes: none Parent nodes: LiveChannelConfiguration Valid values: enabled and disabled Default value: enabled |
Target | Container | Yes | The container that stores the configurations used by the LiveChannel to store uploaded data. Child nodes: Type, FragDuration, FragCount, and PlaylistName Parent nodes: LiveChannelConfiguration |
Type | Enumerated string | Yes | The format in which the LiveChannel stores uploaded data. Child nodes: none Parent nodes: Target Valid value: HLS Note When you set the value of Type to HLS, Object Storage Service (OSS) updates the m3u8 file each time when a ts file is generated. The maximum number of the latest ts files that can be included in the m3u8 file is specified by the FragCount parameter. When you set the value of Type to HLS and the duration of the audio and video data written to the current ts file exceeds the duration specified by FragDuration, OSS switches to the next ts file to write data before the next key frame is received. If OSS does not receive the next key frame after max(2*FragDuration, 60s), OSS forcibly switches to the next ts file. In this case, stuttering may occur during the playback of the stream.
|
FragDuration | String | No | The duration of each ts file when you set the value of Type to HLS. Unit: seconds Child nodes: none Parent nodes: Target Valid values: [1, 100] Default value: 5 Note If you do not specify values for the FragDuration and FragCount parameters, the default values of the two parameters are used. You must specify the FragDuration and FragCount parameters at the same time. |
FragCount | String | No | The number of ts files included in the m3u8 file when the value of Type is HLS. Child nodes: none Parent nodes: Target Valid values: [1, 100] Default value: 3 Note If you do not specify values for the FragDuration and FragCount parameters, the default values of the two parameters are used. You must specify the FragDuration and FragCount parameters at the same time. |
PlaylistName | String | No | The name of the generated m3u8 file when the value of Type is HLS. The name must be 6 to 128 bytes in length. The name must end with .m3u8. Child nodes: none Parent nodes: Target Default value: playlist.m3u8 |
Snapshot | Container | No | The container that stores the options of the high-frequency snapshot operations. Child nodes: RoleName, DestBucket, NotifyTopic, and Interval Parent nodes: LiveChannelConfiguration |
RoleName | String | No | The name of the role used to perform high-frequency snapshot operations. The role must have the write permissions on DestBucket and the permissions to send messages to NotifyTopic. Child nodes: none Parent nodes: Snapshot |
DestBucket | String | No | The bucket that stores the results of high-frequency snapshot operations. The bucket must belong to the same owner as the current bucket. Child nodes: none Parent nodes: Snapshot |
NotifyTopic | String | No | The MNS topic used to notify users of the results of high-frequency snapshot operations. Child nodes: none Parent nodes: Snapshot |
Interval | NUMERIC | Yes | The interval of high-frequency snapshot operations. If no key frame, such as an inline frame, exists within the interval, no snapshot is captured. Unit: seconds Child nodes: none Parent nodes: Snapshot Valid values: [1, 100] By default, this parameter is left empty. |