'Is there a way to capture video progress for videos in a playlist?

I am trying to capture video plays and progress through GTM. The code works for videos that are not in a video-player. For video-player objects, video plays work for every video, but video progress only fires once per video in the player. Each video has a unique data-video-id but that does not show up in the website until someone has clicked on that particular video. Has anyone run into this before? or have any ideas on how to fix this?

This is the code that is implemented in GTM. https://gist.github.com/alfhh/5ab99138e40800283cecd279037e5f06



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source