...
|
...
|
@@ -122,7 +122,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.showPlayer();
|
|
|
// this.showPlayer();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
if (this.player) {
|
...
|
...
|
@@ -131,8 +131,10 @@ export default { |
|
|
},
|
|
|
methods: {
|
|
|
parentHandleclick() {
|
|
|
this.showVideo = true;
|
|
|
this.showPlayer();
|
|
|
|
|
|
this.player.play();
|
|
|
|
|
|
const timeId = setTimeout(() => {
|
|
|
this.player.requestFullscreen();
|
|
|
clearTimeout(timeId);
|
...
|
...
|
@@ -143,6 +145,7 @@ export default { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.showVideo = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.initPlayer();
|
|
|
});
|
...
|
...
|
@@ -187,14 +190,6 @@ export default { |
|
|
this.voiceBtn.removeClass(noVioceClass);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// setTimeout(() => {
|
|
|
// this.$yoho.getNetStatus({}, res => {
|
|
|
// if (res && +res.wifi === 1) {
|
|
|
// this.player.autoplay("muted");
|
|
|
// }
|
|
|
// });
|
|
|
// }, 1000);
|
|
|
},
|
|
|
getTime() {
|
|
|
return new Date().getTime();
|
...
|
...
|
|