seek
This commit is contained in:
BIN
node_modules.zip
Normal file
BIN
node_modules.zip
Normal file
Binary file not shown.
@@ -439,6 +439,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script module="renderScript" lang="renderjs">
|
<script module="renderScript" lang="renderjs">
|
||||||
|
const firstTime = null
|
||||||
import $ from 'jquery'
|
import $ from 'jquery'
|
||||||
// import StaticADComponent from './staticadcomponent/index.js';
|
// import StaticADComponent from './staticadcomponent/index.js';
|
||||||
/**
|
/**
|
||||||
@@ -465,7 +466,7 @@
|
|||||||
player: null,
|
player: null,
|
||||||
curTime: null,
|
curTime: null,
|
||||||
curStatus: null,
|
curStatus: null,
|
||||||
firstTime: null,
|
// firstTime: null,
|
||||||
// currentTime:null,
|
// currentTime:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -492,7 +493,6 @@
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
ownerInstance.callMethod('getData')
|
ownerInstance.callMethod('getData')
|
||||||
|
|
||||||
},
|
},
|
||||||
emitData(event, ownerInstance) {
|
emitData(event, ownerInstance) {
|
||||||
var that = this;
|
var that = this;
|
||||||
@@ -506,34 +506,19 @@
|
|||||||
changeVideoScreen(event, ownerInstance) {
|
changeVideoScreen(event, ownerInstance) {
|
||||||
var that = this;
|
var that = this;
|
||||||
// this.$emit('changeScreenLoading',true)
|
// this.$emit('changeScreenLoading',true)
|
||||||
var status = this.player.fullscreenService.getIsFullScreen();
|
var status = this.player.fullscreenService.getIsFullScreen(); // true 状态下不是全屏,false状态下是全屏
|
||||||
|
console.log('全屏属性status',status);
|
||||||
|
|
||||||
|
|
||||||
ownerInstance.callMethod('screenChange', {
|
ownerInstance.callMethod('screenChange', {
|
||||||
status: status,
|
status: status,
|
||||||
primary: status ? 'portrait' : 'landscape'
|
primary: status ? 'portrait' : 'landscape'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏
|
plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏
|
||||||
this.player.fullscreenService.cancelFullScreen();
|
this.player.fullscreenService.cancelFullScreen();
|
||||||
// this.$emit('changeScreenLoading',false);
|
// this.$emit('changeScreenLoading',false);
|
||||||
|
|
||||||
|
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
|
|
||||||
// this.player.setPlayerSize('100%','200px');
|
// this.player.setPlayerSize('100%','200px');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// this.player.setPlayerSize({
|
// this.player.setPlayerSize({
|
||||||
@@ -548,11 +533,6 @@
|
|||||||
|
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
endEmitData(event, ownerInstance) {
|
endEmitData(event, ownerInstance) {
|
||||||
@@ -826,13 +806,16 @@
|
|||||||
|
|
||||||
//全屏播放
|
//全屏播放
|
||||||
|
|
||||||
// player.one('canplay', function() {
|
player.one('canplay', function() {
|
||||||
// // console.log('canplay', this.player.tag);
|
console.log('进入了canplay', this.firstTime);
|
||||||
// player.tag.play();
|
// this.firstTime = 20
|
||||||
|
// if (this.firstTime > 0) {
|
||||||
// });
|
// console.log('进入seek了吗?',this.firstTime)
|
||||||
|
// player.seek(this.firstTime);
|
||||||
|
// }
|
||||||
|
// player.tag.play();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
showPreview(e) {
|
showPreview(e) {
|
||||||
@@ -888,15 +871,15 @@
|
|||||||
},
|
},
|
||||||
receiveFirstTime(newValue, oldValue, ownerVm, vm) {
|
receiveFirstTime(newValue, oldValue, ownerVm, vm) {
|
||||||
// //数据变化
|
// //数据变化
|
||||||
this.firstTime = newValue
|
|
||||||
console.log('第一次播放的值', newValue, this.player)
|
|
||||||
|
|
||||||
console.log('vm4444', vm)
|
this.firstTime = newValue
|
||||||
console.log('this.firstTime at line 215:', newValue)
|
console.log('第一次播放的值receiveFirstTime', newValue, this.firstTime)
|
||||||
// if (this.player) {
|
// console.log('vm4444', vm)
|
||||||
// console.log('进入seek了吗?')
|
// console.log('this.firstTime at line 215:', newValue)
|
||||||
// this.player.seek(newValue);
|
if (this.player) {
|
||||||
// }
|
console.log('进入seek了吗?')
|
||||||
|
this.player.seek(newValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -905,10 +888,6 @@
|
|||||||
|
|
||||||
console.log('currentVideoListcurrentVideoListcurrentVideoList', newValue)
|
console.log('currentVideoListcurrentVideoListcurrentVideoList', newValue)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
receiveMsg(newValue, oldValue, ownerVm, vm) {
|
receiveMsg(newValue, oldValue, ownerVm, vm) {
|
||||||
//数据变化
|
//数据变化
|
||||||
|
|||||||
Reference in New Issue
Block a user