Time is late, brief introduction to the topic HA
First, Introduction
Software: Mjpeg‐stream is an open source software for turning files in Mjpeg format into streaming media output.
Platform: Tiny6410
Hardware: normal USB camera
Second, the compilation, installation method not much to say, on-line written more good blog many
Third, the test effect on the PC (only with Firefox, IE, 360 browsers are not normal display)
1> Address bar Input: Http://192.168.1.107:8080/?action=stream (VIDEO)
2> or Address field input: http://192.168.1.107:8080/?action=snapshot (photo)
Four, Android mobile phone display video, photo
..... try {URL url = new URL ("Http://192.168.1.107:8080/?action=snapshot"), and ..... URLConnection Url_con = Url.openconnection (); InputStream InputStream = new Bufferedinputstream (url_con.getInputStream ()); Bitmap Bitmap = Bitmapfactory.decodestream (InputStream); File Mypicturefile = new file (moutputfile); Bufferedoutputstream BOS = new Bufferedoutputstream (new FileOutputStream (Mypicturefile)); OK = bitmap.compress ( Bitmap.CompressFormat.JPEG, N, Bos), if (OK) toast.maketext (this, "photo complete", Toast.length_short). Show (); Elsetoast.maketext (This, "Photo failed", Toast.length_short). Show (); Bos.flush (); Bos.close (); Inputstream.close (); catch (IOException e) {e.printstacktrace ();}
PS: Interested friends can study, PC and Android mobile phone end I have already achieved, specific details to continue to improve ..... (Late at night, do not go back to wife and son to be angry again)
"Remote browsing and control of USB camera on Tiny6410 via web"---actual combat