Media stream pushing method and related equipment

By introducing signaling service function units, media service function units and client digital twins into the server, directly pushing media streams, the problem of low media stream push efficiency in the monitoring system is solved, and fast and reliable media stream push is achieved.

CN119232792APending Publication Date: 2024-12-31BEIJING WELLINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411328885.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the monitoring system defined by the GB/T 28181 standard, since the client, session initial protocol signaling server and media server are independent devices, cumbersome security verification is required during the media stream push process, which is low efficiency and lacks reliability and efficiency media stream push method.

Method used

By introducing signaling service function units, media service function units and client digital twins into the server, the client digital twin receives the request message and sends a media stream identifier to the media service function units and signaling service function units to obtain and Push media stream data, omit trust verification process, and realize fast and reliable media stream push.

Benefits of technology

Through this method, the interaction between the client digital twin, the media service function unit and the signaling service function unit does not require trust verification, reducing the media stream push time and achieving faster and more reliable media stream data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232792A_ABST
    Figure CN119232792A_ABST
Patent Text Reader

Abstract

The invention relates to a media stream pushing method and related equipment, and relates to the technical field of information. The method is applied to a server, and the server comprises a signaling service function unit, a media service function unit and a client digital twin body. The method comprises the following steps: the client digital twin receives a first request message of the client; the first request message is used for the client to request data of a media stream from the server; the client digital twin sends a media stream identifier of the media stream to the media service function unit and the signaling service function unit to obtain data of the media stream; the client digital twin sends data of the media stream to the client. According to the method and the device, the media stream pushing process can be efficiently and reliably completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a media stream pushing method and related equipment. Background Art

[0002] The monitoring system defined in the GB / T 28181 standard includes: a client, a Session Initiation Protocol (SIP) signaling server, and a media server. Through the interaction between the three devices in the monitoring system, and the interaction between the Session Initiation Protocol signaling server, the media server, and the monitoring device, it is possible to achieve: the monitoring device pushes the media stream data to the client.

[0003] Currently, since the client, session initiation protocol signaling server and media server are independent devices, security verification is required before the three devices interact to ensure device and data security during the push process.

[0004] However, the existence of security verification makes the interactive process involved in pushing media streams more complicated; there is a problem of low efficiency in pushing media streams; and there is currently a lack of a reliable and efficient method for pushing media streams. Summary of the invention

[0005] The present application provides a media stream push method and related equipment, which can efficiently and reliably complete the process of media stream push.

[0006] In the first aspect, the present application provides a media stream push method, which is applied to a server, and the server includes a signaling service functional unit, a media service functional unit and a client digital twin; the method includes: the client digital twin receives a first request message from the client; the first request message is used by the client to request media stream data from the server; the client digital twin obtains the media stream data by sending the media stream identifier of the media stream to the media service functional unit and the signaling service functional unit; the client digital twin sends the media stream data to the client.

[0007] In some implementations, after the client digital twin sends the media stream identifier of the media stream requested by the client to the media service functional unit and the signaling service functional unit, the method also includes: the signaling service functional unit sends a second request message to the media stream push device corresponding to the media stream; the second request message is used to instruct the media stream push device to send the data of the media stream to the media service functional unit; the second request message includes the media stream identifier; the media service functional unit receives the data of the media stream sent by the media stream push device based on the media stream identifier, and sends the data of the media stream to the client digital twin.

[0008] In some other implementations, the method also includes: the client digital twin sends the twin identifier of the client digital twin to the media service functional unit; the media service functional unit sends the data of the media stream to the client digital twin, including: the media service functional unit pushes the data of the media stream to the client twin corresponding to the twin identifier.

[0009] In some other implementations, the method also includes: the media service function unit establishes a correspondence between the media stream identifier and the twin identifier; the media service function unit pushes the data of the media stream to the client twin corresponding to the twin identifier, including: the media service function unit determines the twin identifier corresponding to the media stream identifier of the media stream based on the correspondence; and pushes the data of the media stream to the client twin corresponding to the twin identifier.

[0010] In some other implementations, the first request message includes the device identifier of the media stream push device; the device identifier is obtained by the client querying the registration information stored in the signaling service functional unit; the registration information includes the device identifiers of multiple media stream push devices; the signaling service functional unit sends a second request message to the media stream push device corresponding to the media stream, including: the signaling service functional unit sends the second request message to the media stream push device based on the device identifier.

[0011] In some other implementations, the registration information is obtained in the following manner: the signaling service function unit receives a registration request message sent by the media stream push device; the registration request message includes the device identification of the media stream push device; the signaling service function unit performs registration authentication on the media stream push device based on the registration request message; if the registration authentication of the media stream push device is passed, the signaling service function unit adds the device identification of the media stream push device to the registration information and sends a registration response message to the media stream push device; the registration response message is used to prompt that the media stream push device has been successfully registered.

[0012] In some other implementations, the second request message also includes at least one of the following: the IP address of the media service function unit, the media port of the media service function unit, and the media format supported by the media port; the media stream data is sent to the media service function unit by the media stream push device based on the IP address of the media service function unit, the media port of the media service function unit, at least one of the media formats supported by the media port, and the media stream identifier.

[0013] In some other implementations, before the client digital twin receives the first request message from the client, the method further includes: the server creates a client digital twin corresponding to the client.

[0014] In some other implementations, the first request message also includes a network connection identifier of the client, and the client digital twin sends the media stream data to the client, including: the client digital twin pushes the media stream data to the client based on the network connection identifier.

[0015] In the second aspect, the present application provides a server, which includes: the device includes a signaling service functional unit, a media service functional unit and a client digital twin; the client digital twin is used to receive a first request message from the client; the first request message is used by the client to request the server for media stream data; the client digital twin is used to obtain the media stream data by sending the media stream identifier of the media stream to the media service functional unit and the signaling service functional unit; the client digital twin is also used to send the media stream data to the client.

[0016] In some implementations, after the client digital twin sends the media stream identifier of the media stream requested by the client to the media service functional unit and the signaling service functional unit; the signaling service functional unit is used to send a second request message to the media stream push device corresponding to the media stream; the second request message is used to instruct the media stream push device to send the data of the media stream to the media service functional unit; the second request message includes the media stream identifier; the media service functional unit is used to receive the data of the media stream sent by the media stream push device based on the media stream identifier, and send the data of the media stream to the client digital twin.

[0017] In some other implementations, the client digital twin is also used to send the twin identifier of the client digital twin to the media service functional unit; the media service functional unit is also used to push the data of the media stream to the client twin corresponding to the twin identifier.

[0018] In other implementations, the media service functional unit is also used to establish a correspondence between the media stream identifier and the twin identifier; the media service functional unit is also used to determine the twin identifier corresponding to the media stream identifier of the media stream based on the correspondence; and push the data of the media stream to the client twin corresponding to the twin identifier.

[0019] In some other implementations, the first request message includes the device identifier of the media stream push device; the device identifier is obtained by the client querying the registration information stored in the signaling service functional unit; the registration information includes the device identifiers of multiple media stream push devices; the signaling service functional unit is used to send the second request message to the media stream push device based on the device identifier.

[0020] In some other implementations, the signaling service functional unit is used to receive a registration request message sent by a media stream push device; the registration request message includes a device identifier of the media stream push device; the signaling service functional unit is used to register and authenticate the media stream push device based on the registration request message; the signaling service functional unit is used to add the device identifier of the media stream push device to the registration information and send a registration response message to the media stream push device if the registration authentication of the media stream push device is passed; the registration response message is used to prompt that the media stream push device has been successfully registered.

[0021] In some other implementations, the second request message also includes at least one of the following: the IP address of the media service function unit, the media port of the media service function unit, and the media format supported by the media port; the media stream data is sent to the media service function unit by the media stream push device based on the IP address of the media service function unit, the media port of the media service function unit, at least one of the media formats supported by the media port, and the media stream identifier.

[0022] In other implementations, the server is used to create a client digital twin corresponding to the client.

[0023] In some other implementations, the first request message also includes a network connection identifier of the client; and the client digital twin is used to push the data of the media stream to the client based on the network connection identifier.

[0024] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory for storing instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method described in any possible implementation manner in the first aspect.

