Screen projection duration statistical method and device, equipment, storage medium and product

By establishing a long link with the screen projection terminal on the video server and recording the heartbeat log, the problem of inaccurate screen projection time statistics in the existing technology is solved, and high-accurate screen projection time statistics are achieved, which is suitable for copyright settlement and other scenarios.

CN119012257APending Publication Date: 2024-11-22MIGU VIDEO TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410924918.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

It is difficult for the prior art to accurately count the duration of screen projection, especially in the cross-end behavior of users jumping from mobile terminals to TV terminals. The point burial method cannot effectively record continuous behavior, resulting in inaccurate statistics.

Method used

By establishing a long link with the screen projection terminal on the video server and recording the heartbeat log when the long link is alive, the heartbeat log is periodically recorded to obtain the screen projection time, and the accuracy of statistics is improved.

Benefits of technology

It realizes accurate statistics on the screen projection time, reduces the error rate, and can analyze the screen projection time data in real time and accurately, and is suitable for copyright settlement and other scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012257A_ABST
    Figure CN119012257A_ABST
Patent Text Reader

Abstract

The invention discloses a screen projection duration statistical method and device, equipment, a storage medium and a product, relates to the technical field of communication, and aims to improve the accuracy of the obtained screen projection duration. The method comprises the following steps: receiving a first request sent by a screen projection terminal; in response to the first request, establishing a long link with the screen projection terminal, and recording a heartbeat log under the condition that the long link survives; and obtaining the screen projection duration according to the heartbeat log. According to the embodiment of the invention, the accuracy of the obtained screen projection duration can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment, storage medium and product for counting screen projection duration. Background Art

[0002] There are two types of screen projection modes for mobile terminals: video projection and screen mirroring.

[0003] Video screen casting means that the user opens the video in the APP on the mobile terminal, clicks the video screen casting icon in the upper right corner of the playback screen, finds the TV end to be cast, and casts the video that was originally only viewable on the mobile terminal to the TV. During the video screen casting process, the video interface of the mobile terminal can be minimized or retreated to the background, and other operations can be performed on the mobile terminal, which will not affect the video playing on the TV.

[0004] The principle of video screen projection is that the mobile terminal and the TV are connected to the same local area network, and a channel is established through the screen projection protocol. When casting the screen, the mobile terminal sends the video address to the TV, and the TV starts playing after receiving the address. After casting the screen, the mobile terminal can control the progress and volume of the TV.

[0005] Analyzing the user's screen projection content and playback time is critical to portraying the user's profile. In the prior art, the user's behavior within the terminal can be completely recorded by using the tracking method. However, for screen projection playback, the user's cross-terminal behavior of jumping from the product terminal to the screen projection TV terminal causes the continuity of the behavior to be interrupted, and the tracking method cannot accurately count the screen projection time. Summary of the invention

[0006] The embodiments of the present application provide a method, device, equipment, storage medium and product for counting screen projection duration to improve the accuracy of the obtained screen projection duration.

[0007] In a first aspect, an embodiment of the present application provides a method for counting screen projection duration, which is applied to a video server, and includes:

[0008] Receive a first request sent by the screen projection terminal;

[0009] In response to the first request, establish a long link with the screen projection terminal, and record a heartbeat log if the long link survives;

[0010] According to the heartbeat log, the screen projection duration is obtained.

[0011] In a second aspect, an embodiment of the present application further provides a screen projection duration statistics device, which is applied to a video server, comprising:

[0012] A first receiving module, used to receive a first request sent by the screen projection terminal;

[0013] A first recording module, configured to establish a long link with the screen projection terminal in response to the first request, and record a heartbeat log when the long link survives;

[0014] The first processing module is used to obtain the screen projection duration according to the heartbeat log.

[0015] In a third aspect, an embodiment of the present application further provides a communication device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for counting screen projection duration as described above are implemented.

[0016] In a fourth aspect, an embodiment of the present application further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the screen projection duration statistics method as described above are implemented.

[0017] In a fifth aspect, an embodiment of the present application also provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the screen projection duration statistics method as described above.

[0018] In an embodiment of the present application, when a long link is established between the screen projection terminal and the video server, a heartbeat log can be recorded according to the first request of the screen projection terminal to obtain the screen projection duration according to the heartbeat log, thereby improving the accuracy of the screen projection duration statistics. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is one of the flow charts of the method for counting screen projection duration provided in an embodiment of the present application;

[0020] Figure 2 is a system schematic diagram of an embodiment of the present application;

[0021] Figure 3 This is the second flowchart of the method for counting screen projection duration provided in an embodiment of the present application;

[0022] Figure 4 It is a structural diagram of a screen projection duration statistics device provided in an embodiment of the present application;

[0023] Figure 5 It is a structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0025] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] See also Figure 1 , Figure 1 : is a flowchart of a method for counting screen projection duration provided in an embodiment of the present application, which is applied to a video server, such as Figure 1 As shown, the following steps are included:

[0028] Step 101: Receive a first request sent by a screen projection terminal.

[0029] Among them, the first request is used to establish a long link with the video server. The protocol for the projection terminal (such as a projection TV) to obtain videos from the video server (such as a content distribution network (Content Delivery Network, CDN) service) can be divided into two categories: obtaining video slices through short links and obtaining continuous streams through long links. In the case of a long link, the projection terminal initiates a long link to the CDN service, and the CDN service continuously returns video stream data to the TV player until the player finishes playing the video. Based on this, the long link can be understood as that through the initiated link, the video server continuously returns video stream data to the projection terminal until the player finishes playing the video.

[0030] The first request includes a user ID, a program ID and a play session ID. The play session ID is used to uniquely identify a play request. Two play requests from the same user correspond to two different session IDs. The program ID identifies the uniqueness of the video resource.

[0031] like Figure 2 As shown, the screen projection time statistics system of an embodiment of the present application may include a mobile terminal (such as a mobile phone), a screen projection terminal (such as a screen projection TV), and a video server (such as a CDN service).

[0032] Current low-latency live broadcast programs generally use the HTTP FLV (long link) protocol to transmit video data. In the screen projection scenario, after the screen projection terminal obtains the playback address, it establishes a long link with the video server, and the video server continuously sends live stream data to the screen projection terminal.

[0033] exist Figure 2In the process, the mobile terminal is used to send a screen projection request to the projection TV. The screen projection request includes the projection playback address and parameters: user ID (identification), program ID, and playback session ID.

[0034] After receiving the projection request, the projection TV obtains the projection playback address and parameters, and sends a video request to the video server, carrying the parameters in the request to establish a long link (for example, a long link can be established through the Hypertext Transfer Protocol (HTTP) Flash Video (FLV) protocol).

[0035] After the long link is successfully established, the video server sends a response message to the projection terminal, including an HTTP response header and FLV data. The audio and video data will be carried in the response message body, and the content-length in the HTTP response header will be set to empty. HTTP FLV utilizes an HTTP protocol agreement. If the content-length header field in the HTTP response header does not exist, indicating that the message body is of indefinite length, the requesting end will continue to receive data until the HTTP connection is disconnected. In other words, the projection TV receives the response and continues to receive data until the connection is disconnected. In this way, the projection TV will continue to receive the video stream from the video server.

[0036] Step 102: In response to the first request, establish a long link with the screen projection terminal, and record a heartbeat log when the long link survives.

[0037] The heartbeat log is used to count the duration of screen projection.

[0038] In this step, the video server responds to the first request, establishes a long link with the projection terminal, and creates a log thread, which includes a timer. Before sending the first response to the projection terminal, the log thread records the first heartbeat log, and periodically records subsequent heartbeat logs according to the timing duration of the timer; wherein the heartbeat log includes: user ID, program ID, playback session ID and timestamp.

[0039] That is to say, the first heartbeat log in the heartbeat log is recorded before the video server sends the first response to the projection terminal, and the subsequent heartbeat logs are recorded when the timer reaches the timer duration. For example, the first heartbeat log can be recorded when the video server puts the video stream data in the message body of the first response, or when the first response is generated.

[0040] When recording the heartbeat log when the timer's timing duration is reached, it is possible to first determine whether the long link is interrupted (e.g., whether the long link is alive, whether the link is maintained, etc.). If the long link is not interrupted, the subsequent heartbeat logs are periodically recorded according to the timer (recording the heartbeat log when the timer's timing duration is reached). Otherwise, the heartbeat log may not be recorded or the timer may be destroyed. For example, the video server may read the attribute of the long link used to indicate the connection status. If the attribute indicates that it is valid, it indicates that the long link is not terminated, otherwise it may indicate that the long link is terminated.

[0041] In this way, during a screen casting process, as long as the TV player maintains a long connection with the video server, it will record the heartbeat log, so that the screen casting time can be accurately counted.

[0042] Usually, there is a certain time between the occurrence time of the latest heartbeat log and the screen projection disconnection time, which may cause an error value of the screen projection duration, and the error value is greater than or equal to zero and less than the heartbeat cycle. Here, the timing duration of the timer (also called the heartbeat cycle) can be adjusted to reduce the error value by shortening the heartbeat cycle.

[0043] For example, if the user starts screen projection at 00:30:00 and ends at 00:35:40, the actual screen projection duration is 5 minutes and 40 seconds. Set the heartbeat cycle to 1 minute and 30 seconds respectively. The formula for the error rate is: Error rate = (actual screen projection duration - number of heartbeats * heartbeat cycle) / actual screen projection duration.

[0044] In the case of 1 minute, a heartbeat log is recorded every 1 minute. In the embodiment of the present application, a heartbeat log is recorded at 00:30:00, 00:31:00, 00:32:00, 00:33:00, 00:34:00, and 00:35:00. The earliest heartbeat log recording time is 00:30:00, and the latest heartbeat log is 00:35:00. The earliest heartbeat log time is subtracted from the latest heartbeat log time to obtain a screen projection duration of 5 minutes, which is 40 seconds less than the actual user screen projection duration. These 40 seconds are the error, and the error rate is 40 / (5*60+40)=11.8%.

[0045] When the heartbeat cycle is 30 seconds, a heartbeat log is recorded every 30 seconds, and a heartbeat log is recorded at 00:30:00, 00:30:30, 00:31:00, 00:31:30, 00:32:00, 00:32:30, 00:33:00, 00:33:30, 00:34:00, 00:34:30, 00:35:00, and 00:35:30. The earliest heartbeat log recording time is 00:30:00, and the latest heartbeat log is 00:35:30. The latest heartbeat log time is subtracted from the earliest heartbeat log time, and the screen projection time is 5 minutes and 30 seconds, which is 10 seconds less than the actual user screen projection time. These 10 seconds are the error, and the error rate is 10 / (5*60+40)=2.9%.

[0046] By comparison, it can be seen that the smaller the heartbeat cycle, the smaller the error rate. If you want to obtain data that is closer to the actual screen projection duration, you can do so by shortening the heartbeat cycle. In some copyright content cooperation, copyright settlement may be carried out through playback time to obtain a screen projection duration that is closer to the actual duration, which is helpful for copyright cooperation. Therefore, by shortening the heartbeat cycle, the error in screen projection duration can be reduced. For example, if the heartbeat cycle is set to 1 second, the error value of a single screen projection duration can be controlled within 1 second, thereby improving the statistical accuracy of screen projection duration.

[0047] Step 103: Obtain screen projection duration according to the heartbeat log.

[0048] In the embodiment of the present application, after recording the heartbeat log, the heartbeat log can be collected into a data warehouse to create a data table, wherein the data table may include the following fields: user ID, program ID, play session ID, timestamp. Here, the heartbeat log can be analyzed by means of a data warehouse script to obtain the projection duration in multiple dimensions.

[0049] For example, the heartbeat log can be grouped according to the playback session identifier; for one or more playback session identifier groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the playback session identifier group is used as the single screen projection duration corresponding to the playback session identifier group.

[0050] For another example, the heartbeat log is grouped according to the user ID and the playback session ID; for one or more groups, the difference between the latest timestamp and the earliest timestamp corresponding to different playback session IDs in the heartbeat log corresponding to the group is used as the single screen projection duration corresponding to the user ID.

[0051] For another example, the heartbeat log is grouped according to the user ID and the playback session ID; for one or more groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group is used to obtain the single screen projection duration corresponding to the user ID; according to the timestamp in the heartbeat log corresponding to the group, the single screen projection duration corresponding to the user ID in one or more days is accumulated to obtain the screen projection duration for one or more days corresponding to the user ID.

[0052] For another example, the heartbeat log is grouped according to the program ID and the playback session ID; for one or more groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group is used to obtain the single screen projection duration corresponding to the program ID; according to the timestamp in the heartbeat log, the single screen projection duration corresponding to the program ID in one or more days is accumulated to obtain the screen projection duration corresponding to the program ID for one or more days. In this way, it is possible to know which programs are more popular.

[0053] For another example, the heartbeat log is grouped according to the user ID, the play session ID, and the program ID; for one or more groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group is used to obtain the single screen projection duration corresponding to the program ID corresponding to the group; according to the user ID and the program ID, the single screen projection duration corresponding to the user ID and the program ID is accumulated to obtain the screen projection duration corresponding to the user ID and the program ID. In this way, the user's content preference can be learned.

[0054] By calculating the screen projection duration using the heartbeat log, you can accurately and real-time analyze the screen projection duration data before the screen projection is interrupted.

[0055] See also Figure 3 , Figure 3 : is a flowchart of the method for counting screen projection duration provided by an embodiment of the present application. Figure 3 As shown, the following steps are included:

