收藏
回答

RTMP集成player,pusher时疑似BUG问题

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug live-player ,live-pusher 客户端 安卓 7.0.4 2.0.4

- 当前 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 个回答

  • 老五
    老五
    2019-07-02

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

    2019-07-02
    有用
    回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2019-06-18

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

    2019-06-18
    有用
    回复 1
    • 伟强
      伟强
      2019-06-18

      https://developers.weixin.qq.com/s/O5wMQdmh7v97

      rtmp地址是用srs创建的本地测试地址。输入正确的地址后,进入视频推流和拉流。

      点击 “停止推流” 按钮后会将播放拉流的视频的声音关闭。我们的预期是对播放器没有影响,推拉流都是相互独立的。

      目前在小米和锤子Pro2 测试有这个情况。 需要填入具有RTMP推拉流权限的APPID

      2019-06-18
      回复
登录 后发表内容