Implementing ads plugin

This commit is contained in:
ferdiemmen
2018-01-13 23:02:59 +01:00
parent d9ec1d1b8e
commit 025fc1090b
12 changed files with 502 additions and 5 deletions

View File

@ -12,6 +12,7 @@ import utils from './utils';
import Console from './console';
import Storage from './storage';
import Ads from './plugins/ads';
import captions from './captions';
import controls from './controls';
@ -273,6 +274,9 @@ class Plyr {
if (this.isHTML5 || (this.isEmbed && !this.supported.ui)) {
ui.build.call(this);
}
// Setup ads if provided
this.ads = new Ads(this);
}
// ---------------------------------------