code: function Ads(player) {
  	    var _this = this;
  
  	    _classCallCheck(this, Ads);
  
  	    this.player = player;
  	    this.config = player.config.ads;
  	    this.playing = false;
  	    this.initialized = false;
  	    this.elements = {
  	      container: null,
  	      displayContainer: null
  	    };
  	    this.manager = null;
  	    this.loader = null;
  	    this.cuePoints = null;
  	    this.events = {};
  	    this.safetyTimer = null;
  	    this.countdownTimer = null; // Setup a promise to resolve when the IMA manager is ready
  
  	    this.managerPromise = new Promise(function (resolve, reject) {
  	      // The ad is loaded and ready
  	      _this.on('loaded', resolve); // Ads failed
  
  
  	      _this.on('error', reject);
  	    });
  	    this.load();
  	  }
docs: Ads constructor.
  @param {Object} player
  @return {Ads}