current position：Home>How does HTML5 implement live streaming? It's worth learning!
How does HTML5 implement live streaming? It's worth learning!
2022-06-24 08:38:45【Tsingsee green rhino video】
since RTMP Since the birth of Streaming Protocol , rely on RTMP The streaming development of the protocol has never stopped , Before finding a better alternative , The mainstream of the market will still be pushed by RTMP Protocol to implement . As the public knows ,PC End web The mainstream live video scheme has always been RTMP, Including what we developed EasyCVR platform , It also supports... In the latest version RTMP Push the flow , However, this version is currently being tested , After the test, it will go online , You can pay attention to .
The focus of this article is still on HTML5 On the live streaming of the video . With the explosive growth of live broadcasting platform ,H5 The demand for live broadcasting has also become extremely rich . adopt H5 The overall process of live broadcasting is roughly divided into three modules ：
Video capture ： The module includes audio and video equipment on the acquisition computer 、 Mobile phone camera and microphone 、 television / Audio and video of the game scene camera, etc , about H5 Live streaming of , The main direction of collection is still the audio and video collection of camera on mobile terminal and TV station .
Decode and distribute ： The module is mainly completed by the video streaming media server , After video capture, one Nginx Server to process , Collect the video stream transmitted by the video recording end (H264/ACC code ), It is parsed and encoded by the server , push RTMP/HLS Stream the format video to the video player .
Video playback ： Video playback depends on the player used by the user , Including computer player 、 Mobile player and H5 Of video label .
And for PC End H5 Video recording for , You can choose more advantageous webrtc technology , Use WebRTC The basic process of video recording is simple ：
1、 call window.navigator.webkitGetUserMedia（）, Get the user's PC Camera video data .
2、 Convert the acquired video stream data into window.webkitRTCPeerConnection（ A video stream data format ).
3、 utilize WebScoket Transmit the video stream data to the server .
After recording the video , You need a set RTMP Live streaming service to ensure the transmission of video stream , At the same time, it also has the function of converting live stream format and encoding streaming , When the server receives the video stream transmitted from the capture video recording end , It needs to be parsed and encoded , push RTMP/HLS Stream the format video to the video player .
We said that before , There are many ways to obtain a set of streaming media service platform , Including building from scratch 、 Use the open source platform as the infrastructure for modification 、 Directly find a reliable third-party organization to obtain the platform , It takes time and effort to build your own platform , Therefore, it is recommended to use the open source platform or directly find a service provider to complete .
TSINGSEE Green rhinoceros video has independent EasyDarwin Open source platform , Can help developers easily build streaming media services , at present EasyDarwin The platform has a stable operating environment and professional technical support , These two advantages are the strong backing of users in the process of use . At the same time, we have EasyDSS In this way RTMP Live on demand platform , After installation and deployment, video streaming can also be realized H5 Push the live streaming , And as an open commercial streaming media solution ,EasyDSS It also has a very rich secondary development interface , Can be very simple for secondary development and Application .
author[Tsingsee green rhino video],Please bring the original link to reprint, thank you.
The sidebar is recommended
- On BOM and DOM (3): DOM node operation - element style modification and DOM content addition, deletion, modification and query
- Embrace cloud native, Tencent releases TCSs container security service!
- Is there any way for FC in react+ts to set the component of function keyword
- How to write the V-model of vue2/3 custom components?
- Error using vuescoll!
- When HTML accesses the parent directory, the file content cannot be displayed normally in the browser after reading
- How to embed tabelau in the front page of react
- Vue component communication data does not update rendering
- It is very convenient to use ECs to build a drawing bed and hexo one click deployment
- How does webstorm set the bootstrap auto prompt
guess what you like
Nginx cross domain understanding, simulation and solution
Front page exercise
How to hide the value in El form item in Vue and set the value of input box to be read-only
Springboot+vue to realize campus second-hand Mall (graduation design I)
Node. JS installation
Summary of 2022 blue team HW elementary interview questions
Screenshot of angular page (scroll bar displays completely)
How to repair garbled code in HTML
- Springboot+vue project tourism information recommendation system [source code open source]
- Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application
- Elementui used tabs to step on the pit
- Ant Design Vue - remove the input component border and the border blue shadow effect when getting focus
- Get httponly protected cookies across sub domains through XSS
- Coding specification - Vue project
- Code specification - HTML
- Code writing specification - CSS
- CSS Notes 6
- Quickly set up PgSQL for serverless
- 404405 troubleshooting after Vue uses proxy packaging
- Vue3 TS learning
- What is the charm of python, which is warmly pursued by countless programmers?
- HTML Basics
- CSS Foundation
- CSS (PC side) three methods of traditional page layout
- Inline element, block element, inline block element
- 19、 Lua garbage collection of enterprise rapid development platform spring cloud+spring boot+mybatis+elementui
- Detailed introduction to render props and high-level component hoc in react tutorial
- Introduction to high order components (HOC) in react tutorial
- Front end and back end love and hate -- sequel
- When Vue adds on-demand loading to the UI library and starts the project, an error is reported in babel-preset-es2015
- Select in element uses typescript to define initial data, which has no effect
- Vue video player of Vue player plug-in
- React configuration component path reference @ to represent SRC root path
- Use less and CSS modules in react scaffold Engineering
- Plug in download instructions and introduction of Vue in the web front end, NPM, install, save
- Summary of front-end common interview questions
- Vue hook function
- Monitor page rotation in Vue, and display in full screen on echarts mobile terminal
- Webpack learning notes series 07- how it works
- Webpack learning notes series 06- Packaging Optimization
- Webpack learning notes series 08-hmr hot update
- [Vue] understanding and thinking of new features based on Vue 3