CN115022694A - Screen-casting time statistical method, device and system, background server and medium - Google Patents

Screen-casting time statistical method, device and system, background server and medium Download PDF

Info

Publication number
CN115022694A
CN115022694A CN202210742004.1A CN202210742004A CN115022694A CN 115022694 A CN115022694 A CN 115022694A CN 202210742004 A CN202210742004 A CN 202210742004A CN 115022694 A CN115022694 A CN 115022694A
Authority
CN
China
Prior art keywords
screen
screen projection
target
mobile terminal
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210742004.1A
Other languages
Chinese (zh)
Other versions
CN115022694B (en
Inventor
赵腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210742004.1A priority Critical patent/CN115022694B/en
Publication of CN115022694A publication Critical patent/CN115022694A/en
Application granted granted Critical
Publication of CN115022694B publication Critical patent/CN115022694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43078Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen for seamlessly watching content streams when changing device, e.g. when watching the same program sequentially on a TV and then on a tablet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The embodiment of the application provides a screen-projecting time statistical method, a device, a system, a background server and a medium, wherein the method comprises the following steps: receiving a video request sent by a screen-casting television, wherein the video request is sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request comprises a target screen-casting address and preset check parameters; sending the target video at the target screen projection address to the screen projection television so that the screen projection television plays the target video; recording the corresponding relation between the duration of the target video and a preset verification parameter; and determining the sum of all the recorded time lengths corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television. By applying the technical scheme provided by the embodiment of the application, the statistical accuracy of the screen projection time can be improved.

Description

Screen-casting time statistical method, device and system, background server and medium
Technical Field
The present application relates to the field of multi-screen interaction technologies, and in particular, to a method, an apparatus, a system, a backend server, and a medium for counting screen-casting time.
Background
With the development of the times, the wireless screen projection technology has become an indispensable ring in the life of people. In order to meet the requirements of service accounting and the like in the wireless screen projection technology, the time for playing the video by the screen projection television needs to be counted, namely the screen projection time needs to be counted.
At present, the statistical process of screen projection time includes: the method comprises the steps that a mobile terminal sends a screen projection request to a screen projection television, the screen projection television obtains a screen projection address of a video to be played from the screen projection request, and the video at the screen projection address is played; in the process of playing videos by the screen projection television, the mobile terminal acquires the video playing progress of the screen projection television in real time, and counts the screen projection time of the screen projection television based on the video playing progress.
In the method for counting the screen projecting time, the mobile terminal needs to be connected with the screen projecting television, so that the mobile terminal can obtain the video playing progress of the screen projecting television in real time, and the screen projecting time can be accurately counted. However, in the process of playing the video, due to user operation or network reasons, the connection between the mobile terminal and the screen-casting television is likely to be interrupted, and further, the error of the counted screen-casting time is larger.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a system, a background server and a medium for counting screen-projecting time, so as to improve the counting accuracy of the screen-projecting time. The specific technical scheme is as follows:
in a first aspect of the present application, a method for counting screen-projection time is first provided, where the method is applied to a background server, and the method includes:
receiving a video request sent by a screen-casting television, wherein the video request is sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request comprises a target screen-casting address and preset check parameters;
sending the target video at the target screen projection address to the screen projection television so that the screen projection television plays the target video;
recording the corresponding relation between the duration of the target video and the preset verification parameters;
and determining the sum of all the recorded time lengths corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television.
Optionally, the method further includes:
receiving a parameter request sent by the mobile terminal;
and sending the preset verification parameters to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameters in the screen projection request and sends the preset verification parameters to the screen projection television.
Optionally, the parameter request includes a user identifier, time information, and device information of the mobile terminal;
the step of sending the preset verification parameters to the mobile terminal according to the parameter request comprises the following steps:
generating the preset verification parameter by using the user identification, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
Optionally, the method further includes:
receiving an address request sent by a mobile terminal, wherein the address request comprises a user identifier, target authentication information and a target video identifier;
authenticating the mobile terminal based on the user identification and the target authentication information;
and under the condition that the authentication is successfully passed, sending a target screen projection address corresponding to the target video identification to the mobile terminal, so that the mobile terminal carries the target screen projection address in the screen projection request and sends the target screen projection address to the screen projection television.
Optionally, the number of the target screen projection addresses is multiple;
in the video request, each target screen projection address is spliced with the preset check parameter through a preset symbol.
In a second aspect of this application, a device for counting screen-projection time is further provided, where the device is applied to a background server, and the device includes:
the first receiving unit is used for receiving a video request sent by a screen-casting television, wherein the video request is sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request comprises a target screen-casting address and preset check parameters;
the first sending unit is used for sending the target video at the target screen projection address to the screen projection television so that the screen projection television can play the target video;
the recording unit is used for recording the corresponding relation between the duration of the target video and the preset verification parameters;
and the determining unit is used for determining the sum of all the recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television.
Optionally, the apparatus further comprises:
a second receiving unit, configured to receive a parameter request sent by the mobile terminal;
and the second sending unit is used for sending the preset verification parameters to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameters in the screen projection request and sends the preset verification parameters to the screen projection television.
Optionally, the parameter request includes a user identifier, time information, and device information of the mobile terminal;
the second sending unit is specifically configured to:
generating the preset verification parameter by using the user identification, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
Optionally, the apparatus further comprises:
a third receiving unit, configured to receive an address request sent by a mobile terminal, where the address request includes a user identifier, target authentication information, and a target video identifier;
the authentication unit is used for authenticating the mobile terminal based on the user identification and the target authentication information;
and the third sending unit is used for sending the target screen projection address corresponding to the target video identifier to the mobile terminal under the condition that the authentication is successfully passed, so that the mobile terminal carries the target screen projection address in the screen projection request and sends the target screen projection address to the screen projection television.
Optionally, the number of the target screen projection addresses is multiple;
in the video request, each target screen projection address is spliced with the preset check parameter through a preset symbol.
In a third aspect of the present application, a screen-projecting time statistics system is further provided, where the system includes a mobile terminal, a screen-projecting television and a background server;
the mobile terminal is used for sending a screen projection request to the screen projection television, and the screen projection request comprises a target screen projection address and preset verification parameters;
the screen projection television is used for acquiring a target screen projection address and preset verification parameters from the screen projection request and sending a video request to the background server, wherein the video request comprises the target screen projection address and the preset verification parameters;
the background server is used for sending a target video at the target screen projection address to the screen projection television and recording the corresponding relation between the duration of the target video and the preset verification parameter; determining the sum of all recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television;
the screen projection television is also used for playing the target video returned by the background server.
In a fourth aspect of the present application, there is further provided a backend server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the screen projection time statistical methods when executing the program stored in the memory.
In a fifth aspect implemented by the present application, there is further provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above-mentioned screen-shooting time statistical methods.
In a sixth aspect of this embodiment, there is also provided a computer program product containing instructions that, when executed on a computer, cause the computer to perform any of the above-described shot time statistical methods.
According to the technical scheme, the preset check parameters are distributed for the video projected by the screen projection television, the background server can associate the video with the screen projection television based on the preset check parameters, and then the duration of the video played by the screen projection television can be obtained through statistics based on the preset check parameters, so that the screen projection time of the screen projection television is obtained. Therefore, in the embodiment of the application, the statistics of the screen projecting time can be completed by the background server based on the preset verification parameters, and the mobile terminal is not required to be connected with the screen projecting television, so that the problem that the connection between the mobile terminal and the screen projecting television is interrupted due to user operation or network reasons and the like in the video playing process, and the error of the counted screen projecting time is large is solved, and the statistical precision of the screen projecting time is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic structural diagram of a screen-projection time statistic system according to an embodiment of the present application;
fig. 2 is a first flowchart of a screen-projection time statistical method according to an embodiment of the present disclosure;
fig. 3 is a second flowchart of a screen-projection time statistical method according to an embodiment of the present disclosure;
fig. 4 is a third flowchart illustrating a screen-projection time statistical method according to an embodiment of the present application;
fig. 5 is a fourth flowchart illustrating a screen-projection time statistical method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a screen projection time statistic apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a backend server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
With the development of the times, the wireless screen projection technology has become an indispensable ring in people's life. In order to meet the requirements of service accounting and the like in the wireless screen projection technology, the time for playing the video by the screen projection television needs to be counted, namely the screen projection time needs to be counted.
At present, in a screen projection time statistical method, a mobile terminal needs to be connected with a screen projection television, so that the mobile terminal can obtain a video playing progress of the screen projection television in real time, and accurate statistics of the screen projection time is realized. However, in the process of playing the video, due to user operation or network reasons, the connection between the mobile terminal and the screen-casting television is likely to be interrupted, and further, the error of the counted screen-casting time is large.
In order to solve the problem that the connection between a mobile terminal and a screen-projecting television is interrupted, which causes a large error of the counted screen-projecting time, and improve the statistical precision of the screen-projecting time, an embodiment of the present application provides a screen-projecting time statistical system, as shown in fig. 1, including: the system comprises a mobile terminal 11, a screen projection television 12 and a background server 13.
The mobile terminal 11 is configured to send a screen projection request to the screen projection television 12, where the screen projection request includes a target screen projection address and a preset verification parameter;
the screen projection television 12 is used for acquiring a target screen projection address and preset verification parameters from the screen projection request and sending a video request to the background server 13, wherein the video request comprises the target screen projection address and the preset verification parameters;
the background server 13 is used for sending a target video at a target screen projection address to the screen projection television 12 and recording the corresponding relation between the duration of the target video and a preset verification parameter; determining the sum of all the recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television 12;
and the screen projection television 12 is also used for playing the target video returned by the background server 13.
According to the technical scheme, the preset check parameters are distributed for the video projected by the screen projection television, the background server can associate the video with the screen projection television based on the preset check parameters, and then the duration of the video played by the screen projection television can be obtained through statistics based on the preset check parameters, so that the screen projection time of the screen projection television is obtained. Therefore, in the embodiment of the application, the statistics of the screen projecting time can be completed by the background server based on the preset verification parameters, and the mobile terminal is not required to be connected with the screen projecting television, so that the problem that the connection between the mobile terminal and the screen projecting television is interrupted due to user operation or network reasons and the like in the video playing process, and the error of the counted screen projecting time is large is solved, and the statistical precision of the screen projecting time is improved.
Based on the screen-projecting time statistical system shown in fig. 1, the embodiment of the present application provides a screen-projecting time statistical method, as shown in fig. 2, which is applied to the screen-projecting time statistical system, and includes the following steps.
Step S201, the mobile terminal 11 sends a screen-casting request to the screen-casting television 12, where the screen-casting request includes a target screen-casting address and a preset verification parameter.
In the embodiment of the present application, the mobile terminal 11 may be a device such as a mobile phone, a tablet Computer, or a PC (Personal Computer), which is not limited thereto. The target screen projection address is a screen projection address of a video to be played by the screen projection television, and the screen projection address can be represented by a URL (uniform resource locator) or other modes, and is not limited. During the process of the mobile terminal 11 projecting the video to the projection television 12, the number of the target projection addresses can be one or more. The preset verification parameters are verification parameters distributed by the background server for the video projected by the screen projection television. The preset verification parameters can be expressed by characters Qid, and in order to ensure the accuracy of the screen projection time obtained by statistics, the Qid has uniqueness.
In the process of projecting a video to the screen projecting television 12 by the mobile terminal 11, the mobile terminal may obtain screen projecting information corresponding to a video identifier (i.e., a target video identifier) to be projected from a background server, such as a screen projecting address list, preset verification parameters, the duration of the video at each screen projecting address, and the like, where the screen projecting address list may include one or more target screen projecting addresses; the mobile terminal 11 carries the acquired screen projection information such as the screen projection address list and the preset verification parameters in the screen projection request, and sends the screen projection request to the screen projection television 12.
In an embodiment of the present application, the mobile terminal 11 may encapsulate the screen-casting information in a specific file, carry the specific file in the screen-casting request, and send the screen-casting request to the screen-casting television 12 through a video transmission identifier setting command (such as setavransporturi command) in the screen-casting protocol. Thus, even if there are a plurality of target screen projection addresses, the screen projection television 12 can quickly and accurately acquire the target screen projection addresses.
The designated file may be an M3U8 file, or may be another file capable of encapsulating text data. The screen projection request may be implemented by using Simple Object Access Protocol (SOAP), that is, the screen projection request is a SOAP packet.
In order to enable the screen-casting television 12 to obtain the preset check parameters and enable the screen-casting television 12 to simultaneously send the preset check parameters and the target screen-casting addresses to the background server 13, each target screen-casting address is respectively spliced with the preset check parameters through preset symbols, and the preset characters can be & 'or'; "and the like.
For example, the mobile terminal 11 acquires the target screen casting address including the URL1 and the URL2, acquires the preset check parameter Qid1 and the preset symbol "&", and after the target screen casting address is spliced with the preset check parameter, adds Qid1, such as the URL1& Qid1 and the URL1& Qid1, behind each target screen casting address.
By splicing the target screen-casting address and the preset verification parameter in the above manner, the background server 13 can accurately associate the preset verification parameter with the video corresponding to the target screen-casting address, and complete accurate statistics of screen-casting time.
Step S202, the screen projection television 12 obtains a target screen projection address and a preset verification parameter from the screen projection request.
In the embodiment of the application, after receiving the screen-projecting request, the screen-projecting television 12 analyzes the screen-projecting request, and further obtains a target screen-projecting address and preset verification parameters from the screen-projecting request.
Optionally, the mobile terminal 11 encapsulates the screen projection information in a specified file, and sends the screen projection information to the screen projection television 12. In this case, the mobile terminal 11 parses the screen-casting request, obtains the specified file from the screen-casting request, and obtains the target screen-casting address and the preset verification parameter from the specified file.
In step S203, the screen-projecting tv 12 sends a video request to the background server 13, where the video request includes a target screen-projecting address and a preset verification parameter.
In this embodiment, the background server 13 may be a CDN (Content Delivery Network) server, and may also be another server storing a video directory, which is not limited to this.
After obtaining the target screen-casting address and the preset verification parameter, the screen-casting television 12 encapsulates the target screen-casting address and the preset verification parameter in the video request, and sends the video request to the background server 13.
When there are multiple target screen-casting addresses, the screen-casting television 12 may sequentially encapsulate the target screen-casting addresses in the video request according to the arrangement order of the target screen-casting addresses, and send the video request to the background server 13.
In step S204, the background server 13 receives the video request sent by the screen-casting television 12.
In the embodiment of the application, the background server 13 receives a video request sent by the screen-casting television 12, and analyzes the video request to obtain a target screen-casting address and preset verification parameters.
In step S205, the background server 13 sends the target video at the target screen projection address to the screen projection television 12, and records a corresponding relationship between the duration of the target video and a preset verification parameter.
In the embodiment of the acquiring application, after the background server 13 acquires the video request, the target screen projection address and the preset verification parameter are acquired from the video request, and then the video at the target screen projection address is acquired and is used as the target video, and the target video is sent to the screen projection television 12. In addition, the background server 13 records a screen-casting request behavior identifier corresponding to the screen-casting information and corresponding duration information, that is, records a corresponding relationship between the duration of the target video and a preset verification parameter.
The entire video that the screen-casting television 12 needs to cast to play consists of video at one or more screen-casting addresses. If the complete video is composed of videos at a plurality of screen-projecting addresses, in the process of playing the complete video by the screen-projecting television 12 through one screen projection, the background server 13 may record the corresponding relationship between the duration of each target video and the preset verification parameter according to the request time sequence of each target video.
For example, the preset verification parameter is Qid1, the duration of the target video 1 at the target screen-casting address URL1 is t1, and the duration of the target video 2 at the target screen-casting address URL2 is t 2. When the screen-casting television 12 requests the video at URL1 for a time T1, and then requests the video at URL2 for a time T2, the backend server 13 records: a screen casting request behavior identification Qid1: T1: T1, a screen casting request behavior identification Qid1: t2: T2.
In step S206, the screen-casting television 12 plays the target video returned by the background server 13.
In the embodiment of the application, the screen projection television 12 receives the target video returned by the background server 13, and plays the target video.
In step S207, the background server 13 determines the sum of all the recorded durations corresponding to the preset verification parameters, so as to obtain the screen-projecting time of the screen-projecting television.
In this embodiment, the background server 13 may call the recorded duration of the video corresponding to the preset verification parameter, and calculate the sum of the durations to obtain the screen projecting time of the screen projecting television 12.
According to the technical scheme, the preset check parameters are distributed for the video projected by the screen projection television, the background server can associate the video with the screen projection television based on the preset check parameters, and then the duration of the video played by the screen projection television can be counted based on the preset check parameters, so that the screen projection time of the screen projection television is obtained. Therefore, in the embodiment of the application, the statistics of the screen projecting time can be completed by the background server based on the preset verification parameters, and the mobile terminal is not required to be connected with the screen projecting television, so that the problem that the connection between the mobile terminal and the screen projecting television is interrupted due to user operation or network reasons and the like in the video playing process, and the error of the counted screen projecting time is large is solved, and the statistical precision of the screen projecting time is improved.
Based on the screen projection time statistical system shown in fig. 1, the embodiment of the present application further provides a screen projection time statistical method, as shown in fig. 3, the method applied to the screen projection time statistical system may include steps S301 to S309, where steps S303 to S309 are the same as steps S201 to S207.
In step S301, the mobile terminal 11 sends a parameter request to the backend server 13.
In the embodiment of the present application, the parameter request may include, but is not limited to, information such as a user identifier, time information, and device information of the mobile terminal 11. The time information may be a time for sending the parameter request, or a time for sending the parameter request for the first time within a preset statistical period, where the preset statistical period is a period for counting screen-projection time, and the preset statistical period may be 1 day, 1 week, 1 month, or the like, and is not limited thereto. The device information may include, but is not limited to, a Media Access Control (MAC) address, a CPU model, a memory model, and the like of the mobile terminal.
The mobile terminal 11 transmits a parameter request to the background server 13 before transmitting a screen projection request to the screen projection television 12.
Step S302, the background server 13 sends a preset verification parameter to the mobile terminal 11 according to the parameter request.
In the embodiment of the present application, the background server 13 obtains the preset verification parameter after receiving the parameter request, and sends the preset verification parameter to the mobile terminal 11.
In an alternative embodiment, the parameter request includes a user identification, time information and device information of the mobile terminal. The background server 13 may generate a preset check parameter by using the user identifier, the time information, and the device information of the mobile terminal 11, and send the preset check parameter to the mobile terminal 11. The generation algorithm of the preset check parameter may be a UUID (universal Unique Identifier) generation algorithm, or may be other algorithms, which is not limited herein.
In another optional embodiment, the backend server 13 may further configure a check parameter pool, where the check parameter pool includes a plurality of check parameters. After receiving the parameter request sent by the mobile terminal 11, the background server 13 may randomly select a calibration parameter from the calibration parameter pool as a preset calibration parameter, and send the preset calibration parameter to the mobile terminal 11.
In this embodiment of the application, the background server 13 may also obtain the preset verification parameter in other manners, which is not limited herein.
According to the technical scheme, the preset verification parameters related to the video which is projected at this time are obtained before the screen projection television 12 projects the screen playing video, so that the uniqueness of the preset verification parameters is improved, and the accuracy of screen projection time statistics is further improved.
Based on the screen-projecting time statistical system shown in fig. 1, an embodiment of the present application further provides a screen-projecting time statistical method, as shown in fig. 4, the method applied to the screen-projecting time statistical system may include steps S401 to S410, where steps S404 to S410 are the same as steps S201 to S207.
Step S401, the mobile terminal 11 sends an address request to the background server 13, where the address request includes the user identifier, the target authentication information, and the target video identifier.
In the embodiment of the present application, the target video identifier may include, but is not limited to, information such as a name and a number of a video to be screened, and this is not limited.
Before sending a screen projection request to the screen projection television 12, the mobile terminal 11 sends an address request to the background server 13 to obtain a screen projection address of a video needing screen projection. The background server 13 receives the address request sent by the mobile terminal 11.
Step S402, the background server 13 authenticates the mobile terminal 11 based on the user identifier and the target authentication information.
In the embodiment of the application, after receiving the address request, the background server 13 obtains the user identifier and the target authentication information from the address request, authenticates the mobile terminal 11 based on the user identifier and the target authentication information, and determines whether the mobile terminal 11 can access the background server 13. For example, the background server 13 obtains preset authentication information corresponding to the user identifier in the pre-stored address request, compares the preset authentication information with the target authentication information in the address request, and if the preset authentication information is matched with the target authentication information in the address request, it is determined that the authentication for the mobile terminal 11 is successfully passed, and the mobile terminal 11 can access the background server 13 and execute step S403; otherwise, it is determined that the authentication of the mobile terminal 11 fails and passes, and the mobile terminal 11 may not access the background server 13, and the processing flow is ended.
In step S403, the background server 13 sends a target screen-casting address corresponding to the target video identifier to the mobile terminal 11.
In the embodiment of the application, the background server 13 acquires the target screen-casting address corresponding to the target video identifier and sends the target screen-casting address corresponding to the target video identifier to the mobile terminal 11 when the authentication of the mobile terminal 11 is successfully passed. In this way, the mobile terminal 11 may obtain the target screen-casting address and package the target screen-casting address into a specified file (e.g., M3U8 file).
In the technical scheme provided by the embodiment of the application, when the mobile terminal 11 acquires the screen projecting address of the video, the background server 13 authenticates the mobile terminal 11 first, and only when the authentication is passed, the screen projecting address is fed back to the mobile terminal 11, so that the security of the background server 13 when being accessed by the mobile terminal 11 is enhanced, and the resource occupation by an illegal user can be effectively prevented.
Based on the above screen-throwing time statistical method, the embodiment of the present application further provides a screen-throwing time statistical method, which is applied to a background server in the above screen-throwing time statistical system, as shown in fig. 5, the method includes the following steps:
step S501, a video request sent by the screen-casting television is received, the video request is sent by the screen-casting television after receiving the screen-casting request sent by the mobile terminal, and the video request comprises a target screen-casting address and preset verification parameters.
And step S502, sending the target video at the target screen projection address to the screen projection television so that the screen projection television plays the target video.
Step S503, recording the corresponding relation between the duration of the target video and the preset verification parameter.
Step S504, determining the sum of all the recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television.
Optionally, the screen-projecting time statistical method may further include:
receiving a parameter request sent by a mobile terminal;
and sending a preset verification parameter to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameter in the screen projection request and sends the preset verification parameter to the screen projection television.
Optionally, the parameter request may include a user identifier, time information, and device information of the mobile terminal.
In this case, the step of sending the preset verification parameter to the mobile terminal according to the parameter request may include:
generating a preset verification parameter by using the user identifier, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
Optionally, the screen-projecting time statistical method may further include:
receiving an address request sent by a mobile terminal, wherein the address request comprises a user identifier, target authentication information and a target video identifier;
authenticating the mobile terminal based on the user identification and the target authentication information;
and under the condition that the authentication is successfully passed, sending a target screen casting address corresponding to the target video identifier to the mobile terminal, so that the mobile terminal carries the target screen casting address in the screen casting request and sends the screen casting request to the screen casting television.
Optionally, the number of the target screen projection addresses is multiple; in the video request, each target screen projection address is spliced with a preset check parameter through a preset symbol.
According to the technical scheme, the preset check parameters are distributed for the video projected by the screen projection television, the background server can associate the video with the screen projection television based on the preset check parameters, and then the duration of the video played by the screen projection television can be obtained through statistics based on the preset check parameters, so that the screen projection time of the screen projection television is obtained. Therefore, in the embodiment of the application, the statistics of the screen projecting time can be completed by the background server based on the preset verification parameters, and the mobile terminal is not required to be connected with the screen projecting television, so that the problem that the connection between the mobile terminal and the screen projecting television is interrupted due to user operation or network reasons and the like in the video playing process, and the error of the counted screen projecting time is large is solved, and the statistical precision of the screen projecting time is improved.
Based on the above screen-projecting time statistical method, an embodiment of the present application further provides a screen-projecting time statistical device, which is applied to a background server in the above screen-projecting time statistical system, as shown in fig. 6, and includes:
the first receiving unit 61 is configured to receive a video request sent by a screen-casting television, where the video request is a request sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request includes a target screen-casting address and a preset verification parameter;
the first sending unit 62 is configured to send the target video at the target screen-casting address to the screen-casting television, so that the screen-casting television plays the target video;
the recording unit 63 is configured to record a corresponding relationship between the duration of the target video and a preset verification parameter;
and the determining unit 64 is configured to determine a sum of all the recorded durations corresponding to the preset verification parameter, so as to obtain the screen projection time of the screen projection television.
Optionally, the screen-projecting time statistic device may further include:
the second receiving unit is used for receiving the parameter request sent by the mobile terminal;
and the second sending unit is used for sending the preset verification parameters to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameters in the screen projection request and sends the preset verification parameters to the screen projection television.
Optionally, the parameter request may include a user identifier, time information, and device information of the mobile terminal;
optionally, the second sending unit may be specifically configured to:
generating a preset verification parameter by using the user identifier, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
Optionally, the screen-projecting time statistic device may further include:
the third receiving unit is used for receiving an address request sent by the mobile terminal, wherein the address request comprises a user identifier, target authentication information and a target video identifier;
the authentication unit is used for authenticating the mobile terminal based on the user identification and the target authentication information;
and the third sending unit is used for sending the target screen-casting address corresponding to the target video identifier to the mobile terminal under the condition that the authentication is successfully passed, so that the mobile terminal carries the target screen-casting address in the screen-casting request and sends the screen-casting request to the screen-casting television.
Optionally, the number of the target screen projection addresses is multiple; in the video request, each target screen projection address is spliced with the preset check parameters through preset symbols.
According to the technical scheme, the preset check parameters are distributed for the video projected by the screen projection television, the background server can associate the video with the screen projection television based on the preset check parameters, and then the duration of the video played by the screen projection television can be counted based on the preset check parameters, so that the screen projection time of the screen projection television is obtained. Therefore, in the embodiment of the application, the statistics of the screen projecting time can be completed by the background server based on the preset verification parameters, and the mobile terminal is not required to be connected with the screen projecting television, so that the problem that the connection between the mobile terminal and the screen projecting television is interrupted due to user operation or network reasons and the like in the video playing process, and the error of the counted screen projecting time is large is solved, and the statistical precision of the screen projecting time is improved.
The embodiment of the present application further provides a background server, as shown in fig. 7, which includes a processor 71, a communication interface 72, a memory 73, and a communication bus 74, where the processor 71, the communication interface 72, and the memory 73 complete mutual communication through the communication bus 74,
a memory 73 for storing a computer program;
the processor 71 is configured to implement any of the above-described steps of the screen-shot time statistical method when executing the program stored in the memory 73.
The communication bus mentioned in the background server may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the background server and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the statistical method for screen projection time described in any of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the statistical method of screen shots described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, backend server, storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the system and method embodiments, and for relevant points, reference may be made to some descriptions of the system and method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (13)

1. A screen-projection time statistical method is applied to a background server, and comprises the following steps:
receiving a video request sent by a screen-casting television, wherein the video request is sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request comprises a target screen-casting address and preset check parameters;
sending the target video at the target screen projection address to the screen projection television so that the screen projection television plays the target video;
recording the corresponding relation between the duration of the target video and the preset verification parameters;
and determining the sum of all the recorded time lengths corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television.
2. The method of claim 1, further comprising:
receiving a parameter request sent by the mobile terminal;
and sending the preset verification parameters to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameters in the screen projection request and sends the preset verification parameters to the screen projection television.
3. The method of claim 2, wherein the parameter request includes a user identification, time information, and device information of the mobile terminal;
the step of sending the preset verification parameters to the mobile terminal according to the parameter request comprises the following steps:
generating the preset verification parameter by using the user identification, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
4. The method of claim 1, further comprising:
receiving an address request sent by a mobile terminal, wherein the address request comprises a user identifier, target authentication information and a target video identifier;
authenticating the mobile terminal based on the user identification and the target authentication information;
and under the condition that the authentication is successfully passed, sending a target screen projection address corresponding to the target video identifier to the mobile terminal, so that the mobile terminal carries the target screen projection address in the screen projection request and sends the screen projection request to the screen projection television.
5. The method of any one of claims 1-4, wherein the number of target screen-casting addresses is plural;
in the video request, each target screen projection address is spliced with the preset check parameter through a preset symbol.
6. A screen-projection time statistic device is applied to a background server, and the device comprises:
the first receiving unit is used for receiving a video request sent by a screen-casting television, wherein the video request is sent by the screen-casting television after receiving a screen-casting request sent by a mobile terminal, and the video request comprises a target screen-casting address and preset verification parameters;
the first sending unit is used for sending the target video at the target screen projection address to the screen projection television so that the screen projection television can play the target video;
the recording unit is used for recording the corresponding relation between the duration of the target video and the preset verification parameters;
and the determining unit is used for determining the sum of all the recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television.
7. The apparatus of claim 6, further comprising:
a second receiving unit, configured to receive a parameter request sent by the mobile terminal;
and the second sending unit is used for sending the preset verification parameters to the mobile terminal according to the parameter request, so that the mobile terminal carries the preset verification parameters in the screen projection request and sends the preset verification parameters to the screen projection television.
8. The apparatus of claim 7, wherein the parameter request comprises a user identifier, time information, and device information of the mobile terminal;
the second sending unit is specifically configured to:
generating the preset verification parameter by using the user identification, the time information and the equipment information of the mobile terminal;
and sending the preset verification parameters to the mobile terminal.
9. The apparatus of claim 6, further comprising:
a third receiving unit, configured to receive an address request sent by a mobile terminal, where the address request includes a user identifier, target authentication information, and a target video identifier;
the authentication unit is used for authenticating the mobile terminal based on the user identification and the target authentication information;
and the third sending unit is used for sending the target screen projection address corresponding to the target video identifier to the mobile terminal under the condition that the authentication is successfully passed, so that the mobile terminal carries the target screen projection address in the screen projection request and sends the target screen projection address to the screen projection television.
10. The device according to any one of claims 6-9, wherein the number of the target screen-casting addresses is multiple;
in the video request, each target screen projection address is spliced with the preset check parameter through a preset symbol.
11. A screen-casting time statistical system is characterized by comprising a mobile terminal, a screen-casting television and a background server;
the mobile terminal is used for sending a screen projection request to the screen projection television, and the screen projection request comprises a target screen projection address and preset verification parameters;
the screen projection television is used for acquiring a target screen projection address and preset verification parameters from the screen projection request and sending a video request to the background server, wherein the video request comprises the target screen projection address and the preset verification parameters;
the background server is used for sending a target video at the target screen projection address to the screen projection television and recording the corresponding relation between the duration of the target video and the preset verification parameter; determining the sum of all recorded duration corresponding to the preset verification parameters to obtain the screen projection time of the screen projection television;
the screen projection television is also used for playing the target video returned by the background server.
12. A background server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for completing the communication among the processors and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
13. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202210742004.1A 2022-06-27 2022-06-27 Screen time statistics method, device, system, background server and medium Active CN115022694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210742004.1A CN115022694B (en) 2022-06-27 2022-06-27 Screen time statistics method, device, system, background server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210742004.1A CN115022694B (en) 2022-06-27 2022-06-27 Screen time statistics method, device, system, background server and medium

Publications (2)

Publication Number Publication Date
CN115022694A true CN115022694A (en) 2022-09-06
CN115022694B CN115022694B (en) 2023-10-27

Family

ID=83076208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210742004.1A Active CN115022694B (en) 2022-06-27 2022-06-27 Screen time statistics method, device, system, background server and medium

Country Status (1)

Country Link
CN (1) CN115022694B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040060063A1 (en) * 2002-09-24 2004-03-25 Russ Samuel H. PVR channel and PVR IPG information
WO2014201876A1 (en) * 2013-06-17 2014-12-24 华为技术有限公司 Screen sharing method and relevant device, and communications system
CN105812943A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Video editing method and system
CN106060680A (en) * 2016-06-30 2016-10-26 北京奇艺世纪科技有限公司 Playing progress synchronization method and device
CN106454497A (en) * 2016-10-31 2017-02-22 乐视控股(北京)有限公司 Method and device for screen-mirroring playing of video
WO2017084265A1 (en) * 2015-11-16 2017-05-26 乐视控股(北京)有限公司 Cross-screen interaction method and device, server, and terminal device
CN107045508A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 The treating method and apparatus of application program
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
CN110891187A (en) * 2019-11-30 2020-03-17 广西广播电视信息网络股份有限公司 Program authorization control method of household intelligent terminal
WO2020168499A1 (en) * 2019-02-20 2020-08-27 深圳市鹰硕技术有限公司 Screen-sharing teaching method, apparatus and system, and smart device and storage medium
CN112261318A (en) * 2020-09-14 2021-01-22 西安万像电子科技有限公司 Multi-split-screen video synchronization method and device
WO2021185318A1 (en) * 2020-03-20 2021-09-23 海信视像科技股份有限公司 Multimedia device and screen projection playing method
WO2021223453A1 (en) * 2020-05-06 2021-11-11 上海幻电信息科技有限公司 Multi-screen interactive display method and apparatus
WO2022028561A1 (en) * 2020-08-06 2022-02-10 北京字节跳动网络技术有限公司 Video mirroring method and apparatus, and electronic device and storage medium
CN114071230A (en) * 2021-09-26 2022-02-18 深圳市酷开网络科技股份有限公司 Multi-terminal screen projection method, computer equipment and computer readable storage medium
CN114461164A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection eye protection method and device, screen projector and computer readable storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040060063A1 (en) * 2002-09-24 2004-03-25 Russ Samuel H. PVR channel and PVR IPG information
WO2014201876A1 (en) * 2013-06-17 2014-12-24 华为技术有限公司 Screen sharing method and relevant device, and communications system
WO2017084265A1 (en) * 2015-11-16 2017-05-26 乐视控股(北京)有限公司 Cross-screen interaction method and device, server, and terminal device
CN107045508A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 The treating method and apparatus of application program
CN105812943A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Video editing method and system
CN106060680A (en) * 2016-06-30 2016-10-26 北京奇艺世纪科技有限公司 Playing progress synchronization method and device
CN106454497A (en) * 2016-10-31 2017-02-22 乐视控股(北京)有限公司 Method and device for screen-mirroring playing of video
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
WO2020168499A1 (en) * 2019-02-20 2020-08-27 深圳市鹰硕技术有限公司 Screen-sharing teaching method, apparatus and system, and smart device and storage medium
CN110891187A (en) * 2019-11-30 2020-03-17 广西广播电视信息网络股份有限公司 Program authorization control method of household intelligent terminal
WO2021185318A1 (en) * 2020-03-20 2021-09-23 海信视像科技股份有限公司 Multimedia device and screen projection playing method
WO2021223453A1 (en) * 2020-05-06 2021-11-11 上海幻电信息科技有限公司 Multi-screen interactive display method and apparatus
WO2022028561A1 (en) * 2020-08-06 2022-02-10 北京字节跳动网络技术有限公司 Video mirroring method and apparatus, and electronic device and storage medium
CN112261318A (en) * 2020-09-14 2021-01-22 西安万像电子科技有限公司 Multi-split-screen video synchronization method and device
CN114071230A (en) * 2021-09-26 2022-02-18 深圳市酷开网络科技股份有限公司 Multi-terminal screen projection method, computer equipment and computer readable storage medium
CN114461164A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection eye protection method and device, screen projector and computer readable storage medium

Also Published As

Publication number Publication date
CN115022694B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN109787991B (en) Secret-free login method, device, equipment and storage medium based on mobile terminal
EP3013086B1 (en) Method, apparatus and electronic device for connection management
CN104837035B (en) A kind of video broadcasting method and terminal
US20160285781A1 (en) Data processing method, apparatus, client, server and system
CN107196909B (en) Invitation registration method and device
CN113709530B (en) Resource downloading method, system, electronic equipment and storage medium
CN110213671B (en) Hotspot short video determination method and device
CN112584200A (en) Screen projection method and system, electronic equipment and storage medium
CN109951291B (en) Content sharing method and device based on trusted execution environment and multimedia equipment
EP3079329B1 (en) Terminal application registration method, device and system
CN112950289A (en) Advertisement putting processing method and device, electronic equipment and readable storage medium
CN112804574A (en) Multimedia content transmission and playing method and device
CN115022694B (en) Screen time statistics method, device, system, background server and medium
CN117251837A (en) System access method and device, electronic equipment and storage medium
WO2023202214A1 (en) Communication method, apparatus and system, terminal, and server
CN108965939B (en) Media data processing method, device and system and readable storage medium
CN114172716A (en) Login method, login device, electronic equipment and storage medium
CN114172713A (en) Login method, login device, electronic equipment and storage medium
US10742802B2 (en) Methods and devices for verifying a communication number
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
WO2020238971A1 (en) File sharing method, apparatus and system, server, terminal, and storage medium
KR20220118143A (en) Method of provding contents and terminal device
CN108135000B (en) Authentication method and equipment
CN114422831B (en) Media playing method and device, electronic equipment and readable storage medium
CN114157483B (en) Login method, login device, electronic equipment and storage medium

Legal Events

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