[0025] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon; when the computer program instructions are executed by a server, the server implements the method described in any possible implementation manner in the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product, comprising a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code runs in a server, a processor in the server implements the method described in any possible implementation method in the first aspect.

[0027] Based on any of the first to fifth aspects above, the present application has at least the following beneficial effects:

[0028] In the present application, the client digital twin receives the first request message of the client; the first request message is used for the client to request the data of the media stream from the server; the client digital twin obtains the data of the media stream by sending the media stream identifier of the media stream to the media service function unit and the signaling service function unit; the client digital twin sends the data of the media stream to the client. Since the client twin, the media service function unit and the signaling service function unit are all units in the server, there is no mutual trust problem in the interaction between the client twin, the media service function unit and the signaling service function unit. Therefore, the trust verification process between the client twin, the media service function unit and the signaling service function unit can be omitted to reduce the time required for the media stream push. In this way, by including a server including a client twin, a media service function unit and a signaling service function unit, it is possible to more quickly and reliably send the data of the media stream to the client.

[0029] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0031] Figure 1 A schematic diagram of the architecture of a media stream push system provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of the structure of a server 102 provided in an embodiment of the present application;

[0033] Figure 3 A flowchart of a media stream push method provided in an embodiment of the present application;

[0034] Figure 4 Another flowchart of the media stream push method provided in the embodiment of the present application;

[0035] Figure 5 Another flowchart of the media stream push method provided in the embodiment of the present application;

[0036] Figure 6 Another flowchart of the media stream push method provided in the embodiment of the present application;

[0037] Figure 7 A schematic diagram of the structure of a media stream push device provided in an embodiment of the present application;

[0038] Figure 8 This is another structural diagram of the media stream pushing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0041] It should also be understood that the term “comprising” indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or components.

[0042] "And / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0043] The monitoring system defined in the GB / T 28181 standard includes: a client, a Session Initiation Protocol (SIP) signaling server, and a media server. Through the interaction between the three devices in the monitoring system, and the interaction between the Session Initiation Protocol signaling server, the media server, and the monitoring device, it is possible to achieve: the monitoring device pushes the media stream data to the client.

[0044] Currently, since the client, session initiation protocol signaling server and media server are independent devices, security verification is required before the three devices interact to ensure device and data security during the push process.

[0045] However, the existence of security verification makes the interactive process involved in pushing media streams more complicated; there is a problem of low efficiency in pushing media streams; and there is currently a lack of a reliable and efficient method for pushing media streams.

[0046] Based on this, an embodiment of the present application provides a media stream push method, which is applied to a server, and the server includes a signaling service function unit, a media service function unit, and a client digital twin; the method includes: the client digital twin receives a first request message from the client; the first request message is used by the client to request the data of the media stream from the server; the client digital twin obtains the data of the media stream by sending the media stream identifier of the media stream to the media service function unit and the signaling service function unit; the client digital twin sends the data of the media stream to the client. Since the client twin, the media service function unit, and the signaling service function unit are all units in the server, there is no mutual trust problem in the interaction between the client twin, the media service function unit, and the signaling service function unit. Therefore, by including a server including a client twin, a media service function unit, and a signaling service function unit, it is possible to more quickly and reliably send media stream data to the client.

[0047] like Figure 1 , which is a schematic diagram of the architecture of a media stream push system provided in an embodiment of the present application, including a client 101 , a server 102 , and a media stream push device 103 .

[0048] The client 101 is used to send a media stream acquisition request to the server 102 to acquire media stream data.

[0049] The server 102 is used to receive the media stream server sent by the client 101 ; or to obtain the media stream data from the media stream push device 103 and send the media stream data to the client 101 .

[0050] It should be understood that the server 102 may include a signaling service functional unit, a media service functional unit, and a client digital twin.

[0051] In some embodiments, the signaling service functional unit, the media service functional unit, and the client digital twin may be virtual units that may be generated by a processor, a memory, and a computer program in the server 102 .

[0052] In some embodiments, the signaling service functional unit, the media service functional unit and the client digital twin may be physical units installed in the server 102, and the server 102 may perform calling, controlling and managing operations on the signaling service functional unit, the media service functional unit and the client digital twin through a processor, a memory and a computer program.

