Swift: (Live) Streaming Audio Between Devices - ios

Just from my own general curiosity, I was wanting to see if it was possible to stream LIVE audio between iOS devices by online using bluetooth or by "enslaving" one device over a local network—basically the same experience as a phone/Skype call. I have found tuts/information on how to stream a saved file and solutions that use a server side solution, but not exactly what I am looking for.
Anyone with solutions, information, or what not to get me started would be much appreciated.

Related

Stream video from camera to iPhone

I'm working on an app that connects to a security camera. The camera has its own SIP server (Asterisk).
I'm having a very hard time finding a reliable iOS library to connect to the camera.
Can anyone recommend a high-quality SIP library that will stream video? I've tried several so far and none of them are fit for the task (I don't want mention them by name).
Or is there another way to access the video (using webRTC or possibly AVFoundation via the Asterisk server)?
I do not have a lot of experience with hardware, so I'm a bit lost.
What are you looking for called MCU(media control unit). There are some free availible for vido, but all are early beta and very hard to setup.

iOS RTP live audio receiving

I'm trying to receive a live RTP audio stream in my iPhone but I don't know how to start. I'm seeking some samples but I can't find them anywhere.
I have a Windows desktop app which captures audio from the selected audio interface and streams it as µ-law or a-law. This app works as an audio server that serves any incoming connection with that streaming. I have to say that I've developed an Android app that receives that stream and it works, so I want to replicate this functionality on iOS. In Android we have "android.net.rtp" package to manage this and transmit or receive data streams over the network.
Is there any kind of equivalent package for iOS to implement this? Could you give me any kind of reference / sample to do this, or just tell me where to start?
You can see this libraryHTTPLiveStreaming, But his protocol maybe is not standard one, You can check my fork aelam/HTTPLiveStreaming-1, I'm still working on it, it can be played by ffplay. You can try
check the file rtp.c in ffmpeg, I think it will help out

Building An RTP Server in iOS That Allows WiFi Speakers To Stream Music

A Little Background On Why I Have To Do This
I am currently optimising an app in order to improve the transferring of media files to the WiFi speakers that our team developed. Our solution before was using iPhone as an HTTP server and then allow the speakers to connect and download music from it. But unfortunately a lot of problems occurred such as frequent slow transfer speed, file read failure, and when user uses the "seek" command, the speakers would have to download the whole file in order for it to seek into that particular time before it starts to play. This is a very bad experience for our users.
What I Need
In order to solve the problem I mentioned above. We thought of changing the HTTP server to an RTP server that will be ran on an iPhone and then allows the WiFi speakers to stream music from it. However, from what I read on other Q&A platforms they mentioned that iPhone does that support transferring of data using RTP. I also tried searching here in stack but were not able to find an answer that solves my problem.
My Question
Is it possible to run an RTP server on iPhone and is there any demo about this that I can refer to?
Any suggestions would be high appreciated.
Please read link http://dss.macosforge.org/
Darwin Streaming Server from Apple official.
However, I'm not sure it can work on iOS.
Best regards,

Stream live video from ipad? [duplicate]

I'd like to stream video from the camera on an iOS device to a receiver via wifi, in effect turning the device into a wireless webcam. Is there a way to build a small app that captures video input on an iOS app and sends it via an RTSP stream or similar?
As this is an ad hoc experiment, I'm not concerned about App Store guidelines and can jailbreak if necessary.
If I interpret your question correctly you more or less need to solve four problems:
Get the camera feed.
Convert/encode this to the right format.
Stream the data.
Prevent the phone from locking itself and going into deep sleep.
The first one is fairly simple and Apple has as always provided good documentation and examples -> API link. Make sure you check out their example in the end as you will get a CMSampleBufferRef data object back.
For the second and third part, you should check out the CFNetwork framework and specially CFFTPStream for streaming using FTP.
If your are only building this for yourself then you can always turn off the Auto-Lock feature in the settings. If you on the other hand would like to distribute this to other users you could use a trick to play a mute sound every 10 seconds. This is more or less how all the alarm clocks work in the App Store. Here's a tutorial. =)
I hope I helped a little bit at least.
Good luck and best regards!
I'm 70% of the way to doing the same thing. Here's how I did it:
Capture content from video input
Chop video into files for use in HTML Live Streaming.
Spin up a web server on the iPhone and make the video files available.
Connect to the IP address of the phone and viola! you've got live streaming video.
Last time I touched the code I was trying to debug my Live Streaming not working. I'll try and get my source code posted on github this weekend, if you'd like to take a look.

Using an iPhone audio dongle to transmit data

I've just started working at a biomedical company and we need to communicate data from a device we are making to an iPhone. Obviously using the made for iPhone program would suffice, but for prototyping and for a simpler solution I was wondering if we could use an existing bluetooth audio transmitter, such as (http://www.buy.com/prod/bluetooth-a2dp-audio-hifi-dongle-adapter-transmitter-for-iphone-3g-ipod/q/loc/111/211900047.html?adid=17662) but instead of streaming audio, program it to stream data. I'm not so good with the hardware side, and wouldn't be designing the hardware on our end, only the software, so just wondering if with the current SDK, we can send data through an audio streaming device?
Any help is greatly appreciated :)
I've been looking into it, and found FSK a suitable solution.
I have a few links you could check out (most involve the Arduino, but you can ignore that).
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274970878 (blog post on arduino forums that is helpful)
http://translate.google.com/translate?hl=en&sl=ja&tl=en&u=http%3A%2F%2Fjp.blog.reinforce-lab.com%2F (japanese description of FSK from iPhone to Arduino)
http://code.google.com/p/arms22/downloads/list (software libraries)
http://sree.cc/electronics/arduino-as-an-fsk-modem
http://www.perceptdev.com/labs/iphonehacks (old iphone hack that creates a FSK modem with the iPhone)
http://www.progical.com/ (company that sells such dongles, but wouldn't reply to me)
http://eecs.umich.edu/%7Eprabal/projects/hijack/ (awesome project)
If you really want a realiable solution, look into serial data (jailbreaking might be required, but awesome for prototyping):
http://www.ohscope.com/2009/02/24/serial-port-on-iphone-with-minicom/
http://hcgilje.wordpress.com/2010/02/15/iphone-serial-communication/
UPDATE:
Thinking outside of the box, if you want a really reliable solution; I bought this recently.
http://redpark.com/c2db9.html

Resources