Caution
Breaking change!
This new release of navbar-card introduces a breaking change in the media_player configuration, but for a good reason:
Support for multiple media players
As many of you have requested, this release brings support for configuring multiple media player entities in the media_player widget of navbar-card 🙂 All active media players will be displayed as a draggable list, with a custom show property for each one, letting you manually control when each of them is displayed.
This improvement comes with a breaking change: any users who had previously configured the media_player widget will need to migrate to the new configuration syntax. If your media_player config looked like this:
type: custom:navbar-card
...
media_player:
entity: media_player.your_media_player
album_cover_background: true
tap_action:
action: navigate
navigation_path: /mediaYou will need to migrate to the new syntax, which should look something like this:
type: custom:navbar-card
...
media_player:
players:
- entity: media_player.test_media_player
tap_action:
action: navigate
navigation_path: /security
album_cover_background: trueYou can find all info regarding the media_player widget configuration in the docs.
Fix media player auto_padding
As reported in #141, the auto_padding feature was not working correctly when the media player transitioned from hidden to visible. This has been fixed in this release.
All changes in this release
- Added ability to configure multiple media players, with drag support to navigate between them. (closes #141 )
- Apply media player auto-padding immediately on visibility change without requiring page reload. (closes #281 )
- Bump dependencies
⭐ Support navbar-card
If you enjoy using navbar-card and want to support its continued development, consider buying me a coffee (or a beer 🍺), or becoming a GitHub Sponsor!
Your support means a lot and helps keep the project alive and growing. Thank you! 🙌
