jwplayer播放器以及引入优酷播放器

原创
2013/06/07 23:16
阅读数 1.6K
$(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 }
								}
							});
				}
});
展开阅读全文
打赏
0
5 收藏
分享
加载中
更多评论
打赏
0 评论
5 收藏
0
分享
返回顶部
顶部