原生微信小程序播放rtmp

废话不多说,,上代码
1、wxml

// liverUrl  播放的rtmp流

2、js

data:{
liveUrl:‘your address’
}

methods:{

statechange(e) {
    console.log('live-player code:', e.detail.code)
  },
  error(e) {
    console.error('live-player error:', e.detail.errMsg)
  }

}

// 代码仅供参考,如有错误,请及时指出,

你可能感兴趣的:(微信小程序,微信小程序,前端,小程序)