6namespace media_player {
8static const char *
const TAG =
"media_player";
51 return "CLEAR_PLAYLIST";
61 ESP_LOGW(TAG,
"MediaPlayerCall: Setting both command and media_url is not needed.");
66 if (this->
volume_.
value() < 0.0f || this->volume_.value() > 1.0f) {
67 ESP_LOGW(TAG,
"MediaPlayerCall: Volume must be between 0.0 and 1.0.");
78 ESP_LOGD(TAG,
" Command: %s", command_s);
114 ESP_LOGW(TAG,
"'%s' - Unrecognized command %s", this->
parent_->
get_name().
c_str(), command.c_str());
const StringRef & get_name() const
constexpr const char * c_str() const
value_type const & value() const
Providing packet encoding functions for exchanging data with a remote host.
bool str_equals_case_insensitive(const std::string &a, const std::string &b)
Compare strings for equality in case-insensitive manner.