An edge device-based media streaming method, device and electronic device

By deploying edge devices in logistics warehouses and using local area networks to transmit media stream data, the problems of high bandwidth consumption and instability in public network transmission are solved, thereby improving the stability and smoothness of video playback.

CN119545030BActive Publication Date: 2025-11-21SHANGHAI GEWU ZHIYUAN NETWORK TECH CO LTD

Patent Information

Application Number
CN202311110372.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2025-11-21
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

In logistics warehouses, during real-time video recording, a large number of workstations need to record and play videos simultaneously, resulting in excessive consumption of network bandwidth resources and unstable public network transmission, which affects the monitoring effect.

Method used

The media streaming transmission method based on edge devices is adopted. The edge all-in-one machine is deployed in the local area network and establishes a long connection with the cloud module of the public network. Media stream data is transmitted through the local area network. The edge all-in-one machine receives the media stream from the network video recorder, transcodes it and provides the local area network pull address for the client to use.

Benefits of technology

It saves public network bandwidth resources and improves the stability and smoothness of video playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545030B_ABST
    Figure CN119545030B_ABST
Patent Text Reader

Abstract

The application discloses a media stream transmission method and device based on an edge device and electronic equipment, and the method comprises the following steps: an edge all-in-one machine receives a live broadcast request message sent by a site device management cloud module from a first network, the edge all-in-one machine is connected to a second network, the edge all-in-one machine generates media stream service information according to a camera module identifier, and the media stream service information is sent to the site device management cloud module, so that the site device management cloud module requests a target network video recorder corresponding to the camera module identifier to acquire a media stream according to an edge live broadcast address, an IP address and a port; when the target network video recorder feeds back a successful request, the edge all-in-one machine receives the media stream recorded by the target network video recorder through the camera module, and transmits the media stream to a client according to the edge live broadcast address. According to the method, the media stream data is transmitted through the second network LAN, public network bandwidth resources are saved, and the stability and fluency of video playing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video transmission, and in particular to a media streaming method, apparatus, and electronic device based on edge devices. Background Technology

[0002] During the packing and handling of goods in the logistics warehouse, video cameras or camcorders will record the operations of the staff on the workbench. This video recording can be used as evidence to determine responsibility if the package is damaged or otherwise abnormal after the user receives it, proving that no damage was caused to the goods during the packing or handling process.

[0003] To ensure the reliability of video recording, a real-time video preview window is provided on the operating system of the monitoring terminal page, allowing operators to monitor whether video recording is running normally. When operators find that the equipment used for packaging is malfunctioning, they can promptly repair or replace it with other recordable equipment.

[0004] Because all operations during real-time video recording need to be continuously displayed on the screen, existing solutions connect recorders or cameras to the public network via standard protocols. If the quantity of items being packaged is large, numerous workstations will need to record and play video simultaneously, significantly consuming network bandwidth resources within the warehouse. Furthermore, the public network transmission of video media streams can lead to instability, affecting monitoring effectiveness. Summary of the Invention

[0005] In view of this, the present invention provides a media streaming method, apparatus and electronic device based on edge devices to solve the problem of consuming a large amount of network resources due to the transmission and playback of media streams over the public network.

[0006] In a first aspect, the present invention provides a media streaming method based on an edge device, applied to an edge all-in-one machine, the method comprising:

[0007] The edge device receives a live streaming request message from the site equipment management cloud module of the first network. The live streaming request message includes the camera module identifier of the client requesting live streaming, wherein the edge device is connected to the second network.

[0008] The edge all-in-one device generates media stream service information based on the camera module identifier. The media stream service information includes: edge live broadcast address, edge all-in-one device IP address, and port used to receive media streams.

[0009] The edge all-in-one machine sends media stream service information to the site equipment management cloud module, so that the site equipment management cloud module can request media stream from the target network video recorder corresponding to the camera module based on the edge live broadcast address, IP address and port;

[0010] When the target network video recorder successfully receives the media stream recorded by the target network video recorder through the camera module, the edge all-in-one machine transmits the media stream to the client according to the edge live broadcast address.

[0011] The first network is a public network, and the second network is a private network, such as a local area network (LAN).

[0012] Optionally, the site equipment management cloud module is an SDM cloud module, and the target network video recorder is a target NVR.

[0013] Optionally, the edge live streaming address is a Uniform Resource Locator (URL).

[0014] In conjunction with the first aspect, in one possible implementation, the edge all-in-one device includes a site equipment management edge device and a video network recording edge device; the edge all-in-one device receives a live broadcast request message sent from the site equipment management cloud module, including: the site equipment management edge device receiving the live broadcast request message sent by the site equipment management cloud module; and the site equipment management edge device sending the live broadcast request message to the video network recording edge device.

[0015] In conjunction with the first aspect, in another possible implementation, the edge all-in-one device generates media streaming service information based on the camera module identifier, including:

[0016] The video network recording edge device receives a live broadcast request message sent by the site equipment management edge device;

[0017] The video network recording edge device generates media stream service information based on the camera module identifier, the IP address of the video network recording edge device, and the receiving video port of the video network recording edge device;

[0018] The video network recording edge device sends media stream service information to the site equipment management edge device.

[0019] In conjunction with the first aspect, in another possible implementation, the edge device sends media stream service information to the site equipment management cloud module, including: the site equipment management edge device receiving the media stream service information sent by the video network recording edge device and forwarding the media stream service information to the site equipment management cloud module.

[0020] In conjunction with the first aspect, in another possible implementation, the edge device receives a media stream recorded by the target network video recorder through a camera module, and transmits the media stream to the client according to the edge live broadcast address. This includes: the video network recording edge device receiving the media stream sent by the target network video recorder; and the video network recording edge device sending the media stream to the client when it receives the edge live broadcast address from the client.

[0021] Secondly, the present invention provides a media streaming method based on an edge device, the method comprising:

