midzer / tobii

An accessible, open-source lightbox with no dependencies
https://midzer.github.io/tobii/demo/
MIT License
200 stars 20 forks source link

Multiple You Tube Videos #97

Open Evakos opened 2 years ago

Evakos commented 2 years ago

Hi,

I'm assuming it is possible to include multiple You Tube videos in a gallery arrangement? At the present time if I open one You Tube video in a light box then close it the next video opens the same ID at the same time point.

Thanks in advance.

Chris

viliusle commented 2 years ago

It is possible and it works fine, just tested. Unless you have some rare use case or wrong implementation.

But you should not show multiple videos in same modal window (same group) - bad user experience in most cases.

Evakos commented 2 years ago

Thanks for the reply. they just dynamically rendered in a loop. What is happening is it is just recognising the first instant of the video for multiple videos uploaded in the back-end of WordPress in a custom site. So I'm assuming it is something to do with outputting the multiple videos in a loop.

midzer commented 2 years ago

@Evakos Is this issue resolved then?

maugelves commented 1 year ago

I'm facing the same problem…

In my case I have a group of iframes with YouTube videos. The markup repeats the same link in different hierarchies. The first child link opens the correct video, but inner child always pop-up the first one as @Evakos mentioned.

Page --> Link # 1 (OK) --> Link # 1 ( Points to # 1) --> Link # 2 (OK) --> Link # 2 ( Points to # 1) --> Link # 3 (OK) --> Link # 3 ( Points to # 1)