text: function MediaPlayer(config) {
      this.media = config.el;
      this.plugins = config.plugins || [];
  
    this._initPlugins();
    }
    
    MediaPlayer.prototype._initPlugins = function () {
      this.plugins.forEach(plugin => {
        plugin.run(this);
      });
    }
    MediaPlayer.prototype.play = function() {
      this.media.play();
    };
    
    MediaPlayer.prototype.pause = function() {
      this.media.pause();
    };
    
    MediaPlayer.prototype.togglePlay = function() {
      if (this.media.paused) {
        this.play();
      } else {
        this.pause();
      }
    };
  
    // declarar mute
  
    MediaPlayer.prototype.mute = function(){
      this.media.muted = true;
    }
  
    MediaPlayer.prototype.unmute = function(){
      this.media.muted = false
    }
  
  
  
  
  export default MediaPlayer; // con esto exportamos nuestro MediaPlayer Solo falta importarlo al archivo que queremos