mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove libjass leftovers
This commit is contained in:
parent
98207228d6
commit
f507bfb016
1 changed files with 0 additions and 16 deletions
|
@ -209,10 +209,6 @@ export class HtmlVideoPlayer {
|
||||||
* @type {number | null}
|
* @type {number | null}
|
||||||
*/
|
*/
|
||||||
#audioTrackIndexToSetOnPlaying;
|
#audioTrackIndexToSetOnPlaying;
|
||||||
/**
|
|
||||||
* @type {null | undefined}
|
|
||||||
*/
|
|
||||||
#currentClock;
|
|
||||||
/**
|
/**
|
||||||
* @type {any | null | undefined}
|
* @type {any | null | undefined}
|
||||||
*/
|
*/
|
||||||
|
@ -1171,8 +1167,6 @@ export class HtmlVideoPlayer {
|
||||||
this.destroyNativeTracks(videoElement, targetTrackIndex);
|
this.destroyNativeTracks(videoElement, targetTrackIndex);
|
||||||
this.destroyStoredTrackInfo(targetTrackIndex);
|
this.destroyStoredTrackInfo(targetTrackIndex);
|
||||||
|
|
||||||
this.#currentClock = null;
|
|
||||||
|
|
||||||
const octopus = this.#currentAssRenderer;
|
const octopus = this.#currentAssRenderer;
|
||||||
if (octopus) {
|
if (octopus) {
|
||||||
octopus.dispose();
|
octopus.dispose();
|
||||||
|
@ -1500,16 +1494,6 @@ export class HtmlVideoPlayer {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
updateSubtitleText(timeMs) {
|
updateSubtitleText(timeMs) {
|
||||||
const clock = this.#currentClock;
|
|
||||||
if (clock) {
|
|
||||||
try {
|
|
||||||
clock.seek(timeMs / 1000);
|
|
||||||
} catch (err) {
|
|
||||||
console.error(`error in libjass: ${err}`);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const allTrackEvents = [this.#currentTrackEvents, this.#currentSecondaryTrackEvents];
|
const allTrackEvents = [this.#currentTrackEvents, this.#currentSecondaryTrackEvents];
|
||||||
const subtitleTextElements = [this.#videoSubtitlesElem, this.#videoSecondarySubtitlesElem];
|
const subtitleTextElements = [this.#videoSubtitlesElem, this.#videoSecondarySubtitlesElem];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue