问题模块 | 框架类型 | 问题类型 | API/组件名称 | 终端类型 | 操作系统 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|---|---|
API和组件 | 小程序 | Bug | webrtc-room | Android | 6.6.7 | 2.2.2 |
想给 实时音视频里的 live-player使用requestFullScreen方法进行全屏,发现没有效果。
而且调用官方webrtc-room.js写的
/** * 暂停 */ pause: function () { if (!self.data.pusherContext) { self.data.pusherContext = wx.createLivePusherContext( 'rtcpusher' ); } self.data.pusherContext && self.data.pusherContext.pause(); self.data.members.forEach( function (val) { val.playerContext && val.playerContext.pause(); }); }, |
也只是live-pusher暂停了,其他live-player没有暂停,还收到声音跟画面。
请问是webrtc-room里的live-player不可以控制吗?还是说我调用的不正确?
网友回复
不想长大的江户川:
live-pusher的 pause() 方法只是暂停了画面,声音还是可以推送听到。
nickname:
你好,请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。