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?
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.