From 3c953d5ffd89e44250613caee2da9d063acfc57d Mon Sep 17 00:00:00 2001 From: Vasily Date: Sat, 4 Apr 2020 16:08:46 +0300 Subject: [PATCH] Merge pull request #1020 from JustAMan/fix-attachment-urls Fix attachment delivery urls (cherry picked from commit 50122d0253895922e6edd42bc3609b3e1372c1d8) Signed-off-by: Joshua M. Boniface --- src/components/htmlvideoplayer/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/htmlvideoplayer/plugin.js b/src/components/htmlvideoplayer/plugin.js index aa4134aa5b..19e8a8fac0 100644 --- a/src/components/htmlvideoplayer/plugin.js +++ b/src/components/htmlvideoplayer/plugin.js @@ -1049,11 +1049,12 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa function renderWithSubtitlesOctopus(videoElement, track, item) { var attachments = self._currentPlayOptions.mediaSource.MediaAttachments || []; + var apiClient = connectionManager.getApiClient(item); var options = { video: videoElement, subUrl: getTextTrackUrl(track, item), fonts: attachments.map(function (i) { - return i.DeliveryUrl; + return apiClient.getUrl(i.DeliveryUrl); }), workerUrl: appRouter.baseUrl() + "/libraries/subtitles-octopus-worker.js", legacyWorkerUrl: appRouter.baseUrl() + "/libraries/subtitles-octopus-worker-legacy.js",