. HTTP Live Streaming
HTTP Live streaming is an HTTP-based streaming media transport protocol proposed by Apple. It cuts an entire audio and video stream into a small audio and video stream that can be downloaded by HTTP and generates a playlist (m3u8), where the client only needs to get a m3u8 playlist of resources to play the audio and video. Can realize live broadcast and on-demand. HLS is the technology to achieve live broadcast on demand, its delay will always be higher than the ordinary streaming media live protocol.
The following technical key points need to be studied and implemented
Data acquisition of video source and audio source
H264 encoding and AAC coding of raw data
Video and audio data encapsulated as Mpeg-ts packages
HLS segmentation Generation Strategy and m3u8 index file
HTTP Transport Protocol
Browsers that support HTML5
2.RTMP (Real time messaging Protocol (live Messaging protocol))
Based on TCP/IP protocol, browsers that support Flash products, browsers that support HTML5 (file playback is good, live live support is poor)
3.rtsp/trcp/rtp
Support player based on UDP protocol
Video data transmitted by RTP protocol
Video quality controlled by RTCP
Video control provided by RTSP (for example, forward, back, paused, etc.)