Updated libpgs to add web-worker support for PGS rendering.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user