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/0037iGeOlx07sDEIlA1201041204nTAK0E020.mp4?Expires=1553794483&ssig=opGbBx3ZeS&KID=unistore,video",//(播放的MP4地址)
videokeyid :"m63e9370d03300kuyh",
pageid:"hsxncvh6311409", //(页面id,用于统计)
VideoTitle:"从茶园到茶厂,从生茶到熟茶,寻茶君小姐姐带你体验茶叶加工全过程",
videolength: 444000000, // 视频时长,单位毫秒
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);
}