react-modern-audio-player
react-modern-audio-player copied to clipboard
Error: fetch url missing
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
}}
/>