fix: videoPlayer not exiting if subtitles are disabled

This commit is contained in:
Prayag Prajapati committed 2024-03-29 10:35:21 +05:30
1 parent 8a4b41c0e0
commit ea5a0a5aad
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -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({