audio load

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2025-05-20 01:54:50 +02:00
parent 2076561a4d
commit 0ff53b190d
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81

View File

@ -102,7 +102,7 @@ const App = () => {
<div> <div>
<h2>Audio Controls</h2> <h2>Audio Controls</h2>
{audioElmRef.current?.paused ? {audioElmRef.current?.paused ?
<button onClick={() => useCallback(async () => { <button onClick={useCallback(async () => {
setMuted(false) setMuted(false)
await audioElmRef.current?.play() await audioElmRef.current?.play()
}, [audioElmRef.current])}>Play </button> : }, [audioElmRef.current])}>Play </button> :