標籤範圍

上次更新: 2023-09-21

您可以在VOD內容中將時間間隔指定為廣告插播。

在這種情況下, TimeRanges 介於 beginendlocalTime 將標示為 AdBreak 在時間軸中。 其他廣告設定則會被忽略。

注意

如果您只想將內容中的某些範圍標示為廣告(沒有動態廣告插入),請建立 CustomRangeMetadata 執行個體,並將型別指定為具有已定義自訂範圍的MARK作業。

  1. 標示範圍。

    {
        "properties": [],
        "stream": {
            "manifests": [ {
                "url": "https://d398890tia84ty.cloudfront.net/e2e-vod/cloudfront_vod_hls_tos_30fps.m3u8",
                "type": "hls"
            } ],
            "metadata": {
                "time-ranges": {
                    "type": "mark",
                    "adjust-seek-position" : true,
                    "time-range-list": [ {
                        "begin": 0,
                        "end": 15000
                     },
                     {
                         "begin": 69000,
                         "end": 99000
                     },
                     {
                         "begin": 251000,
                         "end": 281000
                     },
                     {
                         "begin": 514000,
                         "end": 544000
                     } ]
                }
            }
        },
        "title": "VOD - MARK TimeRanges and no ads",
        "thumbnail": {
            "large": "https://example.com",
            "small": "https://example.com"
           },
        "type": "vod",
        "id": "vod_004"
    }
    

此頁面上的