收藏
回答

视频组件video android与ios在切换的时候一直转圈?,然后再播放,界面只有一个video

     <swiper class="video-swipervertical duration="10current="{{current}}" bindchange="onChangecircular="{{circular}}">

                        <swiper-item wx:for="{{videoList}}" wx:key="index">

                            <!-- wx:if="{{(index+1)===(current) || index===current ||(index-1)===(current)}}" -->

                            <!-- <block wx:if="{{item.url!=''}}"> -->

                              <block >

                                <video wx:if="{{index===current?true:false}}" id="video_{{index}}" class="video-swipershow-fullscreen-btn="{{false}}" enable-play-gesture show-center-play-btn="{{false}}" controls enable-progress-gesture="{{false}}" show-bottom-progress src="{{item.url}}" data-id="{{item.id}}" object-fit="coverdata-index="{{index}}" bindtap="videoTapdata-videoId="{{item.id}}" show-play-btn="{{false}}" auto-pause-if-navigate autoplay="{{index===current}}" loop bindplay="onBindplaycustom-cache="{{false}}">

                                    <image class="playImagesrc="../../assets/images/play.pngwx:if="{{item.play}}"></image>

                                </video>

                            </block>

                        </swiper-item>

                    </swiper>


回答关注问题邀请回答
收藏

3 个回答

  • Demons
    Demons
    2022-09-20

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-09-20
    有用
    回复 3
  • lion
    lion
    2022-10-18

    楼主有解决吗

    2022-10-18
    有用
    回复 1
    • 小、海
      小、海
      2022-12-22
      解决了
      2022-12-22
      回复
  • 小、海
    小、海
    2022-09-20

    2022-09-20
    有用
    回复
登录 后发表内容