var fallback = "flash,html";
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('safari')!=-1 || ua.indexOf('chrome') > -1){
var fallback = "html,flash";
}
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
}).jPlayer("load");
},
play: function() { // To avoid multiple jPlayers playing together.
$(this).jPlayer("pauseOthers");
$('.jp-title-wrap').fadeOut();
$('.jp-loading').fadeOut();
},
pause: function() {
$('.jp-title-wrap').fadeIn();
},
canplay: function() {
$('.jp-loading').fadeOut();
},
loadeddata: function() {
$('.jp-loading').fadeOut();
},
playing: function() {
$('.jp-loading').fadeOut();
},
stop: function() {
$('.jp-title-wrap').fadeIn();
},
solution: fallback,
smoothPlayBar: true,
keyEnabled: true,
swfPath: "/src/js",
supplied: "m4v",
wmode:"opaque",
preload: "metadata",
size: {
width: "100%",
height: "100%",
cssClass: "jp-video-360p"
}
});
I have the flash fallback set like that because i have been having issues with multiple browsers seems to be the only way i can get it to work.
also if the browser does support html does this mean i can do progressive streaming? in chrome i can drag the slider drop and play.
but if the solution fallsback to flash in internet explorer 7,8,9 and firefox this means people viewing the video player will only be able to skip to the parts that have been downloaded, they have no way to drag to the middle of a 1 hour long video they have to wait for it to buffer before being able to drag?
Love jplayer just a bit confused with the above if someone could help with some info that would be amazing
Thanks