hookehuyr

fix: 在所有视频播放器中禁用iOS原生播放器

统一在所有VideoPlayer组件中添加use-native-on-ios=false属性,避免iOS平台上的播放问题
......@@ -66,7 +66,7 @@
</div>
<!-- Video Player -->
<VideoPlayer v-if="v.video && v.isPlaying" :video-url="v.video"
:video-id="v.id || `video-${post.id}-${idx}`" class="post-video rounded-lg overflow-hidden"
:video-id="v.id || `video-${post.id}-${idx}`" :use-native-on-ios="false" class="post-video rounded-lg overflow-hidden"
:ref="(el) => setVideoRef(el, v.id)" @onPlay="(player) => handleVideoPlay(player, v)"
@onPause="handleVideoPause" />
</div>
......
......@@ -30,7 +30,7 @@
</div>
<div v-if="videoUrl" class="video-preview">
<VideoPlayer ref="videoPlayerRef" :video-url="videoUrl" :autoplay="false" />
<VideoPlayer ref="videoPlayerRef" :video-url="videoUrl" :use-native-on-ios="false" :autoplay="false" />
</div>
</div>
</div>
......
<!--
* @Date: 2025-03-20 19:55:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-29 17:50:54
* @LastEditTime: 2026-01-20 16:30:23
* @FilePath: /mlaj/src/views/HomePage.vue
* @Description: 美乐爱觉教育首页组件
*
......@@ -311,6 +311,7 @@
v-else
:video-url="item.video_url"
:video-id="`home_recommend_video_${index}`"
:use-native-on-ios="false"
/>
</div>
</div>
......
......@@ -159,7 +159,7 @@
</div>
<!-- 视频播放器 -->
<VideoPlayer v-show="isVideoPlaying" ref="videoPlayerRef" :video-url="videoUrl"
:video-id="videoTitle" :autoplay="false" class="w-full h-full" @play="handleVideoPlay"
:video-id="videoTitle" :use-native-on-ios="false" :autoplay="false" class="w-full h-full" @play="handleVideoPlay"
@pause="handleVideoPause" />
</div>
</div>
......
<!--
* @Date: 2025-04-14 16:30:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-20 16:30:30
* @FilePath: /mlaj/src/views/upload_video.vue
* @Description: 上传视频页面组件
-->
<template>
<div class="upload-video-container">
<div class="button-container">
......@@ -6,7 +13,7 @@
</div>
<div class="video-list">
<div v-for="video in videos" :key="video.id" class="video-preview">
<VideoPlayer :video-url="video.url" :autoplay="false" />
<VideoPlayer :video-url="video.url" :use-native-on-ios="false" :autoplay="false" />
<div class="video-info">
<span class="video-name">{{ video.name }}</span>
<van-button icon="delete" type="danger" size="small" class="delete-btn" @click="deleteVideo(video.id)">删除</van-button>
......