Local area network live broadcast method, live broadcast terminal, storage medium and program product

By using the multicast protocol or address resolution protocol scanning mechanism in the LAN live broadcast system to automatically discover the target media server, it solves the problems of cumbersome media server configuration and unreliable discovery, and improves the deployment efficiency and stability of live broadcast.

CN118870046APending Publication Date: 2024-10-29BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411009755.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing technology, the deployment efficiency and stability of local area network live broadcast are affected by problems such as cumbersome media server configuration, unreliable discovery mechanism, and server conflicts, resulting in low live broadcast deployment efficiency and poor stability.

Method used

Using multicast protocol (such as mDNS) or Address Resolution Protocol (ARP) scanning mechanism, the live broadcast end can automatically discover and identify the target media server, ensuring that the target media server can be found in complex network environments and establishing a stable live broadcast connection.

Benefits of technology

It simplifies the deployment process of the LAN live broadcast system, improves the deployment efficiency, effectively alleviates the problems of interruption and lag during the live broadcast, and improves the stability and user experience of the live broadcast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870046A_ABST
    Figure CN118870046A_ABST
Patent Text Reader

Abstract

The invention discloses a local area network live broadcast method, a live broadcast terminal, a storage medium and a program product, and is suitable for a local area network live broadcast system, the local area network live broadcast system comprises a live broadcast terminal, a target media server and a client which are accessed to a local area network, the live broadcast terminal is accessed to the local area network, and the method comprises the following steps: the live broadcast terminal is accessed to the local area network; determining a target media server accessed to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism; acquiring a live broadcast room number of the target media server; and pushing the live broadcast content to the client connected to the live broadcast room number through the target media server. By introducing a multicast protocol mechanism or an address resolution protocol scanning mechanism, the live broadcast terminal can automatically find and identify the target media server in the local area network, and can find the target media server and establish the live broadcast connection through a proper mechanism even in an environment where a network multicast function is limited, so that the user experience is improved. The discovery probability of the target media server is improved, and the deployment efficiency and stability of live broadcast are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a local area network live broadcast method, a live broadcast terminal, a storage medium and a program product. Background Art

[0002] With the rapid development of virtual reality (VR) technology, VR live broadcast has gradually become an important application in the fields of education, entertainment and corporate training. VR live broadcast can be divided into wide area network live broadcast and local area network live broadcast. Wide area network live broadcast is mainly aimed at end consumers, and typical application scenarios include sports event live broadcast, game live broadcast, travel live broadcast, etc. Local area network live broadcast is mainly aimed at colleges and universities, corporate customers, etc., and has been widely used in education, training, corporate meetings and other fields. It realizes real-time transmission and sharing of VR content through the local area network, and has the advantages of convenient deployment and low cost. However, there are some key technical problems in the current technology, such as cumbersome configuration of media servers, unreliable discovery mechanisms, and server conflicts. These problems seriously affect the deployment efficiency and stability of local area network live broadcast. Summary of the invention

[0003] The embodiments of the present application provide a local area network live broadcast method, a live broadcast terminal, a storage medium and a program product, which can improve the deployment efficiency and stability of the live broadcast.

[0004] On the one hand, an embodiment of the present application provides a LAN live broadcast method, which is applicable to a LAN live broadcast system, wherein the LAN live broadcast system includes a live broadcast terminal connected to the LAN, a target media server, and a client, and the method includes:

[0005] The live broadcast terminal is connected to the local area network;

[0006] The live broadcast end determines the target media server connected to the local area network based on the multicast protocol mechanism or the address resolution protocol scanning mechanism;

[0007] The live broadcast end obtains the live broadcast room number of the target media server;

[0008] The live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

[0009] On the other hand, an embodiment of the present application provides a live broadcast terminal, which is applicable to a local area network live broadcast system. The local area network live broadcast system includes a live broadcast terminal connected to the local area network, a target media server and a client. The live broadcast terminal includes:

[0010] An access unit, used for accessing a local area network;

[0011] A determination unit, configured to determine a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism;

[0012] An acquisition unit, used to acquire the live broadcast room number of the target media server;

[0013] The push unit is used to push the live content to the client connected to the target media server through the target media server.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for a processor to load to execute the local area network live broadcast method as described in any of the above embodiments.

[0015] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the local area network live broadcast method described in any of the above embodiments by calling the computer program stored in the memory.

[0016] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the local area network live broadcast method described in any of the above embodiments.

[0017] The embodiment of the present application is applicable to a local area network live broadcast system, which includes a live broadcast terminal connected to the local area network, a target media server and a client, wherein the live broadcast terminal is connected to the local area network; the live broadcast terminal determines the target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism; the live broadcast terminal obtains the live broadcast room number of the target media server; the live broadcast terminal pushes the live broadcast content to the client connected to the live broadcast room number through the target media server. The embodiment of the present application introduces a multicast protocol (such as mDNS) or an address resolution protocol (ARP) scanning mechanism, so that the live broadcast end can automatically discover and identify the target media server in the local area network; this dual mechanism not only makes the discovery of the target media server more intelligent and automated, but also greatly improves the probability of discovering the target media server in a complex network environment. The design of this dual mechanism enables the system to adapt to more types of network environments. Even in an environment where the network multicast function is limited, the target media server can be found through a suitable mechanism, and then a live broadcast connection can be established; the process of automatically discovering and connecting to the target media server greatly simplifies the deployment process of the local area network live broadcast system, thereby improving the deployment efficiency; at the same time, because the system can establish a live broadcast connection more stably, problems such as interruption and freeze in the live broadcast process are also effectively alleviated, further improving the stability of the live broadcast and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of the structure of a local area network live broadcast system provided in an embodiment of the present application.

[0020] Figure 2 A flowchart of a LAN live broadcast method provided in an embodiment of the present application.

[0021] Figure 3 A schematic diagram of the first application scenario of the LAN live broadcast method provided in an embodiment of the present application.

[0022] Figure 4 A schematic diagram of a second application scenario of the LAN live broadcast method provided in an embodiment of the present application.

[0023] Figure 5 A schematic diagram of the structure of the live broadcast terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0025] The embodiment of the present application provides a LAN live broadcast method, a live broadcast terminal, a storage medium and a program product. Specifically, the LAN live broadcast method of the embodiment of the present application can be executed by a terminal device or by a server. Among them, the computer device can be a terminal device or a server. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a smart speaker, a wearable smart device, a smart car terminal, a virtual reality device and other devices. The terminal device can also include a client, and the client can be a client of an application that can perform LAN live broadcast. For example, the client includes at least one of a program client and a web client. For example, the application can be a social application, a chat robot application, a customer service application, etc. For example, the application can also be other applications with chat functions, such as reading, shopping, video, music, games, financial management, office and other applications with chat functions. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0026] The embodiments of the present application can be applied to various application scenarios such as video production and video review.

[0027] Please refer to Figure 1 , Figure 1 The structure diagram of the LAN live broadcast system provided in the embodiment of the present application includes a live broadcast terminal 10 connected to a LAN 40, a target media server 20 and a client 30.

[0028] The live broadcast terminal 10 is used to push the collected live broadcast content (such as audio and video streams, text messages, etc.) to the target media server 20. Usually, a high-performance workstation is used as the live broadcast host of the live broadcast terminal 10, which is mainly used to run the computer (PC) end and the live broadcast application (App) of the live broadcast control software. The client 30 (such as VR equipment) connected to the local area network 40 is managed through the live broadcast control software, and the live broadcast content generated by the anchor for live broadcast is distributed to the client 30 connected to the local area network 40 through the media server. The live broadcast App is the source of the live broadcast content. The content can be in the form of two-dimensional (2D), three-dimensional (3D) or panoramic. The docking method between the live broadcast App and the live broadcast control software can be direct data exchange, or it can be completed through a third-party platform (such as a virtual reality experience platform). For example, the live broadcast control software can be VR live broadcast control software.

[0029] The target media server 20 can be run on an independent server or on a live broadcast host, and is mainly responsible for transmitting live broadcast content within the local area network 40. With the help of the efficient audio and video encoding algorithm of the target media server 20, the live broadcast content pushed by the live broadcast terminal 10 can be distributed to dozens or even hundreds of clients 30 (such as VR devices).

[0030] The client 30 is a viewing end for live broadcast, which is usually a client running live broadcast control software (such as a VR device) and is used to receive the live broadcast content forwarded by the target media server 20 so that the audience can watch the live broadcast content on the client 30.

[0031] Among them, the target media server 20 is the distribution center of the live broadcast content. The live broadcast terminal 10 and the client 30 must first connect to the target media server 20 and join the same live broadcast room before they can discover each other and complete subsequent live broadcast, communication and other activities.

[0032] The LAN 40 live broadcast system provided in the embodiment of the present application, by introducing a multicast protocol (such as mDNS) or an address resolution protocol (ARP) scanning mechanism, the live broadcast terminal 10 can automatically discover and identify the target media server 20 in the LAN 40; this dual mechanism not only makes the discovery of the target media server 20 more intelligent and automated, but also greatly improves the probability of discovering the target media server 20 in a complex network environment. The design of this dual mechanism enables the system to adapt to more types of network environments. Even in an environment where the network multicast function is limited, the target media server 20 can be found through a suitable mechanism, and then a live broadcast connection can be established; the process of automatically discovering and connecting to the target media server 20 greatly simplifies the deployment process of the LAN 40 live broadcast system, thereby improving the deployment efficiency; at the same time, because the system can establish a live broadcast connection more stably, problems such as interruption and freeze during the live broadcast process are also effectively alleviated, further improving the stability of the live broadcast and user experience.

[0033] The live broadcast terminal 10 and the client 30 may be terminal devices, and the terminal devices may be smart phones, tablet computers, laptop computers, desktop computers, smart TVs, smart speakers, wearable smart devices, smart car terminals, virtual reality devices, etc. The target media server 20 may be a server, and the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0034] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0035] See also Figures 2 to 4 , Figure 2 A flowchart of a local area network live broadcast method provided in an embodiment of the present application is provided. Figure 3 and Figure 4 Schematic diagram of application scenario of the LAN live broadcast method provided in the embodiment of the present application. The method is applicable to a LAN live broadcast system, which includes a live broadcast terminal connected to the LAN, a target media server and a client. The method can be applied to Figure 1 The live broadcast terminal 10 is shown. The method includes the following steps 110 to 140:

[0036] Step 110, the live broadcast terminal is connected to the local area network.

[0037] In the LAN live broadcast system, the live broadcast end is the device that initiates the live broadcast, such as a camera, smartphone or computer. When these devices need to broadcast live, the live broadcast end can be connected to the local network via an Ethernet cable or other LAN connection method, becoming an active node in the LAN. The process of accessing the LAN usually involves setting the network parameters of the device, such as IP address, subnet mask, gateway, etc., to ensure that the device can communicate with other devices in the LAN. After successful access, the live broadcast end will be in standby state, waiting for subsequent live broadcast operation instructions.

[0038] In some embodiments, after the live broadcast terminal accesses the local area network, the method further includes:

[0039] Detecting whether there are multiple media servers in the local area network;

[0040] If it is detected that there are multiple media servers in the local area network, determining one of the media servers as a target media server; and

[0041] The second service interface controls other media servers to be shut down, or controls other media servers to enter a dormant state.

[0042] In some embodiments, the method further comprises:

[0043] If it is detected that no media server exists in the local area network, the live broadcast end determines a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism.

[0044] For example, taking VR live broadcast in a LAN as an example, the most common reason for the failure of live broadcast deployment during VR live broadcast in a LAN is due to the negligence of the user, which leads to the connection of two or more media servers in the LAN. This problem is highly hidden. First, the media servers are unaware of each other's existence. Secondly, the media servers in the LAN will not interfere with each other and can work normally at the same time. This may cause the live broadcast end (such as a PC device) and the client (such as a VR device) of the VR live broadcast control software to access different media servers without knowing each other. That is, although the live broadcast end (such as a PC device) and the client (such as a VR device) of the VR live broadcast control software have been connected to the same LAN, they cannot establish communication.

[0045] To solve this problem, first of all, when the live broadcast starts, the media servers in the same LAN should be able to sense the existence of other media servers. Specifically, when a media server is connected to the LAN, the multicast protocol (mDNS) broadcast is not turned on first, but the VR live broadcast control software is used to detect whether there are multiple media servers in the LAN. If no media server is detected, it proves that there are no other media servers in the LAN. At this time, the subsequent step 120 can be executed, such as turning on the mDNS broadcast normally to provide services for the live broadcast end (such as PC device) and client (such as VR device) of the VR live broadcast control software in the LAN. On the contrary, if it is detected that there are multiple media servers in the LAN, one of the media servers is determined to be the target media server; and other media servers except the target media server cannot provide services, and other media servers can be controlled to be closed or controlled to enter a dormant state through the second service interface to ensure the uniqueness of the media servers in the LAN.

