static onSlideEvent(event) {
    const slide = event.detail.slide;

    switch (event.type) {
      case SlideEvents.ENABLE:
        YouTube.onSectionEnabled(slide);
        break;
      case SlideEvents.DISABLE:
        YouTube.onSectionDisabled(slide);
        break;
      case SlideEvents.LEAVE:
        slide.player.destroy();
        break;
      case SlideEvents.ENTER:
        slide.player.create();
        break;
    }
  }
Reacts to any event on the slide.
@param {CustomEvent} event