From 7724b5fedc44abd9f3ac9b7a464403ad32b67ae3 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 27 Feb 2021 00:01:52 -0500 Subject: [PATCH] Merge pull request #2443 from dmitrylyzo/fix-tizen-subtitles Fix attachment delivery urls (cherry picked from commit 0a342ce095b70763d461f6ab3864f2311d9bb034) Signed-off-by: Joshua M. Boniface --- 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 af555e35be..af6f3d25e1 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() });