audio load
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
2076561a4d
commit
0ff53b190d
@ -102,7 +102,7 @@ const App = () => {
|
||||
<div>
|
||||
<h2>Audio Controls</h2>
|
||||
{audioElmRef.current?.paused ?
|
||||
<button onClick={() => useCallback(async () => {
|
||||
<button onClick={useCallback(async () => {
|
||||
setMuted(false)
|
||||
await audioElmRef.current?.play()
|
||||
}, [audioElmRef.current])}>Play ⏯️</button> :
|
||||
|
Loading…
x
Reference in New Issue
Block a user