Просмотр исходного кода

fix: ios16+ 视频播放问题

From-wh 2 лет назад
Родитель
Сommit
4529f96972

+ 1 - 1
template/uni-app/components/productConSwiper/index.vue

@@ -7,7 +7,7 @@
 				<view class="item">
 					<view v-show="!controls" style="width:100%;height:100% ">
 						<video id="myVideo"  :src='videoline' objectFit="contain" controls
-							style="width:100%;height:100% " show-center-play-btn show-mute-btn="true"
+							style="width:100%;height:100%" show-center-play-btn show-mute-btn="true"
 							auto-pause-if-navigate :custom-cache="false" :enable-progress-gesture="false"
 							:poster="imgUrls[0]" @pause="videoPause"></video>
 					</view>

+ 6 - 0
template/uni-app/manifest.json

@@ -15,6 +15,12 @@
             "autoclose" : true,
             "delay" : 0
         },
+        "screenOrientation" : [
+            "portrait-primary",
+            "portrait-secondary",
+            "landscape-primary",
+            "landscape-secondary"
+        ],
         /* 模块配置 */
         "modules" : {
             "Payment" : {},