I have a repeater. In the repeater is a videoplayer. The videoplayer shows a different video for each element / item. The videos are from my dataset.
Question: When the user plays the first video. How can I program it, when the user starts the video in another element / item, that the first video stops and does not continue playing?
Unfortunately I can’t come up with a workable solution. Thanks for your help
You probably didn’t copy and paste it correctly.
Anyway you asked about video in a repeater, so I don’t think Alexander’s answer is relevant (as the event.target is the same for all items).
Hello,
Thank you very much for helping me. I don’t have so much experience yet but it’s getting better.
I do not know why, unfortunately it does not work with this code. It also pauses directly the video what should be played. I also tried with “viewPortLeave” but it only worked for the first element in the repeater.
It is really strange. I use the same code but refer to the container. Then it works fine.
Hi, even if this post is a bit older. I have exactly the same problem but none of your codes have been able to help me so far. On my home page (with individual video players) it does not work on another page when the videos are in a repeater. Do you have any tips?
My page: creativlinge.com/Logo-Teaser