import java.net.MalformedURLException;

import javax.swing.JFrame;

import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.ds.ipcam.IpCamAuth;
import com.github.sarxos.webcam.ds.ipcam.IpCamDeviceRegistry;
import com.github.sarxos.webcam.ds.ipcam.IpCamDriver;
import com.github.sarxos.webcam.ds.ipcam.IpCamMode;


public class FoscamMjpegPullExample {

	static {
		Webcam.setDriver(new IpCamDriver());
	}

	public static void main(String[] args) throws MalformedURLException {

		String name = "Test #255";
		String url = "http://ce3014.myfoscam.org:20054/snapshot.cgi";
		IpCamMode mode = IpCamMode.PULL;
		IpCamAuth auth = new IpCamAuth("user", "user");

		IpCamDeviceRegistry.register(name, url, mode, auth);

		WebcamPanel panel = new WebcamPanel(Webcam.getWebcams().get(0));
		panel.setFPSLimit(1);

		JFrame f = new JFrame("Test #255 PULL");
		f.add(panel);
		f.pack();
		f.setVisible(true);
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}

@@ -403,10 +403,9 @@
 scam
-Mj
+J
 pegP

Update FoscamJpegPullExample.java