收藏
回答

IOS使用video组件投屏时只能投声音,没有画面,这是什么问题?

 <video

            :key="videoReloadKey"

            :class="{ 'video-hidden': settings.hideVideo }"

            id="videoPlayer"

            ref="videoPlayerRef"

            :src="currentVideo.url"

            :title="currentVideo.title"

            :controls="showProgressBar"

            :autoplay="pendingAutoPlayVideoOnCanplay"

            :show-center-play-btn="false"

            :enable-danmu="false"

            :danmu-btn="false"

            :show-casting-button="true"

            :show-fullscreen-btn="false"

            class="video-player"

            @play="onVideoPlay"

            @pause="onVideoPause"

            @ended="onVideoEnded"

            @timeupdate="onVideoTimeUpdate"

            @loadedmetadata="onVideoLoadedMetadata"

            @canplay="onVideoCanplay"

            @waiting="onVideoWaiting"

            @error="onVideoError"

            @fullscreenchange="onFullscreenChange"

            @castinguserselect="onCastingUserSelect"

            @castingstatechange="onCastingStateChange"

          >


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

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    01-15
    有用
    回复
登录 后发表内容