mediaelement / mediaelement

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.
http://mediaelementjs.com/
MIT License
8.18k stars 1.58k forks source link

Adding VAST ads into Wordpress native video player? #2807

Open bidfor opened 4 years ago

bidfor commented 4 years ago

Hi, is it possible to add VAST ads into the Wordpress native video player?

jaapmarcus commented 4 years ago

Currently the native Wordpress player is terrible for modifying This is the same reason why I created a plugin for Wordpress https://github.com/jaapmarcus/mediaelement-wordpress

It works based on the native wp_video functions but also add support to load plugins and other tools.

The "native" vast support https://github.com/mediaelement/mediaelement-plugins/tree/master/src/ads is quite outdated...

The ads-vpaid-ads (https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads-vast-vpaid/ads-vast-vpaid.js) I haven't tested yet.

I am currently a system written by my self for this reason...

WesleyCarnicl commented 1 year ago

So we just copy the code from there and use it

WesleyCarnicl commented 1 year ago

Would you be adding VAST or google ima to it soon

Currently the native Wordpress player is terrible for modifying This is the same reason why I created a plugin for Wordpress https://github.com/jaapmarcus/mediaelement-wordpress

It works based on the native wp_video functions but also add support to load plugins and other tools.

The "native" vast support https://github.com/mediaelement/mediaelement-plugins/tree/master/src/ads is quite outdated...

The ads-vpaid-ads (https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads-vast-vpaid/ads-vast-vpaid.js) I haven't tested yet.

I am currently a system written by my self for this reason...

jaapmarcus commented 1 year ago

https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads/ads.js

Is probally not worth it unless you only have html5 video's

The other one hasn't been tested by me...

I have written my own google ima based system and it works fine. Need to test if it still works with the latest player...

WesleyCarnicl commented 1 year ago

Awesome I upload my videos to Youtube & Facebook so i was wondering is it possible for me to use them in a post with my google Certified publisher vast tag

https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads/ads.js

Is probally not worth it unless you only have html5 video's

The other one hasn't been tested by me...

I have written my own google ima based system and it works fine. Need to test if it still works with the latest player...

jaapmarcus commented 1 year ago

It doesn't work that well with video's hosted on Facebook / Youtube... Mainly on mobile..

WesleyCarnicl commented 1 year ago

https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads/ads.js

Is probally not worth it unless you only have html5 video's

The other one hasn't been tested by me...

I have written my own google ima based system and it works fine. Need to test if it still works with the latest player...

Is your google ima system open to other wordpress sites. like the code files cause i am trying to get more revenue from my site.

WesleyCarnicl commented 1 year ago

It doesn't work that well with video's hosted on Facebook / Youtube... Mainly on mobile..

Ok. I tried to doing the videojs way via node.js with the videojs google ima script

WesleyCarnicl commented 1 year ago

Currently the native Wordpress player is terrible for modifying This is the same reason why I created a plugin for Wordpress https://github.com/jaapmarcus/mediaelement-wordpress

It works based on the native wp_video functions but also add support to load plugins and other tools.

The "native" vast support https://github.com/mediaelement/mediaelement-plugins/tree/master/src/ads is quite outdated...

The ads-vpaid-ads (https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads-vast-vpaid/ads-vast-vpaid.js) I haven't tested yet.

I am currently a system written by my self for this reason...

What system you using

jaapmarcus commented 1 year ago

Currently the native Wordpress player is terrible for modifying This is the same reason why I created a plugin for Wordpress https://github.com/jaapmarcus/mediaelement-wordpress It works based on the native wp_video functions but also add support to load plugins and other tools. The "native" vast support https://github.com/mediaelement/mediaelement-plugins/tree/master/src/ads is quite outdated... The ads-vpaid-ads (https://github.com/mediaelement/mediaelement-plugins/blob/master/src/ads-vast-vpaid/ads-vast-vpaid.js) I haven't tested yet. I am currently a system written by my self for this reason...

What system you using

I use my own... That I have written myself but not yet published..

Wesley-Carnicle commented 4 months ago

@jaapmarcus wow congrats. I know video js does it I had it