[0046] In actual deployment, due to network delay, there may be a media server already in the LAN, but the media server that is connected later is not detected, which leads to the existence of multiple active media servers in the LAN. To deal with this possible situation, a media server operation control function can be added to the live broadcast end (such as a PC device) of the VR live broadcast control software. Specifically, when the live broadcast end (such as a PC device) of the VR live broadcast control software is connected to the LAN, if it is found that the client (such as a VR device) cannot be searched, the live broadcast end (such as a PC device) of the VR live broadcast control software can be used to conduct a long-term in-depth search to find all the media server IP addresses in the LAN as much as possible, and return them to the user in the form of a list. At the same time, the second service interface is opened on the media server. For example, the second service interface is a web service interface, which can be expressed as closeService(), which is used to control the startup and sleep of the media server from the outside.

[0047] like Figure 3As shown, when the live broadcast end (such as a PC device) of the VR live broadcast control software finds multiple media servers, it finds the first media server, the second media server and the third media server. The live broadcast end can choose to keep one of them as the target media server, such as choosing to keep the first media server; and control other media servers to shut down, or control other media servers to enter a dormant state, such as controlling the second media server and the third media server to shut down, or enter a dormant state; these closed or dormant media servers will disconnect the connected clients (such as the first client and the second client), thereby forcing these clients to search for the media server again and access the first media server reserved by the live broadcast end of the VR live broadcast control software, so that the live broadcast end of the VR live broadcast control software and the client (such as the first client and the second client) can establish a correct connection.

[0048] Step 120: The live broadcast end determines the target media server connected to the local area network based on the multicast protocol mechanism or the address resolution protocol scanning mechanism.

[0049] In a local area network, the target media server is the device responsible for processing live content. It can receive live content pushed by the live broadcast end and distribute it to the client connected to the live broadcast room number. In order to find the target media server, the live broadcast end can use two mechanisms for scanning:

[0050] Multicast protocol mechanism (such as mDNS): The multicast protocol allows the live broadcast end to send multicast query messages to all media servers in the local area network without knowing the specific address of the target media server. The live broadcast end will send a multicast query message containing a specific identifier. After receiving the multicast query message, the target media server will respond and feedback the first response message, so that the live broadcast end can discover the target media server. This method is suitable for network environments that support multicast functions.

[0051] Address Resolution Protocol scanning mechanism (such as ARP): If the network does not support multicast, the live broadcast end will use the ARP scanning mechanism to discover the target media server. The ARP protocol is a transmission control protocol / Internet protocol (TCP / IP protocol) used to obtain the media access control (MAC) address based on the Internet Protocol Address (IP) address. It is used to convert the IP address to the MAC address. The live broadcast end will send an ARP scan request to inquire about the MAC address of all active media servers in the local area network. After receiving the ARP scan request, the media server will reply, thereby exposing its existence. By parsing the ARP reply, the live broadcast end can determine the IP address and MAC address of the media server.

[0052] Through these two mechanisms, the live broadcast end can automatically discover the media server in the local area network, laying the foundation for subsequent connection and live broadcast operations.

[0053] In some embodiments, the live broadcast end determines the target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism, including:

[0054] Detecting whether the local area network supports a multicast protocol mechanism;

[0055] If the local area network supports a multicast protocol mechanism, the live broadcast end determines a target media server connected to the local area network based on the multicast protocol mechanism; or

[0056] If the local area network does not support the multicast protocol mechanism, the live broadcast end determines the target media server connected to the local area network based on the address resolution protocol scanning mechanism.

[0057] For example, taking VR live broadcast in a LAN as an example, before the VR live broadcast in a LAN starts, the live broadcast end (such as a PC device) and the client (such as a VR device) of the VR live broadcast control software must first discover the target media server through a multicast protocol mechanism (such as mDNS), and then establish a session in the target media server to achieve subsequent communication. However, in actual deployment, some users will turn off the multicast protocol mechanism in the LAN for security reasons. This directly leads to the inability of the live broadcast end (such as a PC device) and the client (such as a VR device) of the VR live broadcast control software to establish a connection. To solve this problem, the live broadcast end (such as a PC device) and the client (such as a VR device) of the VR live broadcast control software can first perform a multicast test after accessing the LAN to check whether the LAN supports the multicast protocol mechanism; if the multicast protocol mechanism is supported, the multicast protocol mechanism (such as mDNS) can be used to discover the target media server connected to the LAN; if the multicast protocol mechanism is supported, the address resolution protocol scanning mechanism (such as ARP) can be used to discover the target media server connected to the LAN.

[0058] In some embodiments, detecting whether the local area network supports a multicast protocol mechanism includes:

[0059] Sending a test data packet to a target multicast address and a target port number in the local area network at a preset frequency within the test time window;

[0060] If a response data packet corresponding to the test data is received before the end of the test time window, it is determined that the local area network supports a multicast protocol mechanism; or

[0061] If no response data packet corresponding to the test data is received after the test time window ends, it is determined that the local area network does not support the multicast protocol mechanism.

[0062] For example, the specific method of multicast testing is to continuously send a test data packet to a target multicast address (such as the management authority multicast address 239.0.1.2) and a target port number (such as the specific port 2345) at a preset frequency within a test time window (such as 10 seconds), and at the same time turn on the monitoring of the target multicast address and the target port number. If a response data packet corresponding to the test data is received before the end of the test time window, it is determined that the local area network supports the multicast protocol mechanism, and the multicast protocol mechanism (such as mDNS) can be used to discover the target media server connected to the local area network. On the contrary, if a response data packet corresponding to the test data is not received after the end of the test time window, it is determined that the local area network does not support the multicast protocol mechanism, proving that the multicast protocol mechanism is unavailable, and it is necessary to use the second search mechanism, the address resolution protocol scanning mechanism (such as ARP) to discover the target media server connected to the local area network.

[0063] In some embodiments, the live broadcast end determines the target media server connected to the local area network based on the multicast protocol mechanism, including:

[0064] The live broadcast end sends a multicast query message to the local area network;

[0065] The live broadcast end receives a first response message corresponding to the multicast query message, where the first response message includes identification information of the target media server;

[0066] A target media server connected to the local area network is determined based on the first response message.

[0067] In some embodiments, the identification information includes an Internet Protocol IP address, and determining the target media server connected to the local area network based on the first response message includes:

[0068] Based on the IP address of the target media server carried in the first response message, a target media server connected to the local area network is determined.

[0069] Among them, when the live broadcast end starts and prepares to access the local area network, it will first check whether the local area network supports the multicast protocol (such as mDNS, SSDP, etc.) mechanism. Once it is confirmed to be supported, the live broadcast end will generate a multicast query message. The multicast query message usually contains a query request for a specific service type (such as a media server service) and relevant information of the sender (such as the IP address and port number of the live broadcast end). Then, the live broadcast end will send the multicast query message to the target multicast address in the local area network. The target multicast address is reserved for multicast communication, and all devices listening to the target multicast address can receive the multicast query message.

