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)
</Typography>
{audioClass === "Music" ? (
audioRefs.map((ref, index) => (
extractedFiles.map((file, index) => (
<Box key={index} sx={{ width: '100%', mt: 2 }}>
<Typography variant="body2" color="textSecondary" sx={{ mb: 1 }}>
{file.name}
</Typography>
<audio
ref={ref}
src={mediaFile.url}
ref={audioRefs[index]}
src={file.url}
style={{ width: '100%' }}
controls
/>