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

1.2.2 Demand program 
of the project, including on-demand and live broadcast in two ways, we demand that you research program, as follows:
1, the player to play downloaded video files from the server via http protocol http
question: must wait before they can play downloaded video does not support fast forward to a point in time to play
2 player is connected via rtmp protocol media server for real-time streaming video broadcast of use rtmp protocol need to set up the media server, high cost, to live more use of this scheme.
3, the player using the HLS protocol connection http server (Nginx, Apache, etc.) to achieve near real-time streaming playing a video
HLS agreement: Http-based protocol, video encapsulation format for TS, video encoding format for H264, the audio coding format MP3, AAC or AC3. What HLS that?
 
HLS works are: to split video file into several small format ts, ts index for these small files through the index file m3u8 format. Typically 10 seconds ts a file, the player is connected m3u8 file playback, fast-forward when the index to find the corresponding files m3u8, and to download the files corresponding ts, so as to achieve fast forward, rewind near real-time video.
IOS, Android devices, and all major browsers support HLS protocol.
 
Details Reference: https://baike.baidu.com/item/HLS/8328931?fr=aladdin  using HLS embodiment can realize playing while downloading, and the like without using rtmp streaming protocol, without constructing a dedicated media server, cut costs.
The project plan was finalized on demand for the program 3. 
 

Guess you like

Origin blog.csdn.net/czbkzmj/article/details/91045926