简体   繁体   中英

How can I test if a VAST ad tag is working in JWPlayer?

I'm integrating JWPlayer with VAST so that if I can't find any ads from a primary source, I'll fallback to a second source. I was relying on onError() and onSetupError() to do this, but I'm having some issues.

Is there any way of testing for a VAST ad response and then act accordingly? Something like:

if (vast_response) [process ad]
else [use alternate source]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM