This commit is contained in:
悠悠小鹿
2024-07-21 13:47:40 +08:00
parent f702fb63d8
commit c8ffd37e4a
2 changed files with 22 additions and 43 deletions

BIN
node_modules.zip Normal file

Binary file not shown.

View File

@@ -439,6 +439,7 @@
</script>
<script module="renderScript" lang="renderjs">
const firstTime = null
import $ from 'jquery'
// import StaticADComponent from './staticadcomponent/index.js';
/**
@@ -465,7 +466,7 @@
player: null,
curTime: null,
curStatus: null,
firstTime: null,
// firstTime: null,
// currentTime:null,
}
},
@@ -492,7 +493,6 @@
// })
ownerInstance.callMethod('getData')
},
emitData(event, ownerInstance) {
var that = this;
@@ -506,34 +506,19 @@
changeVideoScreen(event, ownerInstance) {
var that = this;
// 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', {
status: status,
primary: status ? 'portrait' : 'landscape'
})
if (status) {
setTimeout(() => {
plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏
this.player.fullscreenService.cancelFullScreen();
// this.$emit('changeScreenLoading',false);
}, 100);
// this.player.setPlayerSize('100%','200px');
} else {
// this.player.setPlayerSize({
@@ -548,11 +533,6 @@
}, 100);
}
},
endEmitData(event, ownerInstance) {
@@ -826,13 +806,16 @@
//全屏播放
// player.one('canplay', function() {
// // console.log('canplay', this.player.tag);
// player.tag.play();
// });
player.one('canplay', function() {
console.log('进入了canplay', this.firstTime);
// this.firstTime = 20
// if (this.firstTime > 0) {
// console.log('进入seek了吗',this.firstTime)
// player.seek(this.firstTime);
// }
// player.tag.play();
});
},
showPreview(e) {
@@ -887,16 +870,16 @@
},
receiveFirstTime(newValue, oldValue, ownerVm, vm) {
// //数据变化
// //数据变化
this.firstTime = newValue
console.log('第一次播放的值', newValue, this.player)
console.log('vm4444', vm)
console.log('this.firstTime at line 215:', newValue)
// if (this.player) {
// console.log('进入seek了吗')
// this.player.seek(newValue);
// }
console.log('第一次播放的值receiveFirstTime', newValue, this.firstTime)
// console.log('vm4444', vm)
// console.log('this.firstTime at line 215:', newValue)
if (this.player) {
console.log('进入seek了吗')
this.player.seek(newValue);
}
},
@@ -905,10 +888,6 @@
console.log('currentVideoListcurrentVideoListcurrentVideoList', newValue)
},
receiveMsg(newValue, oldValue, ownerVm, vm) {
//数据变化