Live broadcast stream forbidding method and device, medium and equipment

By receiving the client's streaming request at the edge node and determining the banning strategy, the problem of being unable to achieve refined banning control of live video streams in the existing technology is solved, and refined, efficient, and flexible banning of live video streams is achieved. Control improves the resource protection and user experience of the live broadcast platform.

CN119342237APending Publication Date: 2025-01-21GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310904111.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The prior art cannot achieve refined ban control of video streams in live broadcast scenarios, and bans cannot be implemented for specific areas or conditions.

Method used

After the edge node receives the client's pull request, it determines the ban policy corresponding to the target video stream, and executes the ban control when the policy conditions are met, including the client's regional information, operator information, time period information and other conditions.

Benefits of technology

It achieves precise, efficient and flexible ban control of live video streams, and can dynamically adjust according to different conditions and strategies to ensure that only qualified viewers can access compliant live content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342237A_ABST
    Figure CN119342237A_ABST
Patent Text Reader

Abstract

The invention relates to a live broadcast stream forbidding method, a live broadcast stream forbidding device, a medium and equipment. The method is applied to an edge node and comprises the following steps: receiving a stream pulling request of a client for a target video stream; determining a broadcasting forbidding strategy corresponding to the target video stream; and when the condition of the broadcast forbidding strategy is determined to be satisfied, executing the broadcast forbidding strategy, and feeding back information that resources are unavailable to the client. The broadcasting forbidding method depends on the URL of the video stream and the broadcasting forbidding strategy, broadcasting forbidding or broadcasting allowing of the video stream is achieved on the pull stream distribution side, accurate, efficient and flexible broadcasting forbidding control can be achieved by setting different conditions, and a more reliable resource protection and management means is provided for a live broadcast platform. Meanwhile, the method also can guarantee the user experience, and ensures that only the audience meeting the condition can access the compliant live broadcast content. Therefore, the live broadcast platform can better deal with live broadcast content management challenges, the service quality is improved, and the user trust and satisfaction are increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud distribution, and in particular to a method, device, medium and equipment for banning live streaming. Background Art

[0002] In the related technology, in the live broadcast scenario, only a global ban or allow playback strategy can be implemented at the stream granularity. Once the ban is set for the target video stream, it will take effect globally in the CDN acceleration area, and more refined live broadcast ban control cannot be achieved. For example, it is impossible to achieve ban control of the target video stream for a specific area. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present invention provides a method, device, medium and equipment for banning live streaming.

[0004] According to a first aspect of the present invention, a method for banning a live streaming stream is provided, which is applied to an edge node and includes:

[0005] Receive a stream pull request from a client for a target video stream;

[0006] Determining a ban policy corresponding to the target video stream;

[0007] When it is determined that the condition of the banning policy is met, banning control is performed.

[0008] Based on the above scheme, in some embodiments of the present application, the banning strategy includes one or more conditions. When the banning strategy includes multiple conditions, determining whether the conditions of the banning strategy are satisfied includes: the multiple conditions are satisfied simultaneously.

[0009] Based on the above scheme, in some embodiments of the present application, the at least one or more conditions include one or more of the following information:

[0010] The client's region information, the client's operator information, banned time periods, banned segments of video streams, and preset events.

[0011] Based on the above scheme, in some embodiments of the present application, the ban policy corresponding to the target video stream includes one or more ban policies. When there are multiple ban policies, ban control is performed when the condition of any ban policy is met.

[0012] Based on the above solution, in some embodiments of the present application, the method for banning live streaming by region further includes:

[0013] When it is determined that the condition of the ban policy is not met, a stream pull request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

[0014] Based on the above solution, in some embodiments of the present application, the performing of the ban control includes: feeding back information that the resource is unavailable to the client.

[0015] The live streaming ban method is applied to CDN live streaming transit, including:

[0016] receiving a ban policy, wherein the ban policy corresponds to a video stream;

