<script src="${path}/js/lib/video/video.min.js"></script>
<script src="${path}/js/lib/video/videojs-flash.min.js"></script>
<script type="text/javascript" src="${staticPath}/js/sewise-player/sewise.player.min.js"></script>
var title = data[0].videoName;
var videoUrl = data[0].videoUrl;
var poster = '${staticPath}/images/index/bg.jpg';
if(videoUrl.indexOf('rtmp://') == 0){
SewisePlayer.setup({
server: "live",
type: "rtmp",
autostart: "true",
streamurl: videoUrl,
skin: "",
title: title,
claritybutton: "disable",//[可选]是否显示多码率按钮 "enable"、"disable",缺省默认值为:"enable"
timedisplay: "disable",//[可选]是否显示播放控制栏上的时间 "enable"、"disable",缺省默认值为:"enable"
controlbardisplay: "disable",//[可选]是否显示播放控制栏 "enable"、"disable",缺省默认值为:"enable"
topbardisplay: "disable",//[可选]是否显示顶部标题 "enable"、"disable",缺省默认值为:"enable"
draggable: false,
buffer: 0,
primary: "html5",
lang: "zh_CN",
poster: poster,//[可选]视频播放前显示的图像
logo: " ",//[可选]播放器角落logo
}, "rtmpVideo");
}else if(videoUrl.indexOf('.m3u8') > -1){
SewisePlayer.setup({
server: "vod",
type: "m3u8",
autostart: "true",
videourl: videoUrl,
skin: "vodFlowPlayer",
title: "",
claritybutton: "disable",
lang: "zh_CN",
logo: "",
}, "rtmpVideo");
}else if(videoUrl.indexOf('.flv') > -1){
SewisePlayer.setup({
server: "vod",
type: "flv",
autostart: "true",
videourl: videoUrl,
skin: "vodWhite",
title: "",
claritybutton: "disable",
lang: "zh_CN",
logo: "",
}, "rtmpVideo");
}