introduction, Multifunctional HTML5 RTSP streaming video player over WebSocket that is, using websocket to implement a multi-functional H5 rtsp video streaming player
for students who have little knowledge of websocket, linux, server, or even English and do not understand the documents, please continue to read the handheld Chinese course:
first of all, let's understand the principle:
goal: play rtsp video streams on your browser (browser) problem: however, the tag < video > of H5 does not support such playback solution: here we use our streamedian to open a websocket proxy (proxy), on your server to receive rtsp streams and broadcast them to your browser client, where streamedian uses middleware (Media Sources Extensions) to convert RTP H264 and AAC packets received through broadcast into MP4 packets. "feed" < video > to play
get the code of streamedian to feel it:
< H2 > download the JS library < / H2 >
method 1: download through the official website may not be the latest version. The streamedian team is still repairing the bug constantly. It is recommended to download the latest version
transcoding delay is low, stutter, and the effect of supporting multi-channel simultaneous broadcasting is even worse? if you want to use local hardware to accelerate rendering and playback, the effect is even better. Method: http://zorrosoft.com/files/Vl. demo video: ideo/bv1w5411V78i" rel= "nofollow noreferrer" > https://www.bilibili.com/vide.
the VLC of solution 1 mentioned by the landlord is indeed a good Chrome solution for playing rtsp video streams with low latency. The performance is stable, mainly because the RTSP stream can be read directly without transcoding, but after 2015, after browsers such as Chrome remove the support for NPAPI, VLC cannot be used directly. and ape master is an independent browser outside the middleware, ape master VLC playback program bottom call VLC's ActiveX control can be embedded in the web page to play multi-RTSP real-time video stream, can achieve low latency (300ms), support H.264 and H.265 format, compatible with the old and latest versions of mainstream browsers, without server transcoding! comparison of latency between VLC player and VLC native player: ideo/BV1Sr4y117v8/?aid=763373450&cid=415733351&page=1" rel=" nofollow noreferrer "> https://www.bilibili.com/vide.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5 MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e486a2-66651.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") MySQL Errno : 1021 Message : Disk full (/tmp/#sql-temptable-64f5-1e486a2-66651.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") Need Help?