当前位置:网站首页>How to determine whether easycvr local streaming media is started successfully?
How to determine whether easycvr local streaming media is started successfully?
2022-06-24 01:53:00 【Tsingsee green rhino video】
EasyCVR Video protocol convergence platform not only supports the access of conventional protocol , We also expanded Haikang SDK、 Dahua SDK、Ehome Private agreement . If the front-end device protocol is different and the number is large , You can use the EasyCVR Platform to integrate and manage all video channels . and ,EasyCVR Provides a wealth of API Interface , Users can call through the interface document .
Some users propose to use EasyCVR When , It is not clear whether the local streaming media has been started successfully , You need to check in the process manager , Very inconvenient , You need to add streaming media startup information , It is displayed in the background server information .
We analyzed this demand , You can record whether the streaming media is successfully started when the program starts , Get the version , And running time .
Add the following code , To call the interface of streaming media , Get version information from it , And running time , Then put it into the program service interface and return it together .
apiPort := mediaserver.GetHttpApiPort()
resp, err := client.Get(fmt.Sprintf("http://127.0.0.1:%s/api/stat/info", apiPort))
if err != nil {
c.IndentedJSON(http.StatusOK, ack)
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
c.IndentedJSON(http.StatusOK, ack)
return
}
params, err := values.NewValuesFromJSON(body)
if err != nil {
c.IndentedJSON(http.StatusOK, ack)
return
}stay EasyCVR Background interface test , You can see that the streaming media information can be successfully obtained , This function was added successfully .
Video fusion cloud platform EasyCVR Set video online sharing 、 Storage 、 Streaming media forwarding 、 Video transcoding 、 Video on cloud 、 Intelligent analysis, unification and other functions are integrated , It has been running stably in many projects , Besides , Video related solutions can be accessed TSINGSEE Qingxi video , You can contact us for a demo , Intuitive feeling , You can also download and test it yourself , Welcome to know .
边栏推荐
- 8、 Pipeline pipeline construction project
- Netease Shufan: Data productivity platform 2.0 promotes "everyone uses data and always uses data"
- Smart supply chain collaborative management platform for the home industry integrated upstream and downstream collaboration of the supply chain to improve management efficiency
- Global and Chinese micro focus X-ray tube industry competitiveness analysis and Investment Strategy Research Report 2022-2028
- A marriage app_ T signature analysis
- Horizontal movement of Intranet penetration -- password spray attack from domain to domain
- Gin framework: implementing service end flow limiting Middleware
- What is the relationship between cloud desktop and cloud server? How to understand the relationship between the two
- Comparison between rule engine and ML model - xlaszlo
- How does easynvr set the video recording to be saved for more than 30 days?
猜你喜欢

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000

layer 3 switch

Stm32g474 infrared receiving based on irtim peripherals
![[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)](/img/b5/a8c4bbaf868dd20b7dc9449d2a4378.jpg)
[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)
![[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)](/img/c8/f6c2a62b8ab8fa88bd2b3d8f35f592.jpg)
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos
随机推荐
Interviewer: let's talk about the snowflake algorithm. The more detailed, the better
What are the selected CDN content acceleration scenarios of Tencent cloud?
[software cost consulting] information project bidding process and precautions
Can the fortress machine connect to the ECS? What are the reasons why the fortress cannot connect to the ECS?
How do users of Fortress computers add servers? How much does it cost to add servers for fortress users?
Build your own DSL with go and HCl
Zoom supports automatic generation of subtitles; Shareplay goes online; Safari update leads to a large number of bugs | webrtc wind direction
[new function!] How anycast CLB supports multi location & dynamically accelerated load balancing services and high-speed Internet forwarding!
Implementation of asynchronous notification and event callback based on guava API
Grpc: implement grpc proxy
Cost composition and calculation method of system software
Moment. JS how to use epoch time to construct objects
Practical case - Tencent security hosting service MSS helped "zero accident" during the period of digital Guangdong re insurance!
8、 Pipeline pipeline construction project
It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)
OA system module design scheme
Detailed explanation of SSH tunnel and stable intranet penetration using autossh
How does Huawei weautomate RPA achieve the natural growth of government enterprise automation?
[official time limit activity] in November, if you dare to write, you will get a prize
[combat power upgrade] Tencent cloud's first arm architecture instance was launched! Experience the new architecture computing power!