← All guides CamSimulator

How to Use an iPhone as an RTSP Test Camera

Start a local RTSP stream from an iPhone, open it in VLC, and troubleshoot your first connection.

An iPhone on a tripod beside a laptop displaying the tabletop scene
Illustration of the test setup.

You’re setting up a video client or troubleshooting an NVR, and all you need is a live stream you can control. If you have an iPhone and a second device on the same local network, you can use the iPhone as an RTSP test camera.

I built CamSimulator for jobs like this. In this guide, we’ll start a stream on an iPhone, open it in VLC on a second device, and check where to look if the picture doesn’t appear. The free version is enough to complete the walkthrough.

What you’ll need

  • An iPhone or iPad with CamSimulator installed.
  • A second device with VLC. A Mac or PC works well because you can watch the receiver while operating the phone.
  • A local network that lets the two devices reach each other. A guest Wi-Fi network can block communication between devices even when both show the same network name.

Keep CamSimulator open in the foreground and the iPhone unlocked during the test. The stream is intended for use on your local network.

1. Start the camera service on your iPhone

Open CamSimulator and create a local account during setup. You’ll use those credentials if VLC asks you to sign in. Allow camera and local network access when iOS prompts you.

On the Camera tab, tap Start service. Once the service starts, look for Service running. The screen below also shows the current output and the RTSP client count.

CamSimulator Camera tab showing Service running, the H.264 output settings, and the RTSP client count

The Camera tab after startup. App Store screenshot with sample video.

Open Connect, select RTSP, and tap Copy URL. The RTSP address starts with rtsp://. Use the address shown on your phone, since it depends on the network you’re connected to.

CamSimulator Connect tab with the RTSP option between ONVIF and Browser

Select the middle RTSP tab before tapping Copy URL. The App Store screenshot shows the ONVIF tab with an example address.

Leave CamSimulator open while you move to the second device.

2. Open the stream in VLC

On the second device, open VLC’s Open Network Stream or Open Network dialog. Paste the RTSP URL from CamSimulator and start playback. If VLC asks for credentials, enter the local username and password you created in CamSimulator.

Once the picture appears, wave a hand in front of the iPhone camera. You should see that movement in VLC. Then check the iPhone’s Connection progress panel. RTSP clients in PLAY tells you a client reached the playback stage of the RTSP session. The moving image in VLC confirms that the receiver is displaying the video. VLC desktop documentation

That gives you a reference stream. If you’re setting up another compatible RTSP client, open the same URL there while leaving the phone and its settings as they are. If VLC shows the stream and the other client doesn’t, start with the other client’s network path, authentication, transport settings, and codec support.

3. If the picture doesn’t appear, check where playback stops

What you see What to check next
VLC can’t connect Confirm the phone is unlocked and the service is running. Copy the address again from Connect, especially if the phone has changed Wi-Fi networks. If both devices are on guest Wi-Fi, check whether that network allows local device-to-device traffic.
VLC keeps asking for a password Re-enter the username and password from your CamSimulator local account. Use the RTSP address as shown and enter credentials in the player’s sign-in prompt.
The client reaches PLAY, but the screen stays black Check whether the receiver supports H.264. If your client lets you choose the RTSP transport, try TCP first. Retry the same stream in VLC to see whether the behavior is specific to the other client.
The picture stops when you leave the app Return to CamSimulator, keep the device unlocked, and check whether the service needs to be restarted. Then reconnect the receiver.

If you want a quick second check, open the browser preview address from Connect on another device on the same LAN and sign in with the local account. The browser preview is video-only and gives you a separate way to confirm the phone is producing a picture. Use VLC to verify the RTSP path itself.

When a fixed test pattern helps

For the first connection check, the free version provides 720p H.264 camera output with a watermark. You can use it to verify that a client connects and displays live video.

For repeat testing, a camera pointed at a desk can change every time you move the phone or adjust the lighting. CamSimulator Pro can stream a fixed test pattern so you can keep the source image consistent while changing one receiver setting at a time. Pro is a one-time purchase and also adds advanced encoding controls, presets, and up to 1080p output on supported devices.

Get the picture working in VLC, then try the same stream in the client you’re setting up. Write down which client opened it and which transport you used. The next time playback fails, you’ll have a setup you can repeat.

Download CamSimulator on the App Store