Automatic Ad Breaks

🚧

Note

This feature is only available for advanced_hls, fmp4_hls, advanced_dash, and advanced_fmp4 output formats.

To create automatic ad breaks you can use our multijob feature.

Each (<source /> parameter) will be converted to program segments in output, and an ad marker placed between each.
For Dash manifests you will need to set <multijob_workflow /> parameter to yes.
For HLS manifests you will need to set <ad_break /> parameter to auto.

    <?xml version="1.0"?>
    <query>
        <userid>[UserID]</userid> <!-- required-->
        <userkey>[UserKey]</userkey> <!-- required-->
        <action>[Action]</action> <!-- required-->
        <source>[SourceSegment][SegmentDuration]</source>
        <!-- Multiple source segments -->
        <source>[SourceSegment][SegmentDuration]</source>
        <multijob_workflow>[yes|no]</multijob_workflow>
        <format>
            <output>[advanced_hls|fmp4_hls|advanced_dash|advanced_fmp4]</output> <!-- required-->
          	<ad_break>auto</ad_break> <!-- needed only for HLS manifests -->
        </format>
    </query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "source": [
            "[SourceSegment][SegmentDuration]",
            "[SourceSegment][SegmentDuration]"
        ],
        "multijob_workflow": "[yes|no]",
        "format": {
            "output": "[advanced_hls|fmp4_hls|advanced_dash]",
            "ad_break": "auto"
        }
    }
}