-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not play local mp3 from FS (SPIFFS) #863
Comments
You should use connecttoFS to play mp3 files in spiffs |
Thanks for your reply, but I'm already calling it before calling audio.loop function. |
#pragma once Audio audio; #define BUTTON_PIN 27 const char* ssid = "??"; void setup() { SPIFFS.begin(true); Serial.println("Connecting to wifi..."); while (WiFi.status() != WL_CONNECTED) { Serial.println("Connected.."); pinMode(BUTTON_PIN, INPUT_PULLUP); audio.setPinout(17, 18, 16); if(SPIFFS.exists("/open_sound.mp3")){ void loop() { |
The file does exist and audioconnecttoFS returns 1 but not playing, when i try the same example with audioconnecttohost, it does work.. |
I try to play local and remote files in my project, it works fine when play with "connecttohost" however it does not play a simple mp3 file from spiffs even though it returns true while connecting to the file. So help pls...
The text was updated successfully, but these errors were encountered: