CN115250359A - Live broadcast data shielding method and related equipment - Google Patents

Live broadcast data shielding method and related equipment Download PDF

Info

Publication number
CN115250359A
CN115250359A CN202110455810.6A CN202110455810A CN115250359A CN 115250359 A CN115250359 A CN 115250359A CN 202110455810 A CN202110455810 A CN 202110455810A CN 115250359 A CN115250359 A CN 115250359A
Authority
CN
China
Prior art keywords
live broadcast
information
shielding
broadcast
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110455810.6A
Other languages
Chinese (zh)
Inventor
汪刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN202110455810.6A priority Critical patent/CN115250359A/en
Publication of CN115250359A publication Critical patent/CN115250359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • H04N21/4542Blocking scenes or portions of the received content, e.g. censoring scenes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • H04N21/4545Input to filtering algorithms, e.g. filtering a region of the image

Abstract

The embodiment of the application provides a data shielding method and related equipment, which belong to the technical field of data sharing, wherein the method is used for a client and comprises the following steps: acquiring configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except for a live broadcast room currently displayed by a client; generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user; and shielding the live broadcast data of the target live broadcast room according to the shielding strategy.

Description

Live broadcast data shielding method and related equipment
Technical Field
The embodiment of the application relates to the technical field of data sharing, in particular to a live data shielding method and related equipment.
Background
When a user watches live broadcasts, the user is easily influenced by broadcast notifications of other live broadcasts, and the viewing experience of the user is influenced by the broadcast notification information sent by other live broadcasts.
Disclosure of Invention
An object of the embodiment of the present application is to provide a live broadcast data shielding method, which solves the technical problem in the prior art that broadcast notification information of other live broadcast rooms cannot be shielded according to user requirements.
In a first aspect, an embodiment of the present application provides a live data shielding method, which is used for a client, and includes:
acquiring configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except for a live broadcast room currently displayed by the client;
generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user;
and shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
Optionally, the generating a shielding policy based on the attribute information of the target live broadcast room, the broadcast notification information, and user indication information, where the user indication information is feature information of target broadcast notification information selected and received by a user, includes:
judging whether the attribute information of the target live broadcast room meets the user indication information;
and if the attribute information of the target live broadcast room meets the user indication information, generating a shielding strategy according to the broadcast notification information and the user indication information.
Optionally, the step of determining whether the attribute information of the target live broadcast room meets the user indication information live broadcast room includes:
comparing the live broadcast content type of the target live broadcast room with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user;
if the live content type of the target live broadcast room is not matched with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user, the step of shielding the broadcast notification information of the target live broadcast room is executed;
and if the live content type of the target live broadcast room is matched with the live content type indicated by the characteristic information of the target broadcast notification information selected and received by the user, continuing to generate the shielding strategy.
Optionally, the step of generating the shielding policy according to the broadcast notification information and the user information includes:
comparing the notification type of the broadcast notification information with the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected to be received by the user;
if the notification type of the broadcast notification information does not match the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected and received by the user, executing the step of shielding the broadcast notification information;
and if the notification type of the broadcast notification information matches the notification type of the notification information indicated by the feature information of the target broadcast notification information selected and received by the user, continuing to generate the masking policy.
Optionally, before the step of generating a shielding policy based on the attribute information of the target live broadcasting room, the broadcast notification information, and the user information, where the user indication information is characteristic information of target broadcast notification information selected and received by a user, the method further includes:
setting priorities corresponding to different types of live broadcast rooms according to the different types of live broadcast rooms;
if the priority of the live broadcast room for sending the broadcast notification information is lower than or equal to the priority of the live broadcast room displayed by the client, the step of shielding the broadcast notification information sent by the live broadcast room is executed;
and if the priority of the live broadcast room for sending the broadcast notification information is higher than that of the live broadcast room displayed by the client, continuously generating the shielding strategy live broadcast room.
Optionally, the step of shielding the live data in the target live broadcast room according to the shielding policy includes:
importing the live broadcast data into a shielding function;
obtaining the shielding strategy, wherein the shielding strategy comprises a return value of the shielding function;
and finishing shielding the live broadcast data according to the return value.
Optionally, the step of importing the live data into a mask function includes:
constructing the shielding function according to the user indication information:
-(BOOL)isPublicShouldShowBroadCastOrPropWithCid2:(NSString*)cid2rid:(NSString*)rid
propId:(NSString*)propId
inIbcWhitelist:(BOOL)inIbcWhitelist isAnchor:(BOOL)isAnchor;
wherein, ispublicshouldbroadcastorapputhicid 2 is the function name of the shielding function, cid2 is the partition id between the live broadcasts to which the current broadcast content of the client belongs, rid (NSString) rid is the room number between the live broadcasts to which the current broadcast content of the client belongs, rop (NSString) prop is the prop type between the live broadcasts to which the current broadcast content of the client belongs, initbcwhitelist (BOOL) init is a function statement for judging whether the live broadcasts to which the current broadcast content of the client belongs is in a white list, isAnchor (BOOL) isAnchor is a function statement for judging whether the current client is the client or the live broadcasts;
acquiring different types of parameters corresponding to the shielding function in the live broadcast data;
at least one of the parameters is imported into the masking function.
In a second aspect, an embodiment of the present application provides a live data shielding apparatus, including:
the data acquisition module is used for acquiring configuration information of a server side, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room displays other live broadcast rooms except the live broadcast room for the client side;
a generating module, configured to generate a shielding policy based on attribute information of the target live broadcast room, the broadcast notification information, and user indication information, where the user indication information is feature information of target broadcast notification information selected and received by a user;
and the shielding module is used for shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
In a third aspect, an embodiment of the present application provides an electronic device, including: the live broadcast data shielding method comprises a storage, a processor and a computer program which is stored in the storage and can run on the processor, wherein the processor is used for realizing the steps of the live broadcast data shielding method when the computer program stored in the storage is executed.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored: the computer program realizes the steps of the live broadcast data shielding method when being executed by a processor.
The live broadcast data shielding method provided by the embodiment of the application is used for a client side, and the configuration information of a server side is obtained, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except the live broadcast room to which the currently played content of the client side belongs; the client acquires the configuration information of the server and disperses the calculation pressure to the client, so that the network resource of the server is saved; generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user; the method comprises the steps of screening attribute information of a target live broadcast room and broadcast notification information according to user indication information, firstly screening target live broadcast rooms which do not accord with the user indication information according to whether the attribute information of the target live broadcast room accords with the user indication information, secondly screening the broadcast notification information sent by the target live broadcast room which accords with the user indication information based on the user indication information, screening broadcast notification information which a user does not want to receive, and achieving multi-dimensional shielding of the broadcast notification information. The technical problem that in the prior art, broadcast notifications can not be selectively shielded according to customer requirements is solved.
Drawings
In order to more clearly illustrate the detailed description of the embodiments of the present application or the technical solutions in the prior art, the drawings used in the detailed description or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a live data shielding method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a live data shielding apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a storage electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts belong to the protection scope of the embodiments in the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
An embodiment of the present application provides a live data shielding method, which is used for a client, and as shown in fig. 1, includes:
s101, obtaining configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except the live broadcast room to which currently played content of the client belongs;
illustratively, when the client is started, the interface is called to obtain the configuration information of the server, and the client stores the configuration information after obtaining the configuration information, so that the client has a data basis for calculating the broadcast notification information, and further, the calculation pressure is dispersed to the client, and the network resources of the server are saved.
Illustratively, when the configuration information of the server is obtained, a fetch function is adopted:
id data=[[UserDefaults objectForKey:@"DYKey_LazyConfig"]objectForKey:@"mobile/interact"];
the method comprises the steps that UserDefaults are management classes for storing configuration values, objectForKey is a large dictionary for taking out configuration information from the configuration management classes, objectForKey is configuration information taken out from the large dictionary, and mobile/interactive is an identification code key for taking out the configuration information from the large dictionary; the configuration information is searched and extracted from the storage area of the server side by the client side through the extracting function, the operation is convenient and quick, the functions of searching and extracting the configuration information are realized through one function, the resource occupation is reduced, and the resource waste is avoided.
In one possible embodiment, before the step of generating the blocking policy based on the attribute information of the target live broadcast room, the broadcast notification information, and the user information, where the user indication information is characteristic information of target broadcast notification information selected and received by the user, the method further includes:
setting priorities corresponding to different types of live broadcast rooms according to the different types of live broadcast rooms;
if the priority of the live broadcast room for sending the broadcast notification information is lower than or equal to the priority of the live broadcast room displayed by the client, shielding the broadcast notification information sent by the live broadcast room;
and if the priority of the live broadcasting room for sending the broadcast notification information is higher than that of the live broadcasting room which is displayed by the client, generating a shielding strategy for shielding the broadcast notification information sent by the live broadcasting room.
Illustratively, by the rank function:
NSNumber*userLevelMin=[broadcast_risk dy_numberForKey:@"userLevelMin"];
wherein broadcast _ risk is the attribute information of the target live broadcasting room in the broadcast notification information, dy _ number ForKey is a functional statement which takes a value from the attribute information of the target live broadcasting room, userLevelMin is an identity code of a value obtained from the attribute information of the target live broadcasting room, and NSNumber userLevelMin is the lowest level which is referred to by the identity code of the value obtained from the attribute information of the target live broadcasting room;
acquiring the lowest level of the priority of the live broadcast room for sending the broadcast notification information;
and if the lowest level of the priority of the live broadcasting room for sending the broadcast notification information is lower than or equal to the priority of the live broadcasting room which is displayed by the client, shielding the broadcast notification information sent by the live broadcasting room.
Illustratively, by setting the priorities of different types of target live broadcast rooms, the influence of broadcast notification information sent by the target live broadcast room with the priority lower than that of the currently watched live broadcast room on the currently watched live broadcast room is avoided, and the calculation amount of the subsequent generation shielding strategy process is reduced.
S102, generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user;
in one possible embodiment, the generating of the blocking policy based on the attribute information of the target live broadcast room, the broadcast notification information, and the user information, wherein the step of the user indication information selecting the feature information of the received target broadcast notification information for the user includes:
judging whether the attribute information of the target live broadcast room meets the user indication information;
and if the attribute information of the target live broadcast room meets the user indication information, generating a shielding strategy according to the broadcast notification information and the user indication information.
Exemplarily, the attribute information of the target live broadcast room is screened according to the user indication information, the target live broadcast room which does not meet the user indication information is screened, the broadcast notification information sent by the target live broadcast room which does not meet the user indication information is not continuously screened, the screening of the first dimension is realized, and the resource waste caused by the overlarge calculated amount for screening the broadcast notification information is avoided.
In one possible embodiment, the generating a blocking policy based on the attribute information of the live broadcast room, the broadcast notification information, and user information, where the user information is target broadcast notification information to be received by a user, includes:
comparing the live broadcast content type of the target live broadcast room with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user;
if the live broadcast content type of the target live broadcast room is not matched with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user, shielding the broadcast notification information of the target live broadcast room;
and if the live content type of the target live broadcast room is matched with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user, continuing to generate the shielding strategy.
Illustratively, the client uses the live content type of the target live broadcast room as the attribute information of the target live broadcast room, and determines whether the live content type of the target live broadcast room is the live broadcast content type indicated by the feature information of the target broadcast notification information selected and received by the user, thereby avoiding the problems of complex calculation process and large calculation amount in the comparison process when screening is performed through the attribute information such as the identification information of the target live broadcast room, and using the live broadcast content type of the target live broadcast room as the attribute information of the target live broadcast room, so that the screening process is convenient and rapid.
In one possible embodiment, the step of generating the masking policy according to the broadcast notification information and the user indication information includes:
comparing the notification type of the broadcast notification information with the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected and received by the user;
if the notification type of the broadcast notification information is not matched with the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected to be received by the user, shielding the broadcast notification information;
and if the notification type of the broadcast notification information matches the notification type of the notification information indicated by the feature information of the target broadcast notification information selected and received by the user, continuing to generate the masking policy.
Illustratively, the client determines whether the type of the broadcast notification information is the type of the notification information indicated by the characteristic information of the target broadcast notification information selected and received by the user, and screens the broadcast notification information, so that the problem that the viewing experience of the user is affected by displaying all the broadcast notification information sent by the target live broadcast room which meets the indication information of the user is avoided, and the broadcast notification information is screened, so that the screening result better meets the requirements of the user, and the screening of the second dimension is realized.
In a possible implementation manner, the step of importing the live data into a mask function includes:
constructing the masking function according to the user indication information, specifically:
-(BOOL)isPublicShouldShowBroadCastOrPropWithCid2:(NSString*)cid2rid:(NSString*)rid
propId:(NSString*)propId
inIbcWhitelist:(BOOL)inIbcWhitelist isAnchor:(BOOL)isAnchor;
wherein, ispublicshowBroadCastOrPropWithCid 2 is the function name of the shielding function, cid2 is the partition id between the live broadcasts to which the current playing content of the client belongs, rid (NSString) rid is the room number between the live broadcasts to which the current playing content of the client belongs, rop (NSString) prop is the prop type between the live broadcasts to which the current playing content of the client belongs, initbcWhitelist (BOOL) is a function statement for judging whether the live broadcasts to which the current playing content of the client belongs are in a white list, and isAnchor (BOOL) ischor is a function statement for judging whether the current client is the client or the live broadcasts;
the client acquires different types of parameters corresponding to the shielding function in the live broadcast data;
at least one of the parameters is imported into the masking function.
Illustratively, statements are obtained via a blacklist:
[dic dy_dictForKey:@"broadcast_risk"];
and the blacklist acquisition statement acquires a value corresponding to an identity identification code key configured by a blacklist through a blacklist configuration broadcast _ risk, and shields the corresponding content in the blacklist.
Illustratively, by determining the function:
NSArray*blackRids=[broadcast_risk objectForKey:@"blackRids"];
and judging whether the room number of the target live broadcast room for sending the broadcast notification information is in the blacklist array broadcast _ risk, and if the room number of the target live broadcast room is in the blacklist array broadcast _ risk, not displaying the broadcast.
Exemplarily, an array of prop ids of a prop arr is obtained, whether the prop ids are in the array of the prop arr is judged, and if the prop ids are in the array of the prop arr, broadcasting is not shown, so that different types of broadcast notification information are shielded.
S103, shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
In one possible embodiment, the step of masking the live data of the target live broadcast room according to the masking policy includes:
the client side leads the live broadcast data into a shielding function;
obtaining the shielding strategy, wherein the shielding strategy comprises a return value of the shielding function;
and finishing shielding the live broadcast data according to the return value.
Illustratively, the live broadcast data is shielded according to the return value, the return value is of a pool type, that is, the return value is specifically YES or NO, the calculation amount of the return value is small, and NO additional analysis is needed, so that the shielding process is more convenient and quicker.
In one possible embodiment, when the shielding of the broadcast notification information is increased, the method includes:
adopting an interception function:
BOOL isShow=[[DYInteractiveConfigManager sharedInstance]isPublicShouldShowBroadCastOrPropWithCid2:roomInfo.cid2rid:roomInfo.room_id propId:spbc.pid inIbcWhitelist:roomInfo.inIbcWhitelist isAnchor:NO];
wherein [ DY Interactive ConfigManager shared instance ] is the feature information of the broadcast notification information needing to be shielded, spped is a prop type id, roomlfo is a secondary partition id of the current room, roomlfo is a room id of the current room, spbc is a prop id of the current room, and roomlfo is an iIiWhitleist is a function statement for acquiring whether the current room is in a white list/a black list.
Illustratively, the broadcast notification information is shielded through an interception function, shielding is performed according to transmitted user knowledge information, if a server configures a property id in a configuration interface, a corresponding property id is found in a configuration file of a client to identify whether the current broadcast notification information is displayed, and if the configuration file informs that the property id is in a room and the broadcast of the partition id needs to be displayed, the broadcast notification information is displayed, so that the display dynamism of the broadcast notification information is realized.
The method comprises the steps that a client side obtains configuration information of a server side, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except a live broadcast room to which current playing content of the client side belongs; the client acquires the configuration information of the server and disperses the calculation pressure to the client, so that the network resource of the server is saved; generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user; the method comprises the steps of screening attribute information of a target live broadcast room and broadcast notification information according to user indication information, firstly screening target live broadcast rooms which do not accord with the user indication information according to whether the attribute information of the target live broadcast room accords with the user indication information, secondly screening the broadcast notification information sent by the target live broadcast room which accords with the user indication information based on the user indication information, screening broadcast notification information which a user does not want to receive, meanwhile, avoiding the influence of the broadcast notification information sent by the target live broadcast room with the priority lower than that of the currently watched live broadcast room on the currently watched live broadcast room by setting the priorities of different types of target live broadcast rooms, reducing the calculated amount of the screening process, meanwhile, displaying/shielding the screened broadcast notification information according to a white list/black list in the user information, further meeting the customer requirements, improving the user experience, and shielding the live broadcast data of the target live broadcast room according to the shielding strategy. The technical problem that in the prior art, broadcast notifications can not be selectively shielded according to customer requirements is solved.
In a possible implementation manner, as shown in fig. 2, an embodiment of the present application provides a live data shielding apparatus, including:
a data acquisition module 201, configured to acquire configuration information of a server, where the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is a live broadcast room other than a live broadcast room currently displayed by the client;
a generating module 202, configured to generate a shielding policy based on attribute information of the target live broadcast room, the broadcast notification information, and user indication information, where the user indication information is feature information of target broadcast notification information selected and received by a user;
and the shielding module 203 is configured to shield the live broadcast data in the target live broadcast room according to the shielding policy.
In one possible real-time mode, as shown in fig. 3, an embodiment of the present invention provides an electronic device, which includes a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, where the processor 320 executes the computer program 311 to implement: acquiring configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except for a live broadcast room currently displayed by the client; generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user; and shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
In one possible real-time approach, as shown in fig. 4, the present embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored, the computer program 411 realizing, when executed by a processor: acquiring configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except for a live broadcast room currently displayed by the client; generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user; and shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
For another example, the division of the above-mentioned units is only a logical function division, and there may be another division in actual implementation, and for another example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above functions, if implemented in the form of software functional units and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, which essentially or partly contribute to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures, and moreover, the terms "first," "second," "third," etc. are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above embodiments are merely specific implementations of the embodiments of the present application, and are not intended to limit the technical solutions of the embodiments of the present application, and the scope of the embodiments of the present application is not limited thereto, and although the embodiments of the present application are described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that: those skilled in the art can still make modifications or changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some technical features, within the technical scope of the embodiments disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A live broadcast data shielding method is used for a client and comprises the following steps:
acquiring configuration information of a server, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except for a live broadcast room currently displayed by a client;
generating a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and user indication information, wherein the user indication information is characteristic information of the target broadcast notification information selected and received by a user;
and shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
2. The live broadcast data shielding method according to claim 1, wherein the step of generating a shielding policy based on the attribute information of the target live broadcast room, the broadcast notification information, and user indication information, wherein the user indication information is characteristic information of target broadcast notification information selected and received by a user, includes:
judging whether the attribute information of the target live broadcast room meets the user indication information or not;
and if the attribute information of the target live broadcast room meets the user indication information, generating a shielding strategy according to the broadcast notification information and the user indication information.
3. The live broadcast data shielding method according to claim 2, wherein the step of determining whether the attribute information of the target live broadcast room satisfies the user indication information live broadcast room comprises:
comparing the live content type of the target live broadcast room with the live content type indicated by the characteristic information of the target broadcast notification information selected and received by the user;
if the type of the live broadcast content of the target live broadcast room is not matched with the type of the live broadcast content indicated by the characteristic information of the target broadcast notification information selected and received by the user, a step of shielding the broadcast notification information of the target live broadcast room is executed;
and if the live content type of the target live broadcast room is matched with the live broadcast content type indicated by the characteristic information of the target broadcast notification information selected and received by the user, continuing to generate the shielding strategy.
4. The live broadcast data shielding method according to claim 2, wherein the step of generating the shielding policy according to the broadcast notification information and the user information comprises:
comparing the notification type of the broadcast notification information with the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected to be received by the user;
if the notification type of the broadcast notification information does not match the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected to be received by the user, executing a step of shielding the broadcast notification information;
and if the notification type of the broadcast notification information is matched with the notification type of the notification information indicated by the characteristic information of the target broadcast notification information selected to be received by the user, continuing to generate a shielding strategy based on the attribute information of the target live broadcast room, the broadcast notification information and the user indication information.
5. The live broadcast data shielding method of claim 1, wherein before the step of generating a shielding policy based on the attribute information of the target live broadcast room, the broadcast notification information and user information, wherein the user indication information is characteristic information of target broadcast notification information selected and received by a user, the method further comprises:
setting priorities corresponding to different types of live broadcast rooms according to the different types of live broadcast rooms;
if the priority of the live broadcast room for sending the broadcast notification information is lower than or equal to the priority of the live broadcast room which is displayed by the client, the step of shielding the broadcast notification information sent by the live broadcast room is executed;
and if the priority of the live broadcast room for sending the broadcast notification information is higher than that of the live broadcast room which is displayed by the client, continuously generating the shielding strategy live broadcast room.
6. The live data shielding method according to claim 1, wherein the step of shielding the live data of the target live room according to the shielding policy includes:
importing the live broadcast data into a shielding function;
obtaining the shielding strategy, wherein the shielding strategy comprises a return value of the shielding function;
and finishing shielding the live broadcast data according to the return value.
7. The live data shielding method according to claim 6, wherein the step of importing the live data into a shielding function includes:
constructing the shielding function according to the user indication information:
-(BOOL)isPublicShouldShowBroadCastOrPropWithCid2:(NSString*)cid2rid:(NSString*)rid
propId:(NSString*)propId
inIbcWhitelist:(BOOL)inIbcWhitelist isAnchor:(BOOL)isAnchor;
the client side comprises a shielding function, a client side and an IibcWhitelist, wherein the isPublicShowBroadCastOrPropWithCid 2 is the function name of the shielding function, the cid2 is the partition id between the live broadcasts to which the current broadcast content of the client side belongs, the rid (NSString) rid is the room number of the live broadcast to which the current broadcast content of the client side belongs, the rop (NSString) prop is the prop type between the live broadcasts to which the current broadcast content of the client side belongs, the (BOOL) inbcWhitelist is a functional statement for judging whether the live broadcast to which the current broadcast content of the client side belongs is in a white list or not, and the isAnchor (BOOL) ischor is a functional statement for judging whether the current client side is the client side or the live broadcasts;
acquiring different types of parameters corresponding to the shielding function in the live broadcast data;
importing at least one of said parameters into said masking function.
8. A live data shield apparatus, comprising:
the data acquisition module is used for acquiring configuration information of the server side, wherein the configuration information is attribute information of a target live broadcast room and broadcast notification information of the target live broadcast room, and the target live broadcast room is other live broadcast rooms except the live broadcast room to which the currently played content of the client side belongs;
a generating module, configured to generate a shielding policy based on attribute information of the target live broadcast room, the broadcast notification information, and user indication information, where the user indication information is feature information of target broadcast notification information selected and received by a user;
and the shielding module is used for shielding the live broadcast data of the target live broadcast room according to the shielding strategy.
9. An electronic device, comprising: memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor is configured to implement the steps of the live data masking method as claimed in any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the live data screening method as claimed in any one of claims 1 to 7.
CN202110455810.6A 2021-04-26 2021-04-26 Live broadcast data shielding method and related equipment Pending CN115250359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110455810.6A CN115250359A (en) 2021-04-26 2021-04-26 Live broadcast data shielding method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110455810.6A CN115250359A (en) 2021-04-26 2021-04-26 Live broadcast data shielding method and related equipment

