From 1d4ed6609d4cdeda34d03bb881d635b35b73d45a Mon Sep 17 00:00:00 2001 From: Robin Townsend <robin@robin.town> Date: Tue, 14 Jun 2022 14:15:52 -0400 Subject: [PATCH] Preload PTT sounds correctly --- src/sound/PTTClips.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound/PTTClips.tsx b/src/sound/PTTClips.tsx index 90958af..9a72098 100644 --- a/src/sound/PTTClips.tsx +++ b/src/sound/PTTClips.tsx @@ -42,7 +42,7 @@ export const PTTClips: React.FC<Props> = ({ return ( <> <audio - preload="true" + preload="auto" className={styles.pttClip} ref={startTalkingLocalRef} > @@ -50,18 +50,18 @@ export const PTTClips: React.FC<Props> = ({ <source type="audio/mpeg" src={startTalkLocalMp3Url} /> </audio> <audio - preload="true" + preload="auto" className={styles.pttClip} ref={startTalkingRemoteRef} > <source type="audio/ogg" src={startTalkRemoteOggUrl} /> <source type="audio/mpeg" src={startTalkRemoteMp3Url} /> </audio> - <audio preload="true" className={styles.pttClip} ref={endTalkingRef}> + <audio preload="auto" className={styles.pttClip} ref={endTalkingRef}> <source type="audio/ogg" src={endTalkOggUrl} /> <source type="audio/mpeg" src={endTalkMp3Url} /> </audio> - <audio preload="true" className={styles.pttClip} ref={blockedRef}> + <audio preload="auto" className={styles.pttClip} ref={blockedRef}> <source type="audio/ogg" src={blockedOggUrl} /> <source type="audio/mpeg" src={blockedMp3Url} /> </audio>