CN114422815B - Live gift processing method, device, medium, equipment and program product - Google Patents

Live gift processing method, device, medium, equipment and program product Download PDF

Info

Publication number
CN114422815B
CN114422815B CN202210044415.3A CN202210044415A CN114422815B CN 114422815 B CN114422815 B CN 114422815B CN 202210044415 A CN202210044415 A CN 202210044415A CN 114422815 B CN114422815 B CN 114422815B
Authority
CN
China
Prior art keywords
gift
preset virtual
temperature data
virtual gift
live
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210044415.3A
Other languages
Chinese (zh)
Other versions
CN114422815A (en
Inventor
郭军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN202210044415.3A priority Critical patent/CN114422815B/en
Publication of CN114422815A publication Critical patent/CN114422815A/en
Application granted granted Critical
Publication of CN114422815B publication Critical patent/CN114422815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and a device for processing a live gift, a storage medium and computer equipment. According to the embodiment of the application, the corresponding Internet protocol address information of the anchor client is obtained, and the corresponding live broadcast area information is determined according to the Internet protocol address information; determining environment data of live region information; matching a corresponding type of preset virtual gift based on the environmental data; and sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room. According to the method, corresponding environment data of live broadcast area information of the anchor client can be matched in real time, the preset virtual gift related to the environment data is sent to the audience client corresponding to the anchor live broadcast room, so that the audience client can display and give the real-time preset virtual gift, the live broadcast interaction mode is enriched, and the live broadcast interaction effect is greatly improved.

Description

Live gift processing method, device, medium, equipment and program product
Technical Field
The application relates to the field of network live broadcast, in particular to a live broadcast gift processing method, a live broadcast gift processing device, a storage medium and computer equipment.
Background
With the development and popularization of the live broadcast industry, watching live broadcast becomes a daily entertainment mode of a plurality of users, and gift sending in a live broadcast room serves as an important payment function of the live broadcast room, so that the live broadcast system is an important feedback means of the preference degree of the users for live broadcast contents. At this time, in order to satisfy the requirement that the user adopts different kinds of live gifts to express different loving degrees to the live contents, the live broadcast room can set up different kinds of live gifts.
In the research and practice process of the prior art, the inventor discovers that the types of live broadcast gifts are fixed in the prior art, and the live broadcast interaction mode is single, so that the live broadcast interaction is poor.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing a live gift, a storage medium and computer equipment, which can promote the interactivity of live broadcast.
In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
A live gift processing method applied to a live gift processing system, the live gift processing system including a server and a viewer client, the method comprising:
The server acquires Internet protocol address information corresponding to the anchor client and determines corresponding live broadcast area information according to the Internet protocol address information; determining environment data of the live broadcast area information; matching a corresponding type of preset virtual gift based on the environmental data; transmitting the preset virtual gift to a viewer client so that the viewer server displays the preset virtual gift on a gift bar corresponding to a living broadcast room;
The audience client receives a preset virtual gift sent by the server, wherein the preset virtual gift is a virtual gift of a corresponding type matched with corresponding environment data of the server according to live broadcast area information of the anchor client; displaying the preset virtual gift on a gift bar corresponding to a living broadcast room; and responding to the touch operation of the preset virtual gift, and generating a gift instruction of the preset virtual gift.
A method of processing a live gift, comprising:
Acquiring Internet protocol address information corresponding to a host client, and determining corresponding live broadcast area information according to the Internet protocol address information;
Determining environment data of the live broadcast area information;
Matching a corresponding type of preset virtual gift based on the environmental data;
and sending the preset virtual gift to a client of the audience, so that the client of the audience displays the preset virtual gift on a gift bar corresponding to a living broadcast room.
A method of processing a live gift, comprising:
receiving a preset virtual gift sent by a server, wherein the preset virtual gift is a virtual gift of a corresponding type matched with corresponding environment data of information of a live broadcast area where a host client is located by the server;
displaying the preset virtual gift on a gift bar corresponding to a living broadcast room;
and responding to the touch operation of the preset virtual gift, and generating a gift instruction of the preset virtual gift.
A live gift processing device, comprising:
the acquisition unit is used for acquiring the Internet protocol address information corresponding to the anchor client and determining the corresponding live broadcast area information according to the Internet protocol address information;
A determining unit, configured to determine environmental data of the live broadcast area information;
The matching unit is used for matching the preset virtual gift of the corresponding type based on the environment data;
And the sending unit is used for sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room.
In some embodiments, the acquisition unit comprises:
the first acquisition subunit is used for acquiring the Internet protocol address information corresponding to the anchor client;
the second acquisition subunit is used for acquiring the corresponding global positioning system information of the anchor client;
And the determining subunit is used for determining the corresponding live broadcast area information according to the Internet protocol address information and the global positioning system information.
In some embodiments, the determining subunit is configured to:
When matching between the Internet protocol address information and the global positioning system information is detected, determining corresponding live broadcast area information according to the Internet protocol address information;
When the mismatch between the Internet protocol address information and the global positioning system information is detected, corresponding live broadcast area information is determined according to the global positioning system information.
In some embodiments, the matching unit is configured to:
the first acquisition subunit is used for acquiring a first type of preset virtual gift when the environment data is detected to be in a first preset range; and/or
The second acquisition subunit is used for acquiring a first type of preset virtual gift and a second type of preset virtual gift when the environment data is detected to be in a second preset range, wherein the first preset range is larger than the second preset range; and/or
And the third acquisition subunit is used for acquiring the first type of preset virtual gift, the second type of preset virtual gift and the third type of preset virtual gift when the environment data is detected to be in a third preset range, wherein the second preset range is larger than the third preset range.
In some embodiments, the apparatus further comprises a cancellation unit for:
when the environment data is detected not to be matched with the preset virtual gift of the corresponding type, generating a gift cancellation instruction;
And sending the gift cancellation instruction to the audience client so that the audience client cancels the preset virtual gift displayed on the gift bar corresponding to the living broadcast room.
A live gift processing device, comprising:
The receiving unit is used for receiving preset virtual gifts sent by the server, wherein the preset virtual gifts are virtual gifts of corresponding types matched with the corresponding environment data of the live broadcast area information of the anchor client;
the display unit is used for displaying the preset virtual gift on a gift bar corresponding to the living broadcast room;
the generation unit is used for responding to the touch operation of the preset virtual gift and generating a giving instruction of the preset virtual gift.
In some embodiments, the apparatus further comprises a cancellation unit:
receiving a cancel instruction sent by a server;
And canceling the preset virtual gift displayed on the gift bar corresponding to the living broadcast room according to the cancellation instruction.
A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the live gift processing method described above.
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 method of processing a live gift provided above when the computer program is executed.
According to the embodiment of the application, the corresponding Internet protocol address information of the anchor client is obtained, and the corresponding live broadcast area information is determined according to the Internet protocol address information; determining environment data of live region information; matching a corresponding type of preset virtual gift based on the environmental data; and sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room. According to the method, corresponding environment data of live broadcast area information of the anchor client can be matched in real time, the preset virtual gift related to the environment data is sent to the audience client corresponding to the anchor live broadcast room, so that the audience client can display and give the real-time preset virtual gift, the live broadcast interaction mode is enriched, and the live broadcast interaction effect is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a scene of a live gift processing system provided by an embodiment of the present application;
Fig. 2 is a flow chart of a method for processing a live gift according to an embodiment of the present application;
FIG. 2a is a schematic diagram of a live interface provided by an embodiment of the present application;
Fig. 3 is a flow chart of a method for processing a live gift according to an embodiment of the present application;
FIG. 3a is a schematic diagram of a live interface provided by an embodiment of the present application;
FIG. 3b is another schematic illustration of a live interface provided by an embodiment of the present application;
Fig. 4 is a schematic structural diagram of a live gift processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for processing live gifts according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a computer device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a method and a device for processing a live gift, a storage medium and computer equipment.
Referring to fig. 1, fig. 1 is a schematic view of a scene of a live gift processing system according to an embodiment of the present application, including: the audience client A, the anchor client B and the server C can be connected through a communication network, wherein the communication network comprises a wireless network and a wired network, and the wireless network comprises one or a combination of a plurality of wireless wide area networks, wireless local area networks, wireless metropolitan area networks and wireless personal area networks. The network includes network entities such as routers, gateways, etc., which are not shown. The audience client a and the anchor client B may interact with the server C via a communication network.
The server C in the live broadcast gift processing system can store the corresponding relation between the anchor client and each live broadcast room, and when the audience client A selects a live broadcast room, the server C sends live broadcast video streams corresponding to the anchor client to all audience clients in the same live broadcast room according to the corresponding relation between each live broadcast room and the anchor client B. The server C can be used for acquiring the Internet protocol address information corresponding to the anchor client and determining the corresponding live broadcast area information according to the Internet protocol address information; determining environment data of live region information; matching a corresponding type of preset virtual gift based on the environmental data; and sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room.
The live gift processing system may include a live gift processing device, which may be integrated in a terminal having a storage unit and a microprocessor and having an operation capability, such as a tablet computer, a mobile phone, a notebook computer, a desktop computer, etc., and the terminal may be provided with a client, such as a live client or a game client, and it should be noted that the live client may include a hosting client and a spectator client.
In fig. 1, the audience client a may be configured to receive a preset virtual gift sent by the server C, where the preset virtual gift is a virtual gift of a corresponding type that is matched by the server according to environment data corresponding to information of a live broadcast area where the anchor client is located; displaying a preset virtual gift on a gift bar corresponding to a living broadcast room; and responding to the touch operation of the preset virtual gift, and generating a gift instruction of the preset virtual gift.
It should be noted that, the schematic view of the scene of the live gift processing system shown in fig. 1 is only an example, and the live gift processing system and the scene described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of the live gift processing system and the appearance of the new service scene, the technical solution provided by the embodiments of the present application is equally applicable to similar technical problems.
The following will describe in detail.
Important word interpretation: the plurality of species means two or more than two species; and/or the representation may have three cases, for example a and/or B, the representation may include a alone, B alone, a and B together.
In the present embodiment, description will be made from the viewpoint of a live gift processing apparatus, which may be integrated in a server in particular.
Referring to fig. 2, fig. 2 is a flow chart of a method for processing a live gift according to an embodiment of the application. The method for processing the live gift comprises the following steps:
in step 101, internet protocol address information corresponding to the anchor client is obtained, and corresponding live broadcast region information is determined according to the internet protocol address information.
Wherein the internet protocol address information is an internet protocol address (Internet Protocol Address, IP address) of the anchor client; the live region information is the location information of the anchor client. Specifically, after the server obtains the internet protocol address information corresponding to the anchor client, the server determines the position information of the anchor client according to the internet protocol address information, wherein the position information is the live broadcast area information corresponding to the anchor client.
Alternatively, the location information of the anchor client, i.e., the live region information, may be accurate to the provincial administrative district, such as Guangdong province, hubei province, sichuan province, etc.; or can be accurate to a municipal district, such as Shenzhen city in Guangdong province, guangzhou city in Guangdong province, hunan province, changsha city, and the like; and can also be a county (district) level administrative district, such as a Shenzhen mountain district in Guangdong province, a Yuenu district in Hunan province and Changsha city, etc. It will be appreciated that the location information of the anchor client may also be accurate to smaller administrative areas, the smaller the administrative areas the more accurately the location of the anchor client.
In some embodiments, the live zone information of the anchor client may be determined from the anchor client's internet protocol address information using internet protocol address location techniques. Among other things, the internet protocol address location technique may include client-independent location algorithms (e.g., a speculative-based location algorithm, a spatial theory-based location algorithm, a probabilistic estimation-based location algorithm, etc.), a client-based location algorithm, and so forth.
Optionally, an internet protocol address location technology API (Application Programming Interface ) provided by the high-precision map may also be used to determine live region information of the anchor client from the anchor client's internet protocol address information. The high-precision map may be, for example, a Tencel map, a hundred-degree map, a Goldmap, a Google map, or the like.
In some embodiments, the determining corresponding live region information according to the internet protocol address information includes:
(1) Acquiring corresponding global positioning system information of a host client;
(2) And determining corresponding live broadcast area information according to the Internet protocol address information and the global positioning system information.
The global positioning system information is positioning data corresponding to the anchor client determined according to the global positioning system.
Specifically, after obtaining internet protocol address information of the anchor client and global positioning system information of the anchor client, the server determines live broadcast area information of the anchor client according to the internet protocol address information and the global positioning system information. Therefore, when the live region information of the anchor client fails to be determined according to the Internet protocol address information, the live region information of the anchor client can be determined through the global positioning system information, so that the situation that the live region information of the anchor client cannot be obtained is avoided.
In some embodiments, the determining corresponding live region information from the internet protocol address information and the global positioning system information includes:
(1.1) when a match between the internet protocol address information and the global positioning system information is detected, determining corresponding live region information according to the internet protocol address information;
(1.2) when a mismatch between the internet protocol address information and the global positioning system information is detected, determining corresponding live region information according to the global positioning system information.
Specifically, after obtaining the internet protocol address information and the global positioning system information, the server obtains the position information of the anchor client corresponding to the internet protocol address information and the global positioning system information, compares the obtained position information, and determines the live broadcast area information corresponding to the anchor client according to the comparison result.
If the comparison result is detected to meet the preset rule, the matching between the Internet protocol address information and the global positioning system information is indicated, namely the position information is similar, and more accurate position information can be obtained according to the Internet protocol address information. The corresponding live region information can thus be determined from the internet protocol address information, that is to say the location information of the anchor client determined from the internet protocol address information is used as live region information of the anchor client.
If the comparison result is detected to not meet the preset rule, the fact that the Internet protocol address information and the global positioning system information are not matched is indicated, namely the difference of the position information is too large, and the position information obtained according to the Internet protocol address information is not accurate enough. It is therefore necessary to determine corresponding live region information based on the global positioning system information, that is, to use the location information of the anchor client determined based on the global positioning system information as live region information of the anchor client.
Since the position accuracy obtained by the global positioning system is high, in order to compare the internet protocol address information with the position information obtained by the global positioning system information, the internet protocol address information needs to be set to a high accuracy. In the embodiment of the application, for convenience of understanding, the location information obtained by using the internet protocol address information can be accurately explained by referring to the street name. It will be appreciated that the location information derived from the internet protocol address information may be further accurate to villages and towns, house numbers, etc., and is not limited in this regard.
Specifically, after obtaining corresponding position information according to internet protocol address information and global positioning system information, extracting preset position information (provincial administrative district, municipal administrative district, county (district) administrative district and street name) in the corresponding position information, and comparing the extracted preset position information from large to small to obtain a comparison result.
In some embodiments, the preset rules may be set to satisfy at least provincial level administrative district, municipal level administrative district, county (district) level administrative district identity. Specifically, comparing the preset position information, and if at least provincial administrative regions, municipal administrative regions and county (regional) administrative regions are the same, judging that the comparison result meets the preset rule, and matching the Internet protocol address information with the global positioning system information; if the comparison result does not meet the preset rule, and the Internet protocol address information and the global positioning system information are not matched.
The method includes the steps of obtaining position information according to internet protocol address information, extracting preset position information in the position information to obtain a result A, namely 'Guangdong province, shenzhen city, nanshan region and Xinli street', obtaining position information according to global positioning system information, extracting preset position information in the position information to obtain a result B, namely 'Guangdong province, shenzhen city, longhua region and government by people street', comparing the range of the result A with the range of the result B from large to small, determining that the result A and the result B do not meet the same at least of the province-level administrative region, the city-level administrative region and the county-level administrative region, judging that the comparison result does not meet the preset rule, and indicating that the position information obtained according to the internet protocol address information is not accurate enough, so that the position information obtained according to the global positioning system information is used as live broadcasting region information of a host client.
In some embodiments, the preset rule may also be set such that the preset position information similarity is greater than or equal to 75%. Specifically, performing similarity matching on preset position information, and if the similarity is greater than or equal to 75%, judging that the comparison result meets a preset rule, and matching the Internet protocol address information with the global positioning system information; if the similarity is smaller than 75%, judging that the comparison result does not meet the preset rule, and mismatch between the Internet protocol address information and the global positioning system information.
The method includes the steps of obtaining position information according to internet protocol address information, extracting preset position information in the position information to obtain a result A, namely 'Guangdong province, shenzhen city, nanshan region and Xinli street', obtaining position information according to global positioning system information, extracting preset position information in the position information to obtain a result B, namely 'Guangdong province, shenzhen city, longhua region and government by people street', performing similarity matching on the result A and the result B to obtain similarity of 50%, and judging that the comparison result does not meet preset rules, wherein the position information obtained according to the internet protocol address information is not accurate enough, and therefore the position information obtained according to the global positioning system information is used as live broadcasting area information of a hosting client.
It will be appreciated that the preset rules may be other content, and specifically may be set according to actual production requirements, which is not limited by the present application.
In step 102, environmental data of the live region information is determined.
The environment data are climate information in live region information of the anchor client. Specifically, after determining the location information of the anchor client as live region information according to the internet protocol address information, the server searches the environment data of the live region information through the network, namely searches the environment data of the location information of the anchor client through the network.
In an embodiment of the present application, the environmental data includes at least temperature data. The temperature data may be in degrees Fahrenheit (F.) or in degrees Celsius (deg.C.). Further, in some embodiments, the environmental data may also include one or more of weather data, seasonal data, solar terms data, and the like. The weather data may be, for example, sunny days, light rain, heavy snow, etc.; the season data may be, for example, summer, autumn, etc.; the throttle data may be, for example, spring, frightening, severe cold, etc.
In step 103, a corresponding type of preset virtual gift is matched based on the environmental data.
Specifically, after the server determines the environmental data of the live region information, the preset virtual gift of the corresponding type is matched based on the determined environmental data, and since the environmental data at least includes temperature data, the preset virtual gift of the corresponding type can be matched based on the determined temperature data. The preset virtual gift of the corresponding type matched based on the environmental data refers to a virtual gift related to the environmental data, namely, the temperature data. Therefore, the preset virtual gift of the corresponding type is matched according to the environment data, namely the environment data changes, the matched preset virtual gift possibly changes, the variety of the virtual gift is increased, and the live interaction effect is improved.
For example, if the temperature data is 35 ℃, the preset virtual gift matched based on the environmental data may be a virtual gift related to cooling, such as an electric fan, an air conditioner, etc., where the air conditioner may be a product of a related enterprise having cooperation with the live platform, and the air conditioner may be marked with brand information, so that the brand of air conditioner may be advertised; if the temperature data is 12 ℃, the preset virtual gift matched based on the environmental data can be a virtual gift related to temperature rise, such as scarf, electric heater and the like.
Further, in some embodiments, when the environmental data further includes other data, other data may be obtained based on the obtained temperature data, and further, a data table or a document storing a correspondence between the temperature data, other data, and the preset virtual gift is further determined to determine whether the matched corresponding type of the preset virtual gift is correct. For example, the environmental data includes temperature data and season data, the temperature data is determined to be 35 ℃, the matched preset virtual gift is determined to be the electric fan, the season data is determined to be winter, the electric fan is determined to be unreasonable in winter by combining a data table or a document with a corresponding relation, and then the matched preset virtual gift is determined to be wrong.
Still further, when it is determined that the preset virtual gift is erroneously matched, it is determined that there may be an error in temperature data or season data in the environment data, so that it is necessary to re-acquire the environment data and match the preset virtual gift of a corresponding type according to the re-acquired environment data. That is, when it is determined that the preset virtual gift is erroneously matched, it is necessary to re-determine the environmental data of the region where the anchor client is located through the network, and match the preset virtual gift of the corresponding type according to the re-acquired environmental data.
In some embodiments, the matching the preset virtual gift of the corresponding type based on the environmental data includes:
(1) When the environment data is detected to be in a first preset range, acquiring a first type of preset virtual gift; and/or
(2) When the environment data is detected to be in a second preset range, acquiring a first type of preset virtual gift and a second type of preset virtual gift, wherein the first preset range is larger than the second preset range; and/or
(3) When the environment data is detected to be in a third preset range, the first type of preset virtual gift, the second type of preset virtual gift and the third type of preset virtual gift are obtained, and the second preset range is larger than the third preset range.
In the present embodiment, the environmental data includes only the temperature data. The first preset range is a preset first temperature data range; the second preset range is a preset second temperature data range; the third preset range is a preset third temperature data range.
It can be appreciated that the first preset range, the second preset range and the third preset range can be set according to actual needs. In the embodiment of the present application, for convenience of explanation, the environmental data ranges of the first preset range, the second preset range and the third preset range are smaller and smaller, which can be said that the first preset range is larger than and includes the second preset range, and the second preset range is larger than and includes the third preset range.
Specifically, when the server detects that the environment data determined according to the live broadcast area information of the anchor client is in a first preset range, acquiring a first type of preset virtual gift corresponding to the environment data of the first preset range; and/or when the server detects that the environment data determined according to the live broadcast area information of the anchor client is in a second preset range, acquiring a second type of preset virtual gift corresponding to the environment data in the second preset range; and/or when the server detects that the environment data determined according to the live broadcast area information of the anchor client is in a third preset range, acquiring a third type of preset virtual gift corresponding to the environment data in the third preset range.
In some embodiments, the first type, the second type, and the third type of preset virtual gift are different in kind and the same in kind number. For example, the first preset range is set to be the temperature data greater than or equal to 28 ℃, the first type of preset virtual gift is a fan, the second preset range is the temperature data greater than or equal to 32 ℃, the second type of preset virtual gift is an electric fan, the third preset range is the temperature data greater than or equal to 36 ℃, the third type of preset virtual gift is an air conditioner, and when the environmental data of the anchor client is 30 ℃, the first preset range is reached, the first type of preset virtual gift, namely the fan, is obtained.
In some embodiments, the second type of virtual gift includes a first type of virtual gift in its category, and further includes other types of virtual gift in addition to the first type of virtual gift; the category of the third type of virtual gift includes the second type of virtual gift, and further includes other types of virtual gift besides the second type of virtual gift. That is, the number of virtual gift types of the second type is greater than the number of virtual gift types of the first type, and the number of virtual gift types of the third type is greater than the number of virtual gift types of the second type. For example, the first preset range is set to be the temperature data greater than or equal to 28 ℃, the first type of preset virtual gift is a fan, the second preset range is the temperature data greater than or equal to 32 ℃, the second type of preset virtual gift is a fan and an electric fan, the third preset range is the temperature data greater than or equal to 36 ℃, the third type of preset virtual gift is a fan, an electric fan and an air conditioner, and when the environmental data of the anchor client is 33 ℃, the second type of preset virtual gift, namely the fan and the electric fan, is obtained.
It can be understood that the environmental data may be in a first preset range, a second preset range, a third preset range, a fourth preset range, a fifth preset range, and the like, and may specifically be set according to actual requirements.
In some embodiments, after entering the live broadcast room corresponding to the anchor client, the server may send the preset virtual gift to the audience client according to the method for acquiring the preset virtual gift described in the foregoing embodiments.
In step 104, the preset virtual gift is sent to the viewer client, so that the viewer client displays the preset virtual gift on the gift bar corresponding to the living broadcast room.
The display system comprises a display system, a display system and a display system, wherein the display system is used for displaying a display area which can be used for displaying a preset virtual gift on a client side of a spectator after the spectator user performs touch operation on a control for displaying the display system.
Specifically, after the server matches the preset virtual gift of the corresponding type according to the environmental data, the matched preset virtual gift is sent to the audience client, and the audience client can display the matched preset virtual gift on the gift bar at the preset position in the live interface of the live broadcasting room through touch operation of the audience user on the control for displaying the gift bar after receiving the matched preset virtual gift. The preset position may be, for example, an upper half part, a lower half part, etc. of a live interface of the live broadcasting room, and specifically may be set according to actual needs, which is not limited by the present application.
In some embodiments, after the sending the preset virtual gift to the viewer client, the method further includes:
(1) When the environment data is detected not to be matched with the preset virtual gift of the corresponding type, generating a gift cancellation instruction;
(2) And sending the gift cancellation instruction to the audience client so that the audience client cancels the preset virtual gift displayed on the gift bar corresponding to the living broadcast room.
The gift cancellation instruction may change the state of the preset virtual gift received by all audience clients in the live broadcast room corresponding to the anchor client from the available state to the disabled state. In the available state, the audience user can give the preset virtual gift received by the audience client to the anchor user through touch operation; in the disabled state, the audience user cannot give the preset virtual gift received by the audience client to the anchor user through touch operation, or can say that the audience user cannot perform touch operation on the preset virtual gift received by the audience client.
Specifically, after the server sends the preset virtual gift to the audience client, the environment data of the live broadcast area information is redetermined, the preset virtual gift of the corresponding type is matched according to the determined environment data, when the fact that the environment data is not matched with the preset virtual gift of the corresponding type is detected, the current environment data of the anchor client does not meet the requirement that the audience client gives the preset virtual gift to the anchor client, therefore, the server generates a gift cancellation instruction, then sends the generated gift cancellation instruction to the audience client, and the audience client can cancel the preset virtual gift displayed on the gift bar corresponding to the live broadcast room after receiving the gift cancellation instruction and marks the preset virtual gift as a disabled state from an available state.
In some embodiments, a preset virtual gift in an available state in a gift bar corresponding to a viewer client is a normal color, and a viewer user can perform touch operation on the preset virtual gift; the preset virtual gift in the disabled state is gray, and the audience user cannot perform touch operation on the preset virtual gift. Further, the preset virtual gift in the disabled state may also have a disable flag 21 as shown in fig. 2a to indicate that the preset virtual gift is not available and cannot be given to the anchor user.
In some embodiments, the preset virtual gift in the availability state in the spectator client may be displayed in the corresponding gift bar, and the preset virtual gift in the disabled state will not be displayed in the gift bar. That is, all preset virtual gifts displayed in the gift bar of the viewer client are available.
In some embodiments, the server may be configured to redetermine the environmental data of the live region information at preset intervals, and match a corresponding type of preset virtual gift according to the determined environmental data. Further, after the environment data of the live broadcast area information is redetermined and the preset virtual gift of the corresponding type is matched according to the determined environment data, if the matching fails, the preset virtual gift cannot be matched, and the last preset virtual gift is obtained to be used as the preset virtual gift; if the matching is successful, the preset virtual gift matched currently is used as the preset virtual gift.
Further, if the server successfully matches the preset virtual gift, after taking the currently matched preset virtual gift as the preset virtual gift, the server sends the preset virtual gift to the gift bar corresponding to the audience client for display, and meanwhile, the server can be set to generate a gift cancellation instruction, and other preset virtual gifts received before except the preset virtual gift at the present time are turned into a disabled state in the gift bar for displaying the preset virtual gift at the audience client.
In some embodiments, it may further be configured to generate a gift cancellation instruction if the environmental data detected by the server is lower than the environmental data threshold, and change the state of the preset virtual gift acquired by all audience clients in the living room from the available state to the disabled state, so that all audience users in the living room cannot give the preset virtual gift to the anchor client.
As can be seen from the above, in the embodiment of the present application, the corresponding internet protocol address information of the anchor client is obtained, and the corresponding live broadcast area information is determined according to the internet protocol address information; determining environment data of live region information; matching a corresponding type of preset virtual gift based on the environmental data; and sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room. According to the method, corresponding environment data of live broadcast area information of the anchor client can be matched in real time, the preset virtual gift related to the environment data is sent to the audience client corresponding to the anchor live broadcast room, so that the audience client can display and give the real-time preset virtual gift, the live broadcast interaction mode is enriched, and the live broadcast interaction effect is greatly improved.
In this embodiment, a description will be given from the perspective of a live gift processing apparatus, which may be specifically integrated in a terminal having a storage unit and a microprocessor installed therein, such as a tablet computer, a mobile phone, and having an operation capability, where the terminal may open a live client, and in this embodiment, the live client may be a viewer client.
Referring to fig. 3, fig. 3 is a flow chart of a method for processing a live gift according to an embodiment of the application. The method flow may include:
in step 201, a preset virtual gift transmitted from a server is received.
Specifically, the audience client receives environment data determined by the server according to live broadcast area information of the anchor client, and the environment data is matched with a corresponding type of preset virtual gift.
In some embodiments, the spectator client may be a preset virtual gift that receives the server transmission upon entering the living room. Specifically, the server obtains the preset virtual gift according to the corresponding type of the corresponding environment data of the live broadcast area information where the anchor client is located, and then sends the preset virtual gift to each audience client entering the live broadcast room corresponding to the anchor client, so that each audience client can receive the preset virtual gift sent by the server when entering the live broadcast room.
The server obtains that the environment data of the anchor client a is 30 ℃ and the matched preset virtual gift is the electric fan, and when the audience client B enters the live broadcasting room corresponding to the anchor client a, the preset virtual gift electric fan sent by the server can be received.
In some embodiments, the viewer client may obtain the corresponding preset virtual gift by purchasing in the live broadcast watching process in the live broadcast room, in addition to obtaining the preset virtual gift sent by the server just after entering the live broadcast room, that is, in addition to obtaining the preset virtual gift sent by the server for free. Further, different purchase prices may be set for different types of preset virtual gifts, for example, three types of preset virtual gifts, respectively, a fan, an electric fan, and an air conditioner, and a fan price < an electric fan price < an air conditioner price may be set.
In some embodiments, after receiving the preset virtual gift sent by the server, the viewer client may remind in a popup window, a floating layer, or the like on a live interface of the live broadcasting room. For example, as shown in fig. 3a, the viewer client is prompted in the form of a pop-up window 31 to receive a preset virtual gift sent by the server.
In step 202, a preset virtual gift is displayed on a gift bar corresponding to a living broadcast room.
Specifically, after receiving the preset virtual gift sent by the server, the audience client displays the preset virtual gift on a gift bar corresponding to the living broadcast room and used for displaying the preset virtual gift.
In some embodiments, only the preset virtual available at the viewer's client may be displayed in the gift bar displaying the preset virtual gift, as shown in the gift bar 33 in fig. 3 b; other common virtual gifts may also be displayed. Wherein the general virtual gift may include a free gift and/or a paid gift.
In some embodiments, after the displaying the preset virtual gift on the gift bar corresponding to the living broadcast room, the method further includes:
(1) Receiving a cancel instruction sent by a server;
(2) And canceling the preset virtual gift displayed on the gift bar corresponding to the living broadcast room according to the cancellation instruction.
Specifically, the audience client receives the preset virtual gift, and after displaying the preset virtual gift on the gift bar corresponding to the living broadcast room and displaying the preset virtual gift, receives a cancel instruction sent by the server, and then cancels all the preset virtual gift on the gift bar corresponding to the display of the preset virtual gift in the living broadcast interface of the audience client according to the received cancel instruction, namely, the preset virtual gift is changed from an available state to a disabled state.
In step 203, a gift instruction of the preset virtual gift is generated in response to the touch operation on the preset virtual gift.
The giving instruction is an instruction for giving the preset virtual gift received by the audience client to the anchor user. The giving instruction carries data for identifying a preset virtual gift corresponding to the touch operation.
Specifically, after displaying a preset virtual gift sent by a server received by a client of a viewer on a gift bar corresponding to a living broadcast room, the client of the viewer responds to touch operation of the user of the viewer on the preset virtual gift displayed in the gift bar, generates a presentation instruction of the preset virtual gift, and presents the preset virtual gift to a host user. The touch operation may be a single click, a double click, or the like.
Optionally, when the touch operation is clicking, after the audience client generates the presentation instruction in response to the clicking operation on the preset virtual gift, a popup window or a floating layer or the like is displayed in the living broadcast room to prompt the audience user whether to confirm the presentation, and if the audience user selects to confirm, the corresponding preset virtual data is presented to the anchor user according to the identification data carried in the generated presentation instruction.
Optionally, when the touch operation is double-click, the audience client may be set to generate a presentation instruction in response to the double-click operation of the audience user on the preset virtual gift, and then present the corresponding preset virtual data to the anchor user according to the identification data carried in the presentation instruction.
As can be seen from the above, in the embodiment of the present application, by receiving the preset virtual gift sent by the server, the preset virtual gift is a virtual gift of a corresponding type that is matched by the server according to the corresponding environmental data of the live broadcast area information where the anchor client is located; displaying a preset virtual gift on a gift bar corresponding to a living broadcast room; and responding to the touch operation of the preset virtual gift, and generating a gift instruction of the preset virtual gift. Therefore, the preset virtual gift sent by the server can be received, the preset virtual gift is displayed and presented in real time, the live interaction mode is enriched, and the live interaction effect is greatly improved.
In order to facilitate better implementation of the method for processing the live gift provided by the embodiment of the application, the embodiment of the application also provides a device based on the method for processing the live gift. The meaning of the nouns is the same as that in the method for processing the live gift, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a live gift processing apparatus according to an embodiment of the present application, where the live gift processing apparatus is applied to a server, and the live gift processing apparatus may include an obtaining unit 301, a determining unit 302, a matching unit 303, a sending unit 304, and the like.
An obtaining unit 301, configured to obtain internet protocol address information corresponding to the anchor client, and determine corresponding live broadcast region information according to the internet protocol address information;
a determining unit 302, configured to determine environmental data of live region information;
A matching unit 303 for matching a corresponding type of preset virtual gift based on the environmental data;
and the sending unit 304 is configured to send a preset virtual gift to the audience client, so that the audience client displays the preset virtual gift on a gift bar corresponding to the living broadcast room.
In some embodiments, the acquisition unit 301 includes:
the first acquisition subunit is used for acquiring the Internet protocol address information corresponding to the anchor client;
the second acquisition subunit is used for acquiring the corresponding global positioning system information of the anchor client;
And the determining subunit is used for determining the corresponding live broadcast area information according to the Internet protocol address information and the global positioning system information.
In some embodiments, the determining subunit is configured to:
when matching between the Internet protocol address information and the global positioning system information is detected, determining corresponding live broadcast area information according to the Internet protocol address information;
when mismatch between the internet protocol address information and the global positioning system information is detected, corresponding live region information is determined according to the global positioning system information.
In some embodiments, the matching unit 303 is configured to:
The first acquisition subunit is used for acquiring a first type of preset virtual gift when the environment data is detected to be in a first preset range; and/or
The second acquisition subunit is used for acquiring a first type of preset virtual gift and a second type of preset virtual gift when the environmental data is detected to be in a second preset range, wherein the first preset range is larger than the second preset range; and/or
And the third acquisition subunit is used for acquiring the first type of preset virtual gift, the second type of preset virtual gift and the third type of preset virtual gift when the environmental data is detected to be in a third preset range, wherein the second preset range is larger than the third preset range.
In some embodiments, the apparatus further comprises a cancellation unit for:
when the environment data is detected not to be matched with the preset virtual gift of the corresponding type, generating a gift cancellation instruction;
and sending the gift cancellation instruction to the audience client side so that the audience client side cancels the preset virtual gift displayed on the gift bar corresponding to the living broadcast room.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a live gift processing apparatus according to an embodiment of the present application, where the live gift processing apparatus is applied to a viewer client, and the live gift processing apparatus may include a receiving unit 401, a display unit 402, a generating unit 403, and so on.
The receiving unit 401 is configured to receive a preset virtual gift sent by a server, where the preset virtual gift is a virtual gift of a corresponding type that is matched by the server according to environment data corresponding to information of a live broadcast area where a hosting client is located;
a display unit 402, configured to display a preset virtual gift on a gift bar corresponding to a living broadcast room;
The generating unit 403 is configured to generate a gift instruction of the preset virtual gift in response to a touch operation on the preset virtual gift.
In some embodiments, the apparatus further comprises a cancellation unit:
receiving a cancel instruction sent by a server;
And canceling the preset virtual gift displayed on the gift bar corresponding to the living broadcast room according to the cancellation instruction.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application, and the computer device may be a terminal or a server, as shown in fig. 6, specifically:
The computer device may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 6 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
The processor 501 is the control center of the computer device and uses various interfaces and lines to connect the various parts of the overall computer device, and by running or executing software programs and/or modules stored in the memory 502, and invoking data stored in the memory 502, performs various functions of the computer device and processes the data, thereby performing overall monitoring of the computer device. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs (such as a display function, a matching function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 502 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 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The computer device further includes a power supply 503 for powering the various components, and preferably the power supply 503 may be logically coupled to the processor 501 via a power management system such that functions such as charge, discharge, and power consumption management are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 504, which input unit 504 may be used 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 or the like, which is not described herein. In particular, in this embodiment, the processor 501 in the computer device loads executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 executes the application programs stored in the memory 502, so as to implement various functions as follows:
Acquiring Internet protocol address information corresponding to a host client, and determining corresponding live broadcast area information according to the Internet protocol address information; determining environment data of live region information; matching a corresponding type of preset virtual gift based on the environmental data; and sending the preset virtual gift to the audience client side so that the audience client side displays the preset virtual gift on a gift bar corresponding to the live broadcasting room.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of an embodiment that are not described in detail may be referred to the above detailed description of the method for processing the live gift, which is not repeated herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer readable storage medium according to an embodiment of the application. Stored in the computer readable medium 600 is program code that can be invoked by a processor to perform the live gift processing method described in the method embodiments above.
The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 600 has storage space for program code 610 that performs any of the method steps described above. The program code can be read from or written to one or more computer program devices. Program code 610 may be compressed, for example, in a suitable form.
Embodiments of the present application also provide a computer program device or computer program comprising computer instructions 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 so that the computer device performs the live gift processing method described in the above various alternative embodiments.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions 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, so that the computer device performs the methods provided in the various alternative implementations provided in the above embodiments.
The foregoing has described in detail the method, apparatus, storage medium and computer device for processing live gifts provided by the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only for helping to understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (13)

1. A method for processing a live gift, the method being applied to a live gift processing system, the live gift processing system including a server and a viewer client, the method comprising:
The server acquires Internet protocol address information corresponding to the anchor client at intervals of preset intervals, and determines corresponding live broadcast area information according to the Internet protocol address information; determining temperature data of the live broadcast area information; acquiring a preset virtual gift of a corresponding type as a preset virtual gift of the time based on temperature data ranges of the temperature data in a plurality of temperature data ranges; when the temperature data are out of the temperature data ranges, acquiring a last preset virtual gift as a current preset virtual gift; transmitting a preset virtual gift of the time and a gift cancellation instruction to a viewer client which enters a live broadcasting room corresponding to the anchor client;
The audience client receives a preset virtual gift and a gift cancellation instruction sent by a server; displaying a preset virtual gift at this time through a popup window or a floating layer in a live broadcast interface of the live broadcast room; responding to touch operation of a control for displaying a gift bar, displaying the gift bar in the live broadcast interface, displaying a preset virtual gift of the time in the gift bar, and marking the preset virtual gift as an available state; responding to the gift cancellation instruction, and marking other preset virtual gifts in the gift bar, which are different from the preset virtual gift at the time, as forbidden states; responding to the touch operation of the preset virtual gift marked as the available state, and generating a giving instruction of the preset virtual gift which is touched;
The number of the types of the preset virtual gifts corresponding to the temperature data ranges is inversely related to the temperature data ranges, and the preset virtual gifts corresponding to any one temperature data range comprise preset virtual gifts corresponding to the types of the temperature data ranges which are larger than any one temperature data range.
2. A method for processing a live gift, comprising:
Acquiring Internet protocol address information corresponding to a host client at intervals of preset intervals, and determining corresponding live broadcast area information according to the Internet protocol address information;
determining temperature data of the live broadcast area information;
acquiring a preset virtual gift of a corresponding type as a preset virtual gift of the time based on temperature data ranges of the temperature data in a plurality of temperature data ranges;
When the temperature data are out of the temperature data ranges, acquiring a last preset virtual gift as a current preset virtual gift;
The preset virtual gift and the gift cancellation instruction of the time are sent to the audience client which enters the live broadcasting room corresponding to the anchor client, so that the audience client executes the following processing: receiving a preset virtual gift and a gift cancellation instruction at the time; displaying a preset virtual gift at this time through a popup window or a floating layer in a live broadcast interface of the live broadcast room; responding to touch operation of a control for displaying a gift bar, displaying the gift bar in the live broadcast interface, displaying a preset virtual gift of the time in the gift bar, and marking the preset virtual gift as an available state; responding to the gift cancellation instruction, and marking other preset virtual gifts in the gift bar, which are different from the preset virtual gift at the time, as forbidden states; responding to the touch operation of the preset virtual gift marked as the available state, and generating a giving instruction of the preset virtual gift which is touched;
The number of the types of the preset virtual gifts corresponding to the temperature data ranges is inversely related to the temperature data ranges, and the preset virtual gifts corresponding to any one temperature data range comprise preset virtual gifts corresponding to the types of the temperature data ranges which are larger than any one temperature data range.
3. The method for processing a live gift according to claim 2, wherein determining corresponding live region information according to the internet protocol address information includes:
Acquiring corresponding global positioning system information of a host client;
And determining corresponding live broadcast area information according to the Internet protocol address information and the global positioning system information.
4. A live gift processing method according to claim 3, wherein said determining corresponding live region information based on said internet protocol address information and said global positioning system information comprises:
When matching between the Internet protocol address information and the global positioning system information is detected, determining corresponding live broadcast area information according to the Internet protocol address information;
When the mismatch between the Internet protocol address information and the global positioning system information is detected, corresponding live broadcast area information is determined according to the global positioning system information.
5. The method for processing a live gift according to claim 2, wherein the obtaining a preset virtual gift of a corresponding type as the preset virtual gift of the present time based on a temperature data range in which the temperature data is in a plurality of temperature data ranges includes:
When the temperature data is detected to be in a first temperature data range, acquiring a first type of preset virtual gift as a preset virtual gift of the time; and/or
When the temperature data is detected to be in a second temperature data range, acquiring a first type of preset virtual gift and a second type of preset virtual gift as preset virtual gift of the time, wherein the first temperature data range is larger than the second temperature data range; and/or
When the temperature data is detected to be in a third temperature data range, a first type of preset virtual gift, a second type of preset virtual gift and a third type of preset virtual gift are obtained to serve as the preset virtual gift, and the second temperature data range is larger than the third temperature data range.
6. The method for processing a live gift according to any one of claims 2 to 5, wherein after the preset virtual gift and the gift cancellation command of this time are sent to the audience client that has entered the corresponding live room of the anchor client, the method further comprises:
when the temperature data is detected not to be matched with the preset virtual gift of the corresponding type, generating a gift cancellation instruction;
and sending the gift cancellation instruction to a spectator client so that the spectator client cancels the preset virtual gift displayed in the gift bar.
7. A method for processing a live gift, comprising:
Receiving a preset virtual gift sent by a server and a gift cancellation instruction; wherein the server is configured to perform the following processing: acquiring Internet protocol address information corresponding to a host client at intervals of preset intervals, and determining corresponding live broadcast area information according to the Internet protocol address information; determining temperature data of the live broadcast area information; acquiring a preset virtual gift of a corresponding type as a preset virtual gift of the time based on temperature data ranges of the temperature data in a plurality of temperature data ranges; when the temperature data are out of the temperature data ranges, acquiring a last preset virtual gift as a current preset virtual gift; transmitting a preset virtual gift of the time and a gift cancellation instruction to a viewer client which enters a live broadcasting room corresponding to the anchor client;
Displaying a preset virtual gift at this time through a popup window or a floating layer in a live broadcast interface of the live broadcast room;
Responding to touch operation of a control for displaying a gift bar, displaying the gift bar in the live broadcast interface, displaying a preset virtual gift of the time in the gift bar, and marking the preset virtual gift as an available state;
Responding to the gift cancellation instruction, and marking other preset virtual gifts in the gift bar, which are different from the preset virtual gift at the time, as forbidden states;
Responding to the touch operation of the preset virtual gift marked as the available state, and generating a giving instruction of the preset virtual gift which is touched;
The number of the types of the preset virtual gifts corresponding to the temperature data ranges is inversely related to the temperature data ranges, and the preset virtual gifts corresponding to any one temperature data range comprise preset virtual gifts corresponding to the types of the temperature data ranges which are larger than any one temperature data range.
8. The method for processing a live gift according to claim 7, wherein after displaying the preset virtual gift of the time in the gift bar and marking the preset virtual gift as available, further comprising:
receiving a cancel instruction sent by a server;
and canceling the preset virtual gift displayed in the gift bar according to the cancellation instruction.
9. A live gift processing device, comprising:
The acquisition unit is used for acquiring Internet protocol address information corresponding to the anchor client at preset interval time and determining corresponding live broadcast area information according to the Internet protocol address information;
a determining unit, configured to determine temperature data of the live broadcast area information;
the matching unit is used for acquiring a preset virtual gift of a corresponding type as a preset virtual gift of the time based on the temperature data ranges in which the temperature data are located in the plurality of temperature data ranges; when the temperature data are out of the temperature data ranges, acquiring a last preset virtual gift as a current preset virtual gift;
The sending unit is used for sending preset virtual gifts and gift cancellation instructions of the time to the audience client which enters the live broadcasting room corresponding to the anchor client, so that the audience client executes the following processing: receiving a preset virtual gift and a gift cancellation instruction at the time; displaying a preset virtual gift at this time through a popup window or a floating layer in a live broadcast interface of the live broadcast room; responding to touch operation of a control for displaying a gift bar, displaying the gift bar in the live broadcast interface, displaying a preset virtual gift of the time in the gift bar, and marking the preset virtual gift as an available state; responding to the gift cancellation instruction, and marking other preset virtual gifts in the gift bar, which are different from the preset virtual gift at the time, as forbidden states; responding to the touch operation of the preset virtual gift marked as the available state, and generating a giving instruction of the preset virtual gift which is touched;
The number of the types of the preset virtual gifts corresponding to the temperature data ranges is inversely related to the temperature data ranges, and the preset virtual gifts corresponding to any one temperature data range comprise preset virtual gifts corresponding to the types of the temperature data ranges which are larger than any one temperature data range.
10. A live gift processing device, comprising:
The receiving unit is used for receiving preset virtual gifts and gift cancellation instructions sent by the server; wherein the server is configured to perform the following processing: acquiring Internet protocol address information corresponding to a host client at intervals of preset intervals, and determining corresponding live broadcast area information according to the Internet protocol address information; determining temperature data of the live broadcast area information; acquiring a preset virtual gift of a corresponding type as a preset virtual gift of the time based on temperature data ranges of the temperature data in a plurality of temperature data ranges; when the temperature data are out of the temperature data ranges, acquiring a last preset virtual gift as a current preset virtual gift; transmitting a preset virtual gift of the time and a gift cancellation instruction to a viewer client which enters a live broadcasting room corresponding to the anchor client;
The display unit is used for displaying the preset virtual gift through a popup window or a floating layer in the live broadcast interface of the live broadcast room; responding to touch operation of a control for displaying a gift bar, displaying the gift bar in the live broadcast interface, displaying a preset virtual gift of the time in the gift bar, and marking the preset virtual gift as an available state; responding to the gift cancellation instruction, and marking other preset virtual gifts in the gift bar, which are different from the preset virtual gift at the time, as forbidden states;
The generating unit is used for responding to the touch operation of the preset virtual gift marked as the available state and generating a giving instruction of the preset virtual gift which is touched;
The number of the types of the preset virtual gifts corresponding to the temperature data ranges is inversely related to the temperature data ranges, and the preset virtual gifts corresponding to any one temperature data range comprise preset virtual gifts corresponding to the types of the temperature data ranges which are larger than any one temperature data range.
11. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method of processing a live gift as claimed in any one of claims 2 to 8.
12. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, the processor implementing the steps in the method of live gift processing of any of claims 2 to 8 when the computer program is executed.
13. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which computer instructions a processor of a computer device reads, the processor executing the computer instructions, causing the computer device to perform the steps in the method of live gift processing of any of claims 2 to 8.
CN202210044415.3A 2022-01-14 2022-01-14 Live gift processing method, device, medium, equipment and program product Active CN114422815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210044415.3A CN114422815B (en) 2022-01-14 2022-01-14 Live gift processing method, device, medium, equipment and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210044415.3A CN114422815B (en) 2022-01-14 2022-01-14 Live gift processing method, device, medium, equipment and program product

Publications (2)

Publication Number Publication Date
CN114422815A CN114422815A (en) 2022-04-29
CN114422815B true CN114422815B (en) 2024-05-07

Family

ID=81274057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210044415.3A Active CN114422815B (en) 2022-01-14 2022-01-14 Live gift processing method, device, medium, equipment and program product

Country Status (1)

Country Link
CN (1) CN114422815B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791893A (en) * 2016-11-14 2017-05-31 北京小米移动软件有限公司 Net cast method and device
CN110780954A (en) * 2019-09-03 2020-02-11 腾讯科技(深圳)有限公司 Virtual article sending method and device
CN112291608A (en) * 2019-07-25 2021-01-29 腾讯科技(深圳)有限公司 Virtual article data processing method and device and storage medium
CN113810742A (en) * 2021-08-25 2021-12-17 北京百度网讯科技有限公司 Virtual gift processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10515397B2 (en) * 2017-09-08 2019-12-24 Uptown Network LLC System and method for facilitating virtual gift giving

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791893A (en) * 2016-11-14 2017-05-31 北京小米移动软件有限公司 Net cast method and device
CN112291608A (en) * 2019-07-25 2021-01-29 腾讯科技(深圳)有限公司 Virtual article data processing method and device and storage medium
CN110780954A (en) * 2019-09-03 2020-02-11 腾讯科技(深圳)有限公司 Virtual article sending method and device
CN113810742A (en) * 2021-08-25 2021-12-17 北京百度网讯科技有限公司 Virtual gift processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114422815A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN109348237B (en) Live broadcast room management method and device, server and storage medium
TWI396991B (en) Context avatar
WO2021155713A1 (en) Weight grafting model fusion-based facial recognition method, and related device
CN107730389A (en) Electronic installation, insurance products recommend method and computer-readable recording medium
CN113259221B (en) Message display method and device and electronic equipment
CN108573393B (en) Comment information processing method and device, server and storage medium
CN104579912A (en) Method and device for data pushing
US20130125008A1 (en) Systems And Methods For Providing Content Streams
US20230092475A1 (en) Information processing method, apparatus and device, and storage medium
CN113302639A (en) Equipment recommendation method and device, electronic equipment and storage medium
CN109246483B (en) Live broadcast room recommendation method, device, equipment and storage medium
CN113724039A (en) Hotel recommendation method, system and device for OTA website and readable storage medium
EP4095686A2 (en) Method for switching skin of mini-program page, and electronic device
CN110876088A (en) Live broadcast room recommendation method, device, equipment and storage medium
CN116206318A (en) Hotel evaluation feedback method, system, equipment and storage medium
CN114040216A (en) Live broadcast room recommendation method, medium, device and computing equipment
CN114422815B (en) Live gift processing method, device, medium, equipment and program product
CN108366275B (en) Method and apparatus for providing video stream
CN108427701B (en) Method for identifying help information based on operation page and application server
US20130117245A1 (en) Method and system for identification of asset records in a version managed datastore
CN111444235A (en) Django-based data serialization method and device, computer equipment and storage medium
CN104123286A (en) Object search system and method applied to users
CN110321262B (en) Application content monitoring method and device and terminal
CN108920567A (en) A kind of control method and control device for realizing that weather is shown in webpage
CN109710339B (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant