audio-cdn-fix
This commit is contained in:
parent
d789ffc1cd
commit
1eac709895
|
@ -147,7 +147,7 @@ export const AudioPlayer = (props: Props) => {
|
||||||
<audio
|
<audio
|
||||||
ref={(el) => (audioRef.current = el)}
|
ref={(el) => (audioRef.current = el)}
|
||||||
onTimeUpdate={handleAudioTimeUpdate}
|
onTimeUpdate={handleAudioTimeUpdate}
|
||||||
src={currentTack().url}
|
src={currentTack().url.replace('images.discours.io', 'cdn.discours.io')}
|
||||||
onCanPlay={() => {
|
onCanPlay={() => {
|
||||||
// start to play the next track on src change
|
// start to play the next track on src change
|
||||||
if (isPlaying()) {
|
if (isPlaying()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user