From 7568388d9755f27b96484be6db1aade99250ba09 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 26 Feb 2021 20:01:21 +0300 Subject: [PATCH] Fix attachment delivery urls (sa d3c0bdd) --- src/plugins/htmlVideoPlayer/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index af555e35b..af6f3d25e 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1049,11 +1049,11 @@ function tryRemoveElement(elem) { renderSsaAss(videoElement, track, item) { const avaliableFonts = []; const attachments = this._currentPlayOptions.mediaSource.MediaAttachments || []; + const apiClient = ServerConnections.getApiClient(item); attachments.map(function (i) { // embedded font url - return avaliableFonts.push(i.DeliveryUrl); + return avaliableFonts.push(apiClient.getUrl(i.DeliveryUrl)); }); - const apiClient = ServerConnections.getApiClient(item); const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', { api_key: apiClient.accessToken() });