[0070] The media server in the local area network will monitor the messages on the target multicast address. When the media server in the local area network receives the multicast query message sent by the live broadcast end, it will check whether it provides the queried service type (i.e., media server service). If it matches, the media server will respond to the multicast query information and generate a first response message, and send the first response message back to the live broadcast end. The first response message contains the identification information of the media server so that the live broadcast end can identify and establish a connection with it.

[0071] After the live broadcast end receives the first response message, it will parse the first response message to obtain the identification information of the media server, and determine which media server can provide the required service based on the identification information contained in the message. This process can be based on a variety of identification information, such as IP address, Media Access Control Address (MAC address), server name, service type, etc.

[0072] In some embodiments, the identification information included in the first response message may be an Internet Protocol (IP) address of the target media server. An IP address is a digital label used to uniquely identify a network device in network communications. The live broadcast end determines the target media server connected to the local area network based on the IP address. Specifically, the live broadcast end may store the IP address in a memory as a target address for subsequent communications with the target media server.

[0073] After determining the IP address of the target media server, the live broadcast end can use this IP address to establish a network connection with the target media server. This usually involves initiating a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) connection request (depending on the protocol supported by the media server), and sending the necessary authentication information, configuration parameters, etc. after the connection is established so that both parties can start normal data transmission. If it is the TCP protocol, the live broadcast end will initiate a TCP handshake process; if it is the UDP protocol, the live broadcast end will directly start data transmission.

[0074] This multicast protocol mechanism can be applied to a variety of scenarios, such as live broadcast within an enterprise, distance education, online conferences, etc., where it is necessary to efficiently distribute live content within a local area network.

[0075] In some embodiments, the live broadcast end determines the target media server connected to the local area network based on the address resolution protocol scanning mechanism, including:

[0076] The live broadcast end determines the active media server based on the address resolution protocol scanning mechanism;

[0077] The live broadcast end sends a status query message to the active media server;

[0078] The live broadcast end receives a second response message fed back by the active media server in response to the status query message, and determines a target media server.

[0079] In some embodiments, the live broadcast end determines the active media server based on an address resolution protocol scanning mechanism, including:

[0080] The live broadcast end sends a scan request including a target address range to the local area network to request a scan of the media access control MAC addresses of all active media servers within the target address range;

[0081] The IP addresses of all active media servers in the local area network are determined according to the MAC addresses received and fed back from each active media server in the local area network in response to the scanning request.

[0082] In some embodiments, the live broadcast end sends a status query message to the active media server, including:

[0083] The live broadcast end sends a status query message to the first service interface of each active media server based on the IP address of each active media server, and the first service interface is used to query the working status of the media server.

[0084] In some embodiments, the live broadcast end receives a second response message fed back by the active media server in response to the status query message, and determines the target media server, including:

[0085] The live broadcast end parses the content of the second response message, and determines as a candidate media server a media server that responds to the status query message and whose working state is determined to be a normal working state based on the second response message;

[0086] The live broadcast end parses the content of the second response message to determine whether the live broadcast end, the candidate media server and the client match;

[0087] When the live broadcast end, the candidate media server and the client match, the candidate media server is determined to be the target media server.

[0088] The live broadcast end determines the active media server based on the ARP scanning mechanism.

[0089] For example, the live broadcast end will first construct an ARP scan request, which contains a target address range (such as 192.168.1.1 to 192.168.1.255), and send the ARP scan request as a broadcast message to all devices in the LAN. The ARP scan request is used to ask which device in the LAN has an IP address in the target address range and request the MAC addresses of these devices.

[0090] Then, after receiving the ARP scan request, the device in the LAN (including the media server) will check whether the IP address in the target address range in the ARP scan request matches its own IP address. If it matches, the device will send an ARP response message to the live broadcast end, which contains its MAC address. By collecting these ARP response messages, the live broadcast end can build a list containing the MAC addresses of all active devices in the LAN, such as an IP-MAC mapping table.

[0091] IP address resolution: Since the ARP response only contains the MAC address, the live broadcast end needs to use some additional mechanisms (such as IP-MAC mapping table) to convert the MAC address to the corresponding IP address to determine which devices are media servers.

[0092] Then, the live broadcast end sends a status query message to the active media server. Through the above process, the live broadcast end has known the IP addresses of all possible active media servers in the local area network. The live broadcast end will then send a status query message to their first service interface based on the IP address of each media server. The status query message is usually an HTTP request, requesting the media server to return its current working status information.

[0093] Then, the live broadcast end receives a second response message fed back by the active media server in response to the status query message, and determines the target media server.

[0094] For example, when the media server receives a status query request, it will generate a corresponding second response message based on the status query message and return it to the live broadcast end through an HTTP response. The live broadcast end will parse the content of the second response message. During the parsing process, the live broadcast end will check whether the working status of the media server is "normal" and verify whether the response contains other necessary status information (such as load conditions, resource availability, etc.). If the status is normal, the media server with a normal working status is regarded as a candidate media server.

[0095] After determining the candidate media servers, the live broadcast end will also perform a series of compatibility checks to ensure that the selected candidate media servers can meet the needs of both the live broadcast end and the client. These checks can include network latency testing, bandwidth assessment, compatibility verification, etc.

[0096] By comprehensively evaluating the status information and compatibility of all candidate media servers, the live broadcast end will eventually select an optimal media server as the target media server. The target media server will be responsible for handling the transmission and processing tasks of the live broadcast data.

[0097] For example, taking VR live broadcast in a local area network as an example, the live broadcast end broadcasts an ARP scan request containing the target address range to all hosts in the local area network, and receives a return message to determine the MAC address of the target media server. Using this feature, the IP addresses of the active media servers in the local area network can be traversed by enumeration, which is called ARP scanning. However, it is not enough to just find the IP address of the active media server in the local area network. In order to confirm whether the scanned active media server is the target media server, the media server needs to cooperate to confirm. For this purpose, the first service interface can be opened on the media server. For example, the first service interface is a web service interface, which can be expressed as queryStatus(), which is specifically used to query the working status of the media server. Only the host that responds to the status query message (such as HTTP request) is the candidate media server. In addition, considering that the media server may cause service abnormalities due to some reasons, such as service conflicts and operating system compatibility, the live broadcast end and client of the VR live broadcast control software must also parse the response content (second response message). Only the media server that works normally and the selected candidate media server that can meet the needs of the live broadcast end and the client at the same time can be used as the target media server to access the local area network.

[0098] In practical applications, security issues also need to be considered. For example, when the live broadcast end receives a response message (such as a first response message or a second response message), it should verify whether the source of the response message is credible to prevent malicious devices from impersonating the media server to respond. In addition, after the connection is established, appropriate security measures should also be taken to protect the security, integrity and availability of data transmission.

[0099] For example, the credibility of the source of the response message can be verified by a digital signature. The live broadcast end can require the media server to include a digital signature in the response message. The digital signature is generated by the media server using its private key to encrypt the first page response message (or its summary). After receiving the first response message, the live broadcast end will use the media server's public key to verify the signature. If the signature is valid, it means that the first response message does come from the media server holding the corresponding private key, thereby verifying the credibility of the source of the response message.

[0100] For example, the credibility of the source of the response message can be verified through a certificate. In more complex scenarios, the media server can have a Secure Sockets Layer / Transport Layer Security (SSL / TLS) certificate issued by a trusted certificate authority (CA). Before establishing a connection, the live broadcast end can ask the media server to provide its certificate and confirm the identity of the media server by verifying the integrity and validity of the certificate chain. This includes checking whether the certificate is issued by a trusted CA, whether the certificate is expired, whether the domain name in the certificate matches the domain name of the media server, etc.

[0101] For example, the security of data transmission can be ensured through encrypted communication. The communication between the live broadcast end and the media server should be carried out through encryption protocols, such as the Secure Sockets Layer / Transport Layer Security (SSL / TLS) protocol. These protocols can ensure that the transmitted live content data is encrypted in the network, and even if the data is intercepted, it cannot be easily decrypted by unauthorized parties. In addition, the SSL / TLS protocol can also provide identity authentication to ensure that the identities of both parties in the communication are credible.

[0102] For example, data integrity verification can also be performed. In order to prevent the live content data from being tampered with during transmission, the live broadcast end and the target media server can use message authentication codes (MACs) or hash functions to verify the integrity of the live content data during the communication process. Before sending the live content data, the live broadcast end will calculate the hash value or MACs of the live content data, and send the hash value or MACs together with the live content data to the recipient. After receiving the live content data, the target media server will recalculate the hash value or MACs of the live content data and compare it with the received hash value or MACs. If the two are consistent, it means that the live content data has not been tampered with during transmission.

[0103] For example, access control and permission management can also be performed between the live broadcast end and the target media server. Only authorized live broadcast ends can access resources on the target media server. This can be achieved by configuring access control lists (ACLs) on the target media server or using identity authentication and authorization mechanisms. At the same time, the media server should be able to record and audit all access attempts so that they can be traced and investigated when security incidents occur.

[0104] For example, the live broadcast end and the target media server can also regularly update their software versions and patches to fix known security vulnerabilities and defects. This includes updates to all related components such as the operating system, network protocol stack, encryption library, etc. At the same time, you should pay close attention to security announcements and vulnerability information so that you can respond quickly and take corresponding security measures when new vulnerabilities are discovered.

[0105] Step 130: the live broadcast end obtains the live broadcast room number of the target media server.

[0106] This step involves the live broadcast end obtaining a unique room number for this live broadcast from the determined target media server. The live broadcast room number is an identifier that the live broadcast end needs to use when joining a live broadcast session with a client. It allows the live broadcast end to accurately distribute the video stream to all clients that request to join a specific live broadcast room. The room number is usually assigned by the media server and may contain information about the live broadcast content, time, format, etc.

[0107] The live broadcast room number is a unique identifier used by the target media server to identify different live broadcast content. The live broadcast room number is an identifier that the live broadcast end and the client need to use when joining a live broadcast session. It allows the live broadcast end to accurately distribute the video stream to all clients that request to join a specific live broadcast room. After discovering the target media server, the live broadcast end needs to obtain the live broadcast room number of the target media server in order to push the live broadcast content to the correct location. The live broadcast room number is usually assigned by the media server at startup and can be obtained through a specific interface or protocol. When assigning the live broadcast room number, the media server can also assign information about the time, format, and other aspects of the live broadcast content.

[0108] In some embodiments, the first response message further includes a live broadcast room number of the target media server, and the live broadcast room number is generated based on the identification information of the target media server;

[0109] The live broadcast end obtains the live broadcast room number of the target media server, including:

[0110] Based on the live broadcast room number of the target media server carried in the first response message, the live broadcast end obtains the live broadcast room number of the target media server.

[0111] In some embodiments, the second response message further includes a live broadcast room number of the target media server, and the live broadcast room number is generated based on the identification information of the target media server;

[0112] The live broadcast end obtains the live broadcast room number of the target media server, including:

[0113] Based on the live broadcast room number of the target media server carried in the second response message, the live broadcast end obtains the live broadcast room number of the target media server.

[0114] In some embodiments, the identification information also includes a MAC address, and the live broadcast room number is generated based on the MAC address of the target media server through an information digest encryption algorithm.

[0115] For example, traditional LAN VR live broadcasts basically use fixed room numbers to establish communications, which makes it impossible for the live broadcast backend to find the live broadcast plan described by the user based on the room number provided by the user, which brings great inconvenience to user support. Therefore, it is necessary to assign a different room number to each LAN live broadcast. However, due to the closed nature of LAN live broadcasts, it is impossible to assign room numbers from the backend like WAN live broadcasts. There are two problems that need to be solved here. One is how to ensure that the room numbers generated by different LANs must be different to avoid confusion in the backend, and the other is how to ensure that the client can correctly obtain the unique room number for this live broadcast before accessing the media server.

[0116] For question one, you can use the MAC address of the media server as the basis and use an information digest encryption algorithm (such as the md5 encryption algorithm) to obtain the unique room number (live broadcast room number) for this live broadcast. Since the MAC address is globally unique, the generated live broadcast room number is also guaranteed to be unique. The role of the md5 encryption algorithm is to ensure security and prevent the MAC address of the target media server from being leaked, thereby causing network security problems.

[0117] For the second question, the first response message (such as mDNS response message) or the second response message (such as HTTP response message) can carry the characteristic of short messages, and the room number information generated above can be encapsulated into the first response message or the second response message. In this way, the live broadcast end and the client of the VR live broadcast control software can not only discover the target media server, but also determine the live broadcast room number used to access the target server, so as to correctly establish the connection.

[0118] Step 140: the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

[0119] After obtaining the live broadcast room number of the target media server, the live broadcast end will establish a connection with the target media server and start pushing the live broadcast content to the target media server. The live broadcast content can be multimedia data such as audio and video data streams, images, text messages, etc., which are transmitted through specific encoding and transmission protocols. The live broadcast end will encapsulate the live broadcast content into data packets that meet the requirements of the media server, and distribute these encoded live broadcast contents to all clients connected to the same live broadcast room number through the target media server. The client, that is, the terminal device running the VR live broadcast control software, joins the session through the live broadcast room number of the target media server, and after receiving the data packet, it will decode and render to present the live broadcast content. This process relies on the efficient audio and video encoding and transmission algorithms of the media server, ensuring that even when dozens or even hundreds of clients (such as VR devices) are online at the same time, the live broadcast content can reach the corresponding client of each viewer smoothly and unimpeded. This process needs to ensure the real-time and stability of the data to ensure the smoothness of the live broadcast and user experience.

[0120] In some embodiments, before the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server, the method further includes:

[0121] Obtain the live broadcast room number, country code and version number corresponding to the live broadcast terminal;

[0122] Obtain the live broadcast room number, country code and version number corresponding to the client;

[0123] If the live broadcast end matches the live broadcast room number corresponding to the client, the live broadcast end matches the country code corresponding to the client, and the live broadcast end matches the version number corresponding to the client, then the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

[0124] For example, the live broadcast control software involves two parts, the live broadcast end and the client. The upgrade and maintenance of these two parts of the software are independent of each other. It is very likely that the LAN live broadcast will be unavailable due to version mismatch. In addition, due to the legal and regulatory restrictions of different countries and regions, there are different versions of the live broadcast end (such as PC devices) and the client (such as VR devices) of the live broadcast control software, which cannot be mixed to avoid compliance risks. For example, the live broadcast end of the country A version of the live broadcast control software cannot be used to connect to the client of the country B version. If the version is checked manually, it will take a lot of effort. To this end, it is necessary to design a detection mechanism to ensure the compatibility of the live broadcast end and the client of the live broadcast control software and the compliance of the connection, and when a mismatch is detected, a prompt message can be output to prompt the user.

[0125] Before the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server, it will perform a series of compatibility and compliance checks to ensure the compatibility and compliance between the live broadcast end and the client.

[0126] Among them, for compatibility issues, the live broadcast end and the client adopt a unified version naming rule, which usually includes major version, minor version and patch version. The major version number is used to ensure basic functional compatibility, while the minor version and patch version are usually used for iterative updates of functions and bug fixes. Compatibility mainly depends on the consistency of the major version. As long as the major version is the same, the live broadcast end and the client can be basically compatible, even if the minor version and patch version are different.

[0127] Before establishing a connection, the version number of the live broadcast end and the version number of the client will be checked first. Then the main version numbers of both parties will be compared to see if they are consistent. If they are consistent, it is considered that the two are functionally compatible and the subsequent connection process can continue; if they are inconsistent, a prompt message will be output immediately to inform the user that there is a version incompatibility problem and recommend upgrading to a compatible version.

[0128] Among them, regarding compliance issues, the live broadcast control software follows a set of standardized country code conventions to ensure that the live broadcast end and the client can only run under the same country code to avoid violating the laws and regulations of a specific country or region.

[0129] Before establishing a connection, the live broadcast end and the client will mutually verify the country code submitted by the other party. Only when the country codes of both parties are completely consistent will the connection process be allowed to continue; if they do not match, a prompt message will be output to inform the user that there is a problem with the country code mismatch and the connection will be blocked to avoid compliance risks.

[0130] Among them, the live broadcast room number is the key identifier for the live broadcast end to establish a connection with the client. During the live broadcast process, the live broadcast end will push live content to the client with a specific live broadcast room number. Therefore, ensuring that the live broadcast room number corresponding to the live broadcast end and the client matches is a prerequisite for establishing an effective connection.

[0131] When trying to establish a connection, the live broadcast end and the client will confirm each other's live broadcast room number. Only when the room numbers submitted by both parties are exactly the same, the connection is allowed to be established; if they do not match, a prompt message will be output to inform the user that they may be connected to the wrong room, and it is recommended to check the room number and try again.

[0132] For example, in order to facilitate the live broadcast end and client of the live broadcast control software to verify compatibility issues by themselves, so as to promptly prompt the user when incompatibility issues occur, the target media server will provide a third service interface. For example, the third service interface is a web service interface, which can be expressed as queryRooms(). Through the third service interface, the live broadcast end and the client can query the room information currently established on the target media server, including the live broadcast room number, country code and version number of each room.

[0133] For example, Figure 4 As shown, two rooms, Room A and Room B, are created in the target media server, and the live broadcast end or the client (the first client and the second client) respectively sends query requests to the target media server by calling the queryRooms() interface. For example, the live broadcast end can obtain the live broadcast room number, country code and version number corresponding to itself from the local live broadcast end, and then the query request sent by the live broadcast end is used to query the live broadcast room number, country code and version number of the client accessing the target media server. For example, the first client (or the second client) can obtain the live broadcast room number, country code and version number corresponding to itself from the local client, and then the query request sent by the first client (or the second client) is used to query the live broadcast room number, country code and version number of the live broadcast end accessing the target media server.

[0134] The target media server will respond to each query request and return the corresponding third response message. The live broadcast end and the client will verify whether the live broadcast end and the client meet the matching requirements of the live broadcast room number, country code and version number based on the returned third response message.

[0135] If the verification result shows a mismatch, the live broadcast end or client will output corresponding prompt information based on the specific reason for the mismatch. These prompt information helps users quickly locate the problem and take corresponding solutions.

[0136] If the live broadcast room numbers corresponding to the live broadcast end and the client match, the country codes corresponding to the live broadcast end and the client match, and the version numbers corresponding to the live broadcast end and the client match, the target media server allows the client to enter the designated room and establish a connection with the live broadcast end, and the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

[0137] Through the design and implementation of the above mechanism, the LAN live broadcast system can effectively ensure the compatibility and connection compliance between the live broadcast end and the client, improve user experience, reduce compliance risks, and provide strong guarantees for the smooth transmission of live broadcast content.

[0138] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0139] The embodiment of the present application is applicable to a local area network live broadcast system, which includes a live broadcast terminal connected to the local area network, a target media server and a client, wherein the live broadcast terminal is connected to the local area network; the live broadcast terminal determines the target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism; obtains the live broadcast room number of the target media server; and the live broadcast terminal pushes the live broadcast content to the client connected to the live broadcast room number through the target media server. The embodiment of the present application introduces a multicast protocol (such as mDNS) or an address resolution protocol (ARP) scanning mechanism, so that the live broadcast end can automatically discover and identify the target media server in the local area network; this dual mechanism not only makes the discovery of the target media server more intelligent and automated, but also greatly improves the probability of discovering the target media server in a complex network environment. The design of this dual mechanism enables the system to adapt to more types of network environments. Even in an environment where the network multicast function is limited, the target media server can be found through a suitable mechanism, and then a live broadcast connection can be established; the process of automatically discovering and connecting to the target media server greatly simplifies the deployment process of the local area network live broadcast system, thereby improving the deployment efficiency; at the same time, because the system can establish a live broadcast connection more stably, problems such as interruption and freeze in the live broadcast process are also effectively alleviated, further improving the stability of the live broadcast and user experience.

[0140] In order to better implement the LAN live broadcast method of the embodiment of the present application, the embodiment of the present application also provides a live broadcast terminal. Figure 5 , Figure 5 A schematic diagram of the structure of a live broadcast terminal provided in an embodiment of the present application. The live broadcast terminal 200 is applicable to a live broadcast terminal in a local area network live broadcast system, and the local area network live broadcast system includes a live broadcast terminal connected to a local area network, a target media server, and a client. The live broadcast terminal 200 may include:

[0141] An access unit 210, used for accessing a local area network;

[0142] A determination unit 220, configured to determine a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism;

[0143] The acquisition unit 230 is used to acquire the live broadcast room number of the target media server;

[0144] The push unit 240 is configured to push live content to a client connected to the target media server through the target media server.

[0145] In some embodiments, the determining unit 220 may be configured to:

[0146] Detecting whether the local area network supports a multicast protocol mechanism;

[0147] If the local area network supports a multicast protocol mechanism, determining a target media server connected to the local area network based on the multicast protocol mechanism; or

[0148] If the local area network does not support the multicast protocol mechanism, a target media server connected to the local area network is determined based on an address resolution protocol scanning mechanism.

[0149] In some embodiments, when detecting whether the local area network supports a multicast protocol mechanism, the determining unit 220 may be used to:

[0150] Sending a test data packet to a target multicast address and a target port number in the local area network at a preset frequency within the test time window;

[0151] If a response data packet corresponding to the test data is received before the end of the test time window, it is determined that the local area network supports a multicast protocol mechanism; or

[0152] If no response data packet corresponding to the test data is received after the test time window ends, it is determined that the local area network does not support the multicast protocol mechanism.

[0153] In some embodiments, when determining the target media server connected to the local area network based on the multicast protocol mechanism, the determining unit 220 can be used to:

[0154] Sending a multicast query message to the local area network;

[0155] receiving a first response message corresponding to the multicast query message, wherein the first response message includes identification information of a target media server;

[0156] A target media server connected to the local area network is determined based on the first response message.

[0157] In some embodiments, the identification information includes an Internet Protocol IP address, and when the determination unit 220 determines the target media server connected to the local area network based on the first response message, it can be used to:

[0158] Based on the IP address of the target media server carried in the first response message, a target media server connected to the local area network is determined.

[0159] In some embodiments, the first response message further includes a live broadcast room number of the target media server, and the live broadcast room number is generated based on the identification information of the target media server;

[0160] The acquisition unit 230 may be used to:

[0161] Based on the live broadcast room number of the target media server carried in the first response message, the live broadcast room number of the target media server is acquired.

[0162] In some embodiments, when determining the target media server connected to the local area network based on the address resolution protocol scanning mechanism, the determining unit 220 can be used to:

[0163] Determine active media servers based on the ARP scanning mechanism;

[0164] Sending a status query message to the active media server;

[0165] A second response message fed back by the active media server in response to the status query message is received, and a target media server is determined.

[0166] In some embodiments, when determining an active media server based on an address resolution protocol scanning mechanism, the determining unit 220 may be configured to:

[0167] Sending a scan request including a target address range to the local area network to request scanning of media access control MAC addresses of all active media servers within the target address range;

[0168] The IP addresses of all active media servers in the local area network are determined according to the MAC addresses received and fed back from each active media server in the local area network in response to the scanning request.

[0169] In some embodiments, when sending a status query message to an active media server, the determination unit 220 can be used to: send a status query message to a first service interface of each active media server based on the IP address of each active media server, wherein the first service interface is used to query the working status of the media server.

[0170] In some embodiments, when receiving the second response message fed back by the active media server in response to the status query message and determining the target media server, the determining unit 220 may be configured to:

[0171] parsing the content of the second response message, and determining a media server that responds to the status query message and whose working status is determined to be a normal working status based on the second response message as a candidate media server;

[0172] Parsing the content of the second response message to determine whether the live broadcast end, the candidate media server, and the client match;

[0173] When the live broadcast end, the candidate media server and the client match, the candidate media server is determined to be the target media server.

[0174] In some embodiments, the second response message further includes a live broadcast room number of the target media server, and the live broadcast room number is generated based on the identification information of the target media server;

[0175] The acquisition unit 230 may be configured to acquire the live broadcast room number of the target media server based on the live broadcast room number of the target media server carried in the second response message.

[0176] In some embodiments, the identification information also includes a MAC address, and the live broadcast room number is generated based on the MAC address of the target media server through an information digest encryption algorithm.

[0177] In some embodiments, the determining unit 220 may also be used to:

[0178] After the live broadcast terminal is connected to the local area network, detecting whether there are multiple media servers in the local area network;

[0179] If it is detected that there are multiple media servers in the local area network, determining one of the media servers as a target media server; and

[0180] The second service interface controls other media servers to be shut down, or controls other media servers to enter a dormant state.

[0181] In some embodiments, the determining unit 220 is configured to:

[0182] If it is detected that no media server exists in the local area network, the live broadcast end determines a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism.

[0183] In some embodiments, before the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server, the push unit 240 can also be used to:

[0184] Obtain the live broadcast room number, country code and version number corresponding to the live broadcast terminal;

[0185] Obtain the live broadcast room number, country code and version number corresponding to the client;

[0186] If the live broadcast end matches the live broadcast room number corresponding to the client, the live broadcast end matches the country code corresponding to the client, and the live broadcast end matches the version number corresponding to the client, then the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

[0187] It should be noted that the functions of each unit in the live broadcast terminal 200 in the embodiment of the present application can correspond to the specific implementation method of any embodiment in the above-mentioned method embodiments, and will not be repeated here.

[0188] Each unit in the live broadcast terminal 200 can be implemented in whole or in part by software, hardware, or a combination thereof. Each unit can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each unit.

[0189] In some embodiments, the present application further provides a computer-readable storage medium for storing a computer program. The computer-readable storage medium can be applied to a terminal device or a server, and the computer program enables the terminal device or the server to execute the corresponding process in the local area network live broadcast method in the embodiment of the present application, which will not be described here for the sake of brevity.

