Is there any way to get what the user is hearing?

Asked

Viewed 65 times

1

I wonder if you have any mode or even a lib so I can get the audio player information from the mobile phone, such as music duration, name, album etc. with React.

1 answer

1


The iOS and Android apps can’t access data or memory from each other, and the reading of the devices' output engines is very limited. You won’t be able to make an application that can pick up audio from the device, or from other applications. These limitations are by design, to avoid invasion of privacy.

The only way to get what the user is listening to is by resorting to the API’s of sound-reproducing applications. With Spotify, for example, the iOS and Android Apis won’t help you, but the Web API allows you to see the last song the user has heard. You may be lucky to be the music the user is listening to at the time of your query, but there are no guarantees.

Each different application will be a different world to explore. Good luck.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.