Resume the video after ks is updated to entry id

21 replies [Last post]
Joined: 12/21/2012
Points: 12

This is my code to set ks after freepreviewperiod:

kdp.setKDPAttribute( 'servicesProxy.kalturaClient', 'ks', response );
kdp.sendNotification('changeMedia', {entryId: '1_p5z4aukt'});
kdp.addJsListener('doSeek', 'doSeekEvent');

function doSeekEvent() {
kdp.removeJsListener('doSeek', 'doSeekEvent');
kdp.sendNotification('doSeek', 10);
kdp.sendNotification( 'doPlay' );
}

If there is no seek, just simply send notification as doplay video plays well.
But if seek event needed, it is not playing. Manually I am clicking on play button. So that video is playing from starting point.

Please get rid of this issue.

Joined: 02/22/2009
Points: 76

The bug is not entirely clear to me. Do you have a sample page?

Joined: 12/21/2012
Points: 12

Thanks for your reply.

In some browsers, it not resuming(Chrome, Safari).

Sample is below:
------------------------

Kaltura/Evergent Demo

window.addEventListener('message', evpw_receiver, false);
function evpw_receiver(e) {
if (e.origin == 'http://xxx:7073') {
if (e.data == 'Transaction successful') {
if (!$('#kaltura_player_1').attr('type')) {
runPlaybackWithValidatedKS();
} else {
$.ajax({
url : "http://xxx/createks?jsoncallback=&entryid=1_p5z4aukt&partnerid=*****",
dataType : 'jsonp',
jsonp : 'jsoncallback',
success : function(data, status) {
var response = data.flashvars;
$('.myPurchaseDialog').remove();
document.getElementById("kaltura_player_1").tryPlay(response);
},
error:function (data, status, error) {
$('.myPurchaseDialog').html( data.error);
}
})
}
} else {
alert(e.data);
}
} else {
alert("Message came from: " + e.origin);
}
}
mw.setConfig( 'KalturaSupport.LeadWithHTML5' , true );
function jsCallbackReady(objectId) {
window.kdp = document.getElementById(objectId);
}
function doPurchaseDialog(){
var pos = $('#kaltura_player_1').position();
$('#kaltura_player_1').after(
$('').append(
)
.addClass('myPurchaseDialog')
)
$('.myPurchaseDialog').html("");
myKdp.removeJsListener( 'freePreviewEnd', 'doPurchaseDialog' );
}
kWidget.embed( 'kaltura_player_1', {
'wid': '*****',
'uiconf_id' : '******',
'entry_id' : '1_p5z4aukt',
'flashvars':{
'disableAlerts': true
},
'params' : {
'wmode' : 'opaque'
},
'readyCallback': function( playerId ){
myKdp = $('#' + playerId)[0];
myKdp.addJsListener( 'freePreviewEnd', 'doPurchaseDialog' );
}
});
function runPlaybackWithValidatedKS(){
window['onDoSeek'] = function(){
kdp.sendNotification( 'doPlay' );
setTimeout(function(){
kdp.sendNotification( 'doPlay' );
},1000);
};
$.ajax({
url : "https://xxx/register/createks?jsoncallback=&entryid=1_p5z4aukt&partnerid=******",
dataType : 'jsonp',
jsonp : 'jsoncallback',
success : function(data, status) {
var response = data.flashvars;
kdp.setKDPAttribute( 'servicesProxy.kalturaClient', 'ks', response );
$('.myPurchaseDialog').remove();
kdp.sendNotification('changeMedia', {entryId: '1_p5z4aukt'});
kdp.addJsListener('playerSeekEnd', 'onDoSeek' );
kdp.sendNotification('doSeek', 11);
kdp.sendNotification('doPlay');
},
error:function (data, status, error) {
$('.myPurchaseDialog').html( data.error);;
}
})
}

Joined: 03/27/2014
Points: 29

Jadwal Nonton live TV bola online http://goo.gl/3I6JNn di NOBARTV.com
Nonton siaran live tv streaming http://goo.gl/8oHZu7 di NOBARTV.com
Kabar berita bola terbaru / terkini hari ini http://goo.gl/cj6kGZ NOBARTV.com
Kumpulan kabar berita bola terkini http://goo.gl/a96CAV di NOBARTV.COM
Kumpulan jadwal siaran langsung pertandingan sepak bola terbaru http://goo.gl/f4JdXI di NOBARTV.COM

