preview results

This commit is contained in:
Joel Mathew Thomas
2025-03-18 15:20:14 +05:30
parent 767977836b
commit 8bd1cc4abb
+6 -3
View File
@@ -77,11 +77,14 @@ function ResultsPage() {
{mediaFile.name} (Processed) {mediaFile.name} (Processed)
</Typography> </Typography>
{audioClass === "Music" ? ( {audioClass === "Music" ? (
audioRefs.map((ref, index) => ( extractedFiles.map((file, index) => (
<Box key={index} sx={{ width: '100%', mt: 2 }}> <Box key={index} sx={{ width: '100%', mt: 2 }}>
<Typography variant="body2" color="textSecondary" sx={{ mb: 1 }}>
{file.name}
</Typography>
<audio <audio
ref={ref} ref={audioRefs[index]}
src={mediaFile.url} src={file.url}
style={{ width: '100%' }} style={{ width: '100%' }}
controls controls
/> />