[0022] The station equipment management cloud module receives a live streaming request message from a client on the second network. The live streaming request message includes the identifier of the camera module requesting the live stream. This station equipment management cloud module is located on the first network.

[0023] The station equipment management cloud module sends a live broadcast request message to the edge all-in-one machine of the second network;

[0024] The site equipment management cloud module receives media stream service information from the edge all-in-one machine based on the live broadcast request message. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port used to receive media stream;

[0025] The site equipment management cloud module sends media stream service information and camera module identifier to the video network recording cloud module of the first network, so that the video network recording cloud module can request to obtain the media stream from the target network video recorder corresponding to the camera module identifier;

[0026] When the target network video recorder receives a message indicating that the request was successful, the site equipment management cloud module sends an edge live streaming address to the client, enabling the client to obtain and play the media stream from the edge all-in-one machine through the edge live streaming address.

[0027] In conjunction with the second aspect, in one possible implementation, before the site equipment management cloud module receives the live broadcast request message from the client, it also includes: the site equipment management cloud module receiving the device information of the edge integrated machine, the device information including the device identifier of the edge integrated machine and the identifier of the second network; the site equipment management cloud module registering the device information of the edge integrated machine and establishing the correspondence between the device identifier of the edge integrated machine and the identifier of the second network;

[0028] The site equipment management cloud module sends a live broadcast request message to the edge integrated machine, including: the site equipment management cloud module searches in at least one pre-stored correspondence to see if there is an edge integrated machine that corresponds to the second network identifier; if there is, the module sends a live broadcast request message to the edge integrated machine.

[0029] In conjunction with the second aspect, in another possible implementation, before the site equipment management cloud module receives the live broadcast request message from the client, it also includes: the site equipment management cloud module receiving registration information of at least one network video recorder and the camera modules contained in each network video recorder, the registration information being used to identify the target network video recorder and the video module recording the media stream.

[0030] In conjunction with the second aspect, in another possible implementation, the edge all-in-one machine includes a site equipment management edge device and a video network recording edge device. The site equipment management cloud module sends a live broadcast request message to the edge all-in-one machine of the second network, including: the site equipment management cloud module sends a live broadcast request message to the site equipment management edge device.

[0031] The site equipment management cloud module receives media stream service information from the edge all-in-one machine based on the live broadcast request message, including: the site equipment management cloud module receives media stream service information forwarded by the site equipment management edge device.

[0032] Thirdly, the present invention provides a media streaming transmission device, the device comprising:

[0033] The first receiving unit is used to receive a live broadcast request message sent from the site equipment management cloud module of the first network. The live broadcast request message includes the identifier of the camera module requesting live broadcast from the client. The device is located in the second network, which is different from the first network and the second network.

[0034] The generation unit is used to generate media stream service information based on the camera module identifier. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port used to receive media streams.

[0035] The first sending unit is used to send media stream service information to the site equipment management cloud module, so that the site equipment management cloud module can request the media stream from the target network video recorder corresponding to the camera module identifier according to the edge live broadcast address, IP address and port;

[0036] The first receiving unit is also used to receive the media stream recorded by the target network video recorder through the camera module when the target network video recorder successfully replies with a request;

[0037] The first sending unit is also used to transmit the media stream to the client based on the edge live streaming address.

[0038] Fourthly, the present invention provides another media streaming transmission device, the device comprising:

[0039] The second receiving unit is used to receive a live streaming request message sent by a client from the second network. The live streaming request message includes the identifier of the camera module requesting live streaming.

[0040] The second sending unit is used to send a live broadcast request message to the edge all-in-one machine of the second network;

[0041] The second receiving unit is also used to receive media stream service information fed back by the edge device according to the live broadcast request message. The media stream service information includes: edge live broadcast address, edge device IP address, and port used to receive media stream.

[0042] The second sending unit is further configured to send media stream service information and camera module identifier to the video network recording cloud module of the first network, so that the video network recording cloud module requests to obtain media stream from the target network video recorder corresponding to the camera module identifier;

[0043] The second sending unit is also used to send an edge live streaming address to the client when the second receiving unit receives a message from the target network video recorder that the request was successful, so that the client can obtain and play the media stream from the edge all-in-one machine through the edge live streaming address.

[0044] Fifthly, the present invention also provides a media streaming transmission system, the system comprising: a site equipment management cloud module, a video network recording cloud module, a client, an edge integrated machine, and at least one network video recorder; wherein the site equipment management cloud module and the video network recording cloud module are located in a first network; the client, the edge integrated machine, and at least one network video recorder are located in a second network, wherein the first network is a public network, and the second network is a private network.

[0045] The cloud module for site equipment management is used to receive live streaming request messages from clients and send the live streaming request messages to the edge all-in-one machine. The live streaming request message includes the identifier of the camera module requesting the live stream.

[0046] The edge all-in-one machine is used to receive live broadcast request messages, generate media stream service information based on the camera module identifier, and send the media stream service information to the site equipment management cloud module. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port used to receive media streams.

[0047] The site equipment management cloud module is used to receive media stream service information and send media stream service information and camera module identifiers to the video network recording cloud module;

[0048] The video network recording cloud module is used to receive media stream service information and camera module identifier, and to request media stream from the target network video recorder corresponding to the camera module identifier. The target network video recorder is at least one of the network video recorders.

[0049] Edge all-in-one device, used to receive media streams recorded by a target network video recorder through a camera module;

[0050] The cloud module for site equipment management is used to send edge live streaming addresses to clients;

[0051] The client is used to obtain and play media streams from the edge appliance via the edge live streaming address.

[0052] In a sixth aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the media streaming method based on an edge device as described in the first aspect, the second aspect, or any corresponding implementation thereof.

[0053] Furthermore, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the media streaming method based on an edge device as described in the first aspect, the second aspect, or any corresponding implementation thereof.

