CN116761038A - Video on demand method, server, system and storage medium - Google Patents
Video on demand method, server, system and storage medium Download PDFInfo
- Publication number
- CN116761038A CN116761038A CN202310486646.4A CN202310486646A CN116761038A CN 116761038 A CN116761038 A CN 116761038A CN 202310486646 A CN202310486646 A CN 202310486646A CN 116761038 A CN116761038 A CN 116761038A
- Authority
- CN
- China
- Prior art keywords
- media
- server
- node server
- media stream
- invite request
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims description 33
- 238000012546 transfer Methods 0.000 claims description 15
- 230000005540 biological transmission Effects 0.000 abstract description 26
- 238000012544 monitoring process Methods 0.000 description 9
- 230000011664 signaling Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006855 networking Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012806 monitoring device Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- 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/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application discloses a video-on-demand method, a server, a system and a storage medium, wherein the video-on-demand method comprises the following steps: the target node server receives a first Invite request sent by a superior node server of the target node server, wherein the first Invite request carries relevant information of the terminal equipment and relevant information of a media stream sender; responding to a node server corresponding to a media stream sender as a target node server, and establishing media connection between the media server corresponding to the target node server and terminal equipment; and generating a second Invite request and transmitting the second Invite request to the media server, so that the media server transmits video received from the media stream sender to the terminal device over the media connection based on the related information of the terminal device, the second Invite request carrying the related information of the terminal device. By the scheme, video transmission efficiency can be improved.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a video-on-demand method, a server, a system, and a storage medium.
Background
In the projects such as video monitoring networking in the large traffic industry, typical multistage cascade monitoring networking scenes exist, such as urban subway industry station-line network three-stage cascade, railway industry access-region-core three-stage cascade and the like, and as the multistage cascade is carried out, the uppermost stage platform is used for watching video on demand, streaming media data needs to be transmitted upwards layer by layer from the lowermost stage platform, so that the problems of video demonstration clamping and the like in the upper stage are caused, the more networking stages are, and the higher the upper stage video on demand delay is larger.
Disclosure of Invention
The application provides at least one video-on-demand method, a server, a system and a storage medium.
The application provides a video-on-demand method, which comprises the following steps: the target node server receives a first Invite request sent by a superior node server of the target node server, wherein the first Invite request carries relevant information of the terminal equipment and relevant information of a media stream sender; responding to a node server corresponding to a media stream sender as a target node server, and establishing media connection between the media server corresponding to the target node server and terminal equipment; and generating a second Invite request and transmitting the second Invite request to the media server, so that the media server transmits video received from the media stream sender to the terminal device over the media connection based on the related information of the terminal device, the second Invite request carrying the related information of the terminal device.
The application provides a video-on-demand method, which comprises the following steps: the target node server receives a first Invite request sent by a superior node server of the target node server, wherein the first Invite request carries relevant information of the terminal equipment and relevant information of a media stream sender; the target node server responds to the node server corresponding to the media stream sender as the target node server, and establishes media connection between the media server corresponding to the target node server and the terminal equipment; the target node server generates a second Invite request and sends the second Invite request to the media server, wherein the second Invite request carries relevant information of the terminal equipment; the media server transmits video received from the media stream sender to the terminal device through the media connection based on the related information of the terminal device.
The application provides a video-on-demand device, which comprises a request receiving module, a media connection establishing module and a forwarding module, wherein the request receiving module is used for a target node server to receive a first Invite request sent by a superior node server of the target node server, and the first Invite request carries relevant information of terminal equipment and relevant information of a media stream sender; the media connection establishment module is used for responding to the node server corresponding to the media stream sender as a target node server and establishing media connection between the media server corresponding to the target node server and the terminal equipment; the forwarding module is configured to generate a second Invite request and send the second Invite request to the media server, so that the media server sends the video received from the media stream sender to the terminal device through the media connection based on the related information of the terminal device, where the second Invite request carries the related information of the terminal device.
The application provides a node server, which comprises a memory and a processor, wherein the processor is used for executing program instructions stored in the memory so as to realize the video-on-demand method.
The application provides a video-on-demand system, which comprises a plurality of node servers and media servers corresponding to the node servers, wherein the node servers and the media servers are matched to realize the video-on-demand method.
The present application provides a computer readable storage medium having stored thereon program instructions which when executed by a processor implement any of the video-on-demand methods described above.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of an embodiment of the video on demand method of the present application;
FIG. 2 is a flow chart of another embodiment of the video on demand method of the present application;
FIG. 3 is a flow chart of yet another embodiment of the video on demand method of the present application;
FIG. 4 is a schematic diagram of a video on demand apparatus according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating the structure of an embodiment of a node server according to the present application;
FIG. 6 is a schematic diagram illustrating the architecture of one embodiment of a video on demand system in accordance with the present application;
FIG. 7 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The following describes embodiments of the present application in detail with reference to the drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
The GBT28181 standard prescribes an interconnection structure, a communication protocol structure, basic requirements and safety requirements of transmission, exchange and control of information of a video monitoring networking system, and technical requirements of control, transmission flow, protocol interfaces and the like; and a cascading and interconnection networking mode between networking systems is provided, so that information exchange and transmission between upper and lower nodes and the flat nodes are realized.
Referring to fig. 1, fig. 1 is a flow chart of an embodiment of the video on demand method according to the present application.
As shown in fig. 1, the video on demand method provided in the embodiment of the disclosure may include the following steps:
step S101: the target node server receives a first Invite request sent by a superior node server of the target node server.
The Invite request is one of the SIP request messages. The first line consists of the message header and the URI (universal resource identification) of the opposite SIP entity and the SIP version number. The SIP URI is a telephone URI, and is attached to an IP address to indicate a domain of a port through which a peer and an endpoint send and receive SIP messages.
The first Invite request carries information about the terminal device and information about the sender of the media stream. Illustratively, the first Invite request may carry information such as an identifier of the terminal device and/or information of the receiving end, and an identifier of the sender of the media stream.
In some application scenarios, the video-on-demand method may be applied in video monitoring scenarios. In an actual video monitoring system, the user terminal does not interact with the front-end monitoring device directly, but interacts with the monitoring management platform. The media stream receiver (terminal device) is typically a client of the user, the SIP server (node server) is a separate server, the media server is typically a media gateway in the monitoring system, and the media stream sender is a front-end camera. In a video-on-demand scenario, for example, the terminal device may specifically be a video terminal that needs to play the video-on-demand. In other embodiments, the video on demand method may be applied to other non-video monitoring scenes, and the video on demand method may be used as long as video call or video on demand is required.
Step S102: and responding to the node server corresponding to the media stream sender as a target node server, and establishing media connection between the media server corresponding to the target node server and the terminal equipment.
Two channels, one session channel and the other media stream channel, are used in the video-on-demand process, and the media stream channel can be considered as the media connection between the two parties. The session channel is used for establishing a session between devices and transmitting system control commands, and the media stream channel is used for transmitting video and audio data, wherein the video and audio data comprises video data and/or audio data.
The node server corresponding to the media stream sender is the target node server, which refers to the server to which the media stream sender belongs. Illustratively, each node server may correspond to one or more front-end cameras (media stream senders), one for each media stream sender.
Step S103: a second Invite request is generated and sent to the media server.
After sending the second Invite request to the media server, the media server can send video received from the media stream sender to the terminal device over the media connection based on the information about the terminal device. Wherein the second Invite request carries information related to the terminal device. Alternatively, the second Invite request may be the same as the information contained in the first Invite request described above, or part of the information in the first Invite request may be included in the second Invite request. Illustratively, the second Invite request may not include information regarding the sender of the media stream.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand.
In some embodiments, the first Invite request carries a target directory encoding of a node server corresponding to the sender of the media stream. Illustratively, if the node server to which the first Invite request corresponds is the target node server, the target directory code is a directory code of the target node server. The directory codes can be specifically set according to the level of each node server and/or the information of the area and the like. Illustratively, the first n letters of the code for a node server may be abcd, a indicating that the node server is in a province, b indicating that the node server belongs to b city, c indicating that the node server belongs to c-region, and d indicating that the node server belongs to d-street. Of course, the encoding may be performed by means of the hierarchical authority of the node server in the video-on-demand system, in addition to the region, and the directory encoding is not particularly limited as long as it can be used to distinguish each node server. On this basis, the video on demand method may further include the steps of: and determining the target node server as the node server corresponding to the media stream sender in response to the target directory code being the same as the directory code of the target node server. The first Invite request is generated by adding a target directory code into a first-level node server after receiving a third Invite request sent by the terminal equipment, and the directory codes of different node servers are different. The first-level node server may specifically be a node server at the same level as the terminal device or a node server capable of performing a session with the terminal device.
In some application scenarios, the message header field of the third Invite request sent by the terminal device to the node server carries a Subject field, which indicates parameters such as a video source ID, a sender media stream sequence number, a media stream receiver ID, a receiver media stream sequence number, etc. of the on-demand, and an s field "Play" in the SDP message body represents real-time on-demand. Wherein the third Invite request includes the newly added target encoding field. After receiving the third Invite request, the first node server adds the request header extension field through resource judgment, and then transmits the request header extension field into the target directory code. That is, the first node server may store the directory code of the node server corresponding to each media sender, determine the target directory code by querying, and write it into the directory code field. After the first level server determines that the node server corresponding to the media sender is not the first level server, the first Invite request is sent to a lower level server.
In some embodiments, after performing step S11, the following steps may also be performed: and searching the subordinate node servers corresponding to the target directory codes from the subordinate node servers of the target node server in response to the node server corresponding to the media stream sender not being the target node server. The first Invite request is then sent to a subordinate node server corresponding to the target directory code. In other words, by setting the target directory code, when the target node server sends the first Invite request to the lower level, the target directory code does not need to be sent to all the lower node servers, and only needs to be sent to the specific lower node server, so that the data concurrency is reduced.
The step S12 may include the following steps:
in response to the presence of the designated relay server and the designated relay server being a non-target node server, the target node server establishes a media connection between the media server corresponding to the target node and the media server corresponding to the designated relay server and a media connection between the media server corresponding to the designated relay server and the terminal device. Alternatively, the specified relay server may be a terminal device specification. The terminal device stores relevant information of the media server corresponding to each node server, for example, the relevant information includes information such as a position where each media server is located, a bandwidth where the media server sends information, and the like. The shortest transmission path from the media server corresponding to the target server to the terminal device can be determined by the position of each media server, and the efficiency of information transmission and the like can be evaluated according to the information such as bandwidth and the like. The terminal equipment receives information transmission requirements of users and determines a data transmission path based on the requirements and related information of each media server, wherein the transmission path comprises a designated transfer server, one or a plurality of designated transfer servers can be adopted, and media stream transmission is carried out according to the hierarchical relationship of the designated transfer servers. And the transmission path is issued to each node server, so that the subsequent media stream transmission based on the designated transfer server is facilitated. That is, for the target node server, the designated relay server receives the related information of the designated relay server from the upper node. If the target node server is the node server corresponding to the media stream sender, if the designated transfer server exists and the transfer server is not the target node server, the target node server respectively establishes media connection between the media server corresponding to the target node server and the media server corresponding to the designated transfer server and media connection between the designated transfer server and the terminal device. In other words, the transmission process of the media stream is that the media stream sender sends the media stream to the media server corresponding to the target node server, then the media server sends the media stream to the media server corresponding to the transfer server, and then the media server corresponding to the transfer server sends the media stream to the terminal device. The terminal equipment can flexibly set the streaming media transmission path according to actual conditions, and effectively shortens the streaming media transmission path. On this basis, the step S13 may include the steps of:
And generating a first child Invite request and sending the first child Invite request to a media server corresponding to the target node server. The first sub Invite request carries relevant information of a media server corresponding to the designated transfer server. Illustratively, the related information of the media server may include media stream receiver information of the media server. The media stream receiving end information comprises IP, port, media format and other contents of the media stream received by the media server.
In addition, a second child Invite request may be generated and sent to a media server corresponding to the designated relay server. Wherein the second sub Invite request carries information related to the terminal device. The related information of the terminal device may include media stream receiving end information of the media server, for example. The media stream receiving end information comprises IP, port, media format and other contents of the media stream received by the media server. Or the related information of the terminal equipment comprises parameters such as a media stream receiver ID of the terminal equipment, a receiving end media stream serial number and the like.
In some embodiments, if the designated relay server is a first node server or a node server between the first node server and the target node server, the step of establishing media connection between the media server corresponding to the target node and the media server corresponding to the designated relay server and media connection between the media server corresponding to the designated relay server and the terminal device is performed. If the designated transfer server is not the first-level node server and is not the node server between the first-level node server and the target node server, the designated transfer server is directly sent to the terminal equipment by the media server corresponding to the target node server. That is, if the target node server and the node server at the lowest level are not lower than the target node server, the designated transit server is determined to be faulty, and the target node server directly transmits the received media stream to the terminal device.
In some embodiments, before performing the step S12, the method may further include the following steps:
and responding to the node server corresponding to the media stream sender as the target node server, and acquiring the media stream receiving end information of the media server. The media stream receiving end information comprises the IP, port and media format of the media stream received by the media server. Then, the media stream receiver information is transmitted to the media stream sender so that the media stream sender transmits the media stream to the media server based on the media stream receiver information. And the media stream sender sends the media stream receiving end information to the media server according to the media stream receiving end information after receiving the media stream receiving end information sent by the target node server. Wherein the media connection between the media server and the sender of the media stream may be considered to be established without re-establishment each time video-on-demand is performed.
In some embodiments, after sending the media stream receiver information to the media stream sender, the following steps may be further performed: and receiving the first media stream transmitting end information transmitted by the media stream transmitting party. Then, the first media stream sender information is transmitted to the media server, so that the media server identifies the media stream transmitted by the media stream sender through the first media stream sender information. The media server can simultaneously receive the media streams sent by the plurality of media senders, and the media stream corresponding to the video on demand can be determined through the first media stream sender information sent to the media server sender. The first media stream sender information may include one or more of IP, port, media format, SSRC field, etc. of the media stream sent by the media stream sender.
In some embodiments, after the generating and sending the second Invite request to the media server, the following steps may be further performed: and transmitting the second media stream transmitting end information of the media server to the terminal equipment, so that the terminal equipment can identify the media stream transmitted by the media server through the second media stream transmitting end information. The second media stream sender information may include one or more of IP, port, media format, SSRC field, etc. content of the media server sending the media stream.
Referring to fig. 2, fig. 2 is a flowchart of another embodiment of the video on demand method according to the present application.
As shown in fig. 2, the method may include the steps of:
step S201: the target node server receives a first Invite request sent by a superior node server of the target node server.
Wherein the first Invite request carries information about the terminal device and information about the sender of the media stream.
Step S202: and the target node server responds to the node server corresponding to the media stream sender as the target node server, and establishes media connection between the media server corresponding to the target node server and the terminal equipment.
Step S203: the target node server generates a second Invite request and sends the second Invite request to the media server.
The second Invite request carries information about the terminal device.
Step S204: the media server transmits video received from the media stream sender to the terminal device through the media connection based on the related information of the terminal device.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand.
In some embodiments, please refer to fig. 3 for a better understanding of the technical solution provided in this embodiment, and fig. 3 is a flowchart of still another embodiment of the video on demand method of the present application. In fig. 3, the start of the arrow is the execution end of the step, for example, step S1 is the start of transmitting Invite (SDP) is the terminal device, meaning that the step is executed by the terminal device. The target node server may be any node server in fig. 3, where fig. 3 only shows a few node servers, and in a practical application process, more or fewer node servers may be included, which is not limited herein specifically. As shown in fig. 3, the video on demand method provided in this embodiment may further include the following steps:
S1: invite (SDP) is sent.
The Invite (SDP) may be considered a third Invite request. The terminal device sends Invite message to the node A server, the message header field carries a Subject field, which indicates parameters such as video source ID, sender media stream serial number, media stream receiver ID, receiving end media stream serial number, etc. of the on-demand, and s field in SDP message body is 'Play' representing real-time on-demand. The third Invite request has a hierarchical encoding field added thereto.
S2: an Invite (SDP) extension is sent.
After receiving the third Invite request sent by the terminal device, the node A server sends the Invite request to the node B server by judging the extension field of the joining request header through the resource and transmitting the Invite request to the target directory code. The node B server is a subordinate node server of the node A server.
S3: an Invite (SDP) extension is sent.
An Invite (SDP) extension may be a first Invite request. After the node B server Invite request, judging that the target directory code does not belong to the directory code, and forwarding the first Invite request to the node C server.
S4: an Invite request is sent.
And after the C node server receives the first Invite request, judging that the target hierarchy is reached through the target directory code. The C node server sends an Invite request to the C node media server. The C node media server is a media server corresponding to the C node server.
S5: send 200OK (SDP).
The C node media server receives Invite, replies 200OK response, carries SDP message body, and describes IP, port, media format, etc. of media stream received by the media server in the message body. That is, the message body may carry the information of the media stream receiving end of the media server. That is, the manner of obtaining the information of the media stream receiving end of the media server may be obtained from the information sent by the receiving media server. The media stream receiver information is sent to the media stream sender so that the media stream sender sends the media stream to the media server based on the media stream receiver information.
S6: invite (SDP) is sent.
After receiving the 200OK response returned by the C node media server, the C node server sends an Invite request to the media stream sender, wherein the Invite request carries a 200OK response message body replied by the media server in S5, the S field is 'Play' representing real time on demand, the y field is added to describe SSRC value, and the f field describes media parameters. The media stream sender may be considered a device access node.
S7: send 200OK (SDP).
After receiving the Invite request from the C node server, the media stream sender replies a 200OK response, carrying an SDP message body, in which contents such as IP, port, media format, SSRC field, etc. of the media stream sent by the media stream sender are described. I.e. the content of IP, port, media format, SSRC fields, etc. of the sender of the media stream of the device access node. The message body in the 200OK response may carry the media stream sender information of the media sender.
S8: an ACK (SDP) is sent.
After receiving the 200OK response returned by the media stream sender, the C node server sends an ACK request to the C node media server, wherein the request carries a 200OK response message body replied by the media stream sender in the message 7, and the Invite session establishment process with the C node media server is completed. And the C node server receives the first media stream transmitting end information transmitted by the media stream transmitting party. The first media stream sender information is sent to the media server, so that the media server identifies the media stream sent by the media stream sender through the first media stream sender information.
S9: and sending the ACK.
And after receiving the 200OK response returned by the media stream sender, the C node server sends an ACK request to the media stream sender, wherein the request does not carry a message body, and the Invite session establishment process with the access node media stream sender is completed.
S10, transmitting Invite (SDP).
After the three-way call control is completed, the C node server establishes media connection between the C node media server and the terminal equipment through a B2BUA proxy mode. And constructing an SDP message body, and forwarding the SDP message body to the C node media server, wherein the SDP message body carries the related information of the terminal equipment.
S11: send 200OK (SDP).
The C node media server receives the Invite request, replies a 200OK response, carries an SDP message body, and describes the IP, port, media format, SSRC value and other contents of the media stream sent by the media server in the message body.
S12: send 200OK (SDP).
And after receiving the 200OK response returned by the regional media server, the C node server forwards the response received in S11 to the B node server. And the node C server transmits the second media stream transmitting end information of the media server to the terminal equipment in a layer-by-layer transmission mode, so that the terminal equipment can identify the media stream transmitted by the media server through the second media stream transmitting end information.
S13: and sending the ACK.
The C node server sends an ACK request to the media server, and the request does not carry a message body.
S14: send 200OK (SDP).
After receiving the 200OK response returned by the C node server, the B node server forwards the response received in S12 to the A node server.
S15, sending ACK.
The node B server sends an ACK request to the node C server, and the request does not carry a message body.
S16: send 200OK (SDP).
After receiving the 200OK response returned by the node B server, the node A server forwards the response received in the step S14 to the terminal equipment.
S17: and sending the ACK.
The node A server sends an ACK request to the node B server, and the request does not carry a message body.
S18: and sending the ACK. After receiving the 200OK response returned by the A node server, the terminal equipment sends an ACK request to the regional node SIP server, the request does not carry a message body, and the Invite session establishment process with the C node media server is completed, so that the cross-level real-time on-demand flow is completed.
S19: BYE (SDP) is sent.
And the terminal equipment sends BYE information to the A node server, the information weight carries the video-on-demand source ID and the hierarchical code, and the cross-level streaming session established by S1, S16 and S18 is disconnected.
S20: a 200OK is sent.
The node A server replies a 200OK response after receiving the BYE message, and the session is disconnected;
s21: BYE (SDP) is sent.
And after receiving the BYE message, the A node server replies a 200OK response and forwards the BYE message to the B node server.
S22: a 200OK is sent.
The node B server replies a 200OK response after receiving the BYE message, and the session is disconnected.
S23: BYE (SDP) is sent.
The node B server replies a 200OK response after receiving the BYE message, and forwards the message to the node C server.
S24: a 200OK is sent.
After receiving the BYE message, the C node server replies a 200OK response, and the session is disconnected.
S25: BYE (SDP) is sent.
After receiving the BYE message, the C node server replies a 200OK response, sends the BYE message to the C node media server, and disconnects the Invite session with the media stream receiver established at 10, 11, 13.
S26: a 200OK is sent.
After receiving the BYE message, the C node server replies a 200OK response, and the session is disconnected.
S27: and sending BYE.
After receiving the reply 200OK response, the C node server sends BYE message to the access node, and disconnects Invite session with media stream sender established by 6, 7 and 9.
S28: a 200OK is sent.
After receiving BYE message, media stream sender replies 200OK response, and session is disconnected.
The next time the video on demand needs to be performed again, the session is re-established. As shown in fig. 3, after step S9, the media sender may send the on-demand real-time media stream to the C-node media server, and after step S18, the C-node media server may send the on-demand real-time media stream to the terminal device. The designated transit server may be a node a server, a node B server, and a node C server, where if the node C media server is already the lowest-level server and the designated transit server is another node server other than A, B, C, the node C media server directly sends the on-demand media stream to the terminal device. The target node server may be any of the node servers described above.
The method realizes cross-level video on demand based on national standard signaling, can flexibly specify stream media on demand, reduces stream media transmission times and shortens paths between monitoring networking systems, realizes nearby stream taking and shortest path stream taking of videos, and is beneficial to shortening video on demand on-stream delay.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a vod apparatus according to an embodiment of the application. The first image information extraction device 40 includes a request receiving module 41, a media connection establishing module 42 and a forwarding module 43, where the request receiving module 41 is configured to receive, by a target node server, a first Invite request sent by a higher node server of the target node server, where the first Invite request carries relevant information of a terminal device and relevant information of a sender of a media stream; the media connection establishment module 42 is configured to establish media connection between a media server corresponding to a target node server and a terminal device in response to the node server corresponding to the media stream sender being the target node server; the forwarding module 43 is configured to generate a second Invite request and send the second Invite request to the media server, so that the media server sends, based on the related information of the terminal device, the video received from the media stream sender to the terminal device through the media connection, where the second Invite request carries the related information of the terminal device.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand. The functions of each module may be described in embodiments of the video on demand method, and are not described herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a node server according to the present application. The node server 50 comprises a memory 51 and a processor 52 for executing program instructions stored in the memory to implement the video-on-demand method described above. In one particular implementation scenario, node server 50 may include, but is not limited to: the monitoring device, microcomputer, server, and the node server 50 may also include mobile devices such as a notebook computer, a tablet computer, and the like, which are not limited herein.
In particular, the processor 52 is configured to control itself and the first memory 61 to implement the steps of any of the video on demand method embodiments described above. The processor 52 may also be referred to as a CPU (Central Processing Unit ). The processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general purpose first processor, a digital signal first processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The general first processor may be a micro first processor or the first processor may be any conventional first processor or the like. In addition, the processor 52 may be commonly implemented by an integrated circuit chip.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand. The functions of each module may be described in embodiments of the video on demand method, and are not described herein.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a video on demand system according to an embodiment of the present application. As shown in fig. 6, the video on demand system 1 includes a plurality of node servers 50 and a media server 60 corresponding to each node server 50. Wherein each node server 50 and each media server 60 cooperate to implement the video-on-demand method described above.
The number may be two or more. Each node server 50 is arranged in cascade, and fig. 6 shows a case where two node servers 50 are included.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand. The functions of each module may be described in embodiments of the video on demand method, and are not described herein.
In other embodiments, the video on demand system may further include a terminal device and a media stream sender. The interaction manner between the terminal device and each node server, and the media server may be described with reference to the above-mentioned on-demand method embodiment, which is not described herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a computer readable storage medium according to the present application. The computer readable storage medium 70 stores program instructions 71 executable by the processor, the program instructions 71 for implementing the steps in any of the video on demand method embodiments described above.
According to the scheme, after the target node server receives the first Invite request sent by the upper node server, if the node server corresponding to the media stream sender is the target node server, media connection between the media server corresponding to the target node server and the terminal equipment is established, and then related information of the terminal equipment is sent to the media server, so that the target node server can conveniently send media streams such as videos to the terminal equipment directly through the media connection, and the video transmission speed is improved instead of uploading through a conventional hierarchy. In addition, the problem that different manufacturers use different protocols can be solved to a certain extent by using national standard signaling to carry out video-on-demand. The functions of each module may be described in embodiments of the video on demand method, and are not described herein.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Claims (11)
1. A video-on-demand method, comprising:
the method comprises the steps that a target node server receives a first Invite request sent by a superior node server of the target node server, wherein the first Invite request carries relevant information of terminal equipment and relevant information of a media stream sender;
responding to the node server corresponding to the media stream sender as the target node server, and establishing media connection between the media server corresponding to the target node server and the terminal equipment;
generating a second Invite request and transmitting the second Invite request to the media server, so that the media server transmits video received from the media stream sender to the terminal device through the media connection based on the related information of the terminal device, the second Invite request carrying the related information of the terminal device.
2. The method of claim 1, wherein the first Invite request carries a target directory code of a node server corresponding to the media stream sender, the method further comprising:
determining that the target node server is the node server corresponding to the media stream sender in response to the target directory code being the same as the directory code of the target node server;
The first Invite request is generated by adding the target directory code into the first-level node server after receiving a third Invite request sent by the terminal equipment, and the directory codes of different node servers are different.
3. The method of claim 2, wherein after the target node server receives the first Invite request sent by a superior node server of the target node server, the method further comprises:
searching a lower node server corresponding to the target directory code from all lower node servers of the target node server in response to the node server corresponding to the media stream sender not being the target node server;
and sending the first Invite request to a subordinate node server corresponding to the target directory code.
4. The method according to claim 1, wherein the establishing, in response to the node server corresponding to the media stream sender being the target node server, a media connection between the media server corresponding to the target node server and the terminal device includes:
in response to the presence of a designated relay server and the designated relay server being not the target node server, the target node server establishing a media connection between the media server and a media server corresponding to the designated relay server and a media connection between a media server corresponding to the designated relay server and the terminal device;
The generating and sending a second Invite request to the media server, comprising:
generating a first sub Invite request, and sending the first sub Invite request to a media server corresponding to the target node server, wherein the first sub Invite request carries related information of the media server corresponding to the designated transfer server; and generating a second sub-Invite request, and sending the second sub-Invite request to a media server corresponding to the designated transfer server, wherein the second sub-Invite request carries relevant information of the terminal equipment.
5. The method according to any of claims 1-4, wherein prior to said establishing a media connection of a media server corresponding to said target node server with said terminal device, the method further comprises:
responding to the node server corresponding to the media stream sender as the target node server, acquiring media stream receiving end information of the media server, wherein the media stream receiving end information comprises an IP, a port and a media format of the media server for receiving the media stream;
and sending the media stream receiving end information to the media stream sender, so that the media stream sender sends the media stream to the media server based on the media stream receiving end information.
6. The method of claim 5, wherein after said sending said media stream receiver information to said media stream sender, said method further comprises:
receiving first media stream transmitting end information transmitted by the media stream transmitting party;
and sending the first media stream sending end information to the media server so that the media server can identify the media stream sent by the media stream sender through the first media stream sending end information.
7. The method of claim 1, wherein after the generating and sending the second Invite request to the media server, the method further comprises:
and transmitting the second media stream transmitting end information of the media server to the terminal equipment so that the terminal equipment can identify the media stream transmitted by the media server through the second media stream transmitting end information.
8. A video-on-demand method, the method comprising:
the method comprises the steps that a target node server receives a first Invite request sent by a superior node server of the target node server, wherein the first Invite request carries relevant information of terminal equipment and relevant information of a media stream sender;
The target node server responds to the node server corresponding to the media stream sender as the target node server, and establishes media connection between the media server corresponding to the target node server and the terminal equipment;
the target node server generates a second Invite request and sends the second Invite request to the media server, wherein the second Invite request carries relevant information of the terminal equipment;
the media server transmits video received from the media stream sender to the terminal device through the media connection based on the related information of the terminal device.
9. A node server comprising a memory and a processor for executing program instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A video-on-demand system comprising a plurality of node servers and media servers corresponding to each of the node servers, each of the node servers and each of the media servers cooperating to implement the method of claim 8.
11. A computer readable storage medium having stored thereon program instructions, which when executed by a processor, implement the method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310486646.4A CN116761038A (en) | 2023-04-28 | 2023-04-28 | Video on demand method, server, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310486646.4A CN116761038A (en) | 2023-04-28 | 2023-04-28 | Video on demand method, server, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116761038A true CN116761038A (en) | 2023-09-15 |
Family
ID=87956073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310486646.4A Pending CN116761038A (en) | 2023-04-28 | 2023-04-28 | Video on demand method, server, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116761038A (en) |
-
2023
- 2023-04-28 CN CN202310486646.4A patent/CN116761038A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101320908B1 (en) | How to Convert Between Unicast Sessions and Multicast Sessions | |
CN101433036B (en) | Method and system of forwarding capability information of user equipment in internet protocol multimedia subsystem network | |
KR101104713B1 (en) | Method and application server for providing early media service based on session establishment protocol using early session | |
US8135845B2 (en) | Terminal unit for handling session on the basis of session initiation protocol, method of transmitting and receiving thereof | |
EP2404424B1 (en) | Capability query handling in a communication network | |
US7953123B2 (en) | Method and system for controlling the establishment of communications channels for allowing transmission of multimedia information | |
WO2008044969A1 (en) | Ims surrogate registration | |
US8831018B2 (en) | Media conversion device for interconnecting communication terminal devices with media converted and a method therefor | |
CN103986710B (en) | A kind of method, apparatus and system of message transmission | |
US20240292363A1 (en) | Information transmission method and apparatus | |
US20150074284A1 (en) | Providing push to all (pta) service | |
US11418635B2 (en) | Method of dynamic selection, by a caller, from a plurality of terminals of a callee | |
KR100957633B1 (en) | Method for transmitting multimedia message through IMS network and terminal for same | |
CN116761038A (en) | Video on demand method, server, system and storage medium | |
CN103828322B (en) | Media data transmission method and device | |
US8606243B2 (en) | Mobile network system and guidance message providing method | |
CN107786836B (en) | Method and device for realizing audio and video session service | |
KR20120050738A (en) | Multimedia session transfer control system and control method the same | |
CN101459626B (en) | Message transmission control method for IP multimedia subsystem | |
CN113098864B (en) | Data transmission system | |
CN115865873B (en) | Method and apparatus for displaying group ringing media in local area network | |
EP2188964A1 (en) | Method for establishing a call in a communication network | |
CN101800948B (en) | Method, device and system for implementing call deflection service | |
CN101742005A (en) | Method, system and network device for realizing conference segmentation services | |
CN105099990B (en) | Media recording method, device and system |
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 |