小程序
小游戏
企业微信
微信支付
扫描小程序码分享
Uncaught (in promise) FrameworkError
Object { errMsg: "removeVideoPlayer:fail" }
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
楼主这个问题解决了吗?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
完整报错信息
Object { <span style="color: #a71d5d;">errMsg</span>: <span style="color: #183691;">"removeVideoPlayer:fail"</span> }<div class="eruda-json eruda-hidden"></div>
at e.value (wagame://servicewechat.com/WAGameVConsole.html:27576:37895)
at new e (wagame://servicewechat.com/WAGameVConsole.html:27576:36659)
at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:32217)
at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:31461)
at f.e.<computed> [as error] (wagame://servicewechat.com/WAGameVConsole.html:27576:16382)
at wagame://servicewechat.com/WAGameVConsole.html:27576:19192
at Array.forEach (<anonymous>)
at console._log (wagame://servicewechat.com/WAGameVConsole.html:27576:19080)
at <anonymous>:1:9
/** 拉起插屏广告 */
public showInsert() {
if (!this.has_insert) {
return;
}
const nowTime: number = Global.util.timestamp();
if (nowTime - this.insertAdLastTime <= InsertAdTime) {
Global.log.info("insertAd err 插屏广告显示小于" + InsertAdTime);
this.insertAdLastTime = nowTime;
if (this.insert_playing) return this.showToast("载入中");
this.insert_playing = true;
/** 关闭回调 */
let callback = (res: any) => {
Global.log.info("insertAd onClose" + res);
this.insertAd.offClose(callback); // 取消监听
this.insert_playing = false;
Global.log.info("insertAd onClose2222" + res);
// 这里也可以打印,然后就报错了,起码不是我这里代码的问题
// 这个方法我已经用好多项目了,是最近发现的问题
};
// 开启监听
this.insertAd.onClose(callback);
// 拉起插屏广告
this.insertAd
.load()
.then(() => {
.show()
Global.log.info("展示插屏广告成功!");
})
.catch((err) => {
Global.log.error("展示插屏广告失败!err =", err);
});
Global.log.info("拉起插屏===》没有", err);
this.has_insert = false;
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
楼主这个问题解决了吗?
完整报错信息
Uncaught (in promise) FrameworkError
Object { errMsg: "removeVideoPlayer:fail" }
Object { <span style="color: #a71d5d;">errMsg</span>: <span style="color: #183691;">"removeVideoPlayer:fail"</span> }<div class="eruda-json eruda-hidden"></div>
at e.value (wagame://servicewechat.com/WAGameVConsole.html:27576:37895)
at new e (wagame://servicewechat.com/WAGameVConsole.html:27576:36659)
at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:32217)
at t.value (wagame://servicewechat.com/WAGameVConsole.html:27576:31461)
at f.e.<computed> [as error] (wagame://servicewechat.com/WAGameVConsole.html:27576:16382)
at wagame://servicewechat.com/WAGameVConsole.html:27576:19192
at Array.forEach (<anonymous>)
at console._log (wagame://servicewechat.com/WAGameVConsole.html:27576:19080)
at <anonymous>:1:9
安卓报错后也正常,IOS有时会卡死
/** 拉起插屏广告 */
public showInsert() {
if (!this.has_insert) {
return;
}
const nowTime: number = Global.util.timestamp();
if (nowTime - this.insertAdLastTime <= InsertAdTime) {
Global.log.info("insertAd err 插屏广告显示小于" + InsertAdTime);
return;
}
this.insertAdLastTime = nowTime;
if (this.insert_playing) return this.showToast("载入中");
this.insert_playing = true;
/** 关闭回调 */
let callback = (res: any) => {
Global.log.info("insertAd onClose" + res);
this.insertAd.offClose(callback); // 取消监听
this.insert_playing = false;
Global.log.info("insertAd onClose2222" + res);
// 这里也可以打印,然后就报错了,起码不是我这里代码的问题
// 这个方法我已经用好多项目了,是最近发现的问题
};
// 开启监听
this.insertAd.onClose(callback);
// 拉起插屏广告
this.insertAd
.load()
.then(() => {
this.insertAd
.show()
.then(() => {
Global.log.info("展示插屏广告成功!");
})
.catch((err) => {
this.insert_playing = false;
Global.log.error("展示插屏广告失败!err =", err);
});
})
.catch((err) => {
Global.log.info("拉起插屏===》没有", err);
this.has_insert = false;
this.insert_playing = false;
return;
});
}