[0056] Step 301: The mobile terminal sends a screen projection request to the screen projection TV. The screen projection request includes the screen projection playback address and parameters: user ID (identification), program ID, and playback session ID.

[0057] Step 302: After receiving the screen casting request, the screen casting TV obtains the screen casting playback address and parameters, and sends a video request to the video server. The video request carries parameters (user ID, program ID, playback session ID) to establish a long link.

[0058] Step 303: After the long link is successfully established, the video server sends a response message to the projection terminal, including an HTTP response header and FLV data. The audio and video data will be carried in the response message body, and the content-length in the HTTP response header will be set to empty. HTTP FLV utilizes an HTTP protocol agreement. If the content-length header field in the HTTP response header does not exist, it indicates that the message body is of indefinite length. The requesting end will continue to receive data until the HTTP connection is disconnected. The projection TV receives the response and continues to receive data until the connection is disconnected. In this way, the projection TV will continue to receive the video stream from the video server.

[0059] Step 304: The video server records the heartbeat log, obtains a log file, and counts the screen projection duration according to the log file. The video server records the heartbeat log in the same manner as described in the above embodiment.

[0060] From the above description, it can be seen that for the screen projection scenario, in the case of long link playback, by using the solution of the embodiment of the present application, the heartbeat log can be recorded when the long link is valid on the video server side, and the screen projection duration can be obtained by analyzing the heartbeat log.

[0061] See also Figure 4 , Figure 4 1 is a structural diagram of a screen projection duration statistics device provided in an embodiment of the present application, which is applied to a video server. Figure 4 As shown, the screen projection duration statistics device includes:

[0062] The first receiving module 401 is used to receive the first request sent by the screen projection terminal; the first recording module 402 is used to establish a long link with the screen projection terminal in response to the first request, and record a heartbeat log when the long link survives; the first processing module 403 is used to obtain the screen projection duration according to the heartbeat log.

[0063] Optionally, the first request includes a user identifier, a program identifier, and a play session identifier; and the first recording module 402 includes:

[0064] A first submodule is used to establish a long link with the screen projection terminal in response to the first request, and create a log thread, wherein the log thread includes a timer;

[0065] The second submodule is used for, before sending the first response to the projection terminal, the log thread records the first heartbeat log, and periodically records subsequent heartbeat logs according to the timing duration of the timer;

[0066] The heartbeat log includes: a user ID, a program ID, a play session ID and a timestamp.

[0067] Optionally, the device further comprises:

[0068] A first determination module, used to determine whether the long link is interrupted;

[0069] The second submodule is also used to periodically record subsequent heartbeat logs according to the timer if the long link is not interrupted.

[0070] Optionally, the device may further include:

[0071] The first adjustment module is used to adjust the timing duration of the timer.

[0072] Optionally, the first processing module 403 is also used to analyze the heartbeat log by means of a data warehouse script to obtain the screen projection duration in multiple dimensions.

[0073] Optionally, the first processing module 403 is further used for one or more of the following:

[0074] The heartbeat logs are grouped according to the playback session identifier; for one or more playback session identifier groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the playback session identifier group is used as the single screen projection duration corresponding to the playback session identifier group;

[0075] The heartbeat log is grouped according to the user identifier and the playback session identifier; for one or more groups, the difference between the latest timestamp and the earliest timestamp corresponding to different playback session identifiers in the heartbeat log corresponding to the group is used as the single screen projection duration corresponding to the user identifier;

[0076] The heartbeat log is grouped according to the user identifier and the playback session identifier; for one or more groups, the single screen projection duration corresponding to the user identifier is obtained by using the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group; according to the timestamp in the heartbeat log corresponding to the group, the single screen projection duration corresponding to the user identifier in one or more days is accumulated to obtain the screen projection duration of one or more days corresponding to the user identifier;

[0077] The heartbeat log is grouped according to the program identifier and the playback session identifier; for one or more groups, in the heartbeat log corresponding to the group, the difference between the latest timestamp and the earliest timestamp in the heartbeat log is used to obtain the single screen projection duration corresponding to the program identifier; according to the timestamp in the heartbeat log, the single screen projection duration corresponding to the program identifier in one or more days is accumulated to obtain the screen projection duration corresponding to the program identifier for one or more days;

[0078] The heartbeat log is grouped according to the user ID, the playback session ID and the program ID; for one or more groups, in the heartbeat log corresponding to the group, the difference between the latest timestamp and the earliest timestamp in the heartbeat log is used to obtain the single screen projection duration corresponding to the program ID corresponding to the group; according to the user ID and the program ID, the single screen projection duration corresponding to the user ID and the program ID is accumulated to obtain the screen projection duration corresponding to the user ID and the program ID.

[0079] The device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0080] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0082] See also Figure 5 An embodiment of the present application provides a communication device, including: a memory 501, a processor 502, and a program stored in the memory 501 and executable on the processor 502; the processor 502 is used to read the program in the memory 501 to implement the steps in the screen projection duration statistics method as described above.

[0083] The embodiment of the present application also provides a readable storage medium, on which a program is stored. When the program is executed by the processor, each process of the above-mentioned projection duration statistics method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0084] An embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned screen projection duration statistics method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.

[0085] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0087] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for counting screen projection duration. It is characterized in that include: Receive a first request sent by the screen projection terminal; In response to the first request, establish a long link with the screen projection terminal, and record a heartbeat log if the long link survives; According to the heartbeat log, the screen projection duration is obtained.

2. The method according to claim 1, It is characterized in that The first request includes a user identifier, a program identifier, and a play session identifier; The step of establishing a long link with the projection terminal in response to the first request, and recording a heartbeat log when the long link survives, includes: In response to the first request, establishing a long link with the screen projection terminal and creating a log thread, wherein the log thread includes a timer; Before sending the first response to the projection terminal, the log thread records the first heartbeat log, and periodically records subsequent heartbeat logs according to the timing duration of the timer; The heartbeat log includes: a user ID, a program ID, a play session ID and a timestamp.

3. The method according to claim 2, It is characterized in that Before periodically recording subsequent heartbeat logs according to the timing duration of the timer, the method further includes: Determining whether the long link is interrupted; The periodic recording of subsequent heartbeat logs according to the timer includes: If the long link is not interrupted, subsequent heartbeat logs are recorded periodically according to the timer.

4. The method according to claim 2 or 3, It is characterized in that The method further comprises: Adjust the timing duration of the timer.

5. The method according to claim 1, It is characterized in that The obtaining of the screen projection duration according to the heartbeat log includes: The heartbeat log is analyzed by means of a data warehouse script to obtain the screen projection duration in multiple dimensions.

6. The method according to claim 5, It is characterized in that The heartbeat log is analyzed by means of a data warehouse script to obtain screen projection duration in multiple dimensions, including one or more of the following: The heartbeat logs are grouped according to the playback session identifier; for one or more playback session identifier groups, the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the playback session identifier group is used as the single screen projection duration corresponding to the playback session identifier group; The heartbeat log is grouped according to the user identifier and the playback session identifier; for one or more groups, the difference between the latest timestamp and the earliest timestamp corresponding to different playback session identifiers in the heartbeat log corresponding to the group is used as the single screen projection duration corresponding to the user identifier; The heartbeat log is grouped according to the user identifier and the playback session identifier; for one or more groups, the single screen projection duration corresponding to the user identifier is obtained by using the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group; According to the timestamp in the heartbeat log corresponding to the group, the single screen projection duration corresponding to the user identifier in one or more days is accumulated to obtain the screen projection duration of one or more days corresponding to the user identifier; Grouping the heartbeat logs according to program identifiers and playback session identifiers; For one or more groups, in the heartbeat log corresponding to the group, the difference between the latest timestamp and the earliest timestamp in the heartbeat log is used to obtain the single screen projection duration corresponding to the program identifier; According to the timestamp in the heartbeat log, the single screen projection duration corresponding to the program identifier in one or more days is accumulated to obtain the screen projection duration corresponding to the program identifier for one or more days; The heartbeat logs are grouped according to user identifiers, play session identifiers, and program identifiers; For one or more groups, the single screen projection duration corresponding to the program identifier corresponding to the group is obtained by using the difference between the latest timestamp and the earliest timestamp in the heartbeat log corresponding to the group; According to the user identifier and the program identifier, the single screen projection durations corresponding to the user identifier and the program identifier are accumulated to obtain the screen projection durations corresponding to the user identifier and the program identifier.

7. A device for counting screen projection duration, It is characterized in that include: A first receiving module, used to receive a first request sent by the screen projection terminal; A first recording module, used to establish a long link with the screen projection terminal and record a heartbeat log when the long link survives; The first processing module is used to obtain the screen projection duration according to the heartbeat log.

8. A communication device, include: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is used to read the program in the memory to implement the steps in the screen projection duration statistics method as described in any one of claims 1 to 6.

9. A computer-readable storage medium for storing a program, It is characterized in that When the program is executed by the processor, the steps in the screen projection duration statistics method as described in any one of claims 1 to 6 are implemented.

10. A computer program product, It is characterized in that It includes computer instructions, which, when executed by a processor, implement the steps in the screen projection duration statistics method as described in any one of claims 1 to 6.