CN114448949A - Method and system for solving streaming phenomenon of client - Google Patents
Method and system for solving streaming phenomenon of client Download PDFInfo
- Publication number
- CN114448949A CN114448949A CN202210149053.4A CN202210149053A CN114448949A CN 114448949 A CN114448949 A CN 114448949A CN 202210149053 A CN202210149053 A CN 202210149053A CN 114448949 A CN114448949 A CN 114448949A
- Authority
- CN
- China
- Prior art keywords
- state
- control module
- session
- signaling control
- port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 10
- 230000011664 signaling Effects 0.000 claims abstract description 84
- 238000001514 detection method Methods 0.000 claims description 2
- 239000002699 waste material Substances 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
Abstract
The invention discloses a method and a system for solving the streaming phenomenon of a client, which relate to the technical field of video transmission and solve the technical problems of client video streaming and port resource waste, and the technical scheme is characterized in that a timer is used for detecting status bits of an rtsp signaling control module and an sip signaling control module, so that front-end equipment can be effectively closed and is not required to transmit video streams to a specified port, the streaming phenomenon can not occur when the client requests the video streams again, and the experience of a user is greatly improved; meanwhile, the network ports which are opened up can be multiplexed according to the idle port resources in the port list, the ports do not need to be opened up again, and the waste of the network resources is effectively avoided.
Description
Technical Field
The present application relates to the field of video transmission technologies, and in particular, to a method and a system for solving a streaming phenomenon at a client.
Background
The reason for the occurrence of the media streaming is that the server sends the video stream to the designated port, but due to a network reason, after the closing command sent from the client to the server is successful, the server fails to send a message for closing the push stream to the device end due to the network reason, so that the front-end device does not interrupt the sending of the video stream, and still sends the video stream to the designated port. When the next video stream request is started, the server port still receives the video stream and overlaps with the new video stream, so that the mixed video streams are all sent to the client, and the client can generate images of different scenes and generate streaming phenomenon.
The current solution for streaming is to continuously open up new ports in the server, so that the phenomenon of streaming can be solved; however, when the monitoring device is too many, the interface resource will be continuously consumed, and the front-end device that is not closed continuously sends the video stream to the server, which causes huge consumption of network resource.
Disclosure of Invention
The application provides a method and a system for solving streaming phenomenon of a client, which aims to solve streaming phenomenon of the client, improve the utilization rate of a port and avoid waste of network resources.
The technical purpose of the application is realized by the following technical scheme:
a method for resolving client streaming comprising:
a client initiates a real-time stream request, and a server establishes a rtsp signaling control module and a sip signaling control module according to an equipment ID number of the real-time stream request; the rtsp signaling control module maintains a timer and a port list;
setting a status bit list of an rtsp session in the rtsp signaling control module, wherein the status bits in the status bit list of the rtsp session comprise: initializing a state, sending a SETUP command success state, sending a PLAY command success state, sending a PAUSE command success state and sending a TEARDOWN command success state; setting a state bit list of the sip session in the sip signaling control module, wherein the state bits in the state bit list of the sip session comprise: initializing state, waiting state, channel establishment success state, media stream distribution state and channel release state;
when the status bit of the sip signaling control module is updated to a channel establishment success status, the establishment of the sip signaling channel is successful, then the server allocates a session port from the port list, and the front-end equipment distributes video streams to the session port;
the timer detects the status bits of the rtsp signaling control module and the sip signaling control module at regular time, and when the status bit of the rtsp signaling control module is detected to be the state of success in sending the TEARDOWN command and the status bit of the sip signaling control module is not in the channel release state, the server sends a session termination request to the session port until the session is detected to be closed; or when the state bit of the sip signaling control module is detected to be in a channel release state and the state bit of the rtsp signaling control module is not in a state of success in sending the TEARDOWN command, the server calls the callback function to notify the client to resend the request for closing the session until the session is detected to be closed.
Further, when the timer detects that the status bit of the rtsp signaling control module is a state of success in sending the TEARDOWN command, or the status bit of the sip signaling control module is a state of channel release, the session of the session port is closed, and the session port returns to the port list to be reallocated.
A system for resolving client streaming comprising:
the client initiates a real-time stream request;
the server comprises a timer, a port list, an rtsp signaling control module and a sip signaling control module, wherein the rtsp signaling control module maintains the timer and the port list, and the timer carries out timing detection on state bits of the rtsp signaling control module and the sip signaling control module;
wherein, the rtsp signaling control module and the sip signaling control module are established according to the equipment ID number of the real-time stream request; a status bit list of an rtsp session is set in the rtsp signaling control module, and status bits in the status bit list of the rtsp session include: initializing a state, sending a SETUP command success state, sending a PLAY command success state, sending a PAUSE command success state and sending a TEARDOWN command success state; a state bit list of the sip session is set in the sip signaling control module, and the state bits in the state bit list of the sip session comprise: initializing state, waiting state, channel establishment success state, media stream distribution state and channel release state;
the front-end equipment is used for successfully establishing the sip signaling channel when the status bit of the sip signaling control module is updated to be the successful channel establishment status, and then the server allocates a session port from the port list and distributes video streams to the session port;
after the front-end equipment distributes video streams to the session port, a timer detects the status bits of an rtsp signaling control module and a sip signaling control module at regular time, and when the status bits of the rtsp signaling control module are detected to be the state of success in sending a TEARDOWN command and the status bits of the sip signaling control module are not in a channel release state, the server sends a session termination request to the session port until the session is detected to be closed; or when the state bit of the sip signaling control module is detected to be in a channel release state and the state bit of the rtsp signaling control module is not in a state of success in sending the TEARDOWN command, the server calls the callback function to notify the client to resend the request for closing the session until the session is detected to be closed.
The beneficial effect of this application lies in: according to the method and the system for solving the streaming phenomenon of the client, the status bits of the rtsp signaling control module and the sip signaling control module are detected through the timer, so that the front-end equipment can be effectively closed and is not required to transmit the video stream to the appointed port any more, the streaming phenomenon can not occur when the client requests the video stream again, and the experience feeling of a user is greatly improved; meanwhile, the network ports which are opened up can be multiplexed according to the idle port resources in the port list, the ports do not need to be opened up again, and the waste of the network resources is effectively avoided.
Drawings
Fig. 1 is a diagram illustrating a framework of a method and a system for solving a client streaming problem according to the present application.
Detailed Description
The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
For ease of understanding, the present application is described below with reference to a specific embodiment.
The server is normally started, the client side initiates a real-time stream request, the server establishes a rtsp signaling control module CStreamRspPushSession of an rtsp session according to the device ID number of the real-time stream request, and a Timer CAC _ Timer _ Manager and a PORT LIST UDP _ PORT _ LIST are maintained in the CStreamRspPushSession.
The newly established RTSP signaling control module CStreamRspPushSession has a STATUS bit list, which is respectively the initialization STATUS RTSP _ SESSION _ STATUS _ INIT, the successful STATUS RTSP _ SESSION _ STATUS _ SETUP of sending the SETUP command, the successful STATUS RTSP _ SESSION _ STATUS _ PLAY of sending the PLAY command, the successful STATUS RTSP _ SESSION _ STATUS _ PASE of sending the PASSE command, and the successful STATUS RTSP _ SESSION _ STATUS _ TEARDOWN of sending the TEARDOWN command.
The server also establishes an SIP signaling control module according to the equipment ID number of the real-time stream request, and the newly established SIP signaling module maintains a state bit list which is respectively an initialization state SIP _ SESSION _ STATUS _ INIT, a waiting state SIP _ SESSION _ STATUS _ WAIT _ START, a CHANNEL establishment success state SIP _ SESSION _ STATUS _ WAIT _ CHANNEL _ REDAY, a media stream distribution state SIP _ SESSION _ STATUS _ DISPATCHING and a CHANNEL release state SIP _ SESSION _ STATUS _ RELEAASED.
When the STATUS bit of the SIP signaling control module is updated to the CHANNEL establishment success STATUS SIP _ SESSION _ STATUS _ WAIT _ CHANNEL _ restore, the SIP signaling CHANNEL is successfully established, the server will allocate a SESSION PORT from the UDP _ PORT _ LIST, and the front-end device will distribute the video stream to the SESSION PORT. Meanwhile, the timer thread starts to work normally, and the state bits of the rtsp signaling control module and the sip signaling control module are detected regularly; the time of the timer may be set.
When the STATUS bit of the RTSP signaling control module is detected to be RTSP _ SESSION _ STATUS _ tear down and the STATUS bit of the SIP signaling control module is not SIP _ SESSION _ STATUS _ RELEASED, the platform is required to send a SESSION termination request to the specified SESSION port at this time.
Alternatively, when the STATUS bit of the SIP signaling control module is detected to be SIP _ SESSION _ STATUS _ RELEASED and the STATUS bit of the RTSP signaling control module is not RTSP _ SESSION _ STATUS _ TEARDOWN, a callback function may be called to notify the client to resend the request for closing the SESSION.
When the timer detects that the STATUS bit of the RTSP signaling control module is RTSP _ SESSION _ STATUS _ tear down and the STATUS bit of the SIP signaling control module is SIP _ SESSION _ STATUS _ RELEASED, the SESSION of the SESSION port is closed, and the SESSION port returns to the port list to be reallocated.
Regarding the PORT LIST UDP _ PORT _ LIST, PORT resources are opened up through an interface function creatertputport at the time of server initialization, the number of ways of the resources can be read from a configuration file according to actual requirements, and then the PORT resources are stored in the LIST UDP _ PORT _ LIST. If the port resource is used, the used port resource is stored in the list m _ UsedUdpPortList, and when the session of the port is closed, the port can be allocated for use again; if the port resource is not used, the port resource is stored in the list m _ UnUsedUdpPortList, so that the phenomenon of port resource waste can be avoided, and the system resource configuration is more reasonable.
The foregoing is an exemplary embodiment of the present application, and the scope of the present application is defined by the claims and their equivalents.
Claims (4)
1. A method for resolving client streaming comprising:
a client initiates a real-time stream request, and a server establishes an rtsp signaling control module and an sip signaling control module according to an equipment ID number of the real-time stream request; the rtsp signaling control module maintains a timer and a port list;
setting a status bit list of an rtsp session in the rtsp signaling control module, wherein the status bits in the status bit list of the rtsp session comprise: initializing a state, sending a SETUP command success state, sending a PLAY command success state, sending a PAUSE command success state and sending a TEARDOWN command success state; setting a state bit list of the sip session in the sip signaling control module, wherein the state bits in the state bit list of the sip session comprise: initializing state, waiting state, channel establishment success state, media stream distribution state and channel release state;
when the status bit of the sip signaling control module is updated to a channel establishment success status, the establishment of the sip signaling channel is successful, then the server allocates a session port from the port list, and the front-end equipment distributes video streams to the session port;
the timer detects the status bits of the rtsp signaling control module and the sip signaling control module at regular time, and when the status bit of the rtsp signaling control module is detected to be the state of success in sending the TEARDOWN command and the status bit of the sip signaling control module is not in the channel release state, the server sends a session termination request to the session port until the session is detected to be closed; or when the state bit of the sip signaling control module is detected to be in a channel release state and the state bit of the rtsp signaling control module is not in a state of success in sending the TEARDOWN command, the server calls the callback function to notify the client to resend the request for closing the session until the session is detected to be closed.
2. The method according to claim 1, wherein when the timer detects that the status bit of the rtsp signaling control module is a state of success in sending the TEARDOWN command or the status bit of the sip signaling control module is a state of channel release, the session of the session port is closed, and the session port is returned to the port list to be reallocated.
3. A system for resolving client streaming comprising:
the client initiates a real-time stream request;
the server comprises a timer, a port list, an rtsp signaling control module and a sip signaling control module, wherein the rtsp signaling control module maintains the timer and the port list, and the timer carries out timing detection on state bits of the rtsp signaling control module and the sip signaling control module;
wherein, the rtsp signaling control module and the sip signaling control module are established according to the equipment ID number of the real-time stream request; a status bit list of an rtsp session is set in the rtsp signaling control module, and status bits in the status bit list of the rtsp session include: initializing a state, sending a SETUP command success state, sending a PLAY command success state, sending a PAUSE command success state and sending a TEARDOWN command success state; a state bit list of the sip session is set in the sip signaling control module, and the state bits in the state bit list of the sip session comprise: initializing state, waiting state, channel establishment success state, media stream distribution state and channel release state;
the front-end equipment is used for successfully establishing the sip signaling channel when the status bit of the sip signaling control module is updated to be the successful channel establishment status, and then the server allocates a session port from the port list and distributes video streams to the session port;
after the front-end equipment distributes video streams to the session port, a timer detects the status bits of an rtsp signaling control module and a sip signaling control module at regular time, and when the status bits of the rtsp signaling control module are detected to be the state of success in sending a TEARDOWN command and the status bits of the sip signaling control module are not in a channel release state, the server sends a session termination request to the session port until the session is detected to be closed; or when the state bit of the sip signaling control module is detected to be in a channel release state and the state bit of the rtsp signaling control module is not in a state of success in sending the TEARDOWN command, the server calls the callback function to notify the client to resend the request for closing the session until the session is detected to be closed.
4. The system of claim 3, wherein when the timer detects that the status bit of the rtsp signaling control module is a TEARDOWN command successful sending status and the status bit of the sip signaling control module is a channel release status, the session of the session port is closed and the session port is returned to the port list to be reallocated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210149053.4A CN114448949B (en) | 2022-02-18 | 2022-02-18 | Method and system for solving streaming phenomenon of client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210149053.4A CN114448949B (en) | 2022-02-18 | 2022-02-18 | Method and system for solving streaming phenomenon of client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114448949A true CN114448949A (en) | 2022-05-06 |
CN114448949B CN114448949B (en) | 2024-03-01 |
Family
ID=81374165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210149053.4A Active CN114448949B (en) | 2022-02-18 | 2022-02-18 | Method and system for solving streaming phenomenon of client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114448949B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080144494A1 (en) * | 2006-12-14 | 2008-06-19 | Nortel Networks Limited | Serving gateway proxies for non-sip speakers in a next generation network |
WO2009012714A1 (en) * | 2007-07-25 | 2009-01-29 | Huawei Technologies Co., Ltd. | A method and a device for controlling streaming media |
CN102088447A (en) * | 2009-12-08 | 2011-06-08 | 中国移动通信集团公司 | Media control method and system in IMS (IP multimedia subsystem) |
CN102934459A (en) * | 2010-06-10 | 2013-02-13 | 捷讯研究有限公司 | Method and system to release internet protocol (ip) multimedia subsystem (ims), session initiation protocol (sip), ip-connectivity access network (ip-can) and radio access network (ran) networking resources when ip television (iptv) session is paused |
CN103428168A (en) * | 2012-05-17 | 2013-12-04 | 北京信悦通科技有限公司 | Method, system and signaling gateway for SIP client side to visit RTSP media resource |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104519369A (en) * | 2014-12-24 | 2015-04-15 | 天津市天安怡和信息技术有限公司 | Method for solving streaming phenomenon of UDP-based multi-stream media server |
-
2022
- 2022-02-18 CN CN202210149053.4A patent/CN114448949B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080144494A1 (en) * | 2006-12-14 | 2008-06-19 | Nortel Networks Limited | Serving gateway proxies for non-sip speakers in a next generation network |
WO2009012714A1 (en) * | 2007-07-25 | 2009-01-29 | Huawei Technologies Co., Ltd. | A method and a device for controlling streaming media |
CN102088447A (en) * | 2009-12-08 | 2011-06-08 | 中国移动通信集团公司 | Media control method and system in IMS (IP multimedia subsystem) |
CN102934459A (en) * | 2010-06-10 | 2013-02-13 | 捷讯研究有限公司 | Method and system to release internet protocol (ip) multimedia subsystem (ims), session initiation protocol (sip), ip-connectivity access network (ip-can) and radio access network (ran) networking resources when ip television (iptv) session is paused |
CN103428168A (en) * | 2012-05-17 | 2013-12-04 | 北京信悦通科技有限公司 | Method, system and signaling gateway for SIP client side to visit RTSP media resource |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104519369A (en) * | 2014-12-24 | 2015-04-15 | 天津市天安怡和信息技术有限公司 | Method for solving streaming phenomenon of UDP-based multi-stream media server |
Also Published As
Publication number | Publication date |
---|---|
CN114448949B (en) | 2024-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10601878B2 (en) | Call processing method and control apparatus, automatic call distribution apparatus, and agent terminal | |
CN101083605B (en) | Method, system and apparatus for quick switching media source | |
CN104320490B (en) | A kind of reliable data transmission method and system of the breakpoint transmission based on SIP | |
GB2489296A (en) | Communication port sharing for plural applications with token-based access | |
WO2009026844A1 (en) | Method, system and apparatus for admission control of multicast or unicast | |
WO2010063186A1 (en) | Method and system for implementing a relay channel and edge nodes | |
CN101764816A (en) | Data transmission method and device | |
CN103118238A (en) | Controlling method of video conference and video conference system | |
US8446919B2 (en) | Service switching method, system, and device | |
CN114448949B (en) | Method and system for solving streaming phenomenon of client | |
CN102238196A (en) | SIP (Session Initiation Protocol) session auxiliary flow control method based on INFO message | |
CN101453446B (en) | Method, apparatus and system for establishing MRCP control and bearing channel | |
CN105429964A (en) | Resource control and distribution method of media server | |
CN101547191B (en) | Method and device for controlling media content syndication | |
EP2273733A1 (en) | Method, media gateway and system for session state reporting | |
CN103237270A (en) | Video streaming media system and method capable of interacting with network | |
WO2012146216A1 (en) | Media code stream-transmission method, device and system | |
CN102957674A (en) | Resource control method and resource control system for broadband network | |
US8959178B2 (en) | Transmission apparatus and transmission method | |
CN101356784B (en) | Method, network agent and bandwidth broker for managing the available bandwidth for connections between terminals in a packet-oriented communication network | |
US11622144B2 (en) | Active video bandwidth management using SDV control | |
CN100386992C (en) | Method for treating user's going to on line or off line | |
CN114598943A (en) | Method and system for realizing voice talkback based on GB28181 protocol | |
KR100228406B1 (en) | Method for operating signal protocol in set top unit for video on demand service | |
CN108430079A (en) | It is the method for multithread control protocol channel distribution bearing resource under 5G environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 210000 Longmian Avenue 568, High-tech Park, Jiangning District, Nanjing City, Jiangsu Province Applicant after: Xiaoshi Technology (Jiangsu) Co.,Ltd. Address before: 568 Longmian Avenue, Gaoxinyuan, Jiangning District, Nanjing City, Jiangsu Province Applicant before: NANJING ZHENSHI INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant | ||
GR01 | Patent grant |