16 November 2015 - DAI hls ad breaks
about 9 years ago by Encoding.com Product Team
Added ability to add ad breaks to advanced_hls output format.
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<output>advanced_hls</output>
<stream>
<!-- stream params -->
</stream>
<!-- multiple ad_breaks may be included -->
<ad_break>
<start>[StartTime]</start>
<duration>[BreakDuration]</duration>
<drop_segments>[yes|no]</drop_segments>
</ad_break>
<ad_break>
<!-- ad_break params -->
</ad_break>
<!-- Format fields -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "advanced_hls",
"stream": " ",
"ad_break": [
{
"start": "[StartTime]",
"duration": "[BreakDuration]",
"drop_segments": "[yes|no]"
}
]
}
}
}
Field Name | Description | Allowed Values | Default Values |
---|---|---|---|
Ad breaks params | |||
start | Start ad break time in sec. | non-negative integer number | |
duration | Ad break duration in sec. | non-negative integer number | |
drop_segments | Whether to drop segments while break(skip original content while break) | yes, no |