[0190] In some embodiments, the present application further provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the corresponding process in the local area network live broadcast method in the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0191] The present application also provides a computer program, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the corresponding process in the local area network live broadcast method in the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0192] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0193] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0194] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 this application.

[0195] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0196] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0197] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0198] In addition, each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0199] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks or optical disks.

[0200] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A local area network live broadcast method, characterized in that: Applicable to a local area network live broadcast system, the local area network live broadcast system includes a live broadcast terminal connected to the local area network, a target media server and a client, and the method includes: The live broadcast terminal is connected to the local area network; The live broadcast end determines the target media server connected to the local area network based on the multicast protocol mechanism or the address resolution protocol scanning mechanism; The live broadcast end obtains the live broadcast room number of the target media server; The live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

2. The LAN live broadcast method according to claim 1, characterized in that: The live broadcast end determines the target media server connected to the local area network based on the multicast protocol mechanism or the address resolution protocol scanning mechanism, including: Detecting whether the local area network supports a multicast protocol mechanism; If the local area network supports a multicast protocol mechanism, the live broadcast end determines a target media server connected to the local area network based on the multicast protocol mechanism; or If the local area network does not support the multicast protocol mechanism, the live broadcast end determines the target media server connected to the local area network based on the address resolution protocol scanning mechanism.

3. The LAN live broadcast method as claimed in claim 2, characterized in that: The detecting whether the local area network supports a multicast protocol mechanism includes: Sending a test data packet to a target multicast address and a target port number in the local area network at a preset frequency within the test time window; If a response data packet corresponding to the test data is received before the end of the test time window, it is determined that the local area network supports a multicast protocol mechanism; or If no response data packet corresponding to the test data is received after the test time window ends, it is determined that the local area network does not support the multicast protocol mechanism.

4. The LAN live broadcast method as claimed in claim 2, characterized in that: The live broadcast end determines a target media server connected to the local area network based on a multicast protocol mechanism, including: The live broadcast end sends a multicast query message to the local area network; The live broadcast end receives a first response message corresponding to the multicast query message, where the first response message includes identification information of the target media server; A target media server connected to the local area network is determined based on the first response message.

5. The LAN live broadcast method as claimed in claim 4, characterized in that: The identification information includes an Internet Protocol IP address, and the determining, based on the first response message, a target media server accessing the local area network includes: Based on the IP address of the target media server carried in the first response message, a target media server connected to the local area network is determined.

6. The LAN live broadcast method as claimed in claim 4, characterized in that: The first response message also includes a live broadcast room number of the target media server, where the live broadcast room number is generated based on the identification information of the target media server; The live broadcast end obtains the live broadcast room number of the target media server, including: Based on the live broadcast room number of the target media server carried in the first response message, the live broadcast end obtains the live broadcast room number of the target media server.

7. The LAN live broadcast method as claimed in claim 2, characterized in that: The live broadcast end determines the target media server connected to the local area network based on the address resolution protocol scanning mechanism, including: The live broadcast end determines the active media server based on the address resolution protocol scanning mechanism; The live broadcast end sends a status query message to the active media server; The live broadcast end receives a second response message fed back by the active media server in response to the status query message, and determines a target media server.

8. The LAN live broadcast method according to claim 7, characterized in that: The live broadcast end determines the active media server based on the address resolution protocol scanning mechanism, including: The live broadcast end sends a scan request including a target address range to the local area network to request a scan of the media access control MAC addresses of all active media servers within the target address range; The IP addresses of all active media servers in the local area network are determined according to the MAC addresses received and fed back from each active media server in the local area network in response to the scanning request.

9. The LAN live broadcast method as claimed in claim 8, characterized in that: The live broadcast end sends a status query message to the active media server, including: The live broadcast end sends a status query message to the first service interface of each active media server based on the IP address of each active media server, and the first service interface is used to query the working status of the media server.

10. The LAN live broadcast method according to claim 9, characterized in that: The live broadcast end receives a second response message fed back by the active media server in response to the status query message, and determines a target media server, including: The live broadcast end parses the content of the second response message, and determines as a candidate media server a media server that responds to the status query message and whose working state is determined to be a normal working state based on the second response message; The live broadcast end parses the content of the second response message to determine whether the live broadcast end, the candidate media server and the client match; When the live broadcast end, the candidate media server and the client match, the candidate media server is determined to be the target media server.

11. The LAN live broadcast method according to claim 7, characterized in that: The second response message further includes a live broadcast room number of the target media server, where the live broadcast room number is generated based on the identification information of the target media server; The live broadcast end obtains the live broadcast room number of the target media server, including: Based on the live broadcast room number of the target media server carried in the second response message, the live broadcast end obtains the live broadcast room number of the target media server.

12. The local area network live broadcast method according to claim 6 or 11, characterized in that: The identification information also includes a MAC address, and the live broadcast room number is generated based on the MAC address of the target media server through an information digest encryption algorithm.

13. The local area network live broadcast method according to any one of claims 1 to 11, characterized in that: After the live broadcast end is connected to the LAN, it also includes: Detecting whether there are multiple media servers in the local area network; If it is detected that there are multiple media servers in the local area network, determining one of the media servers as a target media server; and The second service interface controls other media servers to be shut down, or controls other media servers to enter a dormant state.

14. The LAN live broadcast method according to claim 13, characterized in that: The method further comprises: If it is detected that no media server exists in the local area network, the live broadcast end determines a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism.

15. The LAN live broadcast method according to any one of claims 1 to 11, characterized in that: Before the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server, the method further includes: Obtain the live broadcast room number, country code and version number corresponding to the live broadcast terminal; Obtain the live broadcast room number, country code and version number corresponding to the client; If the live broadcast end matches the live broadcast room number corresponding to the client, the live broadcast end matches the country code corresponding to the client, and the live broadcast end matches the version number corresponding to the client, then the live broadcast end pushes the live broadcast content to the client connected to the live broadcast room number through the target media server.

16. A live broadcast terminal, characterized in that: Applicable to a local area network live broadcast system, the local area network live broadcast system includes a live broadcast terminal connected to the local area network, a target media server and a client, and the live broadcast terminal includes: An access unit, used for accessing a local area network; A determination unit, configured to determine a target media server connected to the local area network based on a multicast protocol mechanism or an address resolution protocol scanning mechanism; An acquisition unit, used to acquire the live broadcast room number of the target media server; The push unit is used to push the live content to the client connected to the target media server through the target media server.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the local area network live broadcast method as described in any one of claims 1-15.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the LAN live broadcast method described in any one of claims 1-15 is implemented.