CN111131850A - Method and device for displaying special effect of virtual gift and electronic equipment - Google Patents

Method and device for displaying special effect of virtual gift and electronic equipment Download PDF

Info

Publication number
CN111131850A
CN111131850A CN201911374810.2A CN201911374810A CN111131850A CN 111131850 A CN111131850 A CN 111131850A CN 201911374810 A CN201911374810 A CN 201911374810A CN 111131850 A CN111131850 A CN 111131850A
Authority
CN
China
Prior art keywords
virtual gift
target virtual
display position
display
gift
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911374810.2A
Other languages
Chinese (zh)
Inventor
许英俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201911374810.2A priority Critical patent/CN111131850A/en
Publication of CN111131850A publication Critical patent/CN111131850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for displaying a special effect of a virtual gift, electronic equipment and a storage medium. The method comprises the following steps: the method comprises the steps that a first client side obtains a target virtual gift, obtains a display position corresponding to the target virtual gift, generates a presentation notification message comprising the target virtual gift and the display position, and sends the presentation notification message to a second client side, so that the second client side can display the target virtual gift at the display position with a corresponding rendering special effect. The generated presentation notification message comprising the target virtual gift and the display position is sent to the second client under the condition that the display position corresponding to the target virtual gift is obtained, so that the second client can display the target virtual gift at the display position corresponding to the target virtual gift with the corresponding rendering special effect, without being limited to displaying the special effect of the target virtual gift at the fixed display position, the interestingness of the virtual gift in presentation is improved, and the interactive experience of the user in presentation is improved.

Description

