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,
|
||||
subUrl: getTextTrackUrl(track, item),
|
||||
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() {
|
||||
htmlMediaHelper.onErrorInternal(self, 'mediadecodeerror')
|
||||
}
|
||||
|
|
|
@ -16,11 +16,8 @@ module.exports = {
|
|||
to: "."
|
||||
},
|
||||
{
|
||||
from: "../node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
|
||||
to: "JavascriptSubtitlesOctopus",
|
||||
transformPath(targetPath, absolutePath) {
|
||||
return Promise.resolve(path.join("JavascriptSubtitlesOctopus", path.basename(targetPath)));
|
||||
}
|
||||
context: path.resolve(__dirname),
|
||||
from: "node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
|
||||
}
|
||||
])
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue