Video watching duration statistical method and device, electronic equipment and storage medium

By determining the playback time of the first or second target video as the total playback time of the current stage when the target object plays multiple videos at the same time, the problem of abnormal video viewing time statistics in the prior art is solved, and more accurate video playback time statistics are achieved.

CN119676482APending Publication Date: 2025-03-21GEEKBANG TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411786793.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The prior art statistical results that increase the video viewing time abnormally when the target object plays multiple videos at the same time, resulting in the learner's real learning time being unable to accurately reflect.

Method used

By determining the corresponding video playback data of the target object uniquely identifies the target in the current stage, if at least two candidate videos are played in the current stage, the first target video is determined from it, and its playback duration is used as the total playback duration; if only one candidate video is played, it is used as the second target video, and its playback duration is used as the total playback duration.

Benefits of technology

It effectively avoids the abnormal increase in video playback time caused by incorrect statistics, and ensures the accuracy of the video viewing time statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676482A_ABST
    Figure CN119676482A_ABST
Patent Text Reader

Abstract

The invention discloses a video watching duration statistical method and device, electronic equipment and a storage medium. The method comprises the following steps: determining video playing data corresponding to a unique identifier of a target object in a current stage, the video playing data comprising playing durations for playing candidate videos in the current stage, and the durations of all stages being the same; if the at least two candidate videos are played in the current stage, determining a first target video from the at least two candidate videos, and taking the playing duration of the first target video as the total playing duration of the current stage; and if only one candidate video is played in the current stage, determining the candidate video as a second target video, and taking the playing duration of the second target video as the total playing duration of the current stage. By adopting the technical scheme of the invention, the problem that the total playing duration corresponding to the target object is abnormally increased due to the fact that the target object plays a plurality of candidate times at the same time can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for counting video viewing time. Background Art

[0002] With the rapid development of online learning platforms, online video learning has become a part of the daily life of many learners.

[0003] However, the existing video playback will send the chapters and playback time to the backend server through http requests, and the backend server will determine the playback time of each video based on the received http requests, thereby determining the learner's learning time. However, this method will increase the playback time of multiple videos at the same time when the learner plays multiple videos at the same time, so it is difficult to correspond to the learner's actual learning time. Summary of the invention

[0004] The present invention provides a video viewing time statistics method, device, electronic device and storage medium to solve the problem that when a target object plays a video, when multiple videos are played at the same time, the playback time of each video will be recorded at the same time, thereby abnormally improving the video viewing time statistics result.

[0005] According to one aspect of the present invention, a method for counting video viewing time is provided, the method comprising:

[0006] Determine the video playback data corresponding to the unique identifier of the target object in the current stage, where the video playback data includes the playback duration of each candidate video in the current stage, and the duration of each stage is the same;

[0007] If at least two candidate videos are played in the current stage, a first target video is determined from the at least two candidate videos, and the playing time of the first target video is used as the total playing time of the current stage;

[0008] If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the play time of the second target video is used as the total play time of the current stage.

[0009] According to another aspect of the present invention, a device for counting video viewing duration is provided, the device comprising:

[0010] A data determination module is used to determine the video playback data corresponding to the unique identifier of the target object in the current stage, and the video playback data includes the playback time of each candidate video in the current stage, and the duration of each stage is the same;

[0011] A duration determination module, for determining a first target video from the at least two candidate videos if at least two candidate videos are played in the current stage, and using the play duration of the first target video as the total play duration of the current stage;

[0012] The duration calculation module is used to determine that if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing duration of the second target video is used as the total playing duration of the current stage.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the video viewing time statistics method of any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video viewing duration statistics method of any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention determines the video playback data corresponding to the unique identifier of the target object in the current stage; if at least two candidate videos are played in the current stage, the first target video is determined from the at least two candidate videos, and the playback time of the first target video is used as the total playback time of the current stage, thereby avoiding the problem of reducing the statistical result of the final video playback time of the target object due to incorrect statistics; if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playback time of the second target video is used as the total playback time of the current stage. Through the combined use of the above steps, it is possible to effectively avoid the problem of the target object playing multiple candidate times at the same time, thereby causing the total playback time corresponding to the target object to increase abnormally.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 This is a flowchart of a method for counting video viewing time provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flowchart of another method for counting video viewing time provided according to the second embodiment of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of a device for counting video viewing time provided according to Embodiment 3 of the present invention;

[0024] Figure 4 It is a structural schematic diagram of an electronic device for implementing the video viewing time statistics method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1A flowchart of a method for counting video viewing time is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where, when a target object plays a video, it is necessary to avoid recording the playing time of each video at the same time when playing multiple videos at the same time, thereby abnormally increasing the video viewing time counting result. The method can be executed by a video viewing time counting device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0029] S110: Determine the video playback data corresponding to the unique identifier of the target object in the current stage.

[0030] The video playback data includes the playback duration of each candidate video in the current stage, and the duration of each stage is the same.

[0031] With the continuous development of online learning, more and more courses are put on the Internet for online teaching, and the learner's learning progress is judged by recording the play time of the course. For example, during the learning process, there will be a data reporting request to report the user's learning record. The basic process is to report the chapter id and learning time learned by the user to the background server through http request, the server program records the user's reporting request, and stores the learning record in the library. In the geek time learning service, the minimum record of a student's learning record contains the following fields: student id, course id learned, chapter id learned, learning time, reporting time. However, due to the variety of channels that can be used by the same online platform, learners may open multiple clients at the same time to study. At this time, the user will learn a chapter of course A and a chapter of course B in the same minute. When calculating the user's learning time, it will cause time duplication. Therefore, this application proposes a method that can avoid simultaneous statistics when learners open multiple clients at the same time to study.

[0032] In this regard, this application splits a period of time into multiple stages for statistics.

[0033] For example, when counting the video playback time of the target object within one hour, it will be divided into 60 minutes, and each minute represents a stage. This allows the subsequent statistics to be counted in units of each stage.

[0034] For each stage, video playback data of the target object in the current stage is obtained, and the video playback data includes the playback duration of each candidate video played by the target object in the current stage.

[0035] The candidate videos are the videos played by the target object in the current stage.

[0036] Exemplarily, if the target object plays video A and video B in the current stage, video A and video B are candidate videos corresponding to the unique identifier of the target object in the current stage.

[0037] In an optional solution, after determining the video playback data corresponding to the unique identifier of the target object in the current stage, steps A1-A2 are further included:

[0038] Step A1. If there is verification operation prompt information in the candidate video being played at the current stage, determine the operation time of the verification operation information corresponding to the unique identifier of the target object. The verification operation prompt information is information used to prompt the target object to perform a verification operation to prove that the target object is watching the video. The verification operation information is the operation performed by the target object according to the prompt of the verification operation prompt information.

[0039] Step A2: If the difference between the pop-up time of the verification operation prompt information and the operation time of the verification operation information is greater than the preset time difference, the playback stop time of the candidate video in the current stage is determined to be the pop-up time of the verification operation prompt information.

[0040] The verification operation prompt information is information used to prompt the target object to perform a verification operation to prove that the target object is watching a video. The verification operation information is the operation performed by the target object according to the prompt of the verification operation prompt information.

[0041] In order to ensure that learners do not watch the video in vain during the learning process, verification operation prompts are often set in the video to prompt learners to perform verification operations to prove that the learners are watching the video, such as graphics, formulas, or multiple-choice questions.

[0042] If there is verification operation prompt information in the candidate video played at the current stage, the operation time of the verification operation information corresponding to the target object unique identifier is determined, and then it is judged whether the learner is watching the candidate video.

[0043] If the difference between the pop-up time of the verification operation prompt information and the operation time of the verification operation information is greater than the preset time difference, it indicates that the learner has not watched the candidate video. At this time, the stop time of the candidate video playback in the current stage will be determined as the pop-up time of the verification operation prompt information.

