The main idea of the project was to implement a walkie-talkie iOS app, that would operate within a local network via UDP in a one-to-one manner. All UDP operations are implemented by means of CocoaAsyncSocket library.
So far the app has two pages:
- the main view containig the connect and talk button and where the most of the user interaction would be performed;
- the Settings view, where the connection parameters (local & remote ports and opponent address) should be entered prior to connecting.
Main View (not connected) | Main View (connected) | Settings |
---|---|---|
In order to run the project the dependencies should be installed first. To do this simply navigate to the project directory and run pod install
.
If you don't have cocoapods installed already, then here's how it can be done.
You have to run the app on two devices as the same time for obvious reasons 😄. However, if you happen not to have a second device available you can use the simulator. Another option to test the audio streaming is to run the VLC player on your computer with the following parameters:
vlc --demux=rawaud --rawaud-channels=1 --rawaud-fourcc=fl32 --rawaud-samplerate=11025 udp://@:<PORT>
Note! <PORT>
should be replaced with the real incomming port at which VLC would wait for the audio to appear.