激励视频show()的时候没有反应,onError也监听不到错误,重新load()后show也是没反馈,是什么原因
let videoAd = wx.createRewardedVideoAd({
adUnitId: id
})
videoAd.offClose()
videoAd.offError()
videoAd.onClose(function (res) {
director.resume()
if (res.isEnded) {
bol = true;
} else {
bol = false
}
func(bol)
})
videoAd.onError(function (err) {
console.log('视频错误', err)
if (err.errCode) {
if (err.errCode != 1004) {
UIMgr.Instance.addToolTips('拉取广告错误,错误编号' + err.errCode)
} else {
UIMgr.Instance.addToolTips('由于播放广告太多或者其他问题,暂时无法拉取广告,请你稍后再试,错误编号' + err.errCode)
}
}
Video.ts.over()
if (playerData.infoData.VideoErrShareTime < 10) {
} else {
func(false)
}
})
videoAd.show()
.then(() => {
//@ts-ignore
wx.hideLoading()
})
.catch(() => {
// 失败重试
videoAd.load()
.then(() => {
videoAd.show()
//@ts-ignore
wx.hideLoading()
})
.catch(err => {
//@ts-ignore
wx.hideLoading()
console.log('激励视频 广告显示失败', err)
Video.ts.over()
AllAd.ts.showInterstitialAd(true, (bolS) => {
console.warn('视频错误 显示插屏', bolS)
func(bolS)
})
// func(false)
// AllAd.ts.share((shareBol)=>{
// func(shareBol)
// })
})
})

你好,近期存在问题广告,当前已修复,可以看看:
1. 当前是否还能复现
2. 必现 or 偶现
3. 提供 onError 以及 show().catch(res => console.log(res)) 报错详情
show方法后面的then和catch都加一个参数比如res,然后打印出来看下就知道了