[0044] For example, when the overall duration of the current stage is 1 minute, if the candidate video has started playing since the current stage, the pop-up time of the verification operation prompt information is 30s, and the preset time difference is 10s. At this time, if the candidate video is played to 30s, the verification operation prompt information will pop up. If the target object fails to operate according to the verification operation prompt information within 10s, the playback time of the candidate video will be deemed to be 30s.

[0045] If there is verification operation prompt information in the candidate video being played at the current stage, the operation time of the verification operation information corresponding to the unique identifier of the target object is determined; if the difference between the pop-up time of the verification operation prompt information and the operation time of the verification operation information is greater than the preset time difference, the playback stop time of the candidate video at the current stage is determined to be the pop-up time of the verification operation prompt information, thereby avoiding the problem that the target object only plays the candidate video, and making the final statistical result more realistic.

[0046] S120: If at least two candidate videos are played in the current stage, a first target video is determined from the at least two candidate videos, and the playing time of the first target video is used as the total playing time of the current stage.

[0047] In the current stage, if the target object plays at least two candidates at the same time, in order to avoid reducing the statistical results of the final video playback time of the target object due to erroneous statistics, the candidate video with the longest playback time will be selected from at least two candidate videos as the first target video, and the playback time of the first target video will be used as the total playback time of the current stage.

[0048] For example, in the current stage, the playback time of candidate video A is 60 seconds, and the playback time of candidate video B is 30 seconds. If the total playback time in the current time period is 30 seconds, the original 60 seconds total playback time of the target object may be shortened, thereby reducing the user experience. In order to avoid this problem, candidate video A will be selected as the first target video, and its playback time of 60 seconds will be used as the total playback time of the current stage.

[0049] Optionally, to reduce the amount of data calculation, only statistics may be performed on whether a candidate video is played in the current stage. If a candidate video is played, it is considered that the playing time of the candidate video in the current stage is equal to the stage time of the current stage.

[0050] For example, when the duration of the current stage is 30 seconds and the candidate video is A, it can be determined that the playback duration of the candidate video A in the current stage is also 30 seconds.

[0051] In an optional solution, determining the first target video from at least two candidate videos may include steps B1-B2:

[0052] Step B1: Determine the playback duration of each candidate video.

[0053] Step B2: According to the playing time of each candidate video, determine the candidate video with the longest playing time as the first target video.

[0054] In the current stage, if the target object plays at least two candidates at the same time, in order to avoid reducing the statistical results of the final video playback time of the target object due to erroneous statistics, the candidate video with the longest playback time will be selected from at least two candidate videos as the first target video, and the playback time of the first target video will be used as the total playback time of the current stage.

[0055] S130: If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage.

[0056] In the current stage, only one candidate video is played. At this time, the candidate video can be directly used as the second target video, and the playing time of the second target video is used as the total playing time of the current stage.

[0057] For example, if only candidate video A is played in the current stage, the playing time of candidate video A in the current stage can be directly counted and used as the total playing time of the current stage.

[0058] According to the technical solution of the embodiment of the present invention, by determining the video playback data corresponding to the unique identifier of the target object in the current stage; if at least two candidate videos are played in the current stage, the first target video is determined from the at least two candidate videos, and the playback time of the first target video is used as the total playback time of the current stage, thereby avoiding the problem of reducing the statistical result of the final video playback time of the target object due to incorrect statistics; if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playback time of the second target video is used as the total playback time of the current stage. Through the combined use of the above steps, it is possible to effectively avoid the problem of the target object playing multiple candidate times at the same time, thereby causing the total playback time corresponding to the target object to increase abnormally.

[0059] Embodiment 2

[0060] Figure 2The present invention provides a flowchart of another video viewing time statistics method. Based on the above embodiment, this embodiment further optimizes the process after determining that only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage. This embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, the video viewing time statistics method of this embodiment may include the following steps:

[0061] S210: Determine the video playback data corresponding to the unique identifier of the target object in the current stage.

[0062] The video playback data includes the playback duration of each candidate video in the current stage, and the duration of each stage is the same.

[0063] S220: If at least two candidate videos are played in the current stage, a first target video is determined from the at least two candidate videos, and the playing time of the first target video is used as the total playing time of the current stage.

[0064] S230: If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage.

[0065] S240: If the total playback time of the current stage is the playback time of the first target video, sort the candidate videos according to the playback time of each candidate video in the current stage to obtain a sorting result.

[0066] When the total playback time of the current stage is the playback time of the first target video, it can be determined that multiple candidate videos are being played simultaneously in the current stage. At this time, each candidate video will be sorted according to the playback time of each candidate video in the current stage, and the sorting result can answer the target object's question through the pre-collected data when the target object has questions about the length of the total playback time.

[0067] S250: If there are a preset number of consecutive stages in which the total playing time of each stage is the playing time of the second target video, then the unique identifier of the target object is determined to be the first object identifier.

[0068] The first object identifier can be used to identify that there are multiple candidate videos for the object to be played simultaneously.

[0069] Within a preset number of consecutive stages, the total playback time of each stage is the playback time of the second target video. This indicates that the target object is playing multiple candidate videos in multiple consecutive stages. At this time, it can be considered that the target object has behaviors such as swiping video time. Therefore, the unique identifier of the target object is determined to be the first object identifier.

[0070] S260: If the target object unique identifier is the first object identifier, the target object unique identifier and the sorting results of each stage are sent to the background server.

[0071] After determining that the target object unique identifier is the first object identifier, the target object unique identifier and the sorting results of each stage may be sent to the background server, thereby saving the basis for determining that the target object unique identifier is the first object identifier.

[0072] According to the technical solution of an embodiment of the present invention, if the total playback time of the current stage is the playback time of the first target video, then the candidate videos are sorted according to the playback time of each candidate video in the current stage to obtain a sorting result; if there are a continuous preset number of stages in which the total playback time of each stage is the playback time of the second target video, then the target object unique identifier is determined to be the first object identifier; if the target object unique identifier is the first object identifier, the target object unique identifier and the sorting results of each stage are sent to the background server, thereby realizing the detection of behaviors such as abnormal video swiping time, thereby further improving the accuracy of the video viewing time statistics.

[0073] Embodiment 3

[0074] Figure 3 The present invention provides a structural block diagram of a device for counting video viewing time. This embodiment is applicable to the situation where, when a target object plays a video, it is necessary to avoid recording the playing time of each video at the same time when playing multiple videos at the same time, thereby abnormally increasing the video viewing time statistics result. The device for counting video viewing time can be implemented in the form of hardware and / or software, and the device for counting video viewing time can be configured in an electronic device with data processing capabilities. Figure 3 As shown, the video viewing duration statistics device of this embodiment may include: a data determination module 310, a duration determination module 320 and a duration calculation module 330. Among them:

[0075] The data determination module 310 is used to determine the video playback data corresponding to the unique identifier of the target object in the current stage, and the video playback data includes the playback time of each candidate video in the current stage, and the duration of each stage is the same;

[0076] The duration determination module 320 is used to determine a first target video from the at least two candidate videos if at least two candidate videos are played in the current stage, and use the play duration of the first target video as the total play duration of the current stage;

[0077] The duration calculation module 330 is used to determine that the candidate video is the second target video if only one candidate video is played in the current stage, and use the play duration of the second target video as the total play duration of the current stage.

[0078] Based on the above embodiment, optionally, determining a first target video from at least two candidate videos includes:

[0079] Determine the playback duration of each candidate video;

[0080] According to the playing time of each candidate video, the candidate video with the longest playing time is determined as the first target video.

[0081] Based on the above embodiment, optionally, if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage, the method further includes:

[0082] If the total playback time of the current stage is the playback time of the first target video, then the candidate videos are sorted according to the playback time of each candidate video in the current stage to obtain a sorting result.

[0083] Based on the above embodiment, optionally, if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage, the method further includes:

[0084] If there are a continuous preset number of stages in which the total playback duration of each stage is the playback duration of the second target video, then the unique identifier of the target object is determined to be the first object identifier.

