Reputation: 1851
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.
Upvotes: 3
Views: 3909
Reputation: 882
It seems to work in version 6.0. See js fiddle:
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/"
}]);
});
Upvotes: 0