IPhone TV Out Cable Usage - iphone

I found a cable which one can use to connect IPhone to TV to watch videos stored in IPhone on TV. I wonder can I use this cable in a way to stream data from other devices to iphone and write an iphone app to seek the stream to play audio/video in iphone?
The Cable.
I am not sure where to go to read about the behavior of this cable as how t works. A help would be appreciated.

No. You won't be able to do that due to API limitations.

The cable is a copy of the original "Apple Composite AV Cable":
http://store.apple.com/us/product/MC748ZM/A?mco=MTY3ODQ5OTY
The only thing you can do with the cable in addition to playing videos, is to show a UIView or your complete app on a TV. To clone your complete app you can use the TVOutManager:
https://github.com/robterrell/TVOutManager
I use the TVOutManager in my app and I am very happy with it :-)

Related

Record Video of my running application in iPhone

I want to record a video of my application which is running on my iPhone and use it for Replay. How can I do that?
I was searching for this and could't find any solution.
Your only options are:
1. Run the app in the simulator and use any screen capture tool for mac to record a video
2. Fix the iPhone on a pod/stand and record video of you app with another camera
If the app does not have any feature which is available only on the device i would avoid option no 2, because iPhone's glossy screen shows all kinds of reflections and the user's hand in the video is really annoying..
Well, if your phone is a 4S you can get a dongle from Apple that outputs the video as a HD stream. The dongle lets you plug in a HDMI cable, so you would need some way to capture that output.

How to Connect My iPhone app to tv through hdmi Cable

I have a requirement where i need to connect my iPhone to TV through HDMI Cable and play the videos on TV.
how to detect that hdmi cable is connected to iPhone.Are there any delegate methods?
Can anyone give the reference notes for this.....
THANKS IN ADVANCE
Here a link, in french, but you can go trough the code to understand it.
http://www.benoit-deldicque.com/blog/utiliser-une-tv-avec-iphone-ipad-hdmi-adapter-et-ios-sdk/
You need to use the specific cable for your model iPhone and model TV for this to work. Also it is not a exact mirror of your iPhone it uses only photo apps and video apps.
http://connect-to-tv.blogspot.com/2014/02/connect-iphone-to-your-tv.html

iPhone Bluetooth Audio API

My car has bluetooth capabilities for connecting to my iphone for phone calls; however, it does NOT support bluetooth audio for music streaming. I know apps like viber or skype also use bluetooth for phone calls. My question is: is it possible to write an app that fakes phone calls to stream music to my car, as if someone is calling me (but is actually playing music)? Is there some other way to hack this to get bluetooth audio streaming?
No need to jailbreak your phone. Just buy the A2DPblocker app. Costs $2.99. Sound quality isn't perfect but better than the alternative. Worked for my 2010 Volkswagen so should work for any other car that supports bluetooth but not streaming music.
First poster -
There is already an app to do this - it's part of SBSettings called Bluetooth Mono that needs to be installed (so only MONO and only for JB'd phones).
Second poster -
I suspect you are correct about HSP - I've installed the app and the sound quality is terrible.
So, I've put all my music on a USB stick and leave it permanently plugged in. Far superior sound.
Mike
I don't think there's an easy way to do this. But the bigger issue is that it would sound terrible. The bluetooth connections for doing phone calls use headset profile (HSP) and are low bitrate, mono, and frequency limited to voice ranges.
Applications for streaming audio/music over bluetooth use A2DP profile, which is much higher bandwidth and stereo.
If you try to pipe music over a an HSP phone link it will sound horrible, just as it does if you are talking to someone on the phone and they have music playing in the background.

iOS framework to get audio in from dock connector

How would I go abouts playing an 'audio in' through the dock connector in an iOS app? I'm making an app just for myself and have no plans of putting it into the apple store. I have the 30pin breakout board, and on it there are pins for L/R audio in, but I can not find any info on how to use them?
Thanks
As far as I'm aware, your only officially supported option for any accessory using the dock connector would be to use the External Accessory Framework, which requires enrollment in the Made for iPod Program (overkill for your purposes). However, the iPhone and iPod both support line-in via the headphone jack, and there are plenty of apps that make use of audio input. At least it provides some possibilities.
Have you looked at the pinouts for the dock connector floating about? It appears that certain resistances connected to pin 21 indicate to the iDevice what is connected.
68kΩ seems to be the magic number for audio in/out.

Sharing Audio over bluetooth

I want to write a function in my iPad App, which allows me to stream the music choosen on iPad to the connected Game-Interfaces (iPod, iPhone...) via bluetooth. Does anyone knows a simple solution or maybe wants to share some sample code?
Thanks for help!
I am doing something very similar. I have my iphone connecting to multiple devices to stream audio to them, but I want the device that is streaming the audio to also play audio as well.
You can look into the GKSession in the GameKit API and that should give you a good start.
Also maybe openAl, but I think that might be a little overboard. I heard Core Audio has a built in feature for bluetooth devices that are connected to play audio through them but I dont think this goes for iPhone, iPad, iTouch etc....
I have also created my own peer connection interface that allows me to see multiple bluetooth devices that are running my app. I then can click each one and each gets connected. I then I added a test to push a text message to all connected devices for testing. Next I need to find out how to stream audio to the connected apple devices.
If anyone has any info on this I am sure we would both appreciate it.