Reputation: 8384
I searched a lot to find a phone-to-phone sound streaming solution but so far I found only phone->PC->phone solution (AirIt, Gmote).
As I intend to create an app that does a phone-to-phone streaming, I wonder if it possible at all. As there is no such app yet, it raises the possibility that it is not possible (because of the lack of processing power of phones, for example).
I have a few questions regarding this:
I hope you can compass me in the right direction.
Upvotes: 1
Views: 747
Reputation: 4328
Sounds like a fun question.
If you record raw audio data, you'll most likely record 16 bit
PCM data with a samplerate of 44100 Hz
.
44100 Hz * 2 byte
means 88200 byte
per second, 88.2 kilobyte
.
You will want to transmit one stream from each client, so its 176.4 kilobyte per second
.
Can an Android phone send a sound stream to another phone?
Recording it will be no problem. It is just data, so it can be transferred just like e.g. pictures of cats.
Can an Android phone send a sound stream to another phone in the same wifi network?
Even using uncompressed transmission, this rate should be achievable easily on a wireless local area network.
Can an Android phone send a sound stream to another phone in another wifi network over the Internet? If yes, how can they find each other (considering the local addresses they both can possess - 192.168.0.100 for example)
This get's trickier, as you'll have to fight with NAT to get unique IP address if you want to directly connect to a known IP address. But it is possible, if the connection has been established. In Germany, I usually have transfer rates that are by far high enough to transmit this data. That is, when I'm not throttled to 5 kb/s
...
Upvotes: 2