A web-based esp32 music player for webradio and mp3/ogg/aac/aac+ files from a local lamp or llmp server.
Sound output comes from a separate VS1053 mp3/aac/ogg/wav decoder breakout board.
You control the music player with a browser on your phone, pc or tablet.
- Supports http, https (insecure mode)/chunked streams.
- Search for web radio stations on radio-browser and save the results to your favorites.
- No need for a display as the interface is completely network based.
- Plays mp3, ogg, aac and aac+ streams.
- Runs on:
esp32
esp32-wrover
esp32-s2
esp32-s3
The interface is kept very simple, a playlist tab on the right and selectable source tabs on the left.
After 30 seconds of inactivity the file info overlay is shown, click on the overlay to hide it or use the info button on the bottom to toggle the overlay.
On this overlay you can also save the current playing search result to the favorites tab with this icon.
eStreamPlayer is written for playback over http(s). What this means is that you will need a (lamp or llmp) webserver to play back your local files.
This is because the esp32 does not speak NFS or SMB which are common ways to share files over a network. Instead eStreamPlayer uses a php script on the server to navigate the music folders. Copy this script to the server to use your music library.
This is totally insecure and should only be used on a trusted LAN!
But if you don't have a local music server you can still use eStreamPlayer to tune in to web radio stations and add your own radio stations to presets and favorites.
![file overlay](https://private-user-images.githubusercontent.com/24290108/268499239-3d07fd0e-2cea-4ee7-acda-b85ffc17b79d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODg5NjYsIm5iZiI6MTcyNDI4ODY2NiwicGF0aCI6Ii8yNDI5MDEwOC8yNjg0OTkyMzktM2QwN2ZkMGUtMmNlYS00ZWU3LWFjZGEtYjg1ZmZjMTdiNzlkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMDRiNzk2Yzc4Mzg4ZGViZjhhNTI0Mzk4NDBhMjk5NTM4NzMyZGRhODEyYWMwMWQ5ODVkNTA3ZDAxZDNhZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.raMXI8bhQh3Qj4Z9FyswzdOEXliu8ybhYVsxaG3KXFA)
![file overlay](https://private-user-images.githubusercontent.com/24290108/268499340-9c1e57f1-41d5-445f-82dc-bde5ec84a0ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODg5NjYsIm5iZiI6MTcyNDI4ODY2NiwicGF0aCI6Ii8yNDI5MDEwOC8yNjg0OTkzNDAtOWMxZTU3ZjEtNDFkNS00NDVmLTgyZGMtYmRlNWVjODRhMGZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3ODYzNTUyYzI0MzkwYTg0YTQ2YmI1ZGU3MjJhOWJiMDIxMmI1NGU2OTMwMDA1MjUwM2QyMjc0NjQ0NjRjY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xZ4wiJRHrxufIFhz4aog2BqflkEwEbQCGEnEcUOylQ0)
![file overlay](https://private-user-images.githubusercontent.com/24290108/268499407-d29e9863-afc2-43c0-a086-3a07e2b75729.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODg5NjYsIm5iZiI6MTcyNDI4ODY2NiwicGF0aCI6Ii8yNDI5MDEwOC8yNjg0OTk0MDctZDI5ZTk4NjMtYWZjMi00M2MwLWEwODYtM2EwN2UyYjc1NzI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjZTcyZTQ1ZWVlMTdhMTFkNWIyNWNhNDMwYjI0YjYxNDc5NWYzMDEyMjNmMzcxODcyNmI5YmVmNzc1ZWQxYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NM5Dx5ZJKKRjV84Lc6lH0TYs9LiSefA08A1zfCFDT8w)
![file overlay](https://private-user-images.githubusercontent.com/24290108/268499435-8993d7d0-d09b-469a-9a87-b0a22df34c9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODg5NjYsIm5iZiI6MTcyNDI4ODY2NiwicGF0aCI6Ii8yNDI5MDEwOC8yNjg0OTk0MzUtODk5M2Q3ZDAtZDA5Yi00NjlhLTlhODctYjBhMjJkZjM0YzljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ2Njk1MDg2NTZiMzMyYTMyNzdjMTAzZmMxMDk2ZTc2MTMwZWEwZDI3ZjZmMjQ4MTZiNjhjYWY1Yzc5ZTQ5Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GpQ8suJwcq32xW52FfgtEjjtaaB07T5wx2p-R33paW4)
![file overlay](https://private-user-images.githubusercontent.com/24290108/268499557-e68113c2-f02d-4fad-ad05-0724fae3ee1e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODg5NjYsIm5iZiI6MTcyNDI4ODY2NiwicGF0aCI6Ii8yNDI5MDEwOC8yNjg0OTk1NTctZTY4MTEzYzItZjAyZC00ZmFkLWFkMDUtMDcyNGZhZTNlZTFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAxMDQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhYTUxNmFhMWI1YjliMzUwMjhjYzFkNjVmNzE3NGQzM2E2OGFhOWEzZDhhZDQzOWE0N2VmMDEwZDU0YzJkMTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Wq2eiBPjtEzpfINbVkj9DAld-CqdgMarbakXuE7gGOA)
- Check and set your options in
platformio.ini
- Add your WiFi credentials to
include/secrets.h
as shown below.
#ifndef SECRETS
#define SECRETS
const char *SSID_NAME= "wifi_network";
const char *SSID_PASSWORD = "wifi_password";
#endif
- On first boot or after a flash erase the fatfs will be formatted. This will take from a couple of seconds up to a minute depending on the size of the filesystem.
You can monitor the boot/formatting progress on the serial port.
Flashing an update will not erase the fatfs data.
Note: Take care to select the same partition table when updating the app otherwise the fatfs partition will be formatted. - Browse to the ip address shown on the serial port.
- A lamp or llmp webstack is required to serve local files. Apache2 and lighttpd were tested and should work.
- The following file headers should be sent for supported filetypes:
MP3
audio/mpeg
OGG
audio/ogg
orapplication/ogg
AAC
audio/aac
AAC+
audio/aacp
With a vanilla LAMP setup this will be the default. - The php script
eSP32_vs1053.php
has to be copied to the root of the music library. The script is fairly version agnostic.
- The free -as in beer- radio-browser.info API is used for the search. The returned data is in the public domain.
See de1.api.radio-browser.info for API information. - The icons are from material.io and are available under Apache2.0 license.
- Reconnecting WebSocket which is available under MIT licence.
- Google Roboto font which is available under Apache2.0 license.
- jQuery 3.4.1 which is available under MIT license.
The Google Roboto font and jQuery are fetched from the net. Your downloads will be tracked by the respective providers for this 'free' data.
MIT License
Copyright (c) 2023 Cellie
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.