Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

CORS issue when using hosted video as a pre-roll


Hi
First I've uploaded a video to my account.
Then I get its url (like http://content.jwplatform.com/videos/ftHaI1nN-N3Pdko1L.mp4) and created a vast3.0 tag. Its relative part is:
<VASTAdTagURI>
<![CDATA[
//content.jwplatform.com/videos/ftHaI1nN-N3Pdko1L.mp4
]]>
</VASTAdTagURI>
Then I tried to use it as a pre-roll in jw setup.
But when I checked the console log there was an error: "XMLHttpRequest cannot load http://content.jwplatform.com/videos/ftHaI1nN-N3Pdko1L.mp4. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://ui.globalmedia.exchange' is therefore not allowed access." So the video was not played obviously.
Is there any workaround to play a hosted video as a pre-roll?
Thanks.

3 Community Answers

Alex

JW Player Support Agent  
1 rated :

Hi, there.

The <VASTAdTagURI> element in an ad tag is for redirecting to another ad tag. When you want to specify the actual creative that your ad tag wants to play, you should use the <MediaFile> element instead. We have a great example of a proper VAST ad tag XML file on this support article: https://support.jwplayer.com/customer/en/portal/articles/1482127-static-vast-xml-tag

Please let me know if you need any more help or have any other questions.

Thank you!

r.gryadunov

User  
1 rated :

It worked, thank you very much

Alex

JW Player Support Agent  
1 rated :

Not a problem!

This question has received the maximum number of answers.