Here are two examples, both with live demos. Both are free. Both are HTML/JavaScript based, but they still can be used for reference.
For MJPEG Based IP Cameras:
http://foscam.us/forum/free-generic-browser-interface-for-foscam-ip-mjpeg-cameras-t2522.html
For H.264 Based IP Cameras:
http://foscam.us/forum/free-generic-browser-interface-for-foscam-ip-h-264-cameras-t2686.html
Note: The above examples, work with ANY Internet browser capable device, that is running on ANY Operating System, using ANY browser. From Computers to Tablets to Phones and even some TVs.
There are 10 Live Demos, one of which includes using your own camera(s) with the example, without needing to download/install anything first.
It's also possible to embed the above Interfaces in the actual Web UI camera firmware, as well, as to not require a web host/sever to serve them. Using your camera as a web host/mini-website.
Don