I have a requirement to call an API to my server from the device before playing the media file in VAST Tag.
I am able to load the javascript with
<MediaFiles>
<MediaFile delivery="progressive" width="16" height="9" type="application/javascript" apiFramework="VPAID">
<![CDATA[<URL TO JS]]>
</MediaFile>
</MediaFiles>
But how do I call a function inside the loaded javascript and then load the 3rd party VAST TAG with some information.
EDITED
I need to load 3rd party VAST tag inside a 3rd party video player. We have the URL to the 3rd party VAST like : http://demo.tremorvideo.com/proddev/vast/vast_wrapper_linear_1.xml
I do not have the control where the URL will be loaded on which VAST player. I am testing here : http://zutils.zedo.com/vastvalidator/#/vastInspector
But before loading the VAST URL, I need to make REST API call to our backend, get the response and make some decisions on the client, then call the 3rd party VAST.
So after our rest API call, the 3rd party VAST might look like : http://demo.tremorvideo.com/proddev/vast/vast_wrapper_linear_1.xml?rest_response=
How do I create a wrapper VAST Tag to make this happen?