1
0
Fork 0
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:
David Schulte 2024-06-13 21:29:52 +02:00
parent a6732739c5
commit c5d3b081cf
4 changed files with 11 additions and 26 deletions

View file

@ -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);