|
|
@@ -15,27 +15,27 @@
|
|
|
<image v-if="!isLogin || isAddKf!=1" class="video-poster" :src="courseInfo.imgUrl" mode="aspectFill">
|
|
|
</image>
|
|
|
<video
|
|
|
- @timeupdate="onTimeUpdate"
|
|
|
- @progress="progressChange"
|
|
|
- @error="videoErrorCallback"
|
|
|
- @play="getPlay"
|
|
|
- @pause="getPause"
|
|
|
- @ended="getEnded"
|
|
|
- @controlstoggle="controlstoggle"
|
|
|
- @fullscreenchange="fullscreenchange"
|
|
|
- :title="courseInfo.title"
|
|
|
- style="width: 100%;height: 420rpx;"
|
|
|
- :poster="poster"
|
|
|
- id="video-content-box"
|
|
|
- controls
|
|
|
- :auto-pause-if-open-native="true"
|
|
|
- :auto-pause-if-navigate="true"
|
|
|
- :enable-progress-gesture="false"
|
|
|
- :show-progress="showProgress"
|
|
|
- :picture-in-picture-mode="[]"
|
|
|
- :show-background-playback-button="false"
|
|
|
- :src="videoUrl">
|
|
|
- <!-- logo -->
|
|
|
+ @timeupdate="onTimeUpdate"
|
|
|
+ @progress="progressChange"
|
|
|
+ @error="videoErrorCallback"
|
|
|
+ @play="getPlay"
|
|
|
+ @pause="getPause"
|
|
|
+ @ended="getEnded"
|
|
|
+ @controlstoggle="controlstoggle"
|
|
|
+ @fullscreenchange="fullscreenchange"
|
|
|
+ :title="courseInfo.title"
|
|
|
+ style="width: 100%;height: 420rpx;"
|
|
|
+ :poster="poster"
|
|
|
+ id="video-content-box"
|
|
|
+ controls
|
|
|
+ :auto-pause-if-open-native="true"
|
|
|
+ :auto-pause-if-navigate="true"
|
|
|
+ :enable-progress-gesture="false"
|
|
|
+ :show-progress="showProgress"
|
|
|
+ :picture-in-picture-mode="[]"
|
|
|
+ :show-background-playback-button="false"
|
|
|
+ :src="videoUrl">
|
|
|
+ <!-- logo -->
|
|
|
<!-- 弹幕展示 -->
|
|
|
<template v-if="showDanmu==1&&openCommentStatus==2">
|
|
|
<text v-for="(item, index) in activeDanmus" :key="item.commentId" class="danmu-item danmuMove"
|
|
|
@@ -534,11 +534,10 @@
|
|
|
this.getHeight()
|
|
|
},
|
|
|
onHide() {
|
|
|
- //// this.player = uni.createVideoContext('video-content-box');
|
|
|
+ // this.player = uni.createVideoContext('video-content-box');
|
|
|
if (this.player) {
|
|
|
- this.player.pause();
|
|
|
+ this.player.pause()
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
onUnload() {
|
|
|
uni.$off('usercode')
|
|
|
@@ -2245,7 +2244,6 @@
|
|
|
from {
|
|
|
transform: translateX(100vw);
|
|
|
}
|
|
|
-
|
|
|
to {
|
|
|
transform: translateX(-100%);
|
|
|
}
|