' + (config.visible ? "Hide" : "Show") + ' jPlayer Inspector
jPlayer events that have occurred over the past 1 second:' + '(Backgrounds: Never occurred Occurred before Occurred Multiple occurrences reset)
Update jPlayer Inspector
This jPlayer instance is running in your browser where:" for(i = 0; i < $(this).data("jPlayerInspector").jPlayer.data("jPlayer").solutions.length; i++) { var solution = $(this).data("jPlayerInspector").jPlayer.data("jPlayer").solutions[i]; jPlayerInfo += " jPlayer's " + solution + " solution is"; if($(this).data("jPlayerInspector").jPlayer.data("jPlayer")[solution].used) { jPlayerInfo += " being used and will support:"; for(format in $(this).data("jPlayerInspector").jPlayer.data("jPlayer")[solution].support) { if($(this).data("jPlayerInspector").jPlayer.data("jPlayer")[solution].support[format]) { jPlayerInfo += " " + format; } } jPlayerInfo += ""; } else { jPlayerInfo += " not required"; } } jPlayerInfo += "
status.formatType = '" + formatType + "'"; if(formatType) { jPlayerInfo += "Browser canPlay('" + $.jPlayer.prototype.format[formatType].codec + "')"; } else { jPlayerInfo += "
status.formatType = '" + formatType + "'
Browser canPlay('" + $.jPlayer.prototype.format[formatType].codec + "')
status.src = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.src + "'
status.media = {"; for(prop in $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.media) { jPlayerInfo += " " + prop + ": " + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.media[prop] + ""; // Some are strings } jPlayerInfo += "};
"; jPlayerInfo += "status.videoWidth = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.videoWidth + "'"; jPlayerInfo += " | status.videoHeight = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.videoHeight + "'"; jPlayerInfo += "status.width = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.width + "'"; jPlayerInfo += " | status.height = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.height + "'"; jPlayerInfo += "
status.videoWidth = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.videoWidth + "'
status.videoHeight = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.videoHeight + "'
status.width = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.width + "'
status.height = '" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.height + "'
Raw browser test for HTML5 support. Should equal a function if HTML5 is available."; if($(this).data("jPlayerInspector").jPlayer.data("jPlayer").html.audio.available) { jPlayerInfo += "htmlElement.audio.canPlayType = " + (typeof $(this).data("jPlayerInspector").jPlayer.data("jPlayer").htmlElement.audio.canPlayType) +"" } if($(this).data("jPlayerInspector").jPlayer.data("jPlayer").html.video.available) { jPlayerInfo += "htmlElement.video.canPlayType = " + (typeof $(this).data("jPlayerInspector").jPlayer.data("jPlayer").htmlElement.video.canPlayType) +""; } jPlayerInfo += "
htmlElement.audio.canPlayType = " + (typeof $(this).data("jPlayerInspector").jPlayer.data("jPlayer").htmlElement.audio.canPlayType) +"
htmlElement.video.canPlayType = " + (typeof $(this).data("jPlayerInspector").jPlayer.data("jPlayer").htmlElement.video.canPlayType) +"
This instance is using the constructor options:" + "$('#" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").internal.self.id + "').jPlayer({" + " swfPath: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "swfPath") + "'," + " solution: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "solution") + "'," + " supplied: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "supplied") + "'," + " preload: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "preload") + "'," + " volume: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "volume") + "," + " muted: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "muted") + "," + " backgroundColor: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "backgroundColor") + "'," + " cssSelectorAncestor: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelectorAncestor") + "'," + " cssSelector: {"; var cssSelector = $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelector"); for(prop in cssSelector) { // jPlayerInfo += " " + prop + ": '" + cssSelector[prop] + "'," // This works too of course, but want to use option method for deep keys. jPlayerInfo += " " + prop + ": '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelector." + prop) + "'," } jPlayerInfo = jPlayerInfo.slice(0, -1); // Because the sloppy comma was bugging me. jPlayerInfo += " }," + " errorAlerts: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "errorAlerts") + "," + " warningAlerts: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "warningAlerts") + "" + "});
$('#" + $(this).data("jPlayerInspector").jPlayer.data("jPlayer").internal.self.id + "').jPlayer({" + " swfPath: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "swfPath") + "'," + " solution: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "solution") + "'," + " supplied: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "supplied") + "'," + " preload: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "preload") + "'," + " volume: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "volume") + "," + " muted: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "muted") + "," + " backgroundColor: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "backgroundColor") + "'," + " cssSelectorAncestor: '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelectorAncestor") + "'," + " cssSelector: {"; var cssSelector = $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelector"); for(prop in cssSelector) { // jPlayerInfo += " " + prop + ": '" + cssSelector[prop] + "'," // This works too of course, but want to use option method for deep keys. jPlayerInfo += " " + prop + ": '" + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "cssSelector." + prop) + "'," } jPlayerInfo = jPlayerInfo.slice(0, -1); // Because the sloppy comma was bugging me. jPlayerInfo += " }," + " errorAlerts: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "errorAlerts") + "," + " warningAlerts: " + $(this).data("jPlayerInspector").jPlayer.jPlayer("option", "warningAlerts") + "" + "});
jPlayer is " + ($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.paused ? "paused" : "playing") + " at time: " + Math.floor($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.currentTime*10)/10 + "s." + " (d: " + Math.floor($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.duration*10)/10 + "s" + ", sp: " + Math.floor($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.seekPercent) + "%" + ", cpr: " + Math.floor($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.currentPercentRelative) + "%" + ", cpa: " + Math.floor($(this).data("jPlayerInspector").jPlayer.data("jPlayer").status.currentPercentAbsolute) + "%)