mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Updated libpgs
to add web-worker support for PGS rendering.
This commit is contained in:
parent
a6732739c5
commit
c5d3b081cf
4 changed files with 11 additions and 26 deletions
|
@ -1337,6 +1337,7 @@ export class HtmlVideoPlayer {
|
|||
const options = {
|
||||
video: videoElement,
|
||||
subUrl: getTextTrackUrl(track, item),
|
||||
workerUrl: `${appRouter.baseUrl()}/libraries/libpgs.worker.js`,
|
||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000
|
||||
};
|
||||
this.#currentPgsRenderer = new libpgs.PgsRenderer(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue