setEventsMiddleware (middlewares) {
    Object.keys(middlewares).map(key => {
      this.mediaEventMiddleware[key] = middlewares[key]
    })
  }
@description set middleware
@param { {[propName: string]: (e: {player: any, eventName: string}, callback: () => void) => any} } middlewares