CN113347467A - Loudspeaker information adjusting method and device, server and storage medium - Google Patents

Loudspeaker information adjusting method and device, server and storage medium Download PDF

Info

Publication number
CN113347467A
CN113347467A CN202110608562.4A CN202110608562A CN113347467A CN 113347467 A CN113347467 A CN 113347467A CN 202110608562 A CN202110608562 A CN 202110608562A CN 113347467 A CN113347467 A CN 113347467A
Authority
CN
China
Prior art keywords
information
broadcast
adjusted
horn
loudspeaker
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.)
Granted
Application number
CN202110608562.4A
Other languages
Chinese (zh)
Other versions
CN113347467B (en
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 CN202110608562.4A priority Critical patent/CN113347467B/en
Publication of CN113347467A publication Critical patent/CN113347467A/en
Application granted granted Critical
Publication of CN113347467B publication Critical patent/CN113347467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client

Abstract

The embodiment of the invention discloses a loudspeaker information adjusting method, a loudspeaker information adjusting device, a server and a storage medium. The method comprises the following steps: acquiring a configurable intermediate broadcast model which is constructed preliminarily; receiving configuration information issued by a server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information; assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model; constructing a loudspeaker to be adjusted according to the determined loudspeaker information; and acquiring information to be adjusted and an information adjustment target in the established horn information of the horn to be adjusted, adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating the corresponding horn information according to the adjusted information to obtain the adjusted horn. According to the technical scheme of the embodiment of the invention, the adjustment operation of the loudspeaker information can be simplified.

Description

Loudspeaker information adjusting method and device, server and storage medium
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a loudspeaker information adjusting method, a loudspeaker information adjusting device, a server and a storage medium.
Background
The speaker is a function frequently used in a live Application (APP), and a user can send a barrage message through the speaker in a barrage section, and then the barrage message can be displayed on a live broadcast room, and the barrage message can also be called a broadcast message.
In the process of implementing the invention, the inventor finds that the following technical problems exist in the prior art: when the configuration information of the loudspeaker (which may be referred to as loudspeaker information hereinafter) is adjusted, the loudspeaker information needs to be adjusted first, and a new version is released again after the adjustment to apply the newly configured (i.e., adjusted) loudspeaker, which obviously has a problem that the adjustment process is complicated.
Disclosure of Invention
The embodiment of the invention provides a loudspeaker information adjusting method, a loudspeaker information adjusting device, a server and a storage medium, and aims to achieve the effect of convenience adjustment of loudspeaker information.
In a first aspect, an embodiment of the present invention provides a method for adjusting speaker information, which is applied to a server, and the method may include:
when a horn information adjustment event is detected, acquiring information to be adjusted and an information adjustment target in each piece of horn information of the built to-be-adjusted horn corresponding to the horn information adjustment event;
adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker;
the loudspeaker to be adjusted is constructed in advance through the following steps:
acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores each attribute information to be assigned of a broadcast message sent by a loudspeaker to be adjusted to be constructed;
receiving configuration information issued by a server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information;
assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model;
and constructing the horn to be adjusted according to the determined information of each horn.
In a second aspect, an embodiment of the present invention further provides a speaker information adjusting apparatus configured in a server, where the apparatus may include:
the adjusting information acquisition module is used for acquiring information to be adjusted and information adjusting targets in the established horn information of the horn to be adjusted corresponding to the horn information adjusting event when the horn information adjusting event is detected;
the adjusted loudspeaker obtaining module is used for adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker;
wherein, treat that the adjustment loudspeaker are built in advance through following module and are accomplished:
the intermediate broadcast model acquisition module is used for acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores various attribute information to be assigned of broadcast messages sent by loudspeakers to be adjusted to be constructed;
the information field obtaining module is used for receiving the configuration information issued by the server, analyzing the configuration information based on a preset analysis tool and obtaining each information field in the configuration information;
the loudspeaker information determining module is used for respectively assigning the information fields to corresponding attribute information to obtain a constructed target broadcast model and determining the loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model;
and the to-be-adjusted loudspeaker constructing module is used for constructing the to-be-adjusted loudspeaker according to the determined loudspeaker information.
In a third aspect, an embodiment of the present invention further provides a server, which may include:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for adjusting horn information according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for adjusting horn information provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the initially constructed configurable intermediate broadcast model is obtained, and the intermediate broadcast model can store various attribute information to be assigned of the broadcast message sent by the loudspeaker to be adjusted to be constructed; after receiving the configuration information issued by the server, analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information; because each information field and each attribute information have correspondence in information type, each information field can be respectively assigned to corresponding attribute information to obtain a constructed target broadcast model, then each loudspeaker information in the loudspeaker to be adjusted to be constructed is determined according to the target broadcast model, and then the loudspeaker to be adjusted is constructed according to the determined loudspeaker information; accordingly, when a horn information adjusting event is detected, the information to be adjusted and the information adjusting target in the horn information of the built horn to be adjusted corresponding to the horn information adjusting event can be obtained, the information to be adjusted is adjusted based on the information adjusting target to obtain adjusted information, corresponding horn information is updated according to the adjusted information, and the adjusted horn with the new configuration and capable of being directly applied is obtained. According to the technical scheme, the horn to be adjusted is constructed through the configuration information issued by the server, so that the horn information of the horn to be adjusted can be subsequently and directly adjusted in the server, and the newly configured horn can be directly applied after adjustment, so that the effect of simplifying the adjustment operation of the horn information is achieved, and the real-time performance of function experience is improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting speaker information according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting speaker information according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for adjusting speaker information according to a third embodiment of the present invention;
fig. 4 is a flowchart of a loudspeaker information adjusting method according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a speaker information adjusting apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server in the sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for adjusting speaker information according to a first embodiment of the present invention. This embodiment is applicable to the condition of adjusting loudspeaker information, is particularly useful for after adjusting loudspeaker information, can directly use the condition of the loudspeaker of new configuration. The method may be performed by a speaker information adjusting apparatus provided in an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and the apparatus may be integrated on a server.
Referring to fig. 1, the method of the embodiment of the present invention specifically includes the following steps:
s110, acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores various attribute information to be assigned of broadcast messages sent by loudspeakers to be adjusted to be constructed.
The intermediate broadcast model may be a preliminarily constructed model that can be configured to store attribute information of a broadcast message, the broadcast message may be a message sent by a to-be-constructed loudspeaker to be adjusted, and the to-be-adjusted loudspeaker may be a loudspeaker that has not been constructed but needs to be constructed; the attribute information may be default information that is to be assigned according to configuration information issued by the server and that can indicate the attribute of the broadcast message, so that the intermediate broadcast model is a model that can be configured. The attribute information may be a broadcast type normalshow dyguangboid of the broadcast message, such as total station broadcast, partition broadcast, etc.; sender of a broadcast message, which may indicate who the broadcast message (or the speaker to be tuned that sent the broadcast message) was sent; the sender's user identification senderUid; the message content chatmsg of the broadcast message; a partition identity cid of the broadcast message; sending the head portrait information icon of the loudspeaker to be adjusted of the broadcast message; the head portrait sends attribute information ail related to the information; etc., and are not specifically limited herein.
It should be noted that, firstly, the reason why the intermediate broadcast model is referred to as a model that is preliminarily constructed is that the attribute information stored therein is information that has not been assigned according to the actual configuration information; secondly, the intermediate broadcast model is constructed in various ways, for example, based on a function dydydydydydydguangbodel [ [ dydguangbodel alloc ] init ], an intermediate broadcast model dydguangbodel is constructed, where dydguangbodel is a class of the intermediate broadcast model, alloc is a method for allocating memory, and then the intermediate broadcast model can be obtained by initializing based on the init method.
And S120, receiving the configuration information issued by the server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information.
The configuration information may be information issued by the server and used for configuring the intermediate broadcast model, and it is emphasized that, because the configuration information is issued by the server, after the configurable to-be-adjusted speaker is constructed based on the configuration information, the speaker information of the to-be-adjusted speaker may be subsequently and directly adjusted at the server without being adjusted at the client, which means that the adjusted speaker (i.e., the adjusted speaker) is not required to be applied in a manner of reissuing a new version, but the adjusted speaker may be directly applied after the speaker information adjustment is performed at the server, thereby simplifying the adjustment operation of the speaker information and improving the real-time performance of the functional experience. In practical applications, optionally, the configuration information may be c + + information, php information, and the like, which is not specifically limited herein.
After receiving the configuration information issued by the server, the configuration information may be analyzed based on a preset analysis tool to obtain each information field in the configuration information. On this basis, optionally, in view of application scenarios that may be involved in the embodiments of the present invention, the preset parsing tool may be a bullet parsing tool decoder getItem.
And S130, assigning the information fields to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining the information of each loudspeaker in the loudspeaker to be adjusted to be constructed according to the target broadcast model.
Since the information fields and the corresponding attribute information have the same information type, the information fields can be respectively assigned to the corresponding attribute information, that is, each information field can be assigned to the attribute information having the same information type. Illustratively, the information field unk may be assigned to the attribute information sensor based on a command dyguangbomodel.sensor [ decoder getItem: @ "unk" ], and similarly, information fields corresponding to the remaining attribute information required by the DYGuangboModel may be extracted and then assigned separately. After the assignment operation is completed, a constructed target broadcast model can be obtained, the target broadcast model can be understood as a model in which the stored attribute information is assigned according to the actual configuration information, so that various horn information in the horn to be adjusted to be constructed can be reversely deduced according to the target broadcast model, the horn information is an essential factor when the horn to be adjusted is constructed, and the horn information can be understood as the configuration information of the horn to be adjusted.
And S140, constructing the horn to be adjusted according to the determined information of each horn.
After the information structure of each horn of the horn to be adjusted to be constructed is determined, the horn to be adjusted can be constructed according to the information structure, and therefore the horn to be adjusted is constructed in advance.
It should be noted that, because the configuration information (i.e., the horn information) of the horn to be adjusted is determined according to the configuration information issued by the server, the horn information can be directly adjusted at the server, and then the newly configured horn (i.e., the adjusted horn) can be directly applied after adjustment, thereby achieving the effects of relatively convenient adjustment operation and good timeliness of functional experience.
S150, when the horn information adjustment event is detected, acquiring information to be adjusted and information adjustment targets in the built horn information of the horn to be adjusted corresponding to the horn information adjustment event.
The horn information adjusting event may be an event triggered actively by a user or triggered automatically by a system and used for adjusting information to be adjusted in each piece of horn information of the horn to be adjusted, and the information to be adjusted may be information to be adjusted in each piece of horn information. Therefore, after the horn information adjustment event is detected, the information to be adjusted corresponding to the horn information adjustment event and an information adjustment target may be obtained, where the information adjustment target may indicate how to adjust the information to be adjusted, for example, increase a value of some information to be adjusted, decrease a value of some information to be adjusted, increase some information to be adjusted, reject some information to be adjusted, and the like, and is not specifically limited herein.
And S160, adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker.
The information to be adjusted is adjusted based on the information adjustment target, so that adjusted information can be obtained, and the adjusted information can be adjusted information to be adjusted. And then, updating the corresponding loudspeaker information according to the adjusted information, namely updating the information to be adjusted in each loudspeaker information into the adjusted information, thereby obtaining the newly configured adjusted loudspeaker which can be directly applied.
It should be noted that, because the information of each speaker in the adjusted speaker is determined according to the configuration information directly issued by the server, that is, the speaker can be configured, the adjusted speaker at this time can have multiple styles, is changeable, and has higher flexibility.
According to the technical scheme of the embodiment of the invention, the initially constructed configurable intermediate broadcast model is obtained, and the intermediate broadcast model can store various attribute information to be assigned of the broadcast message sent by the loudspeaker to be adjusted to be constructed; after receiving the configuration information issued by the server, analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information; because each information field and each attribute information have correspondence in information type, each information field can be respectively assigned to corresponding attribute information to obtain a constructed target broadcast model, then each loudspeaker information in the loudspeaker to be adjusted to be constructed is determined according to the target broadcast model, and then the loudspeaker to be adjusted is constructed according to the determined loudspeaker information; accordingly, when a horn information adjusting event is detected, the information to be adjusted and the information adjusting target in the horn information of the built horn to be adjusted corresponding to the horn information adjusting event can be obtained, the information to be adjusted is adjusted based on the information adjusting target to obtain adjusted information, corresponding horn information is updated according to the adjusted information, and the adjusted horn with the new configuration and capable of being directly applied is obtained. According to the technical scheme, the horn to be adjusted is constructed through the configuration information issued by the server, so that the horn information of the horn to be adjusted can be subsequently and directly adjusted in the server, and the newly configured horn can be directly applied after adjustment, so that the effect of simplifying the adjustment operation of the horn information is achieved, and the real-time performance of function experience is improved.
An optional technical solution is to receive configuration information issued by a server, analyze the configuration information based on a preset analysis tool, and obtain each information field in the configuration information, where the method may include: when a platform starting event of a broadcast message display platform is detected, acquiring the broadcast message display platform corresponding to the platform starting event and a constructed configuration interface, and pulling configuration information corresponding to the broadcast message display platform from a server by calling the configuration interface; generating a configuration file based on the configuration information, and converting the configuration file into a configuration model; and analyzing the configuration model based on a preset analysis tool to obtain each information field in the configuration model.
The broadcast message display platform may be a platform for displaying a broadcast message, such as a live broadcast room, a video playing platform, and the like, and the platform start event may be an event detected by the broadcast message display platform when the platform start event is detected, so that when the platform start event is detected, the corresponding broadcast message display platform and a configured interface that has been constructed may be obtained, and the configured interface may be a predefined interface for pulling configuration information corresponding to the broadcast message display platform as an intermediate medium, that is, the configuration information corresponding to the broadcast message display platform may be pulled from a server by calling the configured interface. In practical applications, the configuration information may be information in json format, and may be further converted into a dictionary. Furthermore, a configuration file is generated based on the configuration information, and the configuration file is converted into a configuration model, and it should be noted that compared with the configuration information, the setting of the configuration model improves the convenience of the application. For example, the configuration model comboxModel may include two fields, one is a field mobileAcrossPic indicating a vertical background picture, and the other is a field propertySwitchClosed indicating a horizontal background picture. Furthermore, the configuration model can be analyzed based on preset analysis tool analysis to obtain each information field in the configuration model, and the setting of the configuration model improves the convenience of the analysis process.
Example two
Fig. 2 is a flowchart of a loudspeaker information adjusting method according to a second embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, before constructing the horn to be adjusted according to the determined horn information, the horn information adjusting method may further include: determining a current proxy object in a broadcast message display platform corresponding to the configuration information, and judging whether the current proxy object can receive the broadcast message; if so, sending the broadcast message received by the current proxy object to the caption controller so that the caption controller sends the broadcast message to the broadcast controller; when a broadcast message receiving event from a broadcast controller is detected, constructing a loudspeaker view of a loudspeaker to be adjusted, which is used for sending a broadcast message corresponding to the broadcast message receiving event; correspondingly, constructing the horn to be adjusted according to the determined information of each horn may include: and constructing the horn to be adjusted according to the determined horn information and the horn view. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
Referring to fig. 2, the method of the present embodiment may specifically include the following steps:
s210, acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores various attribute information to be assigned of broadcast messages sent by loudspeakers to be adjusted to be constructed.
S220, receiving the configuration information issued by the server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information.
S230, assigning the information fields to corresponding attribute information respectively to obtain a constructed target broadcast model, determining the information of each loudspeaker in the loudspeakers to be adjusted to be constructed according to the target broadcast model,
s240, determining the current proxy object in the broadcast message display platform corresponding to the configuration information, and judging whether the current proxy object can receive the broadcast message.
The current proxy object may be an object capable of currently acting on the broadcast message display platform corresponding to the configuration information, and in order to ensure that the broadcast message can be normally displayed on the broadcast message display platform, it may be determined whether the current proxy object can receive the broadcast message.
And S250, if so, sending the broadcast message received by the current proxy object to the caption controller so that the caption controller sends the broadcast message to the broadcast controller.
If the current proxy object can receive the broadcast message, the broadcast message received by the current proxy object can be sent to a caption controller, so that the caption controller sends the received broadcast message to the broadcast controller.
And S260, when a broadcast message receiving event from the broadcast controller is detected, constructing a horn view of the horn to be adjusted, which is used for sending the broadcast message corresponding to the broadcast message receiving event.
The broadcast message receiving event may be an event detected in the broadcast controller to indicate that the broadcast controller receives a broadcast message, and therefore, when the broadcast message receiving event is detected, a horn view of the horn to be adjusted for transmitting a broadcast message corresponding to the broadcast message receiving event may be constructed, where the horn view is also one of important factors in a construction process of the horn to be adjusted.
And S270, constructing the horn to be adjusted according to the determined horn information and the horn view.
After the information and the view of each horn of the horn to be adjusted to be constructed are determined, the horn to be adjusted can be constructed according to the information and the view of each horn, and therefore the horn to be adjusted is constructed in advance.
And S280, when the horn information adjustment event is detected, acquiring information to be adjusted and information adjustment targets in the built horn information of the horn to be adjusted corresponding to the horn information adjustment event.
And S290, adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker.
According to the technical scheme of the embodiment of the invention, the current proxy object in the broadcast message display platform corresponding to the configuration information is determined, so that whether the current proxy object can receive the broadcast message or not can be judged; if the current proxy object can be received, sending the broadcast message received by the current proxy object to a curtain controller so that the curtain controller sends the broadcast message to a broadcast controller; therefore, when a broadcast message receiving event from the broadcast controller is detected, a loudspeaker view of the loudspeaker to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event can be constructed, and then the loudspeaker to be adjusted is constructed according to the determined loudspeaker information and the loudspeaker view, so that the effect of accurately constructing the loudspeaker to be adjusted is achieved.
In order to better understand the specific implementation process of the above steps, the following description is made in an exemplary manner with reference to specific examples. For example, the horn view may be constructed based on a function that self.delete is a current proxy object (i.e., a proxy of a current controller), a respondtoselect method is used to determine whether self.delete follows a method of socket receiving gui zu dygugang, i.e., whether self.delete can receive a broadcast message, and if so, the broadcast message received by self.delete is sent to the curtain controller based on the self.delete calling the method of socket receiving guizu zu dygugang, so that the curtain controller sends the broadcast message to the broadcast controller.
if([self.delegaterespondsToSelector:@selector(socketReceivedGuiZuDYGuangbo:)]){
[self.delegate socketReceivedGuiZuDYGuangbo:DYGuangboModel];
}
EXAMPLE III
Fig. 3 is a flowchart of a method for adjusting speaker information according to a third embodiment of the present invention. The present embodiment is optimized based on the second embodiment. In this embodiment, optionally, constructing a horn view of the horn to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event may include: taking the model type of the dynamic broadcast model to be constructed as an input parameter, calling a constructed model initialization function for initialization to obtain a constructed dynamic broadcast model; determining a broadcast type of the broadcast message according to the constructed dynamic broadcast model, wherein the broadcast type comprises a subarea broadcast and/or a total station broadcast; and if the broadcast type is the partition broadcast, constructing a picture view corresponding to the partition background picture, and using the picture view as a loudspeaker view of the loudspeaker to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
Referring to fig. 3, the method of this embodiment may specifically include the following steps:
s310, acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores various attribute information to be assigned of broadcast messages sent by loudspeakers to be adjusted to be constructed.
S320, receiving configuration information issued by a server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information; and assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model.
S330, determining a current proxy object in the broadcast message display platform corresponding to the configuration information, judging whether the current proxy object can receive the broadcast message, and if so, sending the broadcast message received by the current proxy object to the caption controller so that the caption controller sends the broadcast message to the broadcast controller.
S340, when a broadcast message receiving event from the broadcast controller is detected, taking the model type of the to-be-constructed dynamic broadcast model of the broadcast message corresponding to the broadcast message receiving event as an entry parameter, and calling a constructed model initialization function to initialize to obtain the constructed dynamic broadcast model.
The broadcast message receiving event may be an event triggered after the broadcast controller receives the broadcast message, and therefore, after the broadcast message receiving event is detected, the model type of the to-be-constructed dynamic broadcast model of the broadcast message corresponding to the broadcast message receiving event may be used as an entry parameter, and a constructed model initialization function is called to initialize, so that the constructed dynamic broadcast model is obtained. Illustratively, the dynamic broadcast model building process may be performed based on a function (instancetype) initWithDYGuangboInfo (dydggyangbomodel) — DYGuangboModel, where instancetype is the type of return value, initWithDYGuangboInfo is the method name of the function, dygguangbobo model is the model type, i.e., the parameter of the function, and dydggyangbomodel is the type of DYGuangboModel.
And S350, determining the broadcast type of the broadcast message according to the constructed dynamic broadcast model, wherein the broadcast type comprises a subarea broadcast and/or a total station broadcast.
After a dynamic broadcast model of the broadcast message is constructed, the broadcast type of the broadcast message, such as a partition broadcast, a total station broadcast, and the like, may be determined according to the dynamic broadcast model, where the broadcast message of the partition broadcast is a message that may be displayed on a certain partition in the broadcast message display platform, and the broadcast message of the total station broadcast is a message that may be displayed on a total station in the broadcast message display platform. Exemplarily, by the function BOOL isSite ═ DYGUANGBOModel. cateid isEqualToString @ "0"; the broadcast type isSite of the broadcast message is determined.
And S360, if the broadcast type is the partition broadcast, constructing a picture view corresponding to the partition background picture, and using the picture view as a loudspeaker view of the loudspeaker to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event.
When the broadcast type is the partition broadcast, a picture view corresponding to a partition background picture (i.e., a partition background picture) may be constructed, and the picture view may be used as a horn view of a horn to be adjusted for sending a broadcast message corresponding to the broadcast message receiving event.
And S370, constructing the horn to be adjusted according to the determined horn information and the horn view.
And S380, when the horn information adjustment event is detected, acquiring information to be adjusted and information adjustment targets in the constructed horn information of the horn to be adjusted corresponding to the horn information adjustment event.
And S390, adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker.
According to the technical scheme of the embodiment of the invention, the model type of the to-be-constructed dynamic broadcast model of the broadcast message corresponding to the broadcast message receiving event is taken as the parameter, and the constructed model initialization function is called for initialization to obtain the constructed dynamic broadcast model; furthermore, the broadcast type of the broadcast message is determined according to the constructed dynamic broadcast model, when the broadcast type belongs to the partition broadcast, a picture view corresponding to the partition background picture can be constructed, and then the picture view is used as a loudspeaker view of a loudspeaker to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event, so that the effect of accurately constructing the loudspeaker view is achieved.
On this basis, an optional technical solution is to construct a horn to be adjusted according to the determined horn information and horn views, and may include: generating a configuration file based on the configuration information, converting the configuration file into a configuration model, and acquiring a partition background picture from the configuration model; and constructing the horn to be adjusted according to the determined horn information, the partition background picture and the horn view. Wherein, as described above, a configuration file may be generated based on the configuration information and then converted into a configuration model. Since the configuration model may store fields related to the background picture, the partition background picture may be obtained from the configuration model, and the speaker to be adjusted may be constructed based on the determined speaker information, the partition background picture, and the speaker view. Illustratively, continuing with the above example as an example, for the configuration model comboxModel, it may be represented by the function dbybuserpropertycomboxcommodel ═ comboxModel ═ dbyids: model. And obtaining, wherein the DYBURSPERPROPERTYPOBXModel is a class of the configuration model, and the configuration model is found by calling a filter method filteredPropertiesByIds and attribute information sendPoperties of the configuration model.
Another optional technical solution is that constructing a picture view corresponding to the partition background picture may include: taking the position information of the horn image to be constructed as a parameter, calling the constructed image construction function, and obtaining the constructed horn image according to the output result of the image construction function; and obtaining the model type of the dynamic broadcast model, and constructing a picture view corresponding to the partition background picture according to the model type and the loudspeaker image. The position information may be position information of the horn image to be constructed in the broadcast message display platform, and in practical application, optionally, the position information may be represented by coordinates. And calling the constructed image construction function by taking the position information as a parameter, thereby obtaining the constructed horn image according to the output result of the image construction function. Illustratively, the image construction function may be UIImageView imgView [ [ UIImageView alloc ] initWithFrame: cgrecctmake (0,0,46, kGuiZuBroadcastViewHeight) ]; the loudspeaker image is created based on a UIImageView alloc method, coordinates are set for the loudspeaker image based on an initWithFrame method, and CGRectMake (0,0,46, kGuiZuBroadcastViewheight) is the coordinates (namely position information) of the loudspeaker image. Furthermore, the predetermined model type of the dynamic broadcast model can be obtained, and the picture view corresponding to the partition background picture is constructed according to the model type and the loudspeaker image, so that the effect of accurately constructing the picture view is achieved.
Example four
Fig. 4 is a flowchart of a loudspeaker information adjusting method according to a fourth embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, before analyzing the configuration information based on a preset analysis tool, the method for adjusting the horn information may further include: determining a broadcast message display platform corresponding to the configuration information; taking the broadcast message display platform as an access parameter, calling a constructed broadcast shielding state acquisition function, and acquiring an output result of the broadcast shielding state acquisition function based on a constructed broadcast shielding state acquisition interface to obtain a broadcast shielding state of the broadcast message display platform; if the broadcast message display platform is determined to be set related to the broadcast message shielding according to the broadcast shielding state, returning to the platform identification of the broadcast message display platform; correspondingly, assigning each information field to corresponding attribute information respectively may include: and assigning each information field to corresponding attribute information respectively, and assigning the platform identification to the corresponding attribute information. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
Referring to fig. 4, the method of this embodiment may specifically include the following steps:
s410, acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores various attribute information to be assigned of broadcast messages sent by loudspeakers to be adjusted to be constructed.
And S420, receiving the configuration information issued by the server, and determining a broadcast message display platform corresponding to the configuration information.
The configuration information sent by the server may be information configured for a certain broadcast message display platform, and therefore, after receiving the configuration information sent by the server, the broadcast message display platform corresponding to the configuration information may be determined.
S430, taking the broadcast message display platform as an entry parameter, calling the constructed broadcast shielding state obtaining function, and obtaining an output result of the broadcast shielding state obtaining function based on the constructed broadcast shielding state obtaining interface to obtain the broadcast shielding state of the broadcast message display platform.
After the broadcast message display platform is obtained, the broadcast message display platform may be used as an entry parameter to call a constructed broadcast shielding state obtaining function, where the broadcast shielding state obtaining function may be a function for obtaining a broadcast shielding state of the broadcast message display platform, and the broadcast shielding state may indicate a state of whether the broadcast message display platform can receive the broadcast message. It should be noted that, because the output result of the broadcast mask state obtaining function cannot be directly obtained, the output result of the broadcast mask state obtaining function is obtained based on the constructed broadcast mask state obtaining interface, so as to obtain the broadcast mask state of the broadcast message display platform. For example, a specific implementation procedure of the above steps may be NSInteger shield giftvalue ═ box _ ca _ caller withcheckselector (dypbinnputbarcontrol interface @ selector (currentshield giftvalue), currentshield giftvalue); wherein currentShieldGiftValue is a broadcast mask state acquisition function, DYPBINPUTTBARControlinterface is a broadcast mask state acquisition interface, and shieldGiftValue is a broadcast mask state.
S440, if the broadcast message display platform is determined to be set related to the broadcast message shielding according to the broadcast shielding state, returning the platform identification of the broadcast message display platform.
The broadcast shielding state may indicate whether the corresponding broadcast message display platform can receive the broadcast message, that is, it may indicate whether the broadcast message display platform has been set related to shielding the broadcast message, so when it is determined that the broadcast message display platform has been set related to shielding the broadcast message according to the broadcast shielding state, the platform identifier of the broadcast message display platform may be returned, which is also one of the attribute information.
S450, analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information.
And S460, assigning each information field to corresponding attribute information, assigning the platform identifier to corresponding attribute information to obtain a constructed target broadcast model, and determining each loudspeaker information in the to-be-adjusted loudspeaker to be constructed according to the target broadcast model.
If the platform identification is received, the platform identification can be assigned to corresponding attribute information besides assigning each information field to corresponding attribute information respectively, so that the effect of accurately constructing the target broadcast model is achieved.
And S470, constructing the horn to be adjusted according to the determined information of each horn.
And S480, when the horn information adjustment event is detected, acquiring information to be adjusted and information adjustment targets in the built horn information of the horn to be adjusted corresponding to the horn information adjustment event.
And S490, adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker.
According to the technical scheme of the embodiment of the invention, the broadcast shielding state of the broadcast message display platform is obtained by determining the broadcast message display platform corresponding to the configuration information, then calling the constructed broadcast shielding state obtaining function by taking the broadcast message display platform as an access parameter, and obtaining the output result of the broadcast shielding state obtaining function based on the constructed broadcast shielding state obtaining interface; furthermore, if the broadcast message display platform is determined to be set related to broadcast message shielding according to the broadcast shielding state, the platform identification of the broadcast message display platform can be returned, the received platform identification is assigned to corresponding attribute information, and the platform identification is matched with the rest steps, so that the effect of accurately constructing the target broadcast model is achieved.
In order to better understand the specific implementation of the construction process of the horn to be adjusted in the above technical solutions, the construction process of the configured zone horn (i.e. the horn acting on the live broadcast zone) is taken as an example and is exemplarily described below. It should be noted that, in order to simplify the description, the speaker to be adjusted may be directly described as a speaker; in addition, contents that are not explained in detail in this example may refer to corresponding contents in the above embodiments, and are not repeatedly explained here. In an exemplary manner, the first and second electrodes are,
1) constructing configurable target broadcast model
Creating a target broadcast model, constructing package information (i.e., attribute information) of the broadcast message, and abstracting the attribute information required for the broadcast message for the target broadcast model.
In order to analyze the broadcast message delivered by the server, a configurable target broadcast model dyguangbo model is set based on a configuration mode, wherein the following attribute information may be stored: broadcast type of broadcast message normal wheeldyguangboid such as total station broadcast, sectored broadcast, etc.; sender of a broadcast message, which may indicate who the broadcast message (or the speaker to be tuned that sent the broadcast message) was sent; the sender's user identification senderUid; the message content chatmsg of the broadcast message; a partition identity cid of the broadcast message; sending the head portrait information icon of the loudspeaker to be adjusted of the broadcast message; the head portrait sends attribute information ail related to the information; and so on.
2) Building a configuration model
And defining a uniform configuration interface, wherein the configuration interface can pull configuration information in a json format from a server side every time the live app is started, and further can convert the configuration information into a dictionary. And further converting the configuration information into a configuration model comboxModel, wherein the comboxModel may include two fields, one of which is a field mobileAcrossPic indicating a vertical background picture, and the other of which is a field propertySwitchClosed indicating a horizontal background picture.
3) Configuration information issuing operation
3.1) obtaining the broadcast shielding state of the current equipment
Since the broadcast message presentation platform may be a platform configured in a certain device, the broadcast message presentation platform may be represented herein based on a current device in which the broadcast message presentation platform is located. On this basis, after a c + + message (i.e., configuration information) of the server is issued, the type of the c + + message is cthn, and the c + + message can be converted into a target broadcast model. Specifically, firstly, the logic for judging the broadcast mask state is implemented as follows:
NSInteger shieldGiftValue=
box_callerWithCheckSelector(DYPBInputBarControllerInterface,@selector(currentShieldGiftValue),currentShieldGiftValue);
currentShieldGiftValue can be a broadcast mask state acquisition function, dypbinnputbarcontrolterinterface can be a broadcast mask state acquisition interface, shieldGiftValue can be a broadcast mask state, in other words, shieldGiftValue of the current device is acquired through dypbinnputbarcontrolterinterface.
3.2) constructing a target broadcast model
Whether the current equipment is set related to the broadcast message shielding can be determined according to the shield GiftValue, if so, the current equipment can directly return when the uid in the broadcast shielding state is judged to be consistent, thereby completing the shielding of the broadcast message, and the uid can be checked to shield only the broadcast messages of other users.
If continuing, the target broadcast model in step 1) needs to be constructed, and the specific implementation process is as follows:
based on dydydydydguangbodel [ [ dydguangbodel alloc ] init ]; and constructing a target broadcast model DYGUANGBOModel, wherein the DYDGGUANGBOModel is the class of the target broadcast model, alloc is a method for allocating memory, and then initializing based on an init method to obtain the DYGUANGBOModel. It should be noted that the DYGUANGBOModel can also understand the middle broadcast model, and the difference is whether to assign a value or not.
On this basis, the c + + message pushed by the server is analyzed based on the bullet screen analysis tool decoder getItem to obtain information fields therein, and the information fields are assigned to corresponding attribute information, for example, the information field unk may be assigned to the attribute information sensor based on a command dyguangbo model. After the DYGUANGBOModel is constructed, a message returning step can be performed.
4) Message return
The function of message return is as follows, where self.delete is a proxy of the current controller, and the respondtoselect method is used to determine whether self.delete follows the method socket received guizdudyyguangbo, i.e., whether self.delete can receive the broadcast message, and if so, the broadcast message received by self.delete is sent to the curtain controller based on the method socket received guizguizdudyyguangbo called by self.delete, so that the curtain controller sends the broadcast message to the broadcast controller. In other words, the function described below may function to determine whether self. If so, sending the broadcast message received by self.delete to the subtitle controller so that the subtitle controller sends the broadcast message to the broadcast controller; the broadcast controller starts to construct the horn view after receiving the broadcast message
Figure BDA0003094580990000221
5) Dynamic horn view construction
5.1) constructing dynamic broadcast model
The dynamic broadcast model construction process is performed based on a function (instancetype) initWithDYGuangboInfo (dyyguengbomodel) ((dyyguengboinfo)) -dyguangboinfo, wherein instancetype is the type of return value, initWithDYGuangboInfo is the method name of the function, dyyguengbomodel is the model type, i.e. the parameter of the function, and dyyguengbomodel is the type of dyyguengbomodel
5.2) construction of the Horn View
By the function BOOL isSite ═ DYGUANGBOModel. cateid isEqualToString @ "0"; determining whether the broadcast type isSite of the broadcast message is total station broadcast or subarea broadcast, if the broadcast type isSite is subarea broadcast, using a subarea background picture, and constructing a picture view corresponding to the subarea background picture, wherein UIImageView is imgView [ [ UIImageView alloc ] initWithFrame: CGRectMake (0,0,46, kGui Broadcast Viewheight) ]; namely, a horn image is created based on the UIImageView alloc method, coordinates are set for the horn image based on the initWithFrame method, and cgrecctmake (0,0,46, kGuiZuBroadcastViewHeight) is the coordinates (i.e., position information) of the horn image. A picture view may then be constructed from the model type and horn images of the dynamic broadcast model.
Further, the configuration model comboxModel in step 2) is obtained through the aid field, for example, through a function dbybuserpropertcomboxmodel ═ comboxModel ═ dbyids: model. And obtaining, wherein the DYBURSPERPROPERTYPOBXModel is a class of the configuration model, and the configuration model is found by calling a filter method filteredPropertiesByIds and attribute information sendPoperties of the configuration model.
In summary, a configuration model can be obtained, and then the background picture defined in step 2) is taken out from the configuration model, so as to obtain a horn view of the horn, thereby constructing a self-defined horn, and determining whether to display an avatar completely according to the attribute information of the horn.
The advantages of the above example are:
1) the configured loudspeaker can support various styles, such as head portraits and head portraits, which are set forth in the step 5);
2) the configured loudspeaker can directly modify the style at the server side without modifying at the client side, and the embodiment is that all configuration information in the step 3) and the step 2) is issued by the server side to construct the loudspeaker;
3) the configured loudspeaker can be in various styles, and various styles are supported, and the configuration information in the steps 3) and 2) is transmitted by a server to construct the loudspeaker;
4) a horn existence shielding function which is embodied in the step 3) that the existence of the horn passes through the flow;
5) the speaker can save traffic, which is embodied in that in steps 3) -5), the c + + interface broadcast is sent each time, the php interface is pulled only when the speaker is started (i.e., the live app is started), and the speaker can change the constant php and the variable c + + and consume less traffic compared with c + +, thereby saving traffic.
EXAMPLE five
Fig. 5 is a block diagram of a horn information adjusting apparatus according to a fifth embodiment of the present invention, which is configured to execute the horn information adjusting method according to any of the foregoing embodiments. The device and the horn information adjusting method of the embodiments belong to the same inventive concept, and details which are not described in detail in the embodiments of the horn information adjusting device can refer to the embodiments of the horn information adjusting method. As shown in fig. 5, the configuration of the apparatus and the server may specifically include: an intermediate broadcast model obtaining module 510, an information field obtaining module 520, a loudspeaker information determining module 530, a loudspeaker to be adjusted constructing module 540, an information to be adjusted obtaining module 550, and an adjusted loudspeaker obtaining module 560.
The intermediate broadcast model obtaining module 510 is configured to obtain a preliminarily constructed configurable intermediate broadcast model, where each attribute information to be assigned of a broadcast message sent by a to-be-adjusted loudspeaker to be constructed is stored in the intermediate broadcast model;
an information field obtaining module 520, configured to receive the configuration information issued by the server, and analyze the configuration information based on a preset analysis tool to obtain each information field in the configuration information;
the horn information determining module 530 is configured to assign each information field to corresponding attribute information, obtain a constructed target broadcast model, and determine each horn information in the to-be-adjusted horn to be constructed according to the target broadcast model;
a to-be-adjusted horn constructing module 540, configured to construct a to-be-adjusted horn according to the determined information of each horn;
the to-be-adjusted information obtaining module 550 is configured to, when a horn information adjustment event is detected, obtain information to be adjusted and an information adjustment target in each piece of horn information of the constructed to-be-adjusted horn corresponding to the horn information adjustment event;
and an adjusted horn obtaining module 560, configured to adjust the information to be adjusted based on the information adjustment target to obtain adjusted information, and update corresponding horn information according to the adjusted information to obtain an adjusted horn.
Optionally, on the basis of the above apparatus, the apparatus may further include:
the broadcast message judging module is used for determining a current proxy object in the broadcast message display platform corresponding to the configuration information before the loudspeaker to be adjusted is constructed according to the determined loudspeaker information, and judging whether the current proxy object can receive the broadcast message;
the broadcast message sending module is used for sending the broadcast message received by the current proxy object to the caption controller if the proxy object is the current proxy object, so that the caption controller sends the broadcast message to the broadcast controller;
the loudspeaker view constructing module is used for constructing a loudspeaker view of a loudspeaker to be adjusted, which is used for sending broadcast messages corresponding to broadcast message receiving events, when the broadcast message receiving events from the broadcast controller are detected;
accordingly, the horn building block to be adjusted 540 may include:
and the to-be-adjusted loudspeaker constructing unit is used for constructing the to-be-adjusted loudspeaker according to the determined loudspeaker information and the loudspeaker view.
On this basis, optionally, the horn view building block may include:
the dynamic broadcast model building unit is used for calling a built model initialization function to initialize by taking the model type of the to-be-built dynamic broadcast model of the broadcast message corresponding to the broadcast message receiving event as an entry parameter to obtain a built dynamic broadcast model;
a broadcast type determining unit, configured to determine a broadcast type of the broadcast message according to the constructed dynamic broadcast model, where the broadcast type includes a sectorization broadcast and/or a total station broadcast;
and the horn view constructing unit is used for constructing a picture view corresponding to the partition background picture if the broadcast type is partition broadcast, and taking the picture view as the horn view of the horn to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event.
On this basis, optionally, the loudspeaker construction unit to be adjusted may be specifically configured to:
generating a configuration file based on the configuration information, converting the configuration file into a configuration model, and acquiring a partition background picture from the configuration model;
and constructing the horn to be adjusted according to the determined horn information, the partition background picture and the horn view.
Still optionally, the horn view constructing unit may include:
the horn image obtaining subunit is used for calling the constructed image construction function by taking the position information of the horn image to be constructed as an entry parameter, and obtaining the constructed horn image according to the output result of the image construction function;
and the picture view construction subunit is used for acquiring the model type of the dynamic broadcast model and constructing a picture view corresponding to the partition background picture according to the model type and the loudspeaker image.
Optionally, the information field obtaining module 520 may be specifically configured to:
when a platform starting event of the broadcast message display platform is detected, acquiring the broadcast message display platform corresponding to the platform starting event and a constructed configuration interface, and pulling configuration information corresponding to the broadcast message display platform from a server by calling the configuration interface;
generating a configuration file based on the configuration information, and converting the configuration file into a configuration model;
and analyzing the configuration model based on a preset analysis tool to obtain each information field in the configuration model.
Optionally, the horn information adjusting apparatus may further include:
the broadcast message display platform determining module is used for determining a broadcast message display platform corresponding to the configuration information before the configuration information is analyzed based on a preset analysis tool;
the broadcast shielding state obtaining module is used for calling a constructed broadcast shielding state obtaining function by taking the broadcast message display platform as an access parameter, obtaining an output result of the broadcast shielding state obtaining function based on the constructed broadcast shielding state obtaining interface and obtaining the broadcast shielding state of the broadcast message display platform;
the platform identifier returning module is used for returning the platform identifier of the broadcast message display platform if the broadcast message display platform is determined to be set related to the broadcast message shielding according to the broadcast shielding state;
accordingly, the horn information determination module 530 may include:
and the information assignment unit is used for assigning each information field to corresponding attribute information respectively and assigning the platform identifier to the corresponding attribute information.
The loudspeaker information adjusting device provided by the fifth embodiment of the invention obtains the initially constructed configurable intermediate broadcast model through the mutual cooperation of the modules, and the intermediate broadcast model can store various attribute information to be assigned of the broadcast message sent by the loudspeaker to be adjusted to be constructed; after receiving the configuration information issued by the server, analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information; because each information field and each attribute information have correspondence in information type, each information field can be respectively assigned to corresponding attribute information to obtain a constructed target broadcast model, then each loudspeaker information in the loudspeaker to be adjusted to be constructed is determined according to the target broadcast model, and then the loudspeaker to be adjusted is constructed according to the determined loudspeaker information; accordingly, when a horn information adjusting event is detected, the information to be adjusted and the information adjusting target in the horn information of the built horn to be adjusted corresponding to the horn information adjusting event can be obtained, the information to be adjusted is adjusted based on the information adjusting target to obtain adjusted information, corresponding horn information is updated according to the adjusted information, and the adjusted horn with the new configuration and capable of being directly applied is obtained. According to the device, the horn to be adjusted is constructed through the configuration information issued by the server, so that the horn information of the horn to be adjusted can be subsequently and directly adjusted in the server, and the newly configured horn can be directly applied after adjustment, so that the effect of simplifying the adjustment operation of the horn information is achieved, and the real-time performance of function experience is improved.
The loudspeaker information adjusting device provided by the embodiment of the invention can execute the loudspeaker information adjusting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that, in the embodiment of the horn information adjusting apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a server according to a sixth embodiment of the present invention, and as shown in fig. 6, the server includes a memory 610, a processor 620, an input device 630, and an output device 640. The number of the processors 620 in the server may be one or more, and one processor 620 is taken as an example in fig. 6; the memory 610, processor 620, input device 630, and output device 640 in the server may be connected by a bus or other means, such as by bus 650 in fig. 6.
The memory 610 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the speaker information adjusting method in the embodiment of the present invention (for example, the intermediate broadcast model obtaining module 510, the information field obtaining module 520, the speaker information determining module 530, the to-be-adjusted speaker constructing module 540, the to-be-adjusted information obtaining module 550, and the adjusted speaker obtaining module 560 in the speaker information adjusting apparatus). The processor 620 executes various functional applications and data processing of the server by executing software programs, instructions and modules stored in the memory 610, so as to implement the horn information adjusting method.
The memory 610 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the server, and the like. Further, the memory 610 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 610 may further include memory located remotely from processor 620, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the device. The output device 640 may include a display device such as a display screen.
EXAMPLE seven
A seventh embodiment of the present invention provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for adjusting speaker information, where the method is configured at a server and may include:
when a horn information adjustment event is detected, acquiring information to be adjusted and an information adjustment target in each piece of horn information of the built to-be-adjusted horn corresponding to the horn information adjustment event;
adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker;
the loudspeaker to be adjusted is constructed in advance through the following steps:
acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores each attribute information to be assigned of a broadcast message sent by a loudspeaker to be adjusted to be constructed;
receiving configuration information issued by a server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information;
assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model;
and constructing the horn to be adjusted according to the determined information of each horn.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the horn information adjusting method provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. With this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A loudspeaker information adjusting method is applied to a server side, and the method comprises the following steps:
when a horn information adjustment event is detected, acquiring information to be adjusted and an information adjustment target in each piece of horn information of a built horn to be adjusted corresponding to the horn information adjustment event;
adjusting the information to be adjusted based on the information adjustment target to obtain adjusted information, and updating the corresponding loudspeaker information according to the adjusted information to obtain an adjusted loudspeaker;
the loudspeaker to be adjusted is constructed in advance through the following steps:
acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores each attribute information to be assigned of a broadcast message sent by the loudspeaker to be adjusted to be constructed;
receiving configuration information issued by the server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information;
assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeakers to be adjusted according to the target broadcast model;
and constructing the horn to be adjusted according to the determined information of each horn.
2. The method according to claim 1, wherein before said constructing the horn to be adjusted based on the determined information of each of the horns, further comprising:
determining a current proxy object in a broadcast message display platform corresponding to the configuration information, and judging whether the current proxy object can receive the broadcast message;
if so, sending the broadcast message received by the current proxy object to a caption controller so that the caption controller sends the broadcast message to a broadcast controller;
constructing a horn view of the horn to be adjusted for transmitting the broadcast message corresponding to the broadcast message reception event when a broadcast message reception event originating from the broadcast controller is detected;
correspondingly, the constructing the horn to be adjusted according to the determined information of each horn includes:
and constructing the horn to be adjusted according to the determined information of each horn and the horn view.
3. The method of claim 2, wherein constructing a horn view of the horn to be adjusted for sending the broadcast message corresponding to the broadcast message reception event comprises:
taking the model type of the dynamic broadcast model to be constructed of the broadcast message corresponding to the broadcast message receiving event as an entry parameter, and calling a constructed model initialization function for initialization to obtain the constructed dynamic broadcast model;
determining a broadcast type of the broadcast message according to the constructed dynamic broadcast model, wherein the broadcast type comprises a regional broadcast and/or a total station broadcast;
if the broadcast type is the partition broadcast, constructing a picture view corresponding to a partition background picture, and using the picture view as a loudspeaker view of the loudspeaker to be adjusted for sending the broadcast message corresponding to the broadcast message receiving event.
4. The method of claim 3, wherein constructing the horn to be adjusted based on the determined information for each of the horns and the horn view comprises:
generating a configuration file based on the configuration information, converting the configuration file into a configuration model, and acquiring the partition background picture from the configuration model;
and constructing the horn to be adjusted according to the determined horn information, the partition background picture and the horn view.
5. The method of claim 3, wherein the constructing a picture view corresponding to the partitioned background picture comprises:
taking the position information of the horn image to be constructed as a parameter, calling an image construction function which is constructed, and obtaining the constructed horn image according to the output result of the image construction function;
and obtaining the model type of the dynamic broadcast model, and constructing a picture view corresponding to a partition background picture according to the model type and the loudspeaker image.
6. The method of claim 1, wherein the receiving the configuration information issued by the server, and analyzing the configuration information based on a preset analysis tool to obtain each information field in the configuration information comprises:
when a platform starting event of a broadcast message display platform is detected, acquiring the broadcast message display platform corresponding to the platform starting event and a constructed configuration interface, and pulling the configuration information corresponding to the broadcast message display platform from the server by calling the configuration interface;
generating a configuration file based on the configuration information, and converting the configuration file into a configuration model;
and analyzing the configuration model based on a preset analysis tool to obtain each information field in the configuration model.
7. The method according to claim 1, further comprising, before the parsing the configuration information based on a preset parsing tool:
determining a broadcast message display platform corresponding to the configuration information;
taking the broadcast message display platform as an access parameter, calling a constructed broadcast shielding state acquisition function, and acquiring an output result of the broadcast shielding state acquisition function based on a constructed broadcast shielding state acquisition interface to obtain a broadcast shielding state of the broadcast message display platform;
if the broadcast message display platform is determined to be set related to the broadcast message shielding according to the broadcast shielding state, returning to a platform identifier of the broadcast message display platform;
correspondingly, the assigning each information field to the corresponding attribute information includes:
and respectively assigning each information field to corresponding attribute information, and assigning the platform identification to corresponding attribute information.
8. A speaker information adjusting apparatus, configured on a server, the apparatus comprising:
the adjusting method comprises the steps that an information to be adjusted acquisition module is used for acquiring information to be adjusted and information adjusting targets in each set of horn information of a built horn to be adjusted corresponding to a horn information adjusting event when the horn information adjusting event is detected;
an adjusted horn obtaining module, configured to adjust the information to be adjusted based on the information adjustment target to obtain adjusted information, and update corresponding horn information according to the adjusted information to obtain an adjusted horn;
the loudspeaker to be adjusted is constructed in advance through the following modules:
the intermediate broadcast model acquisition module is used for acquiring a configurable intermediate broadcast model which is constructed preliminarily, wherein the intermediate broadcast model stores attribute information to be assigned of broadcast messages sent by the loudspeakers to be adjusted to be constructed;
an information field obtaining module, configured to receive configuration information issued by the server, and analyze the configuration information based on a preset analysis tool to obtain each information field in the configuration information;
the loudspeaker information determining module is used for assigning each information field to corresponding attribute information respectively to obtain a constructed target broadcast model, and determining each loudspeaker information in the loudspeaker to be adjusted to be constructed according to the target broadcast model;
and the to-be-adjusted loudspeaker constructing module is used for constructing the to-be-adjusted loudspeaker according to the determined loudspeaker information.
9. A server, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the horn information adjustment method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the loudspeaker information adjusting method according to any one of claims 1-7.
CN202110608562.4A 2021-06-01 2021-06-01 Loudspeaker information adjusting method and device, server and storage medium Active CN113347467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110608562.4A CN113347467B (en) 2021-06-01 2021-06-01 Loudspeaker information adjusting method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110608562.4A CN113347467B (en) 2021-06-01 2021-06-01 Loudspeaker information adjusting method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN113347467A true CN113347467A (en) 2021-09-03
CN113347467B CN113347467B (en) 2022-07-05

Family

ID=77474132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110608562.4A Active CN113347467B (en) 2021-06-01 2021-06-01 Loudspeaker information adjusting method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113347467B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888989A (en) * 2017-11-23 2018-04-06 山东浪潮商用系统有限公司 A kind of interactive system and method live based on internet
CN108418819A (en) * 2018-02-27 2018-08-17 湖南农业大学 A kind of rural area emergent broadcast stream media live broadcasting method and application
CN108462894A (en) * 2018-03-30 2018-08-28 武汉斗鱼网络科技有限公司 Direct broadcasting room broadcast processing method, device and readable storage medium storing program for executing
CN108933956A (en) * 2017-05-26 2018-12-04 武汉斗鱼网络科技有限公司 Broadcast playback method, storage medium, electronic equipment and the system of mobile terminal
CN108966035A (en) * 2018-09-03 2018-12-07 武汉斗鱼网络科技有限公司 Barrage method for message transmission, device, equipment and storage medium
CN109391838A (en) * 2017-08-03 2019-02-26 武汉斗鱼网络科技有限公司 A kind for the treatment of method and apparatus of broadcast
US20210153104A1 (en) * 2019-11-20 2021-05-20 Beijing Xiaomi Mobile Software Co., Ltd. Broadcasting and discovering methods, broadcasting and discovering devices and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933956A (en) * 2017-05-26 2018-12-04 武汉斗鱼网络科技有限公司 Broadcast playback method, storage medium, electronic equipment and the system of mobile terminal
CN109391838A (en) * 2017-08-03 2019-02-26 武汉斗鱼网络科技有限公司 A kind for the treatment of method and apparatus of broadcast
CN107888989A (en) * 2017-11-23 2018-04-06 山东浪潮商用系统有限公司 A kind of interactive system and method live based on internet
CN108418819A (en) * 2018-02-27 2018-08-17 湖南农业大学 A kind of rural area emergent broadcast stream media live broadcasting method and application
CN108462894A (en) * 2018-03-30 2018-08-28 武汉斗鱼网络科技有限公司 Direct broadcasting room broadcast processing method, device and readable storage medium storing program for executing
CN108966035A (en) * 2018-09-03 2018-12-07 武汉斗鱼网络科技有限公司 Barrage method for message transmission, device, equipment and storage medium
US20210153104A1 (en) * 2019-11-20 2021-05-20 Beijing Xiaomi Mobile Software Co., Ltd. Broadcasting and discovering methods, broadcasting and discovering devices and storage medium

Also Published As

Publication number Publication date
CN113347467B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
AU2019233201B2 (en) Resource configuration method and apparatus, terminal, and storage medium
US9686329B2 (en) Method and apparatus for displaying webcast rooms
CN109683892B (en) Page display method and device, computer equipment and storage medium
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
CN109617963B (en) Equipment control method and device and Internet of things system
CN112333114B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN109634597B (en) Data processing method and device, electronic equipment and storage medium
CN108810049A (en) Control method, device, system and the Virtual Reality equipment of equipment
CN111131850A (en) Method and device for displaying special effect of virtual gift and electronic equipment
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN114629932A (en) Electronic equipment and cooperation method between electronic equipment
CN113347467B (en) Loudspeaker information adjusting method and device, server and storage medium
CN114222003A (en) Service calling method, system, device, equipment and storage medium
CN113259759A (en) Network connection state evaluation method and device, terminal equipment and storage medium
CN109347994B (en) Internet protocol IP address obtaining method and device, storage medium and electronic equipment
CN112272223B (en) Application running method and device, server and computer readable storage medium
JP2000316143A (en) Picture data transmitting device and picture receiving device
CN115209378A (en) Service resource dynamic allocation method, system, management server and medium for vehicle
WO2018000635A1 (en) Interface configuration method and device
CN111131870B (en) Multi-terminal interaction method and device, storage medium and computer equipment
CN114064165A (en) Application page processing method and device
CN109165067B (en) Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
CN113300919A (en) Intelligent household appliance control method based on social software group function and intelligent household appliance
CN111008062A (en) Interface setting method, device, equipment and medium for application program APP
CN114594881B (en) Message display 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
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210903

Assignee: Yidu Lehuo Network Technology Co.,Ltd.

Assignor: WUHAN DOUYU YULE NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2023980041383

Denomination of invention: A method, device, server, and storage medium for adjusting horn information

Granted publication date: 20220705

License type: Common License

Record date: 20230908

EE01 Entry into force of recordation of patent licensing contract