fix player issue

This commit is contained in:
2024-12-21 10:59:38 +02:00
parent 9b88887a63
commit 0e97ee83a1
2 changed files with 19 additions and 14 deletions

View File

@@ -440,7 +440,7 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
}
}
console.log('tester', startPlay, resourceStatus?.status, src )
return (
<VideoContainer
tabIndex={0}
@@ -472,7 +472,7 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
}}
>
<CircularProgress color="secondary" />
{resourceStatus && (
<Typography
variant="subtitle2"
component="div"
@@ -494,14 +494,14 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
<>Download Completed: building tutorial video...</>
) : resourceStatus?.status !== 'READY' ? (
<>
{getDownloadProgress(resourceStatus?.localChunkCount, resourceStatus?.totalChunkCount)}
{getDownloadProgress(resourceStatus?.localChunkCount || 0, resourceStatus?.totalChunkCount || 100)}
</>
) : (
<>Fetching tutorial from the Qortal Network...</>
)}
</Typography>
)}
</Box>
)}
{((!src && !isLoading) || !startPlay) && (