Joined: 08/08/2014
Points: 76

Yachtbooker.com is the world's largest reservation system for yacht charter. Here you can find reviews and last minute discounts for more than 4000 yachts worldwide. Compare prices and book online!
http://etnisjawa.blogspot.com/2014/07/gudang-situs-online-terbaik-terper...
http://etnisjawa.blogspot.com/2014/07/agen-texas-dan-domino-online-indon...
http://rosie.besaba.com/pokrstar88/
http://rosie.besaba.com/cipto-junaedy-dan-karyanya/
http://kdrcyber.com/cipto-junaedy/

Joined: 03/27/2014
Points: 29

berita bola di nobartv.com

Jadwal Nonton live TV bola online http://goo.gl/3I6JNn di NOBARTV.com
Nonton siaran live tv streaming http://goo.gl/8oHZu7 di NOBARTV.com
Kabar berita bola terbaru / terkini hari ini http://goo.gl/cj6kGZ NOBARTV.com
Kumpulan kabar berita bola terkini http://goo.gl/a96CAV di NOBARTV.COM
Kumpulan jadwal siaran langsung pertandingan sepak bola terbaru http://goo.gl/f4JdXI di NOBARTV.COM

Joined: 10/25/2014
Points: 122

gro57tp's picture
User offline. Last seen 44 weeks 5 days ago.
Joined: 12/16/2013
Points: 7
Contact user

Yachtbooker.com is the world's largest reservation system for yacht charter. Here you can find reviews and last minute discounts for more than 4000 yachts worldwide. Compare prices and book online!855online.com agen bola sbobet ibcbet casino 338a tangkas togel online indonesia terpercaya
agen texas dan domino online indonesia terpercaya
Jasa SEO Agen Bola

Joined: 02/22/2009
Points: 76

Would it be possible to plop the page onto drop box or otherwise public location, this ensures we are looking at exactly the same thing.

Joined: 12/16/2013
Points: 7

Yachtbooker.com is the world's largest reservation system for yacht charter. Here you can find reviews and last minute discounts for more than 4000 yachts worldwide. Compare prices and book online!
http://www.youtube.com/user/yachtbooker
http://www.youtube.com/watch?v=3JFul-whpgU

Joined: 04/12/2014
Points: 971

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained. homesandland.com

Joined: 04/12/2014
Points: 971

Eczema is usually a bodies respond to what it interprets as a risk. Research that a primary cause for acne can be different meals allergic reactions, so once you've recognized the type of acne you have, it then becomes very essential to decide which meals cause acne. visit

Joined: 12/25/2013
Points: 66

Appreciate this one, you are a great author. It's really written in depth analysis and have urged visitors to look forward more on your writing sky contact number

Joined: 01/08/2014
Points: 4

I will use this code and I will be back with reviews!
http://www.rechtsanwalt-tipps.de/

Joined: 02/27/2014
Points: 5

The code is excellent and I will use it for sure for my needs!
http://fatherofgroomspeech.co.uk

Joined: 12/19/2013
Points: 130

I enjoy alot reading your post so, i have made these comment here hope you will like it.
sky customer service

Joined: 04/02/2014
Points: 2

I will use this code for sure, it will be really simple to implement it!
http://www.schwabingzahnarzt.de/Zahnarzt-Bleaching-Muenchen.html

Joined: 04/12/2014
Points: 971

Can you explain where to change the wiget_id so the player shows up in the wordpress blog posts rather than the default one. buy youtube views

Joined: 05/22/2014
Points: 122

This is a fantastic website and I can not recommend you guys enough. Full of useful resource and great layout very easy on the eyes. 338A Sbobet Casino

Joined: 07/19/2014
Points: 4

After I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I receive 4 emails with the exact same comment. There has to be an easy method you are able to remove me from that service? Kudos!

Sepatu Kulit Pria
Sepatu Kulit Asli

Joined: 04/12/2014
Points: 971

Show planners need to keep remain on the innovative of new technological innovation, offer a useful academic component and improve up their promotion outreach to participants. singham returns full movie

Joined: 05/23/2014
Points: 335

Full of useful resource and great layout very easy on the eyes. cheap barcelona seo

Joined: 05/22/2014
Points: 122

Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is great blog. A great read. back-surgery.info