More updates to player and fixed some ui stuff

This commit is contained in:
prayag17 committed 2023-05-26 15:16:30 +05:30
1 parent 3c058928cb
commit 19ff2af29b
9 files changed
+112 -21

No files matched your search

+9 -7
View File
@@ -505,9 +505,9 @@ const ItemDetail = () => {
setAudioTracks(audios);
setSubtitleTracks(subs);
setCurrentVideoTrack(videos[0].DisplayTitle);
setCurrentAudioTrack(audios[0].DisplayTitle);
setCurrentSubTrack(subs[0].DisplayTitle);
setCurrentVideoTrack(videos[0]?.DisplayTitle);
setCurrentAudioTrack(audios[0]?.DisplayTitle);
setCurrentSubTrack(subs[0]?.DisplayTitle);
}
}, [item.isSuccess]);
@@ -1494,7 +1494,8 @@ const ItemDetail = () => {
item.data.MediaStreams.length !=
0 && (
<>
{videoTracks != [] && (
{videoTracks.length !=
0 && (
<TableRow
sx={{
"& td, & th":
@@ -1568,7 +1569,8 @@ const ItemDetail = () => {
</TableCell>
</TableRow>
)}
{audioTracks != [] && (
{audioTracks.length !=
0 && (
<TableRow
sx={{
"& td, & th":
@@ -1638,8 +1640,8 @@ const ItemDetail = () => {
</TableCell>
</TableRow>
)}
{subtitleTracks !=
[] && (
{subtitleTracks.length !=
0 && (
<TableRow
sx={{
"& td, & th":
+1
View File
@@ -76,6 +76,7 @@
&-title-logo {
filter: drop-shadow(0 0 10px rgb(0 0 0 /0.2));
height: 100%;
max-height: 5em;
width: 45%;
object-fit: contain;
object-position: bottom;