This is a YouTube audio-only player consisting of a Javascript frontend and Node.js backend.
- Javascript (pure),
- Node.js.
- Uses node-ytdl-core to acquire the URL of an audio stream only (as YouTube provides separate video and audio streams and muxes them in-browser),
- Uses the Web Audio API to natively play the audio stream,
- Uses pure JS and DOM manipulation to provide a simple and responsive UI in the form of a player and playlist,
- Uses the Web Storage API to store the playlist in local storage.
Mostly familiarizing myself with the Web Audio API and practicing DOM manipulation, although there is a point to be made about this tool being useful in limited data scenarios.
- Paste YouTube URL in the appropriate input field,
- Select the video in the playlist,
- Listen.
Check out this demo right here.
git clone https://github.com/54ac/yt-audio-player.git .
npm i
npm start