A live broadcast method, device, equipment and medium
By detecting live broadcast nodes and assigning IP addresses, and optimizing multicast rules, the problem of insufficient bandwidth when multiple devices in the LAN are viewed at the same time is solved, and stable and high-quality live broadcast is achieved, reducing costs.
Patent Information
- Application Number
- CN202310002311.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-03
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-01-03
AI Technical Summary
When multiple devices on the LAN watch live broadcasts at the same time, the problem of insufficient bandwidth will lead to high costs or reduced video quality, affecting the viewing experience.
By detecting the live broadcast node assigned by the user node, determining its corresponding live broadcast IP address, and grouping it according to the IP address, setting current limit rules to optimize multicasting and ensuring stable live broadcast playback.
It ensures the stability and quality of live video without increasing bandwidth costs and improves the user's viewing experience.
Smart Images

Figure CN116156210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a live broadcasting method, device, equipment and medium. Background Art
[0002] When multiple devices in a local area network need to watch live broadcasts at the same time, insufficient bandwidth will occur, affecting live broadcast viewing. There are generally two ways to do this: one is to increase the bandwidth, and the other is to compress the video stream. However, the cost of commercial broadband is very high. Increasing the bandwidth will increase the cost a lot. Compressing the video stream will cause problems such as unclear video images or low resolution, affecting the viewing experience. Summary of the invention
[0003] One or more embodiments of the present specification provide a live broadcasting method, apparatus, device and medium for solving the technical problems raised by the background technology.
[0004] One or more embodiments of this specification adopt the following technical solutions:
[0005] One or more embodiments of this specification provide a live broadcasting method, including:
[0006] When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node;
[0007] Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0008] Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node;
[0009] Live broadcast is performed on the current user node in the designated multicast.
[0010] Optionally, before detecting the live broadcast node allocated to the current user node, the method further includes:
[0011] A plurality of live broadcast nodes are set for the designated live broadcast, and allocation rules for allocating the live broadcast nodes to each user node are set.
[0012] Optionally, the allocation rule for allocating the live broadcast node to each user node includes:
[0013] Randomly assign the first live broadcast node to the designated user node;
[0014] Determine a first live broadcast IP address corresponding to the designated user node according to the first live broadcast node;
[0015] Determine whether the number of user nodes at which the first live broadcast IP address is located exceeds a preset value;
[0016] If so, reallocate the live broadcast node to the designated user node.
[0017] Optionally, before grouping the current user node according to the live broadcast IP address and determining the designated multicast corresponding to the current user node, the method further includes:
[0018] A plurality of multicasts are set for the live broadcast IP address, and flow limiting rules are set for the plurality of multicasts.
[0019] Optionally, grouping the current user node according to the live broadcast IP address to determine the designated multicast corresponding to the current user node includes:
[0020] Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses;
[0021] The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
[0022] Optionally, grouping the current user node according to the current limiting rule and the number of user nodes of the multiple multicasts, and determining the designated multicast corresponding to the current user node includes:
[0023] Determine, according to the current limiting rule and the number of user nodes of the multiple multicasts, a to-be-allocated multicast having a number of user nodes lower than a preset threshold;
[0024] The current user node is assigned to the multicast to be assigned, and a designated multicast corresponding to the current user node is determined.
[0025] One or more embodiments of this specification provide a live broadcast device, the device comprising:
[0026] A live broadcast node detection unit, which detects the live broadcast node allocated to the current user node when the current user node enters the designated live broadcast;
[0027] An IP address determining unit, for determining a live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0028] A multicast determination unit, grouping the current user node according to the live IP address, and determining a designated multicast corresponding to the current user node;
[0029] A live broadcast unit performs live broadcast to the current user node in the designated multicast.
[0030] Optionally, the device further comprises: a setting unit;
[0031] The setting unit sets a plurality of live broadcast nodes for the designated live broadcast, and sets an allocation rule for allocating the live broadcast nodes to each user node.
[0032] One or more embodiments of this specification provide a live broadcasting device, including:
[0033] at least one processor; and,
[0034] a memory communicatively connected to the at least one processor; wherein,
[0035] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0036] When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node;
[0037] Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0038] Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node;
[0039] Live broadcast is performed on the current user node in the designated multicast.
[0040] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0041] When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node;
[0042] Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0043] Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node;
[0044] Live broadcast is performed on the current user node in the designated multicast.
[0045] At least one of the above-mentioned technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: when the current user node performs a designated live broadcast, the embodiments of this specification can allocate a stable live broadcast node for the current user node, determine the live broadcast IP address corresponding to the live broadcast node, and then group the current user node according to the live broadcast IP address to obtain the designated multicast of the current user node, so that the current user node can be stably broadcast live in the designated multicast. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0047] Figure 1 A flowchart of a live broadcasting method provided for one or more embodiments of this specification;
[0048] Figure 2 A schematic diagram of the structure of a live broadcasting device provided in one or more embodiments of this specification;
[0049] Figure 3 A schematic diagram of the structure of a live broadcasting device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0050] The embodiments of this specification provide a live broadcasting method, apparatus, device and medium.
[0051] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0052] Figure 1 This is a flowchart of a live broadcast method provided in one or more embodiments of this specification, and the process can be executed by a live broadcast system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0053] The method steps of the embodiment of this specification are as follows:
[0054] S102, when the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node.
[0055] In an embodiment of the present specification, before detecting the live broadcast node assigned to the current user node, multiple live broadcast nodes can be set for the designated live broadcast. The multiple live broadcast nodes can provide live broadcast for different user nodes entering the same live broadcast, and set allocation rules for allocating live broadcast nodes to each user node.
[0056] Furthermore, the allocation rules for allocating live broadcast nodes to each user node include:
[0057] A first live broadcast node can be randomly assigned to a designated user node first; then, a first live broadcast IP address corresponding to the designated user node is determined based on the first live broadcast node; then, it is determined whether the number of user nodes at the first live broadcast IP address exceeds a preset value; if so, a live broadcast node is reallocated to the designated user node. When the number of user nodes at the first live broadcast IP address exceeds the preset value, it can be indicated that the number of user nodes at the current first live broadcast node will affect the live broadcast, and the current user node needs to be assigned to other live broadcast nodes with fewer user nodes.
[0058] S104: Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node.
[0059] In the embodiments of the present specification, the live broadcast IP address corresponding to the current user node can be determined according to the parameter information pre-configured in the live broadcast node, that is, the corresponding live broadcast IP address can be included in the parameter information.
[0060] S106, grouping the current user nodes according to the live broadcast IP address, and determining the designated multicast corresponding to the current user nodes.
[0061] In the embodiment of the present specification, the current user node is grouped according to the live IP address, and before determining the designated multicast corresponding to the current user node, multiple multicasts can be set for the live IP address, and flow limiting rules can be set for the multiple multicasts. The live content can be sent to each user node through each multicast.
[0062] It should be noted that the embodiments of this specification can group the same live IP address and divide different user nodes into different multicasts for live broadcasting. The number of user nodes in the multicast can be limited so that each user node can watch more stably during live broadcasting.
[0063] Further, in the embodiment of the present specification, the current user node is grouped according to the live broadcast IP address, and the designated multicast corresponding to the current user node is determined, including:
[0064] Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses;
[0065] The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
[0066] Furthermore, in an embodiment of the present specification, the current user node is grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and when the designated multicast corresponding to the current user node is determined, a to-be-allocated multicast whose number of user nodes is lower than a preset threshold can be determined according to the current limiting rule and the number of user nodes of the multiple multicasts; the current user node is allocated to the to-be-allocated multicast, and the designated multicast corresponding to the current user node is determined.
[0067] It should be noted that different multicasts can be better deployed through the above method, so that user nodes in different multicasts can better perform live broadcasting, wherein each multicast can be regarded as a sender and each user node can be regarded as a receiver.
[0068] S108: Live broadcast the current user node in the designated multicast.
[0069] It should be noted that, in the embodiments of the present specification, when the current user node performs a designated live broadcast, a stable live broadcast node can be allocated to the current user node, and the live broadcast IP address corresponding to the live broadcast node can be determined, and then the current user node can be grouped according to the live broadcast IP address to obtain the designated multicast of the current user node, so that the current user node can be stably broadcast live in the designated multicast.
[0070] Figure 2 The present invention is a structural diagram of a live broadcasting device provided for one or more embodiments of the present specification, wherein the device comprises: a live broadcasting node detection unit 202, an IP address determination unit 204, a multicast determination unit 206 and a live broadcasting unit 208.
[0071] A live broadcast node detection unit 202 detects a live broadcast node allocated to the current user node when the current user node enters a designated live broadcast;
[0072] An IP address determining unit 204 determines a live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0073] The multicast determination unit 206 groups the current user node according to the live IP address and determines the designated multicast corresponding to the current user node;
[0074] The live broadcast unit 208 performs live broadcast to the current user node in the designated multicast.
[0075] Optionally, the device further comprises: a setting unit;
[0076] The setting unit sets a plurality of live broadcast nodes for the designated live broadcast, and sets an allocation rule for allocating the live broadcast nodes to each user node.
[0077] Figure 3 A schematic diagram of the structure of a live broadcast device provided for one or more embodiments of this specification includes:
[0078] at least one processor; and,
[0079] a memory communicatively connected to the at least one processor; wherein,
[0080] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0081] When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node;
[0082] Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0083] Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node;
[0084] Live broadcast is performed on the current user node in the designated multicast.
[0085] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0086] When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node;
[0087] Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node;
[0088] Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node;
[0089] Live broadcast is performed on the current user node in the designated multicast.
[0090] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0091] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0092] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A live broadcast method, characterized in that: The method comprises: When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node; Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node; Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node; Performing live broadcasting for the current user node in the designated multicast; Before grouping the current user nodes according to the live IP address and determining the designated multicast corresponding to the current user nodes, the method further includes: Setting multiple multicasts for the live broadcast IP address, and setting flow limiting rules for the multiple multicasts; The grouping the current user node according to the live IP address to determine the designated multicast corresponding to the current user node includes: Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses; The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
2. The method according to claim 1, characterized in that Before detecting the live broadcast node allocated to the current user node, the method further includes: A plurality of live broadcast nodes are set for the designated live broadcast, and allocation rules for allocating the live broadcast nodes to each user node are set.
3. The method according to claim 2, characterized in that The allocation rule for allocating live broadcast nodes to each user node includes: Randomly assign the first live broadcast node to the designated user node; Determine a first live broadcast IP address corresponding to the designated user node according to the first live broadcast node; Determine whether the number of user nodes at which the first live broadcast IP address is located exceeds a preset value; If so, reallocate the live broadcast node to the designated user node.
4. The method according to claim 1, characterized in that: The step of grouping the current user node according to the current limiting rule and the number of user nodes of the multiple multicasts, and determining the designated multicast corresponding to the current user node, includes: Determine, according to the current limiting rule and the number of user nodes of the multiple multicasts, a to-be-allocated multicast having a number of user nodes lower than a preset threshold; The current user node is assigned to the multicast to be assigned, and a designated multicast corresponding to the current user node is determined.
5. A live broadcast device, characterized in that: The device comprises: A live broadcast node detection unit, which detects the live broadcast node allocated to the current user node when the current user node enters the designated live broadcast; An IP address determining unit, for determining a live broadcast IP address corresponding to the current user node according to the live broadcast node; A multicast determination unit, grouping the current user node according to the live IP address, and determining a designated multicast corresponding to the current user node; A live broadcast unit, which performs live broadcast to the current user node in the designated multicast; Before grouping the current user nodes according to the live IP address and determining the designated multicast corresponding to the current user nodes, the device is further used to: Setting multiple multicasts for the live broadcast IP address, and setting flow limiting rules for the multiple multicasts; The grouping the current user node according to the live IP address to determine the designated multicast corresponding to the current user node includes: Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses; The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
6. The device according to claim 5, characterized in that The device further comprises: a setting unit; The setting unit sets a plurality of live broadcast nodes for the designated live broadcast, and sets an allocation rule for allocating the live broadcast nodes to each user node.
7. A live broadcast device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node; Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node; Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node; Performing live broadcasting for the current user node in the designated multicast; Before the current user nodes are grouped according to the live IP address and the designated multicast corresponding to the current user nodes is determined, the method further includes: Setting multiple multicasts for the live broadcast IP address, and setting flow limiting rules for the multiple multicasts; The grouping the current user node according to the live IP address to determine the designated multicast corresponding to the current user node includes: Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses; The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
8. A non-volatile computer storage medium, characterized in that: A computer executable instruction is stored, wherein the computer executable instruction is configured to: When the current user node enters the designated live broadcast, detecting the live broadcast node allocated to the current user node; Determine the live broadcast IP address corresponding to the current user node according to the live broadcast node; Grouping the current user node according to the live IP address, and determining the designated multicast corresponding to the current user node; Performing live broadcasting for the current user node in the designated multicast; Before the current user nodes are grouped according to the live IP address and the designated multicast corresponding to the current user nodes is determined, the method further includes: Setting multiple multicasts for the live broadcast IP address, and setting flow limiting rules for the multiple multicasts; The grouping the current user node according to the live IP address to determine the designated multicast corresponding to the current user node includes: Determine the number of user nodes of the multiple multicasts respectively according to the live IP addresses; The current user nodes are grouped according to the current limiting rule and the number of user nodes of the multiple multicasts, and the designated multicast corresponding to the current user node is determined.
