Highlighted

Event video Length

New Here ,
Nov 13, 2019

Copy link to clipboard

Copied

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 

TOPICS
Audio and video, Import export

Views

73

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Event video Length

New Here ,
Nov 13, 2019

Copy link to clipboard

Copied

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 

TOPICS
Audio and video, Import export

Views

74

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 13, 2019 0
Contributor ,
Nov 14, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 14, 2019 0