CN113810759A - Video frequency praise realization method and device - Google Patents

Video frequency praise realization method and device Download PDF

Info

Publication number
CN113810759A
CN113810759A CN202111079645.5A CN202111079645A CN113810759A CN 113810759 A CN113810759 A CN 113810759A CN 202111079645 A CN202111079645 A CN 202111079645A CN 113810759 A CN113810759 A CN 113810759A
Authority
CN
China
Prior art keywords
data
click
praise
video
screen
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.)
Granted
Application number
CN202111079645.5A
Other languages
Chinese (zh)
Other versions
CN113810759B (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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202111079645.5A priority Critical patent/CN113810759B/en
Publication of CN113810759A publication Critical patent/CN113810759A/en
Application granted granted Critical
Publication of CN113810759B publication Critical patent/CN113810759B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Abstract

The application discloses a video praise realization method. The method comprises the following steps: capturing click operation triggered by a user on a screen in the process of watching a video by the user; generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time generated by the click operation; the click data stored in the stack is subjected to pop processing, and the time interval between the click time in the click data and the second time of the click operation contained in the second click data obtained by the last pop processing is calculated; and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen. The application can improve the convenience of the praise operation.

Description

Video frequency praise realization method and device
Technical Field
The application relates to the technical field of videos, in particular to a video praise realization method and device.
Background
With the development of internet technology and the popularization of mobile terminals, the live broadcast industry has also been rapidly developed, and more live broadcast platforms have come out.
The live broadcast platform on the market is realized by a like button when the like is complied in a live broadcast room. Usually, a small button is arranged on a fixed position of the direct broadcasting interface to allow a user to click to realize the praise, however, the praise mode is very inconvenient to operate.
Disclosure of Invention
In view of the above, a video praise implementing method, an apparatus, a computer device and a computer readable storage medium are provided to solve the problem that the existing praise manner is inconvenient to operate.
The application provides a video praise realization method, which comprises the following steps:
capturing click operation triggered by a user on a screen in the process of watching a video by the user;
generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time generated by the click operation;
performing pop operation on the click data stored in the stack, and calculating the time interval of click time contained in two adjacent click data obtained by the pop operation;
and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen.
Optionally, the click data further includes a click coordinate, the generating the corresponding click data according to the click operation, and the pushing and storing the click data includes:
judging whether the click operation occurs in a preset area in the screen according to the click coordinate in the click data;
if the clicking operation occurs in a preset area in the screen, the clicking data is stacked and stored; and
and if the clicking operation does not occur in the preset area in the screen, deleting the clicking data.
Optionally, the method further comprises:
when the time interval exceeds the first preset value, judging that two adjacent click data obtained by the pop operation are invalid click data;
deleting the invalid click data.
Optionally, the method further comprises:
after judging that the click operation belongs to the praise operation, if the click operation triggered by the user on the screen is captured again, acquiring first time of the captured click operation and second time of the last click operation of the captured click operation;
calculating a time interval between the first time and the second time;
and when the time interval between the first time and the second time does not exceed a second preset value, judging that the click operation captured again is a praise operation, and rendering a praise effect in the screen.
Optionally, the method further comprises:
generating corresponding approval data or approval data according to the approval operation or approval operation;
storing the praise data or the praise data into a data reporting queue;
uploading the praise data or praise data stored in the data reporting queue to a server, so that the server determines praise values of all users for the video according to the praise data or praise data reported by all the clients;
and receiving the praise value returned by the server, and displaying the praise value on the screen.
Optionally, the uploading of the approval data or the continuous approval data stored in the data reporting queue to the server includes:
uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset timing strategy; or
Uploading praise data or continuous praise data stored in the data reporting queue to a server by adopting a preset quantitative strategy; or
And uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a strategy of combining a preset timing strategy and a quantitative strategy.
Optionally, the method further comprises:
in the process of uploading the approval data or the continuous approval data stored in the data reporting queue to the server by adopting a preset strategy of combining a timing strategy and a quantitative strategy, if the data amount of the approval data or the continuous approval data stored in the data reporting queue exceeds the preset data amount, discarding the newly generated approval data or the continuous approval data.
The application also provides a video praise implementing device, which comprises:
the capturing module is used for capturing click operation triggered by a user on a screen in the process of watching a video by the user;
the storage module is used for generating corresponding click data according to the click operation and stacking and storing the click data, wherein the click data comprises click time generated by the click operation;
the calculating module is used for performing pop operation on the click data stored in the stack and calculating the time interval of the click time contained in two adjacent click data obtained by the pop operation;
and the rendering module is used for judging that the clicking operation belongs to the like operation if the time interval does not exceed a first preset value, and rendering the like effect in the screen.
The present application further provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
In the method, the click operation triggered by the user on the screen is captured in the process of watching the video by the user; generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time of the click operation; performing pop operation on the click data stored in the stack, and calculating the time interval of click time contained in two adjacent click data obtained by the pop operation; and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen. The method and the device for clicking the praise operation achieve praise operation in a screen clicking mode, and praise operation is achieved in a mode that praise buttons on fixed positions on the screen do not need to be clicked, so that praise operation is more convenient.
Drawings
Fig. 1 is an environment schematic diagram of a video praise implementation method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a detailed process of generating corresponding click data according to the click operation and storing the click data in a stack according to an embodiment of the present application;
fig. 3 is a flowchart of another embodiment of a video praise implementation method according to the present application;
fig. 4 is a flowchart of another embodiment of a video praise implementation method according to the present application;
fig. 5 is a flowchart of another embodiment of a video praise implementation method according to the present application;
fig. 6 is a flowchart of another embodiment of a video praise implementation method according to the present application;
FIG. 7 is a block diagram of a process for one embodiment of a video conferencing implementation apparatus according to the present application;
fig. 8 is a schematic diagram of a hardware structure of a computer device for executing a video approval implementation method according to an embodiment of the present application.
Detailed Description
The advantages of the present application are further illustrated below with reference to the accompanying drawings and specific embodiments.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and therefore should not be construed as limiting the present application.
Fig. 1 schematically shows an application environment diagram of a video praise implementation method according to an embodiment of the present application. In an exemplary embodiment, the system of the application environment may include the terminal device 10 and the server 20. Wherein the terminal device 10 forms a wireless or wired connection with the server 20. The terminal device 10 may be a mobile phone, an iPAD, a tablet computer, or the like. The server 20 may be a server or a server cluster composed of multiple servers, or a cloud computing center, and the like, and is not limited herein. A user can watch a video through video APPs (including a long video APP, a short video APP and a live video APP) installed in the terminal device 10, and can click the video in the process of watching the video, and then program codes of the approval method in the application are run in the video APPs to realize approval according to the click operation of the user.
It is understood that in other embodiments of the present application, the server 20 may include only an inventory server. Accordingly, after receiving the order of the user, the terminal device 10 generates a corresponding stock deduction request according to the order, and then sends the stock deduction request to the stock server, so as to implement the stock deduction operation according to the stock deduction request through the stock server.
Fig. 2 is a schematic flow chart of a video point compliment implementation method according to an embodiment of the present application. It should be understood that the flow charts in the embodiments of the present method are not used to limit the order of executing the steps. As can be seen from the figure, the video praise implementation method provided in this embodiment includes:
and step S20, capturing the click operation triggered by the user on the screen in the process of watching the video by the user.
Specifically, the video from the user's viewpoint may be a long video, a short video, a live video in a live room, or the like. In the application, the video watched by the user is the live video of the live broadcast room as an example. When a user watches live video in a live broadcast room, the user can like a main broadcast. When a user approves the anchor of the live broadcast room, click operation can be triggered on a screen (a touch screen), and the click operation of the user on the screen can be monitored in real time by the terminal device, so that the click operation triggered on the screen by the user can be captured. Wherein, the click operation refers to the click operation of the user on the screen at the current moment.
Step S21, generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises the click time of the click operation.
Specifically, the click data may include a click time at which a click operation occurs, click coordinates of the click operation, and the like. Wherein, the click coordinate is used for determining the position of the click operation in the screen. In an embodiment, the click data may also include click user id, click room id, geographical location information at the time of the click, and the like.
As an example. The data structure of the click data is as follows:
click data structure: { room id: xxx, click user id: xxx, click coordinates: xx, click time: xxx, temporal information when clicked, whether praise is present: 0/1}.
In this embodiment, each click operation of the user generates corresponding click data. And after the click data is generated according to the click operation, the click data is immediately subjected to stack pushing storage.
The stack is a data structure which is input first and output last, the data which is input first is taken out at the bottom, and the data which is input later is taken out at the top first. By the data storage mode, the click data stored last time can be conveniently taken out every time when the data is taken out of the stack.
Step S22, perform pop operation on the click data stored in the stack, and calculate the time interval of the click time included in two adjacent click data obtained by the pop operation.
Specifically, the two adjacent click data refer to click data obtained by the current pop operation and click data obtained by the last pop operation of the current pop operation.
In this embodiment, each time the click data is pushed and stored, pop processing is performed synchronously to pop the data stored in the stack. Therefore, after each pop operation, the time interval between two adjacent click operations can be calculated according to the click time contained in the click data obtained by the current pop operation and the click time contained in the click data obtained by the last pop operation.
And step S23, if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen.
Specifically, since various functions may be triggered by the existing click operation, in this embodiment, after the click operation is acquired, in order to determine the function of the click operation, it is necessary to determine whether the click operation belongs to the praise operation according to the click data.
The first preset value is a preset value, and can be set and adjusted according to an actual situation, for example, if the first preset value is 0.5 seconds, it can be determined that the click operation belongs to the praise operation when the calculated time interval does not exceed 0.5 seconds. That is, as long as the time interval between two consecutive click operations does not exceed 0.5 seconds, it can be determined that the click operation by the user is a positive operation.
In the embodiment, whether the clicking operation is the like operation is determined according to the mode that the time interval between two continuous clicking operations does not exceed the first preset value, so that the common clicking operation can be effectively prevented from being regarded as the like operation.
In this embodiment, the like effect is preset, for example, the like effect is to display a love heart in the screen.
In the method, the click operation triggered by the user on the screen is captured in the process of watching the video by the user; generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time of the click operation; performing pop operation on the click data stored in the stack, and calculating the time interval of click time contained in two adjacent click data obtained by the pop operation; and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen. The method and the device for clicking the praise operation achieve praise operation in a screen clicking mode, and praise operation is achieved in a mode that praise buttons on fixed positions on the screen do not need to be clicked, so that praise operation is more convenient.
In an exemplary embodiment, to avoid misjudgment of the praise, referring to fig. 3, the click data further includes click coordinates, and the generating the corresponding click data according to the click operation and the pushing the click data to the storage may include:
and step S30, judging whether the click operation occurs in a preset area in the screen according to the click coordinate in the click data.
Specifically, the click coordinates are used for determining the position of the click operation in the screen.
The preset area is a preset area, and the preset area can be set and adjusted according to actual conditions, for example, the preset area is an area within 1cm of the screen boundary in a vertical, horizontal and opposite mode.
In this embodiment, since some areas in the screen may include other function buttons, in order to avoid determining that the clicking operation performed by the user on the area including the function buttons or the edge area of the screen that is easily touched by the user by mistake is the clicking operation performed by the user with respect to the approval operation, in this embodiment, after the click data is generated, it is necessary to determine whether the clicking operation performed by the user occurs in the preset clicking area set by the approval operation according to the click coordinates in the click data.
And step S31, if the clicking operation occurs in a preset area in the screen, the clicking data is pushed to be stored.
Step S32, if the click operation does not occur in the preset area in the screen, deleting the click data.
Specifically, when the click operation of the user occurs in a preset area in the screen, it indicates that the user wants to perform a praise operation, and the click operation is an effective click and needs to store click data. When the clicking operation of the user does not occur in the preset area in the screen, the fact that the user does not want to perform the clicking operation is shown, the clicking operation is an invalid click, and the clicking data does not need to be stored.
In this embodiment, the click data generated by the valid click operation is stored, and the click data generated by the invalid click operation is not stored, so that the storage space can be saved, and the follow-up determination of the praise operation by using the invalid click data can be avoided.
In an exemplary embodiment, referring to fig. 4, the method further comprises: step S40, when the time interval exceeds the first preset value, judging that two adjacent click data obtained by the pop operation are invalid click data; step S41, the invalid click data is deleted.
Specifically, since two adjacent click data are generated by two adjacent click operations, if the time interval between two adjacent click operations does not exceed the first preset value, it may be determined that the two click operations are not one valid click operation. At this time, in order to avoid the determination of the subsequent approval operation, the click data generated by the two click operations may be deleted as invalid click data, so that the storage space may be saved.
In an exemplary embodiment, referring to fig. 5, the method further comprises: step S50, after judging that the click operation belongs to the praise operation, if the click operation triggered by the user on the screen is captured again, acquiring the first time of the captured click operation and the second time of the last click operation of the captured click operation; a step S51 of calculating a time interval between the first time and the second time; and step S52, when the time interval between the first time and the second time does not exceed a second preset value, determining that the click operation captured again is a praise operation, and rendering a praise effect in the screen.
Specifically, the second preset value is also preset, and can be modified and adjusted according to actual conditions. For example, the second preset value is 1 second. The complimentary effect is also predetermined. For example, the praise effect is to display a picture of the tap gesture.
In this embodiment, after completing the two click operations to implement the praise operation, the user may further continue to trigger the click operation to implement the praise operation.
As an example, after the user completes two click operations to implement the praise operation, the user may further continue to perform a third click operation. After the user performs the third click operation, whether the time interval between the time of the third click operation and the time of the second click operation does not exceed 1 second or not is judged. When it is determined that the time interval does not exceed 1 second, it may be determined that the click operation is a praise operation, and at this time, in order to distinguish between a general praise operation and a praise operation, a praise effect may be rendered in the screen, for example, "two praise" may be rendered in the screen. Similarly, after the user completes the third click operation to realize the continuous operation, the user can continue to perform the fourth click operation. After the user performs the fourth click operation, whether the time interval between the time of the fourth click operation and the time of the third click operation exceeds 1 second or not is continuously judged. When the time interval is determined not to exceed 1 second, the click operation can be determined to be still the praise operation, and at this time, the praise effect is rendered in the screen again.
In an exemplary embodiment, referring to fig. 6, the method further comprises:
and step S60, generating corresponding approval data or approval data according to the approval operation or approval operation.
Specifically, each praise operation has a corresponding praise data, and each praise operation also has a corresponding praise data.
In this embodiment, the like data may include information such as a user id, a click room id, a room anchor, and identification information for distinguishing whether the current data is like data or like data. Similarly, the praise data may also include information such as a user id, a click room id, a room anchor, and identification information for distinguishing whether the current data is praise data or praise data.
Step S61, storing the approval data or the continuous approval data in the data reporting queue.
Specifically, the data reporting queue is a queue for storing praise data and praise data.
Step S62, the praise data or the praise data stored in the data reporting queue is uploaded to the server, so that the server determines the praise values of all users for the video according to the praise data or praise data reported by all the clients.
Specifically, the like value may be the number of like of all users with respect to the video, or may be a numerical value calculated according to the number of like of all users with respect to the video, for reflecting the popularity of the video.
In this embodiment, after receiving the praise data or the praise data reported by the client, the server may synchronously push the praise data or the praise data into the back-end distributed queue, so that peak cancellation of traffic may be performed through the distributed queue, and a large amount of praise data or praise data is prevented from flooding into the server when the front-end user encounters a hot room or a hot activity or a hot video.
Meanwhile, in this embodiment, the messages in the distributed queue may be consumed in parallel by a group of services, and then the praise value is "accumulated" for the praise data or the praise data of a certain room consumed. When the number of times is accumulated to a certain number (for example, 1 ten thousand times), synchronous submission is carried out to the database.
The server can read the praise value from the database at regular time, and when the praise value of a certain room is found to be changed, the server triggers a push notification to push the praise value to the client.
And step S63, receiving the praise value returned by the server, and displaying the praise value on the screen.
Specifically, after receiving the praise value returned by the server, the praise value of the current video may be shown on the screen.
In an embodiment, when the like value is displayed, two types of "like" and "like" can be distinguished, and the effect rendering of the like value is performed on different like types respectively.
In the embodiment, the praise or the praise of all the users is displayed, so that the users can intuitively know the popularity of the current video.
In an exemplary embodiment, the uploading of the like data or the like data stored in the data reporting queue to the server includes: uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset timing strategy; or uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset quantitative strategy; or uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset strategy of combining a timing strategy and a quantitative strategy.
Specifically, the timing policy is a data reporting policy for reporting data in a queue to a server at fixed time intervals. For example, if the timing policy is to report data every 1 second, the approval data or the continuous approval data stored in the data reporting queue is uploaded to the server every second.
The quantitative strategy is a data reporting strategy which reports the data in the queue to the server when the data amount stored in the queue reaches a preset data amount. For example, if the preset data amount is 10, the quantitative policy is to upload 10 pieces of data to the server every time the data amount stored in the queue reaches 10 pieces.
The combined policy of the timing policy and the quantitative policy is a reporting policy that the quantitative policy is executed in the timing policy, for example, in a period (1s) of the timing reporting policy, if the amount of data stored in a queue exceeds 10, the quantitative policy is triggered to upload the data to a server.
In an exemplary embodiment, the method further comprises:
in the process of uploading the approval data or the continuous approval data stored in the data reporting queue to the server by adopting a preset strategy of combining a timing strategy and a quantitative strategy, if the data amount of the approval data or the continuous approval data stored in the data reporting queue exceeds the preset data amount, discarding the newly generated approval data or the continuous approval data.
Specifically, the preset data amount is a preset maximum data amount that can be stored in the queue, for example, the preset data amount is 100.
The newly generated praise data or praise data refers to the generated data which is not stored in the queue.
As an example, if the quantitative reporting policy is being executed in the period (1s) of the timed reporting policy, at this time, if the number of data stored in the data reporting queue is found to be 100, the newly generated data will be directly discarded and will not be stored in the queue. Meanwhile, a local drop log can be recorded for later tracking of the optimized app (application program).
Fig. 7 is a block diagram of a video praise implementing apparatus 70 according to an embodiment of the present application.
In this embodiment, the apparatus 70 for implementing video praise includes a series of computer program instructions stored on a memory, and when the computer program instructions are executed by a processor, the video praise implementing function of the embodiments of the present application can be implemented. In some embodiments, the video reward implementation apparatus 70 may be divided into one or more modules based on the specific operations implemented by the computer program instructions, and the specific divided modules are as follows:
the capturing module 71 is used for capturing click operation triggered by a user on a screen in the process that the user watches the video;
the storage module 72 is configured to generate corresponding click data according to the click operation, and stack and store the click data, where the click data includes click time of the click operation;
the calculating module 73 is configured to perform a pop operation on the click data stored in the stack, and calculate a time interval of click time included in two adjacent click data obtained by the pop operation;
and a rendering module 74, configured to determine that the click operation belongs to a like operation if the time interval does not exceed a first preset value, and render a like effect in the screen.
In an exemplary embodiment, the click data further includes a click coordinate, and the storage module 72 is further configured to determine whether the click operation occurs in a preset area in the screen according to the click coordinate in the click data; if the clicking operation occurs in a preset area in the screen, the clicking data is stacked and stored; and if the clicking operation does not occur in the preset area in the screen, deleting the clicking data.
In an exemplary embodiment, the video approval implementation apparatus 70 further includes a determining module and a deleting module.
The judging module is used for judging that two adjacent click data obtained by the pop operation are invalid click data when the time interval exceeds the first preset value;
the deleting module is further configured to delete the invalid click data.
In an exemplary embodiment, the video compliment implementing apparatus 70 further includes an obtaining module and a calculating module.
The acquisition module is used for acquiring a first time of the recaptured click operation and a second time of the recaptured click operation of the last click operation if the click operation triggered by the user on the screen is recaptured after the click operation is judged to belong to the praise operation.
The calculating module is used for calculating the time interval between the first time and the second time;
the judging module is further configured to judge that the re-captured clicking operation is a praise operation and render a praise effect in the screen when a time interval between the first time and the second time does not exceed a second preset value.
In an exemplary embodiment, the video approval implementation apparatus 70 further includes a generation module, an uploading module, and a receiving module.
And the generating module is used for generating corresponding approval data or approval data according to the approval operation or approval operation.
The storage module 72 is further configured to store the approval data or the continuous approval data in a data reporting queue.
The uploading module is used for uploading the praise data or the praise data stored in the data reporting queue to a server, so that the server determines the praise values of all users for the video according to the praise data or the praise data reported by all the clients;
the receiving module is used for receiving the praise value returned by the server and displaying the praise value on the screen.
In an exemplary embodiment, the uploading module is further configured to upload the approval data or the approval data stored in the data reporting queue to a server by using a preset timing policy; or uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset quantitative strategy; or uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a strategy combining a preset timing strategy and a quantitative strategy.
In an exemplary embodiment, the video compliment implementing apparatus 70 further comprises a discarding module.
The discarding module is configured to discard newly generated praise data or praise data if the data amount of the praise data or praise data stored in the data reporting queue exceeds a preset data amount in a process of uploading the praise data or praise data stored in the data reporting queue to a server by using a policy combining a preset timing policy and a quantitative policy.
In the method, the click operation triggered by the user on the screen is captured in the process of watching the video by the user; generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time of the click operation; performing pop operation on the click data stored in the stack, and calculating the time interval of click time contained in two adjacent click data obtained by the pop operation; and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen. The method and the device for clicking the praise operation achieve praise operation in a screen clicking mode, and praise operation is achieved in a mode that praise buttons on fixed positions on the screen do not need to be clicked, so that praise operation is more convenient.
Fig. 8 schematically shows a hardware architecture diagram of a computer device 8 suitable for implementing the video pan implementation method according to an embodiment of the present application. In the present embodiment, the computer device 8 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. For example, the server may be a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers). As shown in fig. 8, the computer device 8 includes at least, but is not limited to: the memory 120, processor 121, and network interface 122 may be communicatively linked to each other by a system bus. Wherein:
the memory 120 includes at least one type of computer-readable storage medium, which may be volatile or non-volatile, and particularly, includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 120 may be an internal storage module of the computer device 8, such as a hard disk or a memory of the computer device 8. In other embodiments, the memory 120 may also be an external storage device of the computer device 8, such as a plug-in hard disk provided on the computer device 8, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Of course, the memory 120 may also include both internal and external memory modules of the computer device 8. In the present embodiment, the memory 120 is generally used for storing an operating system and various application software installed in the computer device 8, such as program codes for implementing the video clip method. In addition, the memory 120 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 121 may be, in some embodiments, a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other video-on-demand chip. The processor 121 is generally configured to control the overall operation of the computer device 8, such as performing control and processing related to data interaction or communication with the computer device 8. In this embodiment, the processor 121 is configured to execute the program code stored in the memory 120 or process data.
Network interface 122 may comprise a wireless network interface or a wired network interface, with network interface 122 typically being used to establish communication links between computer device 8 and other computer devices. For example, the network interface 122 is used to connect the computer device 8 with an external terminal via a network, establish a data transmission channel and a communication link between the computer device 8 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), or Wi-Fi.
It is noted that FIG. 8 only shows a computer device having components 120-122, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the video clip implementation method stored in the memory 120 may be divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 121) to complete the present application.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the video praise implementation method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed in the computer device, for example, the program code of the video praise implementation method in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed over at least two network units. Some or all of the modules can be screened out according to actual needs to achieve the purpose of the scheme of the embodiment of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes for implementing the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A video praise implementation method is characterized by comprising the following steps:
capturing click operation triggered by a user on a screen in the process of watching a video by the user;
generating corresponding click data according to the click operation, and stacking and storing the click data, wherein the click data comprises click time generated by the click operation;
performing pop operation on the click data stored in the stack, and calculating the time interval of click time contained in two adjacent click data obtained by the pop operation;
and if the time interval does not exceed a first preset value, judging that the clicking operation belongs to the like operation, and rendering the like effect in the screen.
2. The video praise implementing method according to claim 1, wherein the click data further includes click coordinates, the generating of the corresponding click data according to the click operation and the push-to-store of the click data includes:
judging whether the click operation occurs in a preset area in the screen according to the click coordinate in the click data;
if the clicking operation occurs in a preset area in the screen, the clicking data is stacked and stored; and
and if the clicking operation does not occur in the preset area in the screen, deleting the clicking data.
3. The video praise implementing method according to claim 1, characterized in that the method further comprises:
when the time interval exceeds the first preset value, judging that two adjacent click data obtained by the pop operation are invalid click data;
deleting the invalid click data.
4. The video praise implementing method according to any one of claims 1 to 3, characterized in that the method further comprises:
after judging that the click operation belongs to the praise operation, if the click operation triggered by the user on the screen is captured again, acquiring first time of the captured click operation and second time of the last click operation of the captured click operation;
calculating a time interval between the first time and the second time;
and when the time interval between the first time and the second time does not exceed a second preset value, judging that the click operation captured again is a praise operation, and rendering a praise effect in the screen.
5. The video praise implementing method according to claim 4, characterized in that the method further comprises:
generating corresponding approval data or approval data according to the approval operation or approval operation;
storing the praise data or the praise data into a data reporting queue;
uploading the praise data or praise data stored in the data reporting queue to a server, so that the server determines praise values of all users for the video according to the praise data or praise data reported by all the clients;
and receiving the praise value returned by the server, and displaying the praise value on the screen.
6. The video praise implementing method according to claim 5, wherein the uploading of praise data or praise data stored in the data reporting queue to a server comprises:
uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset timing strategy; or
Uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a preset quantitative strategy; or
And uploading the praise data or the continuous praise data stored in the data reporting queue to a server by adopting a strategy of combining a preset timing strategy and a quantitative strategy.
7. The video praise implementing method according to claim 6, characterized in that the method further comprises:
in the process of uploading the approval data or the continuous approval data stored in the data reporting queue to the server by adopting a preset strategy of combining a timing strategy and a quantitative strategy, if the data amount of the approval data or the continuous approval data stored in the data reporting queue exceeds the preset data amount, discarding the newly generated approval data or the continuous approval data.
8. A video praise implementing apparatus, comprising:
the capturing module is used for capturing click operation triggered by a user on a screen in the process of watching a video by the user;
the storage module is used for generating corresponding click data according to the click operation and stacking and storing the click data, wherein the click data comprises click time generated by the click operation;
the calculating module is used for performing pop operation on the click data stored in the stack and calculating the time interval of the click time contained in two adjacent click data obtained by the pop operation;
and the rendering module is used for judging that the clicking operation belongs to the like operation if the time interval does not exceed a first preset value, and rendering the like effect in the screen.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implementing the steps of the method of any one of claims 1 to 7.
CN202111079645.5A 2021-09-15 2021-09-15 Video praise realization method and device Active CN113810759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111079645.5A CN113810759B (en) 2021-09-15 2021-09-15 Video praise realization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111079645.5A CN113810759B (en) 2021-09-15 2021-09-15 Video praise realization method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410172216.XA Division CN118042213A (en) 2021-09-15 Video praise realization method, device, computer equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN113810759A true CN113810759A (en) 2021-12-17
CN113810759B CN113810759B (en) 2024-03-01

Family

ID=78941056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111079645.5A Active CN113810759B (en) 2021-09-15 2021-09-15 Video praise realization method and device

Country Status (1)

Country Link
CN (1) CN113810759B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155384A (en) * 2004-11-30 2006-06-15 Nippon Telegr & Teleph Corp <Ntt> Video comment input/display method and device, program, and storage medium with program stored
CN110324720A (en) * 2018-03-28 2019-10-11 武汉斗鱼网络科技有限公司 A kind of double click event processing method and electric terminal
CN110662085A (en) * 2019-10-16 2020-01-07 北京字节跳动网络技术有限公司 Message sending method, device, readable medium and electronic equipment
CN110995781A (en) * 2019-11-01 2020-04-10 腾讯科技(深圳)有限公司 Praise information processing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155384A (en) * 2004-11-30 2006-06-15 Nippon Telegr & Teleph Corp <Ntt> Video comment input/display method and device, program, and storage medium with program stored
CN110324720A (en) * 2018-03-28 2019-10-11 武汉斗鱼网络科技有限公司 A kind of double click event processing method and electric terminal
CN110662085A (en) * 2019-10-16 2020-01-07 北京字节跳动网络技术有限公司 Message sending method, device, readable medium and electronic equipment
CN110995781A (en) * 2019-11-01 2020-04-10 腾讯科技(深圳)有限公司 Praise information processing method, device and system

Also Published As

Publication number Publication date
CN113810759B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US10897406B2 (en) Scheduling method for content delivery network, and device
CN110100426B (en) Method and device for subscribing message, computer equipment and computer storage medium
WO2021180104A1 (en) Message pushing method and system, and client, storage medium and processor
CN110781372B (en) Method and device for optimizing website, computer equipment and storage medium
CN110659121A (en) Task data acquisition method and device, task configuration method and device and server
CA3021000A1 (en) Method and system for partial application data collection
CN112367345A (en) Data processing method, server device and computer readable storage medium
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
EP3146680B1 (en) Control method and apparatus for data display
CN111125153A (en) Object management method, device, client and medium
CN111669717B (en) Cloud mobile phone data sending method, computer device and storage medium
CN107623702B (en) Data caching method, device and system
CN103595960A (en) Interesting information monitoring and pushing method and device
CN108681724B (en) Farming operation monitoring method and device
CN113365149A (en) Live broadcast picture playing method and device of live broadcast room
CN113810759B (en) Video praise realization method and device
CN104391898A (en) Data showing method and device
CN106487653B (en) Message processing method and server
CN118042213A (en) Video praise realization method, device, computer equipment, storage medium and program product
CN109391537B (en) Information processing method and device and computer storage medium
CN113778365B (en) Element display method, element selection method, device, equipment and storage medium
CN112503813B (en) Method and device for replacing air conditioner refrigerant
CN112764988B (en) Data segment acquisition method and device
CN113360806A (en) Live broadcast page display method and device
CN112583694B (en) Message pushing method, device, storage medium and control terminal

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