Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JWPlayer 6.9 replay does not work in HTML5 mode


I have embedded jwplayer 6.9 and everything works fine except when the video ends the "replay" icon does not work in html5 mode (it works in flash mode). All it does is make the player element "flash". I am testing in Firefox.

I embed the actual video like this:
<video id="Life_Sciences_Forum_External_704x405_22lnYDJopk"
src="http://cdn.site.com/site/video/Life%20Sciences%20Forum_External_704x405.mp4"
poster="/content/dam/site/resources/videos/Life%20Sciences%20Forum_External_704x405.mp4.thumb.405.704.png" controls></video>

Then I call a helper function to setup the player.

My code is like this:
function InitVideoPlayers(selector, videoWidth, videoHeight) {

var players = $(selector);

if (players != null && players.length > 0) {
players.each(function() {
var $player = $(this);

var widthRatio = (videoHeight > 0 && videoWidth > 0) ? (videoHeight / videoWidth) : (3/4);
var height = $player.parent().width() * widthRatio;
height += 24; //for control bar
$player.data("widthRatio", widthRatio);

jwplayer($player.attr("id")).setup({
file: $player.attr("src"),
image: $player.attr("poster"),
controlbar: 'bottom',
stretching: "uniform",
width: "100%",
height: height,
primary: "html5",
html5player: '/etc/designs/site/clientlibs.jwplayer/js/jwplayer.html5.js',
flashplayer: '/etc/designs/site/clientlibs.jwplayer/js/jwplayer.flash.swf',
sitecatalyst: {}
});
});
}
}

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Please provide a link.

david.nelson2

User  
0 rated :

http://go.optum.com/mobile/jw6sample.html

Ethan Feldman

JW Player Support Agent  
0 rated :

Forbidden

You don’t have permission to access /mobile/jw6sample.html on this server.

david.nelson2

User  
0 rated :

sorry, try it now.

Ethan Feldman

JW Player Support Agent  
0 rated :

I think it has something to do with your file – http://cdn.optum.com/optum/video/Life%20Sciences%20Forum_External_704x405.mp4

Because, if we test this – http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed

The issue does not happen.

david.nelson2

User  
0 rated :

After more experimentation it seems that the values applied during the setup function are not perisisting. If I replace them with a call to .setup with string constant values it works.

MisterNeutron

User  
0 rated :

I would be more concerned about using <video> tags to embed the video. JW Player doesn't support that.

jherrieven

User  
0 rated :

At least add preload="none" to your video tag.

More info here: http://powered-by-haiku.co.uk/?p=1

Ethan Feldman

JW Player Support Agent  
0 rated :

I think it has to do with the video file. I get the error if I try the file out in our wizard, but if I use our file, it works fine.

This question has received the maximum number of answers.