Merge pull request #734 from dmitrylyzo/webos3_compatibility

Fix compatibility for older browsers (webOS 3)
This commit is contained in:
Vasily
2020-01-27 16:49:41 +03:00
committed by GitHub
+3 -1
View File
@@ -1054,7 +1054,9 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
var options = {
video: videoElement,
subUrl: getTextTrackUrl(track, item),
fonts: attachments.map(i => i.DeliveryUrl),
fonts: attachments.map(function (i) {
return i.DeliveryUrl;
}),
workerUrl: appRouter.baseUrl() + "/libraries/subtitles-octopus-worker.js",
onError: function() {
htmlMediaHelper.onErrorInternal(self, 'mediadecodeerror')