+
95
-

微信小程序如何js控制live-pusher/live-player的播放暂停结束等操作

微信小程序如何js控制live-pusher/live-player的播放暂停结束等操作


网友回复

+
15
-

wxml

  <live-pusher id="pusher" url="https://domain/push_stream" mode="RTC" bindstatechange="statechange" style="width: 300px; height: 225px;" />

js

Page({
  statechange(e) {
    console.log('live-pusher code:', e.detail.code)
  }
  onReady: function () {
    this.context= wx.createLivePusherContext("pusher");
    this.context.start({
...

点击查看剩余70%

我知道答案,我要回答