Expand my Community achievements bar.

SOLVED

Launch Media Triggers on looped videos

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Level 3

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

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.