remove commented-out local playback code in i2s-audo media_player

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Chris 2024-10-22 10:37:54 +02:00 committed by GitHub
parent cebd396904
commit 5981185fe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,15 +282,6 @@ bool I2SAudioMediaPlayer::connecttouri_(const std::string &uri) {
return this->audio_->connecttohost(uri.c_str());
}
// local file?
if (uri.find("file://", 0) == 0) {
// format: file://<path>
// const std::string path = uri.substr(7);
// ESP_LOGD(TAG, "ConnectTo File '%s'", path.c_str());
// return this->audio_->connecttoFS(?, uri.c_str() + 7);
return false;
}
// text to speech?
if (uri.find("tts://", 0) == 0) {
// format: tts://<lang>:<text>