用不了video组件?视频地址是https协议的mp4文件
![小心立早鱼](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/001/66/43/01_avatar_mid.jpg?v=1611997844)
小心立早鱼
- 发布:2021-03-16 12:37
- 更新:2021-10-19 09:12
- 阅读:3638
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210316/2d3fe10fe435803f9a1b1fa071d546bb.png)
![小心立早鱼](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/001/66/43/01_avatar_mid.jpg?v=1611997844)
小心立早鱼 (作者)
<swiper class="swiper" :autoplay="autoplay" :circular="circular" :interval="interval" :duration="duration" @change="swiperChange">
<block v-for="(item, index) in urls" :key="index">
<swiper-item @tap="previewImage(index)">
<view v-if="item.type == 'video'" class="video-wrap">
<video id="myVideo" class="my-video" :enable-progress-gesture="false" :controls="showControls" :autoplay="false" :show-progress="true" :show-fullscreen-btn="showControls"
:src="item.url" :show-center-play-btn="false" :show-play-btn="showControls" @play="showPlay = false" @ended="showPlay = true" @fullscreenchange="fullscreenchange"></video>
<image v-if="showPlay" @tap.stop="play" src="/static/images/icon_play.png" class="icon-play"></image>
</view>
<custom-image v-else width="750rpx" height="750rpx" :src="item.url"></custom-image>
</swiper-item>
</block>
</swiper>
突然就好了,我也不知道为啥