安卓可以播

This commit is contained in:
@fawn-nine
2024-07-20 10:44:32 +08:00
parent 719f90889c
commit ed130e8dc5
7 changed files with 1484 additions and 23 deletions

View File

@@ -5,14 +5,14 @@
:src="videoData.type==1?videoData.m3u8Url:videoData.videoUrl" autoplay="true" duration=""
enable-danmu="true" :loop="true" :title="videoTitle" @click="" initial-time="" direction="-90" show-mute-btn="true"
@play="onstart" @pause="onpause" @ended="onfinish" @error="onfail" @waiting="waiting"
@timeupdate="timeupdate" @fullscreenchange="fullscreenchange">
<cover-view v-show="speedState && !mode" style="position: absolute; padding: 10rpx !important; background-color:rgba(0, 0, 0, .8); color: #fff; top: 30rpx; right: 30rpx;"
@timeupdate="timeupdate" @fullscreenchange="fullscreenchange" >
<!-- <cover-view v-show="speedState && !mode" style="position: absolute; padding: 10rpx !important; background-color:rgba(0, 0, 0, .8); color: #fff; top: 30rpx; right: 30rpx;"
@click="beisuClick()">{{beisuText}}</cover-view>
<cover-view v-show="mode && speedState" style="position: absolute; color: #fff; top: 30rpx; right: 30rpx;">
<cover-view class="speedList" v-for="(item, index) in playbackRateList" :key="index">
<cover-view :class="['speedItem',speedIndex == index ? 'active' : '']" @click="doubleSpeed(item.value, index)">x{{item.value}}</cover-view>
</cover-view>
</cover-view>
</cover-view> -->
</video>
<!-- <div
@@ -177,7 +177,7 @@
// #ifdef APP-PLUS
plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏
clearTimeout(this.beisuShowTimer)
// plus.screen.lockOrientation("portrait-primary");
plus.screen.lockOrientation("portrait-primary");
// #endif
// this.player.dispose();
@@ -225,6 +225,12 @@
},
fullscreenchange(e) {
console.log("fullscreenchange全屏:" + JSON.stringify(e));
if(!e.detail.fullScreen){
console.log('取消全屏');
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary');
// #endif
}
},
waiting(e) {
console.log("waiting:" + JSON.stringify(e));