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",