audio load
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
c17e7f9ef8
commit
570933b1ec
@ -76,7 +76,7 @@ const App = () => {
|
||||
}
|
||||
})
|
||||
} else if (!json?.media && bounce.search('Now Playing: null') === -1) {
|
||||
setLink('#')
|
||||
setLink('')
|
||||
setTitle('Stream Radio')
|
||||
setBounce('Now Playing: null')
|
||||
}
|
||||
@ -91,7 +91,7 @@ const App = () => {
|
||||
loadListeners()
|
||||
}, (Math.floor(Math.random() * 20) + 10) * 1000)
|
||||
return () => clearInterval(inter)
|
||||
}, [audioElmRef.current])
|
||||
}, [])
|
||||
useEffect(() => {
|
||||
if (audioElmRef.current && audioElmRef.current.volume !== currentVolume && currentVolume >= 0 && currentVolume <= 1) {
|
||||
audioElmRef.current.volume = currentVolume
|
||||
|
Loading…
x
Reference in New Issue
Block a user