CN115883929A - Video playing time reporting method and display device - Google Patents

Video playing time reporting method and display device Download PDF

Info

Publication number
CN115883929A
CN115883929A CN202111140026.2A CN202111140026A CN115883929A CN 115883929 A CN115883929 A CN 115883929A CN 202111140026 A CN202111140026 A CN 202111140026A CN 115883929 A CN115883929 A CN 115883929A
Authority
CN
China
Prior art keywords
video
playing
time
timer
time length
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.)
Pending
Application number
CN202111140026.2A
Other languages
Chinese (zh)
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.)
Juhaokan Technology Co Ltd
Original Assignee
Juhaokan 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 Juhaokan Technology Co Ltd filed Critical Juhaokan Technology Co Ltd
Priority to CN202111140026.2A priority Critical patent/CN115883929A/en
Publication of CN115883929A publication Critical patent/CN115883929A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a video playing time length reporting method and display equipment. In the video playing process, the video playing time length of the specified video in the playing state is counted based on the starting times and the timing time length of the circular timer. And when the video playing time length meets the reporting period time length, reporting the corresponding video playing time length to a server. It can be seen that the video playing time reported by the application only counts the effective video playing time in the playing state, and the timing time of the cyclic timer is less than the reporting period time, if there is a play stopping operation in the playing process, only the cyclic timer which is not executed is destroyed, that is, the error of the video playing time statistics is at most the timing time of the cyclic timer, which can ensure the accuracy of the video playing time statistics, and further ensure the accuracy of the browser end reporting the video playing time to the server.

Description

Video playing time reporting method and display equipment
Technical Field
The present application relates to the field of communications, and in particular, to a method for reporting a video playing time and a display device.
Background
Along with the rapid development of display equipment, the functions of the display equipment are more and more abundant, and the performance of the display equipment is more and more powerful, and at present, the display equipment comprises an intelligent television, a mobile phone, a refrigerator, other products with an intelligent display screen and the like. In order to improve user experience, a browser or a native APP and the like are configured in the display device, different websites are logged in through the browser to play corresponding videos, and the corresponding videos are played through the native APP.
In order to predict the viewing preference or the statistical viewing progress of the user, the display device needs to report the video playing time of the user to the server during the process that the user views the video, so that the server can predict the viewing preference or the statistical viewing progress of the user. At present, the method for counting the video playing time length by the display device is usually calculated by the time length corresponding to the time length from the playing start time to the playing exit time.
However, if the user has actions such as pause and drag in the video watching process, the counted video playing time length includes the pause time length and the drag time length, which are not the time length actually watched by the user, so that the time length of the user watching the video reported to the server by the display device is not accurate.
Disclosure of Invention
The application provides a video playing time reporting method and display equipment, and aims to solve the problem of inaccurate reporting of the video playing time.
In a first aspect, the present application provides a display device comprising: a display configured to present a video playback page; a controller connected with the display, the controller configured to:
responding to a starting instruction for playing the specified video presented in the video playing page, playing the specified video, and starting a cycle timer, wherein the cycle timer executes a restart action after reaching a timing duration, the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to the maximum duration of video playing duration reported once by a display device to a server;
in the playing process of the specified video, counting the video playing time of the specified video in the reporting period of this time based on the starting times of the circular timer and the timing time of the circular timer, wherein the video playing time refers to the time corresponding to the playing state of the specified video in the reporting period of this time;
and reporting the video playing time length of the specified video to a server when the video playing time length counted in the reporting period reaches the reporting period time length.
In a second aspect, the present application further provides a method for reporting a video playing time length, where the method includes:
responding to a starting instruction for playing a specified video presented in a video playing page, playing the specified video, and starting a cycle timer, wherein the cycle timer executes a restart action after reaching a timing duration, the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to the maximum duration of a video playing duration reported once by a display device to a server;
in the playing process of the specified video, counting the video playing time of the specified video in the reporting period of this time based on the starting times of the circular timer and the timing time of the circular timer, wherein the video playing time refers to the time corresponding to the playing state of the specified video in the reporting period of this time;
and reporting the video playing time length of the specified video to a server when the video playing time length counted in the reporting period reaches the reporting period time length.
In a third aspect, the present application further provides a storage medium, where the storage medium may store a program, and when the program is executed, the program may implement some or all of the steps in each embodiment of the video playing time reporting method provided in the present application.
It can be known from the foregoing technical solutions that, in the video playing duration reporting method and the display device provided in the embodiments of the present invention, when the specified video starts to be played, a cycle timer is started synchronously. And in the video playing process, counting the video playing time length of the specified video in the playing state in the reporting period based on the starting times of the circulation timer in the reporting period and the timing time length of the circulation timer. And when the video playing time length meets the reporting period time length, reporting the corresponding video playing time length statistic value to a server, and finishing the reporting of the time length data of one reporting period. It can be seen that the video playing time reported by the application only counts the effective video playing time in the playing state, and the timing time of the cyclic timer is less than the reporting period time, if there is a play stopping operation in the video playing process, only the cyclic timer which is not completed at that time is destroyed, that is, the error of the video playing time statistics is at most the timing time of the cyclic timer, so that the statistical accuracy of the video playing time can be ensured, and the accuracy of the browser end reporting the video playing time to the server can be further ensured.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates a schematic diagram of an operational scenario between a smart control device and a control apparatus, in accordance with some embodiments;
fig. 2 illustrates a hardware configuration block diagram of an intelligent control device 200 according to some embodiments;
fig. 3 illustrates a hardware configuration block diagram of the control apparatus 100 according to some embodiments;
FIG. 4 illustrates a software configuration diagram in the intelligent control device 200 according to some embodiments;
fig. 5 illustrates a flow diagram of a method for reporting video play duration, in accordance with some embodiments;
fig. 6 illustrates a data flow diagram of a video play duration reporting method, in accordance with some embodiments;
fig. 7 shows an interaction diagram of a video play duration reporting method according to some embodiments;
FIG. 8 illustrates a schematic diagram of a video list page in accordance with some embodiments;
FIG. 9 illustrates a schematic diagram of a video playback page in accordance with some embodiments;
FIG. 10 illustrates a schematic diagram of when a pause in play is performed for a given video, in accordance with some embodiments;
FIG. 11 illustrates a schematic diagram of when drag play is performed on a given video, according to some embodiments.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the functionality associated with that element.
When the intelligent control device is a display device, introduction is performed based on the structure of the display device.
FIG. 1 illustrates a usage scenario of a smart control device according to some embodiments. As shown in fig. 1, the intelligent control apparatus 200 is also in data communication with a server 400, and a user can operate the intelligent control apparatus 200 through the intelligent apparatus 300 or the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the intelligent control device includes at least one of an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and the intelligent control device 200 is controlled by a wireless or wired method. The user may input a user command through at least one of a button on a remote controller, a voice input, a control panel input, etc. to control the intelligent control device 200.
In some embodiments, the smart device 300 may include any of a mobile terminal, a tablet, a computer, a laptop, an AR/VR device, and the like.
In some embodiments, the smart device 300 may also be used to control the smart control device 200. For example, the smart control device 200 is controlled using an application program running on the smart device. In some embodiments, the smart device 300 and the smart control device may also be used for communication of data.
In some embodiments, the intelligent control device 200 may also be controlled in a manner other than the control apparatus 100 and the intelligent device 300, for example, the voice instruction control of the user may be directly received by a module configured inside the intelligent control device 200 to obtain the voice instruction, or may be received by a voice control apparatus provided outside the intelligent control device 200.
In some embodiments, the smart control device 200 is also in data communication with the server 400. The intelligent control device 200 may be allowed to make communication connections through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the smart control device 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
In some embodiments, software steps executed by one step execution agent may be migrated on demand to another step execution agent in data communication therewith for execution. Illustratively, the software steps executed by the server may be migrated to be executed on the intelligent control device in data communication therewith, and vice versa, as needed.
Fig. 2 illustrates a block diagram of a hardware configuration of the control apparatus 100 according to some embodiments. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive by the smart control device 200, serving as an interaction intermediary between the user and the smart control device 200.
In some embodiments, the communication interface 130 is used for external communication, and includes at least one of a WIFI chip, a bluetooth module, NFC, or an alternative module. In some embodiments, the user input/output interface 140 includes at least one of a microphone, a touchpad, a sensor, a key, or an alternative module.
Fig. 3 illustrates a hardware configuration block diagram of the intelligent control device 200 according to some embodiments. Referring to fig. 3, in some embodiments, the intelligent control apparatus 200 includes at least one of a tuning demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, a user interface. In some embodiments, the controller includes a central processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, a first interface to an nth interface for input/output.
In some embodiments, the display 260 includes a display screen component for displaying pictures, and a driving component for driving image display, a component for receiving image signals from the controller output, displaying video content, image content, and menu manipulation interface, and a user manipulation UI interface, etc. In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, the controller 250 and the modem 210 may be located in different separate devices, that is, the modem 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box. In some embodiments, controller 250 controls the operation of the intelligent control device and responds to user actions through various software control programs stored in memory. The controller 250 controls the overall operation of the intelligent control device 200. For example: in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory), a first to nth interface for input/output, a communication Bus (Bus), and the like.
In some embodiments, a user may enter user commands on a Graphical User Interface (GUI) displayed on display 260, and the user input interface receives the user input commands through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. visual interface elements. In some embodiments, the user interface 280 is an interface that can be used to receive control inputs (e.g., physical buttons on the body of the smart control device, or the like).
Fig. 4 illustrates a software configuration diagram in the intelligent control device 200 according to some embodiments. Referring to fig. 4, in some embodiments, the system is divided into four layers, which are an Application (Applications) layer (abbreviated as "Application layer"), an Application Framework (Application Framework) layer (abbreviated as "Framework layer"), an Android runtime (Android runtime) and system library layer (abbreviated as "system runtime library layer"), and a kernel layer from top to bottom.
In some embodiments, at least one application program runs in the application program layer, and the application programs may be windows (windows) programs carried by an operating system, system setting programs, clock programs or the like; or an application developed by a third party developer. In particular implementations, the application packages in the application layer are not limited to the above examples.
The framework layer provides an Application Programming Interface (API) and a programming framework for the application. The application framework layer includes a number of predefined functions. The application framework layer acts as a processing center that decides to let the applications in the application layer act. The application program can access the resources in the system and obtain the services of the system in execution through the API interface.
As shown in fig. 4, in some embodiments of the present application, the application framework layer includes a manager (Managers), a Provider (Content Provider), a network management system, and the like, where the manager includes at least one of the following modules: an Activity Manager (Activity Manager) is used for interacting with all activities running in the system; a Location Manager (Location Manager) for providing access to the system Location service to the system service or application; a Package Manager (Package Manager) for retrieving various information related to an application Package currently installed on the device; a Notification Manager (Notification Manager) for controlling display and clearing of Notification messages; a Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on a user interface.
In some embodiments, in order to improve the experience of the user, a browser or a native APP is configured in the display device, and the browser logs in different websites to play corresponding videos, and the native APP plays the corresponding videos.
When a knowledge learning website is logged in by using a browser, the video time length watched by a user generally needs to be counted, and then a terminal (including a browser end, a native APP end and other terminals actually used by the user) needs to report the video time length watched by the user in the process of watching a video by the user. Or, when the browser is used to log in the video website, in order to predict the viewing preference of the user or count the viewing progress, the display device also needs to report the video playing time of the user to the server during the process of viewing the video by the user.
When the video playing time length is counted and the video playing time is up, if the video playing time length is the native APP, detailed user operation can be recorded: the device is local, and reports regularly through background computing service, so that the device cannot be lost even if the device leaves a playing page. However, a reliable storage user operation cannot be performed for the browser side, and even scratch is very easily tampered. Therefore, other reporting modes different from the native APP are required for the browser.
Currently, there are various methods for counting and reporting viewing time length by a terminal configured with a browser, for example, a real-time counting and reporting method, that is, reporting once per second, can be adopted. Although very accurate statistics can be obtained in this way, the server interface has concurrency (number of requests per second) limitation, and the terminal is not allowed to call the interface too frequently. Therefore, the terminal can adopt a non-real-time reporting scheme instead.
When the non-real-time reporting method is adopted, because the interval at which each terminal calls the interface is not less than the preset interval (for example, 30 s) required by the server-side interface, the terminal often sets a 30s cycle timer, and triggers a reporting operation every 30s after the timer is executed, that is, the time length of a reporting period is 30s. However, in the process of playing the video, if the user performs operations such as pause, drag, or quit from the middle on the video, the cycle timer is destroyed, so that the data of the playing time length of the middle part of the video is lost, and the statistical result of the video playing time length of the video watched by the user is not the actual watching time length of the user, so that the time length of the video watched by the user, which is reported to the server by the display device, is not accurate. For example, if a drag occurs 10 seconds after the start of a 30s cycle, the timer may be destroyed and reset for timing after the drag. Because the 10s time does not reach the reporting cycle time, the terminal does not report the 10s watching time, so that a 10s error occurs in the video playing time statistical result of the video watched by the user.
Therefore, in order to ensure that the display device can report the accurate video playing time length generated when the user watches the video to the server side, the embodiment of the invention provides the display device, wherein when the method for reporting the video playing time length is executed, the method for reporting the progress in the process of watching the video by the browser end is improved, when the video starts to play, a short-time (such as 1 second) cyclic timer is set, even if the user pauses or drags the video and the like, only the 1 second timer which is not executed and completed at that time is destroyed, namely, the error of the video playing time length statistics is the timing time length (such as 1 second) of the cyclic timer at most, a reporting counter is also set, and the watching time length is reported after the cyclic timer successfully times (30 times). Therefore, the method adopted by the application increases the reporting accuracy of the video watching duration of the browser end user, and simultaneously, the concurrency pressure of the server end is not additionally increased, so that the video playing stability is ensured.
Fig. 5 illustrates a flow diagram of a method for reporting video play duration, in accordance with some embodiments; fig. 6 illustrates a data flow diagram of a video play duration reporting method, in accordance with some embodiments; fig. 7 shows an interaction diagram of a video play duration reporting method according to some embodiments. An embodiment of the present invention provides a display device, including: a display configured to present a video playback page; when the controller connected to the display executes the video playing time reporting method shown in fig. 5, 6 and 7, the controller is configured to execute the following steps:
s1, responding to a starting instruction for playing the specified video presented in the video playing page, playing the specified video, starting a cycle timer, executing a restarting action after the cycle timer reaches a timing duration, wherein the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to the maximum duration of the video playing duration reported to a server by a display device in each reporting period.
When the browser is configured in the display equipment, the browser is started, a browser homepage is presented in the user interface, and any website can be logged in at the browser homepage to display a page corresponding to the website. For example, when a knowledge learning website is logged in through a browser, a video list page is synchronously generated and displayed in a display. A plurality of videos which can be played are presented in the video list page, and a user can play one of the videos.
FIG. 8 illustrates a schematic diagram of a video list page in accordance with some embodiments. Referring to fig. 8, after the browser is started and the knowledge learning website is logged in, a video list page is generated, a plurality of videos are presented in the video list page, and a video selected by the user to be played is an appointed video to be played.
FIG. 9 illustrates a schematic diagram of a video playback page according to some embodiments. Referring to fig. 9, a user triggers a designated video (video 5) through voice or a remote controller to generate a start instruction, and a browser responds to the start instruction, generates a video playing page based on the designated video, displays the video playing page in a user interface, and realizes playing of the designated video. At this time, the display content of the user interface is switched from the video list page to the video playing page for displaying.
The video playing time length refers to effective accumulated time length corresponding to the actual effective playing of the video, the effective playing refers to a playing state according to a time axis of the video, and the playing state does not include a pause period, a dragging period or a middle exit and reentry period and other states; the video playing time length is equivalent to the accumulated time length of the video content actually watched by the user. To facilitate accurate statistics of the video playing time of a given video, when a user starts playing a video, the video playing time is set watchTime =0, and a short-time loop timer is set. For example, the timing duration of the cycle timer may be 1 second, and may also be set to other values according to practical applications, and is not limited herein.
The cycle timer is a timer which is repeatedly started based on the timing duration, that is, when the cycle timer starts to count, after the timing duration elapses, the cycle timer executes a restart action, which is equivalent to restarting a new cycle timer. For example, if the cycle timer is a 1 second timer, a new cycle timer is restarted every 1 second; and the newly started next cycle timer counts again, and after the timing duration is reached, a new cycle timer is started again, and so on.
That is, the cycle timer is restarted every other timing duration (1 second) during the video playing process. And the video playing time length is counted from 0, so the video playing time length can be counted based on the timing time length and the starting times of the circulation timer.
In some embodiments, in order to avoid that the statistical accuracy of the video playing duration is affected by suspension of the playing operation such as pause, drag, or middle exit in the video process, the timing duration of the circular timer may be set to be smaller than the reporting period duration, where the reporting period duration refers to the maximum duration of the video playing duration reported once by the display device to the server.
In the video playing process, if the user stops playing operations such as pause, drag or intermediate exit on the video, the corresponding cycle timer is destroyed at the moment of generating the corresponding operations, and the time corresponding to the cycle timer is not counted in the video playing time. Therefore, by adopting the scheme that the timing duration of the set circular timer is less than the reporting period duration, when a certain circular timer is destroyed, the influence on the statistical accuracy of the video playing duration when a certain or a plurality of circular timers are destroyed can be reduced as much as possible. Therefore, when the playing stopping operation exists, only the 1 second timer which is not completed at that time is destroyed, that is, the error of the video playing time counting is at most the timing time (such as 1 second) of the cycle timer, so that the counting accuracy of the video playing time can be ensured, and the accuracy of the browser end reporting the video playing time to the server is further ensured.
In some embodiments, the reporting period duration may be set to a duration of a preset interval in which the server-side interface requires each terminal display device to call the interface, for example, when the preset interval of the terminal display device to call the interface is 30 seconds, the reporting period duration in which the display device reports the video playing duration to the server once may also be set to be 30 seconds, which is equivalent to a maximum value of the video playing duration being 30s.
The display equipment sends the counted video playing time generated by playing the video by the browser to the server according to the reporting period, at the moment, the display equipment calls the server interface to trigger the triggering condition of the reporting process to realize time length reporting based on the reporting period, the system time is not required to be considered, and one-time reporting can be executed when the counted time length reaches the time length corresponding to the reporting period.
That is to say, the total duration of the video playing durations capable of being reported is equivalent to the duration of the reporting period, that is, the reporting period is the time when the video playing duration reaches the duration of the reporting period, the initial time of one reporting period is the time when the video playing duration starts to be counted, the end time of one reporting period is the time when the video playing duration reaches the duration of the reporting period, for example, the duration of the reporting period is 30 seconds, and the display device reports the duration of 30 seconds each time (i.e., each reporting period), and the process is repeated.
In some embodiments, the start of the loop timer is not only applied to the initial playing time of the designated video, but also applied to any time of resuming playing after pausing, the completion time of fast forwarding or fast rewinding through dragging, and the time of resuming playing the designated video after exiting and re-entering the video playing page in the middle. Therefore, when the designated video is stopped and then played, a loop timer is restarted, i.e., the loop timer executes a restart action.
S2, in the playing process of the appointed video, counting the video playing time of the appointed video in the reporting period of the time based on the starting times of the circulation timer and the timing time of the circulation timer, wherein the video playing time is the time corresponding to the playing state of the appointed video in the reporting period of the time.
Since the video playing time lengths reported by the display device to the server are sequentially reported according to the reporting period, the video playing time length counted by the display device is the time length corresponding to the playing state of the specified video in the reporting period, which is equivalent to the playing time length of the video player in the reporting period. The player is used for playing the specified video presented in the browser.
In the video playing process, the video playing time duration watchTime =0 is set when the video starts to be played, a cycle timer is started, and after the time duration t is reached, the video playing time duration watchTime = watchTime + t, and so on. Therefore, the video playing time length can be counted based on the timing time length and the starting times of the circulation timer.
If the specified video is in a playing state according to the time axis all the time, the cycle timer is restarted once every timing duration, and the statistics of the video playing duration is accumulated along with the number of the timing durations of the passed cycle timer.
For example, if the specified video is in the playing state all the time, statistics is started from the video playing time length watchTime =0 at the playing start time, the timing length of the loop timer is t, and the loop timer is restarted once every time the timing length of the loop timer is t. If the loop timer is restarted N times, the video playing time length performs the loop counting process of watchTime = watchTime + t N times, which is equivalent to that the video playing time length is N × t.
In some embodiments, when the timing duration t =1 of the loop timer, the loop timer is restarted every 1 second along with the playing of the video, and the video playing duration performs a loop statistics process of watchTime = watchTime + 1; if the loop timer is restarted for N times, the statistic value of the video playing time length is Nx 1. When the timing duration t =0.5 of the loop timer, restarting the loop timer every 0.5 seconds along with the playing of the video, and executing a loop counting process of watchTime = watchTime +0.5 on the video playing duration; if the loop timer is restarted for N times, the statistic value of the video playing time length is Nx 0.5. The method circularly counts the statistic value of the video playing time length.
If the playing stopping operation exists in the video playing process, the circular timer corresponding to the occurrence moment of the corresponding operation is destroyed, namely the corresponding timing duration cannot be counted in the counting value of the video playing duration, so that only the duration corresponding to the video in the playing state is counted when the video playing duration is counted. The pause playback operation is for causing the specified video to be switched from a playback state to a non-playback state.
And S3, reporting the video playing time length of the specified video to the server when the video playing time length counted in the reporting period reaches the reporting period time length.
Because the total time length of one video is usually longer, a user may not watch the video completely or jump to play, so that in order to ensure the reporting accuracy of the video playing time length, the display device does not report the total video playing time length of the user watching the specified video to the server uniformly, but reports the total video playing time length once according to a certain period.
Because the server-side interface requires that the interval of the display device calling interface is not less than the preset interval (for example, 30 s), the reporting period duration set by the display device side may be the duration corresponding to the preset interval allowed to be called by the server-side interface. The reporting period duration refers to a maximum duration of a video playing duration reported to the server by the display device in each reporting period, for example, when the reporting period duration is 30s, the display device triggers a reporting operation after counting that the video playing duration reaches 30s, and at this time, the reporting duration is 30s.
And the display equipment reports the counted video playing time length to the server in sequence according to the reporting period, and two adjacent reporting periods have no fixed time interval and only need to meet the calling of the server end interface. For example, if two adjacent reporting periods are sequentially counted periods, and the user does not stop playing based on the specified video in the two reporting periods, the time interval between the two periods is the duration of the reporting period, e.g. 30s. If the user generates the operation of stopping playing based on the specified video in the two reporting periods, when the specified video is in the process of stopping playing, the video playing time length counting process is suspended, and the system time is elapsed, so that the time interval of the two periods is greater than the time length of the reporting period, for example, the time interval is greater than 30s.
Therefore, in the video playing process, along with the statistics of the video playing time length, the currently counted statistic value of the video playing time length is compared with the reporting period time length in real time, and if the statistic value of the video playing time length reaches the reporting period time length, the display equipment end can report time length data to the server once, namely, one reporting period is completed; if the statistic value of the video playing time length does not reach the time length of the reporting period, the above-mentioned cyclic statistic process is continuously executed until the statistic value of the video playing time length reaches the time length of the reporting period, and a reporting process is executed once.
And when the statistical value of the video playing time reaches the reporting period time, calling an interface of the server, reporting the video playing time of the specified video in the current reporting period to the server, and finishing a time length reporting process.
In some embodiments, the reporting period duration T of the display device is greater than the timing duration T of the cycle timer.
In some embodiments, the reporting process is executed after the video playing time duration watchTime reaches the reporting period duration T, so that the statistical value of the video playing time duration watchTime is equivalent to the reporting period duration T, that is, equivalent to the total duration of one reporting period.
For example, when the reporting period duration of the video playing duration reported to the server by the display device is set to be 30 seconds, if the video playing duration counted by the display device reaches 30 seconds, the display device calls the server-side interface to perform a duration reporting process. At this time, the video playing time length reported by the display device is 30 seconds, and a reporting period is completed.
In some embodiments, the process of reporting the video playing time length to the server by the display device is one reporting period. The initial time of one reporting period is the time when the statistics of the video playing time length is started, namely the time when the video playing is started. When the video starts to be played, setting a video playing time length watchTime =0, and starting the time of a first cycle timer to count the video playing time length in real time; the end time of one reporting period is the time when the statistic value of the video playing time length reaches the time length of the reporting period.
For example, when the video starts to be played, the timer starts, that is, when the statistic of the video playing time length is 0, the timer is the starting time of a reporting period, and when the statistic of the video playing time length reaches 30 seconds, the timer is the ending time of a reporting period. And at the end of the reporting period, the display device starts to report the video playing time counted this time to the server, namely the time of reporting 30 seconds by the display device is a reporting period, and the reporting is performed in a circulating manner.
Therefore, according to the display device provided by the embodiment of the invention, when the specified video starts to be played, a cycle timer is synchronously started. And restarting the loop timer after the loop timer reaches the timing duration, and counting the video playing duration of the specified video in the playing state in the reporting period based on the starting times and the timing duration of the loop timer in the video playing process. And reporting the video playing time length statistic value meeting the reporting period time length to a server after the video playing time length meets the time length reporting condition. If the playing stopping operation exists in the video playing process, the destroyed current circular timer is only the current circular timer which is not executed and completed at that time, namely the error of the video playing time counting is at most the timing time (such as 1 second) of the circular timer, so that the counting accuracy of the video playing time can be ensured, and the accuracy of reporting the video playing time to the server by the browser end is further ensured.
In some embodiments, when a user watches a specific video, there may be a case that the user cannot watch the video continuously, for example, the user may pause playing the video due to an unexpected situation; or some video contents are not clear and need to be played repeatedly; or the user playing the content at present is not interested and needs to fast forward to play; or the user exits the browser and reenters the video playing page in the middle of playing due to network accidents or voluntary.
In any case, the playing progress of the designated video is stopped according to the time axis, that is, when any playing stopping operation exists, the normal playing process of the designated video is interrupted.
When any one of the situations exists in the video playing process, the playing of the designated video is stopped, at this time, the video is no longer in the playing state, and therefore, when the playing duration of the video is counted, the duration occupied by the playing stopping operation does not need to be counted. And the circulating timer started for accurately counting the video playing time length is destroyed when any one of the playing stopping operations exists, and the counting process of the video playing time length at the moment is stopped.
In some embodiments, during the video playing process, if there is an interruption playing operation, the counting process of the video playing time length is stopped, and the counting is continued when the video playing operation is triggered next time, at this time, the controller is further configured to:
and step 41, in the process of playing the specified video, receiving the playing stopping operation generated on the specified video, stopping playing the specified video, stopping starting the corresponding cycle timer at the starting moment of stopping playing, and pausing to count the playing time length of the video.
And 42, receiving the continuous playing operation generated on the specified video, continuously playing the specified video, restarting the corresponding cycle timer at the stopping ending moment, and continuously counting the video playing time length based on the video playing time length counted before the stopping playing operation, wherein the stopping ending moment refers to the moment when the continuous playing operation is generated.
In the process of playing the designated video, if the user generates the playing stopping operation on the designated video, the time of generating the playing stopping operation is the starting stopping time. The operation of suspending playing refers to an operation of making the designated video no longer in a playing state, that is, an operation of preventing the browser from playing the designated video, where the operation includes, but is not limited to, operations of pausing, dragging, exiting from the middle and re-advancing.
When the playing stopping operation is generated, the playing of the appointed video is stopped, and the circulation timer corresponding to the stopping starting time is destroyed, namely, the restarting action is not executed according to the time length reaching the timing time, namely, a new circulation timer is not restarted after the stopping starting time.
And if the circulating timer is not restarted, stopping the counting process corresponding to the video playing time length, namely, not counting the timing time length corresponding to the destroyed circulating timer into the video playing time length.
In some embodiments, when the user generates a resume play operation for a given video, the time at which the resume play operation is generated is the pause end time. The time interval from the pause starting time to the pause ending time is the time interval from the pause playing operation of the user to the continuous playing operation of the specified video, namely the time interval from the pause playing operation of the user to the stop of the specified video.
When the continuous playing operation is generated, the operation of preventing the browser from playing the specified video is eliminated, so that the specified video can be continuously played. In order to count the video playing time in time and ensure the accuracy of the video playing time, the corresponding cycle timer is restarted at the stopping ending moment of the continuous playing operation, and meanwhile, the video playing time is continuously counted based on the video playing time counted before the playing operation is stopped.
For example, if a pause playback operation is performed when a specified video is played back for 20 seconds on the time axis, the pause start time is the 20 th second. At this time, the circulation timer of the 20 th second is destroyed, and the statistics of the video playing time length is stopped, that is, the timing time length of the circulation timer of the 20 th second is not accumulated in the video playing time length any more. In fact, the statistical value of the video playing time length is accumulated to the timing time length of the circulation timer corresponding to the 19 th second, that is, the statistical value of the current video playing time length is the sum of the time lengths of the first 19 timing time lengths.
And if the user generates the continuous playing operation after N seconds, continuously playing the appointed video and synchronously starting a cycle timer. At this time, the video playing duration is continuously counted based on the video playing durations corresponding to the first 19 timing durations, that is, after the timing duration is reached, the timing duration of the loop timer started at the termination time at present is the 20 th timing duration in the video playing duration statistics. And continuously restarting the cycle timer by the method, and circularly counting the statistic value of the video playing time length based on the corresponding timing time length.
In some embodiments, when the pause operation is a pause operation, the pause operation generated by the user for the specified video can be realized by voice or triggering a pause key of the remote controller. Taking triggering a pause key as an example, when the pause key is triggered for the first time, pause operation is generated, the moment of triggering the pause key for the first time is the pause starting moment, and the video is appointed to pause playing; when the pause key is triggered for the second time, the continuous playing operation is generated, the moment when the pause key is triggered for the second time is the stopping ending moment, and the video is appointed to be continuously played. Then, the time period from the first time the pause key is triggered to the second time the pause key is triggered, i.e. the time period during which the pause operation prevents the designated video from playing.
In some embodiments, when the pause playback operation is a drag operation, the user may drag the designated video by voice or by triggering a direction key of the remote controller, and the drag operation includes a reverse playback operation and a fast forward playback operation. For example, a left arrow key is triggered to generate a backward play operation; and triggering a right direction key to generate a fast forward playing operation. Taking triggering the right direction key as an example, when a user presses the right direction key, the moment is the pause starting moment, namely, a dragging operation is generated, and at the moment, the appointed video pauses playing; and the user continuously presses the right direction key for a period of time and lifts the right direction key, the time of lifting the right direction key is the termination time, the continuous playing operation is generated, and the specified video is continuously played. At this time, the playback content of the designated video is the content corresponding to the fast-forward N seconds later. Then, the time period from pressing the right direction key to lifting the right direction key is the time period for preventing the designated video from playing by the drag operation.
In some embodiments, when the playing termination operation is a middle exit and replay operation, in the process of playing the specified video, the user closes the video playing page presented by the current browser, and the time when the closing operation is generated is the termination start time, at this time, the browser executes the closing operation so that the specified video in the original playing state is exited for playing. If the user restarts the browser and enters the video playing page after a period of time, the moment of re-entering the video playing page is the termination moment, and continuous playing operation is generated, so that the specified video in the video playing page is continuously played. Then, the time interval from the closing operation to the re-entry of the video playing page is the time interval for stopping the designated video playing for the intermediate exit and re-entry operation.
In some embodiments, in the video playing process, the operation that can prevent the browser from playing the video includes, but is not limited to, the above examples, and other operations that can also generate the pause playing may correspondingly count the video playing time length by using the above method, which is not described herein again.
In some embodiments, the browser counts the video playing time of the user watching the video, and actually counts the time of the video in the effective playing state, and does not include the time of the non-effective playing state such as pause, drag, middle exit and re-entry, or even playing failure.
In some embodiments, if there is an operation of suspending playing during the playing of the video, since the counting process of the video playing time length is in a pause state when the operation of suspending playing is generated, a sectional counting manner needs to be adopted to accurately count the video playing time length.
At this time, the controller performs step S2, that is, based on the starting times of the loop timer and the timing duration of the loop timer, to count the video playing duration of the specified video in the current reporting period, and is further configured to perform the following steps:
and step 21, in the process of playing the designated video, receiving an operation of stopping playing generated for the designated video, and counting the playing duration of the first video corresponding to the playing state of the designated video in the current reporting period based on the starting times of the circular timer and the timing duration of the circular timer, wherein the starting times correspond to the time interval between the video playing time and the stopping starting time in the current reporting period.
And step 22, receiving the continuous playing operation generated on the specified video in the current reporting period, and counting the playing time length of the second video corresponding to the playing state of the specified video in the current reporting period based on the starting times of the circular timer and the timing time length of the circular timer from the ending time.
And step 23, calculating the sum of the first video playing time length and the second video playing time length to serve as the video playing time length of the specified video corresponding to the playing state in the reporting period.
In the process of playing the video, if the playing stopping operation exists in the current reporting period, the statistics of the corresponding video playing time length is interrupted, so that the video playing time length of the specified video in the playing state in the current reporting period can be counted in a segmented manner before and after the playing stopping operation is generated, in order to accurately count the video playing time length of the specified video in the playing state in the current reporting period.
In some embodiments, if the specified video stops playing when the play stopping operation is generated in the current reporting period based on the specified video, at this time, the circular timer corresponding to the stop starting time is destroyed, that is, the timing duration corresponding to the circular timer is not accumulated in the video playing duration of the current reporting period of the circular statistics. Therefore, when the designated video stops playing, the first video playing duration in the current reporting period can be counted from the playing starting time to the stopping starting time, that is, the first video playing duration corresponding to the video in the playing state in the current reporting period is counted based on the starting times of the cyclic timer and the starting times timing duration of the cyclic timer corresponding to the time interval between the video playing time and the stopping starting time in the current reporting period.
If it is in the initial statistical stage (e.g. the first reporting period), the video playing time refers to the time when the video starts to be played. If the video is in the subsequent statistical stage (for example, the nth reporting period), the video playing time refers to the ending time of the previous reporting period. At the video playing time, the video playing time duration watchTime =0, and the started cycle timer is the first cycle timer of the current reporting period.
In some embodiments, after a period of time elapses, if a continuous play operation is generated in the current reporting period based on the designated video, the designated video continues to be played, at this time, a loop timer is restarted at the end of the pause, and a second video play duration corresponding to the playing state of the designated video in the current reporting period in the replay stage is counted based on the starting times of the loop timer and the timing duration of the loop timer.
Here, the number of times of starting the loop timer counted in calculating the second video playback time period refers to the number of times of starting the loop timer from the termination time, and is not the total number of times counted from the start of the loop timer started at the video playback time.
And finally, calculating the sum of the first video playing time length and the second video playing time length, namely the video playing time length corresponding to the playing state of the specified video in the reporting period. The video playing time counted by the method does not include the time occupied by the playing stopping operation, but only includes the time of the effective playing of the video, so the counted video playing time is more accurate.
For example, if a pause playback operation is performed when a specified video is played back for 20 seconds on the time axis, the pause start time is the 20 th second. At this time, the loop timer executed in the 20 th second is destroyed, and the statistics of the video playing time length is stopped, that is, the timing time length of the loop timer executed in the 20 th second is not accumulated in the video playing time length any more. In fact, the statistical value of the first video playing time length is accumulated from the video playing time (0 th second) to the timing time length of the corresponding cycle timer of the 19 th second, that is, the timing time lengths of the first 19 executed cycle timers are accumulated, while the 20 th cycle timer is not executed and is therefore not accumulated, and at this time, the statistical value of the first video playing time length is the sum of the time lengths of the first 19 timing time lengths. If the timing duration is 1 second, the first video playing duration watchTime1 is 19 seconds.
If the user generates a continuous playing operation after the system time is 2 minutes, the specified video is continuously played, a cycle timer is synchronously started, and meanwhile, the second video playing time length watchTime2 is calculated to be NxT based on the starting times N and the timing time length T of the cycle timer after the current time.
Finally, summing the video playing time lengths counted before the playing operation is stopped and after the playing operation is continued in the current reporting period, that is, calculating the total time length of the first video playing time length (the watchTime1 is 19 seconds) and the second video playing time length (the watchTime2 is N × T), and taking the total time length as the video playing time length watchTime = watchTime1+ watchTime2=19+ N × T corresponding to the playing state of the specified video in the current reporting period.
It can be seen that, in the video playing process, if the pause playing operation and the continue playing operation exist in the same reporting period, the video playing time counted before the pause playing operation and the video playing time counted after the continue playing operation are accumulated, that is, the video playing time is continuously counted after the continue playing operation on the basis of the video playing time counted before the pause playing operation, so that the video playing time counted circularly is the time for effective playing of the video, and the counted video playing time is more accurate.
In some embodiments, the trigger conditions for different pause playing operations are different, and therefore, the statistical process of the video playing duration for different pause playing operations is different.
In some embodiments, when the playback suspension operation is a pause operation, the controller counts a video playback duration of the specified video in the current reporting period based on the starting times of the loop timer and the timing duration of the loop timer, and is further configured to perform the following steps:
in step 2011, when the playback suspension operation generated in the process of playing the designated video is a pause operation, the pause operation generated on the designated video is received, and the playing of the designated video is paused.
Step 2012, the start action of the corresponding loop timer is stopped at the pause start time, and based on the start times of the loop timer and the timing duration of the loop timer corresponding to the time interval between the video playing time and the pause start time in the current reporting period, the first video playing duration corresponding to the playing state of the specified video in the current reporting period is counted.
Step 2013, receiving the continuous playing operation generated on the specified video in the current reporting period, continuously playing the specified video, starting the corresponding cycle timer at the pause ending moment, and counting the playing duration of the second video corresponding to the specified video in the playing state in the current reporting period based on the starting times of the cycle timer and the timing duration of the cycle timer, wherein the pause ending moment is the moment of generating the continuous playing operation.
Step 2014, taking the total duration of the first video playing duration and the second video playing duration as the video playing duration of the specified video in the reporting period.
In the process of playing the designated video, if the user needs to pause playing the designated video in the reporting period, the playing stopping operation generated by the user on the designated video is pause operation. The mode of pause operation generated by the user can be a voice control mode or a mode of triggering a pause key of a remote controller.
Taking the example of triggering the pause key to execute the pause operation, when the pause key is triggered for the first time, the pause operation is generated on the specified video, and the time when the pause key is triggered for the first time is the pause starting time, and the specified video is paused. When the pause operation is generated, the cycle timer corresponding to the pause starting time is destroyed, and a new cycle timer is not started after the pause starting time.
The loop timer counts the timing duration into the video playing duration after reaching the timing duration, namely the video playing duration performs a loop counting process, and if a pause operation is generated in the timing process of a certain loop timer, the loop timer does not reach the timing duration. Therefore, in order to ensure the statistical accuracy of the video playing duration, the timing duration corresponding to the cycle timer is not accumulated into the video playing duration of the cycle statistics, that is, the statistical process of the video playing duration is paused at the pause starting time.
Therefore, when the specified video is paused, the first video playing duration can be counted from the video playing time to the pause starting time in the current reporting period, that is, the first video playing duration corresponding to the playing state of the specified video in the current reporting period is counted based on the starting times of the loop timer and the timing duration of the loop timer corresponding to the time interval between the video playing time and the pause starting time in the current reporting period.
After a period of time, if the user wants to watch the specified video again, the user can trigger the pause key for the second time to generate the play continuation operation for the specified video. Because the previous time length counting process does not reach a reporting period, the time length counting process after continuous playing is still in the same reporting period as the previous time length counting process. When the appointed video continues playing, the time of triggering the pause key for the second time is the pause ending time, namely the time of generating the continuous playing operation is the pause ending time, and at the moment, the appointed video continues playing. Then, the time period from the first time the pause key is triggered to the second time the pause key is triggered, i.e. the time period during which the pause operation prevents the designated video from playing.
After the appointed video continues to be played, a circulation timer is synchronously started at the time of ending pause for timely counting the playing time of the video, and the playing time of a second video corresponding to the playing state of the appointed video in the current reporting period in the continuous playing stage is counted based on the starting times of the circulation timer and the timing time of the circulation timer. Here, the counted number of times of starting the loop timer in calculating the second video playing time length refers to the number of times of starting the loop timer after the pause ending time in the current reporting period, and is not the total number of times of starting the counting of the loop timer started from the video playing time in the current reporting period.
And finally, calculating the sum of the first video playing time length and the second video playing time length, namely the video playing time length corresponding to the playing state of the specified video in the reporting period. The video playing time counted by the method does not include the time occupied by the pause operation, but only includes the time of the effective playing of the video, so the counted video playing time is more accurate.
FIG. 10 illustrates a schematic diagram of when a pause in play is performed for a given video, according to some embodiments. Referring to fig. 10, for example, when a specific video is played, if a pause key is first triggered by a user when the specific video is played for 20 seconds according to a time axis to generate a pause operation, the pause start time is 20 th second. At this time, if the timing duration of the loop timer is 1 second, the loop timer executed in the 20 th second is destroyed, and the statistics of the video playing duration is stopped, that is, the timing duration of the loop timer executed in the 20 th second is not accumulated in the video playing duration any more. Actually, the statistical value of the first video playing time length is accumulated from the video playing time (0 th second) to the timing time length of the corresponding cycle timer of the 19 th second, that is, the statistical value of the first video playing time length is the sum of the previous 19 timing time lengths, for example, the first video playing time length watchTime1 is 19 seconds.
And if the user triggers the pause key for the second time after the system time is 2 minutes, and the continuous playing operation is generated, the specified video is continuously played. Since the playing time of the first video is 19 seconds and a reporting period has not yet been reached, the time counting process after the video is continuously played still remains in the same reporting period. And appointing the continuous playing time of the video as the 20 th second of the time axis, and synchronously starting a cycle timer. After the 21 st second, when the cycle timer started in the 20 th second reaches the timing duration (1 second), the video playing duration performs a statistical process, that is, the timing duration corresponding to the 21 st second is accumulated in the video playing duration. Based on this, the second video playback time duration watchTime2 is calculated to be N × T based on the number of times N the loop timer is started after the pause end time and the counted time duration T.
And finally, summing the video playing time lengths counted before the pause operation and after the continuous playing operation, namely calculating the total time length of the first video playing time length and the second video playing time length, wherein the total time length is used as the video playing time length watchTime = watchTime1+ watchTime2=19+ NxT corresponding to the playing state of the specified video in the reporting period.
Therefore, in the video playing process, if the pause operation exists in the reporting period, the corresponding circular timer destruction is generated at the pause operation moment. Because the operation of preventing the browser from playing the specified video is generated in the timing process of the circular timer, the timing duration of the circular timer corresponding to the pause operation time is not counted in the video playing duration any more, namely the counting of the video playing duration is stopped. And when the playing is continued in the current reporting period, counting the video playing time length based on the cycle timer from the pause ending time. Therefore, in the process of counting the video playing time length, when the playing stopping operation exists, only the cyclic timer (for example, the cyclic timer of the 20 th second) which is not executed and completed at that time is destroyed, that is, the error of the video playing time length counting is at most the timing time length of the cyclic timer started at the 20 th second (for example, the timing time length of 1 second corresponding to the 19 th second to the 20 th second), so that the counting accuracy of the video playing time length can be ensured, and the accuracy of reporting the video playing time length to the server by the browser end is further ensured.
In some embodiments, when the suspension playback operation is a drag operation, the controller counts a video playback time length of the specified video in the current reporting period while executing the count based on the starting times of the loop timer and the timing time length of the loop timer, and is further configured to execute the following steps:
step 2021, when the play termination operation generated in the playing process of the designated video is a drag operation, receiving a drag start operation generated on the designated video, stopping a start action of a corresponding cyclic timer at the drag start time, and counting a first video playing duration corresponding to the playing state of the designated video in the current reporting period based on the start times of the cyclic timer and the timing duration of the cyclic timer, which correspond to a time period between the video playing time and the drag start time in the current reporting period;
step 2022, receiving a drag ending operation generated on the specified video in the current reporting period, starting a corresponding cycle timer at a drag ending time, and counting a second video playing time length corresponding to the playing state of the specified video in the current reporting period based on the starting times of the cycle timer and the timing time length of the cycle timer;
step 2023, taking the total duration of the first video playing duration and the second video playing duration as the video playing duration of the specified video in the current reporting period.
In the process of playing the designated video, if the user wants to fast forward or fast backward play the designated video in the reporting period, the playing stopping operation generated by the user on the designated video is a dragging operation. The mode of the user generating the drag operation can be a voice control mode or a mode of triggering a direction key of a remote controller. The drag operation includes a rewind play operation and a fast-forward play operation. For example, triggering a left direction key to generate a backward play operation; and triggering a right direction key to generate a fast forward playing operation.
Taking triggering the remote controller to execute fast forward playing operation by a right direction key as an example, a user presses the right direction key for a short time to execute one fast forward playing operation; the user presses the right direction key for a long time to execute the continuous fast forward play operation. And different key durations lead the durations occupied by the dragging operation to be different. When a user presses a right direction key, the moment when the key is pressed is the dragging starting moment, namely dragging operation is generated, and fast forward playing is started. At this time, the designated video stops playing; and when the dragging operation is generated, destroying the circulation timer corresponding to the dragging starting moment, and not starting a new circulation timer after the dragging starting moment.
The loop timer counts the timing duration into the video playing duration after the timing duration is reached, namely the video playing duration performs a loop counting process, and if a dragging operation is generated in the timing process of a certain loop timer, the loop timer does not reach the timing duration yet. Therefore, in order to ensure the statistical accuracy of the video playing time, the timing time corresponding to the cycle timer is not accumulated into the video playing time of the cycle statistics, that is, the statistical process of the video playing time is suspended at the dragging start time.
Therefore, when the video is fast-forwarded and played, the first video playing duration can be counted from the video playing time to the dragging starting time in the reporting period, that is, the first video playing duration corresponding to the playing state of the specified video in the reporting period is counted based on the starting times of the cycle timer and the timing duration of the cycle timer corresponding to the time interval between the video playing time and the dragging starting time in the reporting period.
And the user lifts the right direction key after continuously pressing the right direction key for a period of time, drag ending operation is carried out on the appointed video, the moment when the right direction key is lifted is the drag ending moment, and the appointed video is continuously played. Because the previous time length counting process does not reach a reporting period, the time length counting process after continuous playing is still in the same reporting period as the previous time length counting process. At this time, the playback content of the designated video is the content corresponding to the fast-forward N seconds later. Then, the time period from pressing the right direction key to lifting the right direction key is the time period for preventing the designated video from playing by the drag operation.
After the appointed video continues to be played through the fast forward operation, a cycle timer is synchronously started at the dragging ending moment for timely counting the playing time of the video, and the playing time of a second video corresponding to the playing state of the appointed video in the continuous playing stage in the reporting period is counted based on the starting times of the cycle timer and the timing time of the cycle timer. Here, the number of times of starting the loop timer counted in calculating the second video playing time length refers to the number of times of starting the loop timer after the drag ending time in the current reporting period, and is not the total number of times of starting the counting of the loop timer started from the video playing time in the current reporting period.
And finally, calculating the sum of the first video playing time length and the second video playing time length, namely the video playing time length corresponding to the playing state of the specified video in the reporting period. The video playing time counted by the method does not include the time occupied by the dragging operation, but only includes the time of effective playing of the video, so the counted video playing time is more accurate.
FIG. 11 illustrates a schematic diagram of when drag play is performed on a designated video, according to some embodiments. Referring to fig. 11, for example, when a specified video is played, if a user presses a right direction key when playing for 20 seconds according to a time axis to generate a drag operation, a drag start time is 20 th second. At this time, if the timing duration of the circulation timer is 1 second, the circulation timer executed in the 20 th second is destroyed, and the statistics of the video playing duration is stopped, that is, the timing duration of the circulation timer executed in the 20 th second is not accumulated in the video playing duration any more. Actually, the statistical value of the first video playing time length in the reporting period is accumulated from the video playing time (0 th second) to the timing time length of the corresponding cyclic timer of the 19 th second, that is, the statistical value of the first video playing time length is the sum of the previous 19 timing time lengths, for example, the first video playing time length watchTime1 is 19 seconds.
And if the user lifts the right direction key after the system time is N seconds and the dragging ending operation is generated, continuing to play the appointed video. Since the playing time of the first video is 19 seconds and a reporting period has not yet been reached, the time counting process after the video is continuously played still remains in the same reporting period. If the time axis of the designated video is fast-forwarded to 30 th second at the end of the drag, 10 seconds in the period is a fast-forward period. And synchronously starting a cycle timer at the dragging ending time (30 th second of a time axis), and meanwhile, calculating the second video playing time length watchTime2 in the reporting period to be NxT on the basis of the starting times N and the timing time length T of the cycle timer after the dragging ending time.
And finally, summing the video playing time lengths counted before the dragging start operation and after the dragging end operation, namely calculating the total time length of the first video playing time length and the second video playing time length, wherein the total time length is used as the video playing time length watchTime = watchTime1+ watchTime2=19+ NxT corresponding to the playing state of the specified video in the reporting period.
Therefore, in the video playing process, if the dragging operation exists in the reporting period, the corresponding cycle timer destruction is generated at the moment of the dragging operation. Because the operation of preventing the browser from playing the specified video is generated in the timing process of the circular timer, the timing duration of the circular timer corresponding to the moment of generating the dragging operation is not counted in the video playing duration any more, namely the counting of the video playing duration is stopped. And when the playing is continued in the reporting period, the video playing time is counted continuously from the dragging ending moment based on the cycle timer. Therefore, in the process of counting the video playing time length, when the playing stopping operation exists, only the cyclic timer (for example, the cyclic timer of the 20 th second) which is not executed and completed at that time is destroyed, that is, the error of the video playing time length counting is at most the timing time length of the cyclic timer started at the 20 th second (for example, the timing time length of 1 second corresponding to the 19 th second to the 20 th second), so that the counting accuracy of the video playing time length can be ensured, and the accuracy of reporting the video playing time length to the server by the browser end is further ensured.
In some embodiments, when the browser plays the specified video, if any one of the play stopping operations exists in the same reporting period of the playing process, the loop timer corresponding to the play stopping operation time is not executed. Therefore, the circulation timer is destroyed, and the counting process of the video playing time length is suspended. And when the playing stopping operation is eliminated, restarting the cycle timer to start timing, and continuously executing the counting process of the video playing duration. In the process, the timing duration corresponding to the unexecuted cycle timer is eliminated, so that the finally counted video playing duration can be closer to the duration of the effective playing of the actual video, and the accuracy is good.
In some embodiments, when the video playing time length is counted in real time, the time length is compared with the reporting period time length of the time length reported to the server by the display device. If the current statistical video playing time reaches the reporting period time, the statistical video playing time can be reported to the server.
In some embodiments, the display device reports the video playing duration to the server once, i.e., completes one reporting period. And after the current reporting period is finished, counting the video playing time required by the next reporting period. Therefore, after the report of the display device is completed, the locally stored statistics of the video playing time length needs to be cleared, so that the video playing time length required by the next report period can be accurately accumulated again.
In some embodiments, after completing one reporting period, the controller is further configured to perform the following steps:
and step 51, emptying the statistics of the video playing time length locally cached by the display equipment after the display equipment reports the video playing time length to the server once.
And step 52, if the specified video is in the playing state at the time of time length reporting, restarting the corresponding cycle timer.
And step 53, counting the next video playing time corresponding to the playing state of the specified video in the next reporting period based on the restarting times of the cycle timer and the timing time of the cycle timer.
And step 54, reporting the next video playing time length of the specified video in the next reporting period to the server when the next video playing time length reaches the reporting period time length.
And emptying the statistic value of the video playing time length locally stored by the display equipment after the display equipment reports the video playing time length counted in the current reporting period to the server. The display equipment executes a reporting period according to the duration of the reporting period, and the video playing duration counted in real time is stored in the display equipment in advance in one reporting period so as to realize the non-real-time reporting method.
Therefore, after the current reporting period is completed, in order to ensure the accuracy of the statistics value of the video playing time required by the next reporting period, the locally cached video playing time is emptied, that is, the watchTime =0.
And the display equipment reports the video playing time length corresponding to the period to the server, wherein the time is the time length reporting time. And the display equipment reports the duration to the server at the duration reporting moment, and simultaneously carries out the statistics of the video playing duration required by the next reporting period.
When the video playing time required by the next reporting period is counted, since the video playing time is counted to be the effective video playing time in the playing state, it is necessary to determine whether the currently specified video is still in the playing state. The judgment method can be used for acquiring the playing state parameter of the browser, and if the playing state parameter is the playing parameter, the specified video is in the playing state; if the playing state parameter is the non-playing parameter, it indicates that the specified video is not in the playing state.
When the current video is in the playing state, the video playing duration of the next reporting period can be counted, so that the corresponding cycle timer is restarted. And when the cycle timer reaches the timing duration, executing a restarting action, and executing a counting process of the video playing duration.
And counting the playing time length of the next video corresponding to the playing state of the specified video in the next reporting period based on the restarting times of the circular timer and the timing time length of the circular timer. And reporting the next video playing time length of the appointed video to the server when the next video playing time length reaches the reporting period time length. The implementation process of counting the next video playing time required for the next reporting period and the reporting process may refer to the methods provided in the foregoing embodiments, and details are not repeated here.
In some embodiments, a browser in the display device is started, and when the user plays a specified video in the browser, the video play time duration watchTime =0 is set, and a short-time loop timer is set, for example, the time duration is 1 second. After the execution of the cycle timer is completed every 1 second, the video play time duration watchTime = watchTime +1 is calculated and accumulated. And if the user triggers pause or drag operation and the like to stop the playing process within 1 second, destroying the executing circular timer, and pausing the statistical video playing time. And after the user restarts playing, resetting a new cycle timer to continue counting the video playing time. After the video playing time length is accumulated to a certain value (reporting period time length, such as 30 seconds), a server interface is called to report the video playing time length, and the local statistic watchTime =0 is cleared. By the method, the operations of pause or drag of the user and the like are only destroyed, namely the 1 second timer which is not completed at the moment is not executed, namely the error of the video playing time length statistics is at most 1 second, and the statistical accuracy of the video playing time length is ensured as much as possible.
In some embodiments, in the method for reporting a video playing time length performed by a display device according to the foregoing embodiments, when a condition for triggering a reporting process is that a video playing time length is accumulated based on the starting times of a circular timer and a timing time length of the circular timer, the accumulated video playing time length is compared with a reporting period time length, and when a statistic of the video playing time length reaches the reporting period time length, a time length reporting process is performed once. Therefore, the method realizes the triggering of the reporting process based on the time length condition, and the statistical values of the video playing time lengths in each reporting period are the same.
In other embodiments, the video playing duration in the reporting period may also be represented by a statistical parameter, for example, the number of times that the loop timer is successfully started. Therefore, in order to count the successful times of starting the cycle timer, when the specified video starts to play, a reporting counter is synchronously started. The successful start of the cycle timer means that the cycle timer is executed completely, namely, the state of the timing duration is reached.
In some embodiments, when the reporting of the video playing time length in one reporting period is realized based on the starting times of the loop timer, the controller is further configured to perform the following steps:
step 61, when playing the appointed video, starting a reporting counter, wherein the reporting counter is used for counting the starting success times of the circular timer, and the initial starting time of the reporting timer is the same as the initial starting time of the circular timer;
and 62, when the starting success frequency of the circular timer reaches a preset reporting frequency, counting the video playing time of the specified video in the reporting period based on the total starting success frequency of the circular timer and the timing time of the circular timer, and reporting the video playing time of the specified video in the reporting period to a server.
In some embodiments, the reporting period in the foregoing embodiments is characterized by a reporting period duration, and the reporting process is triggered by determining the duration. In this embodiment, the reporting period is represented by a preset reporting number, and the reporting process is triggered by determining the number of successful starts.
The display equipment responds to a starting instruction of a user for playing a specified video, synchronously starts the cycle timer and the report counter while playing the specified video, and the report counter counts the starting success times of the cycle timer, namely, the cycle timer is restarted every time, and the counting value of the report counter is increased by 1. The number of times of successful start of the loop timer refers to the number of times of completion of the loop timer, that is, the number of times of reaching the time length.
In some embodiments, the reporting counter may be a count of the time successfully counted by the cycle timer, and the reporting counter increments by one count each time the cycle timer successfully completes counting. And reporting once when the count of the reporting counter meets a preset value. Equivalently, when the starting success frequency of the cycle timer counted by the reporting counter reaches the preset reporting frequency, triggering the time length reporting process of the display equipment, and at the moment, completing a reporting period.
When the display equipment reports the video playing time length, the video playing time length of the specified video in the reporting period is counted based on the starting success times of the circulation timer and the timing time length of the circulation timer, and the video playing time length of the specified video in the reporting period is reported to the server. The statistical method of the video playing time length and the reporting method of the video playing time length can refer to the contents provided in the foregoing embodiments, and are not described herein again.
For example, when the preset number of reporting times is set to 30, if the total number of successful start times counted by the reporting counter to the loop timer is 30, the one-time duration reporting process is triggered. If the timing duration of the circulation timer is 1 second, the browser is characterized to successfully play the specified video for 30 seconds, namely the user watches 30 seconds.
In some embodiments, the user may generate an abort playback operation for the specified video while the specified video is playing. When the pause playing operation is generated, the corresponding cycle timer is destroyed, and the counting process of the video playing time length is paused. Therefore, the actual time required for reporting the video playing time with the length of 30 seconds may be longer than the statistical 30-second timing.
For example, in the process of playing a designated video, the loop timer executes a restart action after the time duration is reached, and the number of successful times of starting the loop timer is counted by the report counter. If the number of successful starting times of the circular timer counted by the report counter is 19, the user generates the playing stopping operation; after 2 minutes, the user generates the continuous playing operation, and the reporting counter continuously counts the starting success times of the cycle timer. When the counted total starting success times reach the preset reporting times of 30 times, the video playing time is 30 seconds, but the actual system time spent is 30 seconds +2 minutes.
In some embodiments, if the user does not generate the pause operation for the specified video within one reporting period, the number of times of successful start of the counting loop timer of the reporting counter is the same as the preset reporting number, for example, 30 times.
In some embodiments, when the display device reports the time length to the server, the reporting may be further implemented based on a fixed time interval, that is, the display device reports the time length every reporting interval, that is, the time lengths of the reporting periods are the same. Since the playing suspension operation may be generated based on the specified video in each preset duration, that is, in each reporting period, the video playing durations corresponding to each reporting period are different. The preset interval duration is the time interval between two adjacent reporting periods on the system time level.
Therefore, when the report of the video playing time length in one report period is realized based on the preset interval time length, the controller is configured to execute the following steps:
step 71, when the specified video is played, starting a reporting counter and a cycle timer, executing a restart action after the cycle timer reaches the timing duration, wherein the reporting counter is used for counting the starting success times of the cycle timer, the timing duration of the cycle timer is less than a preset interval duration, and the preset interval duration refers to the interval duration of the video playing duration reported to the server by the display device once.
And step 72, starting timing from the video playing time, and acquiring the total successful starting times of the circular timer counted by the reporting counter in the reporting period when the reporting interval duration is reached.
And 73, counting the video playing time of the specified video in the reporting period of the time based on the total successful starting times of the circulation timer and the timing time of the circulation timer, and reporting the video playing time of the specified video in the reporting period of the time to a server.
And when the appointed video is played, synchronously starting a reporting counter and a cycle timer. In the video playing process, the cycle timer is restarted once every timing duration (1 second). The reporting counter counts the starting success times of the cycle timer, namely, the counting value of the reporting counter is added with 1 every time the cycle timer is restarted. The number of times of successful start of the loop timer refers to the number of times of completion of the loop timer, that is, the number of times of reaching the time length. The starting method and the timing process of the cycle timer can refer to the contents provided in the foregoing embodiments, and are not described herein again.
In some embodiments, the size of the statistical value of the video playing time length reported by the display device to the server in a reporting period is determined based on the number of successful times of starting the loop timer in the reporting interval time length at the system level. The display equipment sequentially reports the corresponding video playing time lengths to the server according to the reporting period, so that whether the time length from the video playing time to the current system time reaches the reporting interval time length is judged along with the lapse of the system time from the video playing time in one reporting period. When the reporting interval duration is reached, it is indicated that a reporting period has arrived, and the display device needs to report duration data to the server. Therefore, the total starting success times of the cycle timer counted by the reporting counter in the reporting period is obtained.
And counting the video playing time of the specified video in the reporting period of the time based on the total successful starting times of the circulation timer and the timing time of the circulation timer, and reporting the video playing time of the specified video in the reporting period of the time to a server. The statistical method of the video playing time length and the reporting method of the video playing time length can refer to the contents provided in the foregoing embodiments, and are not described herein again.
In some embodiments, the display device calls the server-side interface to perform a duration reporting process every 30 seconds, and then completes reporting of the corresponding video playing duration according to the number of times that the cyclic timer successfully times, for example, if the reporting interval duration of one reporting is 30 seconds, that is, the display device reports once every 30 seconds. And if the circulating timers are successfully timed within 30 seconds of the system time and the timing duration of the circulating timers is 1 second, reporting the video playing duration with the length of 30 seconds. That is, the total duration of the video playing duration that can be reported is equivalent to the reporting interval duration, that is, the ending time of the reporting period is the time when the video playing duration reaches the reporting interval duration.
And if the successful cycle timer counts 28 times within 30 seconds, reporting the video playing time length with the length of 28 seconds. The initial time of a reporting period is the time when the statistics of the video playing time length is started, the end time of a reporting period is the time when the video playing time length reaches the reporting interval time length, for example, every 30 seconds is a reporting period, and the process is repeated.
The method for reporting video playing time provided in any of the embodiments above can implement accurate statistics of video playing time generated when the browser plays the specified video, and thus can ensure that the display device can report the accurate video playing time to the server.
In some embodiments, a player is configured in the browser, and when the specified video is played, the player in the browser performs the playing action. Therefore, the video playing time counted by the application is the counted time of the player in the browser for executing the playing action.
In some embodiments, if a third-party player is configured in the browser and the built-in third-party player is called to play the specified video, the counted video playing time length is a counted time length of the third-party player in the browser to execute the playing action, and the corresponding counting and reporting method may be the content provided in the foregoing embodiments.
In some embodiments, during the playing of the video by the browser, the situation that the playing process is affected is not limited to the aforementioned situations of pause, drag, intermediate exit and re-entry, and may also include unexpected situations such as popup window. If the video playing is interrupted due to an accident while the video playing duration is counted, the pause logic is executed while the video playing duration is counted, as in the foregoing embodiments, steps 41 to 42 and related steps; if the video playing is not interrupted due to an accident, the video is still effectively played, and the process of counting the video playing time length is not influenced.
Therefore, according to the display device provided by the embodiment of the invention, when the specified video starts to be played, a cycle timer is synchronously started. And restarting after the circulation timer reaches the timing duration, and counting the video playing duration of the specified video in the playing state in the reporting period based on the starting times of the circulation timer in the reporting period and the timing duration of the circulation timer in the video playing process. And reporting the video playing time length statistic value meeting the time length of the reporting period to a server after the video playing time length meets the time length reporting condition, and finishing the time length data reporting of one reporting period. If the playing stopping operation exists in the video playing process, only the timer of 1 second which is not executed and completed at that time is destroyed, namely the error of the video playing time counting is at most the timing time (such as 1 second) of the circular timer, so that the counting accuracy of the video playing time can be ensured, and the accuracy of the browser end reporting the video playing time to the server is further ensured.
Fig. 5 illustrates a flow diagram of a method for reporting video play-out duration, in accordance with some embodiments. Referring to fig. 5, a method for reporting a video playing time according to an embodiment of the present invention is executed by a controller in a display device according to the foregoing embodiment, and includes:
s1, responding to a starting instruction for playing a specified video presented in a video playing page, playing the specified video, and starting a cycle timer, wherein the cycle timer executes a restart action after reaching a timing duration, the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to the maximum duration of one-time video playing duration reported by a display device to a server;
s2, in the playing process of the specified video, counting the video playing time of the specified video in the reporting period of the time based on the starting times of the circulation timer and the timing time of the circulation timer, wherein the video playing time is the time corresponding to the playing state of the specified video in the reporting period of the time;
and S3, reporting the video playing time length of the specified video to a server when the video playing time length counted in the reporting period reaches the reporting period time length.
In some embodiments of the present application, the method further comprises:
step 41, in the process of playing the specified video, receiving a play stopping operation generated on the specified video, stopping playing the specified video, stopping starting a corresponding loop timer at the start moment of stopping playing, and pausing and counting the video playing time;
and 42, receiving the continuous playing operation generated on the specified video, continuously playing the specified video, restarting the corresponding cycle timer at the stopping ending moment, and continuously counting the video playing time length based on the video playing time length counted before the stopping playing operation, wherein the stopping ending moment is the moment of generating the continuous playing operation.
In some embodiments of the present application, the counting, based on the starting times of the recurring timer and the timing duration of the recurring timer, the video playing duration of the specified video in the current reporting period includes:
step 21, in the process of playing the designated video, receiving a play stopping operation generated on the designated video, and counting a first video playing time length corresponding to the designated video in the playing state in the reporting period based on the starting times of the loop timer and the timing duration of the loop timer corresponding to the time interval between the video playing time and the start stopping time in the reporting period;
step 22, receiving the continuous playing operation generated on the specified video in the current reporting period, and counting the playing time length of the second video corresponding to the playing state of the specified video in the current reporting period based on the starting times of the cyclic timer and the timing time length of the cyclic timer from the ending time;
and step 23, calculating the sum of the first video playing duration and the second video playing duration as the video playing duration corresponding to the playing state of the specified video in the current reporting period.
As can be seen from the foregoing technical solutions, in the video playing time reporting method and the display device provided in the embodiments of the present invention, when starting to play the specified video, a circular timer is synchronously started. And in the video playing process, counting the video playing time length of the specified video in the playing state in the reporting period based on the starting times of the circulation timer in the reporting period and the timing time length of the circulation timer. And when the video playing time length meets the reporting period time length, reporting the corresponding video playing time length statistic value to a server, and finishing the reporting of the time length data of one reporting period. It can be seen that the video playing time reported by the application only counts the effective video playing time in the playing state, and the timing time of the cyclic timer is less than the reporting period time, if there is a play stopping operation in the video playing process, only the cyclic timer which is not completed at that time is destroyed, that is, the error of the video playing time statistics is at most the timing time of the cyclic timer, so that the statistical accuracy of the video playing time can be ensured, and the accuracy of the browser end reporting the video playing time to the server can be further ensured.
In a specific implementation, the present invention further provides a storage medium, where the storage medium may store a program, and the program may include some or all of the steps in each embodiment of the video playing time reporting method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of software products, which may be stored in storage media, such as ROM/RAM, magnetic disk, optical disk, and so on.
The same and similar parts in the various embodiments in this specification may be referred to each other. Particularly, for the embodiment of the video playing time length reporting method, since it is basically similar to the embodiment of the display device, the description is simple, and the relevant points can be referred to the description in the embodiment of the display device.
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.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, comprising:
a display configured to present a video playback page;
a controller connected with the display, the controller configured to:
responding to a starting instruction for playing the specified video presented in the video playing page, playing the specified video, and starting a cycle timer, wherein the cycle timer executes a restart action after reaching a timing duration, the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to the maximum duration of video playing duration reported once by a display device to a server;
in the playing process of the specified video, counting the video playing time of the specified video in the reporting period of this time based on the starting times of the circular timer and the timing time of the circular timer, wherein the video playing time refers to the time corresponding to the playing state of the specified video in the reporting period of this time;
and reporting the video playing time length of the specified video to a server when the video playing time length counted in the reporting period reaches the reporting period time length.
2. The display device of claim 1, wherein the controller is further configured to:
in the process of playing the appointed video, receiving playing stopping operation generated on the appointed video, stopping playing the appointed video, stopping starting a corresponding cycle timer at the starting moment of stopping playing, and pausing and counting the playing time length of the video;
receiving continuous playing operation generated on the specified video, continuously playing the specified video, restarting a corresponding cycle timer at the stopping ending moment, and continuously counting the video playing time length based on the video playing time length counted before the stopping playing operation, wherein the stopping ending moment is the moment of generating the continuous playing operation.
3. The display device according to claim 2, wherein the controller, in performing the counting of the video playing duration of the specified video in the current reporting period based on the starting times of the loop timer and the timing duration of the loop timer, is further configured to:
in the process of playing the appointed video, receiving play stopping operation generated on the appointed video, and counting the play duration of the first video corresponding to the play state of the appointed video in the reporting period based on the starting times of the circular timer and the timing duration of the circular timer corresponding to the time interval between the video play time and the play stopping starting time in the reporting period;
receiving continuous playing operation generated on the specified video in the current reporting period, and counting the playing time length of the second video corresponding to the playing state of the specified video in the current reporting period based on the starting times of the cyclic timer and the timing time length of the cyclic timer from the ending time;
and calculating the sum of the first video playing time length and the second video playing time length to be used as the video playing time length corresponding to the playing state of the specified video in the reporting period.
4. The display device according to claim 3, wherein the controller, when performing the counting of the video playing duration of the specified video in the current reporting period based on the starting times of the loop timer and the timing duration of the loop timer, is further configured to:
when the playing stopping operation generated in the playing process of the specified video is pause operation, receiving the pause operation generated on the specified video, and pausing the playing of the specified video;
stopping the starting action of the corresponding circular timer at the pause starting moment, and counting the first video playing time length of the specified video in the playing state in the reporting period based on the starting times of the circular timer and the timing time length of the circular timer, which correspond to the time interval between the video playing moment and the pause starting moment in the reporting period;
receiving continuous playing operation generated on the specified video in the current reporting period, continuously playing the specified video, starting the corresponding circular timer at the pause ending moment, and counting the playing duration of the second video corresponding to the specified video in the playing state in the current reporting period based on the starting times of the circular timer and the timing duration of the circular timer, wherein the pause ending moment is the moment of generating the continuous playing operation;
and taking the total duration of the first video playing duration and the second video playing duration as the video playing duration of the specified video in the reporting period.
5. The display device according to claim 3, wherein the controller, in performing the counting of the video playing time length of the specified video based on the number of times of starting the loop timer and the counted time length of the loop timer, is further configured to:
when the playing stopping operation generated in the playing process of the specified video is a dragging operation, receiving a dragging starting operation generated on the specified video, stopping the starting action of the corresponding cycle timer at the dragging starting time, and counting a first video playing time length corresponding to the playing state of the specified video in the reporting period based on the starting times of the cycle timer and the timing time length of the cycle timer, which correspond to the time interval between the video playing time and the dragging starting time in the reporting period;
receiving dragging ending operation generated on the specified video in the reporting period, starting the corresponding cycle timer at the dragging ending moment, and counting the playing time length of a second video corresponding to the playing state of the specified video in the reporting period based on the starting times of the cycle timer and the timing time length of the cycle timer;
and taking the total duration of the first video playing duration and the second video playing duration as the video playing duration of the specified video in the reporting period.
6. The display device of claim 1, wherein the controller is further configured to:
after the display equipment reports the video playing time length to the server once, clearing the statistics value of the video playing time length locally cached by the display equipment;
if the specified video is in a playing state at the time of time length reporting, restarting a corresponding cycle timer;
counting the playing time length of the next video corresponding to the designated video in the playing state in the next reporting period based on the restarting times of the circulation timer and the timing time length of the circulation timer;
and when the next video playing time reaches the reporting period time, reporting the next video playing time of the specified video in the next reporting period to a server.
7. The display device of claim 1, wherein the controller is further configured to:
starting a reporting counter when the specified video is played, wherein the reporting counter is used for counting the starting success times of the circular timer, and the initial starting time of the reporting timer is the same as the initial starting time of the circular timer;
when the starting success frequency of the circular timer reaches the preset reporting frequency, counting the video playing time of the specified video in the reporting period based on the total starting success frequency of the circular timer and the timing time of the circular timer, and reporting the video playing time of the specified video in the reporting period to a server.
8. A method for reporting video playing time length is characterized in that the method comprises the following steps:
responding to a starting instruction for playing a specified video presented in a video playing page, playing the specified video, starting a cycle timer, executing a restart action after the cycle timer reaches a timing duration, wherein the timing duration of the cycle timer is less than a reporting period duration, and the reporting period duration refers to a maximum duration of a video playing duration reported to a server by a display device;
in the playing process of the specified video, counting the video playing time of the specified video in the reporting period of this time based on the starting times of the circular timer and the timing time of the circular timer, wherein the video playing time refers to the time corresponding to the playing state of the specified video in the reporting period of this time;
and reporting the video playing time length of the specified video to a server when the video playing time length counted in the reporting period reaches the reporting period time length.
9. The method of claim 8, further comprising:
in the process of playing the appointed video, receiving an operation of stopping playing of the appointed video, stopping playing the appointed video, stopping starting a corresponding cycle timer at the starting moment of stopping playing, and pausing and counting the playing time length of the video;
receiving continuous playing operation generated on the specified video, continuously playing the specified video, restarting a corresponding cycle timer at the stopping ending moment, and continuously counting the video playing time length based on the video playing time length counted before the stopping playing operation, wherein the stopping ending moment is the moment of generating the continuous playing operation.
10. The method according to claim 9, wherein the counting the video playing duration of the specified video in the current reporting period based on the starting times of the loop timer and the timing duration of the loop timer comprises:
in the process of playing the appointed video, receiving play stopping operation generated on the appointed video, and counting the play duration of the first video corresponding to the play state of the appointed video in the reporting period based on the starting times of the circular timer and the timing duration of the circular timer corresponding to the time interval between the video play time and the play stopping starting time in the reporting period;
receiving continuous playing operation generated on the specified video in the current reporting period, and counting the playing time length of the second video corresponding to the playing state of the specified video in the current reporting period based on the starting times of the cyclic timer and the timing time length of the cyclic timer from the ending time;
and calculating the sum of the first video playing time length and the second video playing time length to be used as the video playing time length corresponding to the playing state of the specified video in the reporting period.
CN202111140026.2A 2021-09-28 2021-09-28 Video playing time reporting method and display device Pending CN115883929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111140026.2A CN115883929A (en) 2021-09-28 2021-09-28 Video playing time reporting method and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111140026.2A CN115883929A (en) 2021-09-28 2021-09-28 Video playing time reporting method and display device

Publications (1)

Publication Number Publication Date
CN115883929A true CN115883929A (en) 2023-03-31

Family

ID=85763235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111140026.2A Pending CN115883929A (en) 2021-09-28 2021-09-28 Video playing time reporting method and display device

Country Status (1)

Country Link
CN (1) CN115883929A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123647A (en) * 2007-09-13 2008-02-13 华为技术有限公司 A communication method, system and service control function entity
CN107071535A (en) * 2017-03-22 2017-08-18 百视通网络电视技术发展有限责任公司 The Android players and its automation check system and method downloaded based on multiple spot
US20170272685A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method for video playing and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123647A (en) * 2007-09-13 2008-02-13 华为技术有限公司 A communication method, system and service control function entity
US20170272685A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method for video playing and electronic device
CN107071535A (en) * 2017-03-22 2017-08-18 百视通网络电视技术发展有限责任公司 The Android players and its automation check system and method downloaded based on multiple spot

Similar Documents

Publication Publication Date Title
CN113507646B (en) Display equipment and browser multi-label page media resource playing method
CN113766324B (en) Video playing control method and device, computer equipment and storage medium
CN114302238B (en) Display method and display device for prompt information in sound box mode
CN113064645B (en) Startup interface control method and display device
CN113507638A (en) Display device and screen projection method
CN114296670A (en) Display equipment and control method for multi-equipment screen projection on same screen display
CN111447239A (en) Video stream playing control method, device and storage medium
CN114302201A (en) Method for automatically switching on and off screen in loudspeaker box mode, intelligent terminal and display device
WO2016086663A1 (en) Method and apparatus for switching applications, and intelligent set top box device
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
CN113342415B (en) Timed task execution method and display device
CN113453057A (en) Display device and playing progress control method
CN112954462A (en) Display device and control method of application running time
CN115883929A (en) Video playing time reporting method and display device
CN112860212A (en) Volume adjusting method and display device
CN113038210A (en) Double-screen synchronous playing method of video file and display equipment
CN112835506B (en) Display device and control method thereof
CN114007119A (en) Video playing method and display equipment
CN114445131A (en) Startup advertisement delivery method, startup advertisement playing method, display device and server
CN113596372A (en) Video file generation method and display device
CN114173195B (en) Display equipment and method for counting effective playing time of media assets
CN110248237B (en) Video playing method, device, equipment and storage medium
CN112817557A (en) Volume adjusting method based on multi-person gesture recognition and display device
WO2018154262A1 (en) User detection
CN113766327B (en) Display equipment state control method and display equipment

Legal Events

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