Skip to main content
Known Participant
Nov 13, 2019 2:37 PM UTC
Question

Event video Length

Hello. Does anyone know how the length of an event video can be displayed in the project. I went through all of the skins and non of them include that option. I would like the users to be able to know how long the video is. Please advise. Thanks 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

thisguy4xapi
Inspiring
Nov 14, 2019 6:20 PM UTC

You can get with javascript using this 

$('video')[0].duration

Couple of things to keep in mind
 1. The event video must be rendered (meaning if video doesn't hit until slide 4 but you execute this command on slide 3 with no video you will get undefined)
2. This will do all video elements on slide as $('video') returns every video with a <video> tag...The [0] in the code is selecting the first element that $('video) found

Translate