feat(player): Allow selecting subtitles during playback

This commit is contained in:
Prayag Prajapati committed 2024-03-13 15:39:14 +05:30
1 parent 9cd22577a4
commit eeb9a5f9a8
6 files changed
+164 -34

No files matched your search

+5 -1
View File
@@ -57,8 +57,12 @@ const CarouselSlide = ({ item }) => {
const handleMoreInfo = () => {
if (availableSpecialRoutes.includes(item.Type)) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
} else if (item.Role) {
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
navigate(`/person/${item.Id}`);
} else if (item.Type === BaseItemKind.MusicArtist) {
navigate(`/artist/${item.Id}`);
} else if (item.Type === BaseItemKind.Episode) {
navigate(`/episode/${item.Id}`);
} else {
navigate(`/item/${item.Id}`);
}