iPhone and JavaScript Events

4 replies [Last post]
Joined: 08/30/2012
Points: 12

I need to track the "Play" event for different videos. I implemented the following JS function:

function jsCallbackReady(objectId)
{
window.kdp = document.getElementById(objectId);
window.kdp.addJsListener("playerPlayed", "trackNowWhilePlaying");
}

function trackNowWhilePlaying() {
// post data via ajax ...
}

Video embedding with object-Tag:

<object id="kaltura_player_xxx"
      name="kaltura_player_xxx"
      type="application/x-shockwave-flash"
      wmode="transparent"
      allowFullScreen="true"
      allowNetworking="all"
      allowScriptAccess="always" ....
<param name="externalInterfaceDisabled" value="false" /> ...

Problem:
The function "jsCallbackReady" is called in all major Browser (IE, FF, Opera, Safaria ...) but if I open the video on an iPhone, the function will not be called. Why?

Maybe I need some extra configuration?

Thanks for reply.

Joined: 02/22/2009
Points: 76

does your page include the html5 library?
http://html5video.org/wiki/Kaltura_HTML5_Configuration#HTML5_Library_Ver...

if you include that, it should fire on iOS ... if not please pass along a demo page where you see the issue, and I can take a look.

Joined: 08/30/2012
Points: 12

Thank you for your reply.

The HTML5 Library File is included in the page. But my client is hosting the whole server platform themselves. It is possible to check, if the provided JS HTML5 code is valid? Maybe the provided JS Code is not compatible with a HTML5 platform.

Thanks.

Joined: 02/22/2009
Points: 76

yea we will need a url to check out.. you can private message me .. or send it to my email ... michael.dale( the shift 2 key )kaltura.com

Joined: 03/08/2013
Points: 2