play
世锦赛丁俊晖进4强
play
丁俊晖马克都“断电”
向前
向后
/*自动播放1*/
var AUTOPLAY = 1;
/*连播1*/
var CONTIPLAY = 1;
/*处理自动播放选项和cookie*/
(function() {
var Tool = CommonTool;
var chk = Tool.byId('J_Video_Autoplay');
var ua = navigator.userAgent.toLowerCase();
var isIOS = /\((iPhone|iPad|iPod)/i.test(ua);
if (isIOS) {
console.log(chk.parentNode.style.display);
chk.parentNode.style.display = 'none';
return;
}
chk.parentNode.style.display = '';
var clickCookie = function() {
Tool.bindEvent(chk, 'change',
function() {
var chked = chk.checked;
Tool.writeCookie('ArtiVAuto', (chked ? 1 : 0), 24 * 365 * 10, '/', '.sina.com.cn');
});
}
var byCookie = function() {
var coo = Tool.readCookie('ArtiVAuto');
if (coo) {
if (parseInt(coo) == 0) {
chk.checked = false;
AUTOPLAY = 0;
}
}
};
clickCookie();
byCookie();
})();
/*获取第一个视频vid*/
var firstItem = CommonTool.byClass('J_Play_Item', 'J_Play_List')[0];
var fInfo = firstItem.getAttribute('play-data').split('-');
var fVid = fInfo[0];
var fPid = fInfo[1];
var sinaBokePlayerConfig_o = {
container: "J_Article_Player", //Div容器的id
width: 525,
height: 430,
playerWidth: 525, //宽
playerHeight: 430, //高
autoLoad: 1, //自动加载
autoPlay: AUTOPLAY, //自动播放
as: 1, //广告
pid: fPid,
tjAD: 0, //显示擎天柱广告
tj: 1, //片尾推荐
continuePlayer: 1, //连续播放
casualPlay: 1, //任意拖动视频
head: 0, //播放片头动画
logo: 0, //显示logo
share: 0,
thumbUrl: ""
};
(function() {
var toggle = function(id, hide) {
var e = CommonTool.byId(id);
var par = e.parentNode;
if (hide) {
CommonTool.addClass(par, e.className + '_disabled');
} else {
CommonTool.removeClass(par, e.className + '_disabled');
}
}
var scroll = new ScrollPic();
scroll.scrollContId = "J_Play_List"; //内容容器ID
scroll.arrLeftId = "J_Player_Prev"; //左箭头ID
scroll.arrRightId = "J_Player_Next"; //右箭头ID
scroll.listEvent = "onclick"; //切换事件
scroll.frameWidth = 532; //显示框宽度 **显示框宽度必须是翻页宽度的倍数
scroll.pageWidth = 133 * 3; //翻页宽度
scroll.upright = false; //垂直滚动
scroll.speed = 10; //移动速度(单位毫秒,越小越快)
scroll.space = 15; //每次移动像素(单位px,越大越快)
scroll.autoPlay = false; //自动播放
scroll.autoPlayTime = 5; //自动播放间隔时间(秒)
scroll.circularly = false;
scroll._move = scroll.move;
scroll.move = function(num, quick) {
scroll._move(num, quick);
toggle(scroll.arrRightId, scroll.eof);
toggle(scroll.arrLeftId, scroll.bof);
};
scroll.initialize(); //初始化
toggle(scroll.arrLeftId, scroll.bof);
})();
var autoPlayCheck = $("#J_Video_Autoplay")[0].checked;
var autoPlayFlv = 0;
var autoPlayH5 = false;
if(autoPlayCheck){
autoPlayFlv = 1;
var autoPlayH5 = true;
}
var flashConfig = {
url: "", // flash播放器地址,
container : "J_Article_Player",
id: "myMovie",
width: 525,
height: 430,
params : {
allowNetworking : "all",
allowScriptAccess : "always",
wmode : "opaque",
allowFullScreen : "true",
quality : "high"
},
attributes: {},
flashvars: {
autoPlay: autoPlayFlv, //是否自动播放
loop: 0,
autoLoad: 1,
thumbUrl: '',
tj: 1,
as: 1,
mode: 2
},
h5attr: {
autoPlay: autoPlayH5, //是否自动播放
controls: true, //是否显示控制条
loop: false,
poster: '', //视频加载前欲加载的图片地址,即播放器一开始显示的截图
preload: 'auto'
}
};
var videoList = [
{
video_id: '250567747',
source:'',
pid:'6',
url: 'http://video.sina.com.cn/view/250567747.html',
title:'世锦赛丁俊晖进4强'//,
//swfOutsideUrl:"http://you.video.sina.com.cn/api/sinawebApi/outplayrefer.php/video_id=250567747/s.swf"
},
{
video_id: '250568181',
source:'',
pid:'6',
url: 'http://video.sina.com.cn/view/250568181.html',
title:'丁俊晖马克都“断电”'//,
//swfOutsideUrl:"http://you.video.sina.com.cn/api/sinawebApi/outplayrefer.php/video_id=250568181/s.swf"
},
]
(function($){
var Play = {
init: function(flashConfig, videoList){
this.flashConfig = flashConfig;
this.videoList = videoList;
this.playVideo = playVideo;
this.prev = this.current = 0;
this.length = this.videoList.length;
this.contNode = $("#J_Video_Autoplay");
this.titleNode = $("#J_Video_Source");
this.playListNode = $("#J_Play_List .J_Play_Item");
if(videoList.length!==1){
//显示小图
CommonTool.byId('J_Play_List_Wrap').style.display='';
}
if(videoList.length<5){
CommonTool.byId('J_Player_Prev').style.display='none';
CommonTool.byId('J_Player_Next').style.display='none';
}
this.initPlayer();
this.bind();
},
bind: function(){
var _this = this;
$("#J_Play_List").on("click", ".J_Play_Item a", function(e){
e.preventDefault();
_this.playCurrent($(this));
});
},
initPlayer: function(){
var _this = this;
this.player = this.playVideo(this.flashConfig);
this.player.init(this.videoList[this.prev]);
this.player.on("playCompleted", function(){
_this.playNext();
});
this.playListNode.eq(0).addClass("selected");
this.titleInfo = this.videoList[0].title;
if(this.videoList[0].url!=""){
this.titleInfo = ''+this.videoList[0].title+'';
}
if(this.videoList[0].source!==''){
this.titleInfo += '
(来源:'+this.videoList[0].source+')';
}
this.titleNode.html(this.titleInfo);
},
playCurrent: function($this){
this.prev = this.current;
this.current = $this.parents(".J_Play_Item").index();
this.play(this.prev, this.current);
},
playNext: function(){
if(!this.contNode[0].checked){
return;
}
this.prev = this.current;
if(this.current >= this.length - 1){
return;
}
this.current++;
this.play(this.prev, this.current);
},
play: function(prev, current){
this.player.playVideo(this.videoList[current]);
this.titleInfo = this.videoList[current].title;
if(this.videoList[current].url!=""){
this.titleInfo = ''+this.videoList[current].title+'';
}
if(this.videoList[current].source!=""){
this.titleInfo += '
(来源:'+this.videoList[current].source+')';
}
this.titleNode.html(this.titleInfo);
this.playListNode.eq(prev).removeClass("selected");
this.playListNode.eq(current).addClass("selected");
}
}
Play.init(flashConfig, videoList);
})(jQuery);
新体讯 比赛分为三个阶段,状态神勇的丁俊晖在第二阶段便提前锁定胜利,他一脸潇洒笃定地迎接着胜利,这样的场景似乎已经久违了。当地时间4月26日,2016年斯诺克世锦赛在谢菲尔德继续进行。在1/4决赛丁俊晖与马克-威廉姆斯的第二阶段比赛中,丁俊晖发挥出色,在以6比2领先的有利形势下再接再厉,最终以13比3战胜马克-威廉姆斯,提前晋级半决赛。赛后,丁俊晖坦言自己此前并没有想到这场比赛会在这个阶段结束,“在比赛前我也是准备打三个阶段的比赛。”
这本该是一场针尖对麦芒的强强比拼,但丁俊晖却用精湛的技术与抢眼的表现让其变为自己的“个人表演赛”,以至于在第二阶段后半阶段,自知无力回天的马克-威廉姆斯只能抬头迷惘地望向上空,找不到任何办法。对于比赛在这一阶段画上句号,丁俊晖坦言:“以前没有过,在比赛前我也是准备打三个阶段的比赛,特里(特里-格里菲斯)也是一直在对我说明天两点半还有比赛,希望我不要受比分的影响,专心地打好每一局球。”
这场一边倒的比赛,丁俊晖在各个方面都表现得可圈可点,丁俊晖认为自己获胜最主要的原因是在得到机会后可以一杆制胜,“我拿到机会的话都能够打出分来,今天马克有很多静电球,很多球都走不到位,这也是给了我机会,很多次他一上手要不就是静电,要不就是库边弹过头了,很多时候他没有连续进攻的机会,这也是其中的一个原因,更多的是因为我拿到机会后能够打出分,一杆制胜是最关键的。”
从第一轮到1/4决赛,丁俊晖胜得越来越轻松,他一定对自己的手感很满意吧?对此,丁俊晖说道:“其实很难说,这么多天的比赛打下来可能会疲惫,但我感觉不到疲惫,不知道怎么样去形容这种状态。”听到丁俊晖这么说,一位记者马上说道:“渐入佳境?”对此,丁俊晖答道:“对,每个人每天的状态都可能是不一样的,尽可能保持自己的状态吧,慢慢打。”
如今,丁俊晖已经拿到了半决赛的入场券,他在半决赛中将对阵希金斯与麦克马努斯之间的胜者。对于半决赛,他憧憬道:“不管对阵任何一位选手,这场比赛是很长局数的比赛,之前我只打过一次,希望这次能够比上次做得更好一些。不管对手是谁,我都会认真地去对待。”由于提前晋级,丁俊晖也会因此得到一天的休息时间,“明天就休息一下,好好休息,其他的我不会想太多。”