Real-time video transmission for Android

Source: Internet
Author: User

Recently the leader asked to do a demo of Android and PC-side real-time video transmission.

Before I wrote a demo demo, compare the cottage, based on the camera callback function, a frame frame will compress the picture after the transmission background display. WiFi under the effect is good, but think about it does not have availability, code back to have time to send it.

Recently researched the video transmission of the RTSP protocol, and found that it is still a little complicated.

Now find a few useful things to share to everyone

Android an open source project spydroid, the principle is to use the phone as an RTSP server, the video compressed and sent out. Support the use of browsers and VLC this kind of support the RTSP protocol player to watch, very good things, worth learning.

Address: http://spydroid-ipcamera.googlecode.com/svn/trunk/

I do. NET, so do a client to play video is also more troublesome, to implement the RTSP and playback functions, it takes a lot of time to study, but also to ensure stability.

At present, the open source project VLC is implemented in C + +, which shows that the document is less and the data is seldom supported for streaming. Simply find another open source project vlc.net (say really thanks to foreign open source people)

Using the. NET language encapsulates LIBVLC, making it easy to build on. Net.

Address: http://sourceforge.net/projects/libvlcnet/

At present, based on the two parts of the content to prepare a speculative approach.

Design a server and then encapsulate the spydroid so that when the Sypdroid client starts, it automatically registers with the server.

Then write a client, read the server spydroid clients list, and then implement the on-demand function.

This directly around the streaming media server the entire processing, as well as the processing of RTSP protocol, is an opportunistic approach.

However, the benefits are not without, greatly reducing the load on the server, making many-to-many easier.

But further practice is needed.

Above

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.