no commit message
This commit is contained in:
+10
-2
@@ -223,6 +223,12 @@
|
|||||||
* newEvent是提供给播放器外部监听函数使用的,如监听时间player.time(function(t){console.log('已播放:'+t);});
|
* newEvent是提供给播放器外部监听函数使用的,如监听时间player.time(function(t){console.log('已播放:'+t);});
|
||||||
*/
|
*/
|
||||||
eventTarget();
|
eventTarget();
|
||||||
|
/*
|
||||||
|
* 监听页面标签状态(判断是否失去焦点)
|
||||||
|
*/
|
||||||
|
documentHidden(function(state){
|
||||||
|
eventTarget('visibilityState',state);
|
||||||
|
});
|
||||||
/*
|
/*
|
||||||
* 判断平台类型,主要是判断是否是iphone类型的平台
|
* 判断平台类型,主要是判断是否是iphone类型的平台
|
||||||
*/
|
*/
|
||||||
@@ -3422,7 +3428,10 @@
|
|||||||
*/
|
*/
|
||||||
visibilityState:function(fn){
|
visibilityState:function(fn){
|
||||||
if(!isUndefined(fn) && valType(fn)=='function'){
|
if(!isUndefined(fn) && valType(fn)=='function'){
|
||||||
documentHidden(fn);
|
if(!isUndefined(document.visibilityState)){
|
||||||
|
fn(document.visibilityState === 'visible'?'show':'hidden');
|
||||||
|
}
|
||||||
|
newEvent.addEventListener('visibilityState',fn);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
@@ -7305,7 +7314,6 @@
|
|||||||
fn(document.visibilityState === 'visible'?'show':'hidden');
|
fn(document.visibilityState === 'visible'?'show':'hidden');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return ckplayerEmbed;
|
return ckplayerEmbed;
|
||||||
}));
|
}));
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user