Im using youtube api's cueVideoByID and was wondering if there is a way for me to be able to specify multiple "startSeconds" and "endSeconds" for a youtube embedded video and play each one of them right after the previous one.
Something like this:
this.player.cueVideoById(
{ videoId: 'CyySYgkLTak', startSeconds: 10, endSeconds: 12 },
{ videoId: 'CyySYgkLTak', startSeconds: 15, endSeconds: 17 },
{ videoId: 'CyySYgkLTak', startSeconds: 20, endSeconds: 27 },
)
this.player.playVideo()
What i would like is for the second object to play after the first one and so forth.
What this code does is that it only plays the first one