[0053] The media stream push device 103 is used to send the media stream data to the server 102 , so that the server 102 can send the media stream data to the client 101 .

[0054] For example, Figure 2 As shown, it is a structural diagram of a server 102 provided in an embodiment of the present application, including: a signaling service function unit 201, a media service function unit 202 and a client digital twin 203.

[0055] The signaling service function unit 201 is used to send a second request message to the media stream pushing device to request the media stream pushing device to send the media stream data to the media service function unit 202 .

[0056] In some embodiments, the signaling service function unit 201 may include at least one of the following: a query interface, a control interface, a device registration interface, a signaling interface, and a signaling port. The query interface is used by the client to obtain the device identification of the media stream push device. The device registration interface is used for the media stream push device to register the device on the server so that the device identification of the media stream push device can be stored in the signaling service function unit 201. The signaling interface is used to implement the signaling interaction between the control interface and the media stream push device; or to implement the signaling interaction between the device registration interface and the media stream push device. The signaling port is used to receive or send signaling.

[0057] The media service function unit 202 is used to receive media stream data sent by a media stream push device; or to send media stream data to a client digital twin 203.

[0058] In some embodiments, the media service function unit 202 may include at least one of the following: a subscription publishing interface, a query interface, a media interface, and a media port. Among them, the subscription publishing interface is used for the client digital twin 203 to subscribe to the media stream (that is, the client digital twin 203 requests the media stream data from the media server, and the media service function unit 202 can establish a correspondence between the twin identifier of the client digital twin 203 and the media stream identifier based on this, so as to accurately push the media stream). The query interface is used for other units to obtain information such as the IP, port, and supported media modes of the media server. The media interface is used to realize the interaction between the media stream push device and the client digital twin 203. The media port is used to receive the media stream data sent by the media push device. For example, the media push device sends the media stream data to the media service function unit 202 based on the port number corresponding to the media port.

[0059] The client digital twin 203 is used to receive a first request message sent by the client, where the first request message is used to request media stream data from the server; or to receive media stream data sent by the media service function unit 202; or to send media stream data to the client.

[0060] In some embodiments, the client digital twin 203 may include a client interface. The client interface is used to implement interaction between the media service function unit 202 and the client, such as transmission of media stream data.

[0061] In some embodiments, the server 102 may also include a twin management interface for generating a twin corresponding to the client.

[0062] The following is an example of the present application. Figure 1 The media stream pushing method of the server 102 is introduced in detail.

[0063] like Figure 3 As shown, it is a flow chart of the media stream push method provided in the embodiment of the present application, including S301-S303:

[0064] S301. The client digital twin receives a first request message from the client.

[0065] The first request message is used by the client to request media stream data from the server.

[0066] It should be understood that the client digital twin is a virtual entity of the client in the server. The client digital twin receives the first request message of the client, which can trigger the server to send a service corresponding to the media stream data to the client.

[0067] In some embodiments, before the client digital twin receives the first request message from the client, the method further includes: the server creates a client digital twin corresponding to the client.

[0068] S302. The client digital twin obtains media stream data by sending the media stream identifier of the media stream to the media service function unit and the signaling service function unit.

[0069] It should be understood that there may be multiple media streams that the client can obtain; the media stream identifier of the media stream is used to indicate the media stream that the client expects to obtain. Based on the media stream identifier, the media service function unit and the signaling service function unit can determine which of the multiple media streams the client expects to obtain. That is, the media service function unit and the signaling service function unit can provide support for the service of pushing the media stream to the client based on the media stream identifier, so that the client can accurately and reliably obtain the data of the media stream.

[0070] S303: The client digital twin sends media stream data to the client.

[0071] It should be understood that since the client digital twin is the digital twin corresponding to the client in the server, the data of the media stream that the client expects to obtain can be accurately sent to the client through the client data twin.

[0072] It should be understood that since the client twin, the media service functional unit and the signaling service functional unit are all units in the server, there is no mutual trust problem in the interaction between the client twin, the media service functional unit and the signaling service functional unit. Therefore, through the server including the client twin, the media service functional unit and the signaling service functional unit, it is possible to send media stream data to the client more quickly and reliably.

[0073] In some embodiments, the first request message also includes a network connection identifier of the client, and the client digital twin sends media stream data to the client, which is achieved in the following way: the client digital twin pushes the media stream data to the client based on the network connection identifier.

[0074] It should be understood that the network connection identifier of the client can enable the client digital twin to accurately find the client in the network, thereby being able to push media stream data to the client more accurately.

[0075] In some embodiments, the signaling service functional unit may be a session initiation protocol (SIP) signaling service functional unit.

[0076] In some embodiments, the media stream pushing device may be referred to as a monitoring device.

[0077] In some embodiments, the server may be a Linux server or a Windows server.

[0078] In some embodiments, a server, a client, and a media stream push device including a client twin, a media service functional unit, and a signaling service functional unit can implement media stream push through the interactive process defined in the GB / T 28181 standard.

[0079] Combination Figure 3 Examples of Figure 4 As shown, after the client digital twin sends the media stream identifier of the media stream requested by the client to the media service function unit and the signaling service function unit, the media stream push method further includes S401-S403:

[0080] S401. The signaling service function unit sends a second request message to a media stream pushing device corresponding to a media stream.

[0081] The second request message is used to instruct the media stream push device to send the media stream data to the media service function unit. The second request message includes a media stream identifier.

[0082] It should be understood that since the second request message is used to instruct the media stream push device to send the media stream data to the media service function unit, by sending the second request message to the media stream push device, the media stream push device can send the media stream data to the media service function unit. Thus, the server can send the media stream data to the client, so that the client can obtain the desired media stream data.

[0083] In some embodiments, the first request message includes a device identifier of a media stream push device; the device identifier is obtained by the client querying registration information stored in the signaling service function unit; the registration information includes device identifiers of multiple media stream push devices.

[0084] In some embodiments, the signaling service function unit sends the second request message to the media stream push device corresponding to the media stream, which is implemented in the following manner: the signaling service function unit sends the second request message to the media stream push device based on the device identifier.

[0085] It should be understood that the first request message includes the device identifier of the media stream pushing device, which enables the signaling service function unit to determine the device identifier of the media stream pushing device corresponding to the media stream data that the client expects to obtain.

[0086] It should be understood that the registration information stored in the signaling service functional unit includes the device identifiers of multiple media stream push devices, and the client can send a first request message carrying the device identifier, so that the signaling service functional unit can determine the media stream push device corresponding to the media stream that the client expects to obtain from the multiple media stream push devices. Furthermore, it can be ensured that the signaling service functional unit accurately sends the second request message to the media stream push device corresponding to the media stream data that the client expects to obtain.

[0087] Exemplarily, the signaling service function unit can determine the network identifier of the media stream push device based on the device identifier of the media stream push device; sending the second request message based on the network identifier can reliably implement the signaling service function unit sending the second request message to the media stream push device corresponding to the media stream.

[0088] In some embodiments, the second request message also includes at least one of the following: an IP address of the media service function unit, a media port of the media service function unit, and a media format supported by the media port.

[0089] In some embodiments, the media stream data is sent to the media service function unit by the media stream push device based on the IP address of the media service function unit, the media port of the media service function unit, at least one of the media formats supported by the media port, and the media stream identifier.

[0090] It should be understood that the address of the media service function unit can be determined based on the IP address of the media service function unit; based on the media port, the port that needs to receive the media stream data from the media service function unit can be determined; and the format of the media stream data supported by the media service function unit can be determined by the media format supported by the media port. Therefore, through the IP address of the media service function unit, the media port of the media service function unit, and the media format supported by the media port, the media stream push device can accurately and reliably send the media stream data to the media service function unit.

[0091] In some embodiments, the above-mentioned registration information is obtained in the following manner: the signaling service function unit receives a registration request message sent by the media stream push device; the registration request message includes the device identification of the media stream push device; the signaling service function unit performs registration authentication on the media stream push device based on the registration request message; when the registration authentication of the media stream push device is passed, the signaling service function unit adds the device identification of the media stream push device to the registration information and sends a registration response message to the media stream push device; the registration response message is used to prompt that the media stream push device is successfully registered.

[0092] It should be understood that in the process of pushing the media stream, the media stream pushing device needs to interact directly with the signaling service functional unit. In order to ensure the security of the signaling service functional unit, the media pushing device needs to complete registration on the signaling service functional unit.

[0093] In addition, through registration, the signaling service functional unit can store the device identification of the media stream push device. In this way, the client can query the device identification of the registered media push device on the server, and can determine the device identification of the media stream push device corresponding to the media stream data that the client expects to obtain.

[0094] In some embodiments, the registration request message may be referred to as a regi ster request.

[0095] Exemplarily, the media stream push device registers on the signaling service function unit in the following manner: the media stream push device sends a first registration request message to the signaling service function unit; the signaling service function unit receives the registration request message and sends a first response message to the media stream push device, the first response message including the authentication system and authentication parameters corresponding to the registration; the signaling service function unit receives the first response message and sends a second registration request message to the signaling service function unit, the second registration request message including the authentication information corresponding to the media stream push device; the signaling service function unit receives the second registration request message and verifies the authentication information, and if the verification is successful, sends a second response message to the media stream push device to prompt that the registration is successful. (If the verification fails, the signaling service function unit refuses to respond to the message of the media stream push device).

[0096] S402: The media service function unit receives media stream data sent by the media stream push device based on the media stream identifier.

[0097] S403. The media service function unit sends media stream data to the client digital twin.

[0098] It should be understood that, since the second request message includes the media stream identifier, the media stream push device can determine which media stream data to send to the media service function unit based on the media stream identifier. In this way, the media stream push device can accurately and reliably send the media stream data to the media service function unit.

[0099] Combination Figure 4 Examples of Figure 5 As shown, the media stream pushing method further includes S501:

[0100] S501. The client digital twin sends the twin identifier of the client digital twin to the media service function unit.

[0101] In combination with the above S302, it should be understood that since the client digital twin sends the media stream identifier of the media stream to the media service functional unit, after the client digital twin sends the twin identifier of the client digital twin to the media service functional unit, the media service functional unit can determine the twin identifier of the client digital twin that requests the data of the media stream.

[0102] In the above S403, the media service function unit sends the media stream data to the client digital twin, including S502:

[0103] S502. The media service function unit pushes media stream data to the client twin corresponding to the twin identifier.

[0104] It should be understood that after the media service functional unit is able to determine the twin identifier of the client digital twin that requests the media stream data, the media service functional unit pushes the media stream data to the client twin corresponding to the twin identifier, which can ensure that the media service functional unit sends the media stream data to the client digital twin that requests to obtain the media stream data, thereby ensuring the accuracy and reliability of the media stream push.

[0105] Combination Figure 5 Examples of Figure 6 As shown, the media stream pushing method further includes S601:

[0106] S601. The media service function unit establishes a corresponding relationship between a media stream identifier and a twin identifier.

[0107] It should be understood that when there are multiple client digital twins and media stream identifiers corresponding to the requested media stream, the twin identifier of the client digital twin and the media stream identifier corresponding to the media stream requested by the client digital twin can be determined.

[0108] In the above S502, the media service function unit pushes the media stream data to the client twin corresponding to the twin identifier, including S602:

[0109] S602. The media service function unit determines the twin identifier corresponding to the media stream identifier of the media stream based on the corresponding relationship; and pushes the media stream data to the client twin corresponding to the twin identifier.

[0110] It should be understood that the corresponding relationship can indicate the relationship between the twin identifier of the client digital twin and the media stream identifier corresponding to the media stream requested by the client digital twin. Therefore, based on the corresponding relationship, the media service function unit can accurately determine the twin identifier corresponding to the media stream identifier of the media stream. In this way, it can be ensured that the media service function unit can accurately send the data of the media stream to the client digital twin that requests the data of the media stream, thereby ensuring the accuracy and reliability of the media stream push.

[0111] It is understandable that, in actual implementation, the server described in the embodiment of the present application may include one or more hardware structures and / or software modules for implementing the aforementioned corresponding media stream push method, and these execution hardware structures and / or software modules may constitute an electronic device. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiment applied for herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0112] Based on this understanding, taking the hardware structure and / or software module contained in the application store as an example, the embodiment of the present application also provides a media stream push device, which can be applied to the above deployment module (such as the hardware device corresponding to the application store). Figure 7 This is a schematic diagram of the structure of the media stream push device provided in the embodiment of the present application. Figure 7 As shown, the media stream pushing device may include a receiving module 701 and a sending module 702 .

