Live broadcast interaction method and device, storage medium and computer equipment

文档序号:1941855 发布日期:2021-12-07 浏览:15次 中文

阅读说明:本技术 直播互动方法、装置、存储介质及计算机设备 (Live broadcast interaction method and device, storage medium and computer equipment ) 是由 陈涛 袁小明 于 2021-10-20 设计创作,主要内容包括:本申请实施例公开了一种直播互动方法、装置、存储介质及计算机设备。本申请实施例接收对预设送礼控件的长按触控操作;响应于针对预设送礼控件的长按触控操作,持续触发预设送礼控件关联的目标虚拟礼物的赠送指令,赠送指令的触发次数随长按触控操作的持续时间的增长而增加;播放目标虚拟礼物对应的目标连击动画,其中,目标连击动画的连击效果随赠送指令的触发次数的增加而变化。以此,通过长按触控操作实现对目标虚拟礼物的连续赠送,并且实现相应目标连击动画的播放,且播放的目标连击动画的连击效果随长按触控操作的按压时间而变化,增加了直播互动的方式和趣味性,进而极大的提升了直播互动的多样性。(The embodiment of the application discloses a live broadcast interaction method and device, a storage medium and computer equipment. The method comprises the steps of receiving long-press touch operation on a preset gift sending control; continuously triggering a presentation instruction of a target virtual gift associated with a preset gift-giving control in response to a long-press touch operation for the preset gift-giving control, wherein the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation; and playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions. Therefore, continuous presentation of the target virtual gift is achieved through long-time pressing of touch operation, playing of the corresponding target continuous-click animation is achieved, continuous-click effect of the played target continuous-click animation changes along with long-time pressing of the touch operation, live broadcast interaction mode and interestingness are increased, and further the diversity of live broadcast interaction is greatly improved.)

1. A live interaction method is characterized by comprising the following steps:

receiving long-press touch operation on a preset gift sending control;

continuously triggering a giving instruction of a target virtual gift associated with the preset gift-giving control in response to a long-press touch operation on the preset gift-giving control, wherein the triggering frequency of the giving instruction is increased along with the increase of the duration time of the long-press touch operation;

and playing a target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions.

2. The live broadcast interaction method of claim 1, wherein continuously triggering a presentation instruction of a target virtual gift associated with the preset presentation control comprises:

triggering a presentation instruction of a target virtual gift associated with the preset presentation control;

starting a timer, wherein the timer is associated with a target preset time;

and under the continuous state of the long-press touch operation, triggering a presentation instruction of the target virtual gift associated with the preset gift-sending control at intervals of target preset time until the long-press touch operation is finished.

3. The live interaction method of claim 2, wherein starting the timer comprises:

acquiring pressing force degree information corresponding to the long-press touch operation;

and determining a target strength interval in which the pressing strength information is positioned, and matching corresponding target preset time according to the target strength interval.

4. The live interaction method of claim 1, wherein the playing of the target click-through animation corresponding to the target virtual gift comprises:

generating a continuous ejection animation corresponding to the target virtual gift, wherein the ejection effect of the continuous ejection animation changes along with the increase of the triggering times of the giving instruction;

and playing the continuous ejection animation as a target continuous-click animation.

5. The live interaction method of claim 4, wherein after the generating of the continuous ejection animation corresponding to the target virtual gift, the method further comprises:

when the trigger times of the giving instructions meet preset conditions, generating full-screen animation corresponding to the target virtual gift;

the playing of the continuous ejection animation as the target continuous-click animation comprises the following steps:

and playing the continuous ejection animation and the full-screen animation as target continuous-click animation.

6. The live interaction method of claim 4, further comprising:

and displaying a virtual display control corresponding to the target virtual gift, wherein the virtual display control is used for displaying the triggering times of the target virtual gift, and the display size of the virtual display control changes along with the increase of the presenting times of the target virtual gift.

7. The live interaction method of claim 6, further comprising:

and when the triggering times of the giving instructions meet the preset conditions, adjusting the display size of the virtual display control to be the preset display size.

8. The live interaction method as claimed in any one of claims 1 to 7, further comprising:

when the network transmission rate is detected to be smaller than a preset threshold value, recording a presentation instruction of a target virtual gift in an unconnected state of the network and corresponding target trigger times, and storing the presentation instruction and the corresponding target trigger times in a cache pool;

