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/002rp9S2lx07sqxpgDle01041200r1Kt0E010.mp4?Expires=1553102333&ssig=U9cSfZrH8K&KID=unistore,video",//(播放的MP4地址)
videokeyid :"m16abd4a6903300f1u9",
pageid:"hsxncvh4022336", //(页面id,用于统计)
VideoTitle:"单身久了,看谁都像卖茶叶的~:“我的机会来了~”",
videolength: 503000000, // 视频时长,单位毫秒
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);
}