You can now also play MP3s streamed from the internet. (Very rough & wonky code. More or less proof-of-concept right now.)
This commit is contained in:
@ -5,7 +5,11 @@
|
||||
#include <algorithm>
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
Playlist::Playlist(String path) {
|
||||
Playlist::Playlist(String path, bool is_url) {
|
||||
if (is_url) {
|
||||
_files.push_back(path);
|
||||
return;
|
||||
}
|
||||
// Add files to _files
|
||||
SPIMaster::select_sd();
|
||||
TRACE("Examining folder %s...\n", path.c_str());
|
||||
|
Reference in New Issue
Block a user