Kaltura player not making correct javascript api calls

258 replies [Last post]
Joined: 12/13/2012
Points: 9

Hello all,
I have been setting up my player on my site, and everything is working great, until I try to use the javascript api with it. Let me first show you the code I have written so far:

<object id="kaltura_player_1_tyan50je" name="kaltura_player_1_tyan50je" type="application/x-shockwave-flash" allowFullScreen="true"
            allowNetworking="all" allowScriptAccess="always" height="560" width="1000"
            data="http://www.kaltura.com/index.php/kwidget/wid/_1104952/uiconf_id/9193302">
            <param name="allowFullScreen" value="true" />
            <param name="allowNetworking" value="all" />
            <param name="allowScriptAccess" value="always" />
            <param name="bgcolor" value="#000000" />
            <param name="wmode" value="opaque"/>
            <param name="flashVars" value="emptyF=onKdpEmpty&readyF=onKdpReady&externalInterfaceDisabled=false&entryId=1_tyan50je" />
            <param name="movie" value="http://www.kaltura.com/index.php/kwidget/wid/_1104952/uiconf_id/9193332" />
            <a href="http://corp.kaltura.com/products/video-platform-features">Video Platform</a>
            <a href="http://corp.kaltura.com/Products/Features/Video-Management">Video Management</a>
            <a href="http://corp.kaltura.com/Video-Solutions">Video Solutions</a>
            <a href="http://corp.kaltura.com/Products/Features/Video-Player">Video Player</a>
        </object>

And this is the javascript (forgive the console logs)

<script type="text/javascript">

        function onKdpReady(playerId) {
            console.log("fds");

            window.myKdp = document.getElementById(playerId);

            console.log(myKdp);
            console.log(mykdp.evaluate('{entryId}'));

            myKdp.addJsListener("freePreviewEnd", "FreePreviewHasEnded");
        }

        function jsCallbackReady(objectId) {
            window.myKdp = document.getElementById(objectId);

            console.log(myKdp);
            console.log(mykdp.evaluate('{entryId}'));

            myKdp.dispatchKdpEvent('doPlay');
            myKdp.addJsListener("freePreviewEnd", "FreePreviewHasEnded");
        }

        function FreePreviewHasEnded() {
            console.log("asdf");
        }

        function onKdpEmpty(playerId) {
            console.log("go");
        }
</script>

I am working off of the example located at: http://www.kaltura.org/kdp_js_api_demo_page.html

From what I have here, only the logs in the jsCallbackReady are ever being called, and the evaluate in that method returns absolutely nothing. The dispatch event call also does not start the video. What is weird is that if I change the movie param and the data attribute to the same ending as the example (_0/uiconf_id/1000106), then the jsCallbackReady doesn't get called but the onKdpReady does, and the event bind/evaluate doesn't work either. Is there something I am missing here, or something in the syntax that isn't right? I have been making alterations to the way things are called, and have even put a setTimeout on the page to bind later on past when the page has loaded, and it still doesn't bind.

Also, the player version of the demo is 2.7 while mine is 3.6.12.1. The video also has access control of 4 seconds of preview (for testing purposes, this will be longer in production).

If anyone has any ideas, that would help. Please though, don't just post a link to the javascript api documentation. I have read all over those pages (which lack any sort of example for a base start) and have not found any solutions.

Thanks

Joined: 02/22/2009
Points: 76

You may want to check out the feature hub:
http://html5video.org/kaltura-player/docs/

There are lots of working examples there. If you aim build a preview / buy flow you can check out this sample:
http://html5video.org/kaltura-player/modules/KalturaSupport/tests/Access...

Joined: 12/13/2012
Points: 9

I'll take a look at those and see what I come up with. Thanks for the input. I am using the flash version of the player, but I will see what I can move over from these html5 examples.

Joined: 06/02/2014
Points: 2147

Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.
nba 2k15 locker codes ps4

Joined: 02/21/2014
Points: 343

Simply classical stuff from you. I missed these classical post. Thank God you've brought them back. Now, life is back to normal. Ah! http://patiocovers-houston.com/

Joined: 06/02/2014
Points: 2147

First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics , i will be always checking your blog thanks. Kornblumenhonig

Joined: 02/21/2014
Points: 343

This is remarkable work from you, mate. It truly is. I have always considered your work as top notch and you have never given me a reason not to consider it as top notch. I hope you continue this. Cheers! https://www.facebook.com/zofranlawsuitsettlement

Joined: 02/21/2014
Points: 343

This is exceptional writing skills from you. Wow! I am just really flattered to read this kind of top stuff. Mate, you are going to be the best article writer in the future. PlayStation 3 emulator tool for PC: http://playstation3emulator.com/download