[0085] Based on the above embodiment, optionally, after determining that the unique identifier of the target object is the first object identifier, the method further includes:

[0086] If the target object unique identifier is the first object identifier, the target object unique identifier and the sorting results of each stage are sent to the background server.

[0087] Based on the above embodiment, optionally, after determining the video playback data corresponding to the unique identifier of the target object in the current stage, the method further includes:

[0088] If there is verification operation prompt information in the candidate video being played at the current stage, then determine the operation time of the verification operation information corresponding to the unique identifier of the target object, the verification operation prompt information is information used to prompt the target object to perform a verification operation to prove that the target object is watching the video, and the verification operation information is the operation performed by the target object according to the prompt of the verification operation prompt information;

[0089] If the difference between the pop-up time of the verification operation prompt information and the operation time of the verification operation information is greater than the preset time difference, the playback stop time of the candidate video in the current stage is determined to be the pop-up time of the verification operation prompt information.

[0090] The video viewing time statistics device provided in the embodiment of the present invention can execute the video viewing time statistics method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] Embodiment 4

[0092] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0093] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0094] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a video viewing time statistics method.

[0096] In some embodiments, the video viewing time statistics method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the video viewing time statistics method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the video viewing time statistics method in any other appropriate manner (e.g., by means of firmware).

[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0099] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0104] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A video viewing time statistics method, characterized in that: include: Determine video playback data corresponding to the unique identifier of the target object in the current stage, wherein the video playback data includes the playback duration of each candidate video in the current stage, and the duration of each stage is the same; If at least two candidate videos are played in the current stage, a first target video is determined from the at least two candidate videos, and the playing time of the first target video is used as the total playing time of the current stage; If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage.

2. The method according to claim 1, characterized in that Determining a first target video from at least two candidate videos includes: Determine the playback duration of each candidate video; According to the playing time of each candidate video, the candidate video with the longest playing time is determined as the first target video.

3. The method according to claim 1, characterized in that If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage, the method further includes: If the total playback time of the current stage is the playback time of the first target video, then the candidate videos are sorted according to the playback time of each candidate video in the current stage to obtain a sorting result.

4. The method according to claim 3, characterized in that If only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing time of the second target video is used as the total playing time of the current stage, the method further includes: If there are a continuous preset number of stages in which the total playing time of each stage is the playing time of the second target video, it is determined that the unique identifier of the target object is the first object identifier.

5. The method according to claim 4, characterized in that After determining that the target object unique identifier is the first object identifier, the method further includes: If the target object unique identifier is the first object identifier, the target object unique identifier and the sorting results of each stage are sent to the background server.

6. The method according to claim 1, characterized in that After determining the video playback data corresponding to the unique identifier of the target object in the current stage, it also includes: If there is verification operation prompt information in the candidate video being played at the current stage, determining the operation time of the verification operation information corresponding to the unique identifier of the target object, wherein the verification operation prompt information is information used to prompt the target object to perform a verification operation to prove that the target object is watching the video, and the verification operation information is the operation performed by the target object according to the prompt of the verification operation prompt information; If the difference between the pop-up time of the verification operation prompt information and the operation time of the verification operation information is greater than the preset time difference, the playback stop time of the candidate video in the current stage is determined to be the pop-up time of the verification operation prompt information.

7. The method according to claim 1, characterized in that Each stage lasts 1 minute.

8. A device for counting video viewing time, characterized in that: include: A data determination module, used to determine the video playback data corresponding to the unique identifier of the target object in the current stage, wherein the video playback data includes the playback duration of each candidate video in the current stage, and the duration of each stage is the same; A duration determination module, configured to determine a first target video from the at least two candidate videos if at least two candidate videos are played in the current stage, and use the play duration of the first target video as the total play duration of the current stage; The duration calculation module is used to determine that if only one candidate video is played in the current stage, the candidate video is determined to be the second target video, and the playing duration of the second target video is used as the total playing duration of the current stage.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video viewing duration statistics method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video viewing duration statistics method according to any one of claims 1 to 7 when executed.