feat: add key binding for macos users #435

This commit is contained in:
Prayag Prajapati committed 2024-12-11 15:21:52 +05:30
1 parent c572cb35cb
commit 6d2448ef36
3 files changed
+12 -11

No files matched your search

+1 -9
View File
@@ -8,15 +8,7 @@ export default function getSubtitle(
const availableSubtitles = mediaStreams?.filter(
(stream) => stream.Type === "Subtitle",
);
if (!availableSubtitles?.length)
return {
track: -2,
enable: false,
format: "vtt",
allTracks: availableSubtitles,
url: null,
};
if (track === "nosub")
if (track === "nosub" || track === -1)
return {
track: -1,
enable: false,