当前位置:网站首页>How does easyplayer RTSP configure sending heartbeat information to the server?
How does easyplayer RTSP configure sending heartbeat information to the server?
2022-06-24 06:26:00 【Tsingsee green rhino video】
EasyPlayer The player family already supports H265 Play of encoded video , According to the different needs of users in different scenarios , We already have EasyPlayer-RTSP、EasyPlayer- RTMP、EasyPlayerPro and EasyPlayer.js Equal Edition .
Recently, I met a customer who is using EasyPlayer-rtsp WIN Version player plays a video camera of xiongmai , About after broadcasting 30 Seconds will not flow , The player will not work properly ;
Through communication with customers , Find a situation that can be repeated , Every time I start broadcasting, I make an appointment 30 Seconds cannot be played , Or you can start broadcasting again after disconnecting 30 second , The preliminary inference should be about the survival mechanism ; Try to fix this problem with guesswork ; Everybody knows EasyPlayer-rtsp The bottom layer of the player depends on EasyRTSPClient Pull flow realized , Open the pull action interface as follows :
/* Turn on network flow */
Easy_API int Easy_APICALL EasyRTSP_OpenStream(Easy_RTSP_Handle handle, int _channelid, char *_url, EASY_RTP_CONNECT_TYPE _connType, unsigned int _mediaType, char *_username, char *_password, void *userPtr, int _reconn/*1000 Long connection , That is, if the network is disconnected, it will be automatically reconnected , Other values are the number of connections */, int outRtpPacket/* The default is 0, That is, the callback outputs the complete frame , If 1, The output RTP package */, int heartbeatType/*0x00: Do not send heartbeat 0x01:OPTIONS 0x02:GET_PARAMETER*/, int _verbosity/* Log printout level ,0 No output */);
EasyRTSPClient The design of command interaction has been defined at the beginning of design , Look at the function above heartbeatType Parameters are defined :
int heartbeatType/*0x00: Do not send heartbeat 0x01:OPTIONS 0x02:GET_PARAMETER*
When heartbeatType Pass on 1 when , Will be timed to Server Send heartbeat message ;
Encounter this kind of RTSPSERVER need Session Keep the detection mechanism alive , We need to heartbeatType Parameter value transmission 1.
But what is worth noting here is , Not all RTSPServer All done so well , For example, some of Haikang's IPC/NVR model , When RTSPClient In the process of pulling the flow , Send suddenly OPTIONS Alive message , It's like sending a piece of junk data ,RTSPServer The whole line will be automatically RTSP The connection is broken , Lead to RTP The flow taking also stops , We can only use this kind of equipment , Choose not to send OPTIONS Live bag .
边栏推荐
- Analysis on the influence of "network security policy issued successively" on Enterprises
- Tencent security monthly report - Tencent security has been selected into several authoritative research reports, a data security special committee has been established, and zero trust specifications
- Easynvr is optimized when a large number of videos are not online or unstable due to streaming failure
- Coding platform project construction guide
- Wordpress5.8 is coming, and the updated website is faster!
- Spirit information development log (4)
- Project deployment for learning 3D visualization from scratch
- Precautions for selecting high frequency signal generator
- Introduction to QWidget attribute table in QT Designer
- Introduction of frequency standard comparison measurement system
猜你喜欢

Solution to the 39th weekly game of acwing

Enter the software test pit!!! Software testing tools commonly used by software testers software recommendations

Manual for automatic testing and learning of anti stepping pits, one for each tester

A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing

One line of keyboard

Technology is a double-edged sword, which needs to be well kept

ServiceStack. Source code analysis of redis (connection and connection pool)

What is the difference between a white box test and a black box test
![[fault announcement] one stored procedure brings down the entire database](/img/7c/e5adda73a077fe4b8f04b59d1e0e1e.jpg)
[fault announcement] one stored procedure brings down the entire database

The product layout is strengthened, the transformation of digital intelligence is accelerated, and FAW Toyota has hit 2022million annual sales
随机推荐
How to buy a domain name? How to do a good job in website construction?
Feign request return value inverse sequence localdatetime exception record
Configure PHP development environment in MAC environment: apache+php+mysql
Tencent security monthly report - Tencent security has been selected into several authoritative research reports, a data security special committee has been established, and zero trust specifications
WordPress pill applet build applet from zero to one [applet registration configuration]
The new version of Tencent Youtu ncnn is suitable for domestic CPUs, and the maximum speed is increased by 70 times
Overview of related concepts of social network analysis
EEG microstate as a continuous phenomenon
Linux Apache setting compression and caching
Could not read username for xxxxx
Collateral damage from DDoS and hacktivism
Operation and maintenance dry goods | how to improve the business stability and continuity through fault recovery?
Neighbor vote: use proximity voting to optimize monocular 3D target detection (ACM mm2021)
Wireshark grabs the RTSP stream of easynvr without displaying RTSP. Solution
What is the role of website domain name
What is a secondary domain name primary domain name how to apply for a secondary domain name
Discussion on NFT Technology
Rhel8 series update image Yum source is Tencent cloud Yum source
Quick reference table of PHP security configuration maintained by OWASP
PMP | 8 abilities that excellent project managers focus on training