googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

IMA SDK not working on Android chrome browser #933

Closed eliasasmar closed 4 years ago

eliasasmar commented 4 years ago

Dears, I have implemented the IMA SDK into my website and the ads are working perfectly on all devices (laptops, ios phones ...) except on Android with Chrome version 84.0.4147.125 the ad didn't play. I am using the VideoJS IMA plugin. You can find below a link where I have implemented the video. https://www.specialarabia.com/en/details/Makeup-Tutorial-with-Fady-Kataya.

Please advise if anyone can help. Thank you

Kiro705 commented 4 years ago

Hello @eliasasmar ,

Sorry for the delayed reply. I was aware of an issue with Chrome v84 and IMA on Android, but I believe the issue was resolved.

However when checking your link, ads were not able to be played, and I received the following error: videojs.ima.js:1447 AdsLoader error: AdError 303: No Ads VAST response after one or more Wrappers

Are you also seeing this 303 error currently? Also, are you still experiencing issues with Chrome on Android?

Thank you, Jackson IMA SDK DevRel

eliasasmar commented 4 years ago

Hi Jackson,

Thanks for your reply. Yes I am still facing the same problem on mobile android. The ads are not playing on mobile. You can check below a new video we added on the website. The Ad is working perfectly on laptop once we click the play button but on android nothing happens. https://www.specialarabia.com/en/details/L-Oreal-Paris-highlighting-the-Regions-most-inspiring-women

The error you mentioned is not showing but Once I open google chrome console in browser and click on play I am getting the below error Uncaught TypeError: Cannot read property 'innerHTML' of null at Ads.log (ads.js?v=1:110) at Ads.onAdEvent (ads.js?v=1:106) at Hh (ima3.js:112) at Y.l.dispatchEvent (ima3.js:110) at dy (ima3.js:471) at Y.Zd (ima3.js:468) at Hh (ima3.js:112) at Vv.l.dispatchEvent (ima3.js:110) at Vv.F (ima3.js:404) at Eh (ima3.js:107) at Bh (ima3.js:108) at b (ima3.js:105)

Please advise Thank you Elias Asmar

Kiro705 commented 4 years ago

Hello @eliasasmar ,

Sorry for the delay in response. I was able to reproduce the issue using a Pixel 3 device and the web page provided. I was also able to reproduce the issue on the IMA's video suite inspector. This suggests to me that it is an issue with the IMA SDK itself and not the videojs-ima plugin. I will be raising an issue with the IMA team to resolve this bug.

As a note, this was not reproducible using the an Android emulator from desktop chrome.

Thank you, Jackson IMA SDK DevRel

Kiro705 commented 4 years ago

Hello @eliasasmar ,

After talking with the IMA team, it looks like there will not be a change coming from the SDK to fix this issue. As a workaround I recommend setting adsRenderingSettings in the additional settings section to avoid type 'application/x-mpegURL' type. Please see the below example on how to set the adsRenderingSettings object.

adsRenderingSettingsObject = {
    mimeTypes: [
        'video/mp4',
        'video/webm',
    ],
}

Let me know if you have any follow up questions,

Thank you, Jackson IMA SDK DevRel