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>
|
<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> :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user