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

Double firing of Ad Beacon on iPhone


Not sure if this is an issue or expected behaviour on an iPhone. (It only happens on iPhone as the video gets played in the native iOS player, and an iPad does not do that by default)

To replicate the issue.
1. Play a video (the pre-roll ad starts to play)
2. Click Done at any stage before the ad finishes
3. Play the video again (the pre-roll goes back to the start and plays)
* If you click Done again and hit play again, the ad starts from where it was when you hit Done. So it only rewinds when you hit Done the first time.
The issue, because of the rewind, is that the Ad Beacon gets fired twice and shows the ad as being viewed twice (Great for me, but my ad provider doesn't really like it)
I've tried this on a few different iPhone devices, the latest being iPhone 5 running iOS 7.1.2

You can try it out here - http://theboost.tv/watch-CFCB8A

Here is the JW code

jwplayer("playerxxxx").setup({image:"http://theboost.tv/images/uploads/video/FRS-Corey-White-Chivalry-is-dead.-Corey-White-explains-exactly-why-that-is_thumb.jpg",file:"http://player.vimeo.com/external/88703421.mobile.mp4?s=9b1a6b0e0abd6a7d72c9f50ff7f27f16",width:"300",height:"190",primary:"flash",advertising:{client:"vast",schedule:{preroll:{tag: "http://search.spotxchange.com/vast/2.00/85394?VPI=MP4&content_page_url=https%3A%2F%2Ftheboost.tv%2Fwatch-CFCB8A&cb=0836406189&device[os]=iOS&device[make]=Apple&device[model]=iPhone&device[devicetype]=1&device[dnt]=0&ip_addr=x.x.x.x&device[ua]=Mozilla%2F5.0+%28iPhone%3B+U%3B+CPU+iPhone+OS+5_1_1+like+Mac+OS+X%3B+da-dk%29+AppleWebKit%2F534.46.0+%28KHTML%2C+like+Gecko%29+CriOS%2F19.0.1084.60+Mobile%2F9B206+Safari%2F7534.48.3",offset: "pre"}}}});

Any help is much appreciated.

5 Community Answers

Todd

JW Player Support Agent  
0 rated :

I’ve tried a few things with our Javascript API calls to suppress the behavior where the ad plays again. Unfortunately I have not had any success. According to one of the more senior support engineers, this seems to be a problem with the way the iOS native player handles <video> tags.

info

User  
0 rated :

Is there anyway of suppressing the ad beacon from firing a second time? That's the real issue.

Todd

JW Player Support Agent  
0 rated :

Here’s the code I was trying. It’s similar to the method we use to suppress onPlay from executing code more than once:

<div id="myElement"></div> <script> jwplayer("myElement").setup({ image:"bunny.jpg", file:"bunny.mp4", width:"300", height:"190", primary:"flash", advertising:{ client:"vast" } }); var alreadyPlayedAd = false; jwplayer().onBeforePlay(function(){ if (alreadyPlayedAd == false) { alreadyPlayedAd = true; jwplayer().playAd('http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test'); } }); jwplayer().onAdImpression(function(){ console.log('Ad Impression'); }); </script>

I only see ‘Ad Impression’ once in my iPhone’s console. I also hooked my iPhone up to a web proxy so I could see all the traffic. I see only one request for the ad tag and one ad impression tracking ping, but I do see multiple internal tracking pings.

Can you ask your ad provider what traffic they are seeing on their end?

info

User  
0 rated :

Oh nice. Ok, I will give this a try and see if it works. Thanks a bunch! I'll update this once I've tested, so please dont close this ticket. Cheers.

Todd

JW Player Support Agent  
0 rated :

Sounds good. Please let us know what you find.

-Todd

This question has received the maximum number of answers.