...
|
...
|
@@ -130,15 +130,22 @@ export default { |
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
parentHandleclick() {
|
|
|
async parentHandleclick() {
|
|
|
this.showPlayer();
|
|
|
|
|
|
await this.delay(1000);
|
|
|
this.player.play();
|
|
|
|
|
|
const timeId = setTimeout(() => {
|
|
|
this.player.play();
|
|
|
this.player.requestFullscreen();
|
|
|
clearTimeout(timeId);
|
|
|
});
|
|
|
},
|
|
|
delay(ns) {
|
|
|
return new Promise(resolve => {
|
|
|
setTimeout(resolve, ns);
|
|
|
});
|
|
|
},
|
|
|
showPlayer() {
|
|
|
if (this.showVideo || !this.source) {
|
|
|
return;
|
...
|
...
|
|