when the network transmission rate is detected to be larger than a preset threshold value, acquiring update data issued by a server, wherein the update data carries a current virtual gift supported by a current live broadcast room;

and triggering the give-away instruction of the target triggering times in the cache pool when detecting that the first gift type of the target virtual gift is the same as the second gift type of the current virtual gift.

9. The live interaction method of claim 8, further comprising:

emptying the cache pool when detecting that a first gift type of the target virtual gift is different from a second gift type of the current virtual gift;

and replacing the target virtual gift associated with the preset gift sending control with the current virtual gift.

10. A live interaction device, comprising:

the receiving unit is used for receiving long-press touch operation on a preset gift sending control;

the trigger unit is used for responding to the long-press touch operation aiming at the preset gift-sending control and continuously triggering the presentation instruction of the target virtual gift related to the preset gift-sending control, and the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation;

and the playing unit is used for playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the trigger times of the giving instruction.

11. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the live interaction method of any of claims 1 to 9.

12. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps in the live interaction method of any one of claims 1 to 9 when executing the computer program.

Technical Field

The application relates to the field of network live broadcast, in particular to a live broadcast interaction method, a live broadcast interaction device, a storage medium and computer equipment.

Background

With the development and popularization of the live broadcast industry, live broadcast watching becomes a daily entertainment mode of a plurality of users, and gift delivery in a live broadcast room is an important feedback means of the preference degree of the users to live broadcast contents as an important payment function of the live broadcast room. The user realizes the accumulated delivery of the gifts by continuously clicking the gift-delivering button to express the preference degree of the live-broadcasting content.

In the research and practice process of the prior art, the inventor of the application finds that in the prior art, the gift cumulative presentation can be realized only by continuously clicking a gift sending button, and the presentation mode is monotonous, so that the interactivity of live broadcast is poor.

Disclosure of Invention

The embodiment of the application provides a live broadcast interaction method and device, a storage medium and computer equipment, which can improve the diversity of live broadcast interaction.

In order to solve the above technical problem, the embodiments of the present application provide the following technical solutions:

a live interaction method, comprising:

receiving long-press touch operation on a preset gift sending control;

continuously triggering a giving instruction of a target virtual gift associated with the preset gift-giving control in response to a long-press touch operation on the preset gift-giving control, wherein the triggering frequency of the giving instruction is increased along with the increase of the duration time of the long-press touch operation;

and playing a target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions.

A live interaction device, comprising:

the receiving unit is used for receiving long-press touch operation on a preset gift sending control;

the trigger unit is used for responding to the long-press touch operation aiming at the preset gift-sending control and continuously triggering the presentation instruction of the target virtual gift related to the preset gift-sending control, and the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation;

and the playing unit is used for playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the trigger times of the giving instruction.

In some embodiments, the trigger unit includes:

the triggering subunit is used for responding to the long-press touch operation aiming at the preset gift sending control and triggering a presentation instruction of a target virtual gift associated with the preset gift sending control;

the starting subunit is used for starting a timer, and the timer is associated with target preset time;

and the interval triggering subunit is used for triggering the presentation instruction of the target virtual gift associated with the preset presentation control at intervals of target preset time in the continuous state of the long-press touch operation until the long-press touch operation is finished.

In some embodiments, the enabling subunit is configured to:

acquiring pressing force degree information corresponding to the long-press touch operation;

and determining a target strength interval in which the pressing strength information is positioned, and matching corresponding target preset time according to the target strength interval.

In some embodiments, the playback unit is configured to:

generating a continuous ejection animation corresponding to the target virtual gift, wherein the ejection effect of the continuous ejection animation changes along with the increase of the triggering times of the giving instruction;

and playing the continuous ejection animation as a target continuous-click animation.

In some embodiments, the playback unit is further configured to:

generating a continuous ejection animation corresponding to the target virtual gift, wherein the ejection effect of the continuous ejection animation changes along with the increase of the triggering times of the giving instruction;

when the trigger times of the giving instructions meet preset conditions, generating full-screen animation corresponding to the target virtual gift;

and playing the continuous ejection animation and the full-screen animation as target continuous-click animation.

In some embodiments, the live interaction device further includes:

and the display unit is used for displaying a virtual display control corresponding to the target virtual gift, wherein the virtual display control is used for displaying the triggering times of the target virtual gift, and the display size of the virtual display control changes along with the increase of the presenting times of the target virtual gift.

