ios通过 wx.config 调用play 方法可以实现自动播放,亲测有效
wx.config({
debug: false,
appId: '111',
timestamp: '111',
nonceStr: '111',
signature: '111',
jsApiList: []
})
wx.ready(function() {
let video = document.querySelectorAll("video")[0];
video.play();
});
安卓 使用上述方法无效,尝试其他方法也无法实现,目前只能打开video controls 属性,通过点击按钮进入直播