I am new for this.
I want to develop an application that it can streaming music for SD card
to another device via WiFi.
There has many protocol for streaming , like RTP ,RTCP and RTSP.
But I don't know how to begin for streaming...
Ideal is like the following:
1. Android Phone-A
turn on the Hotspot(Wireless Access Point mode)
, and the client will connect to this Android Phone-A
.
2. After client to this Android Phone-A
, Android Phone-A
can choose the MP3 music file
, and live-streaming to this client via WiFi (not WiFi Direct
).
3. And the client will play the music from Android Phone-A
.
So , what I have to develop is A streaming Server.
Question:
1. Should I use RTSP server
on Android for doing streaming to client via WiFi ?
or it is better for using VLC on Android ?
2. Does there has Android api for VLC can be develop on Android ?
3. How to encode and send the music streaming from Wireless Access Point
to client
?
Thanks in advance.
for your questions,
android.net.rtp.AudioCodec
for encoding and decoding and stream it using android.net.rtp.AudioStream
. For more details, you can consult android documentation on RTP
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With