当前位置:网站首页>What should I pay attention to after the live broadcast system source code is set up?

What should I pay attention to after the live broadcast system source code is set up?

2022-06-24 07:39:00 Cuckoo Liu

Module division of live broadcast system source code

Video server : Streaming media server for video transmission and playback , Usually with C perhaps C++ Language development implementation , It mainly realizes the one to many video stream publishing function .

Content distribution system : A lot of people know that , When it comes to large-scale content distribution CDN technology , And there are a lot of specialized services in the market CDN Listed companies serving , They make money by providing users with a wide range of content distribution services .

The distribution of live broadcast system source code mainly has the following characteristics :

1、flv Mostly ,ts Less , The main reason is ts The standards are too complicated .Flv The standard open document for is 11 page ,ts There are 174 page . For general live broadcast ,flv Basically meet the needs , therefore ts Less application . Yes, of course , We can also rely on FFmpeg, But it will encapsulate both what you want and what you don't expect in terms of streaming media , Not accurate enough .

2、rtmp and hls Coexist . In general ,rtmp Use in PC carry carefully , Use flash Play ;hls For mobile phones and tablets .

3、 Real time streaming generally uses rtmp.rtmp Can do 1 To 3 Second delay , It's live except rtsp The protocol with the lowest external delay .PC Direct playback is supported on , The mobile terminal can use FFmpeg Decode and play .

Aspects to pay attention to after the establishment of the live broadcast system source code :

Response time of key pages

If the bounce rate of a page visited by a user is too high , Then you need to verify the page . Especially at the checkout 、 Add items to shopping cart 、 Comparison of different models, etc . You need to verify the response time of these key pages , And check the load of these pages .

Resource usage

You need to constantly monitor the resource usage of the server , Identify places that are consuming more resources than expected . Key areas include CPU、 Memory 、 disk 、 Garbage collection and network . When the use of a resource reaches a peak , You need to understand the reasons for high resource utilization and make horizontal and vertical comparisons ( If necessary ).

Number of redirections

The number of redirects is not a performance factor , But it can still affect performance . If your page redirects to multiple pages , This can happen , It destroys the good user experience , So that the user closes the page .

原网站

版权声明
本文为[Cuckoo Liu]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/06/20210630154916900z.html