当前位置:网站首页>Solutions for RTSP video streaming played by several browsers
Solutions for RTSP video streaming played by several browsers
2022-06-24 17:21:00 【daniulive】
Scheme 1 : H5 + websocket_rtsp_proxy Realize live video streaming
Streamedian Provides a “html5_rtsp_player + websock_rtsp_proxy” Technical solution , Can pass html5 Of video The tag plays directly RTSP Video stream of .
The whole architecture is shown in the figure below , It is divided into server side and browser side :
Option two :RTSP turn RTMP To RTMP The server , turn http-flv, For playback terminal flv.js Play
flv.js In the access to FLV Format of audio and video data will be FLV The file flow code is reused as ISO BMFF(MP4 debris ) fragment , Re pass Media Source Extensions API Pass on to the original HTML5 Video Tag to play .
flv.js It's using ECMAScript 6 Compiling , And then through Babel Compiler Translate it into ECMAScript 5, Use Browserify pack .
flv.js Get... From the server FLV Then unpack it and transfer it to Video The reason for the label is as follows :
- Compatible with the current live broadcast scheme : At present, most of the audio and video services of the live broadcast scheme adopt FLV The container format transmits audio and video data .
- flv The format is simple , Compared with MP4 Format to package is simple 、 It also has an advantage in performance , It's faster and easier to parse .
Option three :RTSP turn RTMP To RTMP The server , turn hls, For playback terminal video.js Play
Video.js Is a web Video player , Support html5 and flash Two ways of playing . More customized skin , plug-in unit , Components , The language also has a wealth of options to configure .
Option four :VLC perhaps SmartPlayer Third party plug-ins play
VLC Don't say more , Almost all streaming media developers know ,SmartPlayer It's Daniel live SDK (Github) Play plug-in for , Better delay and function experience .
The advantage of the plug-in form is that there is no need for secondary conversion , Directly through ActiveX Control , The delay is very low , The disadvantage is that it only supports IE browser .
Option five :RTSP turn WebRTC Play
The browser to webrtc Good support from , Especially in H264 Several mainstream browsers in coding have already supported .webrtc Use srtp Transmit media data , Then we just need to rtp The load data in is passed through webrtc The channel is sent to the browser , The browser side only needs to pass video Just play the tag , at present RTSP turn WebRTC The adaptation of the browser is better , The delay is also relatively low .
边栏推荐
- 问题有多大,中台就有多大
- GB gb28181 video cascading intelligent analysis platform easygbs broadcast video console error 401
- [2021 taac & Ti-One] FAQs related to preliminary round computing resources
- Video intelligent analysis platform easycvr derivative video management platform menu bar small screen adaptive optimization
- [DB Bao 45] MySQL highly available mgr+consult architecture deployment
- Best practices for H5 page adaptation and wechat default font size
- Contributed code to famous projects for the first time, a little nervous
- Scuffle on China's low code development platform -- make it clear that low code
- A tutorial on how the zblog system obtains user related information based on user ID
- Complete the log service CLS questionnaire in 1 minute and receive the Tencent cloud 30 yuan threshold free voucher ~
猜你喜欢
Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters

Why do you develop middleware when you are young? "You can choose your own way"
![[leetcode108] convert an ordered array into a binary search tree (medium order traversal)](/img/e1/0fac59a531040d74fd7531e2840eb5.jpg)
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)

MySQL learning -- table structure of SQL test questions

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
随机推荐
[web] what happens after entering the URL from the address bar?
Management system permission design
Elastic searchable snapshot function (frozen Tier 3)
Analysis of software supply chain attack package preemption low cost phishing
未来银行需要用明天的思维,来思考今天架构
Following the previous SYSTEMd pit
Memory alignment in golang
Solution to the problem that qlineedit setting qdoublevalidator setting range is invalid
Quick view of product trends in February 2021
Today, Tencent safety and SAIC Group officially announced!
Can you remember the code of a programming boss? Can you hit it out without Baidu?
C4D learning notes
Markdown syntax -- Formula
The TKE cluster node reports an error when executing kubectl
Redis source code analysis RDB
Tiktok Kwai, e-commerce enters the same river
Future banks need to think about today's structure with tomorrow's thinking
Zabix5.0-0 - agent2 monitoring MariaDB database (Linux based)
Cloud development environment to create a five-star development experience
[DB Bao 45] MySQL highly available mgr+consult architecture deployment