jeudi 24 juin 2021

switch from one video ID to another video ID, if they are not consecutive in array, using the "if" statement

I would like to be able to pass after watching a video ID to another ID and then continue showing all those in succession within an array http://jsfiddle.net/whf09qum , is it possible to insert any of the IDs using the "if" statement and how?

const videos = {
      'RGpr3Y6Q-1M': 'preview1.png',
      'btxdcqLOGuc': 'preview2.png',
      'CIx0a1vcYPc': 'preview3.png',
      'I3Ltb7sLhb0': 'preview4.png',
      'dVKHHB8fzrs': 'preview5.png',
};

Aucun commentaire:

Enregistrer un commentaire