Disclosure of Invention
The application aims to meet the requirements of users and provides a live gift interaction method, and further relates to a corresponding device, equipment, a nonvolatile storage medium and a computer program product of the method.
In order to achieve the purpose of the application, the following technical scheme is adopted:
the application provides a live gift interaction method which is suitable for the purpose of the application, and comprises the following steps:
Responding to a bullet screen special effect gift presentation event triggered by a user side in a current live broadcasting room, and acquiring gift information of the bullet screen special effect gift presentation event;
Detecting the bullet screen special effect activity state of the current live broadcasting room, and if the bullet screen special effect activity is started in the current live broadcasting room, prolonging the activity duration of the bullet screen special effect activity;
if the barrage special effect activity is not started in the current live broadcasting room, barrage special effect information corresponding to the gift information is obtained and pushed to all user ends in the current live broadcasting room, and the barrage special effect style corresponding to the barrage special effect information is started in the current live broadcasting room by all the user ends.
In a further embodiment, the step of responding to a bullet screen special effect gift-gifting event triggered by a user terminal in the current live broadcasting room and acquiring gift information of the bullet screen special effect gift-gifting event includes the following steps:
acquiring a bullet screen special effect gift giving instruction pushed by a user side in a current live broadcasting room, and acquiring a user point of the user side;
Acquiring gift consumption points corresponding to the bullet screen special effect gift giving instruction, and judging whether the user points are larger than the gift consumption points or not;
and if the user integral is larger than the gift consumption integral, deducting the gift consumption integral from the user integral, and triggering a bullet screen special effect gift giving event of the bullet screen special effect gift giving instruction.
In a further embodiment, the step of detecting the status of the bullet screen special effect activity in the current live broadcasting room, and if the bullet screen special effect activity is started in the current live broadcasting room, extending the activity duration of the bullet screen special effect activity includes the following steps:
acquiring bullet screen special effect activity state information of a current live broadcasting room, and acquiring the activity level of the bullet screen special effect activity which is currently started when the bullet screen special effect activity state information is characterized as an activity starting state;
Judging whether the activity level is higher than the gift level represented by the gift level information, if so, acquiring the amplification time length corresponding to the gift level information contained in the gift information;
and correspondingly prolonging the activity duration of the barrage special effect activity according to the amplification duration.
In a further embodiment, the step of obtaining the bullet screen special effect information corresponding to the gift information and pushing the bullet screen special effect information to each user side in the current live broadcasting room if the live broadcasting room does not start the bullet screen special effect activity includes the following steps:
Acquiring a target bullet screen special effect pattern identifier corresponding to gift grade information contained in the gift information;
inquiring bullet screen special effect patterns corresponding to the target bullet screen special effect pattern identifiers in a virtual gift special effect library;
And pushing the bullet screen special effect style to each user side in the current live broadcasting room as bullet screen special effect information.
In a further embodiment, the step of enabling, by each of the clients, the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room includes the following steps:
Acquiring a target bullet screen special effect pattern identifier contained in the bullet screen special effect information, and inquiring a target bullet screen special effect pattern corresponding to the target bullet screen special effect pattern identifier in a local virtual gift special effect library;
Outputting the target barrage special effect style to a barrage style selection window for display;
And responding to a selected instruction acting on the target bullet screen special effect style in the bullet screen style selected window, and taking the target bullet screen special effect style as an output bullet screen special effect style.
In a further embodiment, after the step of enabling the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room by each user side, the method includes the following steps:
Receiving public screen bullet screen information pushed by a user terminal in a current live broadcasting room, and detecting whether bullet screen information contains bullet screen special effect pattern identifiers or not;
when the bullet screen information contains bullet screen special effect pattern marks, detecting bullet screen special effect activity states of the current live broadcasting room;
And if the live broadcasting room starts the barrage special effect activity, broadcasting the barrage chat text and the barrage special effect pattern identification contained in the public screen barrage information to the live broadcasting room so as to drive each user terminal in the live broadcasting room to output the barrage chat text for display in the barrage special effect pattern corresponding to the barrage special effect pattern identification.
In a further embodiment, after the step of enabling the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room by each user side, the method includes the following steps:
monitoring the activity duration of bullet screen special effect activity started in the current live broadcasting room;
Triggering and responding to a bullet screen special effect activity ending event acted on the current live broadcasting room when the activity duration is ended, and stopping pushing bullet screen special effect information corresponding to the bullet screen special effect activity to push to all user ends in the current live broadcasting room;
Traversing each piece of un-pushed public screen bullet screen information in a bullet screen list acted on a current live broadcasting room, determining each piece of un-pushed public screen bullet screen information with bullet screen special effect pattern identifiers, and removing the bullet screen special effect pattern identifiers in each piece of un-pushed public screen bullet screen information.
A direct broadcast gift interaction device according to the present application includes:
The system comprises a gift information acquisition module, a display module and a display module, wherein the gift information acquisition module is used for responding to a bullet screen special effect gift presentation event triggered by a user terminal in a current live broadcasting room and acquiring gift information of the bullet screen special effect gift presentation event;
the live broadcasting system comprises an activity duration extension module, a live broadcasting system and a live broadcasting system, wherein the activity duration extension module is used for detecting the live broadcasting special effect activity state of the current live broadcasting room, and if the live broadcasting room starts the live broadcasting special effect activity, the activity duration of the live broadcasting special effect activity is prolonged;
and the bullet screen style pushing module is used for acquiring bullet screen special effect information corresponding to the gift information and pushing the bullet screen special effect information to each user side in the current live broadcasting room if the bullet screen special effect activity is not started in the current live broadcasting room, so that each user side starts the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room.
In a further embodiment, the gift information acquisition module includes:
the user point obtaining sub-module is used for obtaining a bullet screen special effect gift giving instruction pushed by a user side in a current live broadcasting room and obtaining a user point of the user side;
The user integral judging sub-module is used for acquiring gift consumption integral corresponding to the bullet screen special effect gift giving instruction and judging whether the user integral is larger than the gift consumption integral or not;
And the bullet screen gift giving sub-module is used for deducting the gift consumption integral from the user integral and triggering a bullet screen special effect gift giving event of the bullet screen special effect gift giving instruction if the user integral is larger than the gift consumption integral.
In a further embodiment, the activity duration extension module includes:
The activity level acquisition sub-module is used for acquiring the bullet screen special effect activity state information of the current live broadcasting room, and acquiring the activity level of the bullet screen special effect activity which is currently started when the bullet screen special effect activity state information is characterized as an activity starting state;
the gift level judging sub-module is used for judging whether the activity level is higher than the gift level represented by the gift level information, and if so, acquiring the amplification time length corresponding to the gift level information contained in the gift information;
and the activity duration extension sub-module is used for correspondingly extending the activity duration of the barrage special effect activity according to the amplification duration.
In a further embodiment, the bullet screen style pushing module includes:
the style identification acquisition sub-module is used for acquiring a target bullet screen special effect style identification corresponding to gift grade information contained in the gift information;
The special effect pattern inquiring sub-module is used for inquiring a bullet screen special effect pattern corresponding to the target bullet screen special effect pattern mark in the virtual gift special effect library;
And the bullet screen special effect pushing sub-module is used for pushing the bullet screen special effect style to each user end in the current live broadcasting room as bullet screen special effect information.
In a preferred embodiment, the bullet screen style pushing module further includes:
The special effect style inquiry sub-module is used for acquiring a target barrage special effect style identifier contained in the barrage special effect information and inquiring a target barrage special effect style corresponding to the target barrage special effect style identifier in the local virtual gift special effect library;
the bullet screen style display sub-module is used for outputting the target bullet screen special effect style to a bullet screen style selection window for display;
and the bullet screen style selection sub-module is used for responding to a selection instruction acting on the target bullet screen special effect style in the bullet screen style selection window and taking the target bullet screen special effect style as an output bullet screen special effect style.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor is caused to execute the steps of the live gift interaction method.
To solve the above technical problem, an embodiment of the present application further provides a storage medium storing computer readable instructions, where the computer readable instructions when executed by one or more processors cause the one or more processors to execute the steps of the live gift interaction method described above.
In order to solve the above technical problem, an embodiment of the present application further provides a computer program product, which includes a computer program and computer instructions, where the computer program and the computer instructions, when executed by a processor, cause the processor to execute the steps of the live gift interaction method.
Compared with the prior art, the application has the following advantages:
the live broadcasting platform is provided with a novel virtual gift, the novel virtual gift is linked with the barrage chat text in the live broadcasting room, so that the interestingness of the virtual gift service of the live broadcasting platform is improved, a user of the live broadcasting room can interact with a host user by using the virtual gift service, the barrage special effect gift can be presented to the host user by the user in the live broadcasting room, barrage special effect activities are started in the live broadcasting room, when the barrage special effect activities are started in the live broadcasting room, the platform opens barrage special effect style usage rights associated with the presented barrage special effect gift to the user in the live broadcasting room, compared with barrage type gifts existing on part of the platform, the barrage special effect style corresponding to the barrage special effect gift can be used by all audience users in the live broadcasting room in a self-defined mode for beautifying the barrage text pushed to the live broadcasting room, and the barrage special effect text can be pushed to the host user instead of the traditional barrage type gifts, so that the live broadcasting sense of the barrage special effect text in the live broadcasting room can be improved through the barrage special effect activities started in the live broadcasting room.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As used herein, "client," "terminal device," and "terminal device" are understood by those skilled in the art to include both devices that include only wireless signal receivers without transmitting capabilities and devices that include receiving and transmitting hardware capable of two-way communication over a two-way communication link. Such devices may include cellular or other communication devices such as Personal computers, tablet computers, cellular or other communication devices having a single-wire or multi-wire display or no multi-wire display, PCS (Personal Communications Service, personal communication system) which may combine voice, data processing, facsimile and/or data communication capabilities, PDA (Personal DIGITAL ASSISTANT ) which may include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System ) receiver, conventional laptop and/or palmtop computers or other devices having and/or including a radio frequency receiver. As used herein, "client," "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, a "client," "terminal device," or "terminal device" may also be a communication terminal, an internet terminal, or a music/video playing terminal, for example, may be a PDA, a MID (Mobile INTERNET DEVICE ), and/or a Mobile phone with a music/video playing function, or may also be a device such as a smart tv, a set top box, or the like.
The application refers to hardware such as a server, a client, a working node and the like, which essentially is an electronic device with personal computer and other functions, and is a hardware device with necessary components disclosed by von neumann principles such as a central processing unit (comprising an arithmetic unit and a controller), a memory, an input device, an output device and the like, wherein a computer program is stored in the memory, and the central processing unit calls the program stored in the external memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing specific functions.
It should be noted that the concept of the present application, called "server", is equally applicable to the case of server clusters. The servers should be logically partitioned, physically separate from each other but interface-callable, or integrated into a physical computer or group of computers, according to network deployment principles understood by those skilled in the art. Those skilled in the art will appreciate this variation and should not be construed as limiting the implementation of the network deployment approach of the present application.
Referring to fig. 1, the hardware base required for implementing the related technical solution of the present application may be deployed according to the architecture shown in the figure. The server 80 of the present application is deployed at the cloud as an online server, and may be responsible for further connecting to related data servers and other servers providing related support, so as to form a logically related service cluster, to provide services for related terminal devices, such as a smart phone 81 and a personal computer 82 shown in the figure, or a third party server (not shown). The smart phone and the personal computer can access the internet through a well-known network access mode, and establish a data communication link with the cloud server 80 so as to run a terminal application program related to the service provided by the server.
For the server, the application program is usually constructed as a service process, and a corresponding program interface is opened for remote call of the application program running on various terminal devices.
The application program refers to an application program running on a server or terminal equipment, the application program adopts a programming mode to realize the related technical scheme of the application, the program codes of the application program can be stored in a nonvolatile storage medium which can be identified by a computer in the form of computer executable instructions, and the program codes are called by a central processing unit to run in a memory, and the related device of the application is constructed by the running of the application program on the computer.
For the server, the application program is usually constructed as a service process, and a corresponding program interface is opened for remote call of the application program running on various terminal devices.
It will be appreciated by those skilled in the art that the various methods of the application, although described based on the same concepts as one another in common, may be performed independently of one another unless otherwise indicated. Similarly, for the various embodiments disclosed herein, all concepts described herein are presented based on the same general inventive concept, and thus, concepts described herein with respect to the same general inventive concept, and concepts that are merely convenient and appropriately modified, although different, should be interpreted as equivalents.
Referring to fig. 2, in an exemplary embodiment of the present application, a method for interacting with a live gift includes the following steps:
Step S11, responding to a bullet screen special effect gift presentation event triggered by a user side in a current live broadcasting room, and acquiring gift information of the bullet screen special effect gift presentation event:
The bullet screen special effect gift event is triggered by a user terminal in the current live broadcasting room, the user terminal in the current live broadcasting room selects bullet screen special effect gifts with corresponding gift levels, and after the selected bullet screen special effect gifts are presented to a host user in the current live broadcasting room, the bullet screen special effect gifts pointed to the bullet screen special effect gifts are triggered, specifically, please refer to fig. 3, and the user in the live broadcasting room triggers the bullet screen special effect gifts gift event through the bullet screen special effect gifts presentation window 301 shown in fig. 3.
After responding to the bullet screen special effect gift presentation event, the server acquires bullet screen special effect gift corresponding to the bullet screen special effect gift presentation event, checks whether the user point of the user side triggering the bullet screen special effect gift presentation event is enough to offset the gift consumption point corresponding to the bullet screen special effect gift, specifically, acquires a bullet screen special effect gift presentation instruction pushed by the user side in the current living room, acquires the user point of the user side, acquires the gift consumption point corresponding to the bullet screen special effect gift presentation instruction, judges whether the user point is larger than the gift consumption point, if so, pushes notification information representing the shortage of the user point to the user side, if so, deducts the gift consumption point from the user point, and triggers the bullet screen special effect gift presentation event of the bullet screen special effect gift presentation instruction.
After responding to the bullet screen special effect gift presentation event, acquiring gift information contained in the bullet screen special effect gift presentation event, wherein the gift information is used for representing bullet screen special effect gifts corresponding to the bullet screen special effect gift presentation event.
In an embodiment, the bullet screen special effect gifts with different gift levels are provided in the living broadcast room for the user to select and give, that is, different bullet screen special effect gifts have the gift level information representing the respective gift levels, the gift information of different bullet screen special effect gifts generally includes the corresponding gift level information, the bullet screen special effect gifts with different gift level information can be started, the bullet screen special effect events with different activity levels in the living broadcast room can be started, please refer to fig. 3, the graphical user interface shown in fig. 3 is the living broadcast room interface of the user in the current living broadcast room, and after the audience user at the user side selects the bullet screen special effect gifts with the level 2 gifts 302 through the bullet screen special effect gifts giving window 301 and clicks the gift giving control 303, the bullet screen special effect gifts pointing to the bullet screen special effect gifts with the level 2 gifts 302 will be triggered.
Step S12, detecting the bullet screen special effect activity state of the current live broadcasting room, and if the bullet screen special effect activity is started in the current live broadcasting room, prolonging the activity duration of the bullet screen special effect activity:
After the server obtains the gift information of the currently presented bullet screen special effect gift, the bullet screen special effect activity state of the current live broadcasting room is detected, and the bullet screen special effect activity state can be divided into a bullet screen special effect activity state which is not started and a bullet screen special effect activity state which is started.
When the live broadcasting room is detected to start the bullet screen special effect activity, the activity duration of the bullet screen special effect activity which is started at present is prolonged, so that the duration of the bullet screen special effect activity in the live broadcasting room is prolonged, and the audience user in the live broadcasting room pushes the public screen bullet screen information by using the bullet screen special effect style corresponding to the gift information.
In one embodiment, different barrage special effects activities have corresponding activity levels, the barrage special effects activities of different activity levels are triggered by barrage special effects gifts of different gift level information, it can be understood that the barrage special effects activity state in the current live broadcasting room is related to barrage special effects gifts presented by a user terminal in the current live broadcasting room, and the barrage special effects gifts of different gift level information will start the barrage special effects activities of different activity levels.
Referring to fig. 3, as known from the bullet screen effect gift presentation window 301 shown in fig. 3, the live broadcast room corresponding to the live broadcast room interface shown in fig. 3 provides 3 bullet screen effect gifts with different levels of gifts, so that the user terminal in the live broadcast room triggers and opens the bullet screen effect activities with different levels of activities, and the bullet screen effect activities with different levels of activities will have different bullet screen effect styles for the user terminal in the live broadcast room, such as the bullet screen effect gifts with different levels of gifts in the bullet screen effect gifts presentation window 301 shown in fig. 3 display the corresponding bullet screen effect styles for the audience user to refer to, so that the audience user selects different bullet screen effect gifts to learn usable bullet screen effect styles through the bullet screen effect gifts presentation window 301.
After the gift class information of the currently presented bullet screen special effect gift is obtained, determining whether the activity class of the opened bullet screen special effect activity is higher than the class represented by the gift class information or not according to the bullet screen special effect activity state of the current live broadcasting room, and if so, indicating that the currently presented bullet screen special effect gift cannot open the bullet screen special effect activity with higher activity class in the current live broadcasting room, wherein at the moment, the activity duration of the opened bullet screen special effect activity in the current live broadcasting room is prolonged according to the gift class information of the bullet screen special effect gift.
The time length of the bullet screen special effect gift with different gift class information can be prolonged, the time length of the bullet screen special effect gift with lower gift class is generally different, the time length of the bullet screen special effect gift with lower gift class is generally smaller than the time length of the bullet screen special effect gift with higher gift class, for example, when the gift class information of the bullet screen special effect gift is divided into 3 types of gift classes, the time length of the bullet screen special effect gift with different gift classes is characterized in that the time length of the bullet screen special effect event with the activity classes of 1, 2 and3 can be prolonged for 1 minute, the time length of the bullet screen special effect event with the activity classes of 2 and3 is characterized in that the time length of the bullet screen special effect event with the activity class of 2 and3 can be prolonged for 2 minutes, and the time length of the bullet screen special effect event with the activity class of 3 can be prolonged for 3 minutes.
Step S13, if the bullet screen special effect activity is not started in the current live broadcasting room, bullet screen special effect information corresponding to the gift information is obtained and pushed to all user ends in the current live broadcasting room, and the bullet screen special effect style corresponding to the bullet screen special effect information is started in the current live broadcasting room by all the user ends:
When the condition that the live broadcasting room does not start the live broadcasting special effect activity is determined by detecting the live broadcasting special effect activity state of the live broadcasting room, the server starts the live broadcasting special effect activity for the live broadcasting room.
When the server starts the bullet screen special effect activity of the current live broadcasting room, the server opens the use right of the bullet screen special effect pattern corresponding to the bullet screen special effect activity to all user ends in the current live broadcasting room, the bullet screen special effect pattern can be issued to each user end in the current live broadcasting room by the server, or the bullet screen special effect pattern identification of the bullet screen special effect pattern is pushed to each user end, the user end obtains the bullet screen special effect pattern according to the bullet screen special effect pattern identification to use, and specifically, when the bullet screen special effect pattern is pushed to each user end in the current live broadcasting room by the server, the server obtains the target bullet screen special effect pattern identification of the gift information to inquire the bullet screen special effect pattern corresponding to the target bullet screen special effect pattern identification from the virtual gift special effect library, and then the bullet screen special effect pattern is pushed to each user end in the current live broadcasting room as bullet screen special effect information, so that each user end obtains the bullet screen special effect pattern to use.
When the bullet screen special effect patterns are local files stored in the current live broadcasting room at the user side, after the user side obtains the bullet screen special effect information pushed by the server, analyzing the bullet screen special effect information to obtain target bullet screen special effect pattern identifiers contained in the bullet screen special effect information, inquiring target bullet screen special effect patterns corresponding to the target bullet screen special effect pattern identifiers from a local virtual gift special effect library, and outputting the target bullet screen special effect patterns to a bullet screen pattern selection window for display, so that the target bullet screen special effect patterns are used as output bullet screen special effect patterns in response to a selection instruction acting on the target bullet screen special effect patterns in the bullet screen pattern selection window.
When the server determines that the live broadcasting room does not start the live specific actions of any action level or the activity level of the started live specific actions is lower than the gift level information of the live specific gift currently presented by the live broadcasting room by detecting the live specific action state of the live broadcasting room, the server starts the live specific actions of the live broadcasting room of the action level corresponding to the gift level information of the live specific gift currently presented by the live broadcasting room.
When the server starts the barrage special effect activity of the current live broadcasting room, the server opens the use right of the barrage special effect style corresponding to the gift grade information corresponding to the barrage special effect activity to all the user terminals in the current live broadcasting room.
Referring to fig. 4, after the bullet screen special effect style is obtained in the current live broadcasting room, the bullet screen special effect style is output to the bullet screen style selection window for display, as in the live broadcasting room interface shown in fig. 4, when the gift grade information corresponding to the bullet screen special effect style obtained by the user terminal is 2, the displayed grade 2 style 402 is displayed in the bullet screen style selection window 401 shown in fig. 4, the bullet screen special effect style with the gift grade information of 2 is displayed at the displayed grade 2 style 402 for reference by the user, when the user selects the displayed grade 2 style 402 through the displayed bullet screen style selection window 401 and clicks or touches the displayed using style control 403, the user terminal starts the bullet screen special effect activity with the activity grade of 2 or higher in the current live broadcasting room, and pushes the bullet screen text displayed by using the grade 2 style 402 to the live broadcasting window and the public chat area for display.
Referring to fig. 4 and 5, after the user side edits the barrage chat text with the chat text editing control 501 shown in fig. 5 to be "anchor evening |", and sends the barrage chat text, the barrage chat text shown in the barrage special effect style of the shown level 2 style 402 is displayed in the live broadcast stream playing window 502 shown in fig. 5 as the barrage 503 of "anchor evening |", and the barrage chat text shown in the barrage special effect style of the shown level 2 style 402 is displayed in the public chat area 504 as the public chat text 505 of "anchor evening |".
The method comprises the steps that a server receives public screen bullet screen information pushed by a user end in a current live broadcasting room and broadcasts corresponding public screen bullet screen information after opening the use right of bullet screen special effect patterns corresponding to gift grade information corresponding to bullet screen special effect activities to all user ends in the current live broadcasting room, specifically, the server receives the public screen bullet screen information pushed by the user end in the current live broadcasting room, detects whether bullet screen special effect pattern identifiers are contained in the public screen bullet screen information, detects bullet screen special effect activity states of the current live broadcasting room when bullet screen special effect pattern identifiers are contained in the public screen bullet screen information, and broadcasts bullet screen chat text and bullet screen special effect pattern identifiers contained in the public screen bullet screen information to the current live broadcasting room if bullet screen special effect activities are started in the current live broadcasting room so as to drive all user ends in the current live broadcasting room to output bullet screen chat text display according to the bullet screen special effect patterns corresponding to the bullet screen special effect pattern identifiers.
According to the method, a novel virtual gift is provided for a live broadcasting platform, the novel virtual gift is linked with a barrage chat text in a live broadcasting room, so that interestingness of virtual gift services of the live broadcasting platform is improved, a user of the live broadcasting room can interact with a host user through the virtual gift services, the barrage special effect gift can be given to the host user by the user in the live broadcasting room, barrage special effect activities are started in the live broadcasting room, when the barrage special effect activities are started in the live broadcasting room, the platform opens barrage special effect style usage rights associated with the given barrage special effect gift to the user in the live broadcasting room, compared with barrage type gifts existing in part of the live broadcasting room, the barrage special effect style corresponding to the barrage special effect gift can be used in a customized mode by all audience users in the live broadcasting room for beautifying the customized barrage text pushed to the live broadcasting room, and the barrage special effect style gifts can only push the barrage text, so that live broadcasting feeling atmosphere in the live broadcasting room can be improved through the live broadcasting room.
Secondly, the bullet screen special effect gift of the method has different gift grades, bullet screen special effect activities of different gift grades can be started in the direct broadcasting room, so that the types of the bullet screen special effect gift are enriched, the bullet screen special effect gift of different gift grades also corresponds to different types of bullet screen special effect styles, bullet screen chat texts displaying bullet screen special effect styles of different types not only beautify the impression of the direct broadcasting room, but also improve the identification degree of different bullet screen chat texts in the direct broadcasting room interface.
The above exemplary embodiments and variations thereof fully disclose embodiments of the present application of the live gift interaction method, but various variations of the method may still be deduced by transforming and augmenting some technical means, as follows outline other embodiments:
In one embodiment, referring to fig. 3 and 6, the step of responding to a bullet screen specific gift-gifting event triggered by a user terminal in a current living broadcast room and acquiring gift information of the bullet screen specific gift-gifting event includes the following steps:
step S111, a bullet screen special effect gift giving instruction pushed by a user side in a current live broadcasting room is obtained, and a user point of the user side is obtained:
Referring to fig. 3, when a user performs presentation through the presentation window 301, the server pushes the presentation instruction of the selected specific gift on the screen, and after responding to the presentation instruction, the server obtains the user score of the user pushing the instruction.
The user points refer to points which can be used by a user terminal in a live broadcast platform, and the user points can be used by the user terminal to which the user points belong for giving different virtual gifts to a host user in a live broadcast room.
Step S112, acquiring a gift consumption integral corresponding to the bullet screen special effect gift giving instruction, and judging whether the user integral is greater than the gift consumption integral:
When the user integral of the user side pushing the bullet screen special effect gift presentation instruction is obtained, the gift consumption integral of the bullet screen special effect gift corresponding to the bullet screen special effect gift presentation instruction is also obtained, and whether the user integral is larger than the gift consumption integral is further judged, so that whether the user side can present the bullet screen special effect gift to a host user in a current live broadcasting room is determined.
Step S113, if the user score is greater than the gift consumption score, deducting the gift consumption score from the user score, and triggering a bullet screen special effect gift gifting event of the bullet screen special effect gift gifting instruction:
If the user point owned by the user terminal is larger than the gift consumption point of the bullet screen special effect gift, the server deducts the gift consumption point from the user point and triggers a bullet screen special effect gift giving event of the bullet screen special effect gift so as to respond to the bullet screen special effect gift giving event, give the bullet screen special effect gift selected by the user terminal to a host user in the current live broadcasting room, and start the corresponding bullet screen special effect activity in the current live broadcasting room or prolong the started bullet screen special effect activity.
In this embodiment, when the user terminal gives the bullet screen special effect gift to the anchor user in the live broadcasting room, the server will check whether the user point of the user terminal is enough to cancel the gift consumption point of the given bullet screen special effect gift, so as to determine whether the user terminal has the activity duration of opening the bullet screen special effect activity in the live broadcasting room or extending the opened bullet screen special effect activity.
In an embodiment, referring to fig. 7, the step of detecting the status of the bullet screen special effect activity of the current live broadcasting room, and if the bullet screen special effect activity has been started in the current live broadcasting room, extending the activity duration of the bullet screen special effect activity includes the following steps:
Step S121, acquiring the bullet screen special effect activity state information of the current live broadcasting room, and when the bullet screen special effect activity state information is characterized as an activity starting state, acquiring the activity level of the bullet screen special effect activity which is currently started:
The server responds to the bullet screen special effect gift giving event in the current live broadcasting room, acquires the current state information of bullet screen special effect events in the current live broadcasting room after acquiring the gift level information of the bullet screen special effect gift corresponding to the event, and judges whether the bullet screen special effect event and the activity level of the opened bullet screen special effect event are started in the current live broadcasting room.
Step S122, determining whether the activity level is higher than the gift level represented by the gift level information, and if so, acquiring an amplification duration corresponding to the gift level information included in the gift information:
The amplifying duration refers to the duration that the gift class of the bullet screen special effect gift can be prolonged for the corresponding bullet screen special effect activity, the duration that the bullet screen special effect gift with different gift class information can be prolonged is generally different, the duration that the bullet screen special effect gift with lower gift class can be prolonged is generally smaller than the duration that the bullet screen special effect gift with higher gift class is delayed, for example, when the gift class information of the bullet screen special effect gift is divided into 3 types of gift classes, the duration that the gift class information is characterized in that the gift class 1 can be prolonged for the bullet screen special effect activity with the activity classes of 1,2 and 3 is prolonged for 1 minute, the duration that the bullet screen special effect gift with the activity class 2 is prolonged for the activity class of 2 and 3 is prolonged for 2 minutes, the duration that the bullet screen special effect gift with the activity class 3 is prolonged for 3 minutes, and of course, the technicians in the field can flexibly design the bullet screen special effect gift with different classes corresponding to the amplifying duration, which is not good for the user.
Step S123, correspondingly extending the activity duration of the barrage special effect activity according to the amplification duration:
acquiring the amplification time length corresponding to the gift grade information of the currently presented bullet screen special effect gift, and prolonging the activity time length of the started bullet screen special effect activity in the current live broadcasting room based on the amplification time length.
In this embodiment, the bullet screen special effect gifts with different gift classes can prolong the activity duration of the bullet screen special effect activities opened in the living broadcast room to be different, so as to prompt the distinctiveness of the bullet screen special effect gifts, and facilitate the user to select the corresponding bullet screen special effect gifts for giving according to the own needs, so as to prolong the corresponding activity duration of the bullet screen special effect activities.
In an embodiment, please refer to fig. 8, the step of obtaining the bullet screen special effect information corresponding to the gift information and pushing the bullet screen special effect information to each user side in the current live broadcasting room if the live broadcasting room does not start the bullet screen special effect activity includes the following steps:
step S131, obtaining a target barrage special effect style identifier corresponding to the gift class information contained in the gift information:
After determining that the activity level of the bullet screen special effect activity which is not started or is started in the current live broadcasting room is lower than that of the bullet screen special effect gift which is presented at present, the server acquires the target bullet screen special effect style mark corresponding to the gift level information of the bullet screen special effect gift.
Step S132, inquiring a bullet screen special effect pattern corresponding to the target bullet screen special effect pattern mark in a virtual gift special effect library:
The virtual gift effect library stores the mapping relation data formed by the bullet screen effect pattern identifiers and bullet screen effect patterns, so that the server queries bullet screen effect patterns corresponding to the bullet screen effect pattern identifiers from the virtual gift effect library according to the bullet screen effect pattern identifiers of the bullet screen effect gift which is presented at present.
Step S133, pushing the bullet screen special effect style to each user side in the current live broadcasting room as bullet screen special effect information:
after a bullet screen special effect pattern corresponding to the bullet screen special effect pattern identification of the bullet screen special effect gift which is presented at present is inquired from the virtual gift special effect library, the bullet screen special effect pattern is obtained, and the bullet screen special effect pattern is pushed to all user terminals in a current live broadcasting room as the bullet screen special effect information, so that each user terminal obtains the bullet screen special effect pattern to push the bullet screen.
In this embodiment, the server is responsible for broadcasting the bullet screen special effect pattern of the bullet screen special effect activity currently opened to the live broadcasting room, so that the user side in the live broadcasting room obtains the bullet screen special effect pattern to push the bullet screen, and it can be seen that the bullet screen special effect pattern can be updated to the user side, and the bullet screen special effect pattern can be used without the user side updating the live broadcasting application program.
In an embodiment, referring to fig. 4, fig. 5, and fig. 9, in the step of enabling the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room, the method includes the following steps:
Step S131', a target bullet screen special effect pattern identifier contained in the bullet screen special effect information is obtained, and a target bullet screen special effect pattern corresponding to the target bullet screen special effect pattern identifier in a local virtual gift special effect library is inquired out:
the local virtual gift effect library stores the mapping relation data formed by the bullet screen effect pattern identifiers and bullet screen effect patterns, so that a user side queries bullet screen effect patterns corresponding to the bullet screen effect pattern identifiers from the virtual gift effect library according to target bullet screen effect pattern identifiers contained in the bullet screen effect information pushed by the server.
Step S132', outputting the target barrage special effect style to a barrage style selection window for display:
Referring to fig. 4, after the bullet screen special effect style is obtained in the current live broadcasting room, the bullet screen special effect style is output to the bullet screen style selection window for display, as in the live broadcasting room interface shown in fig. 4, when the gift grade information corresponding to the bullet screen special effect style obtained by the user terminal is 2, the displayed grade 2 style 402 is displayed in the bullet screen style selection window 401 shown in fig. 4, the bullet screen special effect style with the gift grade information of 2 is displayed at the displayed grade 2 style 402 for reference by the user, when the user selects the displayed grade 2 style 402 through the displayed bullet screen style selection window 401 and clicks or touches the displayed using style control 403, the user terminal starts the bullet screen special effect activity with the activity grade of 2 or higher in the current live broadcasting room, and pushes the bullet screen text displayed by using the grade 2 style 402 to the live broadcasting window and the public chat area for display.
Step S133', in response to a selection instruction acting on the target bullet screen special effect pattern in the bullet screen pattern selection window, taking the target bullet screen special effect pattern as an output bullet screen special effect pattern:
Referring to fig. 4 and 5, after the user side edits the barrage chat text with the chat text editing control 501 shown in fig. 5 to be "anchor evening |", and sends the barrage chat text, the barrage chat text shown in the barrage special effect style of the shown level 2 style 402 is displayed in the live broadcast stream playing window 502 shown in fig. 5 as the barrage 503 of "anchor evening |", and the barrage chat text shown in the barrage special effect style of the shown level 2 style 402 is displayed in the public chat area 504 as the public chat text 505 of "anchor evening |".
In this embodiment, the bullet screen special effect style is stored locally at the user side, so that the user side does not need to download the bullet screen special effect style, network traffic of the user side is saved, and the user side pushes the bullet screen by using the bullet screen special effect style corresponding to the bullet screen special effect activity currently opened in the live broadcasting room, so as to enrich the display effect of the live broadcasting room, and prompt the live broadcasting atmosphere of the live broadcasting room.
In an embodiment, referring to fig. 5 and fig. 10, after the step of enabling the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room by each user side, the method includes the following steps:
Step S14, receiving public screen bullet screen information pushed by a user end in a current live broadcasting room, and detecting whether bullet screen information contains bullet screen special effect pattern identifiers or not:
When a server starts bullet screen special effect activities in a current live broadcasting room and opens the use right of bullet screen special effect patterns corresponding to the activity level of the bullet screen special effect activities to each user side in the current live broadcasting room, the user side pushes the public screen bullet screen information containing the bullet screen special effect pattern identifiers to the server so that bullet screen chat texts pushed by the user side are output to a live broadcasting room interface of the current live broadcasting room to be displayed in the display patterns of the bullet screen special effect patterns.
Step S15, when the bullet screen information contains bullet screen special effect pattern marks, detecting bullet screen special effect activity states of the current live broadcasting room:
When the bullet screen special effect pattern identifier is included in the bullet screen information, the user side for representing and pushing the bullet screen special effect pattern information displays the bullet screen chat text pushed by the user side by using the corresponding bullet screen special effect pattern, at the moment, the bullet screen special effect activity state of the current live broadcasting room is detected, if the bullet screen special effect activity in the current live broadcasting room is closed, the bullet screen chat text is not allowed to be output and displayed in the bullet screen special effect pattern corresponding to the bullet screen special effect pattern identifier, at the moment, only the bullet screen chat text is broadcasted to the current live broadcasting room, and if the bullet screen special effect activity state in the current live broadcasting room is in the opening state, the bullet screen chat text is output in the bullet screen special effect pattern corresponding to the bullet screen special effect pattern identifier.
Step S16, if the live broadcasting room starts the barrage special effect activity, broadcasting the barrage chat text and the barrage special effect pattern identification contained in the public screen barrage information to the live broadcasting room so as to drive each user end in the live broadcasting room to output the barrage chat text display according to the barrage special effect pattern corresponding to the barrage special effect pattern identification:
When the server detects that the live broadcasting room has started a live broadcasting effect activity according to the live broadcasting effect activity state of the live broadcasting room, and when the activity level of the live broadcasting effect activity is higher than or equal to the level of a gift corresponding to the live broadcasting effect style identified by the live broadcasting effect style, broadcasting a live broadcasting chat text and the live broadcasting effect style identified contained in the live broadcasting information to the live broadcasting room, so as to drive each user terminal in the live broadcasting room to output the live broadcasting chat text according to the live broadcasting effect style identified by the live broadcasting room, specifically, please refer to fig. 5, in the live broadcasting play window 502 shown by the live broadcasting effect style identified by the live broadcasting mode is displayed as a public screen chat text of "host good |", and in the public screen chat area 504, the live broadcasting chat text displayed by the live broadcasting effect style identified by the live broadcasting mode is displayed as a public screen chat text of "host good |".
In this embodiment, when the user side uses the bullet screen special effect style to push the bullet screen chat text, the server will check the bullet screen special effect activity state of the live broadcasting room, so as to prevent the bullet screen chat text displayed by using the bullet screen special effect style from being broadcast to the live broadcasting room when the bullet screen special effect activity is not started or stopped, and ensure the activity effectiveness of the bullet screen special effect activity.
In an embodiment, referring to fig. 11, after the step of enabling the bullet screen special effect style corresponding to the bullet screen special effect information in the current live broadcasting room by each user side, the method includes the following steps:
Step S14', monitoring the activity duration of the bullet screen special effect activity started in the current live broadcasting room:
The activity duration refers to the sustainable duration of the barrage special effect activity started in the current live broadcasting room, and if the activity duration of the barrage special effect activity is zero, the barrage special effect activity started in the current live broadcasting room is represented to be stopped.
Step S15', when the activity duration is over, triggering and responding to a bullet screen special effect activity end event acted on the current live broadcasting room, and stopping pushing bullet screen special effect information corresponding to the bullet screen special effect activity to push to all user ends in the current live broadcasting room:
When the activity duration of the barrage special effect activity started in the current live broadcasting room is zero, the fact that the barrage special effect activity started in the current live broadcasting room is ended is characterized, at the moment, a server triggers a response to the barrage special effect activity ending event acted on the current live broadcasting room, the barrage special effect information corresponding to the barrage special effect activity is stopped being pushed to each user side in the current live broadcasting room, and the user side is prevented from still obtaining the barrage special effect information but can not use a corresponding barrage special effect style to push the barrages, so that network traffic of the user side is wasted.
Step S16', traversing each piece of un-pushed public screen bullet screen information in a bullet screen list acting on a current live broadcasting room, determining each piece of un-pushed public screen bullet screen information with bullet screen special effect pattern marks, and removing the bullet screen special effect pattern marks in each piece of un-pushed public screen bullet screen information:
the public screen bullet screen information pushed to the current live broadcasting room is stored in the bullet screen list, the public screen bullet screen information is pushed by a user side in the current live broadcasting room, the user side for bullet screen pushing by using bullet screen special effect patterns corresponding to bullet screen special effect activities started in the current live broadcasting room pushes the public screen bullet screen information with bullet screen special effect pattern identifiers to a server, so that when the server broadcasts bullet screen chat texts contained in the public screen bullet screen information, bullet screen special effect pattern identifiers contained in the bullet screen chat texts can be broadcast simultaneously, and the bullet screen chat texts are output to a live broadcasting room interface of the current live broadcasting room to be displayed in the bullet screen special effect patterns.
When the bullet screen special effect activity started in the current live broadcasting room is finished, the server traverses bullet screen chatting texts which are not broadcast to the current live broadcasting room in the bullet screen list to determine the bullet screen special effect type identification of the bullet screen information, further removes the bullet screen special effect type identification of the bullet screen information, and prevents the bullet screen chatting texts contained in the bullet screen information from being output to the live broadcasting room interface of the current live broadcasting room for display in the bullet screen special effect type corresponding to the bullet screen special effect type identification.
In this embodiment, after the bullet screen special effect activity started in the live broadcasting room is finished, the bullet screen which is not pushed currently by the server stops broadcasting in the bullet screen special effect mode, so that bullet screen chat text displayed in the bullet screen special effect mode is still output to the live broadcasting room when the bullet screen special effect activity is stopped, and activity effectiveness of the bullet screen special effect activity is ensured.
Further, by performing functionalization on each step in the method disclosed in each embodiment, a live broadcast gift interaction device of the present application may be constructed, according to which, referring to fig. 12, in one exemplary embodiment, the device includes a gift information obtaining module 11 configured to obtain, in response to a bullet screen effect gift presentation event triggered by a user terminal in a current live broadcast room, gift information of the bullet screen effect gift presentation event, an activity duration extension module 12 configured to detect a bullet screen effect activity state in the current live broadcast room, and extend an activity duration of the bullet screen effect activity if the bullet screen effect activity is started in the current live broadcast room, and a bullet screen style pushing module 13 configured to obtain bullet screen effect information corresponding to the bullet screen effect information and push the bullet screen effect information to each user terminal in the current live broadcast room if the bullet screen effect activity is not started in the current live broadcast room, so that each user terminal enables a bullet screen effect style corresponding to the bullet screen effect information in the current live broadcast room.
In one embodiment, the gift information obtaining module 11 includes a user point obtaining sub-module configured to obtain a bullet screen special effect gift presentation instruction pushed by a user terminal in a current living broadcast room, obtain a user point of the user terminal, a user point judging sub-module configured to obtain a gift consumption point corresponding to the bullet screen special effect gift presentation instruction, judge whether the user point is greater than the gift consumption point, and a bullet screen gift presentation sub-module configured to deduct the gift consumption point from the user point and trigger a bullet screen special effect gift presentation event of the bullet screen special effect gift presentation instruction if the user point is greater than the gift consumption point.
In one embodiment, the activity duration extension module 12 includes an activity level obtaining sub-module configured to obtain the bullet screen special effect activity state information of the current live broadcasting room, obtain an activity level of the bullet screen special effect activity that is currently opened when the bullet screen special effect activity state information is characterized as an activity opening state, a gift level judging sub-module configured to judge whether the activity level is higher than a gift level characterized by the gift level information, and if so, obtain an amplification duration corresponding to the gift level information included in the gift information, and an activity duration extension sub-module configured to correspondingly extend the activity duration of the bullet screen special effect activity according to the amplification duration.
In one embodiment, the bullet screen style pushing module 13 includes a style identifier obtaining sub-module configured to obtain a target bullet screen special effect style identifier corresponding to the gift class information included in the gift information, a special effect style querying sub-module configured to query bullet screen special effect styles corresponding to the target bullet screen special effect style identifier in a virtual gift special effect library, and a bullet screen special effect pushing sub-module configured to push the bullet screen special effect styles as bullet screen special effect information to each user terminal in a current live broadcasting room.
In another embodiment, the bullet screen style pushing module 13 further includes a special effect style query sub-module for obtaining a target bullet screen special effect style identifier included in the bullet screen special effect information, and querying a target bullet screen special effect style corresponding to the target bullet screen special effect style identifier in a local virtual gift special effect library, a bullet screen style display sub-module for outputting the target bullet screen special effect style to a bullet screen style selection window for display, and a bullet screen style selection sub-module for responding to a selection instruction acting on the target bullet screen special effect style in the bullet screen style selection window, and taking the target bullet screen special effect style as an output bullet screen special effect style.
In order to solve the technical problem, the embodiment of the application also provides a computer device for running a computer program realized according to the live gift interaction method. Referring specifically to fig. 13, fig. 13 is a basic structural block diagram of a computer device according to the present embodiment.
As shown in fig. 13, the internal structure of the computer device is schematically shown. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The nonvolatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store a control information sequence, and when the computer readable instructions are executed by a processor, the processor can realize a live gift interaction method. The processor of the computer device is used to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a method of live gift interaction. The network interface of the computer device is for communicating with a terminal connection. It will be appreciated by those skilled in the art that the structure shown in FIG. 13 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module/sub-module in the direct broadcast gift interaction device of the present application, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission between the user terminal or the server. The memory in this embodiment stores program codes and data required for executing all modules/sub-modules in the live gift interaction device, and the server can call the program codes and data of the server to execute the functions of all sub-modules.
The present application also provides a non-volatile storage medium, wherein the live gift interaction method is written as a computer program, and the computer program is stored in the storage medium in the form of computer readable instructions, and when the computer readable instructions are executed by one or more processors, the program means that the program runs in a computer, thereby causing the one or more processors to execute the steps of the live gift interaction method in any of the embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
In summary, the virtual gift related to the bullet screen style is provided for the platform, and the bullet screen special effect style is issued to all audience users in the live broadcasting room of the bullet screen special effect activity, so that the display impression of the bullet screen in the live broadcasting room is beautified, and the live broadcasting atmosphere of the live broadcasting room is improved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
Those of skill in the art will appreciate that the various operations, methods, steps in the flow, acts, schemes, and alternatives discussed in the present application may be alternated, altered, combined, or eliminated. Further, other steps, means, or steps in a process having various operations, methods, or procedures discussed herein may be alternated, altered, rearranged, disassembled, combined, or eliminated. Further, steps, measures, schemes in the prior art with various operations, methods, flows disclosed in the present application may also be alternated, altered, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.