In some embodiments, the live interaction device further includes:

and the adjusting unit is used for adjusting the display size of the virtual display control to be a preset display size when the triggering times of the giving instructions are detected to meet preset conditions.

In some embodiments, the live interaction device further includes:

the recording unit is used for recording a presentation instruction of the target virtual gift in an unconnected state of the network and corresponding target triggering times when the network transmission rate is detected to be smaller than a preset threshold value, and storing the presentation instruction and the corresponding target triggering times into a cache pool;

the acquisition unit is used for acquiring the update data issued by the server when the network transmission rate is detected to be greater than a preset threshold value, wherein the update data carries the current virtual gift supported by the current live broadcast room;

and the cache triggering unit is used for triggering the giving instructions of the target triggering times in the cache pool when detecting that the first gift type of the target virtual gift is the same as the second gift type of the current virtual gift.

In some embodiments, the live interaction device further includes:

an emptying unit, configured to empty the cache pool when detecting that a first gift type of the target virtual gift is different from a second gift type of the current virtual gift;

and the replacing unit is used for replacing the target virtual gift associated with the preset gift sending control with the current virtual gift.

A computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor for performing the steps of the above-described live interaction method.

A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the live interaction method provided above when executing the computer program.

A computer program product or computer program comprising computer instructions stored in a storage medium. The processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions to enable the computer device to execute the steps in the live broadcast interaction method provided above.

The method comprises the steps of receiving long-press touch operation on a preset gift sending control; continuously triggering a presentation instruction of a target virtual gift associated with a preset gift-giving control in response to a long-press touch operation for the preset gift-giving control, wherein the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation; and playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions. Therefore, continuous presentation of the target virtual gift is achieved through long-time pressing of touch operation, playing of the corresponding target continuous-click animation is achieved, continuous-click effect of the played target continuous-click animation changes along with long-time pressing of the touch operation, live broadcast interaction mode and interestingness are increased, and further the diversity of live broadcast interaction is greatly 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 is a scene schematic diagram of a live broadcast interactive system provided in an embodiment of the present application;

fig. 2 is a schematic flowchart of a live broadcast interaction method provided in an embodiment of the present application;

fig. 3a is another schematic flow chart of a live broadcast interaction method provided in an embodiment of the present application;

FIG. 3b is a diagram of a live interface provided by an embodiment of the present application;

FIG. 3c is another schematic diagram of a live interface provided by an embodiment of the present application;

FIG. 3d is another schematic diagram of a live interface provided by an embodiment of the present application;

fig. 3e is another schematic diagram of a live interface provided in an embodiment of the present application;

fig. 4 is a schematic structural diagram of a live broadcast interaction apparatus according to an embodiment of the present application;

fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.

Detailed Description

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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The embodiment of the application provides a live broadcast interaction method and device, a storage medium and computer equipment.

Referring to fig. 1, fig. 1 is a schematic view of a scene of a live broadcast interactive system according to an embodiment of the present application, including: the client A and the server B can be connected through a communication network, and the communication network comprises a wireless network and a wired network, wherein the wireless network comprises one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network and a wireless personal network. The network includes network entities such as routers, gateways, etc., which are not shown in the figure. The client A can perform information interaction with the server B through a communication network.

The live broadcast interactive system can include a live broadcast interactive device, the live broadcast interactive device can be specifically integrated in a terminal with computing capability, such as a tablet personal computer, a mobile phone, a notebook computer, a desktop computer, and the like, which is provided with a storage unit and a microprocessor, the terminal can be provided with a client, such as a live broadcast client or a game client, and it should be noted that the live broadcast client can include an anchor client or an audience client, and in fig. 1, the client a can be used for receiving a long-press touch operation on a preset gift sending control; responding to the long-press touch operation aiming at the preset gift-giving control, and continuously triggering a presenting instruction of a target virtual gift associated with the preset gift-giving control, wherein the triggering frequency of the presenting instruction is increased along with the increase of the duration time of the long-press touch operation; and playing a target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions.

The live broadcast interactive system can also comprise a server B, wherein the server B can store the corresponding relation between the anchor client and each live broadcast room, and after the audience client selects the live broadcast room, the server B sends the live broadcast video stream corresponding to the anchor client to all the audience clients belonging to the same live broadcast room according to the corresponding relation between each live broadcast room and the anchor client. The server B may also count the number of target virtual gifts sent by the client a.

It should be noted that the scene schematic diagram of the live broadcast interaction system shown in fig. 1 is only an example, and the live broadcast interaction system and the scene described in the embodiment of the present application are used to more clearly illustrate the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application.

The following are detailed below.

In this embodiment, the description will be made from the perspective of a live interactive device, which may be specifically integrated in a client of a terminal.

Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a live broadcast interaction method according to an embodiment of the present application. The live broadcast interaction method comprises the following steps:

in step 101, a long-press touch operation on a preset gift sending control is received.

The client can be a spectator client, the spectator client can enter a live broadcast room corresponding to any anchor client, the live broadcast room corresponding to the anchor client is opened for live broadcast watching, the spectator client can watch live broadcast contents of a live broadcast user in the live broadcast room, such as talent show, game live broadcast and the like, and the interaction operation with the anchor user can be realized by paying attention to the anchor user, giving gifts to the anchor user or sending interaction messages and the like.

Particularly, with the development and popularization of the live broadcast industry, gift presentation is an important feedback means of audience preference degree of live broadcast content, and a user can realize quick cumulative gift sending by continuously clicking a gift sending button.

Therefore, the embodiment of the application provides the preset gift-sending control to realize the function of fast gift-sending, the preset gift-sending control can be associated with the target virtual gift in advance, and the preset gift-sending control can receive long-press touch operation to realize continuous presentation of the target virtual gift.

In this application embodiment, the spectator client may display a live interface, the live interface of the anchor broadcast may be played on the live interface, a preset gift-sending control may be displayed on the live interface, the preset gift-sending control is used to implement continuous presentation of the target virtual gift, the spectator user may press the preset gift-sending control for a long time, and correspondingly, the client may receive a long-press touch operation on the preset gift-sending control.

In step 102, in response to the long-press touch operation for the preset gift-offering control, a gift-offering instruction of the target virtual gift associated with the preset gift-offering control is continuously triggered.

The responses referred to in the embodiments of the present application are used to indicate conditions or states on which the executed operations depend, and when the conditions or states on which the executed operations depend are satisfied, one or more executed operations may be in real time or may have a set delay; there is no restriction on the order of execution of the operations performed unless otherwise specified.

The audience client responds to the long press touch operation for the preset gift-sending control, and can continuously trigger the presentation instruction of the target virtual gift associated with the preset gift-sending control, namely the continuous presentation of the target virtual gift can be realized through the long press touch operation in the embodiment of the application, the continuous mode can be an interval triggering mode or a mode that the triggering frequency is faster and faster along with the time lapse, and the examples are not specifically limited, so that the audience can continuously present the target virtual gift in the long press touch mode, and the operation efficiency is improved.

In some embodiments, the continuously triggering the give instruction of the target virtual gift associated with the preset give control comprises:

(1) triggering a presentation instruction of the target virtual gift associated with the preset presentation control;

(2) starting a timer;

(3) and under the continuous state of the long-press touch operation, triggering a presentation instruction of the target virtual gift associated with the preset gift-sending control at intervals of target preset time until the long-press touch operation is finished.

When the audience client responds to the long-press touch operation aiming at the preset gift-sending control, firstly, a gift instruction of the target virtual gift related to the preset gift-sending control is triggered, and then one time of gift operation of the target virtual gift is realized.

In this embodiment, a timer may be set, where the timer is configured to monitor the long-press touch operation, the timer is associated with a target preset time, the target preset time is an interval time, the longer the target preset time is, the longer the time for triggering the target virtual gift at an interval is, and the shorter the target preset time is, the shorter the time for triggering the target virtual gift at an interval is.

Further, in the continuous state of the long press touch operation, a presentation instruction of the target virtual gift which is key to the preset gift-sending control is triggered once every target preset time, that is, a presentation operation of the target virtual gift which is associated with the preset gift-sending control is realized once every target preset time, and a continuous presentation effect is realized until the long press touch operation is finished.

In step 103, a target continuous-click animation corresponding to the target virtual gift is played.

In the related art, when a user presents a virtual gift, the displayed function is monotonous, only the presenting effect of the gift is displayed, and even if the user continuously clicks to continuously send out the gift, the corresponding display effect is not matched, so that the enthusiasm and the gift sending experience of the user are seriously influenced.

Therefore, in the scene of responding to the presentation instruction of the target virtual gift associated with the preset gift-sending control continuously triggered by the long-press touch operation of the preset gift-sending control, the target continuous-click animation corresponding to the target virtual gift can be played, the target continuous-click animation can be set by background personnel or selected by a user and is an interesting animation related to the target virtual gift, and the continuous-click effect of the target continuous-click animation changes along with the increase of the trigger times of the presentation instruction, namely, the audience can realize the interaction of the target continuous-click animation through the long-press touch operation, and the interactivity of the live broadcast interaction is improved.

As can be seen from the above, the embodiment of the application receives a long-press touch operation on a preset gift sending control; continuously triggering a presentation instruction of a target virtual gift associated with a preset gift-giving control in response to a long-press touch operation for the preset gift-giving control, wherein the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation; and playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions. Therefore, continuous presentation of the target virtual gift is achieved through long-time pressing of touch operation, playing of the corresponding target continuous-click animation is achieved, continuous-click effect of the played target continuous-click animation changes along with long-time pressing of the touch operation, live broadcast interaction mode and interestingness are increased, and further the diversity of live broadcast interaction is greatly improved.

In this embodiment, the live broadcast interaction device will be described from the perspective of a live broadcast interaction device, the live broadcast interaction device may be specifically integrated in a terminal having an arithmetic capability and including a storage unit and a microprocessor, such as a tablet computer and a mobile phone, and the terminal may open a live broadcast client.

Referring to fig. 3a, fig. 3a is another schematic flow chart of an information processing method according to an embodiment of the present disclosure. The method flow can comprise the following steps:

in step 201, a long-press touch operation on a preset gift sending control is received.

It can be understood that, for better understanding of the embodiment of the present application, reference may be made to fig. 3b together, where fig. 3b is a schematic diagram of a live interface provided in the embodiment of the present application, an audience client may display the live interface 20, the live interface 20 may play a live interface of a main broadcast, a preset gift-sending control 21 may be displayed on the live interface, the preset gift-sending control is used to implement continuous presentation of a target virtual gift, and the audience user may touch the preset gift-sending control for a long time, and accordingly, the client may receive a long-time touch operation on the preset gift-sending control.

In step 202, in response to the long-press touch operation for the preset gift-offering control, a presentation instruction of a target virtual gift associated with the preset gift-offering control is triggered.

Referring to fig. 3c together, fig. 3c is another schematic diagram of a live broadcast interface provided in the present embodiment, a viewer may press the preset gift control 21 with a finger, and the viewer client may trigger a presentation instruction of a target virtual gift associated with the preset gift control in response to a long-press touch operation on the preset gift control 21, where the gift type of the target virtual gift includes multiple types, for example, the target virtual gift may be "blue legend".

In step 203, pressing force degree information corresponding to the long-press touch operation is obtained, a target force interval in which the pressing force degree information is located is determined, and corresponding target preset time is matched according to the target force interval.

Acquiring pressing force degree information corresponding to the long-time pressing touch operation, wherein the larger the touch force of the audience is, the larger the pressing force degree information is; the smaller the touch strength of the viewer is, the smaller the pressing strength information is, and the unit of the pressing strength information may be gram (g), for example, the pressing strength information may be 800 g.

Further, a plurality of force intervals can be set, each force interval is associated with a corresponding target preset time, for example, the target preset time corresponding to the force interval of 0-500 g can be set to be 200 milliseconds (ms), and the target preset time corresponding to the force interval of 500-1000 g can be set to be 100ms (ms), that is, the larger the pressing force is, the shorter the corresponding target preset time is. Therefore, the corresponding target preset time can be matched according to the target strength interval.

In one embodiment, the target preset time may be variable at any time, for example, in a long-press touch operation, the target preset time is adjusted in real time by increasing the pressing force and decreasing the pressing force.

In step 204, in the continuous state of the long-press touch operation, a presentation instruction of the target virtual gift associated with the preset presentation control is triggered at intervals of the target preset time until the long-press touch operation is finished.

In the continuous state of the long press touch operation, a presentation instruction of a target virtual gift "blue legend" associated with the preset gift-sending control 21 may be triggered every 100ms, so as to continuously present the target virtual gift until the long press touch operation is finished.

