2

I'm making an app witch allows you to make a video call from one device to another. I've done a bunch of searching around and I haven't been able to find something that tells me how to get the video and audio from the iPhone camera and send that live stream to a web server to connect to another device. I have finished every other element of the app so this is all I need to finish.

Abizern
  • 146,289
  • 39
  • 203
  • 257
Dan Grueneberg
  • 215
  • 1
  • 4
  • 9
  • Pare this down to at least 3 questions (streaming Audio and Video, Server communications, and Peer-to-Peer connections). You probably didn't find anything because you're searching for something so specific. – CodaFi Jun 13 '13 at 01:38
  • @CodaFi to start I want to be able to get the video stream. – Dan Grueneberg Jun 13 '13 at 01:49
  • It's very complicated (a lot of work for 1 person), Why don't you use 3rd party libraries? – Idan Jun 13 '13 at 19:44
  • If you liked my answer please accept it. If not comment below so I can elaborate it. – Idan Jun 25 '13 at 12:56
  • Have you completed this project ? How long did it take ? – Kenner Dev Jun 16 '15 at 21:54

2 Answers2

4

This is very complicated! I assume you don't really want to code the whole thing because that would take you forever.

I'll try to brief what you need to have to make that happen: 1. Client code - You must implement an iPhone client, Client would have to connect to some SIP server, initiate calls, rings (through push) and so on... 2. SIP server - This could be really simple (if you buy this service, Usually you pay per time or for number of calls your system could support in parallel) or really complex if you want to build this service yourself (there are companies that sells those products/services and do just that).

Where to start? If you are willing to use open-source (if your client-side could be also that's the simplest way), Or just understand the scale of what you are trying to do I suggest you try linphone(https://www.linphone.org). They have open-source SIP Client for iPhone (and almost for every platform) you can use for free (if you are willing to open-source yours, Check the license there). You could also buy the code so you can keep your code secret but that is very expensive!

For server side there are a lot of services you can use, Also linphone has their own Server you can use for test free. So you can try and use before you go to a big server.

In case you don't want to implement the technology and want to start building your app with your wonderful idea, I suggest you use 3rd party that gives you everything including a simple iOS SDK, So you can integrate in minutes. Check those out: Rebtel, Twilio etc. I don't know if they have video yet but I'm sure if not they would have soon. Btw, Rebtel is totally free so there is no reason not to start with it (to be honest I never used Rebtel and don't know if it's great or not).

In my opinion if you are just starting and you don't have a big team with experience with this it would probably be a good thing to start with the last option (3rd party full service) and start building your idea because otherwise you would spent your time too much with a very complex technology.

Hope this helps.

Idan
  • 9,880
  • 10
  • 47
  • 76
  • Idan, I want to write Facetime like app. I want to use existing commercial or open source SIP server software. I want to write Iphone client..I want to estimate how much it is going to cost ( man hours ). Am I missing anything else in my estimate ? Do I need anything else besides Iphone sip client if I use open source server ? – Kenner Dev Jun 16 '15 at 22:01
  • @KennerDev This is an old post. Things should be easier now but still building it should take lots of time. I suggest you to use 3rd party services to solve this and launch ASAP. There are lots of those, Try Twilio (it would be really costly if lots of calls but a very good start). – Idan Jun 17 '15 at 06:26
2

It's complicated, likely more than you imagined.

You may need to license and encode H.264 and AAC.

You'll need to understand RTP and SRTP.

You may need your own servers for SIP, STUN, TURN, and ICE.

i'm not happy with this answer but I don't want you to underestimate the magnitude of your project - it is not trivial.

andy magoon
  • 2,889
  • 2
  • 19
  • 14
  • I don't mind doing the required steps to do this but where should I start? – Dan Grueneberg Jun 13 '13 at 02:25
  • You may need to license and encode H.264 and AAC. You'll need to understand RTP and SRTP. You may need your own servers for SIP, STUN, TURN, and ICE.If I use open source or commercial sip server, It will take care of all the above things right ? I just need to code SIP Iphone client ? – Kenner Dev Jun 16 '15 at 22:04