[0113] Receiving module 701 is used for the client digital twin to receive the first request message of the client; the first request message is used by the client to request media stream data from the server.

[0114] The sending module 702 is used for the client digital twin to obtain the media stream data by sending the media stream identifier of the media stream to the media service function unit and the signaling service function unit.

[0115] The sending module is used for the client digital twin to send media stream data to the client.

[0116] In some embodiments, the sending module 702 is also used for the signaling service function unit to send a second request message to the media stream push device corresponding to the media stream; the second request message is used to instruct the media stream push device to send the media stream data to the media service function unit; the second request message includes a media stream identifier.

[0117] The receiving module 701 is also used for the media service function unit to receive the media stream data sent by the media stream push device based on the media stream identifier.

[0118] The sending module 702 is also used to send media stream data to the client digital twin.

[0119] In some embodiments, the sending module 702 is further used for the client digital twin to send the twin identifier of the client digital twin to the media service function unit;

[0120] The sending module 702 is also used by the media service function unit to push media stream data to the client twin corresponding to the twin identifier.

[0121] In some embodiments, the media stream pushing apparatus further includes a processing module 703 and a determining module 704 .

[0122] Processing module 703, used for the media service function unit to establish a corresponding relationship between the media stream identifier and the twin identifier;

[0123] Determination module 704 is used for the media service function unit to determine the twin identifier corresponding to the media stream identifier of the media stream based on the corresponding relationship; and push the media stream data to the client twin corresponding to the twin identifier.

[0124] In some embodiments, the first request message includes a device identifier of a media stream push device; the device identifier is obtained by the client querying registration information stored in the signaling service function unit; the registration information includes device identifiers of multiple media stream push devices.

[0125] The sending module 702 is further configured to cause the signaling service function unit to send a second request message to the media stream pushing device based on the device identifier.

[0126] In some embodiments, the registration information is obtained in the following manner: the signaling service function unit receives a registration request message sent by the media stream push device; the registration request message includes a device identifier of the media stream push device; the signaling service function unit performs registration authentication on the media stream push device based on the registration request message; if the registration authentication of the media stream push device is passed, the signaling service function unit adds the device identifier of the media stream push device to the registration information and sends a registration response message to the media stream push device; the registration response message is used to prompt that the media stream push device has been successfully registered.

[0127] In some embodiments, the second request message also includes at least one of the following: the IP address of the media service function unit, the media port of the media service function unit, and the media format supported by the media port; the media stream data is sent to the media service function unit by the media stream push device based on the IP address of the media service function unit, the media port of the media service function unit, at least one of the media formats supported by the media port, and the media stream identifier.

[0128] In some embodiments, the processing module 703 is also used for the server to create a client digital twin corresponding to the client.

[0129] In some embodiments, the first request message also includes a network connection identifier of the client.

[0130] The sending module 702 client digital twin pushes the media stream data to the client based on the network connection identifier.

[0131] Figure 8 Another possible structure of the media stream push device involved in the above embodiment is shown. The media stream push device includes: a processor 801 and a communication interface 802. The processor 801 is used to control and manage the actions of the device, for example, to execute the various steps in the method flow shown in the above method embodiment, and / or to execute other processes of the technology described in this document. The communication interface 802 is used to support the communication between the media stream push device and other network entities. The media stream push device may also include a memory 803 and a bus 804, and the memory 803 is used to store program codes and data of the device.

[0132] Among them, the above-mentioned processor 801 can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present invention. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc.

[0133] The memory 803 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.

[0134] The bus 804 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 804 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0135] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0136] As described above, the embodiment of the present application can divide the functional modules of each execution subject involved in the media stream push method according to the above method example. Among them, the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, it should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated in one processing module.

[0137] Regarding the media stream pushing device in the above embodiment, the specific manner in which each module performs operations and the beneficial effects thereof have been described in detail in the above method embodiment, and will not be repeated here.