In step 205, a continuous ejection animation corresponding to the target virtual gift is generated.

As shown in fig. 3c, when the spectator client is in the state of long-press touch operation, the spectator client may generate the continuous ejection animation 22 corresponding to the target virtual gift, where the continuous ejection animation 22 may be an animation of a love generated by the preset gift-sending control 21 and ejected to the center of the screen, and an ejection effect of the continuous ejection animation 22 changes with an increase of the trigger frequency of the give-away instruction, that is, the number of the love of the ejection may be determined by the trigger frequency of the give-away instruction, and the more the trigger frequency of the give-away instruction is, the more the number of the love of the ejection may be, the less the trigger frequency of the give-away instruction is, and the less the number of the love of the ejection may be. That is, the longer the user presses the touch, the greater the number of love hearts ejected, and the shorter the user presses the touch, the fewer the number of love hearts ejected.

In one embodiment, only the continuous ejection animation can be played in a continuous state of the long-press touch operation.

In step 206, when it is detected that the number of times of triggering the give-away instruction satisfies the preset condition, a full-screen animation corresponding to the target virtual gift is generated.

The preset condition may be that the number of triggers satisfies a preset threshold, the preset threshold may be 10, 20, or 30, please refer to fig. 3d together, fig. 3d is another schematic diagram of a live broadcast interface provided in the embodiment of the present application, the preset threshold may be 10, when it is detected that the number of triggers of the presentation instruction satisfies 10, a full-screen animation 23 corresponding to the target virtual gift is generated, the full-screen animation 23 is a full-screen pop special effect, and may be a full-screen meteor with a love icon, which may increase a visual effect, and enhance a enthusiasm of audience present.

In one embodiment, full-screen animation may appear multiple times in a short time, and in order to avoid overlapping, full-screen animation may be recorded in a queue, and each time one full-screen animation is played, one full-screen animation is sequentially extracted from the queue for playing.

In an embodiment, in a continuous state of the long-press touch operation, only the full-screen animation may be played.

In step 207, the continuous ejection animation and the full-screen animation are played as the target continuous-click animation.

As shown in fig. 3d, the continuous ejection animation 22 and the full-screen animation 23 can be played together as a target continuous-click animation, so that the user can control continuous presentation of the target virtual gift at a certain rate by long-time touch and control of touch strength, and the diversity of live broadcast interaction is greatly improved.

In step 208, the virtual show control corresponding to the target virtual gift is shown.

Please refer to fig. 3e together, fig. 3e is another schematic diagram of the live broadcast interface provided in the embodiment of the present application, when the long press touch operation is performed on the live broadcast interface 20, a virtual display control 24 may be further displayed, where the virtual display control 24 is used to display the triggering times of the target virtual gift, for example, the triggering times are 21 times, and the display size of the virtual display control 24 changes with the increase of the presenting times of the target virtual gift, and the change trend may be that the display size of the virtual display control 24 may be constantly increased with the increase of the presenting times of the target virtual gift, or the display size of the virtual display control 24 may be irregularly increased or decreased with the increase of the presenting times of the target virtual gift, and the like, and is not particularly limited herein.

In some embodiments, the method further comprises: and when the triggering times of the giving instruction are detected to meet the preset conditions, adjusting the display size of the virtual display control to be the preset display size.

The virtual display control 24 has a preset display size, which can be understood as an original display size just starting to display, for example, 2 cm, the display size of the virtual display control 24 can be increased along with the increase of the presentation times, but when the trigger times of the presentation instruction are detected to meet a preset condition, that is, when the pop display of the full-screen animation is realized, the display size of the virtual display control 24 can be adjusted to the preset display size, so that the virtual display control 24 shows regular changes, and the interest of live broadcast interaction is increased.

In some embodiments, the method further comprises:

(1) when the network transmission rate is detected to be smaller than the preset threshold value, the giving instruction of the target virtual gift in the unconnected state of the network and the corresponding target triggering times are recorded and stored in the cache pool.

(2) And when detecting that the network transmission rate is greater than a preset threshold value, acquiring the update data issued by the server, wherein the update data carries the current virtual gift supported by the current live broadcast room.

(3) And triggering the donation instruction of the target triggering times in the cache pool when detecting that the first gift type of the target virtual gift is the same as the second gift type of the current virtual gift.

(4) When detecting that the first gift type of the target virtual gift is different from the second gift type of the current virtual gift, emptying the cache pool.

(5) And replacing the target virtual gift associated with the preset gift sending control with the current virtual gift.

Because the gift data configured by continuous gift sending is configured by the broadcast of the server, the gift data can be a specific type of virtual gift and quantity, and thus the target virtual gift associated with the preset gift sending control can be an unlimited quantity of paid virtual gifts or a limited quantity of free gifts, so that the target virtual gift associated with the preset gift sending control can be updated in a manner that the free gift is sent out or the state of the live broadcast room changes.

Therefore, in the state of long-press touch operation, a client may have a data disconnection period due to a network problem, and during the data disconnection period, the number of times of triggering the giving instruction of the target virtual gift and the target continuous-click animation are still continuously generated and played, and the experience for the user is kept unchanged, but due to the network problem, the sending and giving protocol of the target virtual gift is not sent, so as to solve the above problem, in the embodiment of the present application, a preset threshold may be set, the preset threshold is a preset network transmission rate, for example, 50 Kilobytes (KB) per second, when the network transmission rate is detected to be less than the preset threshold, it is indicated that the current network state is poor, the network may be disconnected or the connection is unstable, the giving instruction of the target virtual gift in this state and the corresponding target triggering number of times are recorded, that the giving instruction and the corresponding giving number of times of the target virtual gift that need to be given on the client when the network state is poor are recorded, and storing the data into a cache pool, wherein the cache pool is a storage space opened up for the terminal.

Further, when it is detected that the network transmission rate is greater than the preset threshold, that is, when it is detected that the network recovers to a better state, it indicates that the data can be synchronized with the server, and the latest data sent by the server, that is, the update data, is obtained, where the update data carries a current virtual gift supported by the currently watched live broadcast room, and the current virtual gift is a gift capable of supporting continuous gift delivery.

Because the virtual gifts are various types, whether the giving instruction of the target virtual gift cached in the cache pool is continuously sent needs to detect whether the first gift type of the target virtual gift is the same as the second gift type of the current virtual gift, and when the first gift type of the target virtual gift is detected to be the same as the second gift type of the current virtual gift, that is, the present gift type of the server supporting continuous gift is not changed, the giving instruction of the target triggering times in the cache pool can be triggered to keep the continuous giving of the target virtual gift uninterrupted. When it is detected that the first gift type of the target virtual gift is different from the second gift type of the current virtual gift, it is indicated that the offline cached target virtual gift cannot be presented, the data in the cache pool needs to be emptied, and the target virtual gift associated with the preset gift-sending control is updated to the current virtual gift to implement data update.

Therefore, the off-line processing of the target virtual gift in the off-line state is realized, the situation that the client cannot process continuous presentation events when the network has problems and the user cannot use the client is avoided, and the diversity and the processing efficiency of live broadcast interaction are further improved.

As can be seen from the above, in the embodiment of the present application, a long-press touch operation on a preset gift sending control is received; continuously triggering a presentation instruction of a target virtual gift associated with a preset gift-giving control in response to a long-press touch operation for the preset gift-giving control, wherein the triggering frequency of the presentation instruction is increased along with the increase of the duration time of the long-press touch operation; and playing the target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions. Therefore, continuous presentation of the target virtual gift is achieved through long-time pressing of touch operation, playing of the corresponding target continuous-click animation is achieved, continuous-click effect of the played target continuous-click animation changes along with long-time pressing of the touch operation, live broadcast interaction mode and interestingness are increased, and further the diversity of live broadcast interaction is greatly improved.

Referring to fig. 4, fig. 4 is a schematic structural diagram of a live broadcast interaction device according to an embodiment of the present disclosure, where the live broadcast interaction device is applied to a terminal, where the live broadcast interaction device may include a receiving unit 301, a triggering unit 302, a playing unit 303, and the like.

The receiving unit 301 is configured to receive a long-press touch operation on a preset gift sending control.

The triggering unit 302 is configured to continuously trigger a presentation instruction of a target virtual gift associated with the preset gift-giving control in response to a long-press touch operation on the preset gift-giving control, where the number of times of triggering the presentation instruction increases with an increase in duration of the long-press touch operation.

In some embodiments, the trigger unit 302 includes:

the triggering subunit is used for responding to the long-press touch operation aiming at the preset gift sending control and triggering a presentation instruction of a target virtual gift associated with the preset gift sending control;

