audio-cdn-fix

This commit is contained in:
Untone 2024-01-16 01:36:08 +03:00
parent d789ffc1cd
commit 1eac709895

View File

@ -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()) {