PodKast Audio Player is a customizable React component for playing audio files with a user-friendly interface. It provides features like play/pause, volume control, skip forward/backward, loop, shuffle, and progress tracking.
MIT License
PodKast Audio Player is a customizable React component for playing audio files with a user-friendly interface. It provides features like play/pause, volume control, skip forward/backward, loop, shuffle, and progress tracking.
You can install the Podkast Audio Player library via npm:
npm install podkast-audio-player
Or you can install via yarn
yarn add podkast-audio-player
To use the PodKast Audio Player component in your React application, simply import it and pass the necessary props:
import React from 'react';
import AudioPlayer from 'podkast-audio-player';
function MyComponent() {
// Define your array of audio data
const audioData = [
{
audioSrc: 'path/to/audio1.mp3',
title: 'Title 1',
artists: 'Artist 1',
cover: 'path/to/cover1.jpg'
},
{
audioSrc: 'path/to/audio2.mp3',
title: 'Title 2',
artists: 'Artist 2',
cover: 'path/to/cover2.jpg'
},
// Add more audio objects as needed
];
return (
<div>
<AudioPlayer songs={audioData} theme="light" />
</div>
);
}
export default MyComponent;
For a full documentation, visit podkast-audio-player
Contributions are welcome! Please feel free to submit issues and pull requests.
Podkast Audio Player is licensed under the MIT License.