Publications (1)

Publication Number Publication Date
CN115250359A true CN115250359A (en) 2022-10-28

Family

ID=83697420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110455810.6A Pending CN115250359A (en) 2021-04-26 2021-04-26 Live broadcast data shielding method and related equipment

Country Status (1)

Country Link
CN (1) CN115250359A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100483A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Notification setting method and device and terminal
CN106412334A (en) * 2016-11-11 2017-02-15 努比亚技术有限公司 Notification message shielding device and method
CN106648661A (en) * 2016-12-22 2017-05-10 北京珠穆朗玛移动通信有限公司 Notification bar message processing method and mobile terminal
CN107135428A (en) * 2017-04-19 2017-09-05 深圳市金立通信设备有限公司 A kind of method and terminal for shielding message
CN111970526A (en) * 2020-08-18 2020-11-20 广州华多网络科技有限公司 Interface notification message processing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100483A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Notification setting method and device and terminal
CN106412334A (en) * 2016-11-11 2017-02-15 努比亚技术有限公司 Notification message shielding device and method
CN106648661A (en) * 2016-12-22 2017-05-10 北京珠穆朗玛移动通信有限公司 Notification bar message processing method and mobile terminal
CN107135428A (en) * 2017-04-19 2017-09-05 深圳市金立通信设备有限公司 A kind of method and terminal for shielding message
CN111970526A (en) * 2020-08-18 2020-11-20 广州华多网络科技有限公司 Interface notification message processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10686843B2 (en) Authorization policy recommendation method and apparatus, server, and storage medium
CN107305611B (en) Method and device for establishing model corresponding to malicious account and method and device for identifying malicious account
CN108961157B (en) Picture processing method, picture processing device and terminal equipment
CN110784755A (en) Bullet screen information display method and device, terminal and storage medium
CN111432263B (en) Barrage information display, processing and release method, electronic equipment and medium
CN110297975B (en) Recommendation strategy evaluation method and device, electronic equipment and storage medium
CN107909368B (en) Payment control method and device, terminal and readable storage medium
CN106873857B (en) Automatic application icon layout method and device
CN112533072A (en) Image sending method and device and electronic equipment
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN115250359A (en) Live broadcast data shielding method and related equipment
CN111898022A (en) Trademark category recommendation method and device, storage medium and electronic equipment
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN114258662A (en) User behavior data processing method and device, server and storage medium
CN114643835A (en) Fragrance adjusting method and device based on nose information, electronic equipment and storage medium
EP3385872B1 (en) Anti-counterfeiting method, device, storage medium and apparatus based on invalid map data
CN110929207B (en) Data processing method, device and computer readable storage medium
CN114461920A (en) Data processing method, device, medium and equipment for list information recommendation
CN110223108B (en) Click through rate prediction method, device and equipment
CN111491060B (en) Information click log and ticket splicing method and device
CN112256654A (en) Document sharing method and device
CN111752656A (en) Information display method and device, electronic equipment and storage medium
CN110856012B (en) Method, device, equipment and storage medium for sharing virtual product to live broadcast platform
CN111858542B (en) Data processing method, device, equipment and computer readable storage medium
CN109547821B (en) Television station channel viewing tendency evaluation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination