A single HTML page that allows you to view and pan the image of a remote Foscam IP camera.
Note: This is a quick and dirty solution that works as-is. Not rocket science at all.
Download the index.html
file and open it in your browser locally. Or upload it to your webserver, so it can be available anytime for you.
Functional:
- Viewing and refreshing the current image of the remote Foscam IP camera.
- Moving the camera left, right, up and down (pan).
- Moving the camera to the Home position.
- Calculating the Stream URL to open it in external application (e.g. VLC).
Technical:
- Complete implementation in one HTML file (downloads additional third-party styles and libraries from CDNs).
- Material Design with Materialize.
- Saving the connection parameter to the browser's local storage (except password), and cleared on demand.
- Responsive layout works on mobile.
This page requires you to specify the host name and port to connect, and the user name and password to log in to the remote IP camera. When you click the Connect & Save button the host name, the port and the user name are saved to the browser's storage without any encryption. Note that the password is never saved, you have to enter it manually every time you open this page. Click the Disconnect & Clear button to delete the connection parameters from the browser's storage.
The Foscam camera I used to test this page has an invalid TLS certificate (with expired CA certificate), and the vendor does not provide an updated firmware. Although I can configure my browser (I used Firefox for this) to ignore the invalid HTTPS certificate, it does not protect from malicious third parties eavesdropping on the network.
This project is maintaned by György Balássy.