Kaltura player not making correct javascript api calls

197 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: 2068

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Joined: 06/02/2014
Points: 2068

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! LAPD APP

Joined: 06/02/2014
Points: 2068

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

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

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!
Web List of Professional Services

Joined: 06/02/2014
Points: 2068

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
singapore car exporter

Joined: 06/02/2014
Points: 2068

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
seo dublin

Joined: 06/02/2014
Points: 2068

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
dating sites in usa

Joined: 06/02/2014
Points: 2068

What a blog post!! Very informative and also easy to understand. Looking for more such comments!! Do you have a facebook? I recommended it on digg. The only thing that it’s missing is a bit of new design.
Edward Bass New York

Joined: 06/02/2014
Points: 2068

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.
books

Joined: 06/02/2014
Points: 2068

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!
window blinds

Joined: 06/02/2014
Points: 2068

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!
newton movers

Joined: 06/02/2014
Points: 2068

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
cell phone spy app

Joined: 06/02/2014
Points: 2068

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.
no hardware bitcoin miner

Joined: 06/02/2014
Points: 2068

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!
sump pump installation

Joined: 06/02/2014
Points: 2068

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!
equity crowdfunding

Joined: 06/02/2014
Points: 2068

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!
tattoo social network

Joined: 06/02/2014
Points: 2068

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
buy

Joined: 06/02/2014
Points: 2068

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
bypass

Joined: 06/02/2014
Points: 2068

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!
sexy celebrity news

Joined: 06/02/2014
Points: 2068

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

Joined: 06/02/2014
Points: 2068

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”.
consultoria seguridad

Joined: 02/25/2015
Points: 4

This is my first programming language I ever learnt. I have made my own project by using it. hotels in kampala

Joined: 06/02/2014
Points: 2068

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

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

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign!
website design buffalo ny

Joined: 06/02/2014
Points: 2068

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.
Villas in Greater Noida

Joined: 06/02/2014
Points: 2068

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!
Galaxy Plaza in Noida Extension

Joined: 06/02/2014
Points: 2068

I agree with your blog and i will be back to check it more in the future so please keep up your work. michael kors outleti love your content & the way that you write. flipping websites

Joined: 06/02/2014
Points: 2068

Hmm… I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader. brc orvieto

Joined: 06/02/2014
Points: 2068

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
hotel albergo vacanze

Joined: 06/02/2014
Points: 2068

I also benefit from learning the assessments, but learn that alot of people ought to stay on essay to try and add worth in the direction of the authentic weblog release.
video premiere