Skip to content

帮助:四(多)宫格情况下,只有第一个画面有loading动画 #48

@chenyanter

Description

@chenyanter
                  <div class="single-video"  v-for="(playUrl,index) in playUrlList" @click="handleClickVideo(playUrl)" :key="index">
                    <easy-player
                        live
                        muted
                        autoplay
                        :ref = "'EasyPlayerRef' + index"
                        :data-index="index"
                        alt="无信号"
                        :reconnection = "reconnection"
                        :video-url="playUrl.liveUrl"
                        style="z-index: 1;width: 200px;height: 130px;margin: 6px;pointer-events: none;"
                        @error="restartPlayer"
                        @ended="restartPlayer"
                      />
                  </div>

上面写法,页面出来之后,只有第一个视频窗口有loading动画,其他窗口都没有,这里应该怎么写才能让所有窗口都有loading动画

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions