The new Java project studies online notes -day13 (a)

1 e-learning needs analysis 1.1 Description of Requirement
studies online as an online education website, learning a variety of forms, including: recording and broadcasting, live, graphic, community, etc., students log into the online learning center to learning, this section will develop online learning taped courses, requirements are as follows:
1, students can watch online videos in the windows browser.
2, the player has a fast forward, rewind basic function, pause.
3, students can easily learn to switch sections.
The new Java project studies online notes -day13 (a)
What is taped courses?
Taped course is to provide a good course record video, online on-demand for the user, repeated learning.
How to manage video course?
Media asset management system to manage specialized courses video, users upload video files to media information system, and the video encoding process.
1.2 VOD solution
1.2.1 Streaming Media
Streaming:
The new Java project studies online notes -day13 (a)

Details Reference: https://baike.baidu.com/item/%E6 ... 93/98740 fr = aladdin?
Generalize understand: streaming video file is divided into many small pieces, these small pieces as a data packet sent through the network, while transmission of video packets while watching the video.
Streaming transmission of audio over a network, there are two video information ways: streaming and downloading. Downloads: that is, after the audio and video files are fully downloaded to the machine to start playing, it is characterized must wait until the download is complete in order to play video files, playing wait a long time, unable to play the part of the video has not been downloaded. Streaming: The client is the link to the video server through the real-time transmission of audio, video, and "playing while downloading." Streaming includes the following two ways: 1) the order of the order that is streamed to download audio and video files, you can achieve download while playing side, however, users can watch video content downloaded, you can not fast-forward to not download video part, the sequence may be used Http streaming server to achieve, such Nginx, Apache and the like.

2) Real-time streaming live streaming can solve sequential stream can not fast forward the question, it Http streaming different, it must use the streaming media server and to transmit video using streaming media protocols, which flow ratio Http transport complex. Common real-time streaming protocol is RTSP, RTMP, RSVP and so on.

Streaming media system schematic configuration of the basic structure of the business process schematic learning streaming media system streaming media system.
The new Java project studies online notes -day13 (a)
1, the original file is converted by the video encoder stream format suitable for network transmission, the encoded video delivered directly to the media server.
Original video files are usually pre-recorded video, such as collected by a camera, video cameras, audio and video files recording equipment, larger, in order to go through the network transmission compression process, i.e., encoded by encoder .
2, media services acquired encoded video file, streaming media provide external data transfer interface, the interface protocol comprises: HTTP, RTSP, RTMP like.
3, the media server communicate with the player acquired by the video data streaming protocol, video.

Guess you like

Origin blog.51cto.com/13517854/2406074