[0017] The ban policy is distributed to the edge node, so that after receiving a stream pull request from a client for a target video stream, the edge node performs ban control when it determines that a condition of the ban policy is met.

[0018] Based on the above solution, in some embodiments of the present application, the live streaming ban method further includes:

[0019] A stream pulling request for a target video stream is received from an edge node, and the target video stream is sent to the edge node.

[0020] According to another aspect of the present invention, a live streaming banning device is provided, which is applied to an edge node and includes:

[0021] A request receiving module, used to receive a stream pulling request from a client for a target video stream;

[0022] A policy selection module, used to determine a ban policy corresponding to the target video stream;

[0023] The response module is used to execute the ban control when determining that the conditions of the ban strategy are met.

[0024] Based on the above solution, in some embodiments of the present application, the response module is further used to:

[0025] When it is determined that the condition of the ban policy is not met, a stream pull request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

[0026] The live streaming ban device is used in CDN live streaming transfer, including:

[0027] A policy receiving module, used for receiving a ban policy, wherein the ban policy corresponds to a video stream;

[0028] The distribution module is used to distribute the ban policy to the edge node, so that the edge node performs ban control when it determines that the conditions of the ban policy are met after receiving the stream pulling request for the target video stream from the client.

[0029] Based on the above solution, in some embodiments of the present application, the distribution module is further used to receive a stream pulling request from an edge node for a target video stream, and send the target video stream to the edge node.

[0030] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the steps of the live streaming ban method are implemented.

[0031] According to another aspect of the present invention, a computer device is provided, including a processor, a memory, and a computer program stored in the memory, wherein the processor implements the steps of the live streaming ban method when executing the computer program.

[0032] The present invention provides a method for implementing a ban in a live broadcast scenario, which is implemented by setting a ban policy at an edge node. In this method, the edge node receives a stream pull request from a client for a target video stream; determines a ban policy for the target video stream; when the conditions of the ban policy are met, executes the ban policy, and feeds back information that resources are unavailable to the client. By setting different conditions, the ban policy does not depend on whether there is a push stream service, but determines whether to execute the ban based on whether the relevant conditions of the ban policy of the target video stream are met at the edge node on the stream pull distribution side. This can achieve accurate, efficient, and flexible ban control, providing a more reliable resource protection and management means for the live broadcast platform. At the same time, the method can also guarantee user experience, ensuring that only qualified viewers can access compliant live content. This enables the live broadcast platform to better cope with the challenges of live content management, improve service quality, and increase user trust and satisfaction.

[0033] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0035] Figure 1 The present invention is a flowchart of a method for banning a live streaming according to an exemplary embodiment.

[0036] Figure 2 The present invention is a flowchart of a method for banning a live streaming according to an exemplary embodiment.

[0037] Figure 3 The invention is a block diagram of a device for banning a live streaming according to an exemplary embodiment.

[0038] Figure 4The invention is a block diagram of a device for banning a live streaming according to an exemplary embodiment.

[0039] Figure 5 The invention is a block diagram of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other arbitrarily without conflict.

[0041] In traditional technology, when it is necessary to ban the broadcast of a video stream, a ban policy is generally set on the push side, and only a global ban or allow broadcast policy can be implemented for the stream granularity, and more refined live broadcast ban control cannot be achieved. In order to solve the problems in the prior art and achieve more refined ban control of video streams, the present application provides a method for fine-grained banning of live streams by introducing live video into a CDN system and setting the execution subject of the ban policy on the edge node on the pull side. The ban policy does not depend on whether there is a push service, but implements the ban of the target video stream at the edge node on the pull distribution side, which is conducive to achieving more precise ban control.

[0042] Figure 1 FIG. 1 is a flowchart of a method for banning a live streaming according to an exemplary embodiment. Figure 1 ,The live stream ban method is applied to the edge node, including:

[0043] Step S11, receiving a stream pull request from a client for a target video stream;

[0044] Step S12, determining a ban policy corresponding to the target video stream;

[0045] Step S13: When it is determined that the conditions of the ban policy are met, ban control is executed.

[0046] In the live streaming ban method provided in the present application, it is necessary to combine the traditional live streaming method with the CDN system, and the live streaming end pushes the live streaming to the CDN system. For example, the live streaming end is connected to the edge node of the CDN system nearby. The role of the edge node in the live streaming is to push the video stream of the live streaming end to the live streaming transit of the CDN system. In the present application, the edge node where the live streaming end pushes the video stream is the push stream edge node. When a viewer needs to watch the live video, the viewer client will also connect to the edge node of the CDN system nearby. The edge node pulls the video stream from the live streaming transit according to the request of the client and provides it to the client. The edge node where the client pulls the video stream is the pull stream edge node. The live streaming ban method provided in the present application is applied to the pull stream edge node. It is worth noting that in actual applications, the push stream edge node and the pull stream edge node can be the same or different.

[0047] After receiving the stream pulling request from the client, the edge node can obtain the client information from the request information. The client information may include the client IP information, location information, network operator information, etc.

[0048] In step S12, the edge node determines the ban policy corresponding to the target video stream. The ban policy can be formulated by the live broadcast user himself. For example, the live broadcast user hopes that the live broadcast video released will not be seen by a specific group of people. The live broadcast user formulates the ban policy by himself and uploads the ban policy to the control center before or while releasing the video. The ban policy can also be formulated by the platform administrator. The platform administrator reviews the video streams released by the live broadcast user according to the requirements of relevant laws and regulations. When the video stream needs to be banned in a region, the ban policy is set and uploaded to the control center. In the application, corresponding management tools and interfaces can be developed. These tools can be provided to platform administrators and live broadcast users so that they can easily manage the ban settings. The platform administrator can use the management tool to set the specific conditions of the ban policy and monitor the effect of the ban control in real time; the live broadcast user can set personalized ban preferences through the interface and obtain notifications and prompts related to the ban.

[0049] The ban policy can be sent to the edge node in advance by the control center, or the edge node can obtain the relevant ban policy from the control center after receiving the pull request for the target video. Alternatively, the control center distributes the ban policy to the live broadcast relay, and the live broadcast relay distributes it to the edge node according to the preset rules.

[0050] The ban policy corresponds to the video stream identifier, which can be the access URL of the video stream. When the edge node receives the stream pull request from the client, it queries the ban policy according to the URL requested by the client and determines the ban policy corresponding to the target video stream. If the corresponding ban policy is found locally, it determines whether to ban the video stream according to the ban policy; if the corresponding ban policy is not found locally, it queries the live broadcast transfer or control center to see if the corresponding ban policy is cached. If so, it downloads it locally. If not, it obtains the video stream from the live broadcast transfer and pushes it to the client.

[0051] If the stream pulling edge node finds the ban policy corresponding to the target video stream, it will further determine whether the conditions of the ban policy are met. When it is determined that the conditions of the ban policy are met, the ban control is executed.

[0052] For example, if the condition of the ban policy for the target video stream is "the region to which the client belongs is region A", if the region to which the IP in the client's information belongs is region A, then the condition of the ban policy is met, and the corresponding video stream is not provided to the client. If the region to which the IP in the client's information belongs is region B, and region B does not belong to region A, then the condition of the ban policy is not met, and the corresponding video stream is provided to the client. By setting the ban condition to a region, banning can be achieved by region.

[0053] For another example, the condition in the ban policy is "the client belongs to operator B". If the client's IP belongs to operator B, the ban policy condition is met and the corresponding video stream is not provided to the client. If the client's IP does not belong to operator B, the ban policy condition is not met and the corresponding video stream is provided to the client. By setting the ban condition to operator, banning can be achieved by operator.

[0054] In this embodiment, the ban policy of the target video stream can be stored in the stream pulling edge node. When a client requests to pull the target video stream, it is determined whether the conditions of the ban policy are met. When it is determined that the conditions of the ban policy are met, the stream pulling edge node will not push the target video stream to the client, and the video stream will be banned according to the ban conditions.

[0055] In an exemplary embodiment, the ban policy includes one or more conditions. When the ban policy includes multiple conditions, determining that the conditions of the ban policy are satisfied includes: the multiple conditions are satisfied simultaneously.

[0056] The ban policy may include one condition or multiple conditions.

[0057] If the ban policy includes multiple conditions, the conditions for determining whether the ban policy is satisfied include: multiple conditions are satisfied at the same time. When formulating the ban policy, one or more conditions can be set for the ban policy. If the ban policy has only one condition, the ban control can be executed when this condition is satisfied; if the ban policy has multiple conditions, the ban control needs to be executed when multiple conditions are satisfied at the same time.

[0058] For example, the conditions of the ban policy for the target video stream are "the client's address location is in Beijing" and "the ban period is from 19:00 to 20:00". If the client's information indicates that the client's geographical area is Beijing and the current time is 19:10, it is determined that the conditions of the ban policy are met, and then the ban control is executed, and the information that the resource is unavailable is fed back to the client. If the client's information indicates that the client's address area is Beijing and the current time is 20:05, that is, the condition "the ban period is from 19:00 to 20:00" in the ban policy is not met, although the client's geographical area is Beijing, the ban control is not executed, and the ban control is implemented by region and time period.

[0059] By setting multiple conditions for the ban policy, a refined ban policy can be formulated to perform more fine-grained ban control at the edge node.

[0060] In an exemplary embodiment, at least one or more conditions include one or more of the following information:

[0061] The client's region information, the client's operator information, the banned time period, the target segment of the video stream, and the preset events.

[0062] The region to which the client belongs can be determined according to actual needs. It can be a macro-geographical region (such as Asia, Africa, etc.), a country or region, a province, a city, a district or a county, or a more detailed region. The region to which the client belongs can be determined by querying the IP database based on the IP address of the client. The degree of refinement of the regional information depends on the degree of perfection of the IP database.

[0063] The operator information of the client refers to the information of the network operator, such as China Mobile, China Telecom, etc.

[0064] The prohibited broadcasting period can be a time period in hours or minutes.

[0065] The banned segments of a video stream are certain segments in the video. In the ban method provided in the present application, banned segments can be specified in the ban policy. For example, deep learning and artificial intelligence technologies are used to perform higher-level content recognition and analysis on the target video stream. By identifying specific scenes, objects, characters, or illegal content, infringing behavior, sensitive content, etc., the ban policy can be applied to specific video segments for more accurate ban control to protect copyright and user rights. For example, when broadcasting live sports events, inappropriate behavior or illegal content can be detected, and the relevant segments can be banned instead of prohibiting the entire live broadcast.

[0066] Preset events can be understood as emergencies that may occur during live broadcasting, such as user complaints, hotlinking, etc. Preset events can be set by platform administrators. For example, when the edge node pushes the video stream to the client, if the network speed is slow, it will cause the client to play the video when it is stuck. If the network speed is too low and the stuck phenomenon is serious, there is actually no need to continue pushing. The administrator can pre-set the preset event as "bit rate is lower than the preset threshold". During the live broadcast, if a large number of clients are connected at the same time, it may cause most users to be unable to watch. At this time, the client with too low bit rate can be banned to ensure the viewing experience of most users. For another example, when there is bad content in the live video content, it will be complained by users. The administrator can pre-set the preset event as "the number of complaints is greater than the preset threshold". During the live broadcast, if the live content is complained by users, if the number of complaints exceeds the preset number, the video stream will be banned, which can prevent the bad content from causing a greater impact. Through preset events, live broadcasting has a mechanism to dynamically adjust the ban strategy. During the live broadcast, events can be preset according to real-time conditions and needs. When a preset event occurs, ban control can be executed at any time to meet different requirements.

[0067] In this embodiment, the ban policy may include multiple conditions, and more detailed ban control can be achieved. The various information listed above is not a limitation of the embodiments of the present application. It is not difficult to imagine that with the improvement of the IP library, not only the regional information of the client will be more detailed through the IP address of the client, but also more information of the client can be determined through the IP address, including not only regional information and operator information, but also other information (for example, the video type that the user of the client likes or does not like), therefore, more ban conditions can be added to the ban policy to achieve refined ban service.

[0068] In an exemplary embodiment, the banning strategy corresponding to the target video stream includes one or more strategies. When there are multiple banning strategies, banning control is performed when a condition of any banning strategy is met.

[0069] The live streaming ban method provided in the present application can be set by the live streaming user to set the ban policy, or by the platform administrator to set the ban policy. Therefore, the ban policy corresponding to the target video stream can be one or more. When there are multiple ban policies, as long as the conditions of any ban policy are met, the ban control will be executed. For example, the ban policy set by the live streaming user is to ban users in area A, and the ban policy set by the platform administrator is to ban users in area B. During the live streaming process, the ban control will be executed for users in area A and area B. With such a setting, there is no need to set a priority for the ban policy, and there will be no conflict due to multiple ban policies, which facilitates the management of the ban policy.

[0070] In an exemplary embodiment, the edge node receives the ban policy corresponding to the target video stream in real time, and executes the ban control when the conditions of the ban policy are met. The live broadcast platform monitors the live broadcast stream and user behavior in real time, timely discovers changes in the ban conditions, and automatically adjusts the ban policy in real time. The adjusted ban policy is sent to the edge node. After the edge node receives the adjusted ban policy, it determines that the conditions of the ban policy are met, that is, the ban policy is executed to maintain the real-time and accuracy of the ban control and adapt to the dynamic live broadcast environment. Specifically, the live broadcast platform can monitor the ongoing live broadcast stream in real time to capture the banned content that may appear in time. The monitoring content may include video content, audio content, barrage information, keywords, etc. Through real-time analysis of the live broadcast stream, any situation that may trigger the ban can be discovered in time, and a corresponding ban policy can be formulated. In addition to monitoring the live broadcast stream itself, the live broadcast platform can also monitor the user's viewing behavior and interactive behavior in real time. This includes the audience's viewing time, viewing geographical location, reporting behavior, comment content, etc. By monitoring user behavior in real time, we can better understand the needs and feedback of viewers, and adjust the ban strategy in time to provide live content that better meets user expectations. Based on the data obtained from real-time monitoring, the live broadcast platform dynamically adjusts the ban strategy, which may involve the type of content, geographical area, time period, etc. By dynamically adjusting the ban strategy, the live broadcast platform can respond flexibly and in a timely manner according to different situations and needs to ensure the accuracy and timeliness of ban control. The platform can also predict the ban demand based on historical data and real-time viewing behavior and automatically adjust the ban strategy in real time, thereby achieving more accurate ban control.

[0071] In an exemplary embodiment, real-time monitoring and adjustment are usually achieved in an automated manner. The live broadcast platform may use intelligent algorithms and automated systems to quickly process a large amount of monitoring data and automatically adjust the ban strategy to better respond to the dynamic changes in live broadcast content and changes in user needs, timely discover and solve ban issues, maintain the real-time and flexibility of ban control, enhance the effectiveness of ban control, and provide better live broadcast services to meet users' real-time viewing needs and content preferences.

[0072] In an exemplary embodiment, the live streaming ban method further includes:

[0073] When it is determined that the conditions of the banning policy are not met, a stream pulling request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

[0074] When it is determined that the conditions of the ban policy are not met, the stream pulling edge node sends a stream pulling request for the target video stream to the CDN live broadcast relay, obtains the video stream and forwards it to the client. After receiving the stream pulling request from the client, the stream pulling edge node will not pull the video stream from the CDN live broadcast relay immediately, but will pull the video stream from the CDN live broadcast relay and provide it to the client when it is determined that the conditions of the ban policy are not met. In the case of some video streams set with a ban policy, while implementing ban control, the number of stream pulling of these video streams can be effectively reduced, reducing the occupation of system resources.

[0075] In an exemplary embodiment, performing the ban control includes: feeding back information that the resource is unavailable to the client.

[0076] In order to improve the user experience, the live broadcast platform may adopt a faster real-time ban feedback mechanism to feedback the resource unavailable information to the client. In this way, when the ban condition is met, the audience can immediately get the resource unavailable information, avoiding waiting and unnecessary operations.

[0077] Figure 2 FIG. 1 is a flowchart of a method for banning a live streaming according to an exemplary embodiment. Figure 2 , a live streaming ban method, applied to CDN live streaming transit, includes:

[0078] Step S21, receiving a ban policy, where the ban policy corresponds to the video stream;

[0079] Step S22: distribute the ban policy to the edge node, so that after receiving the stream pulling request from the client for the target video stream, the edge node performs ban control when it determines that the conditions of the ban policy are met.

[0080] CDN live broadcast transit can receive the ban policy pushed by the live broadcast source, or it can receive the ban policy issued by the platform administrator. The ban policy corresponds to the video stream. In this embodiment, the ban policy can correspond to the video stream one by one, or one ban policy can correspond to multiple video streams, or one video stream can correspond to multiple ban policies. CDN live broadcast transit needs to maintain the correspondence between the video stream and the ban policy.

[0081] After the CDN live broadcast relay obtains the ban policy, it distributes the ban policy to the edge node. After receiving the client's pull request for the target video stream, the edge node can promptly verify whether the conditions of the ban policy are met and whether to implement ban control on the client.

[0082] CDN live broadcast relay distributes the ban policy to the edge nodes. The ban policy can be distributed to all edge nodes so that the ban policy takes effect in the edge nodes as soon as possible. The ban policy can also be parsed and sent to the edge nodes corresponding to the banned areas according to the banned areas included in the ban policy, thereby reducing the consumption of network bandwidth and saving the cache space of the edge nodes.

[0083] In an exemplary embodiment, the live streaming ban method further includes:

[0084] Receive a stream pull request from an edge node for a target video stream, and send the target video stream to the edge node.

[0085] After receiving the video stream pushed by the live source, CDN live transit will not continue to push the video stream to the edge node, but will send the target video stream to the edge node after receiving the pull stream request for the target video stream from the edge node. Since the ban policy has been distributed to the edge node, the edge node requests to pull the target video stream, which means that the target video stream can be sent to the client that does not comply with the ban policy through the edge node. This avoids the edge node pulling the video stream when receiving the pull stream request, but finds that the conditions of the ban policy corresponding to the video stream are met, and can only feedback the client that the resource is unavailable, resulting in a waste of edge node cache space. By performing ban verification at the time of request, CDN live transit can achieve more refined push control, effectively utilize edge node resources, and improve the efficiency and performance of the overall system. Moreover, only when the edge node receives the pull stream request and passes the ban verification, will it store the target video stream in the edge node when needed, effectively utilizing the storage resources of the edge node and avoiding resource waste. Finally, the optimized CDN live transit process brings faster video stream transmission and response, further enhancing the user's viewing experience. When a user initiates a stream pull request, the edge node can quickly determine and respond, avoiding unnecessary waiting and delays, and providing smoother and more immediate live content. Therefore, the optimized CDN live broadcast transit process enables the live broadcast platform to more efficiently manage the distribution and ban control of video streams, improve network bandwidth utilization, reduce storage requirements, and provide more accurate and real-time ban control, ultimately improving user experience and overall system performance.

[0086] In order to better understand the live streaming ban method provided by the present application, a specific embodiment is used for description. Specific embodiment one:

[0088] The live broadcast user pushes the live broadcast stream data to the nearest CDN edge node, and the CDN edge node forwards it to the CDN live broadcast transit. The access URL of the live broadcast video stream is http: / / domain / uri1.

[0089] The live broadcast user sets the ban policy corresponding to "http: / / domain / uri1", and the condition of the ban policy is China Telecom Beijing.

[0090] The ban policy is pushed to the live broadcast relay, which is then distributed to all edge nodes.

[0091] Edge node 1 receives the streaming request from client A, and the requested URL is http: / / domain / uri1. Edge node 1 queries the local cached ban policy, finds the ban policy corresponding to the URL, and determines to execute ban control for the client of Telecom Beijing.

[0092] According to the user's streaming request, edge node 1 obtains the IP address of client A. It queries the IP database and determines that the IP address of client A belongs to China Telecom and the region is Beijing.

[0093] Edge node 1 determines that the information of client A is consistent with the ban policy, prohibits client A from playing the live video, and feeds back information that the resource is unavailable to client A.

[0094] Edge node 1 receives the stream pull request from client B, and the requested URL is http: / / domain / uri1.

[0095] According to the user's streaming request, edge node 1 obtains the IP address of client B. It queries the IP database and determines that the operator to which client B's IP belongs is China Unicom and the region to which it belongs is Beijing.

[0096] Edge node 1 determines that the information of client B does not comply with the ban policy, and can push the live video to client B.

[0097] Edge node 1 pushes the live video stream to client B.

[0098] In order to better control the live content, the platform monitors the live content. If it is found that some clips of the live video stream contain illegal content, the platform administrator will temporarily set a ban policy. The condition of the ban policy is "banned segment [x minutes x seconds-x minutes x seconds]". When the live broadcast reaches the banned segment, the ban control is implemented on the banned segment, and the subsequent video content of the banned segment continues to be pushed.

[0099] The platform administrator sets a ban policy corresponding to "http: / / domain / uri1", and the condition of the ban policy is "the number of complaints is greater than 50 times".

[0100] Once a live broadcast contains inappropriate content and is complained by users, and the cumulative number of complaints exceeds 50, all edge nodes will implement a ban control and ban the live broadcast across the entire network.

[0101] Through the above embodiments, the live streaming ban method provided by the present application makes the ban method no longer rely on the push streaming service, but on the pull streaming distribution side, according to the URL and ban policy of the live video stream, to achieve the ban or allowance of the live video stream. Multiple ban policies can be set, and each ban policy can set multiple conditions to achieve fine ban control. It is also possible to monitor the live content at any time, adjust the ban mechanism, set preset events, and effectively respond to emergencies. Accurate, efficient, and flexible ban control is achieved, providing a more reliable resource protection and management means for the live broadcast platform. At the same time, the method can also guarantee user experience and ensure that only qualified viewers can access compliant live content. This enables the live broadcast platform to better cope with the challenges of live content management, improve service quality, and increase user trust and satisfaction.

[0102] Figure 3 FIG. 1 is a block diagram of a device for banning a live streaming according to an exemplary embodiment. Figure 3 The live streaming banning device is applied to the edge node, and includes: a request receiving module 301, a strategy selection module 302, and a response module 303.

[0103] The request receiving module 301 is configured to receive a stream pulling request from a client for a target video stream.

[0104] The policy selection module 302 is configured to determine a ban policy corresponding to the target video stream.

[0105] The response module 303 is configured to execute the ban control when determining that the conditions of the ban policy are met.

[0106] In an exemplary embodiment, the response module 303 is further configured to:

[0107] When it is determined that the condition of the ban policy is not met, a stream pull request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

[0108] Figure 4 FIG. 1 is a block diagram of a device for banning a live streaming according to an exemplary embodiment. Figure 4 The live streaming banning device is applied to CDN live streaming transit, including: a policy receiving module 401 and a distribution module 402.

[0109] The policy receiving module 401 is configured to receive a ban policy, where the ban policy corresponds to a video stream.

[0110] The distribution module 402 is configured to distribute the ban policy to the edge node, so that the edge node performs ban control when it determines that the conditions of the ban policy are met after receiving the stream pull request for the target video stream from the client.

