小心立早鱼
小心立早鱼
  • 发布:2021-03-16 12:37
  • 更新:2021-10-19 09:12
  • 阅读:3289

uni-app APP video组件黑屏的?

分类:uni-app

用不了video组件?视频地址是https协议的mp4文件

2021-03-16 12:37 负责人:无 分享
已邀请:
小心立早鱼

小心立早鱼 (作者)

模块已导入

  • 1***@qq.com

    你好 请问您解决这个问题了吗,我也遇到类似的,video黑屏但有声音

    2021-09-04 18:13

qiuxianglin

qiuxianglin

请问解决问题了吗

7***@qq.com

7***@qq.com - 插件开发测试

请问解决了么 ,可以告知下如何解决的么

小心立早鱼

小心立早鱼 (作者)

<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>

突然就好了,我也不知道为啥

该问题目前已经被锁定, 无法添加新回复