D-Link DCS-5222 PTZ control

The web interface of the D-Link DCS-5222 needs ActiveX or a plugin that’s only available for Windows to show the live video.
That means you cannot view the live video on Linux, OS X or any mobile device.

I’ve created a PHP script that gives you a simple webpage that works on any OS and device.

.D-Link PTZ app


  • MJPEG live-view
  • Controls for PTZ
  • Move the camera to a configured preset
  • Enable/disable patrol mode
  • List the available RTSP feeds

See the project on GitHub: https://github.com/TrafeX/DLink-Ptz-Tool