Some touch screens and home automation systems like Leviton HAI, Vera, Homeseer, iRule, Oncontrol and so on, need to pull an MJPEG stream from the camera using an http url rather than the standard HD ONVIF or RTSP stream.
Several Foscam HD cameras support this MJPEG stream. See the list below for supported models.
To set up the camera to provide an MJPEG stream use:
http://ipaddress:port/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=username&pwd=password
For example:
http://192.168.15.163:88/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=admin1&pwd=admin1
Once it is set, you can use the url in this format to pick up the stream:
http://ipaddress:port/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=username&pwd=password
For example:
http://192.168.15.163:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin1&pwd=admin1
The following Foscam models at time of writing will support MJPEG streaming in this format.