live-player组件真机调试和运行均黑屏

发布于 7 年前作者 ldeng5058 次浏览最后编辑 7 年前来自 issues

wxml:

<live-player id="livePlayer" class="video" autoplay="true" mode="live" max-cache="0.8" muted="{{sound}}" src="https://flvopen.ys7.com:9188/openlive/*************.hd.flv" bindstatechange="statechange" binderror="error" bindnetstatus="netstatus"></live-player>


js:

statechange(e) {

    console.log('live-player code:', e.detail.code);

  },


  error(e) {

    console.error('live-player error:', e.detail.errMsg)

  },


  netstatus(e){

    console.error('live-player netInfo:', e.detail.info)

  },

打开页面后live-player一直黑屏,不论是真机调试还是安卓体验版均是,bindstatechange也无法抓取到任何信息,也没有报错

推流地址rtmp与flv都测试过,其中flv为公网ip且在浏览器上播放正常

2 回复
songfang
songfang1 楼5 年前

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

zfan
zfan2 楼5 年前

更换了网络上一些可用rtmp地址还是不行,接口权限已经正常开通