Android streaming media playback Solution Research

Source: Internet
Author: User

1) socket-based, suitable for simple video monitoring solutions. The server compresses the image, and the mobile phone uses the socket to read the data and decode the display. It is best to use Java for the network and ndk for decoding.

2) based on RTSP/RTP. Suitable for the adaptation of existing RTSP Streaming Media Servers. Android supports RTSP Streaming Media, but only supports RTP over UDP (there is also a saying that RTP over UDP is given priority, and RTP over TCP is attempted only after timeout, resulting in an unbearable waiting time ), different versions are not supported. We recommend that you port a third-party open-source library to download RTSP streams. Java has jlibrtp and C ++ has live555. It is difficult to track and debug the ndk. Check the stability of the C ++ library.

3) it is based on HTTP streaming 3GP/other packages and is suitable for its own streaming media products. Android supports local playback of 3GP from 1.6 to later versions. The server can cut live streams or on-demand files into short 3GP files. The mobile phone uses httpclient to continuously download the files and then throws them to the mediaplayer for playback. Note the pause of file switching.

Related Article

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.