Joined: 06/02/2014
Points: 2147

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me.
SEO

Joined: 02/21/2014
Points: 343

Wow! This is absolutely thrilling work from you. I always knew you had it in you to produce such fantastic stuff. I just hope that you will keep it going. Cheers! http://www.unlimitedaffluence.com

Joined: 06/02/2014
Points: 2147

The first several months of my site there were no comments; just give it time; now they come in like crazy every day! Thanks.
www.panama.ua/categorys/76383/

Joined: 06/02/2014
Points: 2147

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. debt relief

Joined: 03/05/2015
Points: 7

You should check the source codes again. Try to find the errors in there to make it working correctly.
minecraft server

Joined: 06/02/2014
Points: 2147

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. creazione ecommerce

Joined: 03/10/2015
Points: 3

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site.
http://www.dragoncityhack.org/

Joined: 06/02/2014
Points: 2147

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
ev sinema sistemi

Joined: 06/02/2014
Points: 2147

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
bollywood songs download

Joined: 06/02/2014
Points: 2147

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!
streaming

Joined: 06/02/2014
Points: 2147

What a good blog you have here. Please update it more often. This topics is my interest. Thank you. . . girlsdoporn

Joined: 06/02/2014
Points: 2147

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!
http://www.wareztugacontas.com/

Joined: 06/02/2014
Points: 2147

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!
buy gifts uk

Joined: 06/02/2014
Points: 2147

Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.
polaroid photography

Joined: 06/02/2014
Points: 2147

Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it. Toyota hilux kenya

Joined: 06/02/2014
Points: 2147

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.
free yamaha service manuals

Joined: 06/02/2014
Points: 2147

Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it.
no long url

Joined: 06/02/2014
Points: 2147

I really like the dear information you offer in your articles. I'm able to bookmark your site and show the kids check out up here generally. Im fairly positive theyre likely to be informed a great deal of new stuff here than anyone else!
Entgiftung

Joined: 06/02/2014
Points: 2147

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info.
Entgiftung

Joined: 02/26/2015
Points: 33

kita seorang http://walibola.co

Joined: 06/02/2014
Points: 2147

Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.
step up height increaser

Joined: 06/02/2014
Points: 2147

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
best facial serum

Joined: 06/02/2014
Points: 2147

I would love to stop by. But, I think it might have to wait until this summer. I did not know that Serlkay had ever expanded its size. I must say that a succesful family owned business in this day and age is a very refreshing sight! As well as this is a very refreshing site! phone number reverse lookup

Joined: 06/02/2014
Points: 2147

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.
http://www.nba2k15lockercodes.org/

Joined: 06/02/2014
Points: 2147

Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it.
videos

Joined: 06/02/2014
Points: 2147

wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated.
HHM - Music Blog

Joined: 06/02/2014
Points: 2147

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
Grand Theft Auto: San Andreas APK+DATA direct links

Joined: 06/02/2014
Points: 2147

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work.
tool board sydney

Joined: 06/02/2014
Points: 2147

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
http://www.clashofclansastuce.org/

Joined: 06/02/2014
Points: 2147

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.
Sofia the first games

Joined: 06/02/2014
Points: 2147

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
facebook games hack tools

Joined: 06/02/2014
Points: 2147

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.
phim nguoi lon

Joined: 06/02/2014
Points: 2147

his is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work.
http://www.clashofclansastuce.fr/

Joined: 06/02/2014
Points: 2147

Once I thought about things like: why such information is for free here? Because when you write a book then at least on selling a book you get a percentage. Thank you and good luck on informing people more about it!
Salon Pengantin Muslimah

Joined: 06/02/2014
Points: 2147

It was great to see the old printshop and everyone who works there again. I am excited to see a printing business still operating and growing, great job guys
saba wraps

Joined: 06/02/2014
Points: 2147

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me.
Best android news app

Joined: 06/02/2014
Points: 2147

Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written.
News magazine iphone app

Joined: 06/02/2014
Points: 2147

What a good blog you have here. Please update it more often. This topics is my interest. Thank you. . . Baby shop World

Joined: 06/02/2014
Points: 2147

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.
http://www.haydayastuce.com/

Joined: 06/02/2014
Points: 2147

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
dealership license

Joined: 06/02/2014
Points: 2147

It was great to see the old printshop and everyone who works there again. I am excited to see a printing business still operating and growing, great job guys
madbussen.dk

Joined: 06/02/2014
Points: 2147

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing...
pallet stretch wrapper

Joined: 06/02/2014
Points: 2147

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign!
Work From Home