RTMP集成player,pusher时疑似BUG问题
发布于 5 年前 作者 fengmin 9669 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

点击停止推流是会自动关掉播放的声音

  • 预期表现

点击停止推流按钮后仅仅停止推流,不要关闭播放器的声音。

  • 复现路径

<view class=“container”>

<view >

<live-player id=“player” src="{{player_src}}" mode=“RTC” autoplay bindstatechange=“playerstatechange” binderror=“playererror” />

<live-pusher id=“pusher” url="{{pusher_url}}" mode=“RTC” autopush bindstatechange=“pusherstatechange” style=“width: 300px; height: 225px;”/>

</view>

<view class=‘btn-container’ style=“flex-direction:row;”>

<view class=“btn-area”>

<button bindtap=“playerbindPlay” type=“primary”>播放</button>

<button bindtap=“playerbindPause” type=“primary”>暂停</button>

<button bindtap=“playerbindStop” type=“primary”>停止</button>

<button bindtap=“playerbindResume” type=“primary”>恢复</button>

<button bindtap=“playerbindMute” type=“primary”>静音</button>

</view>

<view class=“btn-area”>

<button bindtap=“pusherbindStart” type=“primary” >播放推流</button>

<button bindtap=“pusherbindPause” type=“primary”>暂停推流</button>

<button bindtap=“pusherbindStop” type=“primary”>停止推流</button>

<button bindtap=“pusherbindResume” type=“primary”>恢复推流</button>

<button bindtap=“pusherbindSwitchCamera” type=“primary”>切换摄像头</button>

</view>

</view>

</view>

  • 提供一个最简复现 Demo
2 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

同问 我也是遇到这个问题 求官解

回到顶部