CN111787345B - Interactive resource processing method and device based on network live broadcast room, server and storage medium - Google Patents

Interactive resource processing method and device based on network live broadcast room, server and storage medium Download PDF

Info

Publication number
CN111787345B
CN111787345B CN202010646532.8A CN202010646532A CN111787345B CN 111787345 B CN111787345 B CN 111787345B CN 202010646532 A CN202010646532 A CN 202010646532A CN 111787345 B CN111787345 B CN 111787345B
Authority
CN
China
Prior art keywords
live broadcast
interactive
room
broadcast room
webcast
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
CN202010646532.8A
Other languages
Chinese (zh)
Other versions
CN111787345A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010646532.8A priority Critical patent/CN111787345B/en
Publication of CN111787345A publication Critical patent/CN111787345A/en
Application granted granted Critical
Publication of CN111787345B publication Critical patent/CN111787345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/25Management 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The disclosure relates to a method and a device for processing interactive resources based on a live webcast room, a server and a storage medium. The method comprises the following steps: receiving a trigger operation on a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room; responding to the trigger operation, and judging whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room; and if the interactive resources in the target network live broadcast room are judged to be invalid, sending a secondary skip request to a server, wherein the secondary skip request is used for requesting to access a new network live broadcast room containing effective interactive resources. Therefore, even if the time point when the user triggers the push message is late, the user can access a new network live broadcast room containing effective interactive resources to contend for the interactive resources, and the user experience is improved.

Description

Interactive resource processing method and device based on network live broadcast room, server and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for processing an interactive resource based on a webcast, a server, and a storage medium.
Background
Live webcasting has become more and more popular in people's lives, and in the live webcasting process, a main webcasting often sends interactive resources such as virtual gifts, virtual emoticons, electronic red packages and the like to a user in a live webcasting room, and pushes a message (the message is subsequently called as a push message) to the user outside the live webcasting room through a live webcasting platform. Therefore, the user outside the live webcast room can enter the live webcast room to grab interactive resources by triggering the push message, and the purpose of attracting the user is achieved.
However, when the time when the user who enters the webcast room by triggering the push message enters the webcast room is late, the interactive resource is generally disabled or snatched by other users, so that the user who enters the webcast room by triggering the push message cannot snatch the interactive resource, and the user experience is affected.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a server, and a storage medium for processing an interactive resource based on a live webcast room, which can be used to solve a problem that a user entering the live webcast room by triggering a push message cannot rob the interactive resource. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing an interactive resource based on a live webcast room is provided, including:
receiving a trigger operation on a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room;
responding to the trigger operation, and judging whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room;
and if the interactive resources in the target network live broadcast room are judged to be invalid, sending a secondary skip request to a server, wherein the secondary skip request is used for requesting to access a new network live broadcast room containing effective interactive resources.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for processing an interactive resource based on a webcast, including:
receiving a secondary skip request sent by a client, wherein the secondary skip request is sent when the client judges that an interactive resource fails according to the aging information of the interactive resource in a target live webcast room in response to a trigger operation after the client receives the trigger operation on a push message, and the push message is used for prompting that the interactive resource exists in the target live webcast room;
and acquiring an access address of a new network live broadcast room containing effective interactive resources, and responding to the secondary skip request.
According to a third aspect of the embodiments of the present disclosure, an interactive resource processing apparatus based on a webcast room is provided, including:
the receiving unit is configured to execute a trigger operation of receiving a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room;
the judging unit is configured to execute and respond to the triggering operation, and judge whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room;
and the sending unit is configured to send a secondary skip request to the server if the interactive resource in the target network live broadcast is judged to be invalid, wherein the secondary skip request is used for requesting to access a new network live broadcast containing effective interactive resources.
According to a fourth aspect of the embodiments of the present disclosure, an interactive resource processing apparatus based on a webcast room is provided, including:
the second receiving unit is configured to execute receiving of a secondary skip request sent by a client, wherein the secondary skip request is sent when the client receives a trigger operation on a push message in response to the trigger operation and judges that an interactive resource fails according to aging information of the interactive resource in a target network live broadcast room, and the push message is used for prompting that the interactive resource exists in the target network live broadcast room;
and the response unit is configured to acquire an access address of a new network live broadcast room containing effective interactive resources and respond to the secondary jump request.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a client, including:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to execute the instructions to implement any one of the interactive resource processing methods based on the webcast room provided in the embodiments of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server including:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to execute the instructions to implement any one of the interactive resource processing methods based on the webcast room provided in the embodiments of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, an interactive resource processing system based on a webcast room is provided, which includes a client provided in the embodiments of the present disclosure and a server provided in the embodiments of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of a client, enable the client to perform any one of the methods for processing an interactive resource based on a webcast provided in the embodiments of the present disclosure; or the like, or, alternatively,
when executed by a processor of a server, the instructions in the storage medium enable the server to execute any one of the methods for processing interactive resources based on a webcast room provided in the embodiments of the present disclosure.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product, which when run on a computer, causes the computer to execute any one of the interactive resource processing methods based on a webcast as provided in the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by adopting the interactive resource processing method based on the network live broadcast room provided by the embodiment of the disclosure, the client receives a trigger operation on a push message, wherein the push message is used for prompting that the target network live broadcast room has interactive resources, the client responds to the trigger operation and judges whether the interactive resources in the target network live broadcast room are effective or not according to the timeliness information of the interactive resources in the network live broadcast room, and if the client judges that the interactive resources in the target network live broadcast room are invalid, the client sends a secondary skip request to the server, wherein the secondary skip request is used for requesting to access a new network live broadcast room containing the effective interactive resources. Therefore, even if the time point when the user triggers the push message is late, the user can access the new network live broadcast room containing the effective interactive resources to rob the interactive resources, the possibility of robbing the interactive resources is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic flowchart illustrating a method for processing an interactive resource based on a webcast room according to an exemplary embodiment.
Fig. 2 is a schematic flowchart illustrating a method for processing an interactive resource based on a webcast room according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a specific structure of an interactive resource processing apparatus based on a webcast.
Fig. 4 is a schematic structural diagram illustrating a specific structure of an interactive resource processing apparatus based on a webcast.
Fig. 5 is a schematic diagram illustrating a specific structure of a server according to an exemplary embodiment.
Fig. 6 is a schematic flowchart illustrating a system for processing interactive resources based on a webcast according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein.
As described above, for a user who enters a webcast room by triggering a push message, when the time when the user enters the webcast room is later, the interactive resource is generally disabled or snatched by other users, so that the user is difficult to snatch the interactive resource, and the user experience is affected. Based on this, the embodiment of the present disclosure provides an interactive resource processing method based on a live webcast room, which can be used to solve the technical problem.
As shown in fig. 1, which is a schematic flow chart of the method for processing interactive resources based on the webcast, in the method shown in fig. 1, an execution subject may be a client on a mobile phone, a computer, or the like. The method comprises the following specific steps:
step S11: the client receives a trigger operation on a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room.
In practical application, a main broadcast of a live webcast room or some users often send interactive resources such as electronic red packages, virtual gifts, virtual emoticons and the like in the live webcast room in order to attract the users, and a live broadcast platform also usually sends push messages to users outside the live webcast room, so that the users receiving the push messages are prompted, and the interactive resources are provided in a target live webcast room. For example, when a mobile phone of a certain user receives a push message, the push message may be triggered by a trigger operation such as clicking, long-pressing, or the like, so that a client installed on the mobile phone can receive the trigger operation on the push message.
Step S12: and the client responds to the trigger operation, judges whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room, if so, executes the step S13, and otherwise, executes the step S14.
Step S13: the client accesses the target network live broadcast room.
Step S14: and the client sends a secondary jump request to the server, wherein the secondary jump request is used for requesting to access a new network live broadcast room containing effective interactive resources.
The following can collectively describe steps S12 to S14.
After receiving the trigger operation of the push message, the client may obtain the aging information of the interactive resource in the live webcast room, where the aging information may be used to determine the effectiveness of the interactive resource in the corresponding live webcast room, for example, determine that the interactive resource is effective or ineffective at the current time point through the aging information. Specifically, the aging information may be a specific time point when the interactive resource fails, so as to record that the interactive resource fails at a certain time point and is valid before the time point is reached; or the time efficiency information may also be a timestamp of the interactive resource and an effective duration thereof, where the timestamp may be generally used to record information such as a time point generated by the interactive resource, so as to calculate whether the interactive resource is effective at the current time point through the timestamp and the effective duration.
When the time efficiency information is a specific time point of interactive resource failure, whether the current time point exceeds the time point of interactive resource failure or not can be judged through comparison between the time point and the current time point, if yes, the interactive resource in the target network live broadcast room is failed, and at the moment, a secondary skip request can be sent to a server; if not, the interactive resources in the target live webcast room are still valid, and the target live webcast room can be continuously accessed at the moment.
Or, when the aging information is also specifically the timestamp of the interactive resource and the effective duration of the interactive resource, the time interval between the current time point and the timestamp of the interactive resource can be calculated first, whether the time interval is greater than the effective duration of the interactive resource or not is judged, if so, the interactive resource in the target live webcast room is invalid at the current time point, and at this time, a secondary skip request can be sent to the server; if the current time point is not greater than (i.e., less than or equal to) the current time point, it indicates that the interactive resources in the target webcast are still valid, and the target webcast can be continuously accessed. Or, directly judging whether the current time point is greater than the sum of the timestamp and the effective duration, if so, indicating that the interactive resources in the target live webcast room are invalid at the current time point, at this moment, sending a secondary skip request to the server, otherwise, indicating that the interactive resources in the target live webcast room are valid at the current time point, and at this moment, continuing to access the target live webcast room.
By adopting the interactive resource processing method based on the network live broadcast room provided by the embodiment of the disclosure, the client receives a trigger operation on a push message, wherein the push message is used for prompting that the target network live broadcast room has interactive resources, the client responds to the trigger operation and judges whether the interactive resources in the target network live broadcast room are effective or not according to the timeliness information of the interactive resources in the network live broadcast room, and if the client judges that the interactive resources in the target network live broadcast room are invalid, the client sends a secondary skip request to the server, wherein the secondary skip request is used for requesting to access a new network live broadcast room containing the effective interactive resources. Therefore, even if the time point when the user triggers the push message is late, the user can access the new network live broadcast room containing the effective interactive resources to rob the interactive resources, the possibility of robbing the interactive resources is improved, and the user experience is improved.
In addition, in practical application, the network transmission speed is often limited by factors such as low network transmission speed and busy server task processing, and after the client sends the secondary skip request to the server, a long-time no-response state may occur, so that the user may wait for a long time. In order to solve the problem, after the secondary skip request is sent to the server, the present disclosure may continue to determine whether a response of the server to the secondary skip request is received within a preset time length (also referred to as timeout waiting time), and if the response of the server is not received within the preset time length, skip to the target network live broadcast room, or if the response of the server is received within the preset time length, skip to a new network live broadcast room, thereby avoiding the user waiting for a long time. The preset time period may be set according to timing, such as 2 minutes, 3 minutes, 5 minutes, 500 seconds, etc.
Based on the same inventive concept as the interactive resource processing method based on the live webcast room shown in fig. 1, the embodiment of the present disclosure may further provide an interactive resource processing method based on the live webcast room. As shown in fig. 2, which is a flow chart of the method, in the method shown in fig. 2, the execution subject may be a server in general. The method comprises the following specific steps:
step S21: and the server receives a secondary skip request sent by the client.
The client side responds to the triggering operation after receiving the triggering operation of the push message, judges that the interactive resource is invalid and sends the secondary skip request according to the timeliness information of the interactive resource in the target network live broadcast room, and the push message is used for prompting the interactive resource in the target network live broadcast room.
For example, after receiving the push message, the user mobile phone can click the push message, so that the client can receive the trigger operation on the push message, respond to the trigger operation, judge whether the interactive resource is effective according to the aging information of the interactive resource in the target live webcast room, and send the secondary skip request to the server when judging that the interactive resource is invalid.
Step S22: the server obtains the access address of the new webcast containing the effective interactive resource.
In practical application, the live broadcast room ID of the live broadcast room containing the effective interactive resource can be prestored in the redis by monitoring the interactive resource kafka, and in order to ensure the effectiveness of the interactive resource, a corresponding expiration time can be set, and in consideration of the fact that after a user triggers a push message, the live broadcast room ID needs to be buffered for a certain time to enter the corresponding live broadcast network room, the expiration time can be generally set to be less than or equal to the effective duration of the interactive resource, for example, the effective duration of the interactive resource is 1min (60 seconds), and the expiration time can be set to be 50 seconds. Therefore, when the time length stored in the redis exceeds the expiration time, a user can not grab interactive resources when entering the live webcast room by triggering the push message, and therefore the data with the time length exceeding the expiration time stored in the redis can be cleaned in a timing or real-time mode, and the live webcast room ID containing effective interactive resources is reserved.
In addition, when the live broadcast room ID of the live broadcast room containing the effective interactive resources is pre-stored into redis, the live broadcast room ID of the live broadcast room containing the effective interactive resources can be pre-stored into value of redis, and the timestamps corresponding to the effective interactive resources are pre-stored into the corresponding keys. Therefore, when the live broadcast room ID is obtained, the live broadcast room ID of the live broadcast room containing the effective interactive resources in the past minute can be obtained only according to the current time point and by combining the effective duration (such as 1min) of the interactive resources, and the interactive resources in the live broadcast rooms are effective to the current time point.
When the live broadcast room ID of the live broadcast room containing the effective interactive resources is prestored in the redis, the live broadcast room ID of the live broadcast room containing the effective interactive resources can be prestored in the value of the redis, and the cycle number of the effective interactive resources is prestored in the corresponding key, wherein the cycle number of the effective interactive resources is generated according to the effective duration of the interactive resources in an equal division manner. For example, the effective duration of the interactive resources is 1min, and the effective duration can be divided into equal parts by 60 in seconds, so that 0-59 is generated as a cyclic number; or dividing the number into 6 by 1min in units of 10 seconds to generate 0-5 as a cycle number. The difference between the loop number as the key and the time stamp of the interactive resource as the key is that the loop number is used as the key of the redis, and because the loop numbers can be used in a loop, the condition that the key is calculated by subtracting 0-59 from the current time point when the redis is requested is avoided.
In this way, after the live broadcast room ID of the live broadcast room containing the effective interactive resource is prestored in the redis, when the access address of the new network live broadcast room containing the effective interactive resource is obtained according to the secondary skip request, any one live broadcast room ID can be randomly obtained from the prestored multiple live broadcast room IDs according to the secondary skip request, and the live broadcast rooms corresponding to the multiple live broadcast room IDs respectively contain the effective interactive resource; and then, taking the live broadcast room corresponding to the randomly acquired live broadcast room ID as a new network live broadcast room, and acquiring an access address of the new network live broadcast room through the live broadcast room ID.
By the method for randomly acquiring the ID of any live broadcast room from the IDs of the live broadcast rooms, after a user finishes grabbing interactive resources, the live broadcast contents in the live broadcast room of the new network are not preferred, so that the effect of attracting audiences is not achieved. Therefore, in order to further improve the viscosity of the user after completing the interactive resources, the user can be recommended to the live webcast room by combining the interest preference of the user and the live content of the live webcast room.
For example, live broadcast room IDs pre-stored in the redis (live broadcast rooms corresponding to the live broadcast room IDs all contain effective interactive resources) may be obtained, and then a live broadcast room vector may be generated according to a user portrait of a main broadcast of each live broadcast room, where the live broadcast room vector is used to represent type deviation of live broadcast content of a corresponding live broadcast room. The user representation of the anchor may generally include the anchor type, such as game anchor, gourmet anchor, etc., the user representation of the anchor may also include the anchor gender, the anchor main fan group type, other users concerned by the anchor, etc., and the type bias of the live content can be obtained by analyzing the user representation of the anchor.
In practical applications, a user representation of a anchor may be input to a live space vector generation model to generate a live space vector via the live space vector generation model. The live broadcast room vector generation model can be obtained by training in the following way: firstly, acquiring a user portrait of a anchor meeting preset acquisition conditions, wherein the preset acquisition conditions comprise the anchor concerned, normal users with activity meeting, registration time meeting a preset time threshold value and the like; then, each collected anchor portrait is used as a sample, the samples are trained according to machine learning and a neural network, verification is carried out on the basis of the verification samples, and finally a direct broadcasting room vector generation model is obtained. The user portrait of the part anchor can be artificially marked as a verification sample through a preset classification rule.
The user representation of the user can also be input to the user vector generation model, so that a user vector is generated through the user vector generation model, wherein the user vector is used for representing the interest preference of the user. The user imagery of the user may include historical behavioral data of the user, such as which anchor was watched, anchors of interest, and the like; the user representation of the user may also include attribute information of the user, such as the user's gender, age, and the like. Similarly, the user vector generation model may also be generated in a similar manner, which is not described herein again.
After the live broadcast room vector and the user vector are obtained, the live broadcast room meeting the preset conditions can be selected as the new live broadcast network room according to the similarity between the user vector and each live broadcast room vector, and the access address of the new live broadcast network room is obtained. For example, each live broadcast room vector can be used as a current live broadcast room vector, and the similarity between the user vector and the current live broadcast room vector is calculated, so that the live broadcast room vector with the highest similarity can be screened out, and the live broadcast room corresponding to the live broadcast room vector is used as the new network live broadcast room, and the access address of the new network live broadcast room is obtained. When calculating the similarity between the user vector and the current live broadcast room vector, the similarity may be a pre-similarity, or an euclidean distance or the like may be used as the similarity between two vectors, which is not limited herein.
Step S23: and the server responds to the secondary jump request.
After obtaining the access address of the new webcast including the effective interactive resource, the server may respond to the secondary skip request sent by the client, for example, send the access address to the client, so that the client can access the new webcast through the access address.
With the interactive resource processing method based on the webcast as shown in fig. 2, after receiving the secondary skip request sent by the client, the server obtains the access address of the new webcast containing the effective interactive resource, and then can respond to the secondary skip request. Therefore, even if the time point when the user triggers the push message is late, the client can access the new network live broadcast room containing the effective interactive resources to preempt the interactive resources after receiving the response, and the user experience is improved.
For convenience of understanding, the method for processing the interactive resource based on the webcast room provided by the embodiment of the present disclosure may be further described with reference to an actual application scenario, where in the application scenario, the interactive resource is specifically an electronic red packet (or referred to as a red packet).
In practical application, a secondary skip triggering interface can be set at the client, and the secondary skip triggering interface is as follows.
Figure BDA0002573335600000081
Figure BDA0002573335600000091
Wherein, the action field can carry out secondary jump only if the read _ evlp _ redirect is used, otherwise, the action field directly jumps to the field; the default _ uri field is an access address of a target network live broadcast room in the push message; the timestamp _ ms field is a timestamp of an electronic red packet in the target network live broadcast room; the red _ evlp _ expire _ s field is the valid duration of the electronic red packet, set here to 60 seconds.
When the client judges whether to trigger secondary skip, if the current time point is greater than the sum of the value of a timestamp _ ms field and the value of a red _ evlp _ expect _ s field, the fact that the electronic red packet in the target network live broadcast room is invalid is indicated, and a secondary skip request can be sent to the server; otherwise, directly jumping to the target network live broadcast room.
In addition, the api _ timeout _ ms field is timeout waiting time of the secondary skip service, and if the client does not receive a response from the server within the timeout waiting time after sending the secondary skip request to the server, the client can skip to a default live broadcast or a target network live broadcast in order to prevent the user from waiting for a long time.
It should be noted that, when the number of users for grabbing electronic red packets is large, the server usually bears a great operation pressure, so the client may also filter some access requests. For example, the action field is not red _ evlp _ redirect, which means that it is not triggered to push message entry, and can directly access the target webcast room, so that the operating pressure of the server can be reduced. For example, the number of electronic red packets in the target webcast room is 100, and the number of people who push messages added by the user in the target webcast room is 1 ten thousand, so that the interface of the request server can be filtered according to a one-tenth ratio, that is, only 1000 people can initiate a request for electronic red packet robbery from the client to the server, and the server can select 100 people from 1000 people.
Based on the same inventive concept as the interactive resource processing method based on the live webcast room shown in fig. 1 of the embodiment of the present disclosure, the present disclosure also provides an interactive resource processing device based on the live webcast room. As shown in fig. 3, the apparatus 30 includes: a receiving unit 301, a judging unit 302 and a transmitting unit 303, wherein:
a receiving unit 301 configured to perform a trigger operation of receiving a push message, where the push message is used to prompt that an interactive resource exists in a target webcast;
a judging unit 302, configured to execute, in response to the trigger operation, judging whether the interactive resource in the target webcast room is valid according to the aging information of the interactive resource in the webcast room;
a sending unit 303, configured to execute sending, to a server, a secondary skip request if it is determined that the interactive resource in the target webcast is invalid, where the secondary skip request is used to request to access a new webcast including an effective interactive resource.
Since the apparatus 30 employs the same inventive concept as the method shown in fig. 1, the problems of the prior art can also be solved. In addition, for the apparatus 30, if there is an unclear point, reference may be made to relevant contents in the method embodiment, and details thereof are not described here.
Based on the same inventive concept as the interactive resource processing method based on the live webcast room shown in fig. 2 in the embodiment of the present disclosure, the present disclosure also provides an interactive resource processing device based on the live webcast room. As shown in fig. 4, the apparatus 40 includes: a second receiving unit 401 and a response unit 402, wherein:
a second receiving unit 401, configured to execute receiving a secondary skip request sent by a client, where the secondary skip request is sent when the client receives a trigger operation on a push message, responds to the trigger operation, and determines that an interactive resource fails according to aging information of the interactive resource in a target live webcast room, where the push message is used to prompt that the interactive resource exists in the target live webcast room;
a response unit 402, configured to perform obtaining an access address of a new webcast including an effective interactive resource, and respond to the secondary skip request.
Since the apparatus 40 employs the same inventive concept as the method shown in fig. 2, the problems of the prior art can also be solved. In addition, for the apparatus 40, if there is an unclear point, reference may be made to relevant contents in the method embodiment, and details thereof are not repeated here.
In addition, the embodiment of the disclosure can also provide a server. Fig. 5 is a block diagram illustrating a server 50 according to an example embodiment. The server 50 comprises a processor 501 and a memory 502 for storing instructions executable by the processor 501. The processor 501 is configured to execute the instructions to implement the method for processing the interactive resources based on the webcast as shown in fig. 2 according to the embodiment of the present disclosure.
In practice, the server 50 may also include a network interface 503, an I/O controller 504, a mass storage device 505, and a bus 506 for connecting them.
In an exemplary embodiment, the present disclosure also provides a storage medium comprising instructions, such as the memory 502 comprising instructions, executable by the processor 501 of the server 50 to perform the above-described method. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments of the present disclosure may also provide a computer program product, which when running on a computer, causes the computer to execute the method for processing the interactive resources based on the webcast according to the embodiments of the present disclosure.
In addition, as shown in fig. 6, the embodiment of the present disclosure may also provide an interactive resource processing system based on a webcast, where the system 60 may include a client 70 and a server 50 as shown in fig. 5. The client 60 may also include a processor and a memory, where the memory is used for storing instructions executable by the processor, and the processor is configured to execute the instructions to implement the method for processing interactive resources based on the webcast room shown in fig. 1 according to the embodiment of the present disclosure.
The embodiments of the present disclosure may also provide a computer program product, which when run on a computer, causes the computer to execute the recommendation method for group members provided by the embodiments of the present disclosure.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are, in whole or in part, generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An interactive resource processing method based on a network live broadcast room is characterized by comprising the following steps:
receiving a trigger operation on a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room;
responding to the trigger operation, and judging whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room;
and if the interactive resources in the target network live broadcast room are judged to be invalid, sending a secondary skip request to a server, wherein the secondary skip request is used for requesting to access a new network live broadcast room containing effective interactive resources.
2. The method of claim 1, wherein the age information comprises: the timestamp and the effective duration of the interactive resource, wherein whether the interactive resource in the target live webcast room is effective or not is judged according to the aging information of the interactive resource in the live webcast room, and the judging comprises the following steps:
and judging whether the interactive resources in the target network live broadcast room are effective at the current time point according to the time stamp of the interactive resources and the effective duration of the interactive resources.
3. The method of claim 2, wherein determining whether the interactive resource in the target webcast room is valid at the current time point according to the timestamp of the interactive resource and the valid duration of the interactive resource comprises:
judging whether the current time point is greater than the sum of the timestamp and the effective duration;
if the current time point is greater than the sum of the timestamp and the effective duration, judging that the interactive resources in the target network live broadcast room are invalid at the current time point; or if the current time point is less than or equal to the sum of the timestamp and the effective duration, judging that the interactive resources in the target network live broadcast room are effective at the current time point.
4. The method of claim 1, wherein after sending the secondary skip request to the server, the method further comprises:
if the response of the server is not received within the preset time length, jumping to the target network live broadcast room; or the like, or, alternatively,
and if the response of the server is received within the preset time length, jumping to the new network live broadcast room.
5. An interactive resource processing method based on a network live broadcast room is characterized by comprising the following steps:
receiving a secondary skip request sent by a client, wherein the secondary skip request is sent when the client judges that an interactive resource fails according to the aging information of the interactive resource in a target live webcast room in response to a trigger operation after the client receives the trigger operation on a push message, and the push message is used for prompting that the interactive resource exists in the target live webcast room;
and acquiring an access address of a new network live broadcast room containing effective interactive resources, and responding to the secondary skip request.
6. The method of claim 5, wherein obtaining an access address of a new webcast containing active interactive resources comprises:
randomly acquiring any one live broadcast room ID from a plurality of prestored live broadcast room IDs, wherein the live broadcast rooms corresponding to the live broadcast room IDs respectively contain effective interactive resources; and the number of the first and second groups,
and taking the live broadcast room corresponding to the randomly acquired live broadcast room ID as the new network live broadcast room, and acquiring the access address of the new network live broadcast room through the live broadcast room ID.
7. The method of claim 6, further comprising: pre-storing a live broadcast room ID of a live broadcast room containing effective interactive resources into a redis by monitoring the interactive resources kafka; then the process of the first step is carried out,
randomly acquiring any live broadcast room ID from a plurality of prestored live broadcast room IDs, wherein the method comprises the following steps:
randomly acquiring any one live room ID from a plurality of live room IDs pre-stored in the redis.
8. The method of claim 7, wherein pre-storing a live-room ID of a live-room containing active interactive resources into a redis comprises:
prestoring a live broadcast room ID of a live broadcast room containing effective interactive resources into a value of redis, and prestoring an interactive resource timestamp of the effective interactive resources into a corresponding key; or the like, or, alternatively,
prestoring a live broadcast room ID of a live broadcast room containing effective interactive resources into a value of redis, and prestoring a cycle number of the effective interactive resources into a corresponding key, wherein the cycle number of the effective interactive resources is generated according to the effective duration of the interactive resources in equal parts.
9. The method of claim 5, wherein obtaining an access address of a new webcast containing active interactive resources comprises:
generating a user vector according to a user portrait of a user, wherein the user vector is used for representing interest preference of the user;
aiming at each live webcast room containing effective interactive resources, generating a live webcast room vector according to a user portrait of a main webcast of the live webcast room, wherein the live webcast room vector is used for representing type deviation of live content of the live webcast room;
and selecting the live broadcast room meeting preset conditions as the new network live broadcast room according to the similarity between the user vector and each live broadcast room vector, and acquiring the access address of the new network live broadcast room.
10. An interactive resource processing device based on a network live broadcast room is characterized by comprising:
the receiving unit is configured to execute a trigger operation of receiving a push message, wherein the push message is used for prompting that interactive resources exist in a target network live broadcast room;
the judging unit is configured to execute and respond to the triggering operation, and judge whether the interactive resources in the target live webcast room are effective or not according to the timeliness information of the interactive resources in the live webcast room;
and the sending unit is configured to send a secondary skip request to the server if the interactive resource in the target network live broadcast is judged to be invalid, wherein the secondary skip request is used for requesting to access a new network live broadcast containing effective interactive resources.
11. An interactive resource processing device based on a network live broadcast room is characterized by comprising:
the second receiving unit is configured to execute receiving of a secondary skip request sent by a client, wherein the secondary skip request is sent when the client receives a trigger operation on a push message in response to the trigger operation and judges that an interactive resource fails according to aging information of the interactive resource in a target network live broadcast room, and the push message is used for prompting that the interactive resource exists in the target network live broadcast room;
and the response unit is configured to acquire an access address of a new network live broadcast room containing effective interactive resources and respond to the secondary jump request.
12. A client, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing the interactive resources based on the webcast room according to any one of claims 1 to 4.
13. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing the interactive resources based on the webcast room according to any one of claims 5 to 9.
14. An interactive resource processing system based on a webcast, comprising the client as claimed in claim 12 and the server as claimed in claim 13.
15. A storage medium in which instructions, when executed by a processor of a client, enable the client to perform the webcast-based interactive resource processing method of any one of claims 1 to 4; or the like, or, alternatively,
the instructions in the storage medium, when executed by a processor of a server, enable the server to perform the method of web-based live broadcast interactive resource processing of any one of claims 5 to 9.
CN202010646532.8A 2020-07-07 2020-07-07 Interactive resource processing method and device based on network live broadcast room, server and storage medium Active CN111787345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010646532.8A CN111787345B (en) 2020-07-07 2020-07-07 Interactive resource processing method and device based on network live broadcast room, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010646532.8A CN111787345B (en) 2020-07-07 2020-07-07 Interactive resource processing method and device based on network live broadcast room, server and storage medium

Publications (2)

Publication Number Publication Date
CN111787345A CN111787345A (en) 2020-10-16
CN111787345B true CN111787345B (en) 2022-04-01

Family

ID=72759034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010646532.8A Active CN111787345B (en) 2020-07-07 2020-07-07 Interactive resource processing method and device based on network live broadcast room, server and storage medium

Country Status (1)

Country Link
CN (1) CN111787345B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351292B (en) * 2020-10-26 2022-08-30 北京达佳互联信息技术有限公司 Electronic resource interaction reminding processing method and device in live broadcast
CN113873269B (en) * 2021-08-26 2023-12-26 北京达佳互联信息技术有限公司 Information pushing method, device, server and storage medium
CN113824974B (en) * 2021-08-27 2022-10-04 北京达佳互联信息技术有限公司 Virtual asset sending method and device, electronic equipment and storage medium
CN114245195B (en) * 2022-01-13 2023-11-07 百果园技术(新加坡)有限公司 Live interaction method, device, equipment, storage medium and program product
CN114630186B (en) * 2022-03-21 2023-11-07 河北太行农牧供应链有限公司 Intelligent guiding method, system and computer storage medium for live webcasting
CN115037955A (en) * 2022-05-31 2022-09-09 北京达佳互联信息技术有限公司 Data processing method, data display method, data processing device, data display device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172496A (en) * 2017-04-11 2017-09-15 广州华多网络科技有限公司 The virtual resource sending method and device of a kind of direct broadcasting room
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects
CN107483973A (en) * 2017-08-22 2017-12-15 广州市百果园信息技术有限公司 In the method and apparatus of direct broadcasting room execution activity
CN108270773A (en) * 2017-12-22 2018-07-10 杭州顺网珑腾信息技术有限公司 A kind of processing system for being used to implement electronics red packet granting
CN109146562A (en) * 2018-08-13 2019-01-04 宜人恒业科技发展(北京)有限公司 It is a kind of for retrieving the intelligent recommendation system that will be lost user
CN110753270A (en) * 2019-10-16 2020-02-04 北京达佳互联信息技术有限公司 Information display method, device, terminal, server, system and storage medium
CN111246225A (en) * 2019-12-25 2020-06-05 北京达佳互联信息技术有限公司 Information interaction method and device, electronic equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874729B (en) * 2018-09-03 2022-09-06 Oppo广东移动通信有限公司 Switching method and switching device for electronic red packet identification strategy and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302488A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 Distribution method, system and the server of virtual objects
CN107172496A (en) * 2017-04-11 2017-09-15 广州华多网络科技有限公司 The virtual resource sending method and device of a kind of direct broadcasting room
CN107483973A (en) * 2017-08-22 2017-12-15 广州市百果园信息技术有限公司 In the method and apparatus of direct broadcasting room execution activity
CN108270773A (en) * 2017-12-22 2018-07-10 杭州顺网珑腾信息技术有限公司 A kind of processing system for being used to implement electronics red packet granting
CN109146562A (en) * 2018-08-13 2019-01-04 宜人恒业科技发展(北京)有限公司 It is a kind of for retrieving the intelligent recommendation system that will be lost user
CN110753270A (en) * 2019-10-16 2020-02-04 北京达佳互联信息技术有限公司 Information display method, device, terminal, server, system and storage medium
CN111246225A (en) * 2019-12-25 2020-06-05 北京达佳互联信息技术有限公司 Information interaction method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
微信"云服务" 爱在直播间;刘瑞彬;《中国农村金融》;20200615(第12期);71-72 *
网络直播中青年与社会的相互建构――以淘宝网络直播为例;付雪琴等;《学理论》;20180805(第08期);104-106 *

