openplayerjs: VPAID errors events not emitted
Describe the bug [ima.admanager.VpaidAdManager] Vpaid Error: Ad blocked not thrown on “playererror” event. I am trying to load an VPAID ad on open playe audio Instance. The above mentioned error is thrown by ima sdk in the console when we use debug=true in the ads option.
To Reproduce Use any VPAID enabled VAST XMLs
Expected behavior Ad error: AdError 901: An unexpected error occurred within the VPAID creative. Refer to the inner error for more info. Caused by: Error: Error: Ad blocked The above error should trigger onError method which is not happening and silently failing after adsLoaded event. Used https://googleads.github.io/googleads-ima-html5/vsi/ to test the vast url and capture the above error.
Code Snippet
const player = new OpenPlayer("audio", {
ads: {
debug: true,
src: <Dummy VPAID enabled VAST url>,
},
controls: {
layers: {
left: ["play"],
middle: ["progress"],
right: ["time"],
},
},
onError: (e) => {
console.log("error");
console.log(e);
},
});
player.init();
Screenshots

warning can be observed in the console but not passed on onError method.
Desktop (please complete the following information):
- OS: macOs
- Browser: Chrome
- Version: Openplayer js v2.8.2
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (9 by maintainers)
Hey @rafa8626 Everything is working now 😃. Please release the tag and let me know
Hello, yes if the ad blocker is on then the network call to ima ask will time out agreed. But this error is due to the VPAID settings of ads manager. The url I am trying to use, requires secure VPAID mode and since the default settings is insecure, hence the error is thrown on adsManager Ad error event which is currently not being captured. I will provide you with the sample URL, that might help you to analysis the issue. I appreciate the quick response from your side. You are really doing a great job by providing an open source audio vast player which is I guess the only one available in the community right now.