Remove use of transformPath when copying libass worker files.
This commit is contained in:
parent
6eed80c863
commit
1abc7283ab
2 changed files with 3 additions and 6 deletions
|
@ -1044,7 +1044,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
video: videoElement,
|
video: videoElement,
|
||||||
subUrl: getTextTrackUrl(track, item),
|
subUrl: getTextTrackUrl(track, item),
|
||||||
fonts: self._currentPlayOptions.mediaSource.MediaAttachments.map(i => i.DeliveryUrl),
|
fonts: self._currentPlayOptions.mediaSource.MediaAttachments.map(i => i.DeliveryUrl),
|
||||||
workerUrl: appRouter.baseUrl() + "/JavascriptSubtitlesOctopus/subtitles-octopus-worker.js",
|
workerUrl: appRouter.baseUrl() + "/node_modules/libass-wasm/dist/subtitles-octopus-worker.js",
|
||||||
onError: function() {
|
onError: function() {
|
||||||
htmlMediaHelper.onErrorInternal(self, 'mediadecodeerror')
|
htmlMediaHelper.onErrorInternal(self, 'mediadecodeerror')
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,8 @@ module.exports = {
|
||||||
to: "."
|
to: "."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: "../node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
|
context: path.resolve(__dirname),
|
||||||
to: "JavascriptSubtitlesOctopus",
|
from: "node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
|
||||||
transformPath(targetPath, absolutePath) {
|
|
||||||
return Promise.resolve(path.join("JavascriptSubtitlesOctopus", path.basename(targetPath)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue