Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Have recently run into an error with my code that is stating that ".addJsListener is not a function". Not sure why this is occurring. It was working a few weeks ago. Anybody else run into this problem?
It's currently breaking at the first addJsListener call.
so apparently i can't hack my way around it - it seems like once the addJsListener is not a function error happens the kaltura code has no hope of actually adding the methods and listeners it needs to make any api calls work. i made a setTimeout function that catches that exception and tries again after a few milliseconds to add the js listeners to the movie player object. With some logging i can see that the events are never added and the code will eternally call and fail the code that tries to addJsListener.
As i said it only happen in IE and i can't consistently "make" it happen but oddly enough if i'm in the dev tools and select "Always refresh from server" the problem doesn't seem to occur. i don't know what could be caching or not that would randomly cause the problem but maybe that will help someone on the kaltura end figure out what is going on.
Please try the next flashvar:
jsInterfaceReadyFunc = null [string]
On certain browsers, the function registerKDPCallbacks is executed before the page loading the KDP is fully ready.
In such cases this flashvar can be set to the name of the js function, and the following lines added to the tag in the tag of the page:
//------------------------------------------------------------------------------
// Privates
var jsReady = false;
//------------------------------------------------------------------------------
function onInit(){
alert('Container Loaded!');
jsReady=true;
}
function [jsInterfaceReadyFunc](){
return jsReady;
}
in the tag, set the onload property to "onInit". This is in accordance with Adobe's best practice for integrating
Flash/Flex applications in html pages:
http://livedocs.adobe.com/flex/3/html/help.html?content=19_External_Inte...
Thanks for that, we got that suggestion from our account rep as well and it seems to have fixed the problem.
thanks
bret
I got this as well on all my browsers. Within the flash object FalshVars I did onload=onInit and the error went away, but not sure it's actually working as nothing happens addJsListener("cuePointReached", "function")
I set up a cuepoint in the content and even set up the player with a dummy VAST on advertising/studio
I simply want to be able to pop up alert on each cue point. Can someone show me example code to do this? Thanks!
i have the exact same problem but only in IE and the error is not consistent.
writing a horrible interval function to work around but it is obviously not an actual solution.