3
votes

If I load the video by passing the file at initialisation time, it works:

var jw = jwplayer('container').setup({
    width: 528,
    height: 295,
    skin: 'skins/rizla/rizla.xml',
    bufferlength : 0.1,
    modes: [
        {type: 'flash', src: 'jwplayer/player.swf'},
        {type: 'html5'}
    ],
    file : 'http://full/path/to/video.mp4',
});

However, if I used the load method from the player API, it plays fine in browsers (with Flash disabled so the HTML5 version loads) but won't play on the iPad / iPhone (but with no errors displayed):

jw.load({file : 'http://full/path/to/video.mp4'});

Examining the results of jw.getPlaylist() for each type of loading reveals very different values but that might unrelated to the issue.

Note: The video plays fine when linked to directly, opening in the default media player so it's not a video issue but a jwPlayer-specific issue.

1
I think ipad is no flash support?Trinh Hoang Nhu
Have you tried loading the MP4 directly using the ipad/iphone? Does that work? Just to eliminate a wrongly encoded file as the problem.Dan Smith
Yes, the video works fine when loaded directly and also works in jwPlayer when loaded in setuphoward10
how did you fix this?peduarte
I didn't really fix it, we changed the implementation to re-instantiate the player for each new video, which should not have been required but was a workaround. That was some time ago so jwPlayer may have fixed it now.howard10

1 Answers

0
votes

It seems to work in version 6.0. See js fiddle:

http://jsfiddle.net/hRAKQ/4/

var jw = jwplayer("test").setup({
    file: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
}); 

$('button').on('click', function() {
    jwplayer("test").load([{
        file: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4",
        image: "http://lorempixel.com/320/180/"
    }]);
});