MailOnline / videojs-vast-vpaid

video.js vast plugin
MIT License
296 stars 232 forks source link

AD ERROR: undefined timeout in Chromium & chrome #148

Open ankurhora opened 8 years ago

ankurhora commented 8 years ago

Hi, My vpaid ads works fine in firefox but returns this error in chrome

function trackAdError(error, vastResponse) { player.trigger({type: 'vast.adError', error: error}); cancelAds(); if (console && console.log) { console.log('AD ERROR:', error.message, error, vastResponse); //this } }

have tried increasing the timeout but still no success.. After reading i got to know that chrome disabled flash default support and this error is mainly beacuse of flash-javascript bridge.. Not too sure what this is and what is causing this.

Please if there is a solution.

ankurhora commented 8 years ago

@massa84 I am sorry for posting this again and again. I was in deep with this issue since 3-4days and not able to solve. will keep in mind the notes for future.

Although #141 was totally different from this issue. #141 was occuring due to CORS which i fixed by mysylf from googling about it.

148 is the issue i am currently facing.

I can understand and have read about opening the file from localhost but for some reason i need to open the file directly (file:///) which for some reason working fine with firefox but not with chromium and safari.

Again apologies if i have got out of line as i am getting familiar with github Thanx

brokenmass commented 8 years ago

can you try using your tag in our demo : http://mailonline.github.io/videojs-vast-vpaid/index_4.html and verify if it works ?

ankurhora commented 8 years ago

It works perfectly fine on your demo for both index_4.html and index_5.html. Set it up locally and again works fine. But when i try to access it from browser file:/// thing.. on firefox it works but fails on chromium and safari. I know but for some weird reason i need to access it by file:///

brokenmass commented 8 years ago

Can you try execute chrome with security disabled and access to file enabled ?

First close all the running chrome instances. Then

brokenmass commented 8 years ago

also try downloading the latest version of this plugin as we introduced some updates to VPAIDFLASHClient e VPAIDHTML5Client:

https://github.com/MailOnline/videojs-vast-vpaid/tree/RELEASE/bin

ankurhora commented 8 years ago

Yup.. works like a charm!! Thanx a lot buddy.

One more thing do i have to everytime launch my browser like this (with flags) to get thing done or these could be something done in any of the js file. Also can you please explain what was this and why its working now?