Launch Media Triggers on looped videos | Community
Skip to main content
Level 3
October 13, 2021
Solved

Launch Media Triggers on looped videos

  • October 13, 2021
  • 1 reply
  • 859 views

We are using the Media Events in Launch to trigger start/25%/50%/75%/100% video tracking.  The problem is that all the videos on the site are short looped ones, so we are getting loads of duplicated events as the video triggers.

 

Is there a way to set the Media events to only trigger once per video?  I looked into adding an extra action with a $("video").off() jQuery call to remove the handler, but couldn't work out what handler to remove.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ben_Step

I've come up with a work around - I've added a custom code condition that writes an entry into session storage with the name of the video, and only returns true if the session object isn't present.

This seems to have worked and means the calls are only being triggered once per session.

1 reply

Ben_StepAuthorAccepted solution
Level 3
October 13, 2021

I've come up with a work around - I've added a custom code condition that writes an entry into session storage with the name of the video, and only returns true if the session object isn't present.

This seems to have worked and means the calls are only being triggered once per session.