pschatzmann / ESP32-A2DP

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF
Apache License 2.0
1.65k stars 270 forks source link

Read current song title #434

Closed Sausebraus closed 1 year ago

Sausebraus commented 1 year ago

Hello,

is it somehow possible to read the current song title and artist from the users phone? I am considering using a small OLED screen to display this information.

Another question: is it possible for the esp32 to get informed when the user pauses the audio on the phone? Currently my esp thinks the music is still playing even tho it is paused by the user on the phone.

Thank you in advance for your help

pschatzmann commented 1 year ago

Your first question is described in the Readme under Support for Metadata. For your second question did you try the get_audio_state or better the related callback method ? Es gibt sogar ein Beispiel dafür! ,