您可以將VOD內容中的時間間隔指定為廣告插播。
localTime
中begin
和end
之間的TimeRanges
將在時間軸中標籤為AdBreak
。 其他廣告設定會被忽略。
如果您只想將內容中的特定範圍標示為廣告,而無動態廣告插入,請建立CustomRangeMetadata
例項,並指定類型為具有已定義自訂範圍的MARK
作業。
標籤範圍:
{
"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"
}