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

Vast tags question


Provided VAST code
https://www.somevastcode.com/?ad.php=aEoidfasdj&pw=__player-width__&ph=__player-height__&cb=__random-number__&vastref=__page-url__

Provides this as output:

https://www.somevastcode.com/?ad.php=aEoidfasdj&pw=__auto__&ph=__auto__&cb=13548648654&vastref=__http://www.sampledomainref.com__

So, here are 2 basic questions:

1. Why in the vast response i see __auto__ instead of actual width and height in pixels? I suppose player is set to make player autorespnsive, depending on the surfers window width and height, BUT, player should know width and height of the player for every surfer. How can i fix that? what to change in the JWPlayer macros?

2. Why in &vastref i see Ref Url with those "__" signs? should not it be simple:
&vastref=http://www.sampledomainref.com
??

5 Community Answers

Jessenia

JW Player Support Agent  
0 rated :

Which version of the player are you using? This is not expected behavior in the latest version of JW7 or any version of JW8. The responses should include the actual height and width in pixels. The responses also would not include “__” before or after the response.

Artur

User  
0 rated :

Thank you for your help Jessy, i'll talk with the website owner to check which way he inserts vast code. Seems that he is doing somehing wrong. JW player should be 7th.

Jessenia

JW Player Support Agent  
0 rated :

I’m happy to help. If you have any other questions, please feel free to Submit a Case directly to our Support Team from the homepage of your JW Player dashboard. Make sure you include a reproduction page with your player and ad setup so we can see how the ad tag macros are implemented.

a...

User  
0 rated :

Please Help . I want an ad code vast , and I put it exactly to work without problems



<script type='text/javascript'> jwplayer("vplayer").setup({
sources: [{file:"https://xysas.test.com/hls/2uwchc7nesl7fo7d5mzmqwvsmwr5cjh4ifcodunm3,cygdiobag3fq6ezxazq,kdgdiobag3guxzcb37a,qngdiobag3cgubl4ykq,.urlset/master.m3u8"},{file:"https://xysas.test.com/2uwchc7nesl7fo7d5mzmqwvsmwr5cjh4ifcodunm3qngdiobag3cgubl4ykq/v.mp4",label:"720p"},{file:"https://xysas.test.com/2uwchc7nesl7fo7d5mzmqwvsmwr5cjh4ifcodunm3kdgdiobag3guxzcb37a/v.mp4",label:"480p"},{file:"https://xysas.test.com/2uwchc7nesl7fo7d5mzmqwvsmwr5cjh4ifcodunm3cygdiobag3fq6ezxazq/v.mp4",label:"240p"}],
image: "https://xysas.test.com/i/07/00000/v4zvny4qc43r.jpg",
width: "100%",
height: "100%",
stretching: "uniform",
duration: "6602",
aspectratio: "16:9",
preload: 'metadata',
androidhls: "true",
hlshtml: "true",
primary: "html5",
startparam: "start"

,tracks: []
,"sharing": {code: "%3CIFRAME SRC%3D%22https%3A%2F%2Ftest.com%2Fembed-v4zvny4qc43r.html%22 FRAMEBORDER%3D0 MARGINWIDTH%3D0 MARGINHEIGHT%3D0 SCROLLING%3DNO WIDTH%3D640 HEIGHT%3D360 allowfullscreen%3E%3C%2FIFRAME%3E", link: "https://test.com/v4zvny4qc43r"},skin: "seven",abouttext:"", aboutlink:"https://test.com",logo: {file:"https://test.com/logo2.png", link:"https://test.com/", position:"top-left", margin:"5",hide: true}
});
var vvplay,vvad,x2ok=0;
jwplayer().onTime(function(x) {
if(5>0 && x.position>=5 && vvad!=1){vvad=1;$('div.video_ad_fadein').fadeIn('slow');}
if(x2ok==0 && x.position>=2970 && x.position<=(2970+2)){x2ok=x.position;}
});
jwplayer().onPlay(function(x) { doPlay(x); });
jwplayer().onComplete(function() { $('div.video_ad').show(); });

function doPlay(x)
{
$('div.video_ad').hide();
if(vvplay)return;
vvplay=1;
adb=0;
if( window.cRAds === undefined ){ adb=1; }
$.get('https://test.com/dl?op=view&file_code=v4zvny4qc43r&hash=829-176-45-1513653108-afa0f2d2d6116eca2de0ee6b323728b7&embed=1&adb='+adb, function(data) {$('#fviews').html(data);} );


}
jwplayer().onReady(function(){


//var mybtn=$("<div style='padding-left: 5px; margin-right: 5px; margin-top: 10px; background-image: url(/img/ico.png);background-repeat: no-repeat;' class='jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo'></div>");
//mybtn.click(showCCform);
//$(".jw-controlbar-right-group").append(mybtn);
});




</script>
<Script>
$(function() {

});
</Script>

Jessenia

JW Player Support Agent  
0 rated :

You must partner with an Ad Server, who would provide you with an ad tag URL. An Enterprise License is required for ad playback support.

This question has received the maximum number of answers.