← Portfolio

Project 03 · Independent iOS application

Remote Lens

A way to see and control an iPhone camera from another iPhone. One phone is the Camera Host. The other is the Remote Viewer.

My role
Independent developer, product designer, and technical implementer.
Status
In development — final examination project. Third camera-control milestone completed.

01

Background

Why I wanted a remote camera

I wanted a practical way to frame a photograph when I cannot stand behind the camera. That comes up in self-recording, travel content, and any setup where the photographer and the subject are the same person, or where the camera has to stay in one place.

A phone already has a good camera. The missing piece was another phone that could show the live image and press the shutter. Remote Lens is my own project. It is my examination project, and it is not finished.

02

Goals

What the two phones should do

The application has two roles:

  • One iPhone acts as Camera Host and owns the camera.
  • Another iPhone acts as Remote Viewer.
  • The Viewer shows a live preview from the Host.
  • The Viewer can control the Host camera.
  • The Viewer can capture a photograph remotely.

The photograph should be a real capture from the Host camera, not a saved frame of the preview.

03

Development

How the prototype grew

Remote Lens is built in Swift and SwiftUI. The camera uses AVFoundation. The two phones find each other and exchange preview frames and commands with MultipeerConnectivity, over Wi-Fi or a Personal Hotspot.

The milestones so far:

  1. Initial prototype with two iPhones
  2. Host and Viewer architecture
  3. Device discovery and pairing
  4. Connection over Wi-Fi and Personal Hotspot
  5. Live camera preview on the Viewer
  6. Remote shutter and camera commands
  7. High-resolution photo capture
  8. Camera control improvements
  9. Lens selection, zoom, focus, and exposure controls

The project has completed its third camera-control milestone. The source project is not part of this website repository, so the feature list follows the application as I have built it, not a separate code review inside this repo.

04

Technology and challenges

A sharp photo and a blurry preview

Connecting two phones was the first structural problem. The Host has to publish the camera, the Viewer has to discover that Host, and both sides have to agree on the role before any control is sent. Preview frames and shutter commands travel over MultipeerConnectivity, so the Viewer is always acting on the Host’s camera state rather than on a local camera.

A later problem appeared when I improved photo quality. The captured photographs became sharp, but the live preview became blurry and noisy. The preview and the still capture were sharing a path that should have stayed separate. I investigated that regression and corrected it, so the preview could stay usable while the photograph remained high resolution.

The exact API-level cause is not written down in this website repository, so I am not stating a more specific root cause here. The lesson that is clear is the separation itself: the live preview pipeline and the photo capture pipeline have to be configured on their own terms.

Diagram · two-phone architecture

  1. 01Remote Viewer: live preview, shutter, focus, exposure, zoom, and lens commands.
  2. 02MultipeerConnectivity
  3. 03Camera Host: AVFoundation preview pipeline and a separate high-resolution photo capture pipeline.

05

Results

What works in the current build

The current application supports a connection between two iPhones, a remote live preview, Host and Viewer roles, remote camera controls, and remote photo capture. Capture is high resolution. Focus, exposure, zoom, and lens selection are part of the completed camera-control work.

This is not a released product. There is no App Store listing. The status is in development for the final examination. The public description is on the Remote Lens product page.

Placeholder

Camera Host screen

ADD_REMOTELENS_HOST_SCREENSHOT
Shows the iPhone that owns the camera.

Placeholder

Remote Viewer screen

ADD_REMOTELENS_VIEWER_SCREENSHOT
Shows the live preview and the remote controls.

Placeholder

Two connected iPhones

ADD_REMOTELENS_TWO_IPHONES_DEMO
Shows the Host and the Viewer working as a pair.

Placeholder

Camera controls

ADD_REMOTELENS_CONTROLS_SCREENSHOT
Shows focus, exposure, zoom, or lens selection on the Viewer.

Placeholder

Short demonstration video

ADD_REMOTELENS_DEMO_VIDEO
A short recording of discovery, preview, and a remote capture. Video file not added yet.

06

Reflection

What I learned, and what is next

This project is where I learned AVFoundation as a set of pipelines rather than as a single camera view. Preview, capture, and the controls around focus, exposure, zoom, and lenses do not automatically stay in sync. I also learned how MultipeerConnectivity behaves when two phones have to discover each other on Wi-Fi or a Personal Hotspot and then keep camera state aligned.

The preview regression was useful. A better photograph had made the live image worse. Separating those paths fixed the product without giving up the sharper capture. That is the kind of bug I want to be able to explain: what broke, what I separated, and what I am not claiming when the detailed cause is not written down.

Future plans, not completed work

  • PRO photography controls
  • RAW and ProRAW
  • Professional video recording
  • Film simulation recipes
  • Advanced image processing