Which template / preset are you using ? Most Foscam cameras do require RTSP template to work (however they work). Using RTSP it’s not possible to use the Test button and test the connection, so you really have to fill in all the fields and connect it.
You should install the latest version of webcam 7 if you still not.
For FOSCAM FI9828W MJPEG, you must change the SubStream to 0 in the settings.
For RTSP streams, it will use RTSP port with the same port number as your HTTP port (default 88)