-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I've set up a some code to launch the player with a poster image. However in IE9 the poster image first shows up and then disappears. I've looked online and it could be a IE9 video preload issue. Is there anyway to disable preloading of the video for the JW player examples. Here is the code I'm using to initiate the player.
function nPlayer() {
// Create Media Links
var $media_links = $("a[href$='flv'], a[href$='mp4'], a[href$='ogv']");
// Create players for our media links
$.each($media_links, function(i) {
var $holder = $('<span />');
$(this).parent().replaceWith($holder);
// Extract the url/path from the links href attribute
var link = $(this).attr('href');
// Grab the captions if they exist
var $captions = $(this).siblings('.captions');
// Work out if the video has captions
var captionsFile = $($captions).length > 0 ? $($captions).attr('href') : '';
// Grab the poster if they exist
var $poster = $(this).siblings('.poster');
// Work out if the poster has captions
var posterFile = $($poster).length > 0 ? $($poster).attr('href') : '';
// Instantiate the jwplayer
$holder.player({
id:'jw'+i,
media:link,
image: posterFile,
useHtml5: true,
flashHeight:380,
captions:captionsFile,
url: 'nomensa/custom/javascript/config/jwplayer-5/core/player.swf',
swfCallback : jwPlayerReady
}, jwconfig);
});
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels