diff --git a/client/src/components/LiveVoiceCapture.tsx b/client/src/components/LiveVoiceCapture.tsx index e40356b..1c3fadb 100644 --- a/client/src/components/LiveVoiceCapture.tsx +++ b/client/src/components/LiveVoiceCapture.tsx @@ -86,6 +86,9 @@ export default function LiveVoiceCapture({ el.addEventListener('loadedmetadata', handleLoadedMetadata) } + log('Calling el.load() to force loading of the media resource...') + el.load() + return () => { el.removeEventListener('loadedmetadata', handleLoadedMetadata) } diff --git a/client/src/components/VoiceMemoPlayer.tsx b/client/src/components/VoiceMemoPlayer.tsx index e3f249c..a104cf4 100644 --- a/client/src/components/VoiceMemoPlayer.tsx +++ b/client/src/components/VoiceMemoPlayer.tsx @@ -53,6 +53,10 @@ export default function VoiceMemoPlayer({ el.addEventListener('loadedmetadata', handleLoadedMetadata) } + if (src) { + el.load() + } + return () => { el.removeEventListener('loadedmetadata', handleLoadedMetadata) } @@ -103,7 +107,7 @@ export default function VoiceMemoPlayer({ return (