setPlayPause
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
479c394c50
commit
e2a47c22d0
@ -33,11 +33,13 @@ const App = () => {
|
|||||||
play = () => {
|
play = () => {
|
||||||
if (audioElmRef.current) {
|
if (audioElmRef.current) {
|
||||||
audioElmRef.current.play()
|
audioElmRef.current.play()
|
||||||
|
setPlayPause(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pause = () => {
|
pause = () => {
|
||||||
if (audioElmRef.current) {
|
if (audioElmRef.current) {
|
||||||
audioElmRef.current.pause()
|
audioElmRef.current.pause()
|
||||||
|
setPlayPause(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
loadData = () => {
|
loadData = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user