问题描述:视频播放安卓可以,但是用苹果打开,显示为黑屏。
但是如果是静态视频,苹果也可以显示。
程序中的视频是请求后台接口获得,以视频流形式获取。ios需要预下载,然后再赋值给video
wx.downloadFile({
url,
success: (res) => {
this.videos.push(res.tempFilePath)
},
})
使用
<template>
<!-- webView页面 -->
<view class="plandetails">
<video v-if="videos.length > 0" v-for="item in videos" class="videocss" :src="item"></video>
</view>
</template>