mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
fix player issue
This commit is contained in:
@@ -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) && (
|
||||
|
Reference in New Issue
Block a user