![]() # If your media player has no own media sources to browse, route all browse commands """Implement the websocket media browsing helper.""" Self, media_content_type : str | None = None, media_content_id : str | None = None ![]() browse_media import (Ĭlass MyMediaPlayer ( MediaPlayerEntity ) : components import media_sourceįrom homeassistant. Implement it using the following:įrom homeassistant. Possibly at some idle home screen.Įntity has an active media and is currently pausedĮntity is in a low power state, accepting commands.Įntity is preparing to start playback of some media ValueĮntity is turned off and is not accepting commands until turned on.Įntity is turned on, but no details on its state is currently known.Įntity is turned on and accepting commands, but currently not playing any media. The state of a media player is defined by using values in the MediaPlayerState enum, and can take the following possible values. ValueĮntity allows clearing the active playlist.Įntity can be grouped with other players for synchronous playback.Įntity allows skipping to the next media track.Įntity allows pausing the playback of media.Įntity allows playing/resuming playback of media.Įntity allows returning back to a previous media track.Įntity allows seeking position during playback of media.Įntity allows shuffling the active playlist.Įntity allows stopping the playback of media.Įntity volume can be set to specific levels.Įntity volume can be adjusted up and down. Supported features are defined by using values in the MediaPlayerEntityFeature enumĪnd are combined using the bitwise or ( |) operator. If the platform has a concept of defining a group leader, the leader should be the first element in that list. Return True if property media_image_url is accessible outside of the home network.Ī dynamic list of player entities which are currently grouped together for synchronous playback. (This list should contain human readable names, suitable for frontend display) The list of possible input sources for the media player. The currently selected input source for the media player. The current sound mode of the media playerĭynamic list of available sound modes (set by platform, empty means sound mode not supported) Implement update() or async_update() to fetch data. Properties should always only return information from memory and not do I/O (like network requests).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |