In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces how the EasyGBS video platform reduces the bandwidth pressure by limiting the playback time of users. The content is very detailed. Interested friends can use it for reference. I hope it can be helpful to you.
As we all know, there is a demonstration platform for all TSINGSEE blue rhinoceros video products. After browsing the demonstration platform, users can choose an appropriate video platform for download and trial. For example, our EasyGBS has a demonstration platform deployed on the public network.
However, when EasyGBS is deployed on the public network, tourists will play videos on the platform, and the public network resources will be consumed. When the playback is in progress, the public network traffic will be consumed all the time, resulting in a serious waste of resources.
In order to reduce the waste of resources in this case, our developers decided to optimize it here, that is, to limit the user's login playback time in demo mode.
After the user logs in successfully, the user information is stored in the Cookie, and then the current system is determined whether the current system is in demonstration mode according to the configuration information, and the effective time of the Cookie is set according to whether the logged-in user is a tourist user.
Sess: = sessions.Default (c) sess.Set ("uid", user.ID) sess.Set ("uname", user.Username) if demo & & form.Username = = "guest2020" >
Effect: after the login timeout, the user information will be left empty, so that if the user information is not obtained, it will automatically jump to the login interface.
If uid! = nil {c.IndentedJSON (http.StatusOK, gin.H {"ID": uid, "Name": sess.Get ("uname"), "RoleName": userrolename.RoleName, "NickName": userrolename.NickName })} else {c.IndentedJSON (http.StatusOK, nil)}
After this optimization, the pressure of server bandwidth is reduced to a certain extent, and the consumption of server resources is reduced.
As a national standard GB28181 protocol access platform, EasyGBS can convert PS streams pushed by GB28181 devices / platforms into ES streams, and then provide RTSP, RTMP, FLV, HLS formats for distribution, so as to achieve the establishment of video surveillance platform.
So much for sharing about how the EasyGBS video platform reduces bandwidth pressure by limiting users' playback time. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.