TP-Link's Tapo cameras are everywhere, and the Tapo app exists for phones and tablets only. There is no Tapo app for Windows. If you want the picture on the computer you are already sitting at, the usual advice is an Android emulator, or a media player and an RTSP address typed by hand.

I built a small Windows app for this, CamOnPC. This post is about the technical side: what a Tapo camera offers on the local network, how its video gets into a window, and the parts that took the most time.

Disclosure: CamOnPC is my product. It is a paid app (one payment, with a free trial), and it is not made by or affiliated with TP-Link. This article was written with the help of AI, and the facts in it were checked against the app's code.

What a Tapo camera offers on the local network

  • RTSP on port 554, with two streams: rtsp://USER:PASSWORD@CAMERA-IP:554/stream1 is the full-quality picture and /stream2 is a light one.
  • ONVIF on port 2020, which is how a program finds the camera and sends pan and tilt commands.
  • A separate login. The user and password are the "Camera Account" that you create in the Tapo app (Settings > Advanced Settings > Camera Account). It is not the TP-Link login. A large share of "wrong password" trouble is this mix-up.

Two limits are worth knowing before you write a line of code. Battery-powered models do not offer RTSP at all; TP-Link's own wording is that most Tapo cameras, "except for battery-powered models", support RTSP and ONVIF. And a camera does only two of these three things at once: recording to Tapo Care, recording to a memory card, and sending video to a program. With the first two switched on, RTSP does not connect.

Getting RTSP into a window

A browser engine does not play RTSP. One way round is to transcode everything with ffmpeg, which costs processor time for every camera. The other is to repackage the video without re-encoding it.

I used go2rtc for that. It connects to the camera over RTSP and passes the same H.264 video to the page over a WebSocket as fragmented MP4, and the page plays it through Media Source Extensions. Nothing is re-encoded, so the load stays low.

The app starts go2rtc as a child process and has it listen on 127.0.0.1 only, so nothing else on the network can reach it.

Two streams, used on purpose

With up to four cameras on screen, each one shows stream1. With more, the tiles switch to stream2, and the full-quality stream comes back for the camera you enlarge or zoom into. Sixteen full-quality streams decoded at once is a lot to ask of an office laptop, and on a small tile nobody sees the difference.

What took the most time

Saying what is wrong. RTSP failures look alike from the outside: wrong password, wrong stream path, camera not reachable. Most of the value of a viewer is telling the user which of these it is, in plain words, with the fix next to it.

Passwords. They go through Electron's safeStorage, which on Windows is DPAPI, tied to the Windows user. The file with the camera list holds no password in clear text.

Graphics on other people's PCs. On a few PCs Electron's graphics process failed at start. The app now notices a start that did not finish and starts again with more careful graphics settings, one step at a time.

Packaging for the Microsoft Store. electron-builder makes the AppX package and the Store signs it. That matters on PCs with Smart App Control, which blocks unsigned programs, my own test builds included. A desktop app also needs the runFullTrust capability, and Microsoft asks you to explain at submission why you need it.

The Store licence, from Electron. Electron has no direct way to the Windows API that says whether the app is in its free trial or has been bought (Windows.Services.Store). The app asks through a short PowerShell script that it starts as a child process; the child inherits the package identity, so Windows answers for the right app.

What it does not do

It works on the home network only: no viewing from outside, no motion alerts, and no playback of recordings stored on the camera's memory card or in the cloud. It shows live video and records what it sees while it is running.

Links

Questions about RTSP, go2rtc or Store packaging are welcome in the comments.