您可以使用TVSDK設定檔案(AdobeTVSDKConfig.json)來更新VAST/VMAP回應上的廣告創意選擇優先順序。 您也可以使用此設定檔來定義廣告創意的來源URL轉換規則。
當您的視訊播放器向廣告伺服器提出請求時,VAST/VMAP回應通常包含多個廣告創意( MediaFile
元素),每個元素都會提供不同容器轉碼器版本的URL。 在某些情況下,VAST/VMAP回應中的廣告創意會分別為廣告提供不同的位元速率。 如果您想為這些廣告創意指定自己的優先順序和轉換規則,可以在以下連結中進行: AdobeTVSDKConfig.json 組態檔。
您可以在中指定兩種規則 AdobeTVSDKConfig.json: 優先順序 規則和 標準化 規則。
Disabling Pre-Roll
若要停用前段通話,您必須變更預設機會產生器,使其不進行前段通話。 根據預設,TVSDK會使用下列機會產生器:
/**
* @inheritDoc
*/
override protected function doRetrieveGenerators(item:MediaPlayerItem):Vector.<OpportunityGenerator> {
var result:Vector.<OpportunityGenerator> = new Vector.<OpportunityGenerator>();
result.push(new AdSignalingModeOpportunityGenerator());
result.push(new SpliceOutOpportunityGenerator());
return result;
}
若要在即時資料流上停用前置滾動,這應該變更為僅包含SpliceOutOpportunityGenerator:
/**
* @inheritDoc
*/
override protected function doRetrieveGenerators(item:MediaPlayerItem):Vector.<OpportunityGenerator> {
var result:Vector.<OpportunityGenerator> = new Vector.<OpportunityGenerator>();
if (preroll_enabled == true) {
result.push(new AdSignalingModeOpportunityGenerator());
}
result.push(new SpliceOutOpportunityGenerator());
return result;
}