Capture screen of UBS-connected iPhone in macOS App - iphone

TL;DR: Can I capture an iPhone's screen from my macOS application?
I've been searching for any APIs on macOS to to capture the screen of an iPhone that's connected to the computer, but haven't found any. Are there such public API's?
I've looked at SonOfGrab-example from apple, but that's only for processes running on the "current" computer from what I can figure out.
I want to do what QuickTime does when it records from the device, however I want to do it programmatically, by getting the image or a video stream of what's showing on the iPhone.

Related

iOS output stream music in background

to cut story short Im developing an app thats like Sonos. That is, Im trying to stream music from the iPod library to a hardware over wifi. Hence the sound will come out of a hardware that is connected to the iPhone by wifi.
Doing this is easy enough when the app is foreground but in the background the app will be terminated. It is different when outputting the audio in the background in the iPhone device itself.
Also I notice that Sonos supports this feature only for iOS 6 so I wonder if theres some new magical API that allows this.
I hope any of you gurus can guide me to the right path.

iOS video not playing in mobile safari

I have this really annoying problem that I cannot seem to solve.
We have some short clips on our server that we are trying to view via mobile safari. The weird thing is that we are able to view the movie on mobile safari when our iPhones are on 3g, and not when we are on WiFi.
It gets weirder that we are able to view the movie sometimes on wifi and not other times.
Here is the link in question:
http://bit.ly/Za0xBA
Why would the link play via 3g and not via wifi? Are there some settings in there that would be stopping? We even tried to wireshark the connection via the iOS simulator and what was going on and it looks like the video is downloading fine.
This is driving us nuts!

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 the camera from iphone to mac

I need to know if there is a way to connect the camera of iPhone to mac. My aim is like to create a spying camera where iPhone will act as the spying device and we will see the view from its camera on mac screen.
There is no API for this. The "answer" is to build a client and then capture the images on the iPhone screen and transmit them to the client server.

iPad Video Playback only delivers audio, not visuals

Recently we've developed an iPhone app for an external company, and everything works fine in the app.
There is a section where the app pulls video from the client's server, and streams it into the iPhone's MPMoviePlayerController. This works fine on the iPhone and iPodTouch - both the video and the audio show up just great.
The problem, however, is that when the app is run on an iPad (using the iPad's iPhone simulator thingo that it does) only the audio plays, and no video can be seen.
Does anybody have any suggestions about what may be causing this? I thought perhaps it was the encoding, but then why would this prevent the video from playing on the iPad, and not the iPhone?
Use mpmovieplayerviewcontroller instead, you might find it works better.Here is a link to the ref http://developer.apple.com/iphone/library/iPad/index.html#documentation/mediaplayer/reference/mpmovieplayerviewcontroller_class/reference/reference.html