1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
gnattu 2024-09-22 00:39:24 +08:00 committed by GitHub
parent 2d12aec9b4
commit 040b2d4901
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1568,7 +1568,7 @@ export class HtmlVideoPlayer {
})[0]; })[0];
// This play method can only check if it is real direct play, and will mark Remux as Transcode as well // This play method can only check if it is real direct play, and will mark Remux as Transcode as well
const isDirectPlay = this._currentPlayOptions.playMethod === "DirectPlay"; const isDirectPlay = this._currentPlayOptions.playMethod === 'DirectPlay';
const burnInWhenTranscoding = appSettings.alwaysBurnInSubtitleWhenTranscoding(); const burnInWhenTranscoding = appSettings.alwaysBurnInSubtitleWhenTranscoding();
if (!isDirectPlay && burnInWhenTranscoding) { if (!isDirectPlay && burnInWhenTranscoding) {
@ -1576,7 +1576,7 @@ export class HtmlVideoPlayer {
const sessionPromise = apiClient.getSessions({ const sessionPromise = apiClient.getSessions({
deviceId: apiClient.deviceId() deviceId: apiClient.deviceId()
}).then(function (sessions) { }).then(function (sessions) {
return sessions[0] || {};; return sessions[0] || {};
}, function () { }, function () {
return Promise.resolve({}); return Promise.resolve({});
}); });
@ -1599,7 +1599,7 @@ export class HtmlVideoPlayer {
// unset stream when switching to transcode // unset stream when switching to transcode
player.setTrackForDisplay(player.#mediaElement, null, -1); player.setTrackForDisplay(player.#mediaElement, null, -1);
} }
}) });
} else { } else {
this.setTrackForDisplay(this.#mediaElement, track, targetTextTrackIndex); this.setTrackForDisplay(this.#mediaElement, track, targetTextTrackIndex);
if (enableNativeTrackSupport(this._currentPlayOptions?.mediaSource, track)) { if (enableNativeTrackSupport(this._currentPlayOptions?.mediaSource, track)) {