Android Video player

Source: Internet
Author: User
Tags rfc

RTSP (real Time streaming Protocol), RFC2326, live streaming protocol, is an application-level protocol in the TCP/IP protocol that is submitted by Columbia University, Netscape, and RealNetworks for IETF RFC standards. This protocol defines how a one-to-many application can efficiently transmit multimedia data over an IP network. RTSP is architecture-based on RTP and RTCP, and it uses TCP or UDP to complete the data transfer. HTTP requests are made by the client and the server responds when compared to RTSP, and both the client and the server can make requests when using RTSP, which means that RTSP can be bidirectional. RTSP is used to control the sound or image of the multimedia streaming protocol, and allow simultaneous multiple stream demand control, the transmission of the network protocol is not within its definition, the server can choose to use TCP or UDP to transmit the stream content, its syntax and operation is similar to HTTP 1.1, However, time synchronization is not particularly emphasized, so network latency can be tolerated. In addition, the previously mentioned allow for simultaneous multiple stream demand control (multicast), besides reducing the server-side network usage, it can support multi-video conferencing (video Conference). Because it is similar to HTTP1.1, the 〈proxy〉 of the proxy server 〈cache〉 is also applicable to RTSP, and because RTSP has a re-directed function, the actual load situation can be converted to serve the server. To avoid excessive load concentration on the same server and cause delays.

In brief, it includes the following points:

1. Real-time

2.tcp/udp

3. The request can be bidirectional

4. Can play side cache side

5. Can delay

6. Real-time multi-person conferencing is possible because there are multiple channels

7. Can be redirected, assuming that one server is under heavy load and can be redirected to another server via RTSP.

HTTP Hypertext Transfer Protocol (Http,hypertext Transfer Protocol) is one of the most widely used network protocols on the Internet. All WWW documents must comply with this standard. HTTP was originally designed to provide a way to publish and receive HTML pages. 1960 American Ted Nelson conceived a way to process text messages through a computer called hypertext (hypertext), which has become the foundation of the HTTP Hypertext Transfer Protocol Standard architecture. The Ted Nelson organization coordinated the World Wide Web Association (Wide) and the Internet Engineering Working Group (Internet Engineering Task Force) to work together to study and eventually release a series of RFCs, of which the famous RFC 2616 defines the HTTP 1.1.

HTTP and RTS opposite

Android Open-source video player with VLC

 Public classInternetvideodemoextendsActivity { Public voidonCreate (Bundle savedinstancestate) {Super. OnCreate (savedinstancestate);  This. Setcontentview (R.layout.video_view); Uri URI= Uri.parse ("rtsp://v2.cache2.c.youtube.com/cjgleny73wialwm3jbt_%ed%af%80%ed%b0% 819HQWOHMYESARFEIJBXYTZ29VZ2XLSARSB3JLC3VSDHNG_VSMSBESYD5JDA==/0/0/0/VIDEO.3GP "); Videoview Videoview= (Videoview) This. Findviewbyid (R.id.video_view); Videoview.setmediacontroller (NewMediacontroller ( This));          Videoview.setvideouri (URI); //Videoview.start (); Videoview.requestfocus (); }     }

Http://www.2cto.com/kf/201605/513297.html This blogger's article is good, introduced the screen switch between the things to do.

The difference between Videoview and MediaPlayer is that:

Videoview called MediaPlayer to play the video, providing some accessibility to video playback

Android Video player

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.