Here is the one line needed in the webpage:
Foscam MJPEG Camera Example:
Foscam H.264 Camera Example:
A working Example of this as well as more details can be Found here:
http://foscam.us/forum/a-how-to-embed-any-foscam-ip-camera-in-webpage-using-1-line-t9113.html#p43654