当前位置:网站首页>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 .
边栏推荐
- Comparison of similarities and differences between easynvr video edge computing gateway and easynvr software versions
- 构建跨公链平台解决DApp开发问题
- Issue 003 how to detect whether a sticky positioned element is in a pinned state
- 实现TypeScript运行时类型检查
- 04. Tencent cloud IOT device side learning - network connection and device authentication
- Create a green city and 3D visualization of digital twin natural gas stations
- Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters
- [play with Tencent cloud] play with cloud database mysql
- Several cloud products of Tencent cloud have passed IPv6 enabled cloud logo certification
- H265/webvr video web page without plug-in player easyplayer Solution to the problem of cumulative delay of FLV video played by JS
猜你喜欢

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
![[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

Why do you develop middleware when you are young? "You can choose your own way"
Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters
随机推荐
Following the previous SYSTEMd pit
Introduction to koa (II) building the koa program
Tencent released "warehouse express" and issued "ID card" for each commodity!
[play with Tencent cloud] TSF User Guide
Kubernetes 1.20.5 helm installation Jenkins
Edit distance (linear dp+ violence matching)
Advanced anti DDoS IP solutions and which applications are suitable for use
Install Clickhouse client code 210 connection referred (localhost:9000)
Snapshot management for elastic cloud enterprise
When the game meets NFT, is it "chicken ribs" or "chicken legs"?
Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
C language | logical operators
TRCT test cloud + article online speed
Sigai intelligent container damage identification products are deployed in Rizhao Port and Yingkou Port
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
QQ domain name detection API interface sharing (with internal access automatic jump PHP code)
Development analysis of main chain system
How to customize the log output format of zap?
Tencent security officially released the IOT security capability map
Cloud native monitoring practice (2) monitoring and collection of components outside the TKE cluster