$(document).ready(function(){ var path = "${video.videoPath}"; if(path.substring(0, 4)=="http"||path.substring(0, 4)=="HTTP") { $("#containers").append("<embed "+ "src=\""+path +"\" "+ "quality=\"high\" width=\"450\" height=\"350\" "+ "align=\"middle\" allowScriptAccess=\"sameDomain\" "+ "allowFullscreen=\"true\" "+ "type=\"application/x-shockwave-flash\"></embed>"); }else{ jwplayer("containers").setup({ //flashplayer: "/js/jwPlayer/player.swf", file: "${video.videoPath}", //link:用戶展現分享連接 //link:"http://www.meizu.com/", //image:用於設置視頻預覽圖片 image:"${video.titlePhoto}", height:350, width: 450, volume: 80, stretching: "fill", logo:"/admin/images/admin_09.png", modes: [ { type: "html5" }, { type: "flash", src: "/js/jwPlayer/player.swf" }, { type: "download" } ], plugins: { sharing: { link: false } } }); } });