fix: videoPlayer not exiting if subtitles are disabled
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -241,7 +241,8 @@ const ItemDetail = () => {
|
||||
const checkDolbyVision = videos.filter(
|
||||
(video) =>
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("dv") ||
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("dolby vision"),
|
||||
video.DisplayTitle?.toLocaleLowerCase().includes("dolby vision") ||
|
||||
!!video.VideoDoViTitle,
|
||||
);
|
||||
const checkDD = audios.filter(
|
||||
(audio) =>
|
||||
|
||||
@@ -1035,7 +1035,9 @@ const VideoPlayer = () => {
|
||||
|
||||
const handleExitPlayer = async () => {
|
||||
appWindow.setFullscreen(false);
|
||||
subtitleRenderer.destroy();
|
||||
if (subtitleRenderer) {
|
||||
subtitleRenderer.destroy();
|
||||
}
|
||||
navigate(-1);
|
||||
// Report Jellyfin server: Playback has ended/stopped
|
||||
await getPlaystateApi(api).reportPlaybackStopped({
|
||||
|
||||
Reference in new issue
Block a user