最基本live-player写法只有声音,不显示画面
求问以下写法问题在哪,目前这个组件在iOS和Android手机上都只有声音,没有画面。
设置了此width:100%;height:100%。 页面是空白。
* 提供一个最简复现 Demo
<live-player class="live-wrap"
src="rtmp://live.hkstv.hk.lxdns.com/live/hks"
mode="live"
autoplay="true"
object-fit="fillCrop"
debug="true"
bindstatechange="statechange"
binderror="error"
>
</live-player>
视频用暴风影音打开过,确认视频没问题,只不过画质有点儿虚。
求问。谢谢大神。
10 回复
<view id="video-box">
<live-player class="live-wrap"
src="rtmp://live.hkstv.hk.lxdns.com/live/hks"
mode="live"
autoplay="true"
bindstatechange="statechange"
binderror="error"
background-mute="true"
min-cache="1"
max-cache="1"
>
<cover-view class="play-view">
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
<cover-view>层层嵌套,层层嵌套,层层嵌套</cover-view>
</cover-view>
</live-player>
</view>