friman / open-video-ads

Automatically exported from code.google.com/p/open-video-ads
0 stars 0 forks source link

Autoplay and empty VAST responses / ad server down #238

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Setup:  1 pre-roll spot (configured with autoplay:false) and 1 clip/show 
(configured with autoplay:true)
2. Set the server to an invalid url (simulating the server is down)
3. The server returns an empty VAST response

What is the expected output? What do you see instead?
The VAST request is done, and, as there are no ads clips to add, "nothing" in 
the playlist gets the autoplay:false, and the clip autoplays.I see this is the 
expected output, but maybe not the "desired" output (for example, if one page 
has 3 videos pointing to a dead ads server, the 3 videos would 
autoplay...).Maybe (as i'm pretty new to this), i'm missing something (some 
config option..).I guess i can handle this issue by listening to events and 
some javascript, but i think it'd be interesting to have it out-of-the-box.

Please provide any additional information below.

This is somehow related to issue 177 (Lazy mode).Both issues would need a 
not-clip-related "autoplay".In the "lazy load" issue, setting "autoplay" to 
"false" in the clip, (so it doesnt autostart,and the ads request is done after 
clicking in "play" for the first clip) would not suffice;the plugin would have 
to change the clip's autoPlay to "true" so the clip plays after the ads.

If i can be of any help testing/debugging/fixing, feel free to contact!

Original issue reported on code.google.com by dash...@gmail.com on 10 Jun 2010 at 7:52

GoogleCodeExporter commented 9 years ago
To deal with this, i've added a "pauseIfNoPreroll" config option, that 
overrides any previous "autoPlay" setting calculated in OpenAdStreamer.as..I 
chose this way to support different ways of specifying splash images (as player 
container background, as its childnodes,or in-playlist), that behave 
differently and would need different "pauseIfNoPreroll" values.

Original comment by dash...@gmail.com on 11 Jun 2010 at 8:49