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/0034LNvwlx07s7dsyAso01041200suvQ0E010.mp4?Expires=1552065259&ssig=Q6Ey2KSVVz&KID=unistore,video",//(播放的MP4地址)
videokeyid :"m17a1b535303300gudt",
pageid:"hrfqzkc2138045", //(页面id,用于统计)
VideoTitle:"id私家小厨……阿瑞: 今天做五香茶叶蛋。",
videolength: 81000000, // 视频时长,单位毫秒
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);
}