I am looking for a way to listen to sound on Android by transmitting mp3 or wav files stored in Raspberry's folder to Android, such as the frequency of music files, via tcp communication.
If you don't know the method above, I'd appreciate it if you could answer the question below.
How should I make a server in Raspberry to communicate with tcp when transferring data from a file?
On Android, do I have to make only clients or both servers and clients?
If it is difficult to transfer the data of the music file, is there a way to transfer the music file itself?
tcp android raspberry-pi
Let's study RTSP first.
Try raspberry pie first on a fully-resourced desktop rather than using it as a server.
How should I make a server in Raspberry to communicate with tcp when transferring data from a file?
=> Simply put Linux on Raspberry Pi and create it in a variety of languages.
https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol#Server
The link above will help.
On Android, do I have to make only clients or both servers and clients?
On => Android, you only need to create clients.
If it is difficult to transfer the data of the music file, is there a way to transfer the music file itself?
=> The music file itself can also be transferred via HTTP.
The easiest way is to install httpd (web server) on Raspberry Pi and download and play music files to url. Of course, this is not streaming.
© 2024 OneMinuteCode. All rights reserved.