CN111212314A - 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
CN111212314A
CN111212314A CN202010053927.7A CN202010053927A CN111212314A CN 111212314 A CN111212314 A CN 111212314A CN 202010053927 A CN202010053927 A CN 202010053927A CN 111212314 A CN111212314 A CN 111212314A
Authority
CN
China
Prior art keywords
target
suspension component
virtual
target suspension
triggered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010053927.7A
Other languages
Chinese (zh)
Other versions
CN111212314B (en
Inventor
杨舜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010053927.7A priority Critical patent/CN111212314B/en
Publication of CN111212314A publication Critical patent/CN111212314A/en
Application granted granted Critical
Publication of CN111212314B publication Critical patent/CN111212314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4532Management of client data or end-user data involving end-user characteristics, e.g. viewer profile, preferences
    • 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/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Networks & Wireless Communication (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 client displays the target suspension component, then obtains the virtual parameter displayed by the target suspension component, if the virtual parameter meets a target threshold value, the target suspension component is configured to be in a state to be triggered, and if touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component is triggered and displayed. The value of the virtual gift presented to the anchor can be visually seen through the virtual parameters displayed by the target suspension component under the condition that the target suspension component is displayed; if the virtual parameters displayed by the target suspension component meet the target threshold value, the target suspension component is configured to be in a state to be triggered so as to trigger and display a special effect corresponding to the target suspension component, the interest and the interactivity of gift delivery can be increased, the enthusiasm of users for gift delivery in the live broadcast process is improved, and further the retention rate of the users 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 one-to-one chat and friend-making platforms, anchor chat room platforms, forum and friend-making platforms, etc. Among them, the one-to-one chat friend-making platform and the anchor chat room platform are more favored by users because of 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 virtual gift to be presented to the main broadcast, the 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 gift sending mode for some special festivals or activities is single, the flexibility is poor, and the enthusiasm of users for gift sending is reduced.
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 client, and the method includes: the client displays a target suspension component; acquiring virtual parameters displayed by the target suspension component, wherein the virtual parameters represent the value of virtual gifts given to the anchor; if the virtual parameter meets a target threshold value, configuring the target suspension component to be in a state to be triggered; and if the touch operation acting on the target suspension component in the state to be triggered is detected, triggering and displaying a special effect corresponding to the target suspension component.
In a second aspect, an embodiment of the present application provides an apparatus for displaying a special effect of a virtual gift, running on a client, the apparatus including: the first display module is used for displaying the target suspension component by the client; the acquisition module is used for acquiring the virtual parameters displayed by the target suspension component, and the virtual parameters represent the value of the virtual gift presented to the anchor; the configuration module is used for configuring the target suspension component to be in a state to be triggered if the virtual parameter meets a target threshold value; and the second display module is used for triggering and displaying a special effect corresponding to the target suspension component if the touch operation acting on the target suspension component in the state to be triggered is detected.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and one or more processors; one or more programs are 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 the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having program code stored therein, where the program code, when executed by a processor, performs the method of the first aspect.
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 displaying a target suspension component through a client, then obtaining virtual parameters displayed by the target suspension component, configuring the target suspension component to be in a state to be triggered if the virtual parameters meet a target threshold, and triggering and displaying a special effect corresponding to the target suspension component if touch operation acting on the target suspension component in the state to be triggered is detected. Therefore, under the condition that the target suspension component is displayed, the value of the virtual gift given to the anchor can be visually seen through the virtual parameters displayed by the target suspension component; if the virtual parameter displayed by the target suspension component meets the target threshold value, the target suspension component is configured to be in a state to be triggered, so that when the touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component can be triggered and displayed, the interest and the interactivity of the gift delivery can be increased, the enthusiasm of the user for the gift delivery in the live broadcast process is improved, and further the retention rate of the user is 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 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 of a target suspension component provided by an embodiment of the present application.
Fig. 4 is a diagram illustrating another example of a display of a target levitation part provided by an embodiment of the present application.
Fig. 5 is a diagram illustrating another example of a target suspension component provided in an embodiment of the present application.
Fig. 6 is a flowchart illustrating a method for displaying a special effect of a virtual gift applied to a client according to another embodiment of the present application.
Fig. 7 is a flowchart illustrating a method for displaying a special effect of a virtual gift applied to a client according to another embodiment of the present application.
Fig. 8 is a diagram illustrating still another example of a target suspension component provided in an embodiment of the present application.
Fig. 9 is a flowchart illustrating a method for displaying a special effect of a virtual gift applied to a client according to still another embodiment of the present application.
Fig. 10 is a flowchart illustrating a method for displaying a special effect of a virtual gift applied to a client according to still another embodiment of the present application.
Fig. 11 is a block diagram illustrating a structure of an apparatus for displaying a special effect of a virtual gift, which is run on a client according to an embodiment of the present application.
Fig. 12 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 13 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 virtual gift to be presented to the main broadcast, the 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 gift sending mode for some special festivals or activities is single, the flexibility is poor, the cost is increased, and meanwhile the enthusiasm of the user for gift sending is reduced.
In order to solve the above problems, the inventor finds, through long-term research, that a target levitation component can be displayed through a client, then a virtual parameter displayed by the target levitation component is obtained, if the virtual parameter meets a target threshold, the target levitation component is configured to be in a to-be-triggered state, and if a touch operation acting on the target levitation component in the to-be-triggered state is detected, a special effect corresponding to the target levitation component is triggered and displayed. Therefore, under the condition that the target suspension component is displayed, the value of the virtual gift given to the anchor can be visually seen through the virtual parameters displayed by the target suspension component; if the virtual parameter displayed by the target suspension component meets the target threshold value, the target suspension component is configured to be in a state to be triggered, so that when the touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component can be triggered and displayed, the interest and the interactivity of the gift delivery can be increased, the enthusiasm of the user for the gift delivery in the live broadcast process is improved, and further the retention rate of the user is improved.
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: server 11, client 12, and anchor user 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 client 12 and the anchor user client 13 may be any device with communication and storage functions, including but not limited to a PC (Personal Computer), a PDA (tablet), 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, the client 12 and the anchor user client 13 may be both 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), and are not limited herein. The server 11 may establish communication connections with the client 12 and the anchor user client 13 through a network, which may be a wireless network or a wired network. A user may log into the client 12 or the anchor user client 13 or the internet using a registered user account, the client 12 and the anchor user client 13 may have an information input interface in which the user enters textual information, and the textual information may be displayed in a chat interface of the client 12 or the anchor user client 13.
It should be noted that, in the embodiment of the present application, the user logged in by the client 12 may give a virtual gift to the anchor user logged in by the anchor user client 13, or the anchor user logged in by the anchor client 13 may give a virtual gift to other anchor users.
The method for displaying the special effect of the virtual gift provided by the embodiment is suitable for presenting the virtual gift and displaying the special effect of the virtual gift in a live broadcast process, and can be used for enabling audiences to present the virtual gift to a target anchor through audience client terminals independently so as to trigger and display the special effect corresponding to a target floating component when the presented virtual gift meets the trigger condition of the target floating component. Optionally, a plurality of viewers collectively present the virtual gift to the target anchor through the viewer client, so that when the presented virtual gift meets the trigger condition of the target floating component, the viewer client where the viewer with the highest presented virtual gift value is located triggers to display the special effect corresponding to the target floating component.
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 client, and the method includes:
step S110: the client displays the target levitation part.
In the embodiment of the application, the suspension component is a UI combined element located at the uppermost layer of the live broadcast interface in the live broadcast room, and the UI combined element may include a picture, a progress bar, an animation element in an SVGA format, and the like. The target floating feature may be a floating feature associated with the subject matter of a particular festival, activity, or event. The festival may be a national legal festival, such as an end-noon festival, an intermediate-autumn festival, etc., a popular festival, such as an valentine's day, a christmas day, etc., or a special festival in a professional field, such as a programmer's day, etc. The event can be any size and form of event, such as a year celebration, a start event, a release meeting, etc., and the content and form of a specific festival or event may not be limited. Optionally, the appearance style of the target suspension component corresponding to different themes may be different. For example, the target levitation part corresponding to valentine's day may be a "small rocket," the target levitation part corresponding to mid-autumn day may be a "rabbit," the target levitation part corresponding to a world cup game may be a "soccer," etc.
As one mode, the client may configure a timer event corresponding to the certain festival or activity, and when a time corresponding to the festival or activity is reached, the timer event may be triggered, and when the timer event corresponding to the certain festival or activity is triggered, the floating component adapted to the current festival or activity may be triggered to be automatically displayed, and optionally, the floating component may be used as the target floating component.
For example, in a specific application scenario, as shown in fig. 3, a display interface 101 of the electronic device 100 displays a certain "XXX broadcaster 102" as a main scene, and assuming that the current holiday is an valentine's day, the client may display a pattern "small rocket" representing a target levitation part 103, and the levitation part may be configured with a progress bar for displaying real-time data of a virtual gift sent by the user to the "XXX broadcaster" so as to enable the user to intuitively experience fun of delivering the gift and increase the interest of delivering the audience user.
Step S120: and acquiring the virtual parameters displayed by the target suspension component.
Wherein the virtual parameters may characterize the value of the virtual gift given to the anchor. Optionally, as the "XXX anchor" live broadcast process proceeds, data displayed by a progress bar configured on the floating component may be used as the virtual parameter. For example, as shown in fig. 4, the display interface 101 of the electronic device 100 displays a certain "XXX anchor screen 102", and the virtual parameter displayed by the progress bar configured on the target hovering part 103 is 80%, so that the value of the virtual gift currently presented to the "XXX anchor" is 80%. It should be noted that fig. 3 and 4 in this embodiment are only examples, and in actual implementation, the representation form of the virtual parameter of the levitation component may be another form, for example, a representation form such as a progress bar with a numerical value, besides a percentage.
Step S130: and if the virtual parameter meets a target threshold value, configuring the target suspension component to be in a state to be triggered.
Optionally, in this embodiment, when the value of the virtual gift given to the anchor reaches a certain value, the target levitation component may be configured to be in a state to be triggered. The target threshold is the value of the virtual gift corresponding to the set target suspension component to reach the state to be triggered. It should be noted that, in the live broadcasting process, the target state may be in a to-be-triggered state for multiple rounds, and when each round is in the to-be-triggered state, the corresponding target thresholds may be different. For example, in a time period in which the live broadcast starts to be played for the first time, the target threshold for bringing the target levitation part into the state to be triggered for the first time may be 100, the target threshold for bringing the target levitation part into the state to be triggered for the second time may be 300, the target threshold for bringing the target levitation part into the state to be triggered for the third time may be 500, and the like.
For example, in a specific application scenario, as shown in fig. 5, a display interface 101 of the electronic device 100 displays a certain "XXX anchor 102" anchor picture, and a virtual parameter displayed by a progress bar configured on the target suspension component 103 is 100%, which indicates that the virtual parameter meets a target threshold.
Step S140: and if the touch operation acting on the target suspension component in the state to be triggered is detected, triggering and displaying a special effect corresponding to the target suspension component.
In this embodiment, the touch operation may be a click operation, a drag operation, a slide operation, a move operation, or the like. The special effect may be a virtual icon of the content corresponding to the target levitation part, or a dynamic pattern (image or picture) with a reward, or the like. For example, if the target suspension component is a "small rocket with love patterns," the special effect corresponding to the target suspension component may be "rose"; if the target suspension component is a 'rabbit', the special effect corresponding to the target suspension component can be 'moon cake'; if the target suspension component is a football, the special effect corresponding to the target suspension component can be a red packet pattern (in this way, a corresponding amount of reward can be obtained by clicking the red packet pattern).
As one mode, when the target suspension component is in a to-be-triggered state, if a touch operation acting on the target suspension component in the to-be-triggered state is detected, a special effect corresponding to the target suspension component may be triggered and displayed. For example, if the client is configured in the electronic device, the special effect corresponding to the target suspension component may be displayed above or on the top of the screen of the electronic device.
In a specific application scenario, a target levitation part is assumed to be a "small rocket", and if the target levitation part is a target levitation part corresponding to a "valentine's day". When the virtual parameters meet the target threshold value, the target suspension component 'small rocket' can be configured to be in a state to be triggered, in this way, a user can drag the icon of the 'small rocket' to move at any position of the display interface of the client, if the 'small rocket' is dragged to the bottom of the display interface, the target suspension component 'small rocket' can be launched, after the 'small rocket' is launched, an explosive special effect can be formed, then the special effect associated with the content of the suspension component is released, for example, after the 'small rocket' is launched, roses can be released, so that the user can visually feel the presentation experience in the live broadcast process, and further the watching retention rate of the user in the live broadcast process is improved.
It should be noted that, in this embodiment, after the special effect corresponding to the target levitation component is displayed by the trigger of the turn, the virtual parameter may be initialized, and in an implementation manner, the accumulated value of the virtual gift given to the main broadcast may be cleared, and if the special effect corresponding to the target levitation component is displayed by the trigger of the next turn, the value of the virtual gift needs to be accumulated again, that is, the virtual parameter needs to be calculated again. In another mode, after the round of trigger display of the special effect corresponding to the target levitation part, the value of the virtual gift corresponding to the current virtual parameter may be used as a starting point of value accumulation of a next round of virtual gift, and when the value of the virtual gift accumulated and given in the next round reaches a value required by the second round of trigger display of the special effect corresponding to the target levitation part, the special effect corresponding to the target levitation part may be triggered and displayed.
In the method for displaying the special effect of the virtual gift provided by the embodiment, the target suspension component is displayed through the client, then the virtual parameter displayed by the target suspension component is obtained, if the virtual parameter meets the target threshold, the target suspension component is configured to be in a state to be triggered, and if the touch operation acting on the target suspension component in the state to be triggered is detected, the special effect corresponding to the target suspension component is triggered and displayed. Therefore, under the condition that the target suspension component is displayed, the value of the virtual gift given to the anchor can be visually seen through the virtual parameters displayed by the target suspension component; if the virtual parameter displayed by the target suspension component meets the target threshold value, the target suspension component is configured to be in a state to be triggered, so that when the touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component can be triggered and displayed, the interest and the interactivity of the gift delivery can be increased, the enthusiasm of the user for the gift delivery in the live broadcast process is improved, and further the retention rate of the user is improved.
Referring to fig. 6, 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 client, and the method includes:
step S210: the client acquires a display mode corresponding to the current anchor.
Optionally, with the development of the live broadcast technology, the number of anchor broadcasts of the live broadcast platform is greatly increased, different anchor styles are different, and the audience rates of different anchor broadcasts are different. As one way, in the present embodiment, different display modes can be configured for different types of anchor. The display mode is for displaying an accumulation of value of the virtual gift gifted to the anchor. The display modes in this embodiment include a first display mode and a second display mode, in the first display mode, each viewer may separately accumulate the value of the virtual gift presented to the anchor by himself, and may view the value of the virtual gift presented to the anchor by himself, the data of the target levitation part seen by each viewer is independent, and the data of the target levitation part seen by each viewer may be different, so that each viewer presenting a gift to the anchor may participate in a presentation experience that triggers displaying a special effect corresponding to the target levitation part. In the second display mode, a plurality of audiences can combine and accumulate the value of the virtual gifts which are given to the same anchor by themselves, and in this way, the data of the target floating part which is seen by the plurality of audiences is the same, so that the audiences giving the maximum virtual gift value can experience and trigger the display of the special effect corresponding to the target floating part.
As an implementation mode, the first display mode can be configured for the anchor users with high audience rates, and the second display mode can be configured for the anchor users with low audience rates, so that the users with high audience rates can give more virtual gifts, and the initiative of gift delivery of the users is improved. For example, assuming that the anchor user has a user number according to the level (here, the level of the audience rate can be understood as the level of the audience rate, and the audience rate of the user with the higher level is larger), the user number corresponding to the higher level is larger.
As another mode, the client may configure a selection button corresponding to the display mode, and when the user enters a certain live broadcast room, the user may select the first display mode or the second display mode according to the preference degree of the current anchor. In this manner, the display mode selected by the user can be taken as the display mode corresponding to the current anchor.
Step S221: and if the display mode is the first display mode, acquiring user state information.
The user status information may include user login status information, user account level, and the like. It will be appreciated that in the first display mode, the audience rate and popularity of the anchor user within the live broadcast room may be high, in which way the identity of the user entering the live broadcast room may be simply verified in order to improve the security of the live broadcast environment.
As one mode, if the display mode is the first display mode, the user status information may be acquired, so that whether to display the target floating component for the user entering the live broadcast room may be determined according to the user status information.
Step S222: and judging whether the user state information meets specified conditions.
Optionally, the specified condition may be that the user is in a login state, or that the account level of the user reaches a specified level. As an embodiment, whether the user status information meets the specified condition may be determined in a manner of determining whether the user logs in or determining whether the account level of the user reaches a specified level.
Optionally, if the user is in a login state or the account level of the user is greater than or equal to a specified level, it may be determined that the user state information meets a specified condition; and if the user is in the non-login state or the account level of the user is less than the specified level, the user state information can be judged not to meet the specified condition.
For example, in a specific application scenario, assuming that the account level of the user is "A, B, C, D, E" and a > B > C > D > E, the level is designated as level C, and if the account level of the user is level B, it may be determined that the user status information satisfies the target condition; and if the account level of the user is level D, the user state information can be judged not to meet the target condition.
Step S223: and displaying the target suspension component.
Alternatively, if it is determined that the user state information satisfies the specified condition, the target levitation part may be displayed.
Step S224: the target levitating member is not shown.
Optionally, if it is determined that the user state information does not satisfy the specified condition, the floating component may not be displayed, so as to improve the security of the live broadcast environment; meanwhile, the gift sending interest of the audience user can be stimulated by increasing the difficulty of the gift sending.
Step S231: and if the display mode is the second display mode, directly displaying the target suspension component.
As one mode, if the display mode is the second display mode, the target levitation member can be directly displayed. In this manner, a user entering any live broadcast room may present a virtual gift to the live anchor user.
Step S240: and acquiring the virtual parameters displayed by the target suspension component.
Step S250: and judging whether the virtual parameters meet a target threshold value.
Optionally, whether the virtual parameter meets the target threshold may be determined by comparing the value of the virtual parameter with the target threshold.
Step S260: and configuring the target suspension component to be in a state to be triggered.
Optionally, if the virtual parameter meets the target threshold, the target levitation component may be configured to be in a to-be-triggered state. If the virtual parameter does not satisfy the target threshold, the content of step S240 is executed, that is, the virtual parameter continues to be acquired until the virtual parameter satisfies the target threshold.
The target threshold in this embodiment includes a first target threshold and a second target threshold. It is understood that the target threshold value to be satisfied by the virtual parameter is different in different display modes. As one mode, in the first display mode, if the client receives a first instruction sent by the server, the target floating component may be configured to be in a state to be triggered. Wherein the first instruction may characterize that the virtual parameter meets a first target threshold. As another mode, in the second display mode, if the client receives a second instruction sent by the server, the target suspension component may be configured to be in a state to be triggered. Wherein the second instruction may characterize the current client as the most valuable client for presenting the virtual gift to the anchor, and the virtual parameter satisfies the second target threshold.
For example, in a specific application scenario, assuming that the display mode is the first display mode, the value corresponding to the virtual gift displayed on the target levitation part is the accumulated value of the virtual gift presented by the current user, and the server may calculate the current virtual parameter in real time according to the number of times the user launches the target levitation part and the value of the virtual gift presented to the anchor, and optionally, may display the energy value corresponding to the virtual parameter in a percentage manner on the progress bar. For example, the energy required to fire the target levitation part may be calculated according to the formula y 200 × n +100, where n denotes the number of times the target levitation part is fired and y denotes the energy required to fire the target levitation part.
The total energy corresponding to the value currently presented to the live virtual gift can be calculated using the formula z 1-10 x, where x represents the value of the total gift x virtual coin delivered to the anchor, and z1 represents the total energy corresponding to the value currently presented to the live virtual gift. The required energy for launching the target suspension component in the previous round is z2 ═ 200 × n-1) +100, n represents the number of times the target suspension component is launched, and z2 represents the required energy for launching the target suspension component in the previous round, wherein if z2 is less than 0, then z2 may be made equal to 0. Alternatively, the energy value added when the wheel is relative to the previous wheel may be calculated by the formula z1-z2, and z represents the energy value added when the wheel is relative to the previous wheel, then the percentage of the current progress bar may be calculated according to the formula p z/y 100%.
That is, the required energy for transmitting the target hover component for different rounds is different for the same progress bar percentage, and in the above example, assuming that the user has just entered the live broadcast room at the present time, if the target hover component is to be transmitted, the energy corresponding to the virtual gift given to the anchor user may be 100, and after the round of transmission, the energy corresponding to the virtual gift given to the anchor user for the next round of transmission of the target hover component may be 300. In this way, when the server detects that the virtual parameter meets the first target threshold, the server may send a first instruction to the client, so that the user may launch the target levitation component, and further display a special effect corresponding to the target levitation component on the client, thereby increasing the gift offering interest of the user. It should be noted that the above formula is described as an example, and each calculation formula may be different in actual implementation.
Similarly, in another specific application scenario, assuming that the display mode is the second display mode, the value corresponding to the virtual gift displayed on the target levitation part is the accumulated value of the virtual gifts given by the multiple users, and the server may calculate the current virtual parameter in real time according to the number of times the user launches the target levitation part and the value of the virtual gift given to the anchor, and optionally, may display the energy value corresponding to the virtual parameter in a percentage manner on the progress bar. In this manner, since the number of persons presenting the virtual gifts to the anchor user is large at the same time, the value of the virtual gifts increases rapidly, and the energy required to launch the target levitation part can be calculated by using the formula y ═ 3+1) × 100, where n represents the number of times the target levitation part is launched and y represents the energy required to launch the target levitation part.
Similarly, the total energy corresponding to the value currently presented to the live virtual gift can be calculated using the formula z1 ═ 10 × x, where x represents the value of the total gift x virtual coin delivered to the anchor and z1 represents the total energy corresponding to the value currently presented to the live virtual gift. The required energy of the last round of launching the target levitation component is z2 ═ ((n-1) ^3+1) × 100, n represents the number of times the target levitation component was launched, and z2 represents the required energy of the last round of launching the target levitation component. Alternatively, the energy value added when the wheel is relative to the previous wheel may be calculated by the formula z1-z2, and z represents the energy value added when the wheel is relative to the previous wheel, then the percentage of the current progress bar may be calculated according to the formula p z/y 100%. That is, the required energy for transmitting the target hover component for different rounds is different for the same progress bar percentage, and in the above example, assuming that the user has just entered the live broadcast room at the present time, if the target hover component is to be transmitted, the energy corresponding to the virtual gift given to the anchor user may be 100, while after the round of transmission, the energy corresponding to the virtual gift given to the anchor user for the next round of transmission of the target hover component may be 200. In this way, when the server detects that the current client is the client with the maximum value of the virtual gift given to the anchor and the virtual parameter meets the second target threshold, the server may send a second instruction to the client, so that the user may launch the target suspension component, and then display a special effect corresponding to the target suspension component on the client, thereby increasing the gift-giving interest of the user.
As one mode, after the target levitation component is configured to be in the state to be triggered, if the display mode is the first display mode, a trigger notification message of the target levitation component may be displayed on a display interface of the client to indicate that the target levitation component is triggered. For example, a notification message such as "you may happy, energy is full, drag me to the bottom and can launch" may be displayed to prompt the user to launch the target levitation part, thereby increasing the interest of the present delivery. In this way, the reference distance between the position of the target suspension component and the designated edge of the display interface of the client can be obtained; alternatively, the designated edge may be a lower edge of the display interface or a bottom of an edge of a screen of the electronic device.
In one implementation, a trigger hover component associated with the target hover component may be displayed if the reference distance is within a first preset area. The first preset area range may be a range interval one-third higher than the bottom of the display interface of the electronic device, the specific numerical value may be set according to actual needs, and the trigger levitation component associated with the target levitation component may be a copy special effect UI element for transmitting the target levitation component. For example, assuming that the target levitation component is a "small rocket," then the trigger levitation component can be a "launch tower," which can appear at the bottom of the display screen of the electronic device when the reference distance of the "small rocket" from the bottom of the display screen is one-third of the high range interval, and optionally, the "launch tower" can be accompanied by an animation effect in the SVGA format.
In another implementation, if the reference distance is within a second preset area range, the moving direction of the touch operation performed on the target suspension component may be acquired, where the second preset area range is greater than the first preset area range. Optionally, the second preset range in this embodiment may be a range interval that is two-thirds high from the top of the display interface of the electronic device. Optionally, if the moving direction is the first direction, the step of displaying the triggered floating component associated with the target floating component may be performed; if the moving direction is a second direction, the step of displaying the triggered floating component associated with the target floating component may be cancelled, wherein the second direction is opposite to the first direction. The first direction can be understood as a direction close to the position where the suspension part is triggered, and the second direction can be understood as a direction where the suspension part is triggered in principle.
For example, in a specific application scenario, assuming that the emission position of the target suspension component is set at the bottom of the display screen of the electronic device, and the target suspension component is currently located in an area two-thirds away from the top of the display screen of the electronic device, the moving direction of the user touching the target suspension component may be obtained. Optionally, if the target suspension component moves to the bottom of the display screen, a trigger suspension component associated with the target suspension component may be displayed; and if the target suspension component moves towards the top of the display screen, canceling to display the trigger suspension component associated with the target suspension component.
As another mode, if the display mode is the second display mode, if the client is the client where the user with the highest value of the virtual gift given to the anchor is located, displaying a trigger notification message of the target floating component to indicate that the target floating component is triggered; otherwise, displaying the abnormal notification message of the target suspension component.
For example, in a specific application scenario, if the current client is the client where the user with the highest value is present for giving a virtual gift to the anchor, a notification message such as "congratulating you, you are the energy MVP of this time, and dragging me to the bottom can be transmitted" may be displayed; and if the current client is not the client where the user with the highest value of the virtual gift given to the main broadcast is located, notification messages such as ' sorry very much, you are not the energy MVP, I are frozen, unfreezing can be carried out after the energy MVP is transmitted ', and the like can be displayed to arouse the user's desire to give a gift, so that the watching and reserving rate of the user viewing the screen in the live broadcast is improved.
Step S270: and detecting whether touch operation acting on the target suspension component in the state to be triggered exists or not.
Optionally, whether a touch operation acting on the target suspension component in the state to be triggered exists may be determined by detecting whether the position of the target suspension component changes. If the position changes, the touch operation acting on the target suspension component in the state to be triggered can be judged; otherwise, judging that the touch operation acting on the target suspension component in the state to be triggered does not exist.
Step S280: and triggering and displaying a special effect corresponding to the target suspension component.
It can be understood that if there is a touch operation acting on the target suspension member in the to-be-triggered state, a special effect corresponding to the target suspension member may be triggered to be displayed. If the touch operation acting on the target suspension component in the state to be triggered does not exist, whether the touch operation acting on the target suspension component in the state to be triggered exists or not is continuously detected, so that the detection accuracy is improved.
According to the method for displaying the special effect of the virtual gift, whether the display conditions are met under different display modes is judged, and the target suspension component is displayed only when the target suspension component is judged to meet the display conditions, so that the difficulty of presenting the virtual gift is improved, the gift-sending interest of a user is stimulated, and the earning is further improved. Under the condition that the target suspension component is displayed, if the virtual parameter displayed by the target suspension component meets a target threshold value, the target suspension component is configured to be in a state to be triggered, so that when the touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component can be triggered and displayed, the interest and interactivity of gift delivery are increased, the enthusiasm of a user for gift delivery in the live broadcast process is improved, and further the retention rate of the user is improved.
Referring to fig. 7, 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 client, and the method includes:
step S310: the client displays the target levitation part.
Step S320: and acquiring the virtual parameters displayed by the target suspension component.
Step S330: and if the virtual parameter meets a target threshold value, configuring the target suspension component to be in a state to be triggered.
Step S340: and if the touch operation acting on the target suspension component in the state to be triggered is detected, acquiring the coordinate of the end point position of the moved target suspension component.
Alternatively, the emission starting point of the target suspension component may be the bottom of a display screen of the electronic device, and the end position coordinate may be the coordinate of the last position where the target suspension component stays before the special effect is generated after the target suspension component is emitted. The endpoint may be any location on the top of the display. Optionally, the moving route of the target suspension component after being launched may be a first order bezier straight line or a second order bezier curve, and in this way, the coordinates of the end point position of the target suspension component after moving may be obtained by obtaining the end point of the first order bezier straight line or the second order bezier curve.
Step S350: and displaying a special effect corresponding to the target suspension component in a specified area away from the end position coordinate.
Wherein the designated area may be a rectangular area at the top of a display screen of the electronic device. For example, in a specific application scenario, as shown in fig. 8, a live view of a main broadcast 102 is displayed in a display interface 101 of an electronic device 100, and after a target levitation component 103 (a "small rocket" in fig. 8) is launched, a special effect corresponding to the target levitation component may be displayed on the top of the display interface 101, and optionally, the special effect here is a starry sky. The special effects corresponding to different target suspension components can be different, and the corresponding special effects of the same target suspension component after each emission can also be different.
According to the method for displaying the special effect of the virtual gift, provided by the embodiment, the special effect corresponding to the target suspension component is displayed in the specific area, so that the fun of presenting the gift is increased. Under the condition that the target suspension component is displayed, the value of the virtual gift given to the main broadcast can be visually seen through the virtual parameters displayed by the target suspension component; if the virtual parameter displayed by the target suspension component meets the target threshold value, the target suspension component is configured to be in a state to be triggered, so that when the touch operation acting on the target suspension component in the state to be triggered is detected, a special effect corresponding to the target suspension component can be triggered and displayed, the interest and the interactivity of the gift delivery can be increased, the enthusiasm of the user for the gift delivery in the live broadcast process is improved, and further the retention rate of the user is improved.
Referring to fig. 9, 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 client, and the method includes:
step S410: the client displays the target levitation part.
Step S420: and acquiring the virtual parameters displayed by the target suspension component.
Step S430: and if the virtual parameter meets a target threshold value, configuring the target suspension component to be in a state to be triggered.
Step S440: and if the touch operation acting on the target suspension component in the state to be triggered is detected, acquiring the coordinate of the end point position of the moved target suspension component.
Step S450: and displaying a special effect corresponding to the target suspension component in a specified area away from the end position coordinate.
Step S460: and acquiring a click operation acting on the image corresponding to the special effect.
In this embodiment, different target suspension components have different corresponding special effects, and the target suspension components in different display modes have different corresponding special effects. For example, in a first display mode, the special effect of the target levitation component is visible to a gift-giving user and not visible to other users; and in a second display mode, the special effect of the target suspension component is simultaneously visible to a plurality of users participating in the gift offering. Optionally, in the first display mode, the special effect may be exhibited in a manner of falling from the top of the display screen, and in the second display mode, the special effect may be exhibited in a manner of being exhibited from the center of the display screen, that is, the display objects and the display forms of the special effects corresponding to the first display mode and the second display mode may be different.
Optionally, the specific effect of the target levitation component can also be rewarding in nature. For example, a certain amount of red packet can be configured for the icon corresponding to the special effect, so that the user can obtain corresponding rewards by clicking the icon released by the special effect, and further the enthusiasm of the user for gift delivery can be stimulated. In this way, the reward amount for the special effect may be different for different display modes. As one way, a click operation acting on an image (which may also be an icon, for example, a rose icon or the like) corresponding to a special effect may be acquired in order to acquire a corresponding reward.
Step S470: and sending the appointed reward corresponding to the image to the account of the client.
Alternatively, in the manner described above, a specified reward corresponding to an image may be sent to the client's account. Alternatively, if the first display mode is used, the gifts of different users are calculated separately, and the reward corresponding to the special effect released after launching the target levitation part may be configured to be a fixed amount, for example, to be 0.5 yuan. If the display mode is the second display mode, rewards corresponding to special effects released after the target launching suspension component are configured into random amount, and the number of the rewards can be set according to the number of the gift giving people, so that the user can obtain the corresponding rewards in a 'red envelope grabbing' mode, the interestingness of virtual gift giving is improved, and the watching and remaining duration of the user is improved.
According to the method for displaying the special effect of the virtual gift, after the special effect corresponding to the target suspension component is displayed, the corresponding reward obtained by clicking of the user is sent to the user, so that the interactive experience of giving the virtual gift to the user is increased, the interest of the user in giving the gift can be stimulated, the enthusiasm of the user in giving the gift in the live broadcast process is improved, and the retention rate of the user is further 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 client, and the method includes:
step S510: the client displays the target levitation part.
Step S520: and acquiring the virtual parameters displayed by the target suspension component.
Step S530: and acquiring the display times of the special effect corresponding to the target suspension component.
In this embodiment, the display times are used to represent the firing times of the current firing target levitation part. Optionally, the client may count the display times of the special effect currently corresponding to the target levitation component, so that the energy (i.e., the value of the virtual gift) required for launching the target levitation component in turn may be accurately determined according to the display times.
Step S540: and if the virtual parameters meet the target threshold corresponding to the display times, configuring the target suspension component to be in a state to be triggered.
As one way, if the virtual parameter satisfies a target threshold corresponding to the current display number, the target levitation part may be configured to be in a to-be-triggered state. Optionally, in the process of delivering gifts for different rounds, the target thresholds corresponding to the display times are different, that is, the target thresholds corresponding to different display times are different. The specific implementation principle can refer to the description in the foregoing embodiments, and is not described herein again.
Step S550: and if the touch operation acting on the target suspension component in the state to be triggered is detected, triggering and displaying a special effect corresponding to the target suspension component.
The method for displaying the virtual gift special effect provided by the embodiment realizes that the difficulty of delivering the gift is increased by configuring different target thresholds corresponding to different display times, so that the enthusiasm of the user for delivering the gift in the live broadcast process is improved, and the retention rate of the user is improved.
Referring to fig. 11, which is a block diagram illustrating a structure of an apparatus for displaying a special effect of a virtual gift according to an embodiment of the present application, in which the apparatus 600 for displaying a special effect of a virtual gift is provided, and the apparatus 600 runs on a client, and includes: the first display module 610, the obtaining module 620, the configuring module 630, and the second display module 640:
a first display module 610, configured to display, by the client, a target levitation part.
As one way, the client may obtain a display mode corresponding to the current anchor. Optionally, if the display mode is the first display mode, user status information may be acquired, and if the user status information satisfies a specified condition, the target levitation part may be displayed. Optionally, if the display mode is the second display mode, the target suspension component may be directly displayed.
An obtaining module 620, configured to obtain a virtual parameter displayed by the target levitation part, where the virtual parameter represents a value of a virtual gift given to a main broadcast.
A configuration module 630, configured to configure the target suspension component to be in a to-be-triggered state if the virtual parameter meets a target threshold.
Optionally, the target threshold includes a first target threshold and a second target threshold.
As a mode, in the first display mode, if a first instruction sent by a server is received, configuring the target suspension component to be in a state to be triggered, where the first instruction represents that the virtual parameter meets the first target threshold;
as another mode, in the second display mode, if a second instruction sent by the server is received, the target levitation component is configured to be in a state to be triggered, where the second instruction represents that the client is the client with the highest value of the virtual gift given to the anchor, and the virtual parameter meets the second target threshold.
Optionally, the apparatus 600 may further include a notification message display module, where the notification message display module is configured to, after configuring that the target levitation component is in a state to be triggered, if the display mode is a first display mode, display a trigger notification message of the target levitation component to indicate that the target levitation component is triggered; if the display mode is a second display mode, if the client is the client where the user with the highest value of the virtual gift presented to the anchor is located, displaying a trigger notification message of the target floating component to indicate that the target floating component is triggered; otherwise, displaying the abnormal notification message of the target suspension component.
Optionally, the apparatus 600 may further include a first determining unit, where the first determining unit is configured to obtain a reference distance between the position of the target suspension component and a specified edge of the display interface of the client, determine whether the reference distance is within a preset area range, and if the reference distance is within the first preset area range, display a trigger suspension component associated with the target suspension component; optionally, if the reference distance is within a second preset area range, the moving direction of the touch operation acting on the target suspension component is obtained, where the second preset area range is larger than the first preset area range. Optionally, if the moving direction is a first direction, the display of the trigger suspension component associated with the target suspension component is performed; and if the moving direction is a second direction, canceling the execution of the display of the triggering suspension part related to the target suspension part, wherein the second direction and the first direction are opposite directions. Optionally, a trigger levitation component may be used to assist in launching the target levitation component.
As one mode, the apparatus 600 may further include a display count acquisition unit configured to acquire a display count of a special effect corresponding to the target levitation part. In this way, the configuration module 630 may be specifically configured to configure that the target suspension component is in a to-be-triggered state if the virtual parameter satisfies a target threshold corresponding to the display frequency, where the larger the display frequency is, the larger the corresponding target threshold is.
The second display module 640 is configured to trigger to display a special effect corresponding to the target suspension component if a touch operation acting on the target suspension component in the to-be-triggered state is detected.
As a mode, the second display module 640 may be specifically configured to obtain a terminal position coordinate of the target suspension component after moving; and displaying a special effect corresponding to the target suspension component in a specified area away from the end position coordinate.
Optionally, the apparatus 600 may further include a virtual reward obtaining unit, configured to obtain a click operation applied to an image corresponding to the special effect; and sending the appointed reward corresponding to the image to the account of the client.
Optionally, the apparatus 600 may further include an initialization unit, configured to initialize the virtual parameter after triggering to display the special effect corresponding to the target suspension component.
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. 12, 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. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 700 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 700 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 700 includes a non-transitory computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 to perform 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 710 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 (12)

1. A method for displaying a special effect of a virtual gift, applied to a client, the method comprising:
the client displays a target suspension component;
acquiring virtual parameters displayed by the target suspension component, wherein the virtual parameters represent the value of virtual gifts given to the anchor;
if the virtual parameter meets a target threshold value, configuring the target suspension component to be in a state to be triggered;
and if the touch operation acting on the target suspension component in the state to be triggered is detected, triggering and displaying a special effect corresponding to the target suspension component.
2. The method of claim 1, wherein the client displays a target levitating member, comprising:
the client acquires a display mode corresponding to the current anchor;
if the display mode is the first display mode, acquiring user state information;
if the user state information meets the specified condition, displaying a target suspension component;
and if the display mode is the second display mode, directly displaying the target suspension component.
3. The method of claim 2, wherein the target threshold comprises a first target threshold and a second target threshold, and the configuring the target levitation component to be in a to-be-triggered state if the virtual parameter satisfies the target threshold comprises:
under the first display mode, if a first instruction sent by a server is received, configuring the target suspension component to be in a state to be triggered, wherein the first instruction represents that the virtual parameter meets the first target threshold;
and under the second display mode, if a second instruction sent by the server is received, the target suspension component is configured to be in a state to be triggered, the second instruction represents that the client is the client with the maximum value of the virtual gift given to the anchor, and the virtual parameter meets the second target threshold.
4. The method of claim 3, wherein after configuring the target levitating member in a cocked state, the method further comprises:
if the display mode is a first display mode, displaying a trigger notification message of the target suspension component to indicate that the target suspension component is triggered;
if the display mode is a second display mode, if the client is the client where the user with the highest value of the virtual gift presented to the anchor is located, displaying a trigger notification message of the target floating component to indicate that the target floating component is triggered; otherwise, displaying the abnormal notification message of the target suspension component.
5. The method according to claim 4, wherein after displaying the trigger notification message of the target levitation part if the display mode is the first display mode, the method further comprises:
acquiring a reference distance between the position of the target suspension component and a designated edge of a display interface of the client;
if the reference distance is within a first preset area range, displaying a triggering suspension part related to the target suspension part;
if the reference distance is within a second preset area range, acquiring the moving direction of the touch operation acting on the target suspension component, wherein the second preset area range is larger than the first preset area range;
if the moving direction is a first direction, executing the display of the trigger suspension part related to the target suspension part;
and if the moving direction is a second direction, canceling the execution of the display of the triggering suspension part related to the target suspension part, wherein the second direction and the first direction are opposite directions.
6. The method of claim 1, wherein the triggering the display of the special effect corresponding to the target levitation component comprises:
acquiring a terminal position coordinate of the target suspension component after movement;
and displaying a special effect corresponding to the target suspension component in a specified area away from the end position coordinate.
7. The method of claim 6, further comprising:
acquiring a click operation acting on an image corresponding to the special effect;
and sending the appointed reward corresponding to the image to the account of the client.
8. The method of claim 1, further comprising:
acquiring the display times of a special effect corresponding to the target suspension component;
if the virtual parameter meets a target threshold, configuring the target suspension component to be in a state to be triggered, including:
and if the virtual parameter meets a target threshold corresponding to the display times, configuring the target suspension component to be in a state to be triggered, wherein the larger the display times, the larger the corresponding target threshold.
9. The method of claim 1, wherein after the triggering the display of the special effect corresponding to the target levitation component, the method further comprises:
initializing the virtual parameters.
10. An apparatus for displaying a special effect of a virtual gift, the apparatus, operating at a client, comprising:
the first display module is used for displaying the target suspension component by the client;
the acquisition module is used for acquiring the virtual parameters displayed by the target suspension component, and the virtual parameters represent the value of the virtual gift presented to the anchor;
the configuration module is used for configuring the target suspension component to be in a state to be triggered if the virtual parameter meets a target threshold value;
and the second display module is used for triggering and displaying a special effect corresponding to the target suspension component if the touch operation acting on the target suspension component in the state to be triggered is detected.
11. 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-9.
12. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-9.
CN202010053927.7A 2020-01-17 2020-01-17 Method and device for displaying special effect of virtual gift and electronic equipment Active CN111212314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010053927.7A CN111212314B (en) 2020-01-17 2020-01-17 Method and device for displaying special effect of virtual gift and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010053927.7A CN111212314B (en) 2020-01-17 2020-01-17 Method and device for displaying special effect of virtual gift and electronic equipment

Publications (2)

Publication Number Publication Date
CN111212314A true CN111212314A (en) 2020-05-29
CN111212314B CN111212314B (en) 2021-09-21

Family

ID=70788447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010053927.7A Active CN111212314B (en) 2020-01-17 2020-01-17 Method and device for displaying special effect of virtual gift and electronic equipment

Country Status (1)

Country Link
CN (1) CN111212314B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757135A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Live broadcast interaction method and device, readable medium and electronic equipment
CN112533053A (en) * 2020-11-30 2021-03-19 北京达佳互联信息技术有限公司 Live broadcast interaction method and device, electronic equipment and storage medium
CN113453051A (en) * 2021-06-30 2021-09-28 广州酷狗计算机科技有限公司 Virtual item display method, device, terminal and computer readable storage medium
WO2023284600A1 (en) * 2021-07-12 2023-01-19 北京字节跳动网络技术有限公司 Interaction method and apparatus, and device, computer-readable storage medium and product
WO2023005697A1 (en) * 2021-07-27 2023-02-02 百果园技术(新加坡)有限公司 Gift rewarding system and method for livestreaming application, device, and medium
CN116761011A (en) * 2023-08-21 2023-09-15 浙江印象软件有限公司 Real-time loading method and system for special effect data of live virtual article

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN105406975A (en) * 2015-12-15 2016-03-16 武汉斗鱼网络科技有限公司 Method and system for giving virtual gifts and triggering special effects in chat room
CN107172488A (en) * 2017-04-01 2017-09-15 武汉斗鱼网络科技有限公司 Present animated show method and system in a kind of network direct broadcasting
CN107172499A (en) * 2017-04-28 2017-09-15 北京潘达互娱科技有限公司 Direct broadcasting room display methods and device
US20180160158A1 (en) * 2016-12-06 2018-06-07 Bing Liu Method and system for live stream broadcast and content monetization
CN108235102A (en) * 2017-12-29 2018-06-29 广州酷狗计算机科技有限公司 Method for processing business, device and storage medium
US20180239347A1 (en) * 2014-12-12 2018-08-23 General Electric Company High notification rate detection
CN108600849A (en) * 2018-04-03 2018-09-28 北京潘达互娱科技有限公司 A kind of welfare certificate presentation method, device, electronic equipment and storage medium
CN108848394A (en) * 2018-07-27 2018-11-20 广州酷狗计算机科技有限公司 Net cast method, apparatus, terminal and storage medium
CN109246452A (en) * 2018-08-09 2019-01-18 广州酷狗计算机科技有限公司 virtual gift display method and device
CN109275037A (en) * 2018-08-06 2019-01-25 广州华多网络科技有限公司 A kind of virtual precious case display methods, game interaction system and server
CN109462769A (en) * 2018-10-30 2019-03-12 武汉斗鱼网络科技有限公司 Direct broadcasting room pendant display methods, device, terminal and computer-readable medium
CN110267059A (en) * 2019-07-18 2019-09-20 广州虎牙科技有限公司 Live broadcasting method, device, electronic equipment and storage medium
CN110324649A (en) * 2019-07-18 2019-10-11 网易(杭州)网络有限公司 Interaction control method, device, storage medium and electronic device in live streaming

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
US20180239347A1 (en) * 2014-12-12 2018-08-23 General Electric Company High notification rate detection
CN105406975A (en) * 2015-12-15 2016-03-16 武汉斗鱼网络科技有限公司 Method and system for giving virtual gifts and triggering special effects in chat room
US20180160158A1 (en) * 2016-12-06 2018-06-07 Bing Liu Method and system for live stream broadcast and content monetization
CN107172488A (en) * 2017-04-01 2017-09-15 武汉斗鱼网络科技有限公司 Present animated show method and system in a kind of network direct broadcasting
CN107172499A (en) * 2017-04-28 2017-09-15 北京潘达互娱科技有限公司 Direct broadcasting room display methods and device
CN108235102A (en) * 2017-12-29 2018-06-29 广州酷狗计算机科技有限公司 Method for processing business, device and storage medium
CN108600849A (en) * 2018-04-03 2018-09-28 北京潘达互娱科技有限公司 A kind of welfare certificate presentation method, device, electronic equipment and storage medium
CN108848394A (en) * 2018-07-27 2018-11-20 广州酷狗计算机科技有限公司 Net cast method, apparatus, terminal and storage medium
CN109275037A (en) * 2018-08-06 2019-01-25 广州华多网络科技有限公司 A kind of virtual precious case display methods, game interaction system and server
CN109246452A (en) * 2018-08-09 2019-01-18 广州酷狗计算机科技有限公司 virtual gift display method and device
CN109462769A (en) * 2018-10-30 2019-03-12 武汉斗鱼网络科技有限公司 Direct broadcasting room pendant display methods, device, terminal and computer-readable medium
CN110267059A (en) * 2019-07-18 2019-09-20 广州虎牙科技有限公司 Live broadcasting method, device, electronic equipment and storage medium
CN110324649A (en) * 2019-07-18 2019-10-11 网易(杭州)网络有限公司 Interaction control method, device, storage medium and electronic device in live streaming

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一条小咸鱼: "抖音直播飘屏特效设置方法介绍", 《HTTPS://M.GMZ88.COM/GONGLUE/127713.HTML》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757135A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Live broadcast interaction method and device, readable medium and electronic equipment
EP4161079A4 (en) * 2020-06-24 2023-12-13 Beijing Bytedance Network Technology Co., Ltd. Live broadcast interaction method and apparatus, and readable medium and electronic device
US11895354B2 (en) 2020-06-24 2024-02-06 Beijing Bytedance Network Technology Co., Ltd. Live broadcast interaction method and apparatus, and readable medium and electronic device
CN112533053A (en) * 2020-11-30 2021-03-19 北京达佳互联信息技术有限公司 Live broadcast interaction method and device, electronic equipment and storage medium
CN113453051A (en) * 2021-06-30 2021-09-28 广州酷狗计算机科技有限公司 Virtual item display method, device, terminal and computer readable storage medium
WO2023284600A1 (en) * 2021-07-12 2023-01-19 北京字节跳动网络技术有限公司 Interaction method and apparatus, and device, computer-readable storage medium and product
WO2023005697A1 (en) * 2021-07-27 2023-02-02 百果园技术(新加坡)有限公司 Gift rewarding system and method for livestreaming application, device, and medium
CN116761011A (en) * 2023-08-21 2023-09-15 浙江印象软件有限公司 Real-time loading method and system for special effect data of live virtual article
CN116761011B (en) * 2023-08-21 2023-11-14 浙江印象软件有限公司 Real-time loading method and system for special effect data of live virtual article

Also Published As

Publication number Publication date
CN111212314B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN111212314B (en) Method and device for displaying special effect of virtual gift and electronic equipment
CN109011574B (en) Game interface display method, system, terminal and device based on live broadcast
JP5603417B2 (en) Shared media selection method and system integrated with avatar
CN114466209B (en) Live broadcast interaction method and device, electronic equipment, storage medium and program product
CN113873280B (en) Continuous wheat live broadcast fight interaction method, system and device and computer equipment
CN111672111A (en) Interface display method, device, equipment and storage medium
CN113676747A (en) Live wheat-connecting fighting interaction method, system and device and computer equipment
AU2021389792A1 (en) Method and device for executing interactive event, electronic device, computer-readable storage medium, and computer program product
CN114201095A (en) Control method and device for live interface, storage medium and electronic equipment
WO2023103617A1 (en) User interface display method and apparatus, device, medium, and program product
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
JP2023175781A (en) Computer program, server device, terminal device, and method
CN114339438B (en) Interaction method and device based on live broadcast picture, electronic equipment and storage medium
CN113648650B (en) Interaction method and related device
KR20230042517A (en) Contact information display method, apparatus and electronic device, computer-readable storage medium, and computer program product
CN113329236B (en) Live broadcasting method, live broadcasting device, medium and electronic equipment
CN114007095A (en) Voice microphone-connecting interaction method, system, medium and computer equipment for live broadcast room
CN112947819A (en) Message display method, device, storage medium and equipment for interactive narrative work
CN114173173A (en) Barrage information display method and device, storage medium and electronic equipment
JP6660549B2 (en) Program and recording medium
CN114885199A (en) Real-time interaction method, device, electronic equipment, storage medium and system
CN113877213A (en) Game live broadcast interaction method and device, storage medium and electronic equipment
CN114425167A (en) Interaction method and device of virtual object, storage medium and electronic equipment
US20200120187A1 (en) System for providing game play video by using cloud computer
CN115243110B (en) Bullet screen display method, bullet screen display device, computer equipment and storage medium

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

Effective date of registration: 20210113

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant