source/js/le-player.js
/**
	 * Function, than init all plugins from player options.
	 * If plugin doesn't exist throw an error
	 *
	 * @access private
	 * @returns {Player} this
	 */
Function, than init all plugins from player options.
If plugin doesn't exist throw an error

@access private
@returns {Player} this
Function than init all plugins from player options . If plugin doesn ' t exist throw an error @access private @returns { Player } this
_initPlugins() {
		if (this.options.plugins) {
			for (const name in this.options.plugins) {
				if(!this.options.plugins.hasOwnProperty(name)) return;
				const pluginOptions = this.options.plugins[name];
				if(this[name]) {
					if(pluginOptions) {
						this[name](pluginOptions);
					}
				} else {
					console.error(`Plugin '${name}' doesn't exist`);
				}
			}
		}
		return this;
	}
_initPlugins ( ) { if ( this . options . plugins ) { for ( const name in this . options . plugins ) { if ( ! this . options . plugins . hasOwnProperty ( name ) ) return ; const pluginOptions = this . options . plugins [ name ] ; if ( this [ name ] ) { if ( pluginOptions ) { this [ name ] ( pluginOptions ) ; } } else { console . error ( ` ${ name } ` ) ; } } } return this ; }
Function, than init all plugins from player options.
Function than init all plugins from player options .