Kaltura:提示点不会立即触发
Kaltura: Cuepoints not triggered instantly
我在我的应用程序中使用 kaltura 动态嵌入播放器,用户可以在其中为视频设置提示点。当我在视频上设置任何提示点时,它不会立即反映在播放器上。有时,需要 2 或 3 分钟才能反映出来。我们正在提供预览功能,因此我立即需要它。
在 kaltura 上添加提示点
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)
}
我只想知道,这是 kaltura 的行为还是我做错了什么?
提前致谢
我们可以在 运行 时间覆盖提示点数据。
<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>
我在我的应用程序中使用 kaltura 动态嵌入播放器,用户可以在其中为视频设置提示点。当我在视频上设置任何提示点时,它不会立即反映在播放器上。有时,需要 2 或 3 分钟才能反映出来。我们正在提供预览功能,因此我立即需要它。
在 kaltura 上添加提示点
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)
}
我只想知道,这是 kaltura 的行为还是我做错了什么?
提前致谢
我们可以在 运行 时间覆盖提示点数据。
<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>