{"action":"created","issue":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/294","labels_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/294/comments","events_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/294/events","html_url":"https://github.com/sarxos/webcam-capture/issues/294","id":54538507,"number":294,"title":"ContentType Header is missing.","user":{"login":"10sw33","id":10362378,"avatar_url":"https://avatars.githubusercontent.com/u/10362378?v=3","gravatar_id":"","url":"https://api.github.com/users/10sw33","html_url":"https://github.com/10sw33","followers_url":"https://api.github.com/users/10sw33/followers","following_url":"https://api.github.com/users/10sw33/following{/other_user}","gists_url":"https://api.github.com/users/10sw33/gists{/gist_id}","starred_url":"https://api.github.com/users/10sw33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10sw33/subscriptions","organizations_url":"https://api.github.com/users/10sw33/orgs","repos_url":"https://api.github.com/users/10sw33/repos","events_url":"https://api.github.com/users/10sw33/events{/privacy}","received_events_url":"https://api.github.com/users/10sw33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-16T04:21:50Z","updated_at":"2015-01-19T05:11:01Z","closed_at":null,"body":"here is my class where i want to connect with my mobile and i have set mobile ip address and port in moveable.xml. \r\n\r\n```java\r\n    public class DetectMotionFromIpCamerasExample {\r\n\tstatic {\r\n\t\tWebcam.setDriver(new IpCamDriver(new IpCamStorage(\"src/moveable.xml\")));\r\n\t}\r\n\tpublic static void main(String[] args) throws MalformedURLException {\r\n\t\tJFrame f = new JFrame(\"Detect Motion Multiple Cameras\");\r\n\t\tf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tf.setLayout(new GridLayout(0, 3, 1, 1));\r\n\t\tWebcamMotionListener listener = new WebcamMotionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void motionDetected(WebcamMotionEvent wme) {\r\n\t\t\t\tsynchronized (this) {\r\n\t\t\t\t\tSystem.out.println(\"motion detected ---------------- \");\r\n\t\t\t\t\tSystem.out.println(\"webcam: \" + ((WebcamMotionDetector) wme.getSource()).getWebcam());\r\n\t\t\t\t\tSystem.out.println(\"diff area: \" + wme.getArea() + \"%\");\r\n\t\t\t\t\tSystem.out.println(\"cog: [\" + wme.getCog().getX() + \",\" + wme.getCog().getY() + \"]\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tfinal List<Webcam> webcams = new ArrayList<Webcam>();\r\n\t\tfinal List<WebcamPanel> panels = new ArrayList<WebcamPanel>();\r\n\t\tfinal List<WebcamMotionDetector> detectors = new ArrayList<WebcamMotionDetector>();\r\n\t\tfor (Webcam webcam : Webcam.getWebcams()) {\r\n\t\t\twebcams.add(webcam);\r\n\t\t\tWebcamPanel panel = new WebcamPanel(webcam, new Dimension(256, 144), false);\r\n\t\t\tpanel.setFitArea(true);\r\n\t\t\tpanel.setFPSLimited(true);\r\n\t\t\tpanel.setFPSLimit(0.5); // 0.5 FPS = 1 frame per 2 seconds\r\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder());\r\n\t\t\tf.add(panel);\r\n\t\t\tpanels.add(panel);\r\n\t\t\tWebcamMotionDetector detector = new WebcamMotionDetector(webcam);\r\n\t\t\tdetector.addMotionListener(listener);\r\n\t\t\tdetector.setInterval(100); // one motion check per 2 seconds\r\n\t\t\tdetectors.add(detector);\r\n\t\t}\r\n\t\tf.pack();\r\n\t\tf.setVisible(true);\r\n\t\tfor (int i = 0; i < webcams.size(); i++) {\r\n\t\t\tfinal int x = i;\r\n\t\t\tThread t = new Thread() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\twebcams.get(x).open(); // open in asynchronous mode\r\n\t\t\t\t\tpanels.get(x).start();\r\n\t\t\t\t\tdetectors.get(x).start();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tt.setDaemon(true);\r\n\t\t\tt.start();\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nmoveable.xml is here \r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n<storage>\r\n<!-- <ipcam name=\"Biblione Palace\" url=\"http://webcam.hotelbibionepalace.it/mjpg/video.mjpg\" mode=\"push\" /> -->\r\n<ipcam name=\"my\" url=\"http://192.168.2.33:8090\" mode=\"push\" >\r\n</ipcam>\r\n</storage>\r\n```\r\n\r\nP.S : i have installed an app on my mobile called IP Cam which allows me to use it as webcam through its ip:port, thats same ip port i m giving in this xml. is this right way or i m messing something, actually i want to connect any camera through ip whether it is mobile or SLRs.. \r\nhere is the screenshot of error.\r\nhttps://cloud.githubusercontent.com/assets/10362378/5772140/3d430c72-9d6e-11e4-9b85-4716d416f3ac.png"},"comment":{"url":"https://api.github.com/repos/sarxos/webcam-capture/issues/comments/70447137","html_url":"https://github.com/sarxos/webcam-capture/issues/294#issuecomment-70447137","issue_url":"https://api.github.com/repos/sarxos/webcam-capture/issues/294","id":70447137,"user":{"login":"10sw33","id":10362378,"avatar_url":"https://avatars.githubusercontent.com/u/10362378?v=3","gravatar_id":"","url":"https://api.github.com/users/10sw33","html_url":"https://github.com/10sw33","followers_url":"https://api.github.com/users/10sw33/followers","following_url":"https://api.github.com/users/10sw33/following{/other_user}","gists_url":"https://api.github.com/users/10sw33/gists{/gist_id}","starred_url":"https://api.github.com/users/10sw33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10sw33/subscriptions","organizations_url":"https://api.github.com/users/10sw33/orgs","repos_url":"https://api.github.com/users/10sw33/repos","events_url":"https://api.github.com/users/10sw33/events{/privacy}","received_events_url":"https://api.github.com/users/10sw33/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T05:11:01Z","updated_at":"2015-01-19T05:11:01Z","body":"yes you were right, thanks i changed the URL and it worked :100:  you made my day :)"}}