Mini-media-player: Play/Pause button, replace with Play/Stop

Created on 27 Aug 2019  路  6Comments  路  Source: kalkih/mini-media-player

Would it be possible to replace the play/pause button with play/stop. Using Musiccast speakers and XMradio, the pause button has no effect. If I replace mute with stop, then I can stop the music from plying.

Perhaps we could add a card option for 'replace_pause' and have one of the options be 'stop'?

enhancement

Most helpful comment

Hey, I added a boolean option "replace_pause" which replaces the pause button when media is playing with a stop button and also the onclick action with "media_stop"
Example config:

    type: custom:mini-media-player
    entity: media_player.kuche
    replace_pause: true

Screenshot:
player

All 6 comments

+1 for this one.

You could even offer a hidden option to display or not the stop button next to play/pause.
I could look at it if you accept PR.

PRs are very welcome.

Hey, I added a boolean option "replace_pause" which replaces the pause button when media is playing with a stop button and also the onclick action with "media_stop"
Example config:

    type: custom:mini-media-player
    entity: media_player.kuche
    replace_pause: true

Screenshot:
player

@Mofeywalker Great job! I was thinking to have option to get both pause and stop button. I'll try to work on it this weekend

I have worked on the option to display stop button. PR #177

image

Now available in the latest release, thanks @guillaumelamirand!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

porebas picture porebas  路  5Comments

hulkhaugen picture hulkhaugen  路  3Comments

magnusoverli picture magnusoverli  路  5Comments

orickcorreia picture orickcorreia  路  5Comments

TheRealBadRobot picture TheRealBadRobot  路  3Comments