mediaelement / mediaelement-plugins

Plugins for the main mediaelement project
406 stars 138 forks source link

Support VAST/VPAID JS media #36

Open bkolo opened 7 years ago

bkolo commented 7 years ago

It would be helpful to see an example or sample code of the vast/vpaid plugin working.

I have tried setting the vastAdsType, vastAdTagUrl as well as adsPrerollMediaUrl[] but the best I could get was the ad plugin calling the vast ad and raising an error "Uncaught (in promise) DOMException: The element has no supported sources".

regards, Bob

bkolo commented 7 years ago

https://a.tribalfusion.com/v.vast?site=internetvideoarchive_AdoTube&adSpace=internetvideoarchive_adotube_html5_test&ad_type=preroll&vpaid=1&rtb=0&p9_param1=&p9_param2=&p9_param3=&url=&ppd=&platform_version=vast20html5&cb=59076c35428bc0.75593526

I shouldn't call it new, but now that vpaid/flash is almost extinct, vpaid ads are referencing .js instead of .swf as they are more cross platform friendly.

rafa8626 commented 7 years ago

Do you happen to know which version this VAST URL is?

bkolo commented 7 years ago

This is Vast 2.0 still. The main difference is in the Creatives > Creative > Linear > MediaFiles > MediaFile

rafa8626 commented 7 years ago

And those JS should be instantiated at the end of body? I'm just not familiarized with that structure

bkolo commented 7 years ago

Sorry, I am not certain whether it is instantiated at end of body or not. Here is an example page. http://mailonline.github.io/videojs-vast-vpaid/index_5.html

rafa8626 commented 7 years ago

Just as an FYI I'm working on improving the VAST plugin; I don't like the idea of supporting Flash but I'll definitely work on supporting JS from the tags. If you have any more samples I can use to test this I'd appreciate it. Also the plugin should support VAST 2 and 3 and VPAID

rafa8626 commented 7 years ago

Also include #22 in this thread

rafa8626 commented 7 years ago

@bkolo and @skoften I'd like to implement Google IMA SDK for this but it's still on Beta. Let's wait so they have support for 3.0 to make the migration to this library

arifje commented 6 years ago

Any update on this feature? Thanks.

arifje commented 6 years ago

Can you tell something about this feature? When is it planned?

elgrosboub commented 5 years ago

Any update on this feature? Thanks.