[0111] In an exemplary embodiment, the distribution module 402 is further configured to receive a stream pulling request from an edge node for a target video stream, and send the target video stream to the edge node.

[0112] Figure 5 5 is a block diagram of a computer device 900 for banning a live stream according to an exemplary embodiment. For example, the computer device 500 may be provided as a server. Figure 5 The computer device 500 includes a processor 501, and the number of processors can be set to one or more as needed. The computer device 500 also includes a memory 502, which is used to store instructions that can be executed by the processor 501, such as application programs. The number of memories can be set to one or more as needed. The application programs stored therein can be one or more. The processor 501 is configured to execute instructions to execute the above-mentioned live streaming ban method.

[0113] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices (equipment), or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data), including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media generally contain computer-readable instructions, data structures, program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0114] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 Functions specified in one or more boxes

[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0117] In the present invention, the term "comprises", "includes" or any other variation thereof is intended to cover non-exclusive inclusion, so that an article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the article or device including the elements.

[0118] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0119] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include these modifications and variations.

Claims

1. A method for banning a live streaming, characterized in that: Applied to edge nodes, including: Receive a stream pull request from a client for a target video stream; Determining a ban policy corresponding to the target video stream; When it is determined that the condition of the banning policy is met, banning control is performed.

2. The method for banning live streaming according to claim 1, characterized in that: The banning policy includes one or more conditions. When the banning policy includes multiple conditions, determining whether the conditions of the banning policy are satisfied includes: the multiple conditions are satisfied simultaneously.

3. The method for banning live streaming according to claim 2, characterized in that: The at least one or more conditions include one or more of the following information: The client's region information, the client's operator information, banned time periods, banned segments of video streams, and preset events.

4. The method for banning live streaming according to claim 2, characterized in that: The banning strategy corresponding to the target video stream includes one or more. When there are multiple banning strategies, banning control is executed when the condition of any banning strategy is met.

5. The method for banning live streaming by region according to claim 1, characterized in that: Also includes: When it is determined that the condition of the ban policy is not met, a stream pull request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

6. The method for banning live streaming by region according to claim 1, characterized in that: The performing of the ban control includes: feeding back information that the resource is unavailable to the client.

7. A method for banning live streaming, characterized in that: Applied to CDN live broadcast transfer, including: receiving a ban policy, wherein the ban policy corresponds to a video stream; The ban policy is distributed to the edge node, so that after receiving a stream pull request from a client for a target video stream, the edge node performs ban control when it determines that a condition of the ban policy is met.

8. The method for banning live streaming according to claim 7, characterized in that: Also includes: A stream pulling request for a target video stream is received from an edge node, and the target video stream is sent to the edge node.

9. A device for banning live streaming, characterized in that: Applied to edge nodes, including: A request receiving module, used for receiving a stream pulling request from a client for a target video stream; A policy selection module, used to determine a ban policy corresponding to the target video stream; The response module is used to execute the ban control when determining that the conditions of the ban strategy are met.

10. The live streaming banning device according to claim 9, characterized in that: The response module is also used to: When it is determined that the condition of the ban policy is not met, a stream pull request for the target video stream is sent to the CDN live broadcast relay, the target video stream is pulled and forwarded to the client.

11. A device for banning live streaming, characterized in that: Applied to CDN live broadcast transfer, including: A policy receiving module, used for receiving a ban policy, wherein the ban policy corresponds to a video stream; The distribution module is used to distribute the ban policy to the edge node, so that the edge node performs ban control when it determines that the conditions of the ban policy are met after receiving the stream pulling request for the target video stream from the client.

12. The live streaming banning device according to claim 11, characterized in that: The distribution module is also used to receive a stream pulling request from an edge node for a target video stream, and send the target video stream to the edge node.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the method according to any one of claims 1 to 8 are implemented.

14. A computer device comprising a processor, a memory and a computer program stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.