status miusic

Post Reply
ElmodiLatta
Posts: 21
Joined: Mon Sep 15, 2025 10:11 am
Location: Italy

status miusic

Post 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
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: status miusic

Post 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
Post Reply