diff --git a/api/js/etemplate/CustomHtmlElements/multi-video.ts b/api/js/etemplate/CustomHtmlElements/multi-video.ts index 8c49546116..41cf3a7cd7 100644 --- a/api/js/etemplate/CustomHtmlElements/multi-video.ts +++ b/api/js/etemplate/CustomHtmlElements/multi-video.ts @@ -130,15 +130,24 @@ class multi_video extends HTMLElement { { let value = _value.split(','); let video = null; + let duration = 0; for (let i=0;i { - _item.duration = _item.node.duration; + _item.duration = _item.duration ? _item.duration : _item.node.duration; _item.previousDurations = _item.index > 0 ? this._videos[_item.index-1]['duration'] + this._videos[_item.index-1]['previousDurations'] : 0; }); this.duration = this.__duration();