window.__SINAFLASHURL__ = window.$SINAFLASHURL;
var $SCOPE = {};
window.$FlashConfig = {
url: __SINAFLASHURL__,
container : "Video_Cont",
id: "myMovie",
width: 640, //宽
height: 360, //高
params : {
allowNetworking : "all",
allowScriptAccess : "always",
wmode : "opaque",
allowFullScreen : "true",
quality : "high"
},
attributes: {},
};
$SCOPE['video'] = {
video_id:'' , //视频id,必须
pid: '', //频道id
url: '', //页面url
title: "", //视频标题
swfOutsideUrl: '' //分享url
}
window.$FlashConfig.flashvars={
playmode: 1,
videosource: "kandian",//(标识视频来源用于统计)
channelid: "257_203204_205433",
streamurl :"http://f.us.sinaimg.cn/0035RxXElx07s7LLU7r201041200xL0H0E010.mp4?Expires=1552065257&ssig=eGr%2Fn4bt4q&KID=unistore,video",//(播放的MP4地址)
videokeyid :"m16823363703300gb3q",
pageid:"hsxncvh0930240", //(页面id,用于统计)
VideoTitle:"茶叶和大蒜放在一起,原来还有这个作用,赶紧告诉家人",
videolength: 132000000, // 视频时长,单位毫秒
autoLoad: 0, //自动加载
autoPlay: 0, //自动播放
loop: 0,
thumbUrl: '', //视频封面图
tj: 1, //片尾推荐
as: 1 //广告
}
if($SCOPE['video'].video_id == ''){
// 无视频id的情况
window.$FlashConfig.flashvars.playmode = 1;
playVideo($FlashConfig);
}else{
// 有视频id的情况
var player = playVideo($FlashConfig);
player.init($SCOPE.video);
//player.playVideo(videoConfig.video_id);
}