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
status miusic
Re: status miusic
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
https://github.com/wiboma/hudiy/blob/ma ... hAction.py
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/blob/ma ... hAction.py