the starting subunit is used for starting a timer, and the timer is associated with target preset time;

and the interval triggering subunit is used for triggering the presentation instruction of the target virtual gift associated with the preset gift-presenting control at intervals of target preset time in the continuous state of the long-press touch operation until the long-press touch operation is finished.

In some embodiments, the enabling subunit is configured to:

acquiring pressing force degree information corresponding to the long-press touch operation;

and determining a target strength interval in which the pressing strength information is positioned, and matching corresponding target preset time according to the target strength interval.

The playing unit 303 is configured to play a target continuous-click animation corresponding to the target virtual gift, where a continuous-click effect of the target continuous-click animation changes as the trigger frequency of the give instruction increases.

In some embodiments, the playing unit 303 is configured to:

generating a continuous ejection animation corresponding to the target virtual gift, wherein the ejection effect of the continuous ejection animation changes along with the increase of the triggering times of the giving instruction;

and playing the continuous ejection animation as a target continuous-click animation.

In some embodiments, the playing unit 303 is further configured to:

generating a continuous ejection animation corresponding to the target virtual gift, wherein the ejection effect of the continuous ejection animation changes along with the increase of the triggering times of the giving instruction;

when the trigger times of the giving instructions meet preset conditions, generating full-screen animation corresponding to the target virtual gift;

and playing the continuous ejection animation and the full-screen animation as target continuous-click animation.

In some embodiments, the live interaction apparatus further includes:

and the display unit is used for displaying a virtual display control corresponding to the target virtual gift, wherein the virtual display control is used for displaying the triggering times of the target virtual gift, and the display size of the virtual display control changes along with the increase of the presentation times of the target virtual gift.

In some embodiments, the live interaction apparatus further includes:

and the adjusting unit is used for adjusting the display size of the virtual display control to be a preset display size when the triggering times of the giving instruction are detected to meet the preset conditions.

In some embodiments, the live interaction apparatus further includes:

the recording unit is used for recording a presentation instruction of the target virtual gift in an unconnected state of the network and the corresponding target triggering times when the network transmission rate is detected to be smaller than a preset threshold value, and storing the presentation instruction and the corresponding target triggering times into the cache pool;

the acquisition unit is used for acquiring the update data issued by the server when the network transmission rate is detected to be greater than a preset threshold value, wherein the update data carries the current virtual gift supported by the current live broadcast room;

and the cache triggering unit is used for triggering the gifting instructions of the target triggering times in the cache pool when detecting that the first gift type of the target virtual gift is the same as the second gift type of the current virtual gift.

In some embodiments, the live interaction apparatus further includes:

an emptying unit, configured to empty the buffer pool when detecting that a first gift type of the target virtual gift is different from a second gift type of the current virtual gift;

and the replacing unit is used for replacing the target virtual gift associated with the preset gift sending control by the current virtual gift.

An embodiment of the present application further provides a computer device, where the computer device may be a terminal, as shown in fig. 5, which shows a schematic structural diagram of a computer device according to an embodiment of the present invention, specifically:

the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 5 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:

the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.

The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.

The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.

The computer device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:

receiving long-press touch operation on a preset gift sending control;

responding to the long-press touch operation aiming at the preset gift-giving control, and continuously triggering a presenting instruction of a target virtual gift associated with the preset gift-giving control, wherein the triggering frequency of the presenting instruction is increased along with the increase of the duration time of the long-press touch operation;

and playing a target continuous-click animation corresponding to the target virtual gift, wherein the continuous-click effect of the target continuous-click animation changes along with the increase of the triggering times of the giving instructions.

In the above embodiments, the descriptions of the embodiments have respective emphasis, and a part that is not described in detail in a certain embodiment may be referred to the above detailed description of the live broadcast interaction method, and is not described here again.

It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.

To this end, embodiments of the present application provide a computer storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any live interaction method provided in embodiments of the present application.

According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations provided by the embodiments described above.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

Wherein the computer storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.

Since the instructions stored in the computer storage medium can execute the steps in any live broadcast interaction method provided in the embodiment of the present application, beneficial effects that can be achieved by any live broadcast interaction method provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.

The live broadcast interaction method, the live broadcast interaction device, the storage medium and the computer device provided by the embodiment of the application are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:消息发送方法、电视机和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类