"Remote browsing and control of USB camera on Tiny6410 via web"---actual combat

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.