I am trying to decode my ip camera snapshot.cgi files to stream video. I am trying to implement this behavior Android ICS and MJPEG using AsyncTask.
My problem is, that my link is http://xxx.xxx.xx.xx:100/snapshot.cgi?&loginuse=xxxx&loginpas=xxx. (with authentication). And I can't get it work properly. I can't remove authentication from camera. Can anyone suggest way to authenticate and then get snapshot.cgi?
I tried this: Black screen while trying to stream IP camera in android
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.getCredentialsProvider().setCredentials(new AuthScope(host, AuthScope.ANY_PORT), new UsernamePasswordCredentials(username, password));
res = httpclient.execute(new HttpGet(URI.create(url)));
Overall I am starting to think, maybe it is not an authentication issue? Because I get first snapshot view and then screen is blinking on the same view and does not generate view change. Also if I rotate screen it refreshes the image.