Android Tutorial Walkie Talkie - Audio streaming over Wifi or Bluetooth

Status
Not open for further replies.

Avansys

Member
Licensed User
Longtime User
Hi Erel,

How many devices can be connected via wifi at the same time?

Is it possible?

Thanks
 

Avansys

Member
Licensed User
Longtime User
Many devices can be connected via wifi. This example only supports a single connection. However you can modify it to support multiple connections.

However all the data will need to go through the "server" device.
Can you help me please¡?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Can you help me please¡?
I'm sorry but I cannot write such a solution for you. Maybe this B4J example will help you: http://www.b4x.com/android/forum/threads/b4j-cctv-example.34695/#post-203347

It allows multiple devices to be connected to the same server.

I realize that automatic Wifi connection could also apply to other situations than the Walkie Talkie.
To which methods are you referring?
You can send a broadcast UDP message to all connected device and then reply with the device IP address. For further related questions please start a new thread.
 

macguiwer

Member
Licensed User
Longtime User
Hello Erel.
I tried using your code on a 3G connection.
this is the only modification I made
B4X:
Sub pe_ConnectivityChanged (NetworkType As String, State As String, Intent As Intent)
'    MyIP = server.GetMyWifiIP 'only for wifi
    MyIP = server.GetMyIP 'for  3G y wifi.

    UpdateUI
End Sub
but can not get it to work

Error:
(SocketTimeroutExcention) java.net.SockelTimeExcention:fault to connect to


any idea?

PD: I think the application is good.
I think the problem is that the 3G connection is behind a proxy server.

PD2 :works perfectly
the problem was that after a trip outside my country.
my internet settings was going through a Proxy.
 
Last edited:

alan dodd

Member
Licensed User
Longtime User
Hello, Philip.
I read your post about code you have for sending audio from android to pc.
Could you be so kind to send it to me?
I already use lakeofsoft with delphi between two pcs and it works, your code could help me get things working with android <-> windows.

Thank you.
Alan
 

vangogh

Active Member
Licensed User
Longtime User
Can I send the voice message (half duplex is OK) to ALL devices connected?

many devices connected toghether so a single "COME HERE" can be heard from anyone?

thank you
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Can I send the voice message (half duplex is OK) to ALL devices connected?
Hello,
Using UDP could let you do Multicast. You'll have to send the message to the IP 192.x.x.255 so all the UDP receivers could get the same message.
 
Last edited:

vangogh

Active Member
Licensed User
Longtime User
I analyzed the code but I cannot understand how to select the protocol tcp/udp...

can you help me?

I simply have to send a message like "come here" to all devices

everybody should be able to send a message that is received from anybody...

thank you
 

vangogh

Active Member
Licensed User
Longtime User
a multicast chat found in the market uses RTP - Real-time Transport Protocol - that is based on UDP
have you any suggestion or hints about how to use it the the walkietalkie app?
I still haven't found a solution I can develope *easily* ;-)
 

Sahaya Arul

Member
Licensed User
Longtime User
dear Erel,
How do you send audio to all the devices connected in the wifi using walkie talkie...please help me...I need detailsed explanations please...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…