CN111246229B - Method, device, medium and electronic equipment for updating gift resources of live broadcast room - Google Patents
Method, device, medium and electronic equipment for updating gift resources of live broadcast room Download PDFInfo
- Publication number
- CN111246229B CN111246229B CN202010014733.6A CN202010014733A CN111246229B CN 111246229 B CN111246229 B CN 111246229B CN 202010014733 A CN202010014733 A CN 202010014733A CN 111246229 B CN111246229 B CN 111246229B
- Authority
- CN
- China
- Prior art keywords
- gift
- gift resource
- client
- resource list
- registration information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2407—Monitoring of transmitted content, e.g. distribution time, number of downloads
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26258—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26291—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present disclosure relates to a method, an apparatus, a medium, and an electronic device for updating a gift resource in a live broadcast room, including: receiving a gift resource list request sent by a client, wherein the gift resource list request comprises a user ID; acquiring registration information of a login user in a client according to the user ID; under the condition that the registration information is in a preset user registration information table, sending a gift resource list to the client, wherein the gift resource list comprises information used for indicating gift resources to be updated; and receiving a gift resource updating request sent by the client in response to the gift resource list, and sending the corresponding gift resource to the client in response to the gift resource updating request. Therefore, under the condition that gift resources needing to be updated exist, the number of clients simultaneously updating the gift resources can be controlled, the control on the server load and the resource downloading bandwidth is further realized, and the conditions of server overload, uneven bandwidth use distribution or overhigh bandwidth cost are avoided.
Description
Technical Field
The present disclosure relates to the field of networks, and in particular, to a method, an apparatus, a medium, and an electronic device for updating a gift resource in a live broadcast room.
Background
In the prior art, the information related to the gift sending displayed in the live broadcast room of each client is displayed directly according to the local gift information of the client, and is not sent to the client by the server in real time, because the gift sending animation with part of the gift is in a video format, the size is large, and the real-time sending is not practical. Therefore, whenever a new gift type is online or an existing gift type is changed, the client needs to timely store the gift information corresponding to the new online gift or the changed gift.
At present, in a conventional manner, a client usually updates local gift resource information according to the latest gift resource information in a server at each startup, but such an update strategy easily causes a peak time of use of the client to also become an update peak time of the gift resource information, so that the server needs to ensure that a request of the client can be timely and accurately responded during the peak time, and also needs to ensure that the gift resource information of the client can be successfully updated, thereby greatly increasing the load of the server. Moreover, the update of the client gift resource information also occupies a large amount of bandwidth for resource downloading, which can cause the problem of network unsmooth when the user uses the client in the peak period under the condition of fixed bandwidth, and can also cause the cost of the used bandwidth to be greatly increased in order to ensure the smoothness of the network of the client under the condition of variable bandwidth.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a live broadcast room gift resource updating method, applied to a server, the method including:
receiving a gift resource list request sent by a client, wherein the gift resource list request comprises a user ID of a login user in the client;
acquiring registration information of a login user in the client according to the user ID;
sending a gift resource list to the client under the condition that the registration information is in a preset user registration information table, wherein the gift resource list comprises information used for indicating gift resources to be updated;
receiving a gift resource update request sent by the client in response to the gift resource list, and sending a corresponding gift resource to the client in response to the gift resource update request.
In a second aspect, the present disclosure further provides a device for updating a gift resource in a live broadcast room, where the device is applied to a server, and the device includes:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a gift resource list request sent by a client, and the gift resource list request comprises a user ID of a login user in the client;
the first acquisition module is used for acquiring the registration information of the login user in the client according to the user ID;
a first sending module, configured to send a gift resource list to the client when the registration information is in a preset user registration information table, where the gift resource list includes information indicating a gift resource to be updated;
and the updating module is used for receiving a gift resource updating request sent by the client in response to the gift resource list and sending a corresponding gift resource to the client in response to the gift resource updating request.
In a third aspect, the present disclosure also provides a computer readable medium having stored thereon a computer program, which when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure further provides an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of the first aspect.
Through the technical scheme, under the condition that gift resources needing to be updated exist, whether gift resources are allowed to be updated or not is determined according to the registration information of the login user in the client side sending the request of the gift resource list, so that the number of the client sides simultaneously updating the gift resources can be controlled by controlling the registration information in the preset user registration information table, the control of server load and resource downloading bandwidth is further realized, and the conditions of server overload, uneven bandwidth use distribution or overhigh bandwidth cost are avoided.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
In the drawings:
fig. 1 is a flowchart illustrating a live room gift resource updating method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a live room gift resource updating method according to yet another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a live room gift resource updating method according to yet another exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating a structure of a live room gift resource updating apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating a structure of a live room gift resource updating apparatus according to still another exemplary embodiment of the present disclosure.
FIG. 6 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart illustrating a live room gift resource updating method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method is applied to a server and includes steps 101 to 104.
In step 101, a gift resource list request sent by a client is received, where the gift resource list request includes a user ID of a login user in the client.
The client may generally send the gift resource list request at cold start to request the latest gift resource list from the server, and then determine whether there is a gift resource that needs to be updated by comparing the latest gift resource list with the local gift resource list, and in case there is a gift resource that needs to be updated, send a request for gift resource update to the server to update the gift resource. The sending timing of the gift resource list request may also include other timings, for example, when entering a live broadcast, etc., and the sending of the gift resource list request is not limited in this disclosure, as long as the server receives the gift resource list request, the following steps 102 to 104 are performed.
In step 102, registration information of a login user in the client is obtained according to the user ID.
In step 103, in the case that the registration information is in a preset user registration information table, sending a gift resource list to the client, wherein the gift resource list includes information indicating gift resources to be updated.
After determining registration information of a login user in the client according to the user ID in the gift resource list request, it is determined whether a gift resource list including information indicating gift resources to be updated needs to be transmitted to the client by determining whether the registration information is in a preset user registration information table. The user registration information in the preset user registration information table may be preset in the server, and the user registration information in the preset user registration information table may be modified in a corresponding manner if necessary.
The information included in the gift resource list for indicating the gift resource to be updated may be, for example, an ID of a newly added gift, or may be a mark of a gift resource that has been changed, and a specific information form is not limited in this disclosure as long as it can indicate that the client has a gift resource that needs to be updated.
In step 104, a gift resource update request sent by the client in response to the gift resource list is received, and a corresponding gift resource is sent to the client in response to the gift resource update request. After the gift resource list including the information indicating the gift resources to be updated is transmitted to the client, the client transmits a gift resource update request to the server to request downloading of the gift resources to be updated from the server if it is determined that the gift resources are to be updated. After receiving the gift resource updating request, the server can respond to the request and send the gift resource needing updating in the client to the client.
It should be understood by those skilled in the art that the gift resources requested to be updated by the client after receiving the gift resource list may include only the gift resources to be updated indicated in the gift resource list, or may include not only the gift resources to be updated indicated in the gift resource list, but also other gift resources. For example, in the case where the client is not started for a long time or the gift resources saved in the client are damaged, there may occur a case where the gift resources requested to be updated include not only the gift resources to be updated indicated in the gift resource list.
Through the technical scheme, under the condition that gift resources needing to be updated exist, whether gift resources are allowed to be updated or not is determined according to the registration information of the login user in the client side sending the request of the gift resource list, so that the number of the client sides simultaneously updating the gift resources can be controlled by controlling the registration information in the preset user registration information table, the control of server load and resource downloading bandwidth is further realized, and the conditions of server overload, uneven bandwidth use distribution or overhigh bandwidth cost are avoided.
Fig. 2 is a flowchart illustrating a live room gift resource updating method according to yet another exemplary embodiment of the present disclosure. As shown in fig. 2, the method further comprises step 201.
In step 201, a user registration information table corresponding to a time when the gift resource list request is received is determined as the preset user registration information table.
The preset user registration information table may be multiple, and respectively correspond to different time periods. For example, an update time of five days may be set after the server updates the gift resource, the server updates the gift resource for a first preset user registration information table in the first day, a second preset user registration information table in the second day, and so on. And distributing each different user registration information in different preset user registration information tables. After the five-day update time is over, all the registration information which is not updated by the gift resource can be put into the same preset user registration information table, and the time period corresponding to the preset user registration information table is set to be from the sixth day after the gift resource is updated by the server. Just so can realize the function of the user registration information that this preset user registration information table included of automatic adjustment, can be more conveniently to the control of carrying out gift resource update's customer end quantity simultaneously, guarantee all customer ends can both realize the update of the gift resource of this customer end under the condition that there is gift resource update demand, can not cause the server to transship moreover, bandwidth use distributes the uneven or too high condition of bandwidth cost.
In one possible case, when the registration information of the user is distributed in a plurality of different preset user registration information tables, grouping may be performed according to, for example, mantissas of the registration information, for example, the end number of the registration information is 0, which is put into one preset user registration information table, the end number is 1, which is put into another preset user registration information table, and so on.
Fig. 3 is a flowchart illustrating a live room gift resource updating method according to yet another exemplary embodiment of the present disclosure. As shown in fig. 3, the method further includes steps 301 to 303.
In step 301, the number of online users in the live broadcast rooms is obtained. For example, if there are 3 live broadcast rooms currently being broadcast in the current platform, the number of online users in the 3 live broadcast rooms is respectively obtained.
In step 302, the delivering time of the gift resource lists corresponding to the live broadcast rooms is respectively determined according to the number of online users in the live broadcast rooms. For example, if the number of online users in the obtained 3 live broadcast rooms is 10 ten thousand, 20 ten thousand, and 50 ten thousand, respectively, the time for issuing the gift resource list to the live broadcast room can be determined according to the number of online users, where the obtained live broadcast rooms are the live broadcast room a, the live broadcast room B, and the live broadcast room C, and the obtained online users are the number of online users, and the gift resource list is the gift resource list shown in fig. 1 and includes information indicating the gift resources to be updated.
The manner of determining the sending time of the gift resource list corresponding to each live broadcast room according to the number of the online users can be various, for example, the time length required for updating the gift resource of the client side where the online users in each live broadcast room are located can be determined by the number of the online users in each live broadcast room, and then the time for sending the gift resource list to each live broadcast room in sequence is determined according to the updating time length required by each live broadcast room; in addition, the time length required for updating the gift resource of the client side of the online user in the live broadcast room with the largest number of online users in each live broadcast room can be used as the updating time length required by each live broadcast room, and the time for issuing the gift resource list to each live broadcast room is determined according to the updating time length required by each live broadcast room. The order of issuing the gift resource list to each live broadcast room can be sorted according to the ID of the live broadcast room, or can be sorted according to the number of online users in each live broadcast room. In the present disclosure, a manner of how to determine the delivery time of the gift resource list corresponding to each live broadcast room is specifically determined according to the number of online users in each live broadcast room is not limited.
In step 303, the gift resource list is sent to the client where the online user in the live broadcast rooms is located according to the sending time of the gift resource list corresponding to the live broadcast rooms.
After the sending time of the gift resource list corresponding to the live broadcasting rooms is determined, sending the gift resource list according to the corresponding sending time.
The method for updating the gift resource in the live broadcast room shown in the embodiment can be performed simultaneously with the steps 101 to 104 shown in fig. 1, as long as a certain control can be performed on the number of the clients performing gift resource updating simultaneously.
In a possible implementation, step 301 shown in fig. 3 may also be: and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period. That is, a preset period may be set to acquire the number of online users in the live broadcast room in the broadcast state, for example, the acquisition may be performed every 6 hours after the server updates the gift resources. Therefore, the method can cover the audience of the live broadcast room in each time period, and can ensure that all the clients can update the gift resources as early as possible under the condition of controlling the number of the clients such as gift resource updating and the like.
Fig. 4 is a block diagram illustrating a structure of a live room gift resource updating apparatus 100 according to an exemplary embodiment of the present disclosure. As shown in fig. 4, applied to a server, the apparatus 100 includes: a first receiving module 110, configured to receive a gift resource list request sent by a client, where the gift resource list request includes a user ID of a login user in the client; a first obtaining module 120, configured to obtain, according to the user ID, registration information of a login user in the client; a first sending module 130, configured to send a gift resource list to the client when the registration information is in a preset user registration information table, where the gift resource list includes information indicating a gift resource to be updated; an update module 140, configured to receive a gift resource update request sent by the client in response to the gift resource list, and send a corresponding gift resource to the client in response to the gift resource update request.
Through the technical scheme, under the condition that gift resources needing to be updated exist, whether gift resources are allowed to be updated or not is determined according to the registration information of the login user in the client side sending the request of the gift resource list, so that the number of the client sides simultaneously updating the gift resources can be controlled by controlling the registration information in the preset user registration information table, the control of server load and resource downloading bandwidth is further realized, and the conditions of server overload, uneven bandwidth use distribution or overhigh bandwidth cost are avoided.
In a possible implementation, the apparatus 100 further comprises: a first determining module, configured to determine a user registration information table corresponding to a time when the gift resource list request is received as the preset user registration information table.
Fig. 5 is a block diagram illustrating a structure of a live title resource updating apparatus 100 according to still another exemplary embodiment of the present disclosure. The apparatus 100 further comprises: the second obtaining module 150 is configured to obtain the number of online users in the live broadcast rooms in the broadcast state; a second determining module 160, configured to determine, according to the number of online users in the multiple live broadcast rooms, the sending time of the gift resource list corresponding to the multiple live broadcast rooms; and a second sending module 170, configured to send the gift resource list to a client where an online user in the multiple live broadcast rooms is located according to the sending time of the gift resource list corresponding to the multiple live broadcast rooms.
In a possible implementation, the second obtaining module 150 is further configured to: and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the communication may be performed using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a gift resource list request sent by a client, wherein the gift resource list request comprises a user ID of a login user in the client; acquiring registration information of a login user in the client according to the user ID; sending a gift resource list to the client under the condition that the registration information is in a preset user registration information table, wherein the gift resource list comprises information used for indicating gift resources to be updated; receiving a gift resource update request sent by the client in response to the gift resource list, and sending a corresponding gift resource to the client in response to the gift resource update request.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not constitute a limitation to the module itself in some cases, for example, the first receiving module may also be described as a "module that receives a request for a gift resource list sent by a client".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides a live room gift resource updating method applied to a server, according to one or more embodiments of the present disclosure, the method including: receiving a gift resource list request sent by a client, wherein the gift resource list request comprises a user ID of a login user in the client; acquiring registration information of a login user in the client according to the user ID; sending a gift resource list to the client under the condition that the registration information is in a preset user registration information table, wherein the gift resource list comprises information used for indicating gift resources to be updated; receiving a gift resource update request sent by the client in response to the gift resource list, and sending a corresponding gift resource to the client in response to the gift resource update request.
Example 2 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: and determining a user registration information table corresponding to the time when the gift resource list request is received as the preset user registration information table.
Example 3 provides the method of example 1 or example 2, further comprising, in accordance with one or more embodiments of the present disclosure: acquiring the number of online users in a plurality of live broadcast rooms in a broadcasting state; determining the descending time of gift resource lists corresponding to the live broadcast rooms according to the number of online users in the live broadcast rooms; and respectively sending the gift resource list to a client of an online user in the live broadcast rooms according to the sending time of the gift resource list corresponding to the live broadcast rooms.
Example 4 provides the method of example 3, wherein the obtaining the number of online users in the plurality of live rooms in the on-air state comprises: and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period.
Example 5 provides, in accordance with one or more embodiments of the present disclosure, a live room gift resource updating apparatus to be applied to a server, the apparatus including: the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a gift resource list request sent by a client, and the gift resource list request comprises a user ID of a login user in the client; the first acquisition module is used for acquiring the registration information of the login user in the client according to the user ID; a first sending module, configured to send a gift resource list to the client when the registration information is in a preset user registration information table, where the gift resource list includes information indicating a gift resource to be updated; and the updating module is used for receiving a gift resource updating request sent by the client in response to the gift resource list and sending a corresponding gift resource to the client in response to the gift resource updating request.
Example 6 provides the apparatus of example 5, the apparatus further comprising, in accordance with one or more embodiments of the present disclosure: a first determining module, configured to determine a user registration information table corresponding to a time when the gift resource list request is received as the preset user registration information table.
Example 7 provides the apparatus of example 5 or example 6, the apparatus further comprising, in accordance with one or more embodiments of the present disclosure: the first acquisition module is used for acquiring the number of online users in a plurality of live broadcast rooms in a broadcasting state; the second determining module is used for respectively determining the sending time of the gift resource lists corresponding to the live broadcasting rooms according to the number of online users in the live broadcasting rooms; and the second sending module is used for sending the gift resource list to the client side where the online user in the live broadcasting rooms is located according to the sending time of the gift resource list corresponding to the live broadcasting rooms.
Example 8 provides the apparatus of example 7, the first obtaining module further to: and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period.
Example 9 provides a computer readable medium having stored thereon a computer program that, when executed by a processing apparatus, performs the steps of the method of any of examples 1-4, in accordance with one or more embodiments of the present disclosure.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, an electronic device comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to carry out the steps of the method of any of examples 1-4.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims (8)
1. A method for updating gift resources of a live broadcast room is applied to a server, and comprises the following steps:
receiving a gift resource list request sent by a client, wherein the gift resource list request comprises a user ID of a login user in the client;
acquiring registration information of a login user in the client according to the user ID;
determining a user registration information table corresponding to the time when the gift resource list request is received as a preset user registration information table;
sending a gift resource list to the client under the condition that the registration information is in the preset user registration information table, wherein the gift resource list comprises information used for indicating gift resources to be updated;
receiving a gift resource update request sent by the client in response to the gift resource list, and sending a corresponding gift resource to the client in response to the gift resource update request.
2. The method of claim 1, further comprising:
acquiring the number of online users in a plurality of live broadcast rooms in a broadcasting state;
determining the descending time of gift resource lists corresponding to the live broadcast rooms according to the number of online users in the live broadcast rooms;
and respectively sending the gift resource list to a client of an online user in the live broadcast rooms according to the sending time of the gift resource list corresponding to the live broadcast rooms.
3. The method of claim 2, wherein obtaining the number of online users in the live rooms in the broadcast state comprises:
and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period.
4. A live room gift resource updating apparatus applied to a server, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a gift resource list request sent by a client, and the gift resource list request comprises a user ID of a login user in the client;
the first acquisition module is used for acquiring the registration information of the login user in the client according to the user ID;
a first determining module, configured to determine a user registration information table corresponding to a time when the gift resource list request is received as a preset user registration information table;
a first sending module, configured to send a gift resource list to the client when the registration information is in the preset user registration information table, where the gift resource list includes information indicating a gift resource to be updated;
and the updating module is used for receiving a gift resource updating request sent by the client in response to the gift resource list and sending a corresponding gift resource to the client in response to the gift resource updating request.
5. The apparatus of claim 4, further comprising:
the second acquisition module is used for acquiring the number of online users in the live broadcast rooms in the broadcasting state;
the second determining module is used for respectively determining the sending time of the gift resource lists corresponding to the live broadcasting rooms according to the number of online users in the live broadcasting rooms;
and the second sending module is used for sending the gift resource list to the client side where the online user in the live broadcasting rooms is located according to the sending time of the gift resource list corresponding to the live broadcasting rooms.
6. The apparatus of claim 5, wherein the second obtaining module is further configured to:
and acquiring the number of online users in the live broadcasting rooms in the broadcasting state according to a preset period in a preset time period.
7. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1-3.
8. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010014733.6A CN111246229B (en) | 2020-01-07 | 2020-01-07 | Method, device, medium and electronic equipment for updating gift resources of live broadcast room |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010014733.6A CN111246229B (en) | 2020-01-07 | 2020-01-07 | Method, device, medium and electronic equipment for updating gift resources of live broadcast room |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111246229A CN111246229A (en) | 2020-06-05 |
CN111246229B true CN111246229B (en) | 2022-01-25 |
Family
ID=70877613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010014733.6A Active CN111246229B (en) | 2020-01-07 | 2020-01-07 | Method, device, medium and electronic equipment for updating gift resources of live broadcast room |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111246229B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102333280A (en) * | 2011-09-26 | 2012-01-25 | 中兴通讯股份有限公司 | Business secret key renewing method and system and business processing server |
CN105610939A (en) * | 2015-12-28 | 2016-05-25 | 北京致远协创软件有限公司 | Client and server file downloading control method, device and system |
CN106651497A (en) * | 2016-09-29 | 2017-05-10 | 广州华多网络科技有限公司 | Method and device for sending gift identification list |
CN106790388A (en) * | 2016-11-24 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of method and mobile terminal for carrying out data renewal |
CN107222753A (en) * | 2017-05-25 | 2017-09-29 | 北京潘达互娱科技有限公司 | Virtual present loading method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8688780B2 (en) * | 2005-09-30 | 2014-04-01 | Rockwell Automation Technologies, Inc. | Peer-to-peer exchange of data resources in a control system |
CN103108018A (en) * | 2011-11-10 | 2013-05-15 | 北京千橡网景科技发展有限公司 | Method and device for downloading files in dynamic control network |
CN103475721B (en) * | 2013-09-12 | 2016-09-14 | 广东电子工业研究院有限公司 | A kind of digital asset updates the digital asset update method of system |
CN104778063A (en) * | 2015-04-16 | 2015-07-15 | 小米科技有限责任公司 | Method and device for updating resource |
US10437671B2 (en) * | 2015-06-30 | 2019-10-08 | Pure Storage, Inc. | Synchronizing replicated stored data |
CN107888654B (en) * | 2017-09-30 | 2020-10-16 | 北京诺君安信息技术股份有限公司 | Method and server for updating data according to time zones |
-
2020
- 2020-01-07 CN CN202010014733.6A patent/CN111246229B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102333280A (en) * | 2011-09-26 | 2012-01-25 | 中兴通讯股份有限公司 | Business secret key renewing method and system and business processing server |
CN105610939A (en) * | 2015-12-28 | 2016-05-25 | 北京致远协创软件有限公司 | Client and server file downloading control method, device and system |
CN106651497A (en) * | 2016-09-29 | 2017-05-10 | 广州华多网络科技有限公司 | Method and device for sending gift identification list |
CN106790388A (en) * | 2016-11-24 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of method and mobile terminal for carrying out data renewal |
CN107222753A (en) * | 2017-05-25 | 2017-09-29 | 北京潘达互娱科技有限公司 | Virtual present loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111246229A (en) | 2020-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110909521B (en) | Online document information synchronous processing method and device and electronic equipment | |
CN111246228B (en) | Method, device, medium and electronic equipment for updating gift resources of live broadcast room | |
CN111163329B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN110275723A (en) | Obtain method, apparatus, electronic equipment and the readable medium of resource | |
CN110781373B (en) | List updating method and device, readable medium and electronic equipment | |
CN112311656B (en) | Message aggregation and display method and device, electronic equipment and computer readable medium | |
CN113254105B (en) | Resource processing method and device, storage medium and electronic equipment | |
CN110795446A (en) | List updating method and device, readable medium and electronic equipment | |
CN110569057A (en) | gray scale distribution method and device, electronic equipment and computer readable medium | |
CN111432001B (en) | Method, apparatus, electronic device and computer readable medium for jumping scenes | |
CN110263276B (en) | Message distribution method, device, equipment and storage medium | |
CN112015816A (en) | Data synchronization method, device, medium and electronic equipment | |
CN111209306A (en) | Business logic judgment method and device, electronic equipment and storage medium | |
CN111163324A (en) | Information processing method and device and electronic equipment | |
CN110837534A (en) | Data list display method, device, equipment and storage medium | |
CN110633126A (en) | Information display method and device and electronic equipment | |
CN110619101B (en) | Method and apparatus for processing information | |
CN111225255B (en) | Target video push playing method and device, electronic equipment and storage medium | |
CN111262907B (en) | Service instance access method and device and electronic equipment | |
CN110996155B (en) | Video playing page display method and device, electronic equipment and computer readable medium | |
CN111246229B (en) | Method, device, medium and electronic equipment for updating gift resources of live broadcast room | |
CN111212296B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN115378878A (en) | CDN scheduling method, device, equipment and storage medium | |
CN111628913A (en) | Online time length determining method and device, readable medium and electronic equipment | |
CN112115424B (en) | Method, device, system, equipment and medium for acquiring copyrighted content |
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 |