react-modern-audio-player icon indicating copy to clipboard operation
react-modern-audio-player copied to clipboard

Error: fetch url missing

Open jhoanborges opened this issue 6 months ago • 1 comments

According to the docs, playlist should be an empty array [] but if array is empty is gets an error: Error: fetch url missing


    const [playList, setPlayList] = useState<PlayList>([]);

        <AudioPlayer
                            playList={playList}
                            audioInitialState={{
                                muted: false,
                                volume: 1,
                                curPlayId: 1,
                            }}
                            activeUI={{
                                ...activeUI,
                                progress: progressType
                            }}
                            placement={{
                                player: playerPlacement,
                                interface: {
                                    templateArea: interfacePlacement
                                },
                                playList: playListPlacement,
                                volumeSlider: volumeSliderPlacement
                            }}
                            rootContainerProps={{
                                colorScheme: theme,
                                width
                            }}
                        />

image

jhoanborges avatar Jul 30 '24 21:07 jhoanborges