当前位置:网站首页>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 .
边栏推荐
- zblog判断某个插件是否安装启用的内置函数代码
- Issue 003 how to detect whether a sticky positioned element is in a pinned state
- Elastic searchable snapshot function (frozen Tier 3)
- [leetcode108] convert an ordered array into a binary search tree (medium order traversal)
- ## Kubernetes集群中流量暴露的几种方案 Kubernetes集群中流量暴露的几种方案
- Explore cloudera manager management software tuning (1)
- 跟着Vam一起学习Typescript(第一期)
- [2021 taac & Ti-One] frequently asked questions related to Ti-One products
- Markdown syntax -- Formula
- Bypass kernel function pointer integrity check
猜你喜欢
![[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)

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)

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

MySQL learning -- table structure of SQL test questions
随机推荐
Why do you develop middleware when you are young? "You can choose your own way"
H265/webvr video web page without plug-in player easyplayer Solution to the problem of cumulative delay of FLV video played by JS
Common GCC__ attribute__
Edit distance (linear dp+ violence matching)
Memory alignment in golang
Markdown syntax -- Formula
Jmeter+grafana+influxdb build a visual performance test monitoring platform
Install Clickhouse client code 210 connection referred (localhost:9000)
GB gb28181 video cascading intelligent analysis platform easygbs broadcast video console error 401
04. Tencent cloud IOT device side learning - network connection and device authentication
Yupi made an AI programming nickname generator!
Introduction to visual studio shortcut keys and advanced gameplay
Try catch finally implementation mechanism
Tencent released "warehouse express" and issued "ID card" for each commodity!
How to learn go language happily? Let's go!
Coding enhances security vulnerability scanning capability and helps the team "move left safely"
The RTSP video image intelligent analysis platform easynvr cascades to the superior platform through the national standard for playback optimization
05. Tencent cloud IOT device side learning -- mqtt protocol client implementation
[DB Bao 45] MySQL highly available mgr+consult architecture deployment
Elastic searchable snapshot function (frozen Tier 3)