[0054] The media stream transmission method, apparatus, and device provided in this embodiment deploy the edge device on an edge all-in-one machine in a second network (local area network) and establish a long connection with at least one cloud module in the first network, such as a site equipment management cloud module and a video network recording cloud module. When a client needs to request edge live streaming within the second network, the edge all-in-one machine receives the media stream recorded by the camera module, receives the media stream data from the network video recorder, and transcodes it to provide a local area network pull-stream edge live streaming address for the client to use. The media stream data is transmitted through the local area network, thereby saving bandwidth resources of the public network first network and improving the stability and smoothness of video playback. Attached Figure Description

[0055] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0056] Figure 1 This is a schematic diagram of a media streaming live broadcast system provided in an embodiment of the present invention;

[0057] Figure 2 This is a signaling flowchart of a media stream transmission method based on an edge device provided in an embodiment of the present invention;

[0058] Figure 3 This is a signaling flowchart of another media stream transmission method based on an edge device provided in an embodiment of the present invention;

[0059] Figure 4 This is a structural block diagram of a media stream transmission device provided in an embodiment of the present invention;

[0060] Figure 5 This is a structural block diagram of another media stream transmission device provided in an embodiment of the present invention;

[0061] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0063] The technical solution provided in this invention is applied to a media streaming live streaming system, or a media streaming system for live logistics packaging process.

[0064] like Figure 1 As shown, the system includes: a Station Device Management (SDM) cloud module, an AIoT Video cloud module, at least one client, an SDM edge device, an AIoT Video edge device, at least one Network Video Recorder (NVR), and at least one camera module, such as a camera.

[0065] AIoT stands for AI+IoT, which refers to the integration of artificial intelligence technology and the Internet of Things in practical applications. AIoTVideo video network recording cloud module refers to an AIoT cloud device with video recording function; similarly, AIoTVideo video network recording edge device refers to an AIoT edge device with video recording function.

[0066] In addition, the SDM cloud module (SDM_Cloud) and / or the AIoTVideo cloud module can be a network device, such as a server or server cluster, or a gateway, etc., and this embodiment does not limit this.

[0067] The at least one NVR includes NVR1, NVR2, ... Each NVR uses one or more channels to connect to different camera modules. For example, NVR1 uses channel 1 to connect to camera module 1 and channel 2 to connect to camera module 2; similarly, NVR2 uses channel 3 to connect to camera module 3 and channel 4 to connect to camera module 4, and so on.

[0068] The camera module includes, but is not limited to, a camera, and may also be other devices with photo / video recording functions.

[0069] The functions of each module are as follows:

[0070] The SDM cloud module is responsible for managing the metadata of video devices and providing access points for business systems to use video devices, such as viewing video device status, viewing live video, viewing recordings, and downloading recordings.

[0071] The SDM edge device (SDM_Edge), also known as the edge gateway, is responsible for communicating with the AIoTVideo edge device and reporting its information to the cloud for scheduling by the AIoTVideo cloud module.

[0072] The AIoTVideo cloud module (AIoTVideo_Cloud) is responsible for connecting the video recorder devices, managing device status, and exchanging control commands.

[0073] The AIoTVideo edge device (AIoTVideo_Edge) is responsible for receiving and transcoding the stream from the edge-side recorder.

[0074] A network video recorder (NVR) is responsible for connecting camera devices, storing recordings, and connecting to the cloud to provide video preview and playback.

[0075] Furthermore, the aforementioned devices are wirelessly connected. Specifically, the SDM cloud module and the AIoTVideo cloud module communicate using HTTP (Hypertext Transfer Protocol); at least one NVR communicates with the AIoTVideo cloud module using the Socket protocol; at least one NVR communicates with the AIoTVideo edge device using the Socket protocol; the SDM edge device communicates with the SDM cloud module using the Socket protocol; and the SDM edge device communicates with the AIoTVideo edge device using the HTTP protocol.

[0076] Optionally, the SDM edge device and the AIoTVideo edge device can be located on two separate devices, or they can be integrated into the same device. In this case, the SDM edge device and the AIoTVideo edge device are two functional modules integrated into one device, which can be called an "edge all-in-one machine".

[0077] Generally, NVRs (Network Video Recorders) use the GB28181 protocol (a national standard in the video surveillance field) to establish a connection with cloud signaling services. When playing video in real time, the NVR transmits video data to the cloud via the public network, and then the user retrieves the corresponding video media stream data from the cloud. However, when there are a large number of workstations and a large amount of video media streams being played, it will consume a lot of public network bandwidth resources, which may lead to network congestion, transmission delays, and unstable real-time video playback.

[0078] To address the aforementioned technical problems, this application provides a media streaming method based on edge devices. This method pre-divides the various devices into two networks: a first network and a second network. The first network includes an SDM cloud module and an AIoTVideo cloud module. The second network includes an SDM edge device, an AIoTVideo edge device, at least one NVR, and at least one camera module. Furthermore, the first and second networks may include more or fewer other modules / devices; this embodiment does not impose any limitations on this.

[0079] In addition, at least one client can be set in either the first network or the second network. For example, the first client (client1) is located in the first network and the second client (client2) is located in the second network. This embodiment does not limit this, but this embodiment takes the client being located in the second network as an example.

[0080] Optionally, the first network may also be referred to as a public network or outside the warehouse, and the second network may be referred to as a private network, such as a local area network or inside the warehouse.

[0081] In this embodiment, by setting up SDM edge devices and SDM edge streaming media services (AIoTVideo cloud modules) in the warehouse, when playing real-time video in the warehouse, the media stream data is transmitted through the private network using the SDM edge devices. When playing on the public network, the video is pulled through the public network using cloud live streaming, thereby saving public network bandwidth resources.

[0082] Example 1

[0083] See Figure 2 This embodiment provides a media streaming method based on an edge device, which includes the following steps:

[0084] Step 100: Preparation phase, each NVR sends registration information to the AIoTVideo cloud module to register at least one NVR on the cloud network.

[0085] One implementation involves each NVR registering its camera module information on the AIoTVideo cloud module using the GB28181 protocol. Further, this specifically includes:

