From 206ebefbcbd7184436753a473730e45acb7d68d2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 22 Oct 2020 18:29:54 +0200 Subject: [PATCH] fix #3933 @0.5 --- js/libs/fluidbook/fluidbook.video.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.video.js b/js/libs/fluidbook/fluidbook.video.js index 03dbd59c..1960d460 100644 --- a/js/libs/fluidbook/fluidbook.video.js +++ b/js/libs/fluidbook/fluidbook.video.js @@ -95,6 +95,7 @@ FluidbookVideo.prototype = { autoplay = $(e).data('autoplay'), setup = $(e).data('setup'), linkid = $(e).data('link-id'), + url = $(e).data('url'), path, poster, html, @@ -121,8 +122,9 @@ FluidbookVideo.prototype = { path = '../' + path; } } - - if (name !== '') { + if (url) { + path = url; + } else if (name !== '') { poster = path + '.jpg'; } @@ -172,7 +174,11 @@ FluidbookVideo.prototype = { // List all possible formats (only applicable for locally hosted videos) if (name !== '') { this.videoFormats.forEach(function (format) { - html += ''; + var p = path; + if (p.indexOf('.' + format) === -1) { + p += '.' + format; + } + html += ''; }); } -- 2.39.5