Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the feasible solution for Web web pages to play RTSP, RTMP, HLS and HTTP video streams without plug-ins?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Web pages without plug-ins to play RTSP, RTMP, HLS, HTTP video stream is a feasible solution, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

Premise

Except for the transport protocols of HTTP and WebSocket, the rest cannot be transferred to the browser, so if you want to make a general H5 video player, it is basically a video player of HTTP/WebSocket protocol. If it is a video source similar to RTMP or RTSP protocol, it is inevitable and needs to be converted by server.

Option 1: protocol conversion

It adopts full protocol access similar to EasyCVR, and then converts it to standard protocol output.

Difficulties:

Backend compatibility

H.265 player

Plan 2: WebSocket transparent transmission

The video stream of different protocols is forwarded through the WebSocket channel. WebSocket is similar to a pipeline and only forwards the original data. The specific protocol interaction process is carried out according to the original protocol, the text protocol of RTSP and SIP is in the way of text protocol, and the byte stream protocol of RTMP is in the way of byte stream protocol.

Difficulties:

Front-end compatibility

H.265 player

H.265 webpage playback scheme

You can see that the above two solutions will have a difficulty in playing H.265 web pages. The main reason here is that current browsers basically can not support the underlying decoding of H.265, or hard decoding. H.265 needs to combine the development technology of native player and the development technology of Web player, that is, wasm technology, to package Cramp C into wasm and be called by js. In this way, js can make full use of the computing power and expansibility of Cramp C native player to realize the video decoding process.

The main advantages of wasm playback meet the actual needs of security. Although WebRTC LVB is becoming popular among major manufacturers, H.265 has become dominant due to the particularity of security. Solving the front-end display of H.265 can completely solve the needs of security visualization, which can not be solved by RTC playback.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report