7namespace media_player {
9static const char *
const TAG =
"media_player";
57 return "CLEAR_PLAYLIST";
71 ESP_LOGW(TAG,
"MediaPlayerCall: Setting both command and media_url is not needed.");
76 if (this->
volume_.
value() < 0.0f || this->volume_.value() > 1.0f) {
77 ESP_LOGW(TAG,
"MediaPlayerCall: Volume must be between 0.0 and 1.0.");
88 ESP_LOGD(TAG,
" Command: %s", command_s);
128 ESP_LOGW(TAG,
"'%s' - Unrecognized command %s", this->
parent_->
get_name().
c_str(), command.c_str());
154#if defined(USE_MEDIA_PLAYER) && defined(USE_CONTROLLER_REGISTRY)
static void notify_media_player_update(media_player::MediaPlayer *obj)
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.