esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Attributes | List of all members
esphome::api::MediaPlayerStatus Struct Reference

A media player's reported state. More...

#include <media_player.hpp>

Public Attributes

std::uint32_t key = 0
 
MediaPlayerState state = MediaPlayerState::None
 
float volume = 0.0F
 
bool muted = false
 

Detailed Description

A media player's reported state.

Named with the Status suffix because the canonical MediaPlayerState name is already taken by the mirrored proto enum (see enums.hpp).

Member Data Documentation

◆ key

std::uint32_t esphome::api::MediaPlayerStatus::key = 0

◆ muted

bool esphome::api::MediaPlayerStatus::muted = false

◆ state

MediaPlayerState esphome::api::MediaPlayerStatus::state = MediaPlayerState::None

◆ volume

float esphome::api::MediaPlayerStatus::volume = 0.0F

The documentation for this struct was generated from the following file: