Live broadcast room interface processing method and device and storage medium
By obtaining the configuration parameters of the mic layout, a general layout method for the live broadcast room interface is realized, which solves the problem of high development costs of different types of live broadcast room interfaces, and improves development efficiency and flexibility.
Patent Information
- Application Number
- CN202311873344.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the interface layout of the live broadcast room varies according to different types of live broadcast rooms, resulting in high development costs, high maintenance costs, slow iteration, and lack of flexibility.
By obtaining the mic layout configuration parameters of the live broadcast room, the layout of multimedia stream data and interface elements in the live broadcast room interface is unified, and the mic layout configuration parameters are used to realize the general layout of any type of live broadcast room interface.
It reduces the development and maintenance costs of different types of live broadcast interfaces, improves development efficiency, and supports dynamic deployment of new layouts without relying on client version updates.
Smart Images

Figure CN120238690A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer and network communication technologies, and in particular, to a method, device, and storage medium for processing a live broadcast room interface. Background Art
[0002] Currently, in video live broadcast rooms or voice live broadcasts, etc., the host can conduct real-time live connection interactions with guests by establishing a connection session, so that the audience in the live broadcast room can watch the connection interaction content.
[0003] With the increasing richness of the functions of the live broadcast room, the live broadcast room can include various different types, such as video chat, voice chat, theme competition, KTV, etc. However, for different types of live broadcast rooms, the layout of the live broadcast room interface is different, and the controls related to different microphone positions in the live broadcast room interface are also different. Developers need to develop the live broadcast room interface for each type of live broadcast room separately, which has high development costs and maintenance costs, and slow iteration, and is not flexible enough. Summary of the Invention
[0004] Embodiments of the present disclosure provide a method, device, and storage medium for processing a live broadcast room interface, so as to provide a general layout method for the live broadcast room interface of any target type.
[0005] In a first aspect, embodiments of the present disclosure provide a method for processing a live broadcast room interface, which is applied to a client, and the method includes:
[0006] Obtain first multimedia stream data of a second client participating in a connection in a live broadcast room of any target type and second multimedia stream data of a first client;
[0007] Obtain the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed;
[0008] According to the microphone position layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and display the data to be displayed in the interface elements.
[0009] In a second aspect, embodiments of the present disclosure provide a device for processing a live broadcast room interface, including:
[0010] A multimedia stream data acquisition unit, configured to obtain first multimedia stream data of a second client participating in a connection in a live broadcast room of any target type and second multimedia stream data of a first client;
[0011] A parameter acquisition unit, configured to obtain the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed;
[0012] A layout unit is configured to display the first multimedia stream data, the second multimedia stream data, and interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters, and display the data to be displayed in the interface elements.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0014] The memory stores computer-executable instructions;
[0015] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the live broadcast room interface processing method described in the first aspect and various possible designs of the first aspect above.
[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the live broadcast room interface processing method described in the first aspect and various possible designs of the first aspect above is implemented.
[0017] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer-executable instructions. When a processor executes the computer-executable instructions, the live broadcast room interface processing method described in the first aspect and various possible designs of the first aspect above is implemented.
[0018] The live broadcast room interface processing method, device, and storage medium provided by the embodiments of the present disclosure obtain the first multimedia stream data of the second client participating in the co-hosting in the live broadcast room of any target type and the second multimedia stream data of the first client; obtain the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed; according to the microphone position layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and display the data to be displayed in the interface elements. The embodiments of the present disclosure provide a general layout method for the live broadcast room interface of any target type, and control the layout and display of each multimedia stream data and interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface on the client through the microphone position layout configuration parameters, making the live broadcast room interface layout more flexible. Moreover, developers do not need to develop the live broadcast room interface for various types of live broadcast rooms, and only need to configure the microphone position layout configuration parameters, reducing the development and maintenance costs of different types of live broadcast room interfaces and improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.
[0020] Figure 1 It is a scene example diagram for processing the live room interface provided by an embodiment of the present disclosure;
[0021] Figure 2 It is a schematic flowchart of the method for processing the live room interface provided by an embodiment of the present disclosure;
[0022] Figure 3a It is a schematic diagram for processing the live room interface provided by an embodiment of the present disclosure;
[0023] Figure 3b It is a schematic diagram for processing the live room interface provided by another embodiment of the present disclosure;
[0024] Figure 3c It is a schematic diagram for processing the live room interface provided by another embodiment of the present disclosure;
[0025] Figure 4 It is a structural block diagram of the device for processing the live room interface provided by an embodiment of the present disclosure;
[0026] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present disclosure.
[0028] With the increasing richness of the functions of the live room, the live room can include various different types, such as video chat, voice chat, theme competition, KTV, etc. However, for different types of live rooms, the layout of the live room interface is different, and the controls related to different microphone positions in the live room interface are also different. Developers need to develop the live room interface separately for each type of live room, and its development cost and maintenance cost are relatively high, and the iteration is slow and not flexible enough.
[0029] To solve the above technical problems, an embodiment of the present disclosure provides a method for processing a live broadcast room interface. The method includes obtaining first multimedia stream data of a second client participating in a co-hosting in a live broadcast room of any target type and second multimedia stream data of a first client; obtaining a microphone position layout configuration parameter of the live broadcast room of the target type and data to be displayed; and displaying the first multimedia stream data, the second multimedia stream data, and interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameter, and displaying the data to be displayed in the interface elements. In the embodiment of the present disclosure, a general layout method for the interface of a live broadcast room of any target type is provided. By using the microphone position layout configuration parameter to control the layout and display of each multimedia stream data and interface elements corresponding to the live broadcast room of the target type on the client, the layout of the live broadcast room interface is made more flexible, and developers do not need to develop the live broadcast room interface for various types of live broadcast rooms, but only need to configure the microphone position layout configuration parameter, which reduces the development and maintenance costs of different types of live broadcast room interfaces and improves the development efficiency.
[0030] The method for processing the live broadcast room interface provided in the above embodiment is applied to a scenario as Figure 1 shown. The live broadcast room can be a live broadcast room of any target type. The live broadcast room may include a client participating in a co-hosting and an audience client not participating in a co-hosting. Among them, the client participating in a co-hosting includes a host client and a guest client. The method for processing the live broadcast room interface provided in the embodiment of the present disclosure can be applied to the client participating in a co-hosting (including the host client and the guest client).
[0031] It should be noted that the user information and data involved in this application are all information and data authorized by the user or fully authorized by all parties. And the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0032] The method for processing the live broadcast room interface of the present disclosure will be introduced in detail below in combination with specific embodiments.
[0033] Refer to Figure 2 , Figure 2 which is a schematic flowchart of a method for processing a live broadcast room interface provided by an embodiment of the present disclosure. The method of this embodiment can be applied to any client participating in a co-hosting in a live broadcast room, denoted as the first client. The method for processing the live broadcast room interface includes:
[0034] S201. Obtain first multimedia stream data of a second client participating in a co-hosting in a live broadcast room of any target type and second multimedia stream data of the first client.
[0035] In this embodiment, a general live broadcast room layout method is provided, which can be applied to any target business scenario, that is, it can be applied to various types of live broadcast rooms, including but not limited to video chat live broadcast rooms, voice chat live broadcast rooms, theme competition live broadcast rooms, check-in ranking live broadcast rooms, KTV live broadcast rooms, battle live broadcast rooms, etc.
[0036] Specifically, in any target type of live broadcast room, there are multiple client devices participating in the co-hosting, which may include the host client device and the guest client device. The host client device and the guest client device can interact with each other. In addition, the live broadcast room also includes audience client devices that do not participate in the co-hosting and can watch the interaction between the host client device and the guest client device.
[0037] The first client device, which is the execution subject of this embodiment, can be the host client device or the guest client device. The first client device can obtain the first multimedia stream data of the second client device participating in the co-hosting in the live broadcast room (where the "first" and "second" in this embodiment are only for convenience of description and do not represent order or importance). Specifically, it can pull the first multimedia stream data of the second client device participating in the co-hosting from the server. In addition, the first client device can also collect the second multimedia stream data of the first client device. The multimedia stream data in this embodiment can include but not limited to audio, video, images, etc. The second client device can be one or more.
[0038] S202. Obtain the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed.
[0039] In this embodiment, for different types of live broadcast rooms, preset microphone position layout parameters can be pre-configured. The microphone position refers to the area for displaying each multimedia stream data on the live broadcast room interface. In addition to displaying the picture of the multimedia stream data on each microphone position, some interface elements can also be displayed, such as controls for displaying the avatars and ID identifiers of the corresponding client devices, and some interface elements related to the live broadcast room of the target type can also be displayed. For example, in a battle live broadcast room, score controls and timing controls can be displayed on the microphone positions.
[0040] Among the microphone position layout configuration parameters of any type of live broadcast room, parameters including but not limited to the positions, sizes, arrangement methods, alignment methods, and corresponding interface elements of each microphone position can be configured for this type of live broadcast room. Through the microphone position layout configuration parameters, it can be determined how the interface of this type of live broadcast room is specifically laid out. Optionally, for the same type of live broadcast room, multiple microphone position layout configuration parameters can be configured. The host client device can send a selection instruction to the server to determine which microphone position layout configuration parameter to adopt in the live broadcast room of the target type, so that all client devices in the live broadcast room adopt the microphone position layout configuration parameter selected by the host.
[0041] Further, the first client can obtain the microphone layout configuration parameters of the live broadcast room of the target type where it is currently located. The specific obtaining method is not limited in this embodiment. It can be obtained from the server, or can be obtained from the local storage unit of the first client, etc., or any other obtaining method is acceptable.
[0042] Since the microphone layout configuration parameters only determine how the live broadcast room interface is laid out and do not determine what text, numerical values, pictures, etc. are displayed in the live broadcast room interface layout, it is also necessary to obtain the data to be displayed in the live broadcast room interface to determine what text, numerical values, pictures, etc. are displayed in the live broadcast room interface layout. Of course, it can include but is not limited to text, numerical values, pictures, etc. For example, the avatars and ID identifiers of each client participating in the co-hosting can be obtained from the server and used to be displayed in the corresponding avatar controls and ID identifier controls of each client. Another example is to obtain the scores of each client during the battle from the server in the battle live broadcast room and use them to be displayed in the corresponding score controls of each client, and so on.
[0043] S203. According to the microphone layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and display the data to be displayed in the interface elements.
[0044] In this embodiment, the first client can arrange and play each first multimedia stream data and second multimedia stream data in the live broadcast room interface according to the microphone layout configuration parameters. At the same time, display the interface elements corresponding to the live broadcast room of the target type, such as the avatar control, ID identifier control, score control, timing control, etc. in the above embodiments, and display the obtained data to be displayed in the corresponding interface elements, so as to complete the layout and display of the entire live broadcast room interface.
[0045] The live broadcast room interface processing method provided in this embodiment obtains the first multimedia stream data of the second client participating in the co-hosting and the second multimedia stream data of the first client in a live broadcast room of any target type; obtains the microphone layout configuration parameters of the live broadcast room of the target type and the data to be displayed; and according to the microphone layout configuration parameters, displays the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and displays the data to be displayed in the interface elements. In this embodiment, a method for the interface layout of a live broadcast room of any target type is provided. By using the microphone layout configuration parameters to control the layout and display of each multimedia stream data and the interface elements corresponding to the live broadcast room of the target type on the client, the layout of the live broadcast room interface is made more flexible. Moreover, developers do not need to develop the live broadcast room interface for various types of live broadcast rooms, but only need to configure the microphone layout configuration parameters, which reduces the development and maintenance costs of different types of live broadcast room interfaces and improves the development efficiency. In addition, the new layout of the live broadcast room interface can support dynamic deployment and online launch without relying on the update (release) of the client version.
[0046] Based on any of the above embodiments, in the microphone layout configuration parameters, it may specifically include the position of the canvas (such as the distance from the top of the interface, etc.), size, filling method (such as stretch filling, leaving blank, clipping, etc.), alignment method, etc.; in addition, the microphone layout configuration parameters may also include the position (such as the coordinates in the canvas), size, etc. of the effective content area in the canvas, where the effective content area is the area for displaying the pictures of each multimedia stream data, for example Figure 3a and Figure 3b as shown, where Figure 3a is the width alignment method, that is, the width of the effective content area (the white area) in the canvas (the entire light gray area, including the white area) is the same as the maximum display width of the live broadcast room interface (the entire dark gray area, including the light gray and white areas). If the live broadcast room interface is full-screen display, the width of the live broadcast room interface is the screen width. Figure 3b is the height alignment method, that is, the height of the effective content area (the white area) in the canvas (the entire light gray area, including the white area) is the same as the maximum display height of the live broadcast room interface (the height of the live broadcast room interface minus the height of the upper and lower notch areas). This results in the canvas and the effective content area exceeding the live broadcast room interface in width, that is, part of the effective content area can be displayed, and whether to display the left part or the right part is related to the alignment method parameter; the microphone layout configuration parameters may also include the position, size, etc. of the display areas of each multimedia stream data within the effective content area.
[0047] Further, when displaying the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters in S203, it may specifically include:
[0048] According to the microphone position layout configuration parameters, determine the position and alignment mode of the canvas in the live broadcast room interface, determine the effective content area in the canvas, and determine the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area;
[0049] In the display areas of the first multimedia stream data and the second multimedia stream data, display the pictures of the first multimedia stream data and the second multimedia stream data, as well as the interface elements corresponding to the first multimedia stream data and the second multimedia stream data respectively.
[0050] In this embodiment, based on parameters such as the position (such as the distance from the top of the interface, etc.), size, filling method (such as stretching filling, leaving blank, cropping, etc.), and alignment mode of the canvas included in the microphone position layout configuration parameters, determine the position and alignment mode of the canvas in the live broadcast room interface; further, based on parameters such as the position (such as the coordinates in the canvas), size, etc. of the effective content area in the canvas included in the microphone position layout configuration parameters, determine the effective content area in the canvas; further, based on parameters such as the position and size of the display areas of each multimedia stream data in the effective content area included in the microphone position layout configuration parameters, determine the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area, and then display the pictures of the first multimedia stream data and the second multimedia stream data in the display areas of the first multimedia stream data and the second multimedia stream data respectively. In addition, the interface elements (such as avatar controls, ID identification controls, score controls, timing controls, etc.) corresponding to the first multimedia stream data and the second multimedia stream data can also be displayed in the display areas of the first multimedia stream data and the second multimedia stream data.
[0051] It should be noted that if the first client is in landscape mode, for example, the first client is a landscape display device such as a tablet computer, a vertical screen display container can be configured within the screen of the first client, such as Figure 3c As shown, the live broadcast room interface is displayed within the vertical screen display container, and then the method in the above embodiment is executed in this vertical screen display container, that is, according to the microphone position layout configuration parameters, the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type are displayed in the live broadcast room interface within the vertical screen display container, so as to solve the adaptability problem of the above live broadcast room interface processing method in landscape mode.
[0052] Optionally, when the first multimedia stream data and the second multimedia stream data are displayed in the live broadcast room interface, the images of the first multimedia stream data and the second multimedia stream data can be uniformly rendered and displayed within a single view in the live broadcast room interface, so that each frame of the first multimedia stream data and the second multimedia stream data is synthesized into one frame of image. In this way, the first client only needs one view to display the images of multiple multimedia stream data.
[0053] In addition, if the first client is the host client, the first client also needs to merge the images of each multimedia stream data and each interface element to obtain a multimedia stream data, and push it to the viewer client for playback, so that the viewer client can view the multimedia stream data of the host client and the guest client participating in the co-hosting in the live broadcast room.
[0054] Based on any of the above embodiments, the background image of the live broadcast room can also be set or modified in the live broadcast room interface, and the execution subject (the first client) can be the host client. Specifically, the first client can first obtain the background image of the live broadcast room to be displayed. For example, it can be obtained by any method such as uploading or shooting. Further, according to the display areas of the first multimedia stream data and the second multimedia stream data, windows can be cut out from the corresponding areas of the background image of the live broadcast room, where the position of each window is respectively consistent with the display area of the first multimedia stream data or the second multimedia stream data, and the size of each window is less than or equal to the corresponding display area of the first multimedia stream data or the second multimedia stream data, and the cut background image of the live broadcast room is covered on the live broadcast room interface, so that the images of the first multimedia stream data and the second multimedia stream data are displayed from the windows, thereby realizing the setting or modification of the background image of the live broadcast room.
[0055] Based on any of the above embodiments, specific interactions can also be carried out between any two clients participating in the co-hosting in the live broadcast room. For example, client A participating in the co-hosting sends a gift to client B, etc. The interaction instructions between any two clients participating in the co-hosting can be transmitted by the server to each client participating in the co-hosting in the live broadcast room.
[0056] After the first client obtains the interaction instructions between any two clients participating in the co-hosting, it can determine the corresponding interaction elements according to the interaction instructions, and control the interaction elements to perform preset interaction actions between the display areas of the multimedia stream data of the any two clients.
[0057] In this embodiment, in order to display that an interaction has occurred between any two clients on the first client, the corresponding interaction element can be determined according to the interaction instruction, and the interaction element can be controlled to perform a preset interaction action between the display areas of the multimedia stream data of the any two clients. For example, for an interaction instruction that client A sends a gift to client B, the corresponding interaction element is a gift display control, and the gift display control can show the gift moving from the display area of the multimedia stream data of client A to the display area of the multimedia stream data of client B, so as to display the process of client A sending a gift to client B in the live broadcast room interface.
[0058] Based on any of the above embodiments, the audio of each multimedia stream data can also be visually displayed to show which client is currently speaking among the clients participating in the co-hosting in the live broadcast room interface. Specifically, according to the audio of each multimedia stream data in the first multimedia stream data and the second multimedia stream data, the audio visualization interface element corresponding to each multimedia stream data can be determined, where the audio visualization interface element can be a control for displaying the volume change of the multimedia stream data or a control for displaying the audio spectrum, and then the audio visualization interface element corresponding to each multimedia stream data is displayed at the display area of each multimedia stream data.
[0059] Based on any of the above embodiments, when obtaining the microphone position layout configuration parameters of the live broadcast room of the target type, it specifically may include:
[0060] Obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server and parsing the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters; or
[0061] If the preset microphone position layout configuration file of the live broadcast room of the target type cannot be obtained from the server, then obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the local storage unit of the first client and parsing the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters.
[0062] In this embodiment, the server can configure a preset microphone position layout configuration file for the live broadcast rooms of the target type. The preset microphone position layout configuration file includes microphone position layout configuration parameters, and the preset microphone position layout configuration file can be dynamically updated and dynamically distributed (without relying on the client's version release). The client can obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from the server and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters included therein. Considering the problem of time delay or failure in obtaining the preset microphone position layout configuration file of the live broadcast rooms of the target type from the server, the preset microphone position layout configuration file of the live broadcast rooms of the target type can be pre-stored in the local storage unit of the first client. When the first client fails to obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from the server, it can obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from the local storage unit and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters included therein. It should be noted that the preset microphone position layout configuration file of the live broadcast rooms of the target type pre-stored in the local storage unit depends on the client's version release and cannot be dynamically obtained from the server. That is, when the client performs a version update, it will obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type and pre-store it in the local storage unit.
[0063] Optionally, the server includes at least two servers, and the preset microphone position layout configuration file of the live broadcast rooms of the target type is configured in all of the at least two servers. As a backup, the first client can obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from any one of the servers, which ensures the stability and reliability of obtaining the preset microphone position layout configuration file, avoids the problems of acquisition delay or acquisition failure, and also ensures the flexibility of configuration and update of the preset microphone position layout configuration file. Optionally, the at least two servers are configured with a preset server priority order. Therefore, the first client can obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from the at least two servers according to the preset server priority order. For example, it first obtains from the server with the highest priority. If the acquisition fails, it then obtains from the server with the second highest priority, and so on, until the preset microphone position layout configuration file is obtained from a certain server, or the acquisition fails from all servers, and then it can obtain the preset microphone position layout configuration file of the live broadcast rooms of the target type from the local storage unit.
[0064] Optionally, after the first client parses the preset microphone layout configuration file, the parsed microphone layout configuration parameters can be cached in the memory of the first client. When the microphone layout configuration parameters of the live broadcast room of the target type need to be obtained next time, the microphone layout configuration parameters cached in the memory can be directly used, without having to obtain the preset microphone layout configuration file of the live broadcast room of the target type from the server or the local storage unit again and perform parsing, which improves the processing speed.
[0065] Further, in the above embodiment, when obtaining the microphone layout configuration parameters of the live broadcast room of the target type, it may specifically include:
[0066] Check whether the microphone layout configuration parameters are cached in the memory of the first client;
[0067] If the microphone layout configuration parameters are cached in the memory of the first client, then suspend obtaining the preset microphone layout configuration file of the live broadcast room of the target type from the server (that is, no longer obtain the preset microphone layout configuration file); or
[0068] If the microphone layout configuration parameters are not cached in the memory of the first client, then obtain the preset microphone layout configuration file of the live broadcast room of the target type from the server, and parse the preset microphone layout configuration file to obtain the microphone layout configuration parameters; further, the microphone layout configuration parameters can also be cached in the memory; or
[0069] If the preset microphone layout configuration file of the live broadcast room of the target type cannot be obtained from the server, then obtain the preset microphone layout configuration file of the live broadcast room of the target type from the local storage unit of the first client, and parse the preset microphone layout configuration file to obtain the microphone layout configuration parameters; further, the microphone layout configuration parameters can also be cached in the memory.
[0070] Through the above method, it is ensured that the first client can obtain the microphone layout configuration parameters, and thus the interface layout of the live broadcast room is ensured.
[0071] It should be noted that after the server updates the preset microphone layout configuration file, the updated preset microphone layout configuration file can be obtained from the server, and then the updated microphone layout configuration parameters can be parsed. The interface layout of the live broadcast room is updated according to the updated microphone layout configuration parameters; if the acquisition of the updated preset microphone layout configuration file from the server fails, the interface layout of the live broadcast room is not updated. In addition, the user can also be prompted to update the version of the first client to update the preset microphone layout configuration file of the live broadcast room of the target type stored in the local storage unit of the first client.
[0072] Based on any of the above embodiments, the above live broadcast room interface processing method also supports the expansion of new service scenarios. When adding a new service scenario, in addition to supporting the above live broadcast room interface processing method, it can also support the specific business logic of the new service scenario, such as specific interface elements and the control logic of the interface elements, specific ViewModel, etc., which will not be elaborated here.
[0073] Corresponding to the live broadcast room interface processing method in the above embodiments, Figure 4 This is a structural block diagram of the live broadcast room interface processing device provided by the embodiments of the present disclosure. For the sake of convenience of description, only the parts related to the embodiments of the present disclosure are shown. Referring to Figure 4 The live broadcast room interface processing device 400 includes: a multimedia stream data acquisition unit 401, a parameter acquisition unit 402, and a layout unit 403.
[0074] Among them, the multimedia stream data acquisition unit 401 is configured to acquire the first multimedia stream data of the second client participating in the co-hosting and the second multimedia stream data of the first client in any target type of live broadcast room;
[0075] The parameter acquisition unit 402 is configured to acquire the microphone position layout configuration parameters of the target type of live broadcast room and the data to be displayed;
[0076] The layout unit 403 is configured to display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the target type of live broadcast room in the live broadcast room interface according to the microphone position layout configuration parameters, and display the data to be displayed in the interface elements.
[0077] In one or more embodiments of the present disclosure, when the layout unit 403 displays the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the target type of live broadcast room in the live broadcast room interface according to the microphone position layout configuration parameters, it is configured to:
[0078] Determine the position and alignment mode of the canvas in the live broadcast room interface according to the microphone position layout configuration parameters, determine the effective content area in the canvas, and determine the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area;
[0079] Display the pictures of the first multimedia stream data and the second multimedia stream data, and the interface elements corresponding to the first multimedia stream data and the second multimedia stream data respectively in the display areas of the first multimedia stream data and the second multimedia stream data.
[0080] In one or more embodiments of the present disclosure, if the first client is in landscape display, when the layout unit 403 displays the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters, it is used for:
[0081] Configure a portrait display container within the screen of the first client;
[0082] According to the microphone position layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface within the portrait display container.
[0083] In one or more embodiments of the present disclosure, the layout unit 403 is further used for:
[0084] Obtain the live broadcast room background image to be displayed;
[0085] Crop a window from the corresponding area of the live broadcast room background image according to the display areas of the first multimedia stream data and the second multimedia stream data, and cover the cropped live broadcast room background graphic on the live broadcast room interface, so that the images of the first multimedia stream data and the second multimedia stream data are displayed from the window.
[0086] In one or more embodiments of the present disclosure, the layout unit 403 is further used for:
[0087] Obtain the interaction instructions between any two clients participating in the joint microphone;
[0088] Determine the corresponding interaction elements according to the interaction instructions, and control the interaction elements to perform preset interaction actions between the display areas of the multimedia stream data of the any two clients.
[0089] In one or more embodiments of the present disclosure, when the layout unit 403 displays the first multimedia stream data and the second multimedia stream data in the live broadcast room interface, it is used for:
[0090] Render and display the images of the first multimedia stream data and the second multimedia stream data uniformly within a single view in the live broadcast room interface.
[0091] In one or more embodiments of the present disclosure, the layout unit 403 is further used for:
[0092] Determine the audio visualization interface elements corresponding to each multimedia stream data according to the audio of each multimedia stream data in the first multimedia stream data and the second multimedia stream data, and display them at the display area of each multimedia stream data.
[0093] In one or more embodiments of the present disclosure, when the parameter acquisition unit 402 acquires the microphone position layout configuration parameters of the live broadcast room of the target type, it is used for:
[0094] Obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the server, and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters; or
[0095] If the preset microphone position layout configuration file of the live broadcast room of the target type cannot be obtained from the server, obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the local storage unit of the first client, and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters.
[0096] In one or more embodiments of the present disclosure, the server includes at least two servers. Correspondingly, when the parameter acquisition unit 402 acquires the preset microphone position layout configuration file of the live broadcast room of the target type from the server, it is used for:
[0097] Obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the at least two servers according to the preset server priority order.
[0098] In one or more embodiments of the present disclosure, when the parameter acquisition unit 402 acquires the preset microphone position layout configuration file of the live broadcast room of the target type from the server, it is used for:
[0099] Check whether the microphone position layout configuration parameters are cached in the memory of the first client;
[0100] If the microphone position layout configuration parameters are not cached in the memory of the first client, obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the server; or
[0101] If the microphone position layout configuration parameters are cached in the memory of the first client, suspend obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server.
[0102] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here in this embodiment.
[0103] Refer to Figure 5, which shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure. The electronic device 500 can be a terminal device or a server. Among them, the terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable media players (PMPs), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.
[0104] As Figure 5 shown, the electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage device 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0105] Generally, the following devices can be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 can allow the electronic device 500 to communicate with other devices wirelessly or wirelessly to exchange data. Although Figure 5 the electronic device 500 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. More or fewer devices can be implemented or had alternatively.
[0106] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are performed.
[0107] It should be noted that the above computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0108] The above computer-readable medium can be included in the above electronic device; or can exist separately without being assembled into the electronic device.
[0109] The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to perform the method shown in the above embodiment.
[0110] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0112] The units involved in the embodiments described in the present disclosure may be implemented in software or in hardware. Among them, the name of the unit does not constitute a limitation to the unit itself in some cases. For example, the first acquisition unit may also be described as "the unit for acquiring at least two Internet protocol addresses".
[0113] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, by way of non-limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and so on.
[0114] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0115] In a first aspect, according to one or more embodiments of the present disclosure, there is provided a method for processing a live broadcast room interface, which is applied to a client, and the method includes:
[0116] Obtaining first multimedia stream data of a second client participating in a co-hosting in a live broadcast room of any target type and second multimedia stream data of a first client;
[0117] Obtaining the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed;
[0118] According to the microphone position layout configuration parameters, displaying the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and displaying the data to be displayed in the interface elements.
[0119] According to one or more embodiments of the present disclosure, the displaying the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the target service scenario in the live broadcast room interface according to the microphone position layout configuration parameters includes:
[0120] According to the microphone position layout configuration parameters, determining the position and alignment mode of the canvas in the live broadcast room interface, determining an effective content area in the canvas, and determining the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area;
[0121] Displaying the pictures of the first multimedia stream data and the second multimedia stream data and the interface elements corresponding to the first multimedia stream data and the second multimedia stream data respectively in the display areas of the first multimedia stream data and the second multimedia stream data.
[0122] According to one or more embodiments of the present disclosure, if the first client is in landscape mode, then according to the microphone layout configuration parameters, the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type are displayed in the live broadcast room interface, including:
[0123] Configure a portrait display container within the screen of the first client;
[0124] According to the microphone layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface within the portrait display container.
[0125] According to one or more embodiments of the present disclosure, the method further includes:
[0126] Obtain the live broadcast room background image to be displayed;
[0127] Crop a window in the corresponding area of the live broadcast room background image according to the display areas of the first multimedia stream data and the second multimedia stream data, and cover the cropped live broadcast room background graphic on the live broadcast room interface, so that the images of the first multimedia stream data and the second multimedia stream data are displayed from the window.
[0128] According to one or more embodiments of the present disclosure, the method further includes:
[0129] Obtain an interaction instruction between any two clients participating in the co-hosting;
[0130] Determine the corresponding interaction element according to the interaction instruction, and control the interaction element to perform a preset interaction action between the display areas of the multimedia stream data of the any two clients.
[0131] According to one or more embodiments of the present disclosure, the displaying the first multimedia stream data and the second multimedia stream data in the live broadcast room interface includes:
[0132] Render and display the images of the first multimedia stream data and the second multimedia stream data uniformly within a single view in the live broadcast room interface.
[0133] According to one or more embodiments of the present disclosure, the method further includes:
[0134] Determine the audio visualization interface element corresponding to each multimedia stream data according to the audio of each multimedia stream data in the first multimedia stream data and the second multimedia stream data, and display it at the display area of each multimedia stream data.
[0135] According to one or more embodiments of the present disclosure, obtaining the microphone position layout configuration parameters of the live broadcast room of the target type includes:
[0136] Obtaining a preset microphone position layout configuration file of the live broadcast room of the target type from a server, and parsing the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters; or
[0137] If the preset microphone position layout configuration file of the live broadcast room of the target type cannot be obtained from the server, obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the local storage unit of the first client, and parsing the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters.
[0138] According to one or more embodiments of the present disclosure, the server includes at least two servers. Correspondingly, obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server includes:
[0139] Obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the at least two servers according to a preset server priority order.
[0140] According to one or more embodiments of the present disclosure, obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server includes:
[0141] Checking whether the microphone position layout configuration parameters are cached in the memory of the first client;
[0142] If the microphone position layout configuration parameters are not cached in the memory of the first client, obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server; or
[0143] If the microphone position layout configuration parameters are cached in the memory of the first client, suspending obtaining the preset microphone position layout configuration file of the live broadcast room of the target type from the server.
[0144] In a second aspect, according to one or more embodiments of the present disclosure, a live broadcast room interface processing device is provided, including:
[0145] A multimedia stream data acquisition unit, configured to acquire first multimedia stream data of a second client participating in a co-hosting in any live broadcast room of a target type and second multimedia stream data of a first client;
[0146] A parameter acquisition unit, configured to acquire the microphone position layout configuration parameters of the live broadcast room of the target type and the data to be displayed;
[0147] A layout unit is configured to display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters, and display the corresponding data to be displayed in the interface elements.
[0148] According to one or more embodiments of the present disclosure, when the layout unit displays the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters, it is configured to:
[0149] Determine the position and alignment mode of the canvas in the live broadcast room interface according to the microphone position layout configuration parameters, determine the effective content area in the canvas, and determine the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area;
[0150] Display the images of the first multimedia stream data and the second multimedia stream data, and the interface elements corresponding to the first multimedia stream data and the second multimedia stream data respectively in the display areas of the first multimedia stream data and the second multimedia stream data.
[0151] According to one or more embodiments of the present disclosure, if the first client is in landscape mode, when the layout unit displays the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone position layout configuration parameters, it is configured to:
[0152] Configure a portrait display container within the screen of the first client;
[0153] Display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface within the portrait display container according to the microphone position layout configuration parameters.
[0154] According to one or more embodiments of the present disclosure, the layout unit is further configured to:
[0155] Obtain the live broadcast room background image to be displayed;
[0156] Crop a window from the corresponding area of the live broadcast room background image according to the display areas of the first multimedia stream data and the second multimedia stream data, and cover the cropped live broadcast room background graphic on the live broadcast room interface, so that the images of the first multimedia stream data and the second multimedia stream data are displayed from the window.
[0157] According to one or more embodiments of the present disclosure, the layout unit is further configured to:
[0158] Obtain an interaction instruction between any two clients participating in the co-hosting;
[0159] Determine a corresponding interaction element according to the interaction instruction, and control the interaction element to perform a preset interaction action between the display areas of the multimedia stream data of the any two clients.
[0160] According to one or more embodiments of the present disclosure, when the layout unit displays the first multimedia stream data and the second multimedia stream data in the live broadcast room interface, it is used for:
[0161] Render and display the pictures of the first multimedia stream data and the second multimedia stream data uniformly within a single view in the live broadcast room interface.
[0162] According to one or more embodiments of the present disclosure, the layout unit is further used for:
[0163] Determine an audio visualization interface element corresponding to each multimedia stream data according to the audio of each multimedia stream data in the first multimedia stream data and the second multimedia stream data, and display it at the display area of each multimedia stream data.
[0164] According to one or more embodiments of the present disclosure, when the parameter acquisition unit acquires the microphone position layout configuration parameters of the live broadcast room of the target type, it is used for:
[0165] Obtain a preset microphone position layout configuration file of the live broadcast room of the target type from the server, and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters; or
[0166] If the preset microphone position layout configuration file of the live broadcast room of the target type cannot be obtained from the server, obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the local storage unit of the first client, and parse the preset microphone position layout configuration file to obtain the microphone position layout configuration parameters.
[0167] According to one or more embodiments of the present disclosure, the server includes at least two servers. Correspondingly, when the parameter acquisition unit acquires the preset microphone position layout configuration file of the live broadcast room of the target type from the server, it is used for:
[0168] Obtain the preset microphone position layout configuration file of the live broadcast room of the target type from the at least two servers according to the preset server priority order.
[0169] According to one or more embodiments of the present disclosure, when the parameter acquisition unit acquires the preset microphone position layout configuration file of the live broadcast room of the target type from the server, it is used for:
[0170] Check whether the memory of the first client caches the microphone layout configuration parameter;
[0171] If the memory of the first client does not cache the microphone layout configuration parameter, obtain the preset microphone layout configuration file of the live broadcast room of the target type from the server; or
[0172] If the memory of the first client caches the microphone layout configuration parameter, pause obtaining the preset microphone layout configuration file of the live broadcast room of the target type from the server.
[0173] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one processor and a memory;
[0174] The memory stores computer-executable instructions;
[0175] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the live broadcast room interface processing method described in the first aspect above and various possible designs of the first aspect.
[0176] In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the live broadcast room interface processing method described in the first aspect above and various possible designs of the first aspect are implemented.
[0177] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided a computer program product, including computer-executable instructions, and when the processor executes the computer-executable instructions, the live broadcast room interface processing method described in the first aspect above and various possible designs of the first aspect are implemented.
[0178] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0179] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0180] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for processing a live broadcast room interface, characterized in that, Applied to the first client, the method includes: Obtain the first multimedia stream data of the second client participating in the co-hosting in the live broadcast room of any target type and the second multimedia stream data of the first client; Obtain the microphone layout configuration parameters of the live broadcast room of the target type and the data to be displayed; According to the microphone layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface, and display the data to be displayed in the interface elements.
2. The method according to claim 1, wherein The step of displaying the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone layout configuration parameters includes: According to the microphone layout configuration parameters, determine the position and alignment mode of the canvas in the live broadcast room interface, determine the effective content area in the canvas, and determine the display areas of the first multimedia stream data and the second multimedia stream data in the effective content area; Display the pictures of the first multimedia stream data and the second multimedia stream data and the interface elements corresponding to the first multimedia stream data and the second multimedia stream data respectively in the display areas of the first multimedia stream data and the second multimedia stream data.
3. The method according to claim 2, wherein If the first client is in landscape mode, the step of displaying the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone layout configuration parameters includes: Configure a portrait display container within the screen of the first client; According to the microphone layout configuration parameters, display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface within the portrait display container.
4. The method according to claim 2 or 3, characterized in that, The method further includes: Obtain the live broadcast room background image to be displayed; Cut out windows from the corresponding areas of the live broadcast room background image according to the display areas of the first multimedia stream data and the second multimedia stream data, and cover the cropped live broadcast room background graphics on the live broadcast room interface so that the pictures of the first multimedia stream data and the second multimedia stream data are displayed from the windows.
5. The method according to claim 2, characterized in that, The method further includes: Obtain the interaction instructions between any two clients participating in the co-hosting; Determine the corresponding interaction elements according to the interaction instructions, and control the interaction elements to perform preset interaction actions between the display areas of the multimedia stream data of the any two clients.
6. The method according to any one of claims 1 to 3, characterized in that The step of displaying the first multimedia stream data and the second multimedia stream data in the live broadcast room interface includes: Render and display the pictures of the first multimedia stream data and the second multimedia stream data uniformly in a single view in the live broadcast room interface.
7. The method according to any one of claims 1 to 3, characterized in that The method further includes: Based on the audio of each multimedia stream data in the first multimedia stream data and the second multimedia stream data, determine the audio visualization interface elements corresponding to each multimedia stream data, and display them at the display area of each multimedia stream data.
8. The method according to claim 1, wherein The obtaining of the microphone layout configuration parameters of the live broadcast room of the target type includes: Obtain the preset microphone layout configuration file of the live broadcast room of the target type from the server, and parse the preset microphone layout configuration file to obtain the microphone layout configuration parameters; or If the preset microphone layout configuration file of the live broadcast room of the target type cannot be obtained from the server, obtain the preset microphone layout configuration file of the live broadcast room of the target type from the local storage unit of the first client, and parse the preset microphone layout configuration file to obtain the microphone layout configuration parameters.
9. The method according to claim 8, wherein The server includes at least two servers. Correspondingly, the obtaining of the preset microphone layout configuration file of the live broadcast room of the target type from the server includes: Obtain the preset microphone layout configuration file of the live broadcast room of the target type from the at least two servers according to the preset server priority order.
10. The method according to claim 8, characterized in that The obtaining of the preset microphone layout configuration file of the live broadcast room of the target type from the server includes: Check whether the microphone layout configuration parameters are cached in the memory of the first client; If the microphone layout configuration parameters are not cached in the memory of the first client, obtain the preset microphone layout configuration file of the live broadcast room of the target type from the server; or If the microphone layout configuration parameters are cached in the memory of the first client, suspend obtaining the preset microphone layout configuration file of the live broadcast room of the target type from the server.
11. A live broadcast room interface processing device, characterized in that, Includes: A multimedia stream data acquisition unit, configured to acquire the first multimedia stream data of the second client participating in the co-hosting in any live broadcast room of the target type and the second multimedia stream data of the first client; A parameter acquisition unit, configured to acquire the microphone layout configuration parameters of the live broadcast room of the target type and the data to be displayed; A layout unit, configured to display the first multimedia stream data, the second multimedia stream data, and the interface elements corresponding to the live broadcast room of the target type in the live broadcast room interface according to the microphone layout configuration parameters, and display the data to be displayed in the interface elements.
12. An electronic device, characterized in that, Includes: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the method according to any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium. When the processor executes the computer execution instructions, the method according to any one of claims 1-10 is implemented.
14. A computer program product, characterized in that, Includes computer execution instructions. When the processor executes the computer execution instructions, the method according to any one of claims 1-10 is implemented.