ExoPlayer not loading Ads from external VAST url

797 Views Asked by At

I am trying to load VAST URL in ExoPlayer.

I get success while trying this url pubads

But I am trying with my own VAST URL , It is not working
url

Error Showing: howing No 'Access-Control-Allow-Origin' header is present on the requested resource."

Is it posible to use external ads in ExoPlayer with IMA SDK .

1

There are 1 best solutions below

0
On

After a lot of research and reading, I just found the solution to this issue

First of all, this is a whole new topic for me and I don't even know what is a VAST ad tag URL

So I will answer this question as a beginner only for beginners

First of all we need to understand what is VAST ad tag URL

VAST

VAST stands for Video Ad Serving Template. Simply put, it’s an XML script developed by the IAB. The most popular ad standard, VAST creates a communication link between the ad server and the video player

So we need a VAST server to host the URL

This is what I missed understanding.

The exoplayer support VAST URL from a VAST server, The documentation explained everything briefly.

So simply you can load any custom VAST URL in any VAST supported Video player