Method and device for displaying special effect of virtual gift and electronic equipment
Technical Field
The present application relates to the field of live broadcast technologies, and in particular, to a method and an apparatus for displaying a special effect of a virtual gift, an electronic device, and a storage medium.
Background
With the development of network communication technology, more and more users choose to make friends and entertain through network platforms, which include a one-to-one chat making friend platform, an anchor chat room platform, a forum making friend platform, and the like, wherein the one-to-one chat making friend platform and the anchor chat room platform are more favored by users due to real-time video communication. In order to increase the interactivity between the main broadcast user and the audience user, the audience user can select a specific target virtual gift to be presented to the main broadcast, the target virtual gift is added to a specific position of a main broadcast picture according to a corresponding entertainment template, and a corresponding special effect is displayed. However, the existing gifted gifts all display the gifted gifts and the special effects of the gifts on the public screen, and the interactive experience of users for the gifts is lacked.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, an electronic device and a storage medium for displaying a special effect of a virtual gift, so as to improve the above problems.
In a first aspect, an embodiment of the present application provides a method for displaying a special effect of a virtual gift, which is applied to a first client, and the method includes: the first client side obtains a target virtual gift; acquiring a display position corresponding to the target virtual gift; generating a give notification message including the target virtual gift and the display location; sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
In a second aspect, an embodiment of the present application provides a method for displaying a special effect of a virtual gift, which is applied to a second client, and the method includes: the second client receives a presentation notification message; obtaining a target virtual gift and a display position of the target virtual gift from the presentation notification message; displaying the target virtual gift at the display position with a corresponding rendered special effect.
In a third aspect, an embodiment of the present application provides an apparatus for displaying a special effect of a virtual gift, where the apparatus runs on a first client, and includes: a first obtaining module, configured to obtain, by the first client, a target virtual gift; a second obtaining module, configured to obtain a display position corresponding to the target virtual gift; a message generation module for generating a presentation notification message including the target virtual gift and the display position; and the message sending module is used for sending the presentation notification message to a second client side so that the second client side can display the target virtual gift at the display position with a corresponding rendering special effect.
In a fourth aspect, an embodiment of the present application provides an apparatus for displaying a special effect of a virtual gift, where the apparatus runs on a second client, and includes: a message receiving module, configured to receive, by the second client, a presentation notification message; an obtaining module, configured to obtain a target virtual gift and a display position of the target virtual gift from the presentation notification message; and the display module is used for displaying the target virtual gift at the display position according to the corresponding rendering special effect.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory and one or more processors; one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods of the first or second aspects described above.
In a sixth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, wherein when the program code is executed by a processor, the method according to the first or second aspect is performed.
The embodiment of the application provides a method and a device for displaying a special effect of a virtual gift, electronic equipment and a storage medium. The method comprises the steps of obtaining a target virtual gift through a first client, then obtaining a display position corresponding to the target virtual gift, generating a presentation notification message comprising the target virtual gift and the display position, and then sending the presentation notification message to a second client for the second client to display the target virtual gift at the display position with a corresponding rendering special effect. Therefore, the generated presentation notification message comprising the target virtual gift and the display position is sent to the second client under the condition that the display position corresponding to the target virtual gift is obtained, the second client can display the target virtual gift at the display position corresponding to the target virtual gift in a corresponding rendering special effect mode, the special effect of the target virtual gift is not limited to be displayed at the fixed display position, the interestingness of the virtual gift in presentation is improved, meanwhile, the interactive experience of the user in presentation is improved, and the viewing retention rate and the viewing duration of the user in the live broadcast process are further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application environment provided by an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to an embodiment of the present application.
Fig. 3 is a diagram illustrating an example of a display interface of an electronic device in an embodiment of the present application.
Fig. 4 is a diagram showing another example of a display interface of an electronic device in the embodiment of the present application.
Fig. 5 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to another embodiment of the present application.
Fig. 6 is a diagram showing another example of a display interface of an electronic device in the embodiment of the present application.
Fig. 7 shows a flowchart of the method of step S220 in fig. 5.
Fig. 8 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 9 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to another embodiment of the present application.
Fig. 10 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to still another embodiment of the present application.
Fig. 11 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 12 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 13 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 14 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to still another embodiment of the present application.
Fig. 15 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 16 is a flowchart illustrating a method applied to a first client for displaying a special effect of a virtual gift according to still another embodiment of the present application.
Fig. 17 is a diagram showing still another example of a display interface of an electronic device in an embodiment of the present application.
Fig. 18 is a flowchart illustrating a method for displaying a special effect of a virtual gift applied to a second client according to still another embodiment of the present application.
Fig. 19 is a flowchart illustrating a method for displaying a virtual gift special effect, which is applied to a system for displaying a virtual gift special effect according to still another embodiment of the present application.
Fig. 20 is a block diagram illustrating a structure of an apparatus for displaying a special effect of a virtual gift, which is run on a first client according to an embodiment of the present application.
Fig. 21 is a block diagram illustrating a structure of an apparatus for displaying a special effect of a virtual gift, which is run on a second client according to an embodiment of the present application.
Fig. 22 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 23 illustrates a storage unit for storing or carrying program code implementing a method of displaying a virtual gift special effect according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the development of network communication technology, more and more users choose to make friends and entertain through network platforms, which include a one-to-one chat making friend platform, an anchor chat room platform, a forum making friend platform, and the like, wherein the one-to-one chat making friend platform and the anchor chat room platform are more favored by users due to real-time video communication. In order to increase the interactivity between the main broadcast user and the audience user, the audience user can select a specific target virtual gift to be presented to the main broadcast, the target virtual gift is added to a specific position of a main broadcast picture according to a corresponding entertainment template, and a corresponding special effect is displayed. However, the existing gifted gifts all display the gifted gifts and the special effects of the gifts on the public screen, and the interactive experience of users for the gifts is lacked.
In view of the above problems, the inventors have found through long-term research that a target virtual gift can be obtained by a first client, then a display position corresponding to the target virtual gift is obtained, a give-away notification message including the target virtual gift and the display position is generated, and then the give-away notification message is sent to a second client for the second client to display the target virtual gift at the display position with a corresponding rendering special effect. Therefore, the generated presentation notification message comprising the target virtual gift and the display position is sent to the second client under the condition that the display position corresponding to the target virtual gift is obtained, the second client can display the target virtual gift at the display position corresponding to the target virtual gift in a corresponding rendering special effect mode, the special effect of the target virtual gift is not limited to be displayed at the fixed display position, the interestingness of the virtual gift in presentation is improved, meanwhile, the interactive experience of the user in presentation is improved, and the viewing retention rate and the viewing duration of the user in the live broadcast process are further improved. Therefore, the method, the device, the electronic equipment and the storage medium for displaying the special effect of the virtual gift are provided by the embodiment of the application.
For the convenience of describing the scheme of the present application in detail, an application environment in the embodiment of the present application is described below with reference to the accompanying drawings.
Referring to fig. 1, an application environment of a method for displaying a special effect of a virtual gift according to an embodiment of the present application is schematically illustrated, as shown in fig. 1, the application environment may be understood as a network system 10 according to an embodiment of the present application, where the network system 10 includes: a server 11, a first client 12 and a second client 13.
The server 11 may be a server (network access server), a server cluster (cloud server) composed of a plurality of servers, or a cloud computing center (database server). The first client 12 and the second client 13 may be any device with communication and storage functions, including but not limited to a PC (Personal Computer), a PDA (tablet Computer), a smart television, a smart phone, a smart wearable device, or other smart communication devices with network connection functions.
It should be noted that the method in the embodiment of the present application is applied to a live webcast platform, and as a manner, the live webcast platform may operate in one server 11 as shown in fig. 1, or may operate in a server cluster formed by a plurality of servers 11 (only one is shown in the figure).
Optionally, both the first client 12 and the second client 13 may be clients of an instant messaging application or a social network application, where the clients may be application clients (such as a video playing application in a mobile phone APP) or web page clients (such as a live webcast platform), which is not limited herein. The server 11 may establish a communication connection with the first client 12 and the second client 13 through a network, which may be a wireless network or a wired network. The user may log in to the first client 12 or the second client 13 or the internet using a registered user account, the first client 12 and the second client 13 may have an information input interface in which the user inputs text information, and the text information may be displayed in a chat interface of the first client 12 or the second client 13.
It should be noted that, in this embodiment, the first client 12 and the second client 13 may be the same client, and in this way, after the user logs in the client, the special effect of giving a virtual gift to the network anchor may be displayed on the display interface of the client. Optionally, the first client 12 and the second client 13 in this embodiment may be different clients, in this way, the second client 13 may include a plurality of clients (only two clients are shown in fig. 1), and after the user logs in the first client 12, a special effect of giving a virtual gift to the network anchor may be displayed on the display interfaces of the first client 12 and the second client 13, respectively. Optionally, the special effect of the login user of the second client 13 on the network anchor gifted virtual gift may be displayed on the display interfaces of the first client 12 and the second client 13, respectively.
The method for displaying the special effect of the virtual gift provided in this embodiment is suitable for presenting the virtual gift and displaying the special effect of the virtual gift in a live broadcast process, and may be that the audience presents the virtual gift to the target anchor through the audience client, so as to display the special effect of the virtual gift at the anchor client and the plurality of audience clients where the target anchor is located, in this way, the audience client presenting the virtual gift may be the first client 12 shown in fig. 1, and the anchor client and the plurality of audience clients where the target anchor is located may be the second client 13 shown in fig. 1. Alternatively, the anchor presents the virtual gift to another anchor through the anchor client, so that the special effects of the virtual gift can be shown at the anchor client where the anchor presenting the virtual gift and the anchor receiving the virtual gift are located and the multiple audience clients. In this manner, the anchor client at which the anchor for gifting the virtual gift is located may be the first client 12 shown in fig. 1, the anchor client at which the anchor for receiving the virtual gift is located, and the plurality of viewer clients may be the second client 13 shown in fig. 1.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flowchart illustrating a method for displaying a special effect of a virtual gift according to an embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S110: the first client obtains a target virtual gift.
Optionally, the first client in this embodiment may be an audience terminal that presents the virtual gift to the anchor, or may be an anchor client at which an anchor that presents the virtual gift to another anchor is located, which is not limited herein. The target virtual gift is selected to be presented to the anchor, the target virtual gift has gift special effects, including dynamic special effects or three-dimensional special effects and the like, the specific form of the special effects of the virtual gift is not limited, the special effects of different virtual gifts can be different, and the special effects of different quantities of the same virtual gift can also be different.
In a specific application scenario, as shown in fig. 3, a display interface 101 of an electronic device 100 displays a live screen of a certain anchor ("XXX anchor") 102, and a gift box 103 is displayed in a lower right corner of the display interface 101. A variety of different virtual gifts are included in the gift certificate 103. Alternatively, if the gift certificate 103 is clicked, a plurality of different virtual gifts (only two of which are shown in fig. 4, including the virtual gift 1031 and the virtual gift 1032) within the gift certificate 103 as shown in fig. 4 may pop up. The virtual gift that needs to be given can be selected as the target virtual gift among the various different virtual gifts that pop up.
Step S120: and acquiring a display position corresponding to the target virtual gift.
The virtual gift in the gift box is sent out, and then the special effect of the virtual gift can be displayed at a fixed position (for example, the center of the display interface) of the display interface 101 of the electronic device 100. However, the gift sending mode lacks the user interaction experience in the gift sending process, so that the gift sending willingness of the user is greatly reduced, and meanwhile, the user retention time in the live broadcasting process is reduced.
As a way of improving the above problem, the present embodiment may send out the target virtual gift at the display position selected by the user, so that the sent out virtual gift may display the special effect of the virtual gift at the display position. In this manner, the position at which the target virtual gift is determined to be sent out may be acquired as the display position corresponding to the target virtual gift.
The display position may be a position outside the display position of the gift certificate 103 and inside the display position of the display interface 101. Optionally, in some possible embodiments, the display position may be any position within the display interface 101 (in this case, the display position may include the display position of the gift box 103), and the display position may instantaneously show the rendered special effect of the virtual gift without affecting the live view of the main broadcast. Optionally, the virtual gift at the display position is a successfully sent virtual gift.
For example, in a specific application scenario, as shown in fig. 4, assuming that the position where the target virtual gift is determined to be sent is 104, the position 104 may be taken as the display position corresponding to the target virtual gift.
Step S130: generating a comp notification message including the target virtual gift and the display location.
As one way, after the display position of the target virtual gift is acquired, it may be determined that the target virtual gift is given successfully. In this way, the first client may add a field corresponding to the coordinates represented by the display position in the preset virtual gift-offering protocol to obtain a new gift-offering protocol. For example, assuming that the coordinates represented by the display position are (x, y), two fields (i.e., an x field and a y field) may be added to the preset virtual gift sending protocol, where the x field may represent an x coordinate away from the left edge of the display interface 101 of the electronic device 100 (left edge of the front view of the live screen), the y field may represent a y coordinate away from the upper edge of the display interface 101 of the electronic device 100 (upper edge of the front view of the live screen), and optionally, the unit of the x field and the y field may be dp.
In one approach, the first client may send the obtained new gift sending protocol to the server to instruct the server to generate a gift notification message including the target virtual gift and the display location based on the new gift sending protocol.
Alternatively, the first client may update the preset virtual gift submission protocol with a new submission protocol, and generate a presentation notification message including the target virtual gift and the display position based on the new submission protocol.
Step S140: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
As one way, the first client may instruct the server to send the generated give notification message to the second client, so that the second client may display the target virtual gift at the above-mentioned display position of the display interface of the second client with the corresponding rendering special effect, so that the second client may see the give notification message given by the first client to the virtual gift of the anchor. The server may broadcast the comp notification message to all clients watching the current anchor live broadcast in a broadcast manner, and optionally, may include all the second clients and the first client.
As another way, the first client may directly send the comp notification message to the client, so that the second client may display the target virtual gift at the above-mentioned display position of the display interface of the second client with the corresponding rendering special effect.
By sending the presentation notification message to the second client, the client of the second client can see the special effect display of the virtual gift, even if more users see the interest of the virtual gift, and then the gift sending interest of the users is improved, so that the watching retention rate and the watching duration of the users in the live broadcasting process are improved.
In the method for displaying a special effect of a virtual gift provided in this embodiment, a first client obtains a target virtual gift, then obtains a display position corresponding to the target virtual gift, generates a presentation notification message including the target virtual gift and the display position, and then sends the presentation notification message to a second client, so that the second client displays the target virtual gift at the display position with a corresponding rendering special effect. Therefore, the generated presentation notification message comprising the target virtual gift and the display position is sent to the second client under the condition that the display position corresponding to the target virtual gift is obtained, the second client can display the target virtual gift at the display position corresponding to the target virtual gift in a corresponding rendering special effect mode, the special effect of the target virtual gift is not limited to be displayed at the fixed display position, the interestingness of the virtual gift in presentation is improved, meanwhile, the interactive experience of the user in presentation is improved, and the viewing retention rate and the viewing duration of the user in the live broadcast process are further improved.
Referring to fig. 5, a flowchart illustrating a method for displaying a special effect of a virtual gift according to another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S210: and if the virtual gift is detected to be selected, displaying a virtual icon corresponding to the virtual gift.
The virtual icon may be an icon having the same shape as the virtual gift, and in this way, the virtual icon may be an icon in which the shape picture or model of the virtual gift is reduced (or compressed, and the degree of reduction may not be limited); or the virtual icon may be an icon displayed with a designated transparency and having the same appearance as the virtual gift, and optionally, a specific value of the designated transparency may not be limited, for example, the designated transparency may be 50%.
As one way, selection buttons (button) may be configured for virtual icons corresponding to the respective virtual gifts in the gift bar, and each selection button may be triggered by a selected (e.g., selectable in various ways such as clicking, touching, or pressing) event (checkBox). Optionally, if it is detected that the virtual gift is selected, a virtual icon corresponding to the virtual gift may be displayed. For example, in a specific application scenario, as shown in fig. 6, if it is detected that the virtual gift 1031 in the virtual gift bar 103 is selected, a virtual icon corresponding to the virtual gift 1031 may be displayed, and the virtual gift 1031 is in a selected state at this moment.
Step S220: and acquiring display position coordinates corresponding to the virtual icons.
In this embodiment, the display position of the virtual icon may be acquired in various ways. Alternatively, the display position may be understood as a position at which the virtual gift is determined to be sent out.
As one way, as shown in fig. 7, step S220 may include:
step S221: responding to the drag operation acting on the virtual icon.
Optionally, the virtual icon corresponding to the selected virtual gift may be dragged in a dragging manner, and in this manner, the position where the virtual icon finally stays may be used as the display position of the virtual icon. Specifically, the virtual icon can flexibly follow the gesture (or finger) of the user to synchronously move in response to the dragging operation acting on the virtual icon.
Step S222: and acquiring the position coordinate of the sliding of the end of the dragging operation, and taking the position coordinate as the display position coordinate corresponding to the virtual icon.
Optionally, the position where the virtual icon is located when the user releases his hand may be used as the position where the drag operation ends sliding, so that the position where the drag operation ends sliding may be used as the display position of the virtual icon, and the coordinate corresponding to the position where the drag operation ends sliding may be used as the display position coordinate corresponding to the virtual icon.
It is understood that the display interface 101 of the electronic device 100 may be preconfigured with different densities of location coordinates, so that there is a corresponding location coordinate at any location where the user's gesture moves to the display interface 101 of the electronic device 100. As one implementation, a position coordinate at which the drag operation ends sliding may be acquired, and the position coordinate may be used as a display position coordinate corresponding to the virtual icon.
For example, in a specific application scenario, as shown in fig. 6, assuming that the selected virtual gift is the virtual gift 1031, and the position coordinate of the drag operation end slide corresponding to the virtual icon of the acquired virtual gift 1031 is the position coordinate corresponding to the display position 104, the position coordinate may be taken as the display position coordinate corresponding to the virtual icon of the virtual gift 1031.
Alternatively, a plurality of selectable display positions may be configured for each virtual gift in the gift bar 103, and after clicking a virtual icon of a virtual gift, a plurality of display positions for displaying the rendering special effect of the virtual gift may pop up at a preset position of the display interface of the electronic device 100 for the user to select. And each display position is bound with a coordinate corresponding to the display interface of the electronic equipment. For example, assuming that the display position is "the center of the screen", the corresponding display coordinate may be "(10, 10)", optionally, the numerical value of the position coordinate here is merely an example, and different settings may be performed according to the size and the scale of the display interface of the electronic device in specific implementation, which is not limited herein.
In this manner, as shown in fig. 8, assuming that the clicked virtual icon is a virtual icon of the virtual gift 1031, the pop-up selectable display positions include a display position a, a display position B, a display position C, a display position D, a display position E, and a display position F, and optionally, the display position a, the display position B, the display position C, the display position D, the display position E, and the display position F correspond to different position coordinates. As one way, the display position selected by the user may be taken as the display position of the virtual icon of the virtual gift 1031, and the coordinate corresponding to the display position may be taken as the display position coordinate corresponding to the virtual icon of the virtual gift 1031. For example, assuming that the selected display position is "display position C", the display position C may be taken as the display position of the virtual icon corresponding to the virtual gift 1031, and the coordinate corresponding to the display position C may be taken as the display position coordinate corresponding to the virtual icon of the virtual gift 1031.
Step S230: and judging whether the display position coordinate is in a preset area range.
The preset area range in this embodiment may be a position outside the position area range of the gift certificate 103 and inside the position area range of the display interface 101.
As one way, after the display position coordinates corresponding to the virtual icons of the virtual gifts are acquired, it may be determined whether the display position coordinates are within a preset area range so as to determine whether the current virtual gifts are presented successfully. Optionally, if the display position coordinate is within the preset area range, it may be determined that the virtual gift is presented successfully; and if the display position coordinate is not within the preset area range, the virtual gift presentation failure can be judged.
Optionally, the display position coordinate may be compared with a position coordinate within a preset region range, and if a position coordinate identical to the display position coordinate exists within the preset region range, or the display position coordinate is located within the position coordinate range of the preset region range, it may be determined that the display position coordinate is within the preset region range.
It should be noted that, in order to ensure the accuracy of the acquired display position coordinates, in the present embodiment, before acquiring the position coordinates where the drag operation ends sliding, in the process of the drag operation, it may be determined whether the drag operation meets a preset cancel condition. Optionally, if it is detected that the drag operation meets the preset cancel condition, the obtaining of the position where the drag operation ends sliding may be cancelled.
Wherein, the preset cancellation condition at least includes: dragging and sliding down the virtual icon when dragging the virtual icon to the edge of the preset area range; or a popup window causes dragging and sliding in the sliding process of dragging the virtual icon; or the dragging and sliding are caused by the telephone access in the sliding process of the dragging virtual icon; or the current user account is repeatedly logged in to cause dragging and slipping. It can be understood that if the virtual icon is dragged to the edge of the preset area range by mistake in the dragging operation process to cause dragging and sliding, the virtual gift presentation failure can be judged; if a message or a popup such as an alarm clock causes dragging and sliding in the sliding process of dragging the virtual icon, the virtual gift presentation failure can be judged; or if the dragging is caused by telephone intervention in the dragging process and the dragging slips, the virtual gift giving failure can be judged; optionally, if the current user account is repeatedly logged in by other devices during the operation of dragging the virtual icon, it may be determined that the current virtual gift presentation fails. Optionally, the preset cancellation condition may further include more or fewer combinations of conditions suggested by the above conditions, or a condition that the drag abnormally slides down during the drag operation is met, which is not illustrated herein, and is not taken as a limitation to the present solution.
Step S240: and taking the virtual gift as a target virtual gift, and taking the position represented by the display position coordinates as a display position corresponding to the target virtual gift.
In this way, the virtual gift may be used as the target virtual gift, and the position represented by the display position coordinate may be used as the display position corresponding to the target virtual gift, that is, the position represented by the display position coordinate may be used as the position where the target virtual gift is determined to be sent out.
For example, as shown in fig. 6, if the position coordinates corresponding to the display position 104 are within the preset area range, the selected virtual gift 1031 may be taken as the target virtual gift, and the display position 104 may be taken as the display position corresponding to the virtual gift 1031 (i.e., the target virtual gift).
Alternatively, if the display position coordinates are not within the preset area range, for example, the display position coordinates are within the gift certificate 103, it may be determined that the virtual gift presentation has failed, and the gift presentation may be ended. It should be noted that, in some possible embodiments, if the display position coordinates are not within the preset area range, the virtual gift may be presented according to a gift-presenting position pre-configured in the gift-presenting template, in this manner, the selected virtual gift may be used as the target virtual gift, and a pre-configured gift-effect display position (for example, may be the center of the display interface 101 of the electronic device) may be used as a display position corresponding to the target virtual gift.
Step S250: generating a comp notification message including the target virtual gift and the display location.
Step S260: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
In the method for displaying the special effect of the virtual gift provided by the embodiment, by judging whether the display position coordinate is in the preset area range, and under the condition that the display position coordinate is judged to be in the preset area range, the virtual gift is taken as the target virtual gift, and the position represented by the display position coordinate is taken as the display position corresponding to the target virtual gift, the presenting interest of the virtual gift is increased. By generating the presentation notification message, the target virtual gift can be flexibly displayed at different display positions with corresponding rendering special effects, the interestingness of virtual gift presentation is further improved, and meanwhile user interaction experience is improved.
Referring to fig. 9, a flowchart illustrating a method for displaying a special effect of a virtual gift according to another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S310: and if the virtual gift is detected to be selected, displaying a virtual icon corresponding to the virtual gift.
Step S320: and acquiring display position coordinates corresponding to the virtual icons.
Step S330: and judging whether the display position coordinate is in a preset area range.
Step S340: and taking the virtual gift as a target virtual gift, and taking the position represented by the display position coordinates as a display position corresponding to the target virtual gift.
Step S350: and acquiring a presenting user identifier and an anchor user identifier corresponding to the target virtual gift.
Optionally, after obtaining the target virtual gift, the first client may obtain a presenting user identifier and an anchor user identifier corresponding to the target virtual gift. The anchor user identifier may be an ID of an anchor user currently in live broadcasting, and the ID may be used to uniquely distinguish the anchor user, and anchor user identifiers of different anchor users are different. The gifting user identification is an account identification of a user account that is currently ready to gift the anchor virtual gift.
Step S360: and acquiring virtual gift identifications and the number corresponding to the target virtual gift.
Optionally, the virtual gift identifiers and the number corresponding to the target virtual gift may be obtained, so as to display the corresponding special effects according to the virtual gift identifiers and the number. In this embodiment, the rendering special effects of different virtual gifts are different, and the rendering special effects of different numbers of virtual gifts of the same type are different. For example, the rendered special effect of 5 virtual gifts a may be more noticeable than the rendered special effect of 1 virtual gift a. Optionally, the greater the number of virtual gifts, the more obvious the rendering effect of the virtual gifts may be.
Step S370: generating a presentation notification message including the display location coordinates, the presentation user identifier, the anchor user identifier, the virtual gift, and the quantity.
Optionally, a presentation notification message including the display position coordinates, the presentation user identifier, the anchor user identifier, the virtual gift, and the number may be generated so that the presenter and the receiver of the virtual gift can be accurately distinguished by displaying the content corresponding to the presentation notification message. For example, in a specific application scenario, it is assumed that a user a likes a certain anchor W and a user B is a friend of the user a, if the user a gives a virtual gift of the anchor W in the process of watching the live broadcast of the anchor W, and if the user B is also in the live broadcast room of the anchor W, the user B can know the interests of the friend user a, so that the gift-sending interests of the user B can be increased, and the remaining duration of the user is prolonged.
Step S380: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
According to the method for displaying the special effect of the virtual gift, the presenting notification message comprising the display position coordinate, the presenting user identifier, the anchor user identifier, the virtual gift and the number is generated, so that when the target virtual gift is displayed at the display position with the corresponding rendering special effect, the display effect is more obvious, and the watching retention rate and the watching duration of the user in the live broadcasting process are improved.
Referring to fig. 10, a flowchart illustrating a method for displaying a special effect of a virtual gift according to still another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S410: the first client obtains a target virtual gift.
Step S420: and acquiring a display position corresponding to the target virtual gift.
Step S430: displaying the target virtual gift at the display position with a corresponding rendered special effect.
In one approach, after obtaining the target virtual gift and the display location corresponding to the target virtual gift, the first client may display the target virtual gift at the display location with the corresponding rendering effect.
For example, in a specific application scenario, as shown in fig. 11, assuming that the target virtual gift is 1031 and the display position is 104, the target virtual gift 1031 may be displayed at the display position 104. The rendering special effect form of the target virtual gift may not be limited, and may be, for example, "explosive picture", "dynamic picture", "three-dimensional effect picture", and the like.
As a manner, if the first client converts the screen of the electronic device from the portrait mode to the landscape mode at the moment of sending out the target virtual gift, the target virtual gift may be displayed at the display position in the landscape mode with the corresponding rendering special effect. For example, when the electronic device is switched from the portrait mode shown in fig. 11 to the landscape mode shown in fig. 12, the display positions of the main broadcast screen 102, the gift certificate 103, and the virtual gift in the gift certificate 103 and the display position 104 can be adaptively switched. In fig. 11, it is assumed that the display position coordinates corresponding to the display position 104 are (a, b), where a may represent a distance from the display position 104 to a left edge of the screen display interface of the electronic device 100 in the vertical screen mode, and b may represent a distance from the display position 104 to an upper edge of the screen display interface of the electronic device 100 in the vertical screen mode. When the electronic device is converted from the portrait mode shown in fig. 11 to the landscape mode shown in fig. 12, a in the display position coordinates (a, b) corresponding to the display position 104 may represent a distance from the display position 104 to a lower edge of the screen display interface of the electronic device 100 in the landscape mode, and b may represent a distance from the display position 104 to a left edge of the screen display interface of the electronic device 100 in the landscape mode.
Optionally, after the user displays the target virtual gift at a certain display position with the corresponding rendering effect, the target virtual gift is successfully sent out in the present giving process, and in this way, the display position may be bound to the current user account, for example, the display position may be bound to the currently logged-in user account identifier. When the user presents the target virtual gift again (including presenting to the current anchor user or presenting to another anchor user), it may be detected whether a historical presentation record corresponding to the bound display location exists in the presentation records of the user account. Optionally, if a historical gift-offering record corresponding to the bound display position exists in the gift-offering record of the current user account, if the virtual gift to be presented currently selected by the user is the target virtual gift, the target virtual gift may be displayed at the display position with a corresponding rendering special effect directly according to the historical gift-offering record.
It is understood that if it is detected that the update instruction corresponding to the display position exists, the second display position corresponding to the target virtual gift may be acquired. The second display position can be any position within the range of the preset area. In this manner, the target virtual gift may be displayed at the second display location with the corresponding rendered special effect.
For example, in a specific application scenario, as shown in fig. 13, if the historical gifting record stores that the virtual gift 1031 is delivered at the display position 104 shown in fig. 11, and if it is detected that the new display position 105 is selected when the user gifts the virtual gift 1031 again, the target virtual gift may be displayed at the new display position (i.e., the second display position) 105 with the corresponding rendering effect. Wherein the second display position may be obtained by re-dragging the virtual icon corresponding to the virtual gift 1031 to the new display position 105; the second display position may also be reselected by means of a button selection.
Optionally, if the existence of the update instruction corresponding to the display position in the historical gifting record is not detected, in the process that the user carries out gifting in a dragging mode, the sliding stop position of the virtual icon can be detected in real time, and then the stop time at the stop position is obtained. Wherein the second dwell time period is greater than the first dwell time period. As a mode, if the staying position changes after the staying time reaches the first preset time, the changed staying position may be used as the updated to-be-processed display position. Optionally, if the updated to-be-processed display position reaches a second preset time length, the updated to-be-processed position may be used as the second display position of the target virtual gift.
For example, in a specific application scenario, assuming that a user drags a virtual icon corresponding to a virtual gift 1031 to a display position 104 shown in fig. 11 for 3 seconds by dragging the virtual gift, and drags the virtual icon to a display position 105 shown in fig. 13 for 5 seconds, where 3 seconds may be a first preset time duration and 5 seconds may be a second preset time duration, the display position 105 shown in fig. 13 may be taken as a second display position corresponding to a target virtual gift (i.e., the virtual gift 1031).
Step S440: generating a comp notification message including the target virtual gift and the display location.
Step S450: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
According to the method for displaying the virtual gift special effect, the target virtual gift is displayed at the display position through the corresponding rendering special effect of the first client, so that the user can more intuitively see the virtual special effect of the virtual gift, the gift sending interactive experience in the gift sending process of the user is improved, and the interestingness of virtual gift giving is further improved. Meanwhile, the target virtual gift can be flexibly displayed at different display positions in a corresponding rendering special effect mode, the special effect of the target virtual gift is not limited to be displayed at a fixed display position, and the interestingness of the virtual gift in presenting is further improved.
Referring to fig. 14, a flowchart illustrating a method for displaying a special effect of a virtual gift according to still another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S510: the first client obtains a target virtual gift.
Step S520: and acquiring a display position corresponding to the target virtual gift.
Step S530: a designated virtual gift associated with the display position is obtained.
In this embodiment, different display positions may be configured to associate different designated virtual gifts. For example, the designated virtual gifts associated with display position a, display position B, and display position C may be virtual gift 1, virtual gift 2, and virtual gift 3, respectively. Alternatively, in some embodiments, the same display location may be associated with a plurality of different designated virtual gifts. The display position in this embodiment may be used to display the associated specified virtual gift with the corresponding rendering effect.
As one way, the display location and the specified virtual gift may be mapped and stored in the first client in a form of a table, or stored locally, so that the specified virtual gift associated with the display location may be obtained through the table.
Step S540: determining whether the target virtual gift is the same as the designated virtual gift.
Alternatively, whether the target virtual gift is identical to the designated virtual gift may be determined by comparing the identification of the target virtual gift with the identification of the designated virtual gift. Optionally, if the identifier of the target virtual gift is the same as the identifier of the designated virtual gift, it may be determined that the target virtual gift and the designated virtual gift are the same virtual gift; if the identification of the target virtual gift is not the same as the identification of the designated virtual gift, then the target virtual gift and the designated virtual gift may be determined to be different virtual gifts.
Step S551: executing the displaying of the target virtual gift with a corresponding rendered special effect at the display position.
As one approach, if the target virtual gift is the same as the specified virtual gift, the target virtual gift may be displayed at the display position with the corresponding rendering effect.
Step S552: generating a comp notification message including the target virtual gift and the display location.
Step S553: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
Step S560: canceling the execution of the displaying of the target virtual gift with the corresponding rendered special effect at the display position.
Alternatively, if the target virtual gift is not the same as the specified virtual gift, the display of the target virtual gift at the display position with the corresponding rendering effect may be cancelled.
For example, in a specific application scenario, as shown in fig. 15, assuming that the target virtual gift is a virtual gift 1031, if the obtained specified virtual gift associated with the display position 104 is the virtual gift 1031, the target virtual gift may be displayed at the display position with a corresponding rendering effect. If the retrieved designated virtual gift associated with the display position 104 is the virtual gift 1032, the target virtual gift will not be displayed at the display position with the corresponding rendering effect. Alternatively, in this manner, if the display position 104 is selected for presenting the virtual gift 1032, a pop-up message indicating that the gift delivery failed may pop up.
In the method for displaying the special effect of the virtual gift provided by the embodiment, the display position is associated with the specified virtual gift, so that the user can display the virtual gift at the display position with the corresponding rendering special effect if the user selects the association between the virtual gift sent out at the display position and the specified virtual gift in the process of presenting the virtual gift, thereby increasing the user interaction experience in the process of presenting the virtual gift and simultaneously improving the interestingness in the process of presenting the virtual gift.
Referring to fig. 16, a flowchart illustrating a method for displaying a special effect of a virtual gift according to still another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a first client, and the method includes:
step S610: the first client obtains a target virtual gift.
Step S620: and acquiring a display position corresponding to the target virtual gift.
Step S630: a designated gifting location associated with the target virtual gift is obtained.
In this embodiment, the associated designated gifting positions may be configured in advance for different virtual gifts. Alternatively, the designated presentation locations with which different virtual gifts are associated may be different, for example, the designated presentation locations with which virtual gifts 1, 2, and 3 may be associated may be a presentation location a, a presentation location b, and a presentation location c, respectively. Alternatively, in some possible embodiments, the same virtual gift may include multiple associated designated comp locations. The designated comp location in this embodiment may be used to display the target virtual gift with the corresponding rendered special effect.
As one approach, the virtual gift may be mapped with the designated presentation location and stored in the first client in a form of a table, or stored locally, so that the designated presentation location associated with the target virtual gift can be obtained through the table.
Step S640: determining whether the presentation location is the same as the designated presentation location.
Optionally, when a virtual gift is dragged to a certain position to be sent out, it may be determined whether the presentation position is the same as the designated presentation position corresponding to the virtual gift, and optionally, if the presentation position is the same as the designated presentation position, the presentation of the virtual gift may be completed at the presentation position; if the presentation location is different from the designated presentation location, a pop-up prompt message indicating that the gift delivery failed may be displayed.
Or, when a display position is selected for a virtual gift, it may be determined whether the selected display position is the same as the designated presentation position associated with the virtual gift. Optionally, if the selected display location is the same as the designated presentation location associated with the virtual gift, presentation of the virtual gift may be completed at the selected presentation location; if the selected display location is not the same as the designated presentation location associated with the virtual gift, a pop-up message indicating a failed gift presentation may be displayed.
As one way, whether the presentation position is the same as the designated presentation position may be determined by determining whether the coordinates of the presentation position are the same as the coordinates of the designated presentation position. Optionally, if the coordinates of the presenting location are the same as the coordinates of the designated presenting location, it may be determined that the presenting location is the same as the designated presenting location; if the coordinates of the present location are not the same as the coordinates of the designated present location, then it can be determined that the present location is not the same as the designated present location.
Step S651: executing the displaying of the target virtual gift with a corresponding rendered special effect at the display position.
As one approach, if the gift location is the same as the designated gift location, the step of displaying the target virtual gift at a display location with a corresponding rendering effect may be performed.
Step S652: generating a comp notification message including the target virtual gift and the display location.
Step S653: sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
Step S660: canceling the execution of the displaying of the target virtual gift with the corresponding rendered special effect at the display position.
As one approach, if the gifting location is not the same as the designated gifting location, the step of displaying the target virtual gift at the display location with the corresponding rendered special effect may be eliminated.
For example, in a specific application scenario, as shown in fig. 17, assuming that the virtual gift 1032 is selected as the target virtual gift, in the process of sending out the virtual icon of the virtual gift 1032 by dragging, if the virtual icon of the virtual gift 1032 is dragged to the display position 104 shown in fig. 17, and if the display position 104 is a designated giving position associated with the virtual gift 1032, the virtual gift 1032 may be displayed at the display position 104 with a corresponding rendering effect. If the display position 104 is not the designated gift position associated with the virtual gift 1032, the virtual gift 1032 will not be displayed at the display position 104 with the corresponding rendering effect, for example, if the icon of the virtual gift 1031 is dragged to the display position 104 for sending, a popup prompt message indicating that the gift sending has failed will be displayed.
In the method for displaying the special effect of the virtual gift provided by the embodiment, the virtual gift is associated with the designated presenting position, so that when the user selects the position for presenting the virtual gift to be the same as the designated presenting position associated with the virtual gift in the process of presenting the virtual gift, the virtual gift can be successfully sent out, and the virtual gift can be displayed at the designated presenting position with the corresponding rendering special effect. The difficulty degree of giving the virtual gifts is increased, and the gift giving desire and the gift giving interest of the user are improved.
Referring to fig. 18, a flowchart illustrating a method for displaying a special effect of a virtual gift according to still another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a second client, and the method includes:
step S710: the second client receives a comp notification message.
In this embodiment, the second client may receive the gifting notification message sent by the server, so as to parse the virtual gift gifting information of the first client from the gifting notification message.
Step S720: and acquiring the target virtual gift and the display position of the target virtual gift from the presentation notification message.
As one way, the target virtual gift and the display position of the target virtual gift may be acquired from the presentation notification message. Alternatively, the target virtual gift may be obtained by identifying the virtual gift identification in the comp notification message. Wherein the display position is a position at which the target virtual gift is determined to be delivered.
Step S730: displaying the target virtual gift at the display position with a corresponding rendered special effect.
Optionally, the second client may display the target virtual gift at the display position with the corresponding rendering special effect, so that when the first client presents the virtual gift, the second client may see presentation information of the message gift in real time, where the presentation information may include information of the presenter, and the type and number of the presented virtual gift. Optionally, the second client may include a plurality of clients, in which case each second client may display the target virtual gift at the display location with a corresponding rendered special effect. In the foregoing embodiment, as for the display manner in which the second client displays the target virtual gift at the display position with the corresponding rendering special effect, reference may be made to the display manner in which the first client displays the target virtual gift at the display position with the corresponding rendering special effect, which is not described herein again.
In the method for displaying the special effect of the virtual gift provided by the embodiment, the second client receives the presentation notification message, then obtains the target virtual gift and the display position of the target virtual gift from the presentation notification message, and then displays the target virtual gift at the display position with the corresponding rendering special effect. Therefore, the second client can display the target virtual gift at the display position corresponding to the target virtual gift in the corresponding rendering special effect manner, the special effect of the target virtual gift is not limited to be displayed at the fixed display position, the interestingness of the virtual gift in presentation is improved, and the interactive experience of the user in presentation is improved.
Referring to fig. 19, a flowchart illustrating a method for displaying a special effect of a virtual gift according to still another embodiment of the present application is shown, where the embodiment provides a method for displaying a special effect of a virtual gift, which is applicable to a virtual gift special effect display system, where the virtual gift special effect display system includes a first client and a second client, and the method includes:
step S810: the first client obtains a target virtual gift.
Step S820: the first client obtains a display position corresponding to the target virtual gift.
Step S830: the first client generates a comp notification message including the target virtual gift and the display location.
Step S840: the first client sends the presentation notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendered special effect.
Step S850: the second client receives the comp notification message.
Step S860: the second client acquires the target virtual gift and the display position of the target virtual gift from the presentation notification message;
step S870: the second client displays the target virtual gift at the display location with a corresponding rendered special effect.
The method for displaying the special effect of the virtual gift provided by the embodiment has the advantages that the generated giving notification message comprising the target virtual gift and the display position is sent to the second client side under the condition that the display position corresponding to the target virtual gift is obtained, so that the second client side can display the target virtual gift at the display position corresponding to the target virtual gift by the corresponding rendering special effect, the method is not limited to displaying the special effect of the target virtual gift at the fixed display position, the interestingness of giving the virtual gift is improved, meanwhile, the interactive experience of gift sending of a user is improved, and further the watching retention rate and the watching duration of the user in the live broadcasting process are improved.
Referring to fig. 20, a block diagram of a device for displaying a special effect of a virtual gift according to an embodiment of the present application is shown, in which the device 900 for displaying a special effect of a virtual gift is provided, and the device 900 runs on a first client, and includes: the first obtaining module 910, the second obtaining module 920, the message generating module 930, and the message sending module 940:
a first obtaining module 910, configured to obtain the target virtual gift by the first client.
A second obtaining module 920, configured to obtain a display position corresponding to the target virtual gift.
As one mode, if it is detected that the virtual gift is selected, the first client may display a virtual icon corresponding to the virtual gift, and then may acquire a display position coordinate corresponding to the virtual icon. Optionally, if the display position coordinate is within the preset area range, the virtual gift may be used as a target virtual gift, and a position represented by the display position coordinate is used as a display position corresponding to the target virtual gift.
In one implementation manner, the virtual icon can respond to a dragging operation acting on the virtual icon;
and acquiring the position coordinate of the sliding of the end of the dragging operation, and taking the position coordinate as the display position coordinate corresponding to the virtual icon.
It should be noted that, before the coordinate of the position where the drag operation ends sliding is obtained, in the process of the drag operation, if the drag operation meets a preset cancel condition, the obtaining of the position where the drag operation ends sliding may be cancelled. Wherein, the preset cancellation condition at least includes: dragging and sliding the virtual icon to the edge of the preset area range; or a popup window causes dragging and sliding in the sliding process of dragging the virtual icon; or the virtual icon slides when being dragged, and the dragging and the sliding are caused by the telephone access; or the current user account is repeatedly logged in to cause dragging and slipping.
By one approach, the apparatus 900 may further include a display module for displaying the target virtual gift at the display location with a corresponding rendered special effect.
In one embodiment, a designated virtual gift associated with the display location may be obtained prior to the display location displaying the target virtual gift with the corresponding rendered special effect; if the target virtual gift is the same as the designated virtual gift, executing the rendering effect corresponding to the display position to display the target virtual gift; and if the target virtual gift is different from the specified virtual gift, canceling the execution of the target virtual gift displayed at the display position by the corresponding rendering effect.
In another embodiment, a designated comp location associated with the target virtual gift may be obtained before the display location displays the target virtual gift with the corresponding rendered special effect; if the presenting position is the same as the designated presenting position, executing the rendering effect corresponding to the displaying position to display the target virtual gift; and if the presenting position is different from the appointed presenting position, canceling the execution of the target virtual gift displayed by the corresponding rendering special effect at the display position.
As an implementation, the present embodiment may bind the display location with the current user account; if a historical gift sending record corresponding to the bound display position exists in the gift sending records of the current user account, displaying the target virtual gift at the display position by using a corresponding rendering special effect, and including: and if the current virtual gift to be presented is the target virtual gift, executing the corresponding rendering special effect to display the target virtual gift at the display position. In this manner, if an update instruction corresponding to the display position is detected, a second display position corresponding to the target virtual gift may be acquired. The target virtual gift may be displayed at the second display position with a corresponding rendered special effect.
A message generating module 930 for generating a comp notification message including the target virtual gift and the display location.
As one way, the apparatus 900 may further include an identifier obtaining module and a gift information obtaining module, where the identifier obtaining module is configured to enable the first client to obtain a presenting user identifier and an anchor user identifier corresponding to the target virtual gift; the gift information acquisition module is used for acquiring virtual gift identification and quantity corresponding to the target virtual gift. In this manner, the message generating module 930 may be specifically configured to generate a comp notification message including the display position coordinates, the comp user identifier, the anchor user identifier, the virtual gift identifier, and the number.
A message sending module 940, configured to send the comp notification message to a second client, so that the second client displays the target virtual gift at the display position with a corresponding rendering special effect.
Referring to fig. 21, a block diagram of a device for displaying a special effect of a virtual gift according to an embodiment of the present application is shown, in which the device 1000 for displaying a special effect of a virtual gift is provided in the present embodiment, and runs on a second client, and the device 1000 includes a message receiving module 1010, an obtaining module 1020, and a display module 1030:
a message receiving module 1010, configured to receive the comp notification message by the second client.
An obtaining module 1020, configured to obtain a target virtual gift and a display position of the target virtual gift from the gifting notification message.
A display module 1030 configured to display the target virtual gift at the display position with the corresponding rendered special effect.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 22, based on the method and the apparatus for displaying a special effect of a virtual gift, an embodiment of the application further provides an electronic device 100 capable of executing the method for displaying a special effect of a virtual gift. The electronic device 100 includes a memory 102 and one or more processors 104 (only one shown) coupled to each other, the memory 102 and the processors 104 being communicatively coupled to each other. The memory 102 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 104 can execute the program stored in the memory 102.
The processor 104 may include one or more processing cores, among other things. The processor 104 interfaces with various components throughout the electronic device 100 using various interfaces and circuitry to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 102 and invoking data stored in the memory 102. Alternatively, the processor 104 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 104 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 104, but may be implemented by a communication chip.
The Memory 102 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 102 may be used to store instructions, programs, code sets, or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the foregoing embodiments, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 23, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 1100 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (16)

1. A method for displaying a special effect of a virtual gift, applied to a first client, the method comprising:
the first client side obtains a target virtual gift;
acquiring a display position corresponding to the target virtual gift;
generating a give notification message including the target virtual gift and the display location;
sending the comp notification message to a second client for the second client to display the target virtual gift at the display location with a corresponding rendering effect.
2. The method of claim 1, wherein the first client obtaining a target virtual gift, obtaining a display location corresponding to the target virtual gift, comprises:
if the virtual gift is detected to be selected, displaying a virtual icon corresponding to the virtual gift;
acquiring display position coordinates corresponding to the virtual icons;
and if the display position coordinate is within the range of a preset area, taking the virtual gift as a target virtual gift, and taking the position represented by the display position coordinate as a display position corresponding to the target virtual gift.
3. The method of claim 2, wherein the obtaining display location coordinates corresponding to the virtual icon comprises:
responding to a drag operation acting on the virtual icon;
and acquiring the position coordinate of the sliding of the end of the dragging operation, and taking the position coordinate as the display position coordinate corresponding to the virtual icon.
4. The method of claim 3, further comprising:
the first client side obtains a presenting user identification and an anchor user identification corresponding to the target virtual gift;
acquiring virtual gift identifications and the number corresponding to the target virtual gift;
the generating a comp notification message including the target virtual gift and the display location includes:
generating a presentation notification message including the display location coordinates, the presentation user identifier, the anchor user identifier, the virtual gift identifier, and the quantity.
5. The method according to claim 3, wherein before the obtaining of the position coordinates at which the drag operation ends sliding, the method further comprises:
and in the process of the dragging operation, if the dragging operation meets a preset cancelling condition, cancelling the acquisition of the sliding position of the dragging operation.
6. The method according to claim 5, wherein the preset cancellation condition comprises at least:
dragging and sliding the virtual icon to the edge of the preset area range;
or a popup window causes dragging and sliding in the sliding process of dragging the virtual icon;
or the virtual icon slides when being dragged, and the dragging and the sliding are caused by the telephone access;
or the current user account is repeatedly logged in to cause dragging and slipping.
7. The method of claim 1, further comprising:
displaying the target virtual gift at the display position with a corresponding rendered special effect.
8. The method of claim 7, wherein prior to displaying the target virtual gift at the display position with the corresponding rendered special effect, the method further comprises:
obtaining a designated virtual gift associated with the display location;
if the target virtual gift is the same as the designated virtual gift, executing the rendering effect corresponding to the display position to display the target virtual gift;
and if the target virtual gift is different from the specified virtual gift, canceling the execution of the target virtual gift displayed at the display position by the corresponding rendering effect.
9. The method of claim 7, wherein prior to displaying the target virtual gift at the display position with the corresponding rendered special effect, the method further comprises:
obtaining a designated presentation location associated with the target virtual gift;
if the presenting position is the same as the designated presenting position, executing the rendering effect corresponding to the displaying position to display the target virtual gift;
and if the presenting position is different from the appointed presenting position, canceling the execution of the target virtual gift displayed by the corresponding rendering special effect at the display position.
10. The method according to any one of claims 7-9, further comprising:
binding the display location with a current user account;
if a historical gift sending record corresponding to the bound display position exists in the gift sending records of the current user account, displaying the target virtual gift at the display position by using a corresponding rendering special effect, and including:
and if the current virtual gift to be presented is the target virtual gift, executing the corresponding rendering special effect to display the target virtual gift at the display position.
11. The method of claim 10, wherein the obtaining a display location corresponding to the target virtual gift comprises:
if an updating instruction corresponding to the display position is detected, acquiring a second display position corresponding to the target virtual gift;
the displaying the target virtual gift with a corresponding rendered special effect at the display location, comprising:
displaying the target virtual gift at the second display position with the corresponding rendered special effect.
12. A method for displaying a special effect of a virtual gift, applied to a second client, the method comprising:
the second client receives a presentation notification message;
obtaining a target virtual gift and a display position of the target virtual gift from the presentation notification message;
displaying the target virtual gift at the display position with a corresponding rendered special effect.
13. An apparatus for displaying a special effect of a virtual gift, the apparatus, operating at a first client, comprising:
a first obtaining module, configured to obtain, by the first client, a target virtual gift;
a second obtaining module, configured to obtain a display position corresponding to the target virtual gift;
a message generation module for generating a presentation notification message including the target virtual gift and the display position;
and the message sending module is used for sending the presentation notification message to a second client side so that the second client side can display the target virtual gift at the display position with a corresponding rendering special effect.
14. An apparatus for displaying a special effect of a virtual gift, the apparatus, operating at a second client, comprising:
a message receiving module, configured to receive, by the second client, a presentation notification message;
an obtaining module, configured to obtain a target virtual gift and a display position of the target virtual gift from the presentation notification message;
and the display module is used for displaying the target virtual gift at the display position according to the corresponding rendering special effect.
15. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-11 or 12.
16. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-11 or 12.
CN201911374810.2A 2019-12-27 2019-12-27 Method and device for displaying special effect of virtual gift and electronic equipment Pending CN111131850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911374810.2A CN111131850A (en) 2019-12-27 2019-12-27 Method and device for displaying special effect of virtual gift and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911374810.2A CN111131850A (en) 2019-12-27 2019-12-27 Method and device for displaying special effect of virtual gift and electronic equipment

Publications (1)

Publication Number Publication Date
CN111131850A true CN111131850A (en) 2020-05-08

Family

ID=70503862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911374810.2A Pending CN111131850A (en) 2019-12-27 2019-12-27 Method and device for displaying special effect of virtual gift and electronic equipment

Country Status (1)

Country Link
CN (1) CN111131850A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506241A (en) * 2020-05-21 2020-08-07 网易(杭州)网络有限公司 Special effect display method and device for live broadcast room, electronic equipment and computer medium
CN113038228A (en) * 2021-02-25 2021-06-25 广州方硅信息技术有限公司 Virtual gift transmission and request method, device, equipment and medium thereof
CN113163220A (en) * 2021-02-26 2021-07-23 广州方硅信息技术有限公司 Virtual gift positioning display method and device, equipment and medium thereof
CN113515212A (en) * 2021-07-28 2021-10-19 北京字节跳动网络技术有限公司 Interaction method, interaction device, computer equipment and computer-readable storage medium
CN114615556A (en) * 2022-03-18 2022-06-10 广州博冠信息科技有限公司 Virtual live broadcast enhanced interaction method and device, electronic equipment and storage medium
CN114760519A (en) * 2022-04-20 2022-07-15 广州方硅信息技术有限公司 Interaction method, device and equipment based on gift special effect of live broadcast room and storage medium
CN115706821A (en) * 2021-08-17 2023-02-17 上海哔哩哔哩科技有限公司 Virtual gift display method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888965A (en) * 2017-11-29 2018-04-06 广州酷狗计算机科技有限公司 Image present methods of exhibiting and device, terminal, system, storage medium
CN108391153A (en) * 2018-01-29 2018-08-10 北京潘达互娱科技有限公司 Virtual present display methods, device and electronic equipment
JP6491388B1 (en) * 2018-08-28 2019-03-27 グリー株式会社 Video distribution system, video distribution method, and video distribution program for live distribution of a video including animation of a character object generated based on the movement of a distribution user
US10271013B2 (en) * 2015-09-08 2019-04-23 Tencent Technology (Shenzhen) Company Limited Display control method and apparatus
CN109756787A (en) * 2018-12-29 2019-05-14 广州华多网络科技有限公司 The conferring system of the generation method of virtual present, device and virtual present
CN110381352A (en) * 2019-07-19 2019-10-25 北京字节跳动网络技术有限公司 Display methods, device, electronic equipment and the readable medium of virtual present

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10271013B2 (en) * 2015-09-08 2019-04-23 Tencent Technology (Shenzhen) Company Limited Display control method and apparatus
CN107888965A (en) * 2017-11-29 2018-04-06 广州酷狗计算机科技有限公司 Image present methods of exhibiting and device, terminal, system, storage medium
CN108391153A (en) * 2018-01-29 2018-08-10 北京潘达互娱科技有限公司 Virtual present display methods, device and electronic equipment
JP6491388B1 (en) * 2018-08-28 2019-03-27 グリー株式会社 Video distribution system, video distribution method, and video distribution program for live distribution of a video including animation of a character object generated based on the movement of a distribution user
CN109756787A (en) * 2018-12-29 2019-05-14 广州华多网络科技有限公司 The conferring system of the generation method of virtual present, device and virtual present
CN110381352A (en) * 2019-07-19 2019-10-25 北京字节跳动网络技术有限公司 Display methods, device, electronic equipment and the readable medium of virtual present

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506241A (en) * 2020-05-21 2020-08-07 网易(杭州)网络有限公司 Special effect display method and device for live broadcast room, electronic equipment and computer medium
CN113038228A (en) * 2021-02-25 2021-06-25 广州方硅信息技术有限公司 Virtual gift transmission and request method, device, equipment and medium thereof
CN113038228B (en) * 2021-02-25 2023-05-30 广州方硅信息技术有限公司 Virtual gift transmission and request method, device, equipment and medium thereof
CN113163220A (en) * 2021-02-26 2021-07-23 广州方硅信息技术有限公司 Virtual gift positioning display method and device, equipment and medium thereof
CN113163220B (en) * 2021-02-26 2023-02-28 广州方硅信息技术有限公司 Virtual gift positioning display method and device, equipment and medium thereof
CN113515212A (en) * 2021-07-28 2021-10-19 北京字节跳动网络技术有限公司 Interaction method, interaction device, computer equipment and computer-readable storage medium
CN115706821A (en) * 2021-08-17 2023-02-17 上海哔哩哔哩科技有限公司 Virtual gift display method and device
WO2023020093A1 (en) * 2021-08-17 2023-02-23 上海哔哩哔哩科技有限公司 Virtual gift display method and apparatus
CN115706821B (en) * 2021-08-17 2024-04-30 上海哔哩哔哩科技有限公司 Virtual gift display method and device
CN114615556A (en) * 2022-03-18 2022-06-10 广州博冠信息科技有限公司 Virtual live broadcast enhanced interaction method and device, electronic equipment and storage medium
CN114615556B (en) * 2022-03-18 2024-05-10 广州博冠信息科技有限公司 Virtual live broadcast enhanced interaction method and device, electronic equipment and storage medium
CN114760519A (en) * 2022-04-20 2022-07-15 广州方硅信息技术有限公司 Interaction method, device and equipment based on gift special effect of live broadcast room and storage medium