[0086] The NVR sends channel information to the AIoTVideo cloud module. This channel information includes a channel identifier and a national standard ID. The channel refers to the communication link between each camera module and its connected NVR. The channel can represent an IPC (Internet Protocol Camera), a network-protocol-based camera also known as a network camera or network surveillance camera. It uses a network connection (such as Ethernet) to transmit video and audio data and communicates with other devices over the network.

[0087] Additionally, a national standard ID is used to identify each channel, such as national standard ID1, national standard ID2, etc. Optionally, the national standard ID can be a string composed of numbers, letters, and symbols.

[0088] The preparation phase also includes: after receiving the channel information, the AIoTVideo cloud module generates video device information and sends it to the SDM cloud module. Upon receiving the video device information, the SDM cloud module saves the video device metadata, i.e., the video device information itself.

[0089] The video device information includes at least one parent-child relationship. For example, if two camera modules are connected to NVR1, and the corresponding device identifiers are IPC1 and IPC2, then establishing a parent-child relationship would be: NVR1 - IPC1 & IPC2. Similarly, each other NVR and its connected camera module IPC can be established, and this information can be stored on the SDM cloud module.

[0090] The method provided in this embodiment will be described in detail below.

[0091] like Figure 2 As shown, the media stream transmission method includes:

[0092] Step 101: The client sends an edge live streaming request message to the SDM cloud module via the specified channel; correspondingly, the SDM cloud module receives the live streaming request message from the client.

[0093] The live streaming request message includes the identifier of the camera module requesting the live stream, such as IPC1 or channel 1, indicating a request to obtain the live media stream from IPC1, or a request to obtain the live media stream from IPC1 connected to channel 1.

[0094] The client is a client located on the second network. The client can be a terminal device, including but not limited to various personal computers (PCs), laptops, smartphones, tablets, etc.

[0095] Step 102: The SDM cloud module sends the live streaming request message to the edge all-in-one machine to request media streams from at least one NVR.

[0096] Step 103: After receiving the live streaming request message sent from the SDM cloud module, the edge all-in-one machine generates media stream service information based on the camera module identifier.

[0097] The media stream service information includes: the edge live streaming address URL (Uniform Resource Locator), the IP address of the edge appliance, and the port used by the edge appliance to receive the media stream. The IP address and port number of the edge appliance can be pre-set and stored on the edge appliance for use when generating the media stream service information.

[0098] Step 104: The edge appliance sends the media stream service information to the SDM cloud module.

[0099] Correspondingly, the SDM cloud module receives the media stream service information fed back by the edge all-in-one machine, and the media stream service information includes: edge live broadcast address URL, edge all-in-one machine IP address and port, etc.

[0100] Step 105: The SDM cloud module sends the media stream service information and the camera module identifier to the AIoTVideo cloud module. The media stream service information is obtained in step 104, and the camera module identifier is obtained in step 101.

[0101] Step 106: The AIoTVideo cloud module receives the media stream service information and the camera module identifier, and requests the media stream from the target NVR corresponding to the camera module identifier based on this information.

[0102] Specifically, the AIoTVideo cloud module identifies the target NVR based on the camera module identifier, and then sends an invite request to the target NVR to request media streams from the target NVR. The invite request includes the IP address of the edge device and the port on which the edge device receives the video / media streams.

[0103] Furthermore, one implementation method for the AIoTVideo cloud module to determine the target NVR is as follows: the AIoTVideo cloud module searches for the NVR associated with the current IPC1 based on the camera module identifier, such as IPC1, in at least one pre-stored parent-child relationship (video device information stored in the aforementioned preparation stage), and selects it as the target NVR. In this example, assuming that IPC1 is associated with NVR1, i.e., a parent-child relationship exists, then the target NVR is NVR1.

[0104] Step 107: When IPC1 is turned on, it captures video of the surrounding environment, records and generates a media stream, and pushes the media stream to the edge all-in-one machine through the target NVR.

[0105] Correspondingly, the edge all-in-one machine receives and stores the media stream pushed by the target NVR in real time.

[0106] Step 108: Based on the invite request in Step 106 above, the target NVR returns a response to the AIoTVideo cloud module. This response can indicate a successful request or a failed request.

[0107] Correspondingly, the AIoTVideo cloud module receives the response and makes a judgment. If the AIoTVideo cloud module receives a message indicating that the request was successful, such as receiving a response, it means that the invitation was successful and proceeds to step 109.

[0108] If the AIoTVideo cloud module does not receive a response, it indicates that the request was unsuccessful, the process ends, and the request is terminated. Furthermore, the success or failure of the request can be indicated and determined by fields or identifier codes in the response.

[0109] Step 109: The AIoTVideo cloud module sends the successful request message (i.e., the response) from step 108 to the SDM cloud module.

[0110] Step 110: After receiving the successful request message, the SDM cloud module sends the edge live streaming address URL to the client. Optionally, the URL is also called the edge live streaming address URL.

[0111] Step 111: After receiving the edge live streaming address URL, the client requests the media stream from the edge all-in-one machine through the edge live streaming address URL.

[0112] Step 112: The edge appliance sends the media stream received in step 107 above to the client according to the URL.

[0113] The client receives the media stream and plays it in real time using its playback software, thus enabling live streaming of the media stream on the client.

[0114] The method provided in this embodiment involves deploying edge devices on an edge all-in-one machine in a second network (local area network) and establishing a long connection with at least one cloud module in the first network, such as an SDM cloud module and an AIoTVideo cloud module. When a client needs to request edge live streaming on the local area network, the edge all-in-one machine receives media streams recorded by camera modules and receives media stream data from a network video recorder (NVR). The edge all-in-one machine then transcodes and provides a local area network pull-stream edge live streaming address URL for the client to use. By transmitting media stream data through the local area network, public network bandwidth resources are saved, and the stability and smoothness of video playback are improved.

[0115] Example 2

[0116] This embodiment is based on the aforementioned Embodiment 1, and the edge integrated machine is split into: SDM site equipment management edge device and AIoTVideo video network recording edge device, and the media stream transmission method flow of Embodiment 1 is further introduced.

[0117] See Figure 3 The diagram shown is a signaling flowchart of a media stream transmission method based on an edge device provided in this embodiment.

[0118] First, in the preparation phase, step 100 also includes:

[0119] Step 100-1: The SDM edge device registers its device information with the SDM cloud module. The device information includes the device identifier and warehouse identifier of the SDM edge device.

[0120] Specifically, the device identifier of the SDM edge device can be the device name, model, or device ID, etc.; the warehouse identifier can be the identifier of the second network (local area network), IP address, etc.; in this embodiment, the warehouse identifier is assumed to be identifier 1.

[0121] Step 100-2: After receiving the registered device information, the SDM cloud module establishes a correspondence between the device identifier of the SDM edge device and the identifier within the warehouse. For example, it establishes a first correspondence between device identifier ID1 and the second network IP address (i.e., identifier 1).

[0122] It should be understood that a mapping relationship can also be established between the device identifiers of other edge devices and the internal network, such as a second or third mapping relationship.

[0123] Step 101: The client sends a live streaming request message to the SDM cloud module through the specified channel, which is the same as step 101 in Example 1.

[0124] After receiving the live streaming request message, the SDM cloud module queries the database to see if an SDM edge device is deployed and configured in the current warehouse (second network). If yes, it proceeds to step 102-1. If no, no SDM edge device is deployed, edge live streaming is not supported, and the process ends.

[0125] The query process specifically includes: the SDM cloud module searches for a first correspondence in at least one pre-stored correspondence (established by steps 100-1 and 100-2 above) based on the warehouse (second network) identifier 1. The first correspondence is the correspondence between identifier 1 and the device identifier of the SDM edge device. If the first correspondence exists, it is determined that the SDM edge device has been deployed. If it does not exist, the SDM edge device has not been deployed.

[0126] Step 102-1: If it is determined that an SDM edge device is deployed in the warehouse, the SDM cloud module sends the live broadcast request message to the SDM edge device. The request message includes: camera module identifier, which is used to indicate to the client that it wants to call the live media stream data of a certain IPC.

[0127] Step 102-2: The SDM edge device sends the live streaming request message to the AIoTVideo edge device and sends a request to create an edge streaming stream (including the camera module identifier). At this time, the AIoTVideo edge device is ready to receive the media stream.

[0128] Step 103-1: After receiving the request to create a streaming service, the AIoTVideo edge device generates streaming media service information based on the camera module identifier, the IP address of the AIoTVideo edge device, and the port used by the AIoTVideo edge device to receive video.

[0129] The streaming media service information includes: edge live address URL, IP address of AIoTVideo edge device, and port (port number), etc.

[0130] Step 103-2: The AIoTVideo edge device sends the streaming media service information to the SDM edge device.

[0131] Step 104: After receiving the streaming media service information, the SDM edge device forwards the streaming media service information to the SDM cloud module.

[0132] After receiving the streaming media service information, the SDM cloud module sends the streaming media service information and the camera module identifier to the AIoTVideo cloud module to invite the AIoTVideo cloud module to pull the stream from the edge. Upon receiving the streaming media service information, the AIoTVideo cloud module determines the target NVR based on the camera module identifier and sends an invite request to the target NVR. This invite request includes the IP address of the AIoTVideo edge device and the aforementioned video port. The AIoTVideo edge device also receives the media stream sent by the target NVR, and when it receives an edge live streaming address URL from a client, it sends the media stream to the client.

[0133] The specific implementation process is the same as steps 105 to 112 in Embodiment 1, and can be found in the description of Embodiment 1 above. This embodiment will not repeat the details.

[0134] In this embodiment, the edge all-in-one machine's functionality is divided into two modules: an SDM edge device and an AIoTVideo edge device. The SDM edge device (or SDM edge gateway) is responsible for communicating with the AIoTVideo edge device and reporting its information to the cloud for scheduling by the AIoTVideo cloud module. The AIoTVideo edge device is responsible for receiving and transcoding the NVR stream from the edge side. An edge gateway is provided and privately deployed at the user's site. The system can be configured to use edge live streaming from a designated repository. When a live stream is requested on-site, the edge gateway receives the media stream data from the recorder, transcodes it, and provides a LAN pull address for the user. Video data is transmitted via the LAN, saving public network bandwidth and improving the stability and smoothness of video playback.

[0135] In some embodiments, the invention also provides a media streaming device for implementing the methods described in the above embodiments, and details already described will not be repeated. As used below, the term "unit" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0136] like Figure 4 As shown, this embodiment provides a media streaming device, which includes a first receiving unit 410, a generating unit 420, and a first sending unit 430; the device is used to implement some or all of the functions of the aforementioned edge all-in-one machine.

[0137] The first receiving unit 410 is used to receive a live broadcast request message sent from the site equipment management cloud module of the first network. The live broadcast request message includes the camera module identifier of the client requesting live broadcast.

[0138] The generation unit 420 is used to generate media stream service information based on the camera module identifier. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port for receiving media streams.

[0139] The first sending unit 430 is used to send media stream service information to the site equipment management cloud module, so that the site equipment management cloud module can request the media stream from the target network video recorder corresponding to the camera module identifier based on the edge live broadcast address, IP address, and port. Both the target network video recorder and the camera module identifier are located in the second network.

[0140] The first receiving unit 410 is also configured to receive the media stream recorded by the target network video recorder through the camera module when the target network video recorder successfully replies with a request.

[0141] The first sending unit 430 is also used to transmit the media stream to the client based on the edge live streaming address.

[0142] Optionally, in one specific implementation, the aforementioned edge all-in-one machine includes: a site equipment management edge device and a video network recording edge device.

[0143] The first receiving unit 410 is specifically used to receive the live broadcast request message sent by the site equipment management cloud module.

[0144] The first sending unit 430 is also used to send the live broadcast request message to the video network recording edge device.

[0145] Optionally, in another specific embodiment, the first receiving unit 410 is further configured to receive the live broadcast request message sent by the site equipment management edge device.

[0146] The generation unit 420 is further configured to generate the media stream service information based on the camera module identifier, the IP address of the video network recording edge device, and the receiving video port of the video network recording edge device.

[0147] The first sending unit 430 is also used to send the media stream service information to the site equipment management edge device.

[0148] Optionally, in another specific embodiment, the first receiving unit 410 is further configured to receive the media stream service information sent by the video network recording edge device.

[0149] The first sending unit 430 is also used to forward the media stream service information to the site equipment management cloud module.

[0150] Optionally, in another specific embodiment, the first receiving unit 410 is further configured to receive the media stream sent by the target network video recorder.

[0151] The first sending unit 430 is further configured to send the media stream to the client when the first receiving unit 410 receives the edge live address from the client.

[0152] Additionally, in another embodiment, such as Figure 5 As shown, the present invention also provides another media streaming device, which includes a second receiving unit 510 and a second sending unit 520. In addition, the device may also include other units and modules, such as storage units, processing units, etc., which are not limited in this embodiment.

[0153] The second receiving unit 510 is used to receive a live streaming request message sent by a client from the second network. The live streaming request message includes the identifier of the camera module requesting the live streaming.

[0154] The second sending unit 520 is used to send a live broadcast request message to the edge device of the second network.

[0155] The second receiving unit 510 is also used to receive media stream service information fed back by the edge all-in-one machine according to the live broadcast request message. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port used to receive media stream.

[0156] The second sending unit 520 is also used to send media stream service information and camera module identifier to the video network recording cloud module of the first network, so that the video network recording cloud module requests media stream from the target network video recorder corresponding to the camera module identifier.

[0157] The second sending unit 520 is further configured to send an edge live streaming address to the client when the second receiving unit 510 receives a message from the target network video recorder indicating that the request was successful, so that the client can obtain and play the media stream from the edge all-in-one machine through the edge live streaming address.

[0158] Optionally, in one specific embodiment, the second receiving unit 510 is further configured to receive device information of the edge all-in-one machine, the device information including the device identifier of the edge all-in-one machine and the identifier of the second network.

[0159] The aforementioned device further includes a processing unit, which in Figure 5 As not shown in the diagram, the processing unit is used to register the device information of the edge all-in-one machine and to establish a correspondence between the device identifier of the edge all-in-one machine and the second network identifier.

[0160] The processing unit is further configured to search in at least one pre-stored correspondence for whether there is an edge device that corresponds to the second network identifier; if so, a live broadcast request message is sent to the edge device through the second sending unit 520.

[0161] Optionally, in another specific embodiment, the second receiving unit 510 is further configured to receive at least one network video recorder of the second network and registration information of the camera module included in each network video recorder, the registration information being used to identify the target network video recorder and the video module recording the media stream.

[0162] Optionally, in another specific implementation, the edge unit includes: a site equipment management edge device and a video network recording edge device.

[0163] The second sending unit 520 is also used to send the live broadcast request message to the site equipment management edge device.

[0164] The second receiving unit 510 is used to receive the media stream service information forwarded by the site equipment management edge device.

[0165] The media streaming device in the above embodiment is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0166] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0167] In addition, this embodiment also provides a media streaming live broadcast system, which includes the above-mentioned... Figure 4 or Figure 5 The media streaming device shown is used to perform the media streaming methods described in Embodiments 1 and 2 above.

[0168] The system includes a first network and a second network composed of different devices. The devices and their connections within the first and second networks are described below. Figure 1 As shown.

[0169] Specifically, the site equipment management cloud module is used to receive live streaming request messages from clients in the second network and send the live streaming request messages to the edge all-in-one machine of the second network. The live streaming request message includes the identifier of the camera module requesting the live stream.

[0170] An edge all-in-one device is used to receive the live broadcast request message, generate media stream service information according to the camera module identifier, and send the media stream service information to the site equipment management cloud module. The media stream service information includes: edge live broadcast address, edge all-in-one device IP address, and port for receiving media stream.

[0171] The site equipment management cloud module is used to receive the media stream service information and send the media stream service information and the camera module identifier to the video network recording cloud module.

[0172] The video network recording cloud module is used to receive the media stream service information and the camera module identifier, and to request the media stream from the target network video recorder corresponding to the camera module identifier. The target network video recorder is at least one of the network video recorders.

[0173] An edge device is used to receive the media stream recorded by a target network video recorder through a camera module.

[0174] The cloud module for site equipment management is used to send the edge live streaming address to the client.

[0175] The client is used to obtain and play the media stream from the edge all-in-one machine via the edge live streaming address.

[0176] Optionally, in one possible implementation of this embodiment, if the edge all-in-one machine includes two devices: a site equipment management edge device and a video network recording edge device, the specific functions of the edge all-in-one machine include:

[0177] The site equipment management edge device is used to receive live broadcast request messages sent by the site equipment management cloud module, and to send the live broadcast request messages to the video network recording edge device.

[0178] The video network recording edge device is used to receive a live broadcast request message sent by the site equipment management edge device, generate the media stream service information based on the camera module identifier, the IP address of the video network recording edge device, and the receiving video port of the video network recording edge device in the live broadcast request message, and send the media stream service information to the site equipment management edge device.

[0179] Optionally, in another possible implementation of this embodiment, the above-mentioned site equipment management edge device is further configured to receive media stream service information sent by the video network recording edge device and forward the media stream service information to the site equipment management cloud module.

[0180] Correspondingly, the station equipment management cloud module receives media stream service information sent from the station equipment management edge device.

[0181] Optionally, in another possible implementation of this embodiment, the functions of the aforementioned edge computing device further include:

[0182] A video network recording edge device, used to receive the media stream sent by the target network video recorder;

[0183] The client is also used to send edge live streaming addresses to video network recording edge devices;

[0184] The video network recording edge device is also used to send the media stream to the client when it receives the edge live streaming address from the client.

[0185] Optionally, in another possible implementation of this embodiment, the above-mentioned site equipment management cloud module is further configured to receive the device information of the edge all-in-one machine before receiving the live broadcast request message sent by the client. The device information includes: the device identifier of the edge all-in-one machine and the identifier of the second network.

[0186] The cloud module for site equipment management is also used to register the equipment information of the edge all-in-one machine and establish the correspondence between the device identifier of the edge all-in-one machine and the second network identifier.

[0187] When the client sends a live broadcast request message to the site equipment management cloud module, the site equipment management cloud module is also used to search in at least one pre-stored correspondence to see if there is an edge device that corresponds to the second network identifier; if there is, it is determined that an edge device, i.e. an edge device, has been pre-deployed, and the live broadcast request message is sent to the edge device.

[0188] Optionally, in another possible implementation of this embodiment, the site equipment management cloud module is further configured to receive registration information of at least one network video recorder and the camera modules contained in each network video recorder before receiving the live broadcast request message sent from the client, and determine the target network video recorder and the video module recording the media stream based on the registration information.

[0189] Optionally, in another possible implementation of this embodiment, if the edge all-in-one machine includes a site equipment management edge device and a video network recording edge device, the functions of the edge all-in-one machine specifically include:

[0190] The cloud module for station equipment management is also used to send the live broadcast request message to the edge device for station equipment management;

[0191] The site equipment management edge device is also used to receive the live broadcast request message and forward it to the video network recording edge device;

[0192] The video network recording edge device is used to receive the live broadcast request message, generate the media stream service information according to the live broadcast request message, and send the media stream service information to the site equipment management edge device;

[0193] The site equipment management edge device is also used to receive and forward the media stream service information to the site equipment management cloud module. Correspondingly, the site equipment management cloud module is also used to receive the media stream service information forwarded by the site equipment management edge device.

[0194] In this system embodiment, the data / information interaction between various devices and modules, as well as the intermediate data processing procedures, can be found in the foregoing. Figure 2 and Figure 3 The embodiments described herein will not be repeated here.

[0195] The system provided in this embodiment utilizes an edge device in the second network to acquire and store media stream data for use by clients within the second network. By transmitting media stream data through a local area network, it saves public network bandwidth and improves the stability and smoothness of video playback.

[0196] Furthermore, embodiments of the present invention also provide an electronic device having the above-described features. Figure 4 or Figure 5 The media streaming device shown.

[0197] Please see Figure 6 This is a schematic diagram of an electronic device provided in an optional embodiment of the present invention. The electronic device includes one or more processors 10, a memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor can process instructions executed within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface).

[0198] In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple storage devices, if needed. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.

[0199] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0200] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the media streaming method shown in the above embodiments.

[0201] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device as displayed on a mini-program landing page. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

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

[0203] The electronic device also includes input and output devices. Figure 6 (Not shown in the image). The input and output devices can be connected via a bus or other means. Further, the input device can receive input digital or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. The output device may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0204] The electronic device also includes a communication interface 30 for communicating with other devices or communication networks.

[0205] It should be understood that the electronic device may also be any one of the aforementioned SDM cloud module, AIoTVideo cloud module, client, SDM edge device, and AIoTVideo edge device, and this embodiment does not limit it.

[0206] This invention also provides a computer-readable storage medium in which the methods described in this invention can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and to be stored on a local storage medium after being downloaded via a network, so that the methods described herein can be stored on such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware.

[0207] The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; furthermore, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the media streaming method of the edge device shown in the above embodiments is implemented.

[0208] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A media streaming method based on edge devices, characterized in that, The method includes: The edge all-in-one machine receives a live broadcast request message sent from the site equipment management cloud module of the first network. The live broadcast request message includes the camera module identifier of the client requesting live broadcast from the second network. The edge all-in-one machine is connected to the second network. The edge all-in-one machine generates media stream service information based on the camera module identifier. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port for receiving media streams. The edge integrated machine sends the media stream service information to the site equipment management cloud module, so that the site equipment management cloud module requests the media stream from the target network video recorder corresponding to the camera module identifier according to the edge live broadcast address, the IP address and the port; When the target network video recorder successfully sends a response, the edge all-in-one machine receives the media stream recorded by the target network video recorder through the camera module, and transmits the media stream to the client according to the edge live streaming address.

2. The method according to claim 1, characterized in that, The edge integrated machine includes a site equipment management edge device and a video network recording edge device; The edge integrated machine receives a live broadcast request message from the site equipment management cloud module of the first network, including: The site equipment management edge device receives the live broadcast request message sent by the site equipment management cloud module; The site equipment management edge device sends the live broadcast request message to the video network recording edge device.

3. The method according to claim 2, characterized in that, The edge all-in-one machine generates media streaming service information based on the camera module identifier, including: The video network recording edge device receives the live broadcast request message sent by the site equipment management edge device; The video network recording edge device generates the media stream service information based on the camera module identifier, the IP address of the video network recording edge device, and the receiving video port of the video network recording edge device; The video network recording edge device sends the media stream service information to the site equipment management edge device.

4. The method according to claim 3, characterized in that, The edge integrated machine sends the media stream service information to the site equipment management cloud module, including: The site equipment management edge device receives the media stream service information sent by the video network recording edge device and forwards the media stream service information to the site equipment management cloud module.

5. The method according to claim 4, characterized in that, The edge integrated machine receives media streams recorded by the target network video recorder through the camera module, and transmits the media streams to the client according to the edge live streaming address, including: The video network recording edge device receives the media stream sent by the target network video recorder; When the video network recording edge device receives the edge live streaming address from the client, it sends the media stream to the client.

6. A media streaming method based on edge devices, characterized in that, The method includes: The station equipment management cloud module receives a live streaming request message sent by a client from the second network. The live streaming request message includes the identifier of the camera module requesting the live stream. The station equipment management cloud module is located in the first network. The site equipment management cloud module sends the live broadcast request message to the edge integrated machine of the second network; The site equipment management cloud module receives media stream service information from the edge all-in-one machine based on the live broadcast request message. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port used to receive media stream. The site equipment management cloud module sends the media stream service information and the camera module identifier to the video network recording cloud module of the first network, so that the video network recording cloud module requests the media stream from the target network video recorder corresponding to the camera module identifier; When the target network video recorder receives a message indicating that the request was successful, the site equipment management cloud module sends the edge live streaming address to the client, so that the client can obtain and play the media stream from the edge all-in-one machine through the edge live streaming address.

7. The method according to claim 6, characterized in that, Before the site equipment management cloud module receives the live broadcast request message sent by the client from the second network, it also includes: The site equipment management cloud module receives the device information from the edge integrated machine, the device information including the device identifier of the edge integrated machine and the identifier of the second network; The site equipment management cloud module registers the device information of the edge integrated machine and establishes a correspondence between the device identifier of the edge integrated machine and the second network identifier; The site equipment management cloud module sends the live broadcast request message to the edge all-in-one machine, including: The station equipment management cloud module searches for the existence of an edge integrated machine that corresponds to the second network identifier in at least one pre-stored correspondence. If it exists, then send the live streaming request message to the edge all-in-one machine.

8. The method according to claim 6, characterized in that, Before the site equipment management cloud module receives the live broadcast request message sent by the client from the second network, it also includes: The site equipment management cloud module receives registration information of at least one network video recorder of the second network and the camera module contained in each network video recorder. The registration information is used to identify the target network video recorder and the video module recording the media stream.

9. The method according to any one of claims 6-8, characterized in that, The edge integrated machine includes a site equipment management edge device and a video network recording edge device. The site equipment management cloud module sends the live broadcast request message to the edge integrated machine of the second network, including: The station equipment management cloud module sends the live broadcast request message to the station equipment management edge device; The site equipment management cloud module receives media stream service information from the edge all-in-one machine based on the live broadcast request message, including: The cloud module for site equipment management receives the media stream service information forwarded by the edge device for site equipment management.

10. A media streaming transmission device, characterized in that, The device includes: The first receiving unit is configured to receive a live streaming request message sent from the site equipment management cloud module of the first network. The live streaming request message includes the camera module identifier of the client requesting live streaming from the second network. The device is connected to the second network. The generation unit is used to generate media stream service information based on the camera module identifier. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port for receiving media streams. The first sending unit is used to send the media stream service information to the site equipment management cloud module, so that the site equipment management cloud module requests the media stream from the target network video recorder corresponding to the camera module identifier according to the edge live broadcast address, the IP address and the port; The first receiving unit is further configured to receive a media stream recorded by the target network video recorder through the camera module when the target network video recorder successfully responds to the request; The first sending unit is further configured to transmit the media stream to the client according to the edge live streaming address.

11. A media streaming transmission device, characterized in that, The device includes: The second receiving unit is used to receive a live streaming request message sent by a client from the second network, the live streaming request message including the identifier of the camera module requesting live streaming; The second sending unit is used to send the live streaming request message to the edge all-in-one machine of the second network; The second receiving unit is further configured to receive media stream service information fed back by the edge all-in-one machine according to the live broadcast request message, wherein the media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port for receiving media stream; The second sending unit is further configured to send the media stream service information and the camera module identifier to the video network recording cloud module of the first network, so that the video network recording cloud module requests the media stream from the target network video recorder corresponding to the camera module identifier; The second sending unit is further configured to send the edge live streaming address to the client when the second receiving unit receives a message from the target network video recorder indicating a successful request, so that the client can obtain and play the media stream from the edge all-in-one machine through the edge live streaming address.

12. A media streaming transmission system, characterized in that, The system includes: a site equipment management cloud module, a video network recording cloud module, a client, an edge integrated machine, and at least one network video recorder; wherein, the site equipment management cloud module and the video network recording cloud module are located in a first network; the client, the edge integrated machine, and the at least one network video recorder are located in a second network; The site equipment management cloud module is used to receive a live broadcast request message from the client and send the live broadcast request message to the edge all-in-one machine. The live broadcast request message includes the identifier of the camera module requesting the live broadcast. The edge all-in-one machine is used to receive the live broadcast request message, generate media stream service information according to the camera module identifier, and send the media stream service information to the site equipment management cloud module. The media stream service information includes: edge live broadcast address, edge all-in-one machine IP address, and port for receiving media stream. The site equipment management cloud module is used to receive the media stream service information and send the media stream service information and the camera module identifier to the video network recording cloud module; The video network recording cloud module is used to receive the media stream service information and the camera module identifier, and request to obtain the media stream from the target network video recorder corresponding to the camera module identifier. The target network video recorder is one of the at least one network video recorder. The edge integrated machine is used to receive the media stream recorded by the target network video recorder through the camera module; The site equipment management cloud module is used to send the edge live broadcast address to the client; The client is used to obtain and play the media stream from the edge all-in-one machine via the edge live streaming address.

13. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory and the processor are connected. The memory stores computer instructions; The processor executes the computer instructions to perform the media streaming method based on an edge device according to any one of claims 1 to 5 or any one of claims 6 to 9.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions. The computer instructions are used to cause the computer to perform the media streaming method based on an edge device according to any one of claims 1 to 5 or any one of claims 6 to 9.

Citation Information

Patent Citations

  • System and method for realizing digital document physical distribution in Internet environment

    CN102917047A

  • Multimedia data processing method and multimedia data processing system based on articulated naturality web

    CN110460811A

Cited By

  • Media stream transmission method and apparatus based on edge device, and electronic device

    EP4773613A1

  • Media stream transmission method and apparatus based on edge device, and electronic device

    WO2025044870A1