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/003keYt6lx07skw45oCY0104120093Qw0E010.mp4?Expires=1552843087&ssig=WrovxK2%2BQ8&KID=unistore,video",//(播放的MP4地址)
videokeyid :"m16abd4ade03300eh33",
pageid:"hsxncvh3172799", //(页面id,用于统计)
VideoTitle:"电饭煲茶叶蛋",
videolength: 45000000, // 视频时长,单位毫秒
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);
}