[0138] The embodiment of the present application also provides an electronic device, which can be a hardware device corresponding to an application store, or a device on the development side, or the above-mentioned user device. The electronic device includes: a processor, a memory for storing instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method described in the above embodiment.

[0139] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device implements the method described in the aforementioned embodiment.

[0140] Optionally, the above-mentioned computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0141] In an exemplary embodiment, the present application also provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code runs in an electronic device, the processor in the electronic device implements the method described in the aforementioned embodiment.

[0142] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not claimed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0143] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A media stream push method, characterized in that: Applied to a server, the server includes a signaling service functional unit, a media service functional unit and a client digital twin; the method includes: The client digital twin receives a first request message from the client; the first request message is used by the client to request data of a media stream from the server; The client digital twin obtains the data of the media stream by sending the media stream identifier of the media stream to the media service functional unit and the signaling service functional unit; The client digital twin sends data of the media stream to the client.

2. The method according to claim 1, characterized in that After the client digital twin sends the media stream identifier of the media stream requested by the client to the media service functional unit and the signaling service functional unit, the method further includes: The signaling service function unit sends a second request message to the media stream push device corresponding to the media stream; the second request message is used to instruct the media stream push device to send the data of the media stream to the media service function unit; the second request message includes the media stream identifier; The media service function unit receives the data of the media stream sent by the media stream push device based on the media stream identifier, and sends the data of the media stream to the client digital twin.

3. The method according to claim 2, characterized in that The method further comprises: The client digital twin sends the twin identifier of the client digital twin to the media service function unit; The media service function unit sends the data of the media stream to the client digital twin, including: The media service function unit pushes the data of the media stream to the client twin corresponding to the twin identifier.

4. The method according to claim 3, characterized in that: The method further comprises: The media service function unit establishes a correspondence between the media stream identifier and the twin identifier; The media service function unit pushes the data of the media stream to the client twin corresponding to the twin identifier, including: The media service function unit determines the twin identifier corresponding to the media stream identifier of the media stream based on the corresponding relationship; and pushes the data of the media stream to the client twin corresponding to the twin identifier.

5. The method according to claim 2, characterized in that: The first request message includes a device identifier of the media stream push device; the device identifier is obtained by the client querying the registration information stored in the signaling service function unit; the registration information includes device identifiers of multiple media stream push devices; The signaling service function unit sends a second request message to the media stream push device corresponding to the media stream, including: The signaling service function unit sends the second request message to the media stream pushing device based on the device identifier.

6. The method according to claim 5, characterized in that The registration information is obtained in the following ways: The signaling service function unit receives a registration request message sent by a media stream push device; the registration request message includes a device identifier of the media stream push device; The signaling service function unit performs registration authentication on the media stream push device based on the registration request message; When the registration authentication of the media stream push device is passed, the signaling service function unit adds the device identification of the media stream push device to the registration information and sends a registration response message to the media stream push device; the registration response message is used to prompt that the registration of the media stream push device is successful.

7. The method according to any one of claims 1 to 6, characterized in that The second request message also includes at least one of the following: an IP address of the media service function unit, a media port of the media service function unit, and a media format supported by the media port; The media stream data is sent by the media stream push device to the media service function unit based on the IP address of the media service function unit, the media port of the media service function unit, at least one of the media formats supported by the media port, and the media stream identifier.

8. The method according to claim 1, characterized in that Before the client digital twin receives the first request message from the client, the method further includes: The server creates a client digital twin corresponding to the client.

9. The method according to claim 1, characterized in that: The first request message also includes a network connection identifier of the client, and the client digital twin sends the data of the media stream to the client, including: The client digital twin pushes the data of the media stream to the client based on the network connection identifier.

10. An electronic device, characterized in that: include: processor; Memory; and a computer program; wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the server implements the method according to any one of claims 1 to 9.

11. A computer-readable storage medium, comprising a computer program, characterized in that: When the computer program is executed on a server, the server is enabled to implement the method according to any one of claims 1 to 9.

12. A computer program product comprising computer readable code, or a non-volatile computer readable storage medium carrying computer readable code, characterized in that: When the computer readable code is executed in a server, a processor in the server implements the method according to any one of claims 1 to 9.