Similar Documents

Publication Publication Date Title
CN106846040B (en) Virtual gift display method and system in live broadcast room
CN111131850A (en) Method and device for displaying special effect of virtual gift and electronic equipment
US20220377426A1 (en) Live streaming room red packet processing method and apparatus, and medium and electronic device
CN109756787B (en) Virtual gift generation method and device and virtual gift presentation system
US11412307B2 (en) Interaction information processing method, client, service platform, and storage medium
CN110769302B (en) Live broadcast interaction method, device, system, terminal equipment and storage medium
US20170230317A1 (en) Method of providing instant messaging service and multiple services expanded from instant messaging service
WO2018010682A1 (en) Live broadcast method, live broadcast data stream display method and terminal
WO2022188595A1 (en) Method and apparatus for displaying application picture, and terminal, screen projection system and medium
US9049341B2 (en) Method and apparatus for video resource management in video conference
CN113225572B (en) Page element display method, device and system of live broadcasting room
US10496354B2 (en) Terminal device, screen sharing method, and screen sharing system
US11890540B2 (en) User interface processing method and device
EP2697711A2 (en) Push notifications for updating multiple dynamic icon panels
CN111541930A (en) Live broadcast picture display method and device, terminal and storage medium
WO2019127349A1 (en) Method for sharing multimedia information, related apparatus, and system
CN113727130B (en) Message prompting method, system and device for live broadcasting room and computer equipment
CN113840154B (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN114915828B (en) Method for giving gift and displaying gift in living broadcast room and related equipment
CN110913237A (en) Live broadcast control method and device, live broadcast initiating device and storage medium
CN114466209A (en) Live broadcast interaction method and device, electronic equipment, storage medium and program product
CN113242308B (en) Information pushing method, device, equipment and storage medium
CN112055252A (en) Multi-screen interaction method and device, computer readable medium and electronic equipment
US20230362115A1 (en) Image display method and apparatus, storage medium, and electronic device
CN114760519B (en) Interaction method, device, equipment and storage medium based on gift special effect in live broadcasting room

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210114

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511400 24th floor, building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No.79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508