- 为什么调用requestPictureInPicture无效并报错?
页面上放了一个按钮,调用startPicInPic,进入小窗模式失败,报错如下: requestLivePlayerPictureInPicture:fail function cannot run on service [图片] 相关代码如下: <live-player id="player" src="{{pullUrl}}" mode="live" autoplay object-fit="fillCrop" bindstatechange="statechange" picture-in-picture-mode="{{['push']}}" bindenterpictureinpicture="enterPictureInPicture" bindleavepictureinpicture="leavePictureInPicture" catchtouchmove="{{true}}" bindtap="togglePureModel" style="width: 100%; height: 100%;"> </live-player> this.setData({ player: wx.createLivePlayerContext('player') }) /** * 进入小窗模式 */ startPicInPic () { this.data.player.requestPictureInPicture({ success: res => { console.log('======================进入小窗成功======================') console.log(res) }, fail: err => { console.log('======================进入小窗失败======================') console.log(err) } }) wx.navigateBack() },
2021-05-26 - 真机调试报错,插件无法使用2.0模式怎么办?
Cannot read property 'Int8Array' of undefineddefine is not defined插件无法使用2.0,所以现在到底还能怎么用真机调试
2024-12-25 - 新版本开发者工具插件模式真机调试没2.0调试,默认的扫码报错?
插件模式下 老版本wechat_devtools_1.06.2206090_win32_x64开发者工具有真机调试2.0模式,但是扫码报错SyntaxError Error: SyntaxError line:1175,column:2969689,SyntaxError: Cannot declare a variable named arguments in strict mode. Stack: 新版本:(1 .06 2412040,真机模式只有一种,扫码报错ReferenceError: define is not defined 换了很多开发者工具版本都不能真机 [图片][图片]
星期一 15:56