Button configuration method, device, server and storage medium
By obtaining the client's button display request and scene information, matching and sending button icons, the problem of low efficiency in chat room button configuration is solved, and flexible button configuration and quick adjustment are achieved.
Patent Information
- Application Number
- CN202111368325.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-18
AI Technical Summary
In the existing technology, the chat room button configuration efficiency is low and cannot be adjusted in a short time, which is limited by the client version iteration cycle.
Obtain scene information through the client's button display request, match the target button configuration information, and send the button icon to the client to realize the rendering and display of the live broadcast room interface, break away from the client version binding, and flexibly configure buttons.
The efficiency of button configuration is improved, so that the determination process of button configuration information can be flexibly determined based on scene information, breaking away from client version binding, and realizing quick adjustment of button configuration.
Smart Images

Figure CN114040240B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a button configuration method, device, server and storage medium. Background Art
[0002] With the development of mobile Internet, chat rooms as a form of live broadcasting have also been loved by the majority of users. The anchor account can broadcast live in the live broadcast room, and the audience account can interact with the anchor account through the microphone; during the interaction, both the anchor account and the audience account can adjust the specific method of communication by clicking the buttons on the microphone panel provided in the chat room.
[0003] In the related art, the configuration information of the button layout and style on the microphone panel is matched with the client version. In a usage scenario, a button configuration fixed to the current client version will be issued; if the button configuration is to be updated, it is necessary to wait for the client version iteration; however, the client version iteration usually has a certain time period, and the button configuration cannot be adjusted in a short time, so the efficiency of configuring existing buttons is still relatively low. Summary of the invention
[0004] The present disclosure provides a button configuration method, device, server and storage medium to at least solve the problem of low efficiency of button configuration in the related art. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a button configuration method, including:
[0006] According to a button display request of a client, scene information corresponding to the button display request is acquired; the button display request is generated by the client according to a button trigger operation in a preset area of a live broadcast room;
[0007] Acquire target button configuration information matching the scene information from the button configuration list;
[0008] Obtain a button icon corresponding to the target button configuration information, send the button icon to the client, and enable the client to render the interface of the preset area of the live broadcast room according to the button icon, and display the rendered interface.
[0009] In an exemplary embodiment, the scene information includes a type identifier and an event identifier of the live broadcast room;
[0010] The acquiring target button configuration information matching the scene information includes:
[0011] At least one button configuration information matching both the type identifier and the event identifier is acquired from the button configuration list as the target button configuration information.
[0012] In an exemplary embodiment, the button display request carries a version identifier; the version identifier is used to characterize the application environment of the button triggering operation in the client;
[0013] The acquiring at least one button configuration information matching both the type identifier and the event identifier as the target button configuration information includes:
[0014] At least one of the button configuration information is screened according to the version identifier, and the button configuration information matching the version identifier is used as the target button configuration information.
[0015] In an exemplary embodiment, the acquiring the button icon corresponding to the target button configuration information includes:
[0016] Determine the content distribution address of the button icon according to the target button configuration information;
[0017] The button icon is obtained from a content distribution network according to the content distribution address.
[0018] In an exemplary embodiment, determining the content distribution address of the button icon according to the target button configuration information includes:
[0019] Determine a button icon identifier according to the target button configuration information;
[0020] The corresponding content distribution address is obtained according to the button icon identifier.
[0021] In an exemplary embodiment, sending the button icon to the client so that the client renders the interface of the preset area of the live broadcast room according to the button icon includes:
[0022] The position information of the button icon on the interface of the preset area of the live broadcast room is determined according to the target button configuration information; and the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information.
[0023] In an exemplary embodiment, the button icon includes a single-state button icon and a flow-state button icon; the single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
[0024] According to a second aspect of an embodiment of the present disclosure, there is provided a button configuration device, including:
[0025] The scene information determination unit is configured to execute a button display request from a client and obtain scene information corresponding to the button display request; the button display request is generated by the client according to a button trigger operation in a preset area of a live broadcast room;
[0026] A configuration information acquisition unit, configured to acquire target button configuration information matching the scene information from a button configuration list;
[0027] An icon button acquisition unit is configured to acquire a button icon corresponding to the target button configuration information, send the button icon to the client, and enable the client to render an interface of a preset area of the live broadcast room according to the button icon and display the rendered interface.
[0028] In an exemplary embodiment, the scene information includes a type identifier and an event identifier of the live broadcast room;
[0029] The configuration information acquisition unit is further configured to acquire, from the button configuration list, at least one button configuration information matching both the type identifier and the event identifier as the target button configuration information.
[0030] In an exemplary embodiment, the button display request carries a version identifier; the version identifier is used to characterize the application environment of the button triggering operation in the client;
[0031] The configuration information acquisition unit is further configured to filter at least one of the button configuration information according to the version identifier, and use the button configuration information matching the version identifier as the target button configuration information.
[0032] In an exemplary embodiment, the icon button acquisition unit is further configured to determine a content distribution address of the button icon according to the target button configuration information; and acquire the button icon from a content distribution network according to the content distribution address.
[0033] In an exemplary embodiment, the icon button acquisition unit is further configured to determine a button icon identifier according to the target button configuration information; and acquire a corresponding content distribution address according to the button icon identifier.
[0034] In an exemplary embodiment, the icon button acquisition unit is further configured to determine the position information of the button icon in the interface of the preset area of the live broadcast room according to the target button configuration information; and the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information.
[0035] In an exemplary embodiment, the button icon includes a single-state button icon and a flow-state button icon; the single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
[0036] According to a third aspect of an embodiment of the present disclosure, a server is provided, including:
[0037] processor;
[0038] a memory for storing instructions executable by the processor;
[0039] The processor is configured to execute the instructions to implement the button configuration method as described in any one of the embodiments of the first aspect.
[0040] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the button configuration method as described in any one of the embodiments of the first aspect.
[0041] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, which includes instructions, and is characterized in that when the instructions are executed by a processor of a server, the server is enabled to execute the button configuration method as described in any one of the embodiments of the first aspect.
[0042] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0043] According to the button display request of the client, the scene information corresponding to the button display request is obtained; the button display request is generated by the client according to the button trigger operation of the preset area of the live broadcast room; secondly, the target button configuration information matching the scene information is obtained from the button configuration list; finally, the button icon corresponding to the target button configuration information is obtained, and the button icon is sent to the client, so that the client renders the interface of the preset area of the live broadcast room according to the button icon, and displays the rendered interface; it is realized that the corresponding target button configuration information is obtained according to the scene information corresponding to the button display request of the client, and the target button configuration information is sent to the client for rendering, so that the determination process of the button configuration information is separated from the binding with the client version, and can be flexibly determined according to the scene information, thereby improving the efficiency of configuring the button.
[0044] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0046] Figure 1 The figure is a diagram showing an application environment of a button configuration method according to an exemplary embodiment.
[0047] Figure 2 The figure is a flow chart of a button configuration method according to an exemplary embodiment.
[0048] Figure 3 The figure is a flow chart of another button configuration method according to an exemplary embodiment.
[0049] Figure 4 is a flow chart of yet another button configuration method according to an exemplary embodiment.
[0050] Figure 5 The figure is a block diagram of a button configuration device according to an exemplary embodiment.
[0051] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0054] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties; correspondingly, this disclosure also provides a corresponding user authorization entrance for users to choose to authorize or refuse.
[0055] The button configuration method provided in the present disclosure can be applied to Figure 1 In the application environment shown in the figure, the client 110 interacts with the server 120 through the network; the client 110 triggers the generation of a button display request in response to a user's click and sends it to the server 120, and the server 120 obtains the scene information corresponding to the button display request according to the button display request of the client 110; the button display request is generated by the client 110 according to the button trigger operation in the preset area of the live broadcast room; the server 120 obtains the target button configuration information matching the scene information from the button configuration list; the server 120 obtains the button icon corresponding to the target button configuration information, and sends the button icon to the client 110, so that the client 110 renders the interface of the preset area of the live broadcast room according to the button icon, and displays the rendered interface.
[0056] The client 110 may be, but is not limited to, various smart phones, tablet computers, or laptop computers, and the server 120 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0057] Figure 2 is a flowchart of a button configuration method according to an exemplary embodiment. Figure 2 As shown, the button configuration method is used in the server 120 and includes the following steps.
[0058] In step S210, according to the button display request of the client, the scene information corresponding to the button display request is obtained; the button display request is generated by the client according to the button trigger operation of the preset area of the live broadcast room.
[0059] Among them, the scene information is the scene environment when the client's button display request is triggered and generated, such as the specific type of the live chat room, the different areas clicked by the user, the event information triggered by the user's click operation, etc.; the scene information can also include the client's parameter information, the user's account information, network information, mobile phone information, etc.
[0060] The button display request refers to a request instruction for displaying a button icon generated by the client and sent to the server; the button display request at least includes a request for obtaining a button icon, a button style, and a button arrangement method.
[0061] Among them, the preset area of the live broadcast room refers to the area where the user can click and trigger the button display request through the client.
[0062] Specifically, the host user or the audience user clicks on the preset area of the live broadcast room in the live broadcast room chat room, and the client responds to the click operation of the host user or the audience user, triggers the generation of a button display request and sends it to the server; the server obtains the corresponding scene information according to the button display request sent by the client, and the scene information can be obtained by the client in the process of generating the button display request after being triggered, or it can be obtained by the server after receiving the button request.
[0063] In step S220, target button configuration information matching the scene information is obtained from the button configuration list.
[0064] Among them, the button configuration information is a description file of the button icon, which may at least include the button icon or picture logo, the button icon fill color, the button icon style, the button icon version, the button icon arrangement position, the button icon storage location, etc.
[0065] Among them, the button configuration list refers to a list file containing multiple button configuration information; the button configuration list can be multiple, for example, setting multiple button configuration lists corresponding to different types of live broadcast chat rooms, or setting multiple different types of button configuration lists according to different client versions.
[0066] The target button configuration information refers to at least one button configuration information selected from the button configuration list and matching the scene information.
[0067] In step S230, a button icon corresponding to the target button configuration information is obtained, and the button icon is sent to the client, so that the client renders the interface of the preset area of the live broadcast room according to the button icon and displays the rendered interface.
[0068] Specifically, the server obtains the corresponding button icon from the database or content distribution network according to the target button configuration information; when obtaining the button icon corresponding to the target button configuration information, the server can pre-process the button icon. For example, if the obtained button icon is a vector graphic, and the button icon in the configuration information should be red at the current moment, the server can fill the vector graphic with red and send it to the client as a button icon. After the server sends the button icon to the client, the client renders the button icon in combination with the interface of the preset area of the live broadcast room, and after rendering, it is displayed on the terminal interface of the client for the user to view and click.
[0069] In the above button configuration method, scene information corresponding to the button display request is obtained according to the button display request of the client; the button display request is generated by the client according to the button trigger operation of the preset area of the live broadcast room; secondly, the target button configuration information matching the scene information is obtained from the button configuration list; finally, the button icon corresponding to the target button configuration information is obtained, and the button icon is sent to the client, so that the client renders the interface of the preset area of the live broadcast room according to the button icon, and displays the rendered interface; the corresponding target button configuration information is obtained according to the scene information corresponding to the button display request of the client, and the target button configuration information is sent to the client for rendering, so that the determination process of the button configuration information is separated from the binding with the client version, and can be flexibly determined according to the scene information, thereby improving the efficiency of button configuration.
[0070] In an exemplary embodiment, the scene information includes a type identifier and an event identifier of the live broadcast room;
[0071] In step S220, target button configuration information matching the scene information is obtained, which can be specifically achieved through the following steps: from the button configuration list, at least one button configuration information matching both the type identifier and the event identifier is obtained as the target button configuration information.
[0072] Among them, the type identification of the live broadcast room is a limitation on the specific type of the live broadcast room. Different types of live broadcast rooms have different interactive functions and correspond to different button configuration information. The types of live broadcast rooms include chat rooms, screening rooms, shopping, game live broadcasts, interactive games, etc. For example, there is a need to go on the microphone in a chat room type live broadcast room. The buttons in this type of live broadcast room may include a microphone selection button, a microphone allocation button, a microphone grabbing button, etc. The event identification describes the event corresponding to the specific operation triggered by the button display request. For example, the anchor clicking on an empty microphone position can be used as an event to record the scene called out by the button.
[0073] Specifically, the server parses the button display request sent by the client, and at least obtains the type identifier and event identifier contained in the button display request; matches multiple button accessory information in the button configuration list according to the type identifier and event identifier, and uses at least one button configuration information that successfully matches as the target button configuration information.
[0074] According to the technical solution provided by the embodiment of the present disclosure, the server obtains the type identification and event identification of the live broadcast room from the scene information, and can narrow the determination scope of the button configuration information through the type identification and event identification, thereby improving the efficiency of determining the target button configuration information; at the same time, the type identification and event identification can at least reflect the scene information of the user's current operation, thereby improving the matching degree between the button configuration information and the operation scene, and improving the user experience.
[0075] In an exemplary embodiment, a button display request carries a version identifier; the version identifier is used to characterize the application environment of the button trigger operation in the client; obtaining at least one button configuration information that matches both the type identifier and the event identifier as the target button configuration information, including: filtering at least one button configuration information according to the version identifier, and taking the button configuration information that matches the version identifier as the target button configuration information.
[0076] The version identifier is the description information of the current version of the client. The version identifier can be used to determine the function information supported and not yet supported by the client, so as to provide the client with a button icon that can be used.
[0077] Specifically, if the server obtains multiple button configuration information that meet the scene information, the version identifier can be used to select the button configuration information again, for example, filtering out button configuration information with a version identifier lower than the current version of the client from multiple button configuration information, or selecting the button configuration information with the latest version, so that the version of the button configuration information matches the version of the client or remains up to date.
[0078] According to the technical solution provided by the embodiment of the present disclosure, the server determines the target button configuration information through the version identifier, thereby ensuring that the version of the target button configuration information always matches the current version of the client, thereby improving the efficiency of determining the target button configuration information and also ensuring the synchronization of versions between clients.
[0079] In an exemplary embodiment, acquiring a button icon corresponding to the target button configuration information includes: determining a content distribution address of the button icon according to the target button configuration information; and acquiring the button icon from a content distribution network according to the content distribution address.
[0080] Among them, the Content Delivery Network (CDN) is an intelligent virtual network built on the existing network. It relies on edge servers deployed in various places and uses the load balancing, content distribution, scheduling and other functional modules of the central platform to enable users to obtain the required content nearby, which can reduce network congestion and improve user access response speed and hit rate. The content distribution address is the address of the node of the content distribution network. By accessing this address, you can obtain the resources stored in the content distribution network.
[0081] Specifically, in this embodiment, the button icon is stored in the content distribution network, and the server determines the content distribution address of the button icon according to the target button configuration information; and obtains the corresponding button icon file according to the address. In addition, the server can also directly send the content distribution address of the button icon to the client, and the client obtains the corresponding button icon according to the content distribution address before rendering.
[0082] The technical solution provided by the embodiment of the present disclosure can realize the unified modification or adjustment of button icons by storing button icons in the content distribution network; at the same time, the button icons do not need to be stored in the client, which reduces the data load of the client and improves the running speed of the client. The content distribution network can allocate a relatively close content distribution address according to the geographical location of the client to obtain the button icon, thereby improving the efficiency of obtaining the button icon.
[0083] In an exemplary embodiment, determining the content distribution address of the button icon according to the target button configuration information includes: determining the button icon identifier according to the target button configuration information; and acquiring the corresponding content distribution address according to the button icon identifier.
[0084] Specifically, the target button configuration information records the identification information corresponding to the button icon, and the corresponding content distribution address can be determined according to the identification information. The technical solution provided by the embodiment of the present disclosure realizes the association between the button icon and the content distribution address through the button icon identification, thereby improving the efficiency of determining and obtaining the button icon.
[0085] In an exemplary embodiment, a button icon is sent to a client, so that the client renders an interface of a preset area of the live broadcast room according to the button icon, including: determining the position information of the button icon in the interface of the preset area of the live broadcast room according to the target button configuration information; and the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information.
[0086] Specifically, the server sends the button icon obtained through the content distribution address to the client, and the client performs the rendering process of the interface of the preset area of the live broadcast room in response to the received button icon; specifically, the server renders the button icon at the corresponding position of the interface of the preset area of the live broadcast room according to the predetermined position information of each button icon, and activates the button icon at the same time, so that the button icon can be clicked.
[0087] The technical solution provided by the embodiment of the present disclosure is that the server sends predetermined position information to the client, so that the client can render the button icon according to the pre-set parameters, thereby improving the accuracy of the processing efficiency of the client displaying the button icon.
[0088] In an exemplary embodiment, the button icon includes a single-state button icon and a flow-state button icon; the single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
[0089] Among them, the flow state button icon means that the button has different functions and different display effects before and after being triggered; for example, the mute button usually appears in the style of a speaker. When the mute button is clicked and triggered, the speaker in the mute button usually has an extra horizontal line to indicate that it is currently in a mute state. Therefore, the mute button is a flow state button icon. Different states correspond to different preset functions, one is to turn on the speaker, and the other is to turn off the speaker; the two display states before and after being triggered are also different, but they are a group of icons.
[0090] Specifically, multiple button icons in the flow status button icon also have priorities, which can be determined based on scene information; for example, in a chat room type, the priority of the non-mute button icon should be greater than the mute button icon, that is, the non-mute button is displayed first by default.
[0091] Specifically, there is also a priority between the flow status button icons, and the priority can be determined based on the position information.
[0092] The technical solution provided by the embodiment of the present disclosure can reduce the number of button icons displayed in the interface of the preset area of the live broadcast room through the flow status button icon, so as to facilitate user operation; at the same time, by clicking the flow status button icon, it is possible to switch between at least two functional states, so the operation efficiency is high and the rendering efficiency of the client is also high.
[0093] In an exemplary embodiment, if Figure 3 As shown, another button configuration method is provided. The application scenario is described as follows: when a user clicks the microphone position, the client obtains the button style (equivalent to the button icon) through the API interface provided by the configuration center (equivalent to the server) and then renders it. Specifically, it includes:
[0094] Step 1: In response to the user clicking the microphone position, the client sends a request to obtain the microphone position panel button through the API interface provided by the configuration center;
[0095] Step 2, the API (application programming interface) responds to the request and requests to retrieve all button styles;
[0096] Step 3, get all button styles;
[0097] Step 4, determining the chat room type and scene when the user clicks the microphone position from the request for obtaining the microphone panel buttons, and requesting to determine the arrangement of the buttons;
[0098] Step 5, determine the arrangement of the buttons;
[0099] Step 6: Filter all button styles according to the arrangement of buttons to determine the button style that needs to be sent to the client; and request the CDN address (content distribution address) of the button style from the icon storage center (which can be a content distribution network CDN) according to the key (icon identifier) of the button style;
[0100] Step 7, get the CDN address of the button style;
[0101] Step 8: Send the CDN address of the button style, the arrangement of the buttons, etc. to the client;
[0102] Step 9: If any link including calling the API interface fails and the button style cannot be obtained, the Betty cache can be called for rendering to obtain a temporary microphone panel;
[0103] Step 10: If the CDN address of the button style and the button arrangement returned by the API interface are successfully received, the button style is rendered; if the button style has different button flow states at the same time, the button state flow is performed at the same time.
[0104] The technical solution provided by the embodiment of the present disclosure realizes that according to the operation of the user clicking the microphone, the CDN address of the corresponding button style and the arrangement of the buttons are obtained and returned to the client, and then the client renders the button style; the rendering of the style can be flexibly determined according to the scene information, thereby improving the efficiency of the client in rendering the button style.
[0105] In an exemplary embodiment, if Figure 4 As shown, another button configuration method is provided, including:
[0106] Step S410, according to the button display request of the client, obtain the scene information corresponding to the button display request; the button display request is generated by the client according to the button trigger operation of the preset area of the live broadcast room.
[0107] Step S420, the scene information includes the type identifier and event identifier of the live broadcast room; and at least one button configuration information matching both the type identifier and the event identifier is obtained from the button configuration list.
[0108] Step S430, the button display request carries a version identifier; the version identifier is used to characterize the application environment of the button trigger operation in the client; according to the version identifier, at least one button configuration information is screened, and the button configuration information matching the version identifier is used as the target button configuration information.
[0109] Step S440: determine a button icon identifier according to the target button configuration information; and obtain a corresponding content distribution address according to the button icon identifier.
[0110] Step S450, determining the position information of the button icon in the interface of the preset area of the live broadcast room according to the target button configuration information; the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information; the button icon includes a single state button icon and a flow state button icon; the single state button icon is used to execute a preset function in response to a button trigger operation; the flow state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
[0111] The technical solution provided by the embodiment of the present disclosure realizes obtaining the corresponding target button configuration information according to the scene information corresponding to the button display request of the client, and rendering the target button configuration information after sending it to the client, so that the process of determining the button configuration information is separated from the binding with the client version, and can be flexibly determined according to the scene information, thereby improving the efficiency of configuring the button.
[0112] It should be understood that although Figure 2-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 3 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0113] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0114] Figure 5 is a block diagram of a button configuration device according to an exemplary embodiment. Figure 5 The device includes a scene information determination unit 502, a configuration information acquisition unit 504 and an icon button acquisition unit 506.
[0115] The scene information determination unit 502 is configured to execute a button display request from the client and obtain scene information corresponding to the button display request; the button display request is generated by the client according to a button trigger operation in a preset area of the live broadcast room;
[0116] The configuration information acquisition unit 504 is configured to acquire target button configuration information matching the scene information from the button configuration list;
[0117] The icon button acquisition unit 506 is configured to execute acquisition of a button icon corresponding to the target button configuration information, send the button icon to the client, and enable the client to render the interface of the preset area of the live broadcast room according to the button icon and display the rendered interface.
[0118] In an exemplary embodiment, the scene information includes a type identifier and an event identifier of the live broadcast room;
[0119] The configuration information acquisition unit 504 is further configured to acquire at least one button configuration information matching both the type identifier and the event identifier from the button configuration list as the target button configuration information.
[0120] In an exemplary embodiment, the button display request carries a version identifier; the version identifier is used to characterize the application environment of the button triggering operation in the client;
[0121] The configuration information acquisition unit 504 is further configured to filter at least one button configuration information according to the version identifier, and use the button configuration information matching the version identifier as the target button configuration information.
[0122] In an exemplary embodiment, the icon button acquisition unit 506 is further configured to determine a content distribution address of the button icon according to the target button configuration information; and acquire the button icon from a content distribution network according to the content distribution address.
[0123] In an exemplary embodiment, the icon button acquisition unit 506 is further configured to determine a button icon identifier according to the target button configuration information; and acquire a corresponding content distribution address according to the button icon identifier.
[0124] In an exemplary embodiment, the icon button acquisition unit 506 is also configured to determine the position information of the button icon in the interface of the preset area of the live broadcast room according to the target button configuration information; the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information.
[0125] In an exemplary embodiment, the button icon includes a single-state button icon and a flow-state button icon; the single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0127] Figure 6 is a block diagram of an electronic device 600 for button configuration according to an exemplary embodiment. For example, the electronic device 600 may be a server. Figure 6 , the electronic device 600 includes a processing component 620, which further includes one or more processors, and a memory resource represented by a memory 622 for storing instructions executable by the processing component 620, such as an application. The application stored in the memory 622 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 620 is configured to execute the instructions to perform the above method.
[0128] The electronic device 600 may further include a power supply component 624 configured to perform power management of the electronic device 600, a wired or wireless network interface 626 configured to connect the electronic device 600 to a network, and an input / output (I / O) interface 628. The electronic device 600 may operate based on an operating system stored in the memory 622, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
[0129] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 622 including instructions, and the above instructions can be executed by a processor of the electronic device 600 to perform the above method. The storage medium can be a computer-readable storage medium, for example, a computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0130] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by a processor of the electronic device 600 to complete the above method.
[0131] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.
[0132] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0133] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A button configuration method, characterized in that: include: According to the button display request of the client, acquiring scene information corresponding to the button display request; The button display request is generated by the client according to a button trigger operation in a preset area of the live broadcast room; the scene information includes a type identifier and an event identifier of the live broadcast room; Acquire target button configuration information that matches both the type identifier and the event identifier from the button configuration list; Determine a button icon identifier according to the target button configuration information; Acquire the corresponding content distribution address according to the button icon identifier; According to the content distribution address, a button icon corresponding to the target button configuration information is obtained from the content distribution network, and the button icon is sent to the client, so that the client renders the interface of the preset area of the live broadcast room according to the button icon, and displays the rendered interface; the button icon includes a single state button image and a flow state button image; multiple buttons in the flow state button icon have display priority; the display priority is determined according to the scene information.
2. The method according to claim 1, characterized in that The acquiring target button configuration information matching both the type identifier and the event identifier includes: At least one button configuration information matching both the type identifier and the event identifier is acquired from the button configuration list as the target button configuration information.
3. The method according to claim 2, characterized in that The button display request carries a version identifier; the version identifier is used to characterize the application environment of the button triggering operation in the client; The acquiring at least one button configuration information matching both the type identifier and the event identifier as the target button configuration information includes: At least one of the button configuration information is screened according to the version identifier, and the button configuration information matching the version identifier is used as the target button configuration information.
4. The method according to claim 1, characterized in that: The acquiring the button icon corresponding to the target button configuration information includes: Determine the content distribution address of the button icon according to the target button configuration information; The button icon is obtained from a content distribution network according to the content distribution address.
5. The method according to claim 4, characterized in that The step of determining the content distribution address of the button icon according to the target button configuration information includes: Determine a button icon identifier according to the target button configuration information; The corresponding content distribution address is obtained according to the button icon identifier.
6. The method according to any one of claims 1 to 5, characterized in that: The sending of the button icon to the client so that the client renders the interface of the preset area of the live broadcast room according to the button icon includes: The position information of the button icon on the interface of the preset area of the live broadcast room is determined according to the target button configuration information; and the client is used to render the button icon to the interface of the preset area of the live broadcast room according to the position information.
7. The method according to any one of claims 1 to 5, characterized in that: The button icons include single state button icons and flow state button icons; The single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon is composed of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
8. A button configuration device, characterized in that: include: A scene information determination unit, configured to execute, according to a button display request of a client, acquiring scene information corresponding to the button display request; The button display request is generated by the client according to a button triggering operation in a preset area of the live broadcast room; The scene information includes a type identifier and an event identifier of the live broadcast room; A configuration information acquisition unit, configured to acquire target button configuration information matching both the type identifier and the event identifier from a button configuration list; An icon button acquiring unit, configured to determine a button icon identifier according to the target button configuration information; Obtain a corresponding content distribution address according to the button icon identifier; obtain a button icon corresponding to the target button configuration information from a content distribution network according to the content distribution address, and send the button icon to the client, so that the client renders the interface of the preset area of the live broadcast room according to the button icon, and displays the rendered interface; the button icon includes a single state button image and a flow state button image; multiple buttons in the flow state button icon have display priority; the display priority is determined according to the scene information.
9. The device according to claim 8, characterized in that The configuration information acquisition unit is further configured to acquire, from the button configuration list, at least one button configuration information matching both the type identifier and the event identifier as the target button configuration information.
10. The device according to claim 9, characterized in that The button display request carries a version identifier; the version identifier is used to characterize the application environment of the button triggering operation in the client; The configuration information acquisition unit is further configured to filter at least one of the button configuration information according to the version identifier, and use the button configuration information matching the version identifier as the target button configuration information.
11. The device according to claim 8, characterized in that The icon button acquisition unit is further configured to determine a content distribution address of a button icon according to the target button configuration information; and acquire the button icon from a content distribution network according to the content distribution address.
12. The device according to claim 11, characterized in that The icon button acquisition unit is further configured to determine a button icon identifier according to the target button configuration information; and acquire a corresponding content distribution address according to the button icon identifier.
13. The device according to any one of claims 8 to 12, characterized in that The icon button acquisition unit is further configured to determine the position information of the button icon on the interface of the preset area of the live broadcast room according to the target button configuration information; The client is used to render the button icon to an interface of a preset area of the live broadcast room according to the location information.
14. The device according to any one of claims 8 to 12, characterized in that The button icon includes a single-state button icon and a flow-state button icon; the single-state button icon is used to execute a preset function in response to a button trigger operation; the flow-state button icon consists of at least two button icons, which are used to execute a preset function and switch button icons in response to a button trigger operation.
15. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the button configuration method according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the button configuration method according to any one of claims 1 to 7.
