1/** 2 * Init Resources for JW Player 3 */ 4 5var jwplayer_path = '/videos/jwplayer/jwplayer.js'; 6var jwplayer_html5_path = '/videos/jwplayer/jwplayer.html5.js'; 7var jwplayer_key = 'SGLHyV4VqOkiGZjskClPXtL4wc3onGjNlZD1rA=='; 8 9/** 10 * Load Script to Cache 11 */ 12jQuery.cachedScript = jQuery.cachedScript || function(url, options){ 13 options = jQuery.extend(options || {}, { 14 dataType: 'script', 15 cache: true, 16 async: false, 17 url: url 18 }); 19 20 return jQuery.ajax(options); 21}; 22 23/** 24 * Load JWPlayer JS 25 */ 26if(typeof (jwplayer) == "undefined") 27{ 28 jQuery.cachedScript(jwplayer_path,{}).success(function(data){ 29 jwplayer.key = jwplayer_key; 30 jQuery.cachedScript(jwplayer_html5_path,{}); 31 }); 32} 33 34/** 35 * Setup JWPlayer Tag 36 */ 37if(typeof (initJWPlayer) == "undefined") 38{ 39 function initJWPlayer (id, media_location, width, height, autostart) { 40 jwplayer(id).setup({ 41 file: media_location, 42 autostart: autostart || false, 43 width: width || 200, 44 height: height || 200, 45 primary: "html5", 46 skin: "/videos/jwplayer/skin/black.xml", 47 //flashplayer: "/videos/jwplayer/jwplayer.flash.swf", 48 abouttext: 'PKKQ Player', 49 aboutlink: '/' 50 }); 51 52 } 53 54 55 function initJWPlayerWithPreview (id, media_location, width, height, autostart, previewImage) { 56 jwplayer(id).setup({ 57 file: media_location, 58 image: previewImage, 59 autostart: autostart || false, 60 width: width || 200, 61 height: height || 200, 62 primary: "html5", 63 skin: "/videos/jwplayer/skin/black.xml", 64 //flashplayer: "/videos/jwplayer/jwplayer.flash.swf", 65 abouttext: 'PKKQ Player', 66 aboutlink: '/' 67 }); 68 69 } 70} 71
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.