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

Ad not playing on mobile browser


Hi,

i'm currently testing an ad video from SpotXchange and here is the code

<script type='text/javascript'>
jwplayer('my-player').setup({
file: 'https://www.youtube.com/watch?v=sp9XhZMRqwU',
image: '//www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg',
width: '100%',
aspectratio: '3:2',
primary: 'flash',
advertising: {
client: 'googima',
tag: 'http://search.spotxchange.com/vast/2.00/85394?VPI=MP4&content_page_url=http%3a%2f%2fwww.era.fm%2fCMSPages%2fPortalTemplate.aspx%3faliaspath%3d%252fDev%252fadvideo%26cb%3d6%26device%5bdevicetype%5d%3d1%26device%5bdnt%5d%3d0%26ip_addr%3d10.1.0.99%26device%5bua%5d%3dMozilla%2f5.0+(Linux%3b+Android+4.4.2%3b+Nexus+4+Build%2fKOT49H)+AppleWebKit%2f537.36+(KHTML%2c+like+Gecko)+Chrome%2f34.0.1847.114+Mobile+Safari%2f537.36'
}
});
</script>

i can't seem to load the ad from mobile device browser but it was fine using pc browser though. please advise.

5 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi,
We do not support the use of our ads product with Youtube content. You will need to use an actual hosted file or stream in order to get this functional.

farid_rahim

User  
0 rated :

Hi,

i'm still having the same problem using uploaded video from media library. here is my testing page

http://www.era.fm/Dev/advideo.aspx

please advise, thank you.

Andrew

JW Player Support Agent  
0 rated :

Hmm I don’t seem to see an ad tag defined here. All that’s showing up is:
advertising: {
client: ‘googima’,
tag: ’’
}

farid_rahim

User  
0 rated :

Hi Andrew,

that is the expected behaviour where I set the tag to be empty if viewed on pc browser. You need to change to mobile browser agent to be able to see the tag. Try testing that page on a mobile device browser whether you are able to see the ad or not.

Thanks.

Andrew

JW Player Support Agent  
0 rated :

Indeed, I’m still seeing:
tag: ""
on Android. If you are setting a tag after player setup, this will not work. Any tags need to be defined prior to player setup, otherwise, you will potentially need to use a load() API call to reload the setup to configure an advertising block after the fact.

This question has received the maximum number of answers.