Virtual gift display method and device
Technical Field
The application relates to the field of network live broadcast, in particular to a virtual gift display method and device.
Background
At present, online live broadcasting is increasingly favored by users, and gradually becomes one of mainstream expression modes of the internet. Aiming at online live broadcast, a live broadcast channel can be established by an anchor client through the Internet, the online live broadcast content is uploaded to a server by the anchor client, and the online live broadcast content is broadcasted to a spectator client which logs in the live broadcast channel by the server for watching by spectators at the spectator client. In order to increase the interest of the interaction between the anchor and the audience, a virtual gift giving function is set. For example, the viewer may gift the virtual gift to the anchor.
In the traditional technology, a client displays gifts in a comment dialog box of a network page in a picture-text mode according to time sequence, or can flash gift icons and the number of the gifts on a live broadcast picture when the gifts are received, so that the gifts are visible and the display mode is single.
Disclosure of Invention
The application provides a virtual gift display method and device, which aim to solve the problem of single display form in the prior art.
According to a first aspect of embodiments of the present application, there is provided a virtual gift display method, the method comprising:
receiving a gift layout command, wherein the gift layout command is an editing command for a user to lay out virtual gift information on a live broadcast picture;
determining layout information of the virtual gift information on a live broadcast picture according to the gift layout command;
and sending the layout information to a server so that the server informs a client of a sender of the client in a live broadcast channel, and displaying the virtual gift information on a live broadcast picture according to the layout information.
According to a second aspect of embodiments of the present application, there is provided a virtual gift display apparatus comprising:
the command receiving module is used for receiving a gift layout command, wherein the gift layout command is an editing command for a user to lay out virtual gift information on a live broadcast picture;
the information determining module is used for determining layout information of the virtual gift information on a live broadcast picture according to the gift layout command;
and the information sending module is used for sending the layout information to the server so that the server informs the client in the live channel of the sender client, and the virtual gift information is displayed on a live broadcast picture according to the layout information.
When the virtual gift display method and device are applied, a gift layout command triggered by a user can be received, the layout information of the virtual gift information on a live broadcast picture is determined according to the gift layout command, the layout information is sent to the server, so that the server informs the client in a live broadcast channel where the client is located of a sender, the virtual gift information is displayed on the live broadcast picture according to the layout information, the user can select the virtual gift to be displayed and can define the layout, the related information of the virtual gift is displayed on the live broadcast picture as an ornament, and interactivity of a main broadcast and audiences is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a live network architecture according to an exemplary embodiment of the present application.
Fig. 2A is a flowchart of an embodiment of a virtual gift displaying method of the present application.
Fig. 2B is a schematic diagram illustrating a virtual gift information layout according to an exemplary embodiment of the present application.
Fig. 2C is a diagram illustrating an application scenario for presenting a virtual gift according to an exemplary embodiment of the present application.
Fig. 3 is a hardware configuration diagram of a client device where the virtual gift-presenting apparatus of the present application is located.
Fig. 4 is a block diagram of one embodiment of a virtual gift-displaying device of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to better understand the virtual gift display method and apparatus disclosed in the present invention, a live broadcast network architecture used in the embodiments of the present application is first described. As shown in fig. 1, fig. 1 is a schematic diagram of a live network architecture according to an exemplary embodiment of the present application. The live network architecture can include a server and a plurality of terminals. The server can be called a background server, a component server, and the like, and is used for providing a background service of the live webcast. The server may include a server, a server cluster or a cloud platform, and may also be a program for executing the service. The terminal may be a smart terminal having a live webcast function, for example, the smart terminal may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant), a multimedia player, a wearable device, and the like. In a live network architecture, terminals may be divided into anchor terminals and audience terminals. The anchor terminal is internally provided with an anchor client, and the audience terminal is internally provided with an audience client. The anchor client and the audience client can be the same video live broadcast application program, namely the video live broadcast application program has a live broadcast mode and an audience mode, such as ' tiger ' live broadcast '; the anchor client and viewer client may also be different types of live video applications. Aiming at the condition that the anchor client and the audience client are the same video live broadcast application program, when the video live broadcast application program enters an anchor mode, the video live broadcast application program can be called the anchor client; when a live video application enters viewer mode, the live video application may be referred to as a viewer client. The audience terminal installed with the audience client can watch the live video uploaded by the main broadcasting client. The anchor terminal and the audience terminal can be connected with the server terminal in a wired network, a wireless network or a data transmission line and the like.
In the live broadcast network architecture, a viewer can log in a server of the live broadcast network architecture through a viewer client on a viewer terminal, an anchor can log in the server of the live broadcast network architecture through an anchor client on an anchor terminal, and the viewer and the anchor enter the same live broadcast channel. The anchor client uploads the online live broadcast content to the server, and the server sends the online live broadcast content to the audience client logged into the online live broadcast channel for the audience of the audience client to watch. The audience at the audience client can not only watch the live content uploaded by the main broadcast client, but also interact with the main broadcast of the live channel or other audiences through the server, for example, the audience can give gifts to favorite main broadcasts, and the like.
In the related art, after the audience presents the virtual gifts to the anchor broadcast, the virtual gifts can be displayed in a comment dialog box of a network page in a graphic form according to the time sequence, or gift icons and the number of the virtual gifts can be flashed on a live broadcast picture when the virtual gifts are received. Therefore, the current display of the virtual gifts can only be performed according to a limited form preset by the system, so that the display form of the virtual gifts is not flexible enough, and the interaction effect between the anchor and the audience is poor.
In order to avoid the defects of inflexible display form and poor interaction effect between a main broadcast and audiences in the related technology, the application provides a virtual gift display method, which can be applied to a live broadcast network architecture shown in fig. 1, can receive a gift layout command triggered by a user, determine layout information of virtual gift information on a live broadcast picture according to the gift layout command, and send the layout information to a server, so that the server informs a client in a live broadcast channel where the client is located, and display the virtual gift information on a live broadcast decoration picture according to the layout information, thereby realizing that the user self-defines the virtual gift and layout to be displayed, displaying the related information of the virtual gift on the live broadcast picture, and improving the interactivity of the main broadcast and audiences.
As shown in fig. 2A, fig. 2A is a flowchart of an embodiment of a virtual gift exhibition method of the present application, which may include the following steps 201 to 203:
in step 201, a gift layout command, which is an editing command for a user to lay out virtual gift information on a live screen, is received.
In step 202, layout information of the virtual gift information on a live screen is determined according to the gift layout command.
In step 203, the layout information is sent to the server, so that the server notifies the client in the live channel where the sender client is located, and the virtual gift information is displayed on the live screen according to the layout information.
In the application, the method can be applied to a terminal with a live network function, and the terminal is provided with an audience client or a main broadcast client. The anchor client and the audience client can be the same video live broadcast application program, namely the video live broadcast application program has both a live broadcast mode and an audience mode; the anchor client and viewer client may also be different types of live video applications.
In one example, the gift is given to the anchor by the audience, and the anchor displays the gift given by the audience on a live screen, so the application can be applied to a terminal installed with an anchor client, the virtual gift is the virtual gift sent to the anchor by the audience, and the virtual gift information is the relevant information of the virtual gift.
The client may include a PC end, a mobile end, and the like. The PC end comprises a web end and an APP (Application) end, and the mobile end comprises a WAP (wireless Application protocol) end and an APP (Application) end.
The terminal can be various electronic devices which can run software, and the electronic devices can be handheld electronic devices or other electronic devices. For example, it may be a cellular phone or other hand-held portable device, a slightly smaller portable device such as a wristwatch device or other miniaturized device, a tablet computer, a notebook computer, a desktop computer, a computer integrated into a computer display, or other electronic equipment.
In the present application, a gift layout command, which is an editing command for a user to lay out virtual gift information on a live view, may be received. For example, the gift layout command is an editing command triggered by a user through a live broadcast room editing interface, that is, the user selects virtual gift information to be displayed in the live broadcast room editing interface, performs live broadcast room layout on the virtual gift information, and after the layout is completed, the user triggers to generate the gift layout command by clicking a confirmation key or a button.
The virtual gift information is related to the virtual gift information. The virtual gift is received by the executing client and sent by other clients. For example, when the executive client is the anchor client, the virtual gift is a virtual gift sent by the viewer client and received by the anchor client.
In one example, the virtual gift information may include one or more of a picture of the virtual gift, a user identification of the virtual gift-giver, and a thank you of the virtual gift-recipient. The user identifier of the virtual gift-giver may be information for identifying the user, such as a user nickname and a user number. The thank you of the virtual gift recipient is the thank you of the recipient thank you to the donor.
For example, the virtual gift picture can be laid out on the live broadcast picture, so that the live broadcast picture can be decorated by the virtual gift picture, and the aesthetic property of the live broadcast picture is improved.
For another example, in order to embody the source of the virtual gift, the virtual gift picture and the user identifier of the virtual gift presenter may be simultaneously displayed, so as to embody the source of the virtual gift on a live broadcast screen, and improve interactivity between the presenter and the receiver. If, label "from: give "the princess to the gift source information.
For another example, in order to embody the emotion of the receiver, the virtual gift picture and the thank you of the virtual gift receiver may be displayed simultaneously, so as to embody the emotion of the receiver on the live broadcast screen and improve the interactivity between the presenter and the receiver. For example, the virtual gift picture is marked with information such as "thank you for the prince of the house" and the like.
It can be understood that, in the present application, only a few kinds of virtual gift information are listed, and in practical applications, other virtual gift information may also be used, which is set according to user requirements and is not described herein any more.
Regarding the live view, the live view is a view displayed after entering the live view room.
Regarding the live-air editing interface, the live-air editing interface is an interface for editing a live-air, and a live-air picture can be previewed in the live-air editing interface. The preview picture of the live broadcast content displayed by the anchor client in the display window is consistent with the live broadcast picture received by the audience client after entering the channel where the anchor client is located. The user can add cameras, characters, pictures and the like in the preview, can edit the position and the size of the image layer after the addition is successful, can click the image layer and drag the image layer to change the position, and can click the corners of the image layer to change the size of the image layer. Furthermore, the virtual gift information can be added in the preview, and the virtual gift information is edited and laid out, so that the virtual gift information is used as decoration information of a live broadcast picture.
The user can perform live broadcast layout on the virtual gift information in the live broadcast editing interface, for example, drag and drop, zoom, rotate, delete, set display time and other operations on the virtual gift information in the live broadcast editing interface, and trigger generation of a gift layout command after the operations are confirmed.
In one example, the live room editing interface includes a live view of the preview and a gift database that records virtual gift information for all virtual gifts received by the sender client. The virtual gift information presented herein is virtual gift information selected from a gift database.
In one example, the virtual gift information in the gift database is sorted according to a preset rule.
For example, the preset rules may include virtual gift prices, i.e., the virtual gift information in the gift database is sorted by virtual gift price. As one of the ways of expressing the importance of the gifts, the virtual gift information may be sorted in order of the virtual gift price from high to low. Because the user often attaches importance to the gifts with high prices, and the virtual gift information in the gift database is sorted according to the prices of the virtual gifts, the user can conveniently and quickly find the virtual gift information to be displayed according to the prices, and the searching efficiency is improved.
For another example, the preset rule may include the receiving time of the virtual gifts, that is, the virtual gift information in the gift database is sorted according to the receiving time of the virtual gifts. As one of the sorting manners, the virtual gift information may be sorted in the order of the virtual gift reception time from the near to the far from the current time. Because the presenter who receives the virtual gift with the time before the gift is often online, and the receiver often selects the virtual gift information with the time before to display in order to improve the interactivity between the audience and the anchor, the presenter can see the displayed virtual gift information, therefore, when the virtual gift information in the gift database is sorted according to the receiving time of the virtual gift, a user can conveniently and quickly find the virtual gift information to be displayed according to the receiving time of the gift, and the searching efficiency is improved.
As another example, the preset rule includes a virtual gift type, the virtual gift type includes a decorative virtual gift type and a non-decorative virtual gift type, and the decorative virtual gift type may be arranged in front of the non-decorative virtual gift type according to the virtual gift type. In the embodiment, the virtual gifts are classified and sorted according to the decoration type and the non-decoration type, so that the user can select the virtual gift information to be displayed from the decoration type virtual gifts, the user can conveniently and quickly find the virtual gift information to be displayed according to the gift type, and the finding efficiency is improved.
For another example, the preset rule includes a color category of the virtual gift, that is, the virtual gift information in the gift database may be classified and sorted according to the color category of the virtual gift. In one example, the color categories of the virtual gift may include a warm color family and a cool color family. The warm color system may include red purple, red orange, yellow orange, etc., and the cool color system may include blue, green, purple, etc. In another example, the color categories of the virtual gift may include red, orange, yellow, green, cyan, blue, violet.
It is understood that the color categories of the virtual gifts can be divided in other manners, and are not described in detail herein.
In one example, the virtual gift information in the gift database may be sorted and ordered directly by the color category of the virtual gift. For example, warm colors are classified into one category and arranged closer to the front, and cool colors are classified into one category and arranged closer to the rear.
In another example, the color system to which the live view belongs may be obtained first, and the color system matched with the color system to which the live view belongs may be arranged in front, and the color system not matched with the color system to which the live view belongs may be arranged in the back. In this case, the corresponding relationship between each color system and the matching color system, which is one or more color systems matching the color system to be matched, may be preset. After the color system to which the current live broadcast picture belongs is obtained, a matching color system corresponding to the color system to which the live broadcast picture belongs can be determined according to the corresponding relation.
Therefore, the virtual gift information in the gift database is classified and sequenced according to the color category of the virtual gift, so that the user can conveniently find the virtual gift information to be displayed according to the color system, and the searching efficiency is improved.
Upon receiving a gift layout command, layout information of the virtual gift information on a live view may be determined according to the gift layout command.
As shown in fig. 2B, fig. 2B is a schematic diagram illustrating a layout of virtual gift information according to an exemplary embodiment of the present application. In the schematic diagram, a user may click a gift layout button in a live broadcast room editing interface, the interface displays a gift database, and the user may select a sorting mode of virtual gift information from the gift database, for example, may click a button for sorting according to a virtual gift type, at this time, the gift database sorts according to a decorative virtual gift type and a non-decorative virtual gift type, arranges the decorative virtual gift in front, and arranges the non-virtual gift in back, so that the user can quickly select the virtual gift information to be displayed. The virtual gift information includes a virtual gift picture and a user nickname of a virtual gift-giver. In other examples, the virtual gift information may include only a virtual gift picture, and then a user nickname or the like of the virtual gift-giver is added by adding text.
In one example, the layout information at least includes the virtual gift information or an information identifier representing the virtual gift information, and the layout information further includes one or more of a size of the virtual gift information, position information of the virtual gift information on a live screen, and a presentation time of the virtual gift information. The presentation time of the virtual gift information is a time at which the virtual gift is presented.
The information identifier is an identifier uniquely identifying the virtual gift information, for example, when the virtual gift information is a virtual gift picture, the information identifier may be an ID of the virtual gift picture. In one example, the server stores the corresponding relationship between the virtual gift information and the information identifier, so that the server can determine the virtual gift information according to the information identifier and send the information identifier to the server, and the information transmission amount is reduced.
Therefore, after the gift layout command is triggered and generated, the layout information of the virtual gift information on the live broadcast picture can be determined according to the gift layout command, and therefore the relation between the virtual gift information and the live broadcast picture is determined.
The layout information may be attribute information of the live room. After the layout information is determined, the layout information can be sent to the server side, so that the server side informs the client side of the sender side in the live broadcast channel, and the virtual gift information is displayed on a live broadcast picture according to the layout information. And after receiving the notification, the client in the live channel can display the virtual gift information on a live picture according to the layout information.
When the layout information is sent to the server, information such as a live broadcast room identifier (for example, a live broadcast room ID) and a sender identifier (for example, a sender ID) may also be sent, so that the server can clarify the source of the current layout information and the live broadcast room to be decorated, which is not limited herein.
After receiving the layout information, the server can use the layout information as attribute information of the live broadcast room, then notify all clients of the same live broadcast room, and display the virtual gift information on a live broadcast picture according to the layout information. All the clients can comprise the anchor client and the audience client, so that the audience client and the anchor client display the live broadcast picture with the virtual gift information when refreshing the pages.
In one example, the method further includes presenting the virtual gift information on a live screen according to the layout information.
The execution condition of this step may be that after the layout information is determined, a notification command for receiving a server response is received. For example, as an execution end of the method, after determining the layout information, the virtual gift information may be directly displayed on a live screen according to the layout information. For another example, when a notification instruction responded by the server is received, the virtual gift information is displayed on a live screen according to the layout information.
As shown in fig. 2C, fig. 2C is a diagram illustrating an application scenario for presenting a virtual gift according to an exemplary embodiment of the present application. After layout is performed according to the diagram shown in fig. 2C, if a layout completion button is clicked, a gift layout command is triggered to be generated, the anchor client determines layout information of virtual gift information on a live broadcast picture according to the gift layout command, and sends the layout information to the server, so that the server informs all clients (including the anchor client and the audience client) in a live broadcast channel where the anchor client is located, and displays the virtual gift information on the live broadcast picture according to the layout information.
Corresponding to the embodiment of the virtual gift display method, the application also provides embodiments of a virtual gift display device and a client device.
The embodiment of the virtual gift display device can be applied to various client devices provided with live clients, for example, the client devices can comprise mobile phones, tablet computers, PCs and the like. The embodiments of the apparatus may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for running through the processor of the client device where the device is located. From a hardware aspect, as shown in fig. 3, a hardware structure diagram of a client device where the virtual gift presenting apparatus 331 of the present application is located is shown, except for the processor 310, the memory 330, the network interface 340, and the nonvolatile memory 320 shown in fig. 3, the client device where the apparatus is located in the embodiment may also include other hardware according to the actual function of the device, which is not shown in fig. 3 one by one.
Referring to fig. 4, a block diagram of one embodiment of a virtual gift display apparatus of the present application is shown:
the device includes: a command receiving module 410, an information determining module 420, and an information transmitting module 430.
The command receiving module 410 is configured to receive a gift layout command, where the gift layout command is an editing command for a user to lay out virtual gift information on a live view.
An information determining module 420, configured to determine layout information of the virtual gift information on a live view according to the gift layout command.
And an information sending module 430, configured to send the layout information to a server, so that the server notifies a client in a live channel where the sender client is located, and displays the virtual gift information on a live screen according to the layout information.
In an optional implementation manner, the virtual gift information comprises one or more of a virtual gift picture, a user identification of a virtual gift giver, and a thank you of a virtual gift receiver.
In an optional implementation manner, the layout information at least includes the virtual gift information or an information identifier used for representing the virtual gift information, and the layout information further includes one or more of size of the virtual gift information, position information of the virtual gift information on a live broadcast screen, and presentation time of the virtual gift information.
In an alternative implementation, the gift layout command is an edit command triggered by a user through a live-air editing interface.
In an alternative implementation, the virtual gift information is selected from a gift database recording virtual gift information of all virtual gifts received by the sender client.
In an alternative implementation, the virtual gift information in the gift database is sorted according to a preset rule.
In an alternative implementation, the preset rule includes a type of the virtual gift, a price of the virtual gift, a color category of the virtual gift, or a time of receipt of the virtual gift; the virtual gift types include decorative virtual gift types and non-decorative virtual gift types.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the appended claims.