jQuery(document).ready(function(){ jQuery(".jp-jplayer").each(function(){ width = jQuery(this).attr("data-width"); height = jQuery(this).attr("data-height"); useid = "#jp_container_"+jQuery(this).attr("data-id"); jQuery(this).jPlayer({ cssSelectorAncestor: useid, solution: 'html', wmode: "transparent", ready: function () { jQuery(this).jPlayer("setMedia", { m4v: jQuery(this).attr("data-m4v"), ogv: jQuery(this).attr("data-ogv"), webmv: jQuery(this).attr("data-webmv"), poster: jQuery(this).attr("data-image") }); }, swfPath: "../scripts", supplied: "webmv, ogv, m4v", size: { width: width+"px", height: height+"px", cssClass: "jp-video-360p" } }); }) }); /* playback timings (ms): LoadShardBlock: 1165.92 (3) esindex: 0.021 captures_list: 1265.926 CDXLines.iter: 14.656 (3) PetaboxLoader3.datanode: 1212.227 (5) exclusion.robots: 0.345 exclusion.robots.policy: 0.327 RedisCDXSource: 79.962 PetaboxLoader3.resolve: 665.214 (2) load_resource: 1465.688 */