Skip to main content
Known Participant
November 13, 2019
Question

Event video Length

  • November 13, 2019
  • 1 reply
  • 230 views

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 has been closed for replies.

1 reply

thisguy4xapi
Inspiring
November 14, 2019

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