|
@@ -607,14 +607,14 @@ class VideoPlay {
|
|
|
this.websocket = null;
|
|
|
}
|
|
|
// 客户端显示隐藏操作;
|
|
|
- showBrower(flag) {
|
|
|
+ showBrower(flag,handles) {
|
|
|
// return
|
|
|
const params = this.createHeader();
|
|
|
params.method = "setCtrlVisible";
|
|
|
params.params = {
|
|
|
array: [
|
|
|
{
|
|
|
- ctrlCode: 'vPlayArea',
|
|
|
+ ctrlCode: `${handles}`,
|
|
|
visible: flag,
|
|
|
},
|
|
|
],
|
|
@@ -669,7 +669,7 @@ class VideoPlay {
|
|
|
if (document.webkitVisibilityState === 'hidden') {
|
|
|
// 最小化
|
|
|
const temp = this.status;
|
|
|
- this.showBrower(false);
|
|
|
+ // this.showBrower(false);
|
|
|
this.status = temp;
|
|
|
console.log('hidden');
|
|
|
} else if (document.webkitVisibilityState === 'visible') {
|
|
@@ -677,7 +677,7 @@ class VideoPlay {
|
|
|
// 延时的目的:最大化的瞬间 走resize中的window.outerWidth - window.innerWidth < 0这个条件,缺少浏览器顶部栏的高度,导致高度上移
|
|
|
console.log('visible');
|
|
|
setTimeout(() => {
|
|
|
- this.showBrower(this.status);
|
|
|
+ // this.showBrower(this.status);
|
|
|
}, 200);
|
|
|
}
|
|
|
});
|