function demoInstanceInfo(myPlayer, myInfo) { var jPlayerInfo = "
This jPlayer instance is running in your browser using ";
if(myPlayer.jPlayer("getData", "usingFlash")) {
jPlayerInfo += "Flash with ";
} else {
jPlayerInfo += "HTML5 with ";
}
if(myPlayer.jPlayer("getData", "usingMP3")) {
jPlayerInfo += "MP3";
} else {
jPlayerInfo += "OGG";
}
jPlayerInfo += " files.
This instance is using the constructor options:$(\"#" + myPlayer.jPlayer("getData", "id") + "\").jPlayer({
";
jPlayerInfo += " nativeSupport: " + myPlayer.jPlayer("getData", "nativeSupport");
jPlayerInfo += ", oggSupport: " + myPlayer.jPlayer("getData", "oggSupport");
jPlayerInfo += ", customCssIds: " + myPlayer.jPlayer("getData", "customCssIds");
jPlayerInfo += "
});
jPlayer is "; jPlayerStatus += (myPlayer.jPlayer("getData", "diag.isPlaying") ? "playing" : "stopped"); jPlayerStatus += " at time: " + Math.floor(myPlayer.jPlayer("getData", "diag.playedTime")) + "ms."; jPlayerStatus += " (tt: " + Math.floor(myPlayer.jPlayer("getData", "diag.totalTime")) + "ms"; jPlayerStatus += ", lp: " + Math.floor(myPlayer.jPlayer("getData", "diag.loadPercent")) + "%"; jPlayerStatus += ", ppr: " + Math.floor(myPlayer.jPlayer("getData", "diag.playedPercentRelative")) + "%"; jPlayerStatus += ", ppa: " + Math.floor(myPlayer.jPlayer("getData", "diag.playedPercentAbsolute")) + "%)
" myInfo.html(jPlayerStatus); }