Kaltura player not making correct javascript api calls

115 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: 1952

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: 06/02/2014
Points: 1952

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: 1952

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: 1952

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: 1952

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: 06/02/2014
Points: 1952

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: 1952

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: 1952

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: 1952

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: 1952

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: 1952

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: 1952

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

Joined: 06/02/2014
Points: 1952

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign!
Michigan Personal Injury Attorney

Joined: 06/02/2014
Points: 1952

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!
ประตูรั้วสแตนเลส

Joined: 06/02/2014
Points: 1952

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.
sp fiber

Joined: 06/02/2014
Points: 1952

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!
caribbean weddings

Joined: 01/14/2013
Points: 13

This old url :
http://cdnsecakmi.kaltura.com/p/243342/sp/24334200/flvclipper/entry_id/1...
return full video instead of preview?

Joined: 12/19/2013
Points: 136

Needed to compose you a word regarding the nice opinions you have contributed. Your good knowledge in playing with all the pieces is very useful. To be honest, this has been one outstanding blog
phone number for income support

Joined: 06/02/2014
Points: 1952

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing...
astuce hay day

Joined: 06/02/2014
Points: 1952

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.
costco adjustable beds

Joined: 06/02/2014
Points: 1952

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.
luxury memory foam mattress

Joined: 12/31/2014
Points: 13

Vacations may be one thing which is very fun to perform. All very happy with various kinds of activities that can make sure the activity is solid.
minecraft server hosting

Joined: 06/02/2014
Points: 1952

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

Joined: 06/02/2014
Points: 1952

Thank you for posting such a great article! I found your website perfect for my needs. It contains wonderful and helpful posts. Keep up the good work!
free cam

Joined: 06/02/2014
Points: 1952

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.
nba all star

Joined: 06/02/2014
Points: 1952

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.
cheap memory foam mattress

Joined: 06/02/2014
Points: 1952

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.
adjustable beds prices

Joined: 06/02/2014
Points: 1952

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
https://rebelmouse.com/getridofherpessarahwilcox/

Joined: 06/02/2014
Points: 1952

I came onto your blog while focusing just slightly submits. Nice strategy for next, I will be bookmarking at once seize your complete rises
money making

Joined: 06/02/2014
Points: 1952

I rooted around for housing resources, and I discovered this real estate market news website,Southern California Housing Market. I discovered this web post, realtor flop in San Juan Capistrano. This news post is informative.The housing news and real estate analysis on the site is super, the cartoons and writing are entertaining and insightful, and the real estate educational materials are fantastic. I advise discovering this Internet site to tour what it has to offer.

Joined: 06/02/2014
Points: 1952

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! ​hegn i haven

Joined: 06/02/2014
Points: 1952

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
magic supplies

Joined: 06/02/2014
Points: 1952

I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.
RTG no deposit bonus

Joined: 06/02/2014
Points: 1952

I came onto your blog while focusing just slightly submits. Nice strategy for next, I will be bookmarking at once seize your complete rises
disabili

Joined: 06/02/2014
Points: 1952

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”. Work From Home

Joined: 06/02/2014
Points: 1952

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.
best deals on mattresses

Joined: 04/23/2014
Points: 400

I've just decided to create a blog, which I have been wanting to do for a while. Thanks for this post, it's really useful!
compare car insurance by zip code

Joined: 06/02/2014
Points: 1952

Many thanks for this brilliant post! Many points have extremely useful. Hopefully you'll continue sharing your knowledge around.
payday loans companies

Joined: 01/01/2015
Points: 4

To become a professional teacher would you not may be accomplished instantly. Experience in addition to always replace yourself with an array of knowledge is just about the right approaches to do. View this site for Indianapolis SEO service

Joined: 01/01/2015
Points: 5

Attend meetings this way are crucial enough to be made by means of each educator. In a gathering like this particular every instructor can look at how to teach well and tips on how to let college students can more easily accept the particular lessons imparted. Document Management System

Joined: 01/05/2015
Points: 5

Attend meetings such as this are significant enough to be made through each teacher. In a meeting like this every trainer can discuss how to train well and tips on how to let students can with less effort accept the lessons imparted. lebanon construction companies

Joined: 01/06/2015
Points: 5

Many fresh teachers who will not yet have much experience on the globe of educating. In my opinion, it's good whenever they are directed to visit the meetings like this so as to get a great deal of new knowledge within the teaching. http://www.hotelruch.com

Joined: 06/02/2014
Points: 1952

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. Oklahoma City Personal Injury Attorney

Joined: 06/02/2014
Points: 1952

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! buy youtube views

Joined: 06/02/2014
Points: 1952

This is a great article, Thanks for giving me this information. Keep posting. frozen karaoke app

Joined: 06/02/2014
Points: 1952

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”.
memory foam mattress reviews

Joined: 06/02/2014
Points: 1952

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.
peel strength test

Joined: 06/02/2014
Points: 1952

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!
neurofeedback training nyc