/**
 * Entry point or the bridge between player wrappers and core
 * @author Aamir khan
 * @module DPlayer
 * @namespace DPlayer
 */

import coreEvents from "./modules/coreEvents";
import createPlayer from "./modules/createPlayer";

const DPlayer = Object.create(null);

/**
 * create, validate and initialize the given player with the given config
 * @param {Constructor} playerWrapper the implementation of the player
 * @param {Object} config player Configuration
 */
DPlayer.createPlayer = createPlayer;
DPlayer.events = coreEvents;


export default DPlayer;