Javascript 卡图拉:提示点不会立即触发
我在我的应用程序中使用kaltura动态嵌入播放器,用户可以在那里设置视频的提示点。当我在视频上设置任何提示点时,它不会立即反映在播放器上。有时,需要2或3分钟来反映。我们提供了一个预览功能,所以这就是为什么我需要它立即 在kaltura上添加提示点Javascript 卡图拉:提示点不会立即触发,javascript,kaltura,Javascript,Kaltura,我在我的应用程序中使用kaltura动态嵌入播放器,用户可以在那里设置视频的提示点。当我在视频上设置任何提示点时,它不会立即反映在播放器上。有时,需要2或3分钟来反映。我们提供了一个预览功能,所以这就是为什么我需要它立即 在kaltura上添加提示点 var cuePoint = new kaltura.kc.objects.KalturaAdCuePoint(); cuePoint.entryId = entryId; cuePoint.startTime =
var cuePoint = new kaltura.kc.objects.KalturaAdCuePoint();
cuePoint.entryId = entryId;
cuePoint.startTime = startTime;
cuePoint.title = title;
kalturaClient.cuePoint.add(function(results) {
callback(results);
});
收听提示点的事件
kWidget.embed({
'targetId': 'embedPlayer',
'wid': '',
'uiconf_id' : '',
'entry_id' : entry_id,
'flashvars':{
'autoPlay': false,
},
height:height,
width:width,
'readyCallback': function( playerId ){
console.log( "kWidget player ready: " + playerId );
player = $( '#' + playerId ).get(0);
player.kBind( "adOpportunity", "cuePointReached");
}
})
var cuePointReached = function(qPoint){
console.log("cuePointReached " + qPoint)
}
我只是想知道,这是卡图拉的行为还是我做错了什么
提前感谢我们可以在运行时覆盖提示点数据
<script>
kWidget.embed({
'targetId': 'kaltura_player',
'wid': '_243342',
'uiconf_id' : '13306622',
'entry_id' : '0_uka1msg4',
'flashvars': {
'vast': {
'trackCuePoints': true
},
'mediaProxy':{
'entry':{
'name':"This shows partial runtime override of entry name"
},
'entryCuePoints': [{
"protocolType": 1,
"adType": 1,
"cuePointType": "adCuePoint.Ad",
"startTime": 5000,
"sourceUrl": "http://projects.kaltura.com/mdale/hotelVastAd.xml"
}]
}
},
})
</script>
kWidget.embed({
“targetId”:“kaltura_玩家”,
“wid”:“U 243342”,
'uiconf_id':'13306622',
“条目id:”0_uka1msg4“,
“flashvars”:{
“广阔的”:{
“trackCuePoints”:true
},
“mediaProxy”:{
“条目”:{
'name':“这显示对条目名称的部分运行时重写”
},
“入口提示点”:[{
“原型”:1,
“adType”:1,
“cuePointType”:“adCuePoint.Ad”,
“开始时间”:5000,
“源URL”:http://projects.kaltura.com/mdale/hotelVastAd.xml"
}]
}
},
})