CN109862438A - A kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data - Google Patents

A kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data Download PDF

Info

Publication number
CN109862438A
CN109862438A CN201910124155.9A CN201910124155A CN109862438A CN 109862438 A CN109862438 A CN 109862438A CN 201910124155 A CN201910124155 A CN 201910124155A CN 109862438 A CN109862438 A CN 109862438A
Authority
CN
China
Prior art keywords
rtsp
real
target
time streaming
streaming protocol
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
Application number
CN201910124155.9A
Other languages
Chinese (zh)
Other versions
CN109862438B (en
Inventor
黄建
张涛涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201910124155.9A priority Critical patent/CN109862438B/en
Publication of CN109862438A publication Critical patent/CN109862438A/en
Application granted granted Critical
Publication of CN109862438B publication Critical patent/CN109862438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention is suitable for field of computer technology, provides a kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data, this method comprises: receiving the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent;When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message and target RTP data flow connection;Based on the client identification, the target RTSP response message and the target RTP data received by the target RTP data flow connection are sent to the real-time streaming protocol client for sending the RTSP solicited message.Above scheme, the RTSP URL that real-time streaming protocol client requires no knowledge about the server of offer streaming media service can get the RTP data in server, RTP data forwarding efficiency is improved, workload, the more conducively maintenance between local device and real-time streaming protocol client are reduced.

Description

A kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data
Technical field
The invention belongs to field of computer technology more particularly to a kind of sides of agency's forwarding real-time streaming protocol stream medium data Method and equipment.
Background technique
Real-time streaming protocol (Real Time Streaming Protocol, RTSP) is that a kind of text based multimedia is broadcast Control protocol is put, application layer protocol is belonged to, is worked in a manner of client/server, is usually used in controlling the point of real-time multimedia Service is broadcast, but itself is not used to transmission stream medium data, it is necessary to rely on real-time transport protocol (Realtime Transport Protocol, RTP) and RTCP Real-time Transport Control Protocol (Realtime Transport Control Protocol, RTCP) institute The transmission of stream medium data is completed in the service of offer.RTSP is responsible for defining specific control information, operating method, status code, And the interactive operation between description and RTP.
Real-time streaming protocol agency (RTSP Proxy) is the service of client (the RTSP Client) and RTSP between RTSP There is forwarding RTSP signaling and forwarding rtp streaming media data to arrive by the network equipment between device (RTSP Server), RTSP Proxy The function of RTSP Server and RTSP Client.
The method of existing real-time streaming protocol agency forwarding data, it is specific that RTSP Client must be known by RTSP Server Uniform resource locator (Uniform Resource Locator, URL) can just be forwarded data, lead to data forwarding Low efficiency increases workload, is unfavorable for the maintenance of client.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method of agency's forwarding real-time streaming protocol stream medium data and setting It is standby, number can be just forwarded to solve the RTSP URL that real-time streaming protocol client must be known by server in the prior art According to leading to data forwarding low efficiency, heavy workload safeguards inconvenient problem between local device and real-time streaming protocol client.
The first aspect of the embodiment of the present invention provides a kind of method of agency's forwarding real-time streaming protocol stream medium data, packet It includes:
Receive the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent;Wherein, the RTSP request letter It is carried in breath and the corresponding target identities mark of destination server of streaming media service is provided;The real-time streaming protocol client has Client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing streaming media service Servers-all RTSP response message transmitted after receiving the RTSP solicited message that the local terminal is sent and RTP data Stream connection;
Based on the client identification, connect by the target RTSP response message and by the target RTP data flow The target RTP data received are sent to the real-time streaming protocol client for sending the RTSP solicited message.
The second aspect of the embodiment of the present invention provides a kind of equipment of agency's forwarding real-time streaming protocol stream medium data, should Equipment includes:
Receiving unit, for receiving the real-time streaming protocol RTSP solicited message of real-time streaming protocol client transmission;Wherein, institute It states and carries the corresponding target identities mark of destination server that streaming media service is provided in RTSP solicited message;The real-time streams association Discussing client has client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
Acquiring unit, for obtaining the target identities mark when finding target identities mark from database Know corresponding target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing The RTSP response transmitted after receiving the RTSP solicited message that the local terminal is sent of the Servers-all of streaming media service disappears Breath and RTP data flow connection;
Transmission unit is based on the client identification, by the target RTSP response message and passes through the target RTP The target RTP data that data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message.
The third aspect of the embodiment of the present invention provides the equipment of another agency's forwarding real-time streaming protocol stream medium data, Including processor, input equipment, output equipment and memory, the processor, input equipment, output equipment and memory are mutual Connection, wherein the memory is used to store the computer program for supporting the real-time streaming protocol client executing above method, described Computer program includes program instruction, and the processor is configured for calling described program instruction, executes following steps:
Receive the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent;Wherein, the RTSP request letter It is carried in breath and the corresponding target identities mark of destination server of streaming media service is provided;The real-time streaming protocol client has Client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing streaming media service Servers-all RTSP response message transmitted after receiving the RTSP solicited message that the local terminal is sent and RTP data Stream connection;
Based on the client identification, connect by the target RTSP response message and by the target RTP data flow The target RTP data received are sent to the real-time streaming protocol client for sending the RTSP solicited message.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program performs the steps of when being executed by processor
Receive the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent;Wherein, the RTSP request letter It is carried in breath and the corresponding target identities mark of destination server of streaming media service is provided;The real-time streaming protocol client has Client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing streaming media service Servers-all RTSP response message transmitted after receiving the RTSP solicited message that the local terminal is sent and RTP data Stream connection;
Based on the client identification, connect by the target RTSP response message and by the target RTP data flow The target RTP data received are sent to the real-time streaming protocol client for sending the RTSP solicited message.
It is provided in an embodiment of the present invention it is a kind of agency forwarding real-time streaming protocol stream medium data method and apparatus have with It is lower the utility model has the advantages that
The embodiment of the present invention, the real-time streaming protocol RTSP solicited message sent by receiving real-time streaming protocol client;When When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message And target RTP data flow connection;Based on the client identification, by the target RTSP response message and pass through the mesh The target RTP data that mark RTP data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message End.Above scheme, proxy server is to provide the Servers-all distribution identity of streaming media service in advance, and to the service Device sends RTSP solicited message to obtain the RTSP response message and RTP data of server feedback, then obtains real-time streaming protocol Identity and client identification in the RTSP solicited message of client transmission, the clothes that will acquire based on client identification The RTSP response message and RTP data of business device feedback are sent to real-time streaming protocol client, and the mode of this forwarding data is real When stream protocol client require no knowledge about and the RTSP URL of server of streaming media service is provided can get in server RTP data, improve RTP data forwarding efficiency, reduce workload, more conducively local device and real-time streaming protocol client Between maintenance.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the realization for the method that a kind of agency that one embodiment of the invention provides forwards real-time streaming protocol stream medium data Flow chart;
Fig. 2 be another embodiment of the present invention provides a kind of agency forward real-time streaming protocol stream medium data method reality Existing flow chart;
Fig. 3 is the reality for the method that a kind of agency that yet another embodiment of the invention provides forwards real-time streaming protocol stream medium data Existing flow chart;
Fig. 4 is the signal for the equipment that a kind of agency that one embodiment of the invention provides forwards real-time streaming protocol stream medium data Figure;
Fig. 5 be another embodiment of the present invention provides a kind of agency equipment for forwarding real-time streaming protocol stream medium data show It is intended to.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Figure 1, Fig. 1 is a kind of side of agency's forwarding real-time streaming protocol stream medium data provided in an embodiment of the present invention The schematic flow diagram of method.The executing subject of agency's forwarding real-time streaming protocol stream medium data is that agency's forwarding is real-time in the present embodiment The equipment of stream protocol stream medium data, including but not limited to proxy server.Agency as shown in Figure 1 forwards real-time streaming protocol stream The method of media data can include:
S101: the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent is received;Wherein, the RTSP is asked It asks and carries the corresponding target identities mark of destination server that streaming media service is provided in information;The real-time streaming protocol client With client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance.
Proxy server is the client between real-time streaming protocol (Real Time Streaming Protocol, RTSP) The network equipment between the server of RTSP.Proxy server both can be used for receiving the reality of real-time streaming protocol client transmission When stream protocol RTSP solicited message, it can also be used to it is each for provide streaming media service server send RTSP request letter Breath.It should be noted that proxy server is merely illustrative in the present embodiment, do not limit this.
Real-time streaming protocol client sends real-time streaming protocol RTSP solicited message to proxy server, and proxy server receives The RTSP solicited message that real-time streaming protocol client is sent.Wherein, it is carried in RTSP solicited message and the mesh of streaming media service is provided The corresponding target identities mark of server is marked, real-time streaming protocol client has client identification.Specifically, real-time streaming protocol visitor The client identification at family end can be IP address+port numbers, or user's sets itself can be identified for that real-time streaming protocol Other marks of client uniqueness, user can be configured according to the actual situation, be not construed as limiting to this.
Target identities mark is that destination server is distributed and stored by proxy server in advance.Specifically, proxy server RTSP solicited message is sent to each server for providing streaming media service, while distributing the server for each server Corresponding unique identity, and generate based on the corresponding unique identity of the server RTSP URL of the server. Identity, which is used to identify, provides the server of streaming media service, can be set to channel number, such as channel number 1, channel number 2, leads to Taoist monastic name 3 etc. may be set to be A, B, C etc., may be arranged as number, character etc., user can carry out according to the actual situation Setting, is not construed as limiting this.
The RTSP solicited message that real-time streaming protocol client is sent is used for request real-time streaming protocol RTSP response message And realtime transmission protocol RTP data.The form of RTSP URL in RTSP solicited message can be by user according to preset rules It is configured, this is not construed as limiting.For example, rtsp can be set by the form of RTSP URL: //IP: port numbers/target clothes Business device identity.It is worth noting that the RTSP URL form for the server that the unique identity based on server generates It is consistent with the form of RTSP URL of the real-time streaming protocol client into the RTSP solicited message that proxy server is sent.Work as base In server unique identity generate server RTSP URL form be rtsp: //IP: port numbers/destination server When identity, the form for the RTSP solicited message that real-time streaming protocol client is sent to proxy server is also rtsp: //IP: Port numbers/destination server identity.
In order to keep agency's forwarding real-time streaming protocol stream medium data more safe and reliable, can verify using RTSP client User identity legitimacy.When real-time streaming protocol client sends RTSP solicited message to proxy server, transmission can be passed through Verification information verifying uses the legitimacy of the user identity of RTSP client.Specifically, real-time streaming protocol client takes to agency When device transmission RTSP solicited message of being engaged in, the RTSP solicited message without authentication information (verification information) is first sent, if receiving agency The error feedback message that server is replied, such as 401 message, then prove to need to verify the user identity using RTSP client at this time Legitimacy, real-time streaming protocol client to proxy server retransmit carry authentication information RTSP solicited message, agency Server authentication carries the RTSP solicited message of authentication information, the returning response success if being verified, if verifying does not pass through Returning response failure.
Wherein, whether authentication information is equivalent to verification information, use the user identity of RTSP client legal for verifying. Authentication information is the authentication information that user shifts to an earlier date all RTSP clients configured in proxy server, can be increased to it The operation such as add, delete, modifying, being specifically as follows the information such as user name, password, login account, herein without limitation.
S102: when finding target identities mark from database, it is corresponding to obtain the target identities mark Target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing Streaming Media clothes The Servers-all of business RTSP response message transmitted after the RTSP solicited message for receiving local terminal transmission and RTP data Stream connection.
Proxy server searches target identities mark from database, identifies when finding target identities from database When, it obtains the target identities and identifies corresponding target RTSP response message and target RTP data flow connection.
It is stored with the Servers-all for providing streaming media service in database and is receiving local device transmission Transmitted RTSP response message and RTP data flow connection after RTSP solicited message.
Specifically, proxy server sends RTSP solicited message to the server for providing streaming media service, and server receives After RTSP solicited message, sent in RTSP response message corresponding with RTSP solicited message and server to proxy server By the RTP data of coding.Proxy server is by the RTSP response message received and according to the RTP data of RTP data foundation Connection is stored to database.
S103: it is based on the client identification, by the target RTSP response message and passes through the target RTP data It flows the target RTP data received and is sent to the real-time streaming protocol client for sending the RTSP solicited message.
Due to the uniqueness of client identification, it can confirm and send according to the client identification of real-time streaming protocol client The real-time streaming protocol client of RTSP solicited message by the target RTSP response message got from database and passes through mesh The target RTP data that mark RTP data flow connection receives are sent to the real-time streaming protocol client for sending RTSP solicited message.
The embodiment of the present invention, the real-time streaming protocol RTSP solicited message sent by receiving real-time streaming protocol client;When When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message And target RTP data flow connection;Based on the client identification, by the target RTSP response message and pass through the mesh The target RTP data that mark RTP data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message End.Above scheme, proxy server is to provide the Servers-all distribution identity of streaming media service in advance, and to the service Device sends RTSP solicited message to obtain the RTSP response message and RTP data of server feedback, then obtains real-time streaming protocol Identity and client identification in the RTSP solicited message of client transmission, the clothes that will acquire based on client identification The RTSP response message and RTP data of business device feedback are sent to real-time streaming protocol client, and the mode of this forwarding data is real When stream protocol client require no knowledge about and the RTSP URL of server of streaming media service is provided can get in server RTP data, improve RTP data forwarding efficiency, reduce workload, more conducively local device and real-time streaming protocol client Between maintenance.
Refer to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of agency forward real-time streaming protocol stream medium data Method schematic flow diagram.The executing subject of agency's forwarding real-time streaming protocol stream medium data is agency's forwarding in the present embodiment The equipment of real-time streaming protocol stream medium data, including but not limited to proxy server.Agency as shown in Figure 2 forwards real-time streams association The method for discussing stream medium data can include:
S201: real-time streaming protocol RTSP solicited message is sent to each server for providing streaming media service, and is Each server distributes unique identity, and the unique identity based on each server generates each clothes The RTSP URL of business device.
Proxy server sends RTSP solicited message to each server for providing streaming media service, while being each Server distributes unique identity, and the RTSP URL of each server is generated based on unique identity.
Wherein, RTSP solicited message includes but is not limited to, the request of the methods availalbe for requesting to obtain server offer Information (OPTIONS), establishes session request information (SETUP), broadcasts the solicited message (DESCRIBE) for obtaining session description information Put solicited message (PIAY), play pause solicited message (PAUSE), turn-off request information (TEARDOWN), get parms request Information (GET_PARAMETER) etc..
Specifically, proxy server sends RTSP solicited message, root to each server for providing streaming media service According to the transmission sequence for sending RTSP solicited message to each server, corresponding unique identities mark is distributed for each server Know.Identity be used for identify offer streaming media service server, can be set to channel number, as channel number 1, channel number 2, Channel number 3 etc. may be set to be A, B, C etc., may be arranged as number, character etc., user can according to the actual situation into Row setting, is not construed as limiting this.Then the RTSP URL, RTSP of each server are generated on the basis of unique identity It include unique identity in URL.The form of RTSP URL in RTSP solicited message can by user according to preset rules into Row setting, is not construed as limiting this.For example, rtsp can be set by the form of the RTSP URL in RTSP solicited message: //IP: Port numbers/destination server identity.It is worth noting that the server that the unique identity based on server generates The shape of RTSP URL form and RTSP URL of the real-time streaming protocol client into the RTSP solicited message that proxy server is sent Formula is consistent.
In order to verify the legitimacy for using proxy server user identity, proxy server is to each for providing Streaming Media When the server of service sends RTSP solicited message, the legitimacy of proxy server can be verified by sending verification information.Specifically Ground first sends and (tests without authentication information when proxy server sends RTSP solicited message to the server for providing streaming media service Demonstrate,prove information) RTSP solicited message, if receive server reply error feedback message, such as 401 message, then prove to need at this time Verifying uses the legitimacy of proxy server user identity, and proxy server is retransmitted to the server for providing streaming media service The RTSP solicited message for carrying authentication information, the server authentication for providing streaming media service carry the RTSP request letter of authentication information Breath can send RTSP response message to the proxy server for sending the RTSP solicited message for carrying authentication information if being verified.
Wherein, authentication information is equivalent to verification information, for verifying the legitimacy for using proxy server user identity.Mirror Power information is that user is configured according to the actual situation when in use, can be increased it, delete, modify etc. and operates, It is specifically as follows the information such as user name, password, login account, herein without limitation.
S202: RTSP response message and RTP that each server is sent based on the RTSP solicited message are received Data.
After the server of offer streaming media service receives RTSP solicited message, sends to proxy server and believe with RTSP request It ceases by the RTP data of coding in corresponding RTSP response message and server, proxy server, which receives, provides Streaming Media clothes The RTSP response message and RTP data that the server of business is sent.
Wherein, RTSP response message includes but is not limited to the sound for being used for the methods availalbe that respond request obtains server offer It answers information (OPTIONS RESP), establish conversational response information (SETUP RESP), the response message of session description information (DESCRIBE RESP), response message (PIAY RESP) is played, pause response message (PAUSE RESP) is played, closes response Information (TEARDOWN RESP) etc..
Further, it may include S203 after S202: establishing the corresponding unique identities mark of each server Know, the RTSP response message and RTP data flow connection that RTSP URL of each server, each server are sent Between incidence relation, and the incidence relation is stored to the database.
The corresponding unique identity of each server, RTSP URL of each server, each server is established to send RTSP response message and RTP data flow connection between incidence relation, and the incidence relation is stored to database.
Specifically, the corresponding unique identity of each server, RTSP URL of each server, each server hair The RTSP response message sent and the RTP data flow connection for receiving RTP data are all corresponded and are associated with.For example, working as When the server that proxy server provides streaming media service to first sends RTSP solicited message, it is assigned with only for the server One identity generates the RTSP URL of the server based on unique identity, such as rtsp such as channel number 1 (chn1): // IP1/chn1, the RTSP response message which sends, such as RTSP OPTION response message, and for receiving RTP data RTP data flow connection.This record can indicate are as follows:
Unique identity: chn1
RTSP URL:rtsp: //IP1/chn1
RTSP response message: RTSP OPTION response message
When the server that proxy server provides streaming media service to second sends RTSP solicited message, for the service Device is assigned with unique identity, and such as channel number 2 (chn2), the RTSP URL of the server is generated based on unique identity, Such as rtsp: //IP2/chn2, the RTSP response message which sends such as RTSP DESCRIBE response message, and are used for Receive the RTP data flow connection of RTP data.
This record can indicate are as follows:
Unique identity: chn2
RTSP URL:rtsp: //IP2/chn2
RTSP response message: RTSP DESCRIBE response message
Same aforesaid way generates corresponding incidence relation, can be by these incidence relations with table or TXT text formatting Etc. forms store to database, corresponding storage form can be arranged according to the actual situation, be not construed as limiting to this by user.
S204: the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent is received;Wherein, the RTSP is asked It asks and carries the corresponding target identities mark of destination server that streaming media service is provided in information;The real-time streaming protocol client With client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance.
S204 is identical with the S101 in a upper embodiment in the present embodiment, referring specifically to S101 in a upper embodiment Associated description, do not repeat herein.
S205: when finding target identities mark from database, it is corresponding to obtain the target identities mark Target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for providing Streaming Media clothes The Servers-all of business RTSP response message and RTP transmitted after receiving the RTSP solicited message that the local terminal is sent Data flow connection information.
S205 is identical with the S102 in a upper embodiment in the present embodiment, referring specifically to S102 in a upper embodiment Associated description, do not repeat herein.
Further, when pre-establishing each server corresponding unique identity, each server The incidence relation between RTSP response message and RTP data flow connection that RTSP URL, each server are respectively sent When, S205 may include: to be based on the incidence relation when finding target identities mark from database, search institute It states target identities and identifies corresponding target RTSP response message and target RTP data flow connection.
When proxy server receives the RTSP solicited message of real-time streaming protocol client transmission, RTSP request letter is parsed Target identities mark in breath, identifies according to the target identities of acquisition, and it is corresponding that target identities mark is searched in incidence relation Target RTSP response message and target RTP data flow connection.
For example, the incidence relation comprising chn1 is obtained when the identity being resolved in RTSP solicited message is chn1, When acquisition identity is chn1 from the incidence relation, corresponding RTSP response message and RTP data flow connection.If association Relationship stores in table form, can also obtain entire table, inquires target identities again from table and identifies corresponding target RTSP response message and target RTP data flow connection.
S206: it is based on the client identification, by the target RTSP response message and passes through the target RTP data It flows the target RTP data received and is sent to the real-time streaming protocol client for sending the RTSP solicited message.
S206 is identical with the S103 in a upper embodiment in the present embodiment, referring specifically to S103 in a upper embodiment Associated description, do not repeat herein.
Further, in order to enable promoting real-time streaming protocol client reads data speed, the efficiency of forwarding data is improved, S206 may include S2061~S2062, specific as follows:
S2061: default mark is added before the RTP data;Wherein, the default mark includes at least Data Identification It is identified with server identity, the Data Identification is used to indicate that current data to be RTP data.
Proxy server adds default mark before RTP data.Default mark includes at least Data Identification, for indicating Current data are RTP data, further include the data for identifying target identities mark, also may include mark RTP data packet length Data etc..
Default mark can be arranged in user according to the actual situation, and form of identification can be number, letter, character etc., and length can Think 9 bytes, 12 bytes, 15 bytes etc., does not limit this.For example, the default mark of the character representation of 12 bytes can be used.Tool Body, it uses the character of 0-3 byte as Data Identification, such as AABB, is identified with the character mark target identities of 4-7 byte, Such as chn1, with the length of the character mark RTP data packet of 8-11 byte.
S2062: being based on the client identification, after the target RTSP response message and the addition default mark RTP data be sent to the real-time streaming protocol client for sending the RTSP solicited message.
Proxy server can confirm the reality for sending RTSP solicited message according to the client identification of real-time streaming protocol client When stream protocol client, the RTP data after target RTSP response message and the default mark of addition are sent to and sends RTSP and asks Seek the real-time streaming protocol client of information.
RTP data after the default mark of addition are sent to the real-time streaming protocol for sending RTSP solicited message by proxy server After client, real-time streaming protocol client parses the RTP data after the default mark of addition.For example, real-time streaming protocol is objective Family end is successively read the byte in the RTP data received, and whether the character for reading 0-3 byte is AABB, if not AABB, then proving the data not is RTP data, and real-time streaming protocol client no longer reads subsequent byte;If it is AABB, then demonstrate,prove The bright data are RTP data, and real-time streaming protocol client continues to read the character of 4-7 byte, pass through parsing 4-7 byte Character obtains target identities mark, and such as getting channel number is chn1, is further continued for reading the character of 8-11 byte, passes through parsing The character of 8-11 byte obtains the length of RTP data packet, and the length based on the RTP data packet got reads the length word again The data of section, so that it may obtain target identities and identify corresponding RTP data.For example, the length for obtaining RTP data is 256 bytes, then The data for continuing to read 256 bytes can be obtained the corresponding RTP data of chn1.
The embodiment of the present invention, the real-time streaming protocol RTSP solicited message sent by receiving real-time streaming protocol client;When When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message And target RTP data flow connection;Based on the client identification, by the target RTSP response message and pass through the mesh The target RTP data that mark RTP data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message End.Above scheme, proxy server is to provide the Servers-all distribution identity of streaming media service in advance, and to the service Device sends RTSP solicited message to obtain the RTSP response message and RTP data of server feedback, then obtains real-time streaming protocol Identity and client identification in the RTSP solicited message of client transmission, the clothes that will acquire based on client identification The RTSP response message and RTP data of business device feedback are sent to real-time streaming protocol client, and the mode of this forwarding data is real When stream protocol client require no knowledge about and the RTSP URL of server of streaming media service is provided can get in server RTP data, improve RTP data forwarding efficiency, reduce workload, more conducively local device and real-time streaming protocol client Between maintenance.
Fig. 3 is referred to, Fig. 3 is that a kind of agency that yet another embodiment of the invention provides forwards real-time streaming protocol stream medium data Method schematic flow diagram.The executing subject of agency's forwarding real-time streaming protocol stream medium data is agency's forwarding in the present embodiment The equipment of real-time streaming protocol stream medium data, including but not limited to proxy server.
The difference of the present embodiment embodiment corresponding with Fig. 1 is S303, S305, S306, S301 in the present embodiment, S101, S102, S103 in S302, S304 embodiment corresponding with Fig. 1 is identical, referring specifically to the corresponding implementation of Fig. 1 The associated description of S101, S102, S103, do not repeat herein in example.
Can also include S303 before S304 for improve data transfer efficiency:
S303: the RTP connection request that the real-time streaming protocol client device is sent is received, and establishes the local terminal and institute State RTP data transmission link between real-time streaming protocol client device;Wherein, the RTP data transmission link is used for described Real-time streaming protocol client device transmits the target RTP data.
Real-time streaming protocol client device sends RTP connection request to proxy server, and proxy server receives real-time streams The RTP connection request that Protocol Client end equipment is sent, establishes the RTP between proxy server and real-time streaming protocol client device Data transmission link.Wherein, RTP data transmission link is used for real-time streaming protocol client device transmission objectives RTP data.
Specifically, proxy server receives the RTP connection request that real-time streaming protocol client device is sent, and establishes agency's clothes The RTP data transmission link being engaged between device and real-time streaming protocol client device, and distributed for real-time streaming protocol client device The incidence relation of the IP address of device number, RTP data transmission link mark and equipment is established and stored to device number.Wherein, if Standby number, for identifying real-time streaming protocol client device, can be set to dev1, dev2 etc.;RTP data transmission link mark is used In identifying different RTP data transmission links, it can be set to number, character etc., such as fd1, fd2, do not limit this.It needs It should be noted that the same real-time streaming protocol client device and proxy server only establish a RTP data transmission link.
When first real-time streaming protocol client device sends RTP connection request to proxy server, assisted for real-time streams Client device distributing equipment number is discussed, such as dev1, obtains the IP address of the real-time streaming protocol client device, such as IP1, establishing should RTP data transmission link between real-time streaming protocol client device and proxy server, such as fd1.This record can indicate Are as follows:
Device number: dev1
RTP data transmission link: fd1
Real-time streaming protocol client device IP address: IP1
When second real-time streaming protocol client device sends RTP connection request to proxy server, for the real-time streams Protocol Client end equipment distributing equipment number obtains the IP address of the real-time streaming protocol client device, such as IP2 such as dev2, establishes RTP data transmission link between the real-time streaming protocol client device and proxy server, such as fd2.This record can be with table It is shown as:
Device number: dev2
RTP data transmission link: fd2
Real-time streaming protocol client device IP address: IP2
In the same way, corresponding incidence relation is generated, it can be by these incidence relations with table or TXT text lattice The forms such as formula are stored to database, and corresponding storage form can be arranged according to the actual situation, be not construed as limiting to this by user.
Further, for improve data transfer rate, resource occupation is reduced, is being established and real-time streaming protocol client RTP data transmission link between equipment, and real-time streaming protocol client send RTSP solicited message quantity be two and with When upper, S303 can also include: by the corresponding RTP data transmission link of the real-time streaming protocol client device, will be each RTP data to be transmitted corresponding to the unique identity that the RTSP solicited message carries, which are sent to, to be sent the RTSP and asks Seek the real-time streaming protocol client of information.
Corresponding RTP data transmission link is searched by device number, each RTSP solicited message is obtained and carries only RTP data to be transmitted are transmitted to by RTP data to be transmitted corresponding to one identity by RTP data transmission link Send the real-time streaming protocol client of RTSP solicited message.
Specifically, corresponding RTP data transmission link is searched by device number, when proxy server receives in real time Stream protocol client send two and the above RTSP solicited message in carry unique identity difference when, obtain RTSP ask The corresponding RTP data to be transmitted of unique identity for asking information to carry, at least two parts of RTP data to get add Add default mark, the RTP data after the default mark of addition are merged, the RTP data after merging are passed through into RTP data later Transmission link is transmitted to the real-time streaming protocol client device for sending RTSP solicited message.Real-time streaming protocol client device receives After the RTP data of transmission, according in the identity of the destination server of RTSP client request and the default mark of RTP data Whether server identification is consistent, gives RTP data distribution to each RTSP client.
Corresponding RTP data transmission link is searched by device number, when proxy server receives real-time streaming protocol When the unique identity that carries is identical in send two of client and the above RTSP solicited message, any one RTSP is obtained RTP data to be transmitted corresponding to the unique identity that solicited message carries.Since unique identity is identical, then prove The RTP data to be transmitted of RTSP solicited message request are identical, so need to only obtain any one RTSP request letter Cease RTP data to be transmitted corresponding to the unique identity carried.The RTP data to be transmitted that will acquire pass through RTP data transmission link is transmitted to the real-time streaming protocol client device for sending RTSP solicited message.Due to real-time streaming protocol visitor The unique identity carried in the RTSP solicited message that family end is sent is identical, at this point, real-time streaming protocol client device receives After the RTP data of transmission, sent according to the corresponding identity of server in the default mark of RTP data and RTSP client RTSP solicited message in server identity mark, by RTP data distribution give each RTSP client.
When proxy server receive real-time streaming protocol client transmission two and the above RTSP solicited message in carry Unique identity it is identical when, the unique identity that also available each RTSP solicited message carries it is corresponding to The RTP data of transmission.When transmitting RTP data by RTP data transmission link, portion RTP data are only transmitted.
The same real-time streaming protocol client device and proxy server only establish a RTP data transmission link, are based on The RTP data transmission link carries out data transmission, when the quantity for the RTSP solicited message that real-time streaming protocol client is sent is two It is a or more, when the unique identity that RTSP solicited message carries is identical, RTP data to be transmitted are passed by RTP data Transmission link is only sent once;When the unique identity difference that RTSP solicited message carries, RTP data to be transmitted are carried out It is sent after merging by RTP data transmission link.Such transmission mode, improves message transmission rate, reduces resource It occupies.
It should be noted that real-time streaming protocol client send the RTSP solicited message quantity without limitation. The quantity for the RTSP solicited message that practical real-time streaming protocol client is sent can be one, or multiple.Work as reality When stream protocol client send the RTSP solicited message quantity be it is multiple when, by RTP data to be transmitted pass through RTP number It is only sent according to transmission link once, or the RTP data being added to default mark after merging is passed through into RTP data transmission link Transmission.
S304: it is based on the client identification, by the target RTSP response message and passes through the target RTP data It flows the target RTP data received and is sent to the real-time streaming protocol client for sending the RTSP solicited message.
S304 is identical with the S103 in a upper embodiment in the present embodiment, referring specifically to S103 in a upper embodiment Associated description, do not repeat herein.
Further, it may also include S305-S306 after S304, specific as follows:
S305: pair between the target identities mark and the client identification of the real-time streaming protocol client is established It should be related to.
Proxy server establishes the correspondence between target identities mark and the client identification of real-time streaming protocol client Relationship.
Specifically, proxy server by target RTSP response message and passes through target RTP data according to client identification After the target RTP data that stream receives are sent to the real-time streaming protocol client for sending the RTSP solicited message, establish The correspondence between target identities mark carried in the client identification and RTSP solicited message of the real-time streaming protocol client Relationship.
Establishing corresponding relationship can be, and individually establish the client mark of target identities mark and real-time streaming protocol client Corresponding relationship between knowledge.Assuming that target identities are identified as chn1, the client identification of real-time streaming protocol client is A, is established Corresponding relationship it is as follows:
Unique identity: chn1
The client identification of real-time streaming protocol client: A
Assuming that target identities are identified as chn2, the client identification of real-time streaming protocol client is B, the corresponding relationship of foundation It is as follows:
Unique identity: chn2
The client identification of real-time streaming protocol client: B
The client identification of real-time streaming protocol client can also be added according to unique identity by establishing corresponding relationship Into the incidence relation established before, i.e., the client identification of real-time streaming protocol client is added according to unique identity Extremely, the RTSP that the corresponding unique identity of each server, RTSP URL of each server, each server are respectively sent In response message and the incidence relation of RTP data connection.
Assuming that target identities are identified as chn1, the client identification of real-time streaming protocol client is A, then by real-time streaming protocol The client identification A of client is added in above-mentioned incidence relation.Incidence relation after addition is as follows:
Unique identity: chn1
RTSP URL:rtsp: //IP1/chn1
RTSP response message: RTSP OPTION response message
The client identification of real-time streaming protocol client: A
S306: when receiving the RTP data that any server is sent based on the target RTP data flow connection, The RTP data received are sent to institute by the default corresponding relationship based on the unique identity and client identification State the corresponding real-time streaming protocol client of the corresponding client identification of unique identity of server.
When receiving the RTP data that any server is sent based on the target RTP data flow connection, proxy server The unique identity that the server is obtained by comparing RTP data connection information, according to unique identity and client mark The default corresponding relationship known searches the corresponding real-time streaming protocol visitor of the corresponding client identification of unique identity of the server The RTP data received are sent to the real-time streaming protocol client by family end.
For example, when receiving the RTP data of server transmission again by target RTP data flow connection, agency service The unique identity that device obtains the server is chn1, and the corresponding client of chn1 is searched in the corresponding relationship of above-mentioned foundation Identify corresponding real-time streaming protocol client.It can be in the visitor for individually establishing target identities mark and real-time streaming protocol client It searches, i.e., is searched in following information in corresponding relationship between the mark of family end:
Unique identity: chn1
The client identification of real-time streaming protocol client: A
When the unique identity of server is chn1, the client identification of real-time streaming protocol client is A, i.e. chn1 The corresponding real-time streaming protocol client of corresponding client identification is real-time streaming protocol customer end A, and the RTP data received are sent out It send to the real-time streaming protocol client.
It can also search, i.e., be searched in following information in the incidence relation after addition:
Unique identity: chn1
RTSP URL:rtsp: //IP1/chn1
RTSP response message: RTSP OPTION response message
The client identification of real-time streaming protocol client: A
When the unique identity of server is chn1, the client identification of real-time streaming protocol client is A, i.e. chn1 Real-time streaming protocol client belonging to corresponding client identification is real-time streaming protocol customer end A, and the RTP data received are sent out It send to the real-time streaming protocol client.
The embodiment of the present invention, the real-time streaming protocol RTSP solicited message sent by receiving real-time streaming protocol client;When When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP response message And target RTP data flow connection;Based on the client identification, by the target RTSP response message and pass through the mesh The target RTP data that mark RTP data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message End.Above scheme, proxy server is to provide the Servers-all distribution identity of streaming media service in advance, and to the service Device sends RTSP solicited message to obtain the RTSP response message and RTP data of server feedback, then obtains real-time streaming protocol Identity and client identification in the RTSP solicited message of client transmission, the clothes that will acquire based on client identification The RTSP response message and RTP data of business device feedback are sent to real-time streaming protocol client, and the mode of this forwarding data is real When stream protocol client require no knowledge about and the RTSP URL of server of streaming media service is provided can get in server RTP data, improve RTP data forwarding efficiency, reduce workload, more conducively local device and real-time streaming protocol client Between maintenance.
Fig. 4 is referred to, Fig. 4 is that a kind of agency that one embodiment of the invention provides forwards real-time streaming protocol stream medium data The schematic diagram of equipment.The each unit that the equipment includes is used to execute each step in the corresponding embodiment of Fig. 1, Fig. 2, Fig. 3.Specifically Please refer to the associated description in the corresponding embodiment of Fig. 1 Fig. 2, Fig. 3.For ease of description, it illustrates only and the present embodiment Relevant part.Referring to fig. 4, the equipment 4 of agency's forwarding real-time streaming protocol stream medium data includes:
Receiving unit 410, for receiving the real-time streaming protocol RTSP solicited message of real-time streaming protocol client transmission;Its In, it is carried in the RTSP solicited message and the corresponding target identities mark of destination server of streaming media service is provided;The reality When stream protocol client have client identification;The target identities mark is that the destination server distributes simultaneously by local terminal in advance Storage;
Acquiring unit 420, for obtaining the target identities when finding target identities mark from database Identify corresponding target RTSP response message and target RTP data flow connection;Wherein, it is stored in the database for mentioning For the Servers-all of streaming media service RTSP response message transmitted after the RTSP solicited message for receiving local terminal transmission And RTP data flow connection;
Transmission unit 430 is based on the client identification, by the target RTSP response message and passes through the target The target RTP data that RTP data flow connection receives are sent to the real-time streaming protocol client for sending the RTSP solicited message.
Further, the equipment of agency's forwarding real-time streaming protocol stream medium data further include:
Allocation unit, for sending real-time streaming protocol RTSP request letter to each server for providing streaming media service Breath, and unique identity is distributed for each server, the unique identity based on each server generates every The RTSP URL of a server;
Receiving unit, the RTSP response message sent for receiving each server based on the RTSP solicited message And RTP data.
Further, the equipment of agency's forwarding real-time streaming protocol stream medium data further include:
Incidence relation unit is established, for establishing the corresponding unique identity of each server, each clothes The pass being engaged between RTSP URL of device, the RTSP response message and RTP data flow connection information of each server transmission Connection relationship, and the incidence relation is stored to the database.
Further, acquiring unit 420 is specifically used for: being based on the incidence relation, searches the target identities mark pair The target RTSP response message and target RTP data flow connection answered.
Further, transmission unit 430 is specifically used for:
Default mark is added before the RTP data;Wherein, the default mark includes at least Data Identification and service Device identity, the Data Identification are used to indicate that current data to be RTP data;
Based on the client identification, by the RTP after the target RTSP response message and the addition default mark Data are sent to the real-time streaming protocol client for sending the RTSP solicited message.
Further, the equipment of agency's forwarding real-time streaming protocol stream medium data further include:
Transmission link units are established, the RTP connection request sent for receiving the real-time streaming protocol client device, and Establish RTP data transmission link between the local terminal and the real-time streaming protocol client device;Wherein, the RTP data pass Transmission link is used to transmit the target RTP data to the real-time streaming protocol client device.
Further, the equipment of agency's forwarding real-time streaming protocol stream medium data further include:
Unit is established, for establishing the client identification of the target identities mark and the real-time streaming protocol client Between corresponding relationship;
Data transmission unit receives any server transmission based on the target RTP data flow connection for working as RTP data when, the corresponding relationship based on the unique identity and client identification, by the RTP data received It is sent to the corresponding real-time streaming protocol client of the corresponding client identification of unique identity of the server.
Further, transmission unit 430 is specifically used for: passing through the corresponding RTP number of the real-time streaming protocol client device According to transmission link, RTP data hair to be transmitted corresponding to the unique identity that each RTSP solicited message is carried It send to the real-time streaming protocol client for sending the RTSP solicited message.
Refer to Fig. 5, Fig. 5 be another embodiment of the present invention provides a kind of agency forward real-time streaming protocol stream medium data Equipment schematic diagram.As shown in figure 5, the equipment 5 of agency's forwarding real-time streaming protocol stream medium data of the embodiment includes: place It manages device 50, memory 51 and is stored in the computer program that can be run in the memory 51 and on the processor 50 52.The processor 50 realizes real-time streaming protocol agency's forwarding data of above-mentioned each equipment when executing the computer program 52 Embodiment of the method in step, such as S101 shown in FIG. 1 to S103.Alternatively, the processor 50 executes the computer The function of each unit in above-mentioned each Installation practice, such as the function of unit 410 to 430 shown in Fig. 4 are realized when program 52.
Illustratively, the computer program 52 can be divided into one or more units, one or more of Unit is stored in the memory 51, and is executed by the processor 50, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 52 in the equipment 5 of agency's forwarding real-time streaming protocol stream medium data.For example, the computer program 52 can be divided into receiving unit, acquiring unit and transmission unit, and each unit concrete function is as described above.
The equipment may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that figure 5 be only the example of the equipment 5 of agency's forwarding real-time streaming protocol stream medium data, does not constitute and forwards real-time streaming protocol to agency The restriction of the equipment 5 of stream medium data, may include than illustrating more or fewer components, perhaps combine certain components or Different components.
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the storage inside list of the equipment 5 of agency's forwarding real-time streaming protocol stream medium data Member, such as agency forward the hard disk or memory of the equipment 5 of real-time streaming protocol stream medium data.The memory 51 is also possible to institute State the external storage real-time streaming protocol client of the equipment 5 of agency's forwarding real-time streaming protocol stream medium data, such as the agency Forward the plug-in type hard disk being equipped in the equipment 5 of real-time streaming protocol stream medium data, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, described to deposit Reservoir 51 can also both include it is described agency forwarding real-time streaming protocol stream medium data equipment 5 internal storage unit and also including External storage real-time streaming protocol client.The memory 51 is for storing the computer program and the real-time streaming protocol Other programs and data needed for client.The memory 51, which can be also used for temporarily storing, have been exported or will be defeated Data out.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of agency's forwarding real-time streaming protocol stream medium data characterized by comprising
Receive the real-time streaming protocol RTSP solicited message that real-time streaming protocol client is sent;Wherein, in the RTSP solicited message It carries and the corresponding target identities mark of destination server of streaming media service is provided;The real-time streaming protocol client has client End mark;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
When finding target identities mark from database, obtains the target identities and identify corresponding target RTSP sound Answer message and target RTP data flow connection;Wherein, it is stored in the database for providing all clothes of streaming media service Business device RTSP response message and RTP data flow connection transmitted after the RTSP solicited message for receiving local terminal transmission;
Based on the client identification, connect by the target RTSP response message and by the target RTP data flow connection The target RTP data received are sent to the real-time streaming protocol client for sending the RTSP solicited message.
2. the method as described in claim 1, which is characterized in that the real-time streams association for receiving real-time streaming protocol client and sending Before view RTSP solicited message, further includes:
Real-time streaming protocol RTSP solicited message is sent to each server for providing streaming media service, and is each clothes Business device distributes unique identity, and the unique identity based on each server generates the RTSP of each server URL;
Receive the RTSP response message and RTP data that each server is sent based on the RTSP solicited message.
3. method according to claim 2, which is characterized in that described to receive each server based on RTSP request After RTSP response message and RTP data that information is sent, further includes:
Establish the corresponding unique identity of each server, RTSP URL of each server, each clothes Be engaged in device send RTSP response message and RTP data flow connection between incidence relation, and by the incidence relation store to The database;
It is described when finding target identities mark from database, obtain the target identities and identify corresponding target RTSP response message and target RTP data flow connection include:
Based on the incidence relation, searches the target identities and identify corresponding target RTSP response message and target RTP number It is connected according to stream.
4. method as claimed in claim 3, which is characterized in that it is described to be based on the client identification, by the target RTSP Response message and the target RTP data received by the target RTP data flow connection are sent to the transmission RTSP and ask After the real-time streaming protocol client for seeking information, further includes:
Establish the corresponding relationship between the target identities mark and the client identification of the real-time streaming protocol client;
When receiving the RTP data that any server is sent based on the target RTP data flow connection, based on described in only The RTP data received are sent to the unique of the server by the corresponding relationship of one identity and client identification The corresponding real-time streaming protocol client of the corresponding client identification of identity.
5. the method as described in claim 1, which is characterized in that it is described to be based on the client identification, by the target RTSP Response message and the target RTP data received by the target RTP data flow connection are sent to the transmission RTSP and ask The real-time streaming protocol client for seeking information includes:
Default mark is added before the RTP data;Wherein, the default mark includes at least Data Identification and service body Part mark, the Data Identification are used to indicate that current data to be RTP data;
Based on the client identification, by the RTP data after the target RTSP response message and the addition default mark It is sent to the real-time streaming protocol client for sending the RTSP solicited message.
6. such as method described in any one of claim 1 to 5, which is characterized in that it is described to be based on the client identification, it will be described Target RTSP response message and the target RTP data received by the target RTP data flow connection, which are sent to, sends institute Before the real-time streaming protocol client for stating RTSP solicited message, further includes:
The RTP connection request that the real-time streaming protocol client device is sent is received, and establishes the local terminal and the real-time streams RTP data transmission link between Protocol Client end equipment;Wherein, the RTP data transmission link is used to assist to the real-time streams It discusses client device and transmits the target RTP data.
7. method as claimed in claim 6, which is characterized in that it is described to be based on the client identification, by the target RTSP Response message and the target RTP data received by the target RTP data flow connection are sent to the transmission RTSP and ask The real-time streaming protocol client for seeking information includes:
By the corresponding RTP data transmission link of the real-time streaming protocol client device, by each RTSP solicited message RTP data to be transmitted corresponding to the unique identity of carrying are sent to the real-time streams association for sending the RTSP solicited message Discuss client.
8. a kind of equipment of agency's forwarding real-time streaming protocol stream medium data characterized by comprising
Receiving unit, for receiving the real-time streaming protocol RTSP solicited message of real-time streaming protocol client transmission;Wherein, described It is carried in RTSP solicited message and the corresponding target identities mark of destination server of streaming media service is provided;The real-time streaming protocol Client has client identification;The target identities mark is that the destination server is distributed and stored by local terminal in advance;
Acquiring unit, for when finding target identities mark from database, obtaining the target identities mark pair The target RTSP response message and target RTP data flow connection answered;Wherein, it is stored in the database for providing stream matchmaker The Servers-all of body service RTSP response message and RTP transmitted after the RTSP solicited message for receiving local terminal transmission Data flow connection;
Transmission unit is based on the client identification, by the target RTSP response message and passes through the target RTP data It flows the target RTP data received and is sent to the real-time streaming protocol client for sending the RTSP solicited message.
9. a kind of equipment of agency's forwarding real-time streaming protocol stream medium data, including memory, processor and it is stored in described In memory and the computer program that can run on the processor, which is characterized in that the processor executes the calculating It is realized when machine program such as the step of any one of claim 1 to 7 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201910124155.9A 2019-02-19 2019-02-19 Method and equipment for proxy forwarding of real-time streaming protocol streaming media data Active CN109862438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910124155.9A CN109862438B (en) 2019-02-19 2019-02-19 Method and equipment for proxy forwarding of real-time streaming protocol streaming media data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910124155.9A CN109862438B (en) 2019-02-19 2019-02-19 Method and equipment for proxy forwarding of real-time streaming protocol streaming media data

Publications (2)

Publication Number Publication Date
CN109862438A true CN109862438A (en) 2019-06-07
CN109862438B CN109862438B (en) 2021-05-07

Family

ID=66898312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910124155.9A Active CN109862438B (en) 2019-02-19 2019-02-19 Method and equipment for proxy forwarding of real-time streaming protocol streaming media data

Country Status (1)

Country Link
CN (1) CN109862438B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266802A (en) * 2019-06-24 2019-09-20 深圳市网心科技有限公司 Reverse proxy method of servicing, server, system and medium based on ID identification
CN111294355A (en) * 2020-02-10 2020-06-16 浙江大华技术股份有限公司 Sub-connection creating method, client device and server device
CN111405029A (en) * 2020-03-12 2020-07-10 北京字节跳动网络技术有限公司 Request processing method and device
CN114244908A (en) * 2021-11-05 2022-03-25 浙江蓝卓工业互联网信息技术有限公司 Cross-domain RTSP streaming media transmission method
CN115242760A (en) * 2022-07-20 2022-10-25 深圳市灵镜技术有限公司 WebRTC-based SFU system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050283536A1 (en) * 2004-06-21 2005-12-22 Insors Integrated Communications Real time streaming data communications through a security device
US20050281260A1 (en) * 2004-06-21 2005-12-22 Insors Integrated Communications Methods and program products for mapping a network address translator
CN1968227A (en) * 2006-06-29 2007-05-23 华为技术有限公司 System and method for enabling wireless access gateway to support transparent agent
CN101282356A (en) * 2008-05-26 2008-10-08 张建中 Method, apparatus and system for real-time data transmission
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation
CN104137564A (en) * 2011-12-29 2014-11-05 皇家Kpn公司 Controlled streaming of segmented content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050283536A1 (en) * 2004-06-21 2005-12-22 Insors Integrated Communications Real time streaming data communications through a security device
US20050281260A1 (en) * 2004-06-21 2005-12-22 Insors Integrated Communications Methods and program products for mapping a network address translator
CN1968227A (en) * 2006-06-29 2007-05-23 华为技术有限公司 System and method for enabling wireless access gateway to support transparent agent
CN101282356A (en) * 2008-05-26 2008-10-08 张建中 Method, apparatus and system for real-time data transmission
CN104137564A (en) * 2011-12-29 2014-11-05 皇家Kpn公司 Controlled streaming of segmented content
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266802A (en) * 2019-06-24 2019-09-20 深圳市网心科技有限公司 Reverse proxy method of servicing, server, system and medium based on ID identification
CN111294355A (en) * 2020-02-10 2020-06-16 浙江大华技术股份有限公司 Sub-connection creating method, client device and server device
CN111405029A (en) * 2020-03-12 2020-07-10 北京字节跳动网络技术有限公司 Request processing method and device
CN111405029B (en) * 2020-03-12 2023-06-02 北京字节跳动网络技术有限公司 Request processing method and device
CN114244908A (en) * 2021-11-05 2022-03-25 浙江蓝卓工业互联网信息技术有限公司 Cross-domain RTSP streaming media transmission method
CN115242760A (en) * 2022-07-20 2022-10-25 深圳市灵镜技术有限公司 WebRTC-based SFU system and method
CN115242760B (en) * 2022-07-20 2023-12-26 深圳市灵镜技术有限公司 SFU system and method based on WebRTC

Also Published As

Publication number Publication date
CN109862438B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN109862438A (en) A kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data
US20080005119A1 (en) Remotely updating a user status on a presence server
CN109995710B (en) Local area network equipment management system and method
US20120089677A1 (en) Method and system for providing network services
US20210195268A1 (en) Method and system for preventing a fraudulent video relay
US20040059711A1 (en) Configuration of a flexible infrastructure
CN101990183A (en) Method, device and system for protecting user information
US10693706B2 (en) Method and apparatus of performing simultaneous multi-agent access for command execution through a single client
JP2006279636A (en) Consistency guarantee management system for inter-client communication log
CN105099769B (en) Abnormal operation processing method, equipment and the system of business platform
CN107517227A (en) Session implementation method and device for distributed consensus system
CN104796408A (en) Single-point live login method and single-point live login device
CN104753872A (en) Authentication method, authentication platform, service platform, network elements and system
CN109995807A (en) A kind of management of multimedia equipment system and method
CN109729016A (en) A kind of file transmitting method, equipment and computer readable storage medium
CN107948022A (en) A kind of recognition methods of peer-to-peer network flow and identification device
CN101860804B (en) Accession implementing method and accession implementing system for predefined accession group session
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN112769799B (en) Centralized control equipment, intranet penetration method thereof and storage medium
CN110913406A (en) Access configuration method and device of RCS (remote control system) test server
CN108429760A (en) User based on the service of gateway limit asks tracking
KR20100090089A (en) Method for transmitting and receiving session history in communication system
CN111212253B (en) Monitoring processing method and device in video conference, electronic equipment and storage medium
KR20100060355A (en) Method for generating group messaging session in communication system and system therefor
CN115297179B (en) Data transmission method and device

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
GR01 Patent grant
GR01 Patent grant