iPhone RCA APIs for communication with apps - iphone

What API are available for communicating between a native device/web app and the devices RCA port, like the way credit card readers (square, paypal etc.) exist for iPhones?
Does anyone know what sound/recording API is used by these readers to encode data as audio?

The card reader plays an audio encoding of the card data, and the app is listening to the audio. So technically it's using audio recording APIs. There's no way to treat the headphone jack like a serial port and read data over it, only audio. If you wish to communicate directly with another device, either it needs to be over bluetooth or thru the dock/lightning connector.

Related

Sending audio in real time from iphone to server?

Is it possible to send audio from iphone to server in real time? I am using AQRecorder which records the data and saves it on a file.I was wondering if there was a way of sending the recorded audio to server in real time.I want to send the audio while it is being recorded.Is it possible? Can we redirect the recorded stream to the server instead of a file?
NOTE:I am using the speak here code from apple https://developer.apple.com/library/ios/samplecode/speakhere/Listings/Classes_AQRecorder_mm.html
Nate is right. A lot of legitimate apps do that. So, you don't even need to have a jailbroken device.
Take a look at this question: Live streaming audio from iPhone
You may be interested to look into open source SIP clients for iOS:
https://code.google.com/p/siphon/
http://www.pjsip.org
http://www.linphone.org/eng/linphone/news/linphone-for-iphone.html

How to simulate a call so that the bluetooth audio get streamed into a vehicle?

The iphone connects to most vehicles via bluetooth. Phone calls as well as voice control and siri also get routed via the bluetooth audio and mic of the vehicle.
How can i stream audio in the same way?
I have sen answers about the vehicle capability to support streaming audio, but this is not what i am looking for. If siri and voice control can stream over the vehicle audio as it is treated as a voice call then i should be able to stream everything else.
Thank you
It sounds like you want to simulate a call originated from your iPhone, as opposed to some other device that pretends to be a phone and pairs with your car. You can’t, because Apple doesn’t provide APIs to do that.
I think that false.
Google did it.
They do it in Google Search. If you search using voice, it streams simulating a call.
Something similar happens with the voice notes application from Apple. You can stream music to the car as if it was a call.
Actually, my car doesn't support A2DP, only calls, and using voice notes I can play music (odd, but works).
But..., how can we implement it???

Possible to Stream Video on iphone/iPad Using Windows Encoder?

Hello all i use windows encoder to stream video online and have a server that i use to broadcast this stream. i am trying to make an app that streams video to the iPhone/iPad using a unique link. i have seen apps out that stream their own DVR cameras so there must be a type of converter or encoder to use. any suggestions?
The short answer is no, not at this time. The iPhone/iPad/iPod Touch work natively with the Apple HTTP Adaptive segmented streaming protocols. MMS (Windows Media) streams are not compatible with "i" devices and will not play. You will need to look into encoding your video with this other format. Check out the Apple specs for a full description of the protocol. Future versions of Windows Media Services (4.0) are claiming that they will support the Apple protocols but this is only a preview/beta at this time and may not truly support the Apple specs.
If your trying to do on-demand iPhone video, you can utilize a service such as Encoding.com to pre-encode your files in the adaptive segmented format for your users to view. For live encoding, Telestream has a product called Wirecast which can encode in a h.264 Apple approved baseline format which can be sent to a service such as Akamai, Multicast Media, or Wowza Server for distribution to your clients.

Audio Streaming API's: Wifi vs what?

I've noticed certain radio apps, that some stations required wifi and others did not. What were those other stations possibly using? Are there other methods of streaming audio on iOS?
Apparently, I was not clear in my question before.
I'm asking in terms of API's. Is there an API to interact directly with say, FM radio, on iOS? Is wifi the only way of streaming audio?
Have a look at HTTP Live Streaming:
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html

Which iPhone API should I be using for streaming audio?

I'm looking to build a little toy app that is very similar to a voip application. One person would hold one iphone and talk to the other iphone. I don't want to use gamekit because it forces a p2p connection and does not work over 3g. I'm worrying about the server side of this later but just wanted to get started with the iPhone side of it. Which API to record audio in real time and which to play it back?
Look to Audio Queue Services for capture and recording. You'd need to come up with a wire protocol to transmit the audio, but the tools to capture and playback or save on either side of the connection can be built using the queue services.