Skip to content

Commit

Permalink
Merge pull request #1020 from JustAMan/fix-attachment-urls
Browse files Browse the repository at this point in the history
Fix attachment delivery urls
  • Loading branch information
JustAMan authored Apr 4, 2020
2 parents 9a3dd41 + d3c0bdd commit 50122d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/htmlvideoplayer/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,12 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa

function renderSsaAss(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",
Expand Down

0 comments on commit 50122d0

Please sign in to comment.