In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how the RTMP protocol video platform EasyDSS demonstration platform restricts the playback time of flv. Many people may not know much about it. In order to make you understand better, the editor summarized the following content for you. I hope you can get something according to this article.
In the EasyDSS official website demo system, if a user is playing the demo video and does not turn it off, it will lose a lot of traffic and put pressure on the server.
Based on this situation, our R & D staff need to reduce the consumption of traffic by limiting the playing time of the video.
Check the back-end code, find the code to get the video stream settings and set it to empty, so that the front end can not get the video stream will stop playing.
/ / implement the shutdown method func (t * ShutDownTransport) ShutDown (d time.Duration) {time.AfterFunc (d, func () {res: = t.response if res! = nil {if res.Body! = nil {res.Body.Close ()})}
After modifying the code, the playback will automatically stop after three minutes, and the playback will not continue until you click again.
EasyDSS video Internet cloud service development is simple, free combination, we provide programming language independent RESTfulAPI interface, can be very simple secondary development and application.
After reading the above, do you have any further understanding of how the RTMP protocol video platform EasyDSS demonstration platform limits the playback time of flv? If you want to know more knowledge or related content, 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.
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.