Forum Discussion
JoeSchelb
2 years agoCommunity Member
Can you pause a video in a marker with trigger?
Good Day,
I am looking for some help. I was wondering if anyone has found a way to stop a video in a marker using Triggers? I am trying to put videos in two markers on my page. I have triggers Pau...
Nedim
2 years agoCommunity Member
Since you have the same video used in the second marker as well, you could create same Execute JavaScript trigger when content closes on Marker 2. If different video is inserted to Marker 2 then I suggest similar approach.
1. Create Execute JavaScript trigger When the timeline starts on this slide:
let videos = document.querySelectorAll('[data-video-id*="video"]');
window.video0 = videos[0];
window.video1 = videos[1];
2. Update existing Execute JavaSript triggers When content closes on Marker 1 and Marker 2:
video0.pause();
video1.pause();
Example:
Related Content
- 12 months ago
- 9 months ago
- 10 months ago