I have been trying to figure out how to connect an iPhone to an external camera over Wifi. The phone connects to the camera over wifi, but I am confused about how to display the camera output onto a custom-made application. Is this even possible? Any help would be appreciated. I essentially want to stream the video and take pictures on the custom-made app on xcode.
Connect an Iphone and an External Camera over Wifi
Rather than asking the same question again, it's better to add a new comment to your original post.That way, you don't clog up the forum with unanswered questions.
Sorry about that. It came to my attention that I should different tags. I was not sure how to delete my old post.
Does your Wi-Fi accessory publish its own network?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
the camera has its own wifi network
OK. So the goal for your app is:
-
Command iOS to switch to the camera’s network.
-
Connect to a server on the camera that returns camera output.
-
Display that output in your app.
Right?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Yes this is the goal.
Cool.
With regards step 1, you can tell iOS to join your camera’s Wi-Fi network using NEHotspotConfigurationManager
. See the docs here and both the Configuring a Wi-Fi Accessory to Join the User’s Network and NEHotspotConfiguration Sample samples (the latter is simpler but older).
With regards step 3, that’s not something we can help you with here in the networking area of DevForums. Once you get to that point, start a new thread with tags appropriate for the technology you’re using.
That leaves step 2. Unfortunately there isn’t a ‘one size fits all’ solution to this. Different cameras use different network protocols to publish their content. You’ll have to research the specifics of your camera and get back to us with details about the protocol it uses. Once we have those details, we can point you at the right APIs to ‘speak’ those protocols.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"