Also Published As

Publication number Publication date
CN111787345A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111787345B (en) Interactive resource processing method and device based on network live broadcast room, server and storage medium
US11122067B2 (en) Methods for detecting and mitigating malicious network behavior and devices thereof
CN109152095B (en) Wireless network connection method for terminal
CN110213522B (en) Video data processing method and device and related equipment
CN111770355B (en) Media server determination method, device, server and storage medium
US20080133638A1 (en) Automated identification of high/low value content based on social feedback
CN112988013B (en) Information interaction method and device and storage medium
CN113596519B (en) Method for regulating and controlling live broadcast plug flow of monitoring equipment and electronic equipment
US11809380B2 (en) Information sharing method, apparatus, electronic device, and storage medium
US20200366967A1 (en) Method and system for monitoring quality of streaming media
CN106559241A (en) Using the collection of daily record, sending method, device, system and log server
CN113163235A (en) Method and device for acquiring video watching time length
CN108415908B (en) Multimedia data processing method and server
WO2012155702A1 (en) Method, system, service processing server for updating service key
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN107819754B (en) Anti-hijacking method, monitoring server, terminal and system
US20240031454A1 (en) System, method and computer-readable medium for data accessing
CN110418176B (en) Barrage information processing method and device, server and storage medium
CN110771172B (en) System and storage medium for dynamic multimedia stream insertion from multiple sources
CN105323270B (en) Network information push method and system
WO2014153843A1 (en) Classification method, device and system for digital television users
KR102196403B1 (en) Reduced redirection
CN114338830B (en) Data transmission method, device, computer readable storage medium and computer equipment
CN113873269B (en) Information pushing method, device, server and storage medium
CN111625375B (en) Account reservation method and device, storage medium and electronic equipment

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