< live-pusher id = "pusher" url = "rtmp://www.dlyunzhi.cn:111111111111" mode = "RTC" bindstatechange = "statechange" autopush = "true" enable-camera = "false" style = "width: 300px; height: 225px;" /> |
官方文档
enable-camera | Boolean | true | 开启摄像头 |
我写成了false了,还是一样会开启摄像头,为什么???
2。LivePusherContext
与页面的
组件绑定 这个是怎样绑定的????
我写了
<live-pusher id="pusher"
js 里
const livePusherContext = wx.createLivePusherContext("pusher");
我想用 livePusherContext.start 为什么不起作用,success、fail、complete全都没反应,求解?
enable-camera文档注明是Boolean类型,enable-camera="{{false}}"
问题1.只要是授权了,音频、视频 都会开启,拒绝开启,就会不推流