Page 1 of 1

status miusic

Posted: Thu Oct 09, 2025 8:26 pm
by ElmodiLatta
Hi, I wanted to know if there's a command to check if music is playing. I'd like to stop the music when I put it in reverse and only restart it if it was playing before I put it in reverse. Between steering wheel controls and touchscreens, there are several ways to activate/deactivate music playback. It would be easier to read the "status" if I could.

Thanks

Re: status miusic

Posted: Thu Oct 09, 2025 8:48 pm
by hudiy
Hello,
You can check playback status via MediaStatus message:

https://github.com/wiboma/hudiy/blob/ma ... proto#L152

On our GitHub you can also find an example how to use it:

https://github.com/wiboma/hudiy/blob/ma ... diaData.py

You can play/pause currently playing media using KeyEvent message:

https://github.com/wiboma/hudiy/blob/ma ... proto#L642

https://github.com/wiboma/hudiy/blob/ma ... Strokes.py

or actions
  • now_playing_toggle_play
  • now_playing_pause
  • now_playing_play
https://github.com/wiboma/hudiy?tab=rea ... le#actions
https://github.com/wiboma/hudiy/blob/ma ... hAction.py