oiooooio
2021-08-18 09:08
采纳率: 71.4%
浏览 66
已结题

vue-video-player(vue2)视频组件层级问题

如下面代码和图片, 请问下如何解决这个层级问题,在安卓,苹果的微信上都ok,在小米手机自带的浏览器里就如图所示, chrome是好的.


<template>
    <view>
        <!-- x5-video-player-type='h5-page'
             webkit-playsinline
             x5-playsinline -->
        <video-player class="vjs-custom-skin"
                      ref="videoPlayer"
                      :playsinline="true"
                      :options="playerOptions"
                      @play="onPlayerPlay($event)"
                      @pause="onPlayerPause($event)"
                      @ended="onPlayerEnded($event)"
                      @loadeddata="onPlayerLoadeddata($event)"
                      @waiting="onPlayerWaiting($event)"
                      @playing="onPlayerPlaying($event)"
                      @timeupdate="onPlayerTimeupdate($event)"
                      @canplay="onPlayerCanplay($event)"
                      @canplaythrough="onPlayerCanplaythrough($event)"
                      @ready="playerReadied"
                      @statechanged="playerStateChanged($event)">
        </video-player>
    </view>
</template>

img

  • 收藏

2条回答 默认 最新

相关推荐 更多相似问题