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