CN113068061A - Live broadcast time length determining method and device, storage medium and electronic equipment - Google Patents

Live broadcast time length determining method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113068061A
CN113068061A CN202110357464.8A CN202110357464A CN113068061A CN 113068061 A CN113068061 A CN 113068061A CN 202110357464 A CN202110357464 A CN 202110357464A CN 113068061 A CN113068061 A CN 113068061A
Authority
CN
China
Prior art keywords
time
client
live broadcast
record
entry
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
CN202110357464.8A
Other languages
Chinese (zh)
Other versions
CN113068061B (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.)
Tianjiu Sharing Network Technology Group Co ltd
Original Assignee
Tianjiu Sharing Network Technology Group 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 Tianjiu Sharing Network Technology Group Co ltd filed Critical Tianjiu Sharing Network Technology Group Co ltd
Priority to CN202110357464.8A priority Critical patent/CN113068061B/en
Publication of CN113068061A publication Critical patent/CN113068061A/en
Application granted granted Critical
Publication of CN113068061B publication Critical patent/CN113068061B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a method, an apparatus, a storage medium, and an electronic device for determining a live broadcast duration, and relates to the technical field of electronic information processing, where the method is applied to a service server and includes: and receiving a flow interruption callback request sent by the streaming media server, wherein the flow interruption callback request is sent when the streaming media server detects that the link between the streaming media server and the target client is abnormal. And determining the flow interruption time according to the flow interruption callback request. And searching a target access record corresponding to a target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the start time of the access record corresponding to the client is the time when the client enters the live broadcast room. And if the end time included by the target access record is empty, modifying the end time included by the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record.

Description

Live broadcast time length determining method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic information processing technologies, and in particular, to a method and an apparatus for determining a live broadcast time length, a storage medium, and an electronic device.
Background
With the continuous development of electronic information technology, live webcasting is widely applied in various industrial fields. For a platform providing live webcasting, it is common to charge a fee according to the duration of the live webcasting used by the client. However, due to the conditions of unstable network or abnormal client, the client may exit the live broadcast room abnormally. For the client which is abnormally quitted, the platform cannot know when the client quits the live broadcast room, and there are two processing modes generally, one is to ignore the service time of the client, and the other is to consider that the client quits the live broadcast room when the live broadcast room ends. Neither of these two methods can accurately count the usage duration of the client.
Disclosure of Invention
The present disclosure aims to provide a method, an apparatus, a storage medium, and an electronic device for determining a live broadcast duration, which are used to solve the related technical problems in the prior art.
In order to achieve the above object, according to a first aspect of the embodiments of the present disclosure, a method for determining a live broadcast duration is provided, where the method is applied to a service end, and the method includes:
receiving a flow interruption callback request sent by a streaming media server, wherein the flow interruption callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is used for providing streaming media service for the live broadcast room;
determining the current interruption time according to the current interruption callback request;
searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the access record corresponding to the client comprises the starting time of the client entering the live broadcast room;
and if the end time included by the target access record is empty, modifying the end time included by the target access record into the current breaking time, and determining the live broadcast time length of the target client according to the modified target access record.
Optionally, the determining a blanking time according to the blanking callback request includes:
if the cutoff callback request comprises abnormal time, taking the abnormal time as the cutoff time, wherein the abnormal time is the time when the link between the streaming media server and a target client side is detected to be abnormal;
and if the interruption callback request does not comprise the abnormal time, taking the time of receiving the interruption callback request as the interruption time.
Optionally, the searching for the target access record corresponding to the target client in the access record table corresponding to the live broadcast room includes:
if a plurality of target access records corresponding to the target client exist in the access record table, taking the latest target access record with the latest starting time as the latest target access record;
if the end time included in the target access record is empty, modifying the end time included in the target access record into the current breaking time, and determining the live broadcast time length of the target client according to the modified target access record, including:
if the end time included in the latest target access record is empty, the end time included in the latest target access record is modified into the flow break time;
and determining the live broadcast time length of the target client according to other target access records and the modified latest target access record, wherein the other target access records are target access records except the latest target access record in the plurality of target access records.
Optionally, the method further comprises:
in response to the fact that a first client enters the live broadcast room at the first time, searching whether a first entrance record corresponding to the first client exists in the entrance record table or not;
generating a second entry-exit record corresponding to the first client in the entry-exit record table, wherein the start time of the second entry-exit record is the first time;
if the first entry and exit record exists in the entry and exit record table and the end time included in the first entry and exit record is empty, the end time included in the first entry and exit record is modified into the first time.
Optionally, the method further comprises:
marking the modified target access record as a first state;
marking the modified first entry and exit record as a second state;
responding to an end instruction aiming at the live broadcast room, traversing each entry and exit record in the entry and exit record table, if an abnormal entry and exit record with empty end time exists, modifying the end time included by the abnormal entry and exit record into the current time, and marking the abnormal entry and exit record into a third state;
and determining the total live broadcast time length of the live broadcast room according to all the access records in the access record table.
Optionally, the method further comprises:
in response to the fact that a second client exits from the live broadcast room at a second time, whether a third entrance record corresponding to the second client exists is searched in the entrance record table, wherein the second client is any client in the live broadcast room;
if the third entry-exit record exists in the entry-exit record table, the end time included in the third entry-exit record is empty, and the third entry-exit record is in a fourth state, the end time included in the third entry-exit record is modified into the second time, and the fourth state is different from the first state, the second state and the third state;
if the third entry-exit record exists in the entry-exit record table and the third entry-exit record is in the first state, the second state or the third state, modifying the end time included in the third entry-exit record to the second time;
and determining the live broadcast time length of the second client according to the modified third entry-exit record.
Optionally, the method further comprises:
and responding to an ending instruction aiming at the live broadcast room, and modifying the empty ending time in the access record table into the time for detecting the ending instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for determining a live broadcast duration, which is applied to a service end, the device including:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a flow break callback request sent by a streaming media server, the flow break callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is used for providing streaming media service for the live broadcast room;
the determining module is used for determining the flow break time according to the flow break callback request;
the searching module is used for searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the start time of the access record corresponding to the client is the time when the client enters the live broadcast room;
and the processing module is used for modifying the end time included by the target access record into the current breaking time if the end time included by the target access record is empty, and determining the live broadcast time of the target client according to the modified target access record.
Optionally, the determining module is configured to:
if the cutoff callback request comprises abnormal time, taking the abnormal time as the cutoff time, wherein the abnormal time is the time when the link between the streaming media server and a target client side is detected to be abnormal;
and if the interruption callback request does not comprise the abnormal time, taking the time of receiving the interruption callback request as the interruption time.
Optionally, the lookup module is configured to:
if a plurality of target access records corresponding to the target client exist in the access record table, taking the latest target access record with the latest starting time as the latest target access record;
the processing module comprises:
a modification submodule, configured to modify an end time included in the latest target entry-exit record to the current-cutoff time if the end time included in the latest target entry-exit record is empty;
and the processing sub-module is used for determining the live broadcast time length of the target client according to other target access records and the modified latest target access record, wherein the other target access records are target access records except the latest target access record in the plurality of target access records.
Optionally, the lookup module is further configured to:
in response to the fact that a first client enters the live broadcast room at the first time, searching whether a first entrance record corresponding to the first client exists in the entrance record table or not;
the processing module is further configured to:
generating a second entry-exit record corresponding to the first client in the entry-exit record table, wherein the start time of the second entry-exit record is the first time;
if the first entry and exit record exists in the entry and exit record table and the end time included in the first entry and exit record is empty, the end time included in the first entry and exit record is modified into the first time.
Optionally, the processing module is further configured to:
marking the modified target access record as a first state;
marking the modified first entry and exit record as a second state;
responding to an end instruction aiming at the live broadcast room, traversing each entry and exit record in the entry and exit record table, if an abnormal entry and exit record with empty end time exists, modifying the end time included by the abnormal entry and exit record into the current time, and marking the abnormal entry and exit record into a third state;
and determining the total live broadcast time length of the live broadcast room according to all the access records in the access record table.
Optionally, the lookup module is further configured to:
in response to the fact that a second client exits from the live broadcast room at a second time, whether a third entrance record corresponding to the second client exists is searched in the entrance record table, wherein the second client is any client in the live broadcast room;
the processing module is further configured to:
if the third entry-exit record exists in the entry-exit record table, the end time included in the third entry-exit record is empty, and the third entry-exit record is in a fourth state, the end time included in the third entry-exit record is modified into the second time, and the fourth state is different from the first state, the second state and the third state;
if the third entry-exit record exists in the entry-exit record table and the third entry-exit record is in the first state, the second state or the third state, modifying the end time included in the third entry-exit record to the second time;
and determining the live broadcast time length of the second client according to the modified third entry-exit record.
Optionally, the processing module is further configured to:
and responding to an ending instruction aiming at the live broadcast room, and modifying the empty ending time in the access record table into the time for detecting the ending instruction.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect of embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the first aspect of an embodiment of the disclosure.
Through the technical scheme, the service end firstly receives a cut-off callback request sent by the streaming media service end under the condition that the link between the streaming media service end and a target client is detected to be abnormal, wherein the target client is any client in a live broadcast room. And then, according to the cut-off callback request, determining cut-off time, and searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises access records generated when each client enters the live broadcast room. And if the end time included by the target access record is empty, modifying the end time included by the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record. According to the method and the device, when the streaming media server detects that the link between the streaming media server and the target client is abnormal, the streaming media server sends the cut-off callback request to the service server, and the service server can determine the time when the target client abnormally exits the live broadcast room according to the cut-off callback request, so that the target access record corresponding to the target client is modified, and the live broadcast time of the client which abnormally exits the live broadcast room can be accurately determined.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic deployment diagram of a live system, shown in accordance with an example embodiment;
FIG. 2 is a flow diagram illustrating a method for determining a live time duration in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
FIG. 5 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
FIG. 7 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
FIG. 8 is a flow diagram illustrating another method of determining a live time duration in accordance with an exemplary embodiment;
fig. 9 is a block diagram illustrating an apparatus for determining a duration of a live broadcast in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating another apparatus for determining a live time duration according to an example embodiment;
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before introducing the method, the apparatus, the storage medium, and the electronic device for determining a live broadcast duration provided by the present disclosure, an application scenario related to each embodiment in the present disclosure is first introduced, where the application scenario may be a live broadcast system, and the deployment of the live broadcast system may be as shown in fig. 1, and may include: the system comprises a business server, a streaming media server and a plurality of clients. Each client is provided with live broadcast software, a user can use the live broadcast software to communicate with a service end and a streaming media service end through a network, the service end provides service (such as charging service, payment service, password service, login service and the like) for the live broadcast software, the streaming media service end provides streaming media service (such as voice transmission, video transmission and the like) for the live broadcast software, and the service end and the streaming media service end can be understood as a live broadcast platform. The client may be a mobile terminal such as a smart phone, a tablet computer, a smart television, a smart watch, a PDA (Personal Digital Assistant, chinese), a portable computer, or a fixed terminal such as a Digital TV and a desktop computer. The service server and the streaming media server can be deployed on a local server or a cloud server. It should be noted that the service server and the streaming media server are only used to limit different services provided for live broadcast software, and the service server and the streaming media server may be deployed on the same server or on different servers, for example, live broadcast software may use a streaming media server provided by a third party.
Fig. 2 is a flowchart illustrating a method for determining a live broadcast duration according to an exemplary embodiment, where as shown in fig. 2, the method, applied to a service end, may include the following steps:
step 101, receiving a flow interruption callback request sent by a streaming media server, where the flow interruption callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is used for providing streaming media service for the live broadcast room.
For example, a user may enter a live room through live software installed on a client. One or more clients may be included in the live room. The business server maintains an access record table for the live broadcast room, when each client enters the live broadcast room, an access record corresponding to the client is newly added in the access record table, the access record comprises a start time and an end time, wherein the start time is the time when the client enters the live broadcast room (which can be understood as the time when the client establishes a link with the streaming media server), the end time is empty when the client enters the live broadcast room, and when the client exits the live broadcast room, the time is recorded as the time when the client exits the live broadcast room. Therefore, the service server can count the time length of each client using the live broadcast room according to the access record table, namely the live broadcast time length of each client. However, due to the situations of network instability, client abnormality (for example, system crash of the client, the client cleaning up the process of the live broadcast software in the background, etc.), etc., it may cause the client to abnormally disconnect from the streaming server or the service server, that is, the client abnormally exits from the live broadcast room, that is, the service server considers that the client is in the live broadcast room at this time, but actually the link between the client and the streaming server is disconnected. For the client that exits abnormally, the service server cannot know when the client exits the live broadcast room, so that the live broadcast duration of the client in the live broadcast room (i.e., the duration of the client using the live broadcast service) cannot be accurately counted, and thus charging cannot be performed according to the live broadcast duration of the client.
If the client is in the live broadcast room, a link is established between the client and the streaming media server, and data transmission is performed between the client and the streaming media server through the link (for example, the client uploads audio and video data to the streaming media server, or the streaming media server sends audio and video data uploaded by other clients in the live broadcast room to the client, etc.). If the client abnormally exits the live broadcast room, the link between the client and the streaming media server is abnormal, so that whether the client abnormally exits can be detected through whether the link between the client and the streaming media server is abnormal. The link between the client and the streaming media server is abnormal, and may be the case that no data transmission is available within a preset time (for example, 1min), or the link is disconnected. When detecting that the link between the streaming media server and the target client is abnormal, the streaming media server sends a flow interruption callback request to the service server, wherein the number of the target clients can be one or more. The blackout callback request may include an identification of the target client (e.g., userId) and may also include an identification of the live room. It will be appreciated that the blackout callback request can indicate that the target client has exited the live room abnormally. After receiving the cut-off callback request, the service server can know that the target client abnormally exits the live broadcast room.
It should be noted that, in the live broadcast system, a plurality of live broadcast rooms may exist at the same time, one live broadcast room may be understood as a live broadcast conference, each live broadcast room corresponds to a room ID (which may also be understood as a conference ID of the live broadcast conference) that can uniquely identify the live broadcast room, and the live broadcast room in the embodiment of the present disclosure may be any live broadcast room in the live broadcast system.
And step 102, determining the flow break time according to the flow break callback request.
For example, the service end may determine the cut-off time according to the cut-off callback request, where the cut-off time may be understood as the time when the target client exits the live broadcast room, which is determined by the service end according to the cut-off callback request. Specifically, the interruption callback request may directly carry a time when the streaming media server detects that the link with the target client is abnormal, and then the service server may directly use the time as the interruption time. The flow interruption callback request may also carry a timestamp for sending the flow interruption callback request, and the service server may determine the flow interruption time according to the timestamp. The service end can also use the time of receiving the cut-off callback request as the cut-off time.
Step 103, searching a target access record corresponding to a target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the start time of the access record corresponding to the client is the time when the client enters the live broadcast room.
And step 104, if the end time included in the target access record is empty, modifying the end time included in the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record.
For example, after determining that the target client abnormally exits the live broadcast room, the service server may search for a target entry and exit record corresponding to the target client in the maintained entry and exit record table. Wherein, each entry and exit record recorded in the entry and exit record table at least comprises three fields: the client comprises an identification of the client, a starting time and an ending time, wherein the identification of the client is used for indicating the client corresponding to the access record, the starting time is used for recording the time when the corresponding client enters the live broadcast room, and the ending time is used for recording the time when the corresponding client exits the live broadcast room. In general, since the service server cannot know when the target client exits the live broadcast room, the end time may be empty in the entry and exit record corresponding to the target client.
Therefore, the target access record can be searched in the access record table according to the identification of the target client. And then judging whether the end time included by the target entry and exit record is empty, if the end time included by the target entry and exit record is not empty, comparing the end time included by the target entry and exit record with the flow break time, and determining the end time included by the target entry and exit record as the previous time in the end time and the flow break time. For example, the target entry and exit record includes an end time of 10: 50, flow-off time of 10: then the target entry and exit record may be maintained, again for example, the target entry and exit record may include an end time of 12: 17, the flow-off time is 12: 11, the end time included in the target entry and exit record may be modified to 12: 11. if the end time included in the target entry and exit record is empty, the end time included in the target entry and exit record may be modified to the flow break time, that is, the flow break time is filled in the target entry and exit record as the end time. Therefore, the business server can determine the live broadcast time of the target client according to the modified target access record. For example, the modified target entry and exit record includes a start time of 8: 00, end time 8: and 32, the live broadcast time of the target client is 32 minutes. Furthermore, the service server can also charge according to the live broadcast time of the target client.
When the streaming media server detects that the link between the streaming media server and the target client is abnormal, the streaming media server sends a cut-off callback request to the service server, so that the service server can determine the time when the target client abnormally exits the live broadcast room according to the cut-off callback request, thereby modifying the target access record corresponding to the target client, and enabling the service server to accurately determine the live broadcast time of the client abnormally exiting the live broadcast room according to the modified target access record.
In summary, the service server of the present disclosure first receives a cut-off callback request sent by the streaming media server when detecting that a link with a target client is abnormal, where the target client is any client in a live broadcast. And then, according to the cut-off callback request, determining cut-off time, and searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises access records generated when each client enters the live broadcast room. And if the end time included by the target access record is empty, modifying the end time included by the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record. According to the method and the device, when the streaming media server detects that the link between the streaming media server and the target client is abnormal, the streaming media server sends the cut-off callback request to the service server, and the service server can determine the time when the target client abnormally exits the live broadcast room according to the cut-off callback request, so that the target access record corresponding to the target client is modified, and the live broadcast time of the client which abnormally exits the live broadcast room can be accurately determined.
Fig. 3 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, and as shown in fig. 3, an implementation manner of step 102 may include:
step 1021, if the cut-off callback request includes abnormal time, taking the abnormal time as cut-off time, where the abnormal time is time when the streaming media server detects that the link between the streaming media server and the target client is abnormal.
In step 1022, if the interruption callback request does not include the abnormal time, the time when the interruption callback request is received is taken as the interruption time.
For example, the interruption callback request sent by the streaming media server may include a time when the streaming media server detects that the link with the target client is abnormal, that is, an abnormal time. Then, the service server may directly use the abnormal time as the cut-off time, that is, the time when the streaming media server detects that the link with the target client is abnormal is determined as the time when the target client exits the live broadcast room abnormally. The interruption callback request may not include the abnormal time, and the service server may use the time when the interruption callback request is received as the interruption time, that is, the time when the interruption callback request is received, as the time when the target client abnormally exits the live broadcast room.
Fig. 4 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, and as shown in fig. 4, the implementation manner of step 103 may be:
and if a plurality of target access records corresponding to the target client exist in the access record table, taking the target access record with the latest starting time as the latest target access record.
Accordingly, the implementation of step 104 may include:
in step 1041, if the end time included in the latest target entry and exit record is empty, the end time included in the latest target entry and exit record is modified into the flow break time.
And 1042, determining the live broadcast time length of the target client according to the other target access records and the modified latest target access record, wherein the other target access records are target access records except the latest target access record in the plurality of target access records.
For example, for the same live broadcast room, there may be a scene in which the target client enters the live broadcast room for multiple times, and accordingly, there may be multiple target entry and exit records corresponding to the target client in the entry and exit record table. In step 101, a request for call back is received, which indicates that the target client may exit the live broadcast room abnormally for the last time, and then the target entry and exit record with the latest start time may be used as the latest target entry and exit record. Correspondingly, whether the end time included in the latest target entry and exit record is empty is judged. If the end time included in the latest target entry and exit record is not empty, the end time included in the latest target entry and exit record may be compared with the flow break time, and the end time included in the latest target entry and exit record may be determined as the previous time of the end time and the flow break time. If the end time included in the latest entry and exit record is empty, the end time included in the latest target entry and exit record may be modified to the current break time. And finally, determining the live broadcast time length of the target client according to all target access records (including the modified latest target access record). For example, target entry and exit are recorded as 2, and the shut-off time is 9: 51, the first target entry-and-exit record includes a start time of 8: 00, end time 8: 32, the second target entry-exit record includes a start time of 9: 07, end time is empty. Then the second target entry and exit record is the latest entry and exit record, and the end time included in the second target entry and exit record may be modified to 9: 51. then the target client's live duration, i.e., (8: 32-8: 00) + (9: 51-9: 07), is 76 minutes.
Fig. 5 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, where as shown in fig. 5, the method further includes:
step 105, in response to detecting that the first client enters the live broadcast room at the first time, searching whether a first entry and exit record corresponding to the first client exists in an entry and exit record table.
And 106, generating a second access record corresponding to the first client in the access record table, wherein the start time of the second access record is the first time.
Step 107, if there is a first entry-exit record in the entry-exit record table and the end time included in the first entry-exit record is empty, modifying the end time included in the first entry-exit record to be the first time.
For example, when the service server detects that the first client enters the live broadcast room at the first time, it may first search for whether a first entry and exit record corresponding to the first client exists in the entry and exit record table. If the first in-out record does not exist, the first client is indicated to enter the live broadcast room for the first time. If there is a first in-and-out record (the first in-and-out record may be one or more), it is indicated that the first client is not entering the live room for the first time. Meanwhile, a second access record corresponding to the first client can be generated in the access record table, and the second access record can be understood as the access record corresponding to the first client entering the live broadcast room at this time, wherein the start time is the first time, and the end time is empty at this time.
If the first client does not enter the live broadcast room for the first time and exits abnormally when exiting the live broadcast room for the last time, the end time included in the entry and exit record corresponding to the first client entering the live broadcast room for the last time may be empty, which may cause the service server to be unable to accurately determine the live broadcast time of the first client. For example, after the first client abnormally exits the live broadcast room, the first client enters the live broadcast room again within a short time (for example, 10s), at this time, the service server may not receive the flow interruption callback request sent by the streaming media server and indicating that the first client abnormally exits the live broadcast room, and then the end time included in the entry and exit record corresponding to the first client entering the live broadcast room last time is still null. In order to avoid the above situation, the service end may modify the end time included in the first entry and exit record to the first time when the first entry and exit record exists and the end time included in the first entry and exit record is empty. Then, if the service server receives the flow callback request sent by the streaming media server and indicating that the first client abnormally exits the live broadcast room last time, the end time included in the second entry and exit record may be modified to be the flow break time according to the implementation manners of steps 101 to 104. When the first client exits the live broadcast room, the end time included in the second entry and exit record (i.e. the implementation manner of step 114 mentioned later) is updated according to the time when the first client exits the live broadcast room, so as to ensure that the end time included in the second entry and exit record can indicate the time when the first client exits the live broadcast room.
Fig. 6 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, where as shown in fig. 6, the method may further include:
and 108, marking the modified target entry and exit record as a first state.
And step 109, marking the modified first entry and exit record as a second state.
And step 110, responding to an end instruction for the live broadcast room, traversing each entry-exit record in the entry-exit record table, if an abnormal entry-exit record with empty end time exists, modifying the end time included in the abnormal entry-exit record to be current time, and marking the abnormal entry-exit record to be in a third state.
And step 111, determining the total live broadcast duration of the live broadcast room according to all the in-out records in the in-out record table.
For example, when the business server modifies an entry and exit record (e.g., the target entry and exit record, the first entry and exit record, and the abnormal entry and exit record), the entry and exit record may be marked to indicate that the entry and exit record is in a modified state. If the business server does not modify the entry and exit record (i.e. the scenario where the client normally exits), the entry and exit record may be in an unmodified state (i.e. the fourth state mentioned later). Specifically, after receiving the blackout callback request, the modified target entry and exit record according to the blackout time may be marked as the first state (which may be written as end _ type ═ 1). In the case where it is detected that the client enters the live broadcast room at the first time, the first entry and exit record modified at the first time may be marked as the second state (which may be written as end _ type ═ 2). If an end instruction for the live broadcast room is detected, which indicates that the live broadcast room is ended (it can be understood that the host ends the live broadcast conference), each entry and exit record in the entry and exit record table may be traversed, and if there is an abnormal entry and exit record whose included end time is empty, the end time included in the abnormal entry and exit record may be modified to the current time, and the abnormal entry and exit record may be marked as the third state (which may be written as end _ type ═ 3). It should be noted that the operation of traversing the ingress and egress log table may be performed after a period of time when the end instruction is detected, so as to avoid the possibility of an unreceived blackout callback request. For example, the operation of entering and exiting the log table may be traversed 8 minutes after the end instruction is detected, and then the current time is 8 minutes after the end instruction is detected.
And finally, after the live broadcasting room is finished, determining the total live broadcasting time of the live broadcasting room according to all the access records in the access record table. For example, the difference between the end time and the start time included in each entry and exit record may be obtained to obtain the duration corresponding to each entry and exit record, and then the durations corresponding to all the entry and exit records are summed to obtain the total live broadcast duration. For another example, the total live time length may be calculated according to formula one:
Figure BDA0003004012070000161
wherein, A represents the total live broadcast time length, S represents the total time length from the beginning to the end of the live broadcast room, N1 represents the number of first-class clients completely participating in the live broadcast room, N2 represents the number of second-class clients normally entering and exiting the live broadcast room, N3 represents the number of third-class clients normally entering the live broadcast room but abnormally exiting the live broadcast room, and T'iIndicating the end time, T, of the ith second type clientiRepresents the starting time, P'jIndicating the end time, P, of the jth third class of clientjIndicating the start time of the jth client of the third class. It should be noted that the second type clients and the third type clients can enter the live broadcast room multiple times, so that the formula (T'i-Ti) The method can indicate that the ith second type client enters the live broadcast room for multiple times, and the sum of the corresponding live broadcast time lengths (P ') of the ith second type client entering the live broadcast room each time'j-Pj) The method can be expressed as that the jth third-class client enters the live broadcast room for multiple times, and the sum of the corresponding live broadcast time lengths of the j third-class clients entering the live broadcast room every time.
Fig. 7 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, where as shown in fig. 7, the method may further include:
and step 112, in response to detecting that the second client exits from the live broadcast room at the second time, searching whether a third entry-exit record corresponding to the second client exists in the entry-exit record table, where the second client is any client in the live broadcast room.
And 113, if a third in-out record exists in the in-out record table, the end time included by the third in-out record is empty, and the third in-out record is in a fourth state, modifying the end time included by the third in-out record into a second time, wherein the fourth state is different from the first state, the second state and the third state.
And step 114, if a third entry-exit record exists in the entry-exit record table, and the third entry-exit record is in the first state, the second state or the third state, modifying the end time included in the third entry-exit record to be a second time.
And step 115, determining the live broadcast time length of the second client according to the modified third entry-exit record.
For example, the service server detects that the second client exits from the live broadcast room at the second time, that is, the second client normally exits from the live broadcast room. Then it may be looked up in the entry and exit record table whether there is a third entry and exit record corresponding to the second client. In the case where there is a third in-out record, the end time included in the third in-out record is empty, and the third in-out record is in the fourth state (i.e., the state indicating that the third in-out record is unmodified), the end time included in the third in-out record may be modified to the second time. That is, when the second client normally exits the live broadcast room, the end time included in the third entry-exit record may be recorded as the time when the second client is detected to exit the live broadcast room. In the case where there is a third in-out record and the third in-out record is in the first state, or the second state, or the third state (i.e., the state indicating that the third in-out record is corrected), the end time included in the third in-out record may be modified to the second time.
Fig. 8 is a flowchart illustrating another method for determining a live time duration according to an exemplary embodiment, where as shown in fig. 8, the method may further include:
and step 116, responding to the end instruction aiming at the live broadcast room, and modifying the empty end time in the access record table into the time when the end instruction is detected.
For example, if an end instruction for the live broadcast room is detected, which indicates that the live broadcast room is ended (it may be understood that the host ends the live broadcast conference), each entry and exit record in the entry and exit record table may be traversed, and the end time that is empty may be modified to the time when the end instruction is detected. It will be appreciated that when the live room ends, the time of the live room end can be uniformly filled in each entry and exit record that includes an end time that is empty. And finally, after the live broadcasting room is finished, determining the total live broadcasting time of the live broadcasting room according to all the access records in the access record table. For example, the difference between the end time and the start time included in each entry and exit record may be obtained to obtain the duration corresponding to each entry and exit record, and then the durations corresponding to all the entry and exit records are summed to obtain the total live broadcast duration, or the total live broadcast duration may be calculated according to the formula one.
In summary, the service server of the present disclosure first receives a cut-off callback request sent by the streaming media server when detecting that a link with a target client is abnormal, where the target client is any client in a live broadcast. And then, according to the cut-off callback request, determining cut-off time, and searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises access records generated when each client enters the live broadcast room. And if the end time included by the target access record is empty, modifying the end time included by the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record. According to the method and the device, when the streaming media server detects that the link between the streaming media server and the target client is abnormal, the streaming media server sends the cut-off callback request to the service server, and the service server can determine the time when the target client abnormally exits the live broadcast room according to the cut-off callback request, so that the target access record corresponding to the target client is modified, and the live broadcast time of the client which abnormally exits the live broadcast room can be accurately determined.
Fig. 9 is a block diagram illustrating an apparatus for determining a live broadcast duration according to an exemplary embodiment, where as shown in fig. 9, the apparatus 200 is applied to a service end, and may include:
the receiving module 201 is configured to receive a cut-off callback request sent by a streaming media server, where the cut-off callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is configured to provide streaming media service for the live broadcast room.
The determining module 202 is configured to determine a flow break time according to the flow break callback request.
The searching module 203 is configured to search a target entry and exit record corresponding to a target client in an entry and exit record table corresponding to a live broadcast room, where the entry and exit record table includes multiple entry and exit records, a corresponding entry and exit record is generated when each client enters the live broadcast room, and an initial time included in the entry and exit record corresponding to the client is a time when the client enters the live broadcast room.
And the processing module 204 is configured to modify the end time included in the target entry and exit record into a cut-off time if the end time included in the target entry and exit record is empty, and determine a live broadcast duration of the target client according to the modified target entry and exit record.
In one application scenario, the determination module 202 may be configured to:
and if the cutoff callback request comprises abnormal time, taking the abnormal time as cutoff time, wherein the abnormal time is the time when the streaming media server detects that the link between the streaming media server and the target client is abnormal.
And if the interruption callback request does not comprise abnormal time, taking the time of receiving the interruption callback request as the interruption time.
Fig. 10 is a block diagram illustrating another apparatus for determining a live time duration according to an exemplary embodiment, where as shown in fig. 10, the lookup module 203 may be configured to:
and if a plurality of target access records corresponding to the target client exist in the access record table, taking the target access record with the latest starting time as the latest target access record.
Accordingly, the processing module 204 may include:
the modifying submodule 2041 is configured to modify the end time included in the latest target entry and exit record into the flow break time if the end time included in the latest target entry and exit record is empty.
The processing sub-module 2042 is configured to determine a live broadcast duration of the target client according to the other target entry and exit records and the modified latest target entry and exit record, where the other target entry and exit records are target entry and exit records of the multiple target entry and exit records except the latest target entry and exit record.
In an application scenario, the lookup module 203 may further be configured to:
and in response to the fact that the first client enters the live broadcast room at the first time, searching whether a first access record corresponding to the first client exists in an access record table.
Accordingly, the processing module 204 may be further configured to:
and generating a second access record corresponding to the first client in the access record table, wherein the start time of the second access record is the first time.
And if the first in-out record exists in the in-out record table and the end time included by the first in-out record is empty, modifying the end time included by the first in-out record into the first time.
In another application scenario, the processing module 204 may be further configured to:
and marking the modified target access record as a first state.
And marking the modified first access record as a second state.
And responding to an end instruction aiming at the live broadcast room, traversing each entry-exit record in the entry-exit record table, if an abnormal entry-exit record with the included end time being empty exists, modifying the end time included by the abnormal entry-exit record into the current time, and marking the abnormal entry-exit record into a third state.
And determining the total live broadcast time length of the live broadcast room according to all the access records in the access record table.
In another application scenario, the lookup module 203 may further be configured to:
and in response to the fact that the second client exits from the live broadcast room at the second time, searching whether a third entrance record corresponding to the second client exists in the entrance record table, wherein the second client is any client in the live broadcast room.
Accordingly, the processing module 204 may be further configured to:
and if a third in-out record exists in the in-out record table, the end time included by the third in-out record is empty, the third in-out record is in a fourth state, the end time included by the third in-out record is modified into a second time, and the fourth state is different from the first state, the second state and the third state.
And if the third in-out record exists in the in-out record table and is in the first state, the second state or the third state, modifying the end time included by the third in-out record into the second time.
And determining the live broadcast time length of the second client according to the modified third entry-exit record.
In another application scenario, the processing module 204 may be further configured to:
and responding to an end instruction aiming at the live broadcast room, and modifying the end time which is empty in the access record table into the time when the end instruction is detected.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, the service server of the present disclosure first receives a cut-off callback request sent by the streaming media server when detecting that a link with a target client is abnormal, where the target client is any client in a live broadcast. And then, according to the cut-off callback request, determining cut-off time, and searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises access records generated when each client enters the live broadcast room. And if the end time included by the target access record is empty, modifying the end time included by the target access record into the flow break time, and determining the live broadcast time of the target client according to the modified target access record. According to the method and the device, when the streaming media server detects that the link between the streaming media server and the target client is abnormal, the streaming media server sends the cut-off callback request to the service server, and the service server can determine the time when the target client abnormally exits the live broadcast room according to the cut-off callback request, so that the target access record corresponding to the target client is modified, and the live broadcast time of the client which abnormally exits the live broadcast room can be accurately determined.
FIG. 11 is a block diagram illustrating an electronic device 300 in accordance with an example embodiment. For example, the electronic device 300 may be provided as a server. Referring to fig. 11, the electronic device 300 comprises a processor 322, which may be one or more in number, and a memory 332 for storing computer programs executable by the processor 322. The computer program stored in memory 332 may include one or more modules that each correspond to a set of instructions. Further, the processor 322 may be configured to execute the computer program to perform the above-described method for determining the live time duration.
Additionally, electronic device 300 may also include a power component 326 and a communication component 350, the power component 326 may be configured to perform power management of the electronic device 300, and the communication component 350 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 300. In addition, the electronic device 300 may also include input/output (I/O) interfaces 358. The electronic device 300 may operate based on an operating system, such as Windows Server, stored in the memory 332TM,Mac OS XTM,UnixTM,LinuxTMAnd so on.
In another exemplary embodiment, a computer readable storage medium including program instructions is further provided, which when executed by a processor, implement the steps of the above-mentioned method for determining a live time duration. For example, the computer readable storage medium may be the memory 332 comprising program instructions executable by the processor 322 of the electronic device 300 to perform the method for determining the duration of the live broadcast.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned method of determining a live time duration when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A method for determining the live broadcast time length is applied to a service server, and the method comprises the following steps:
receiving a flow interruption callback request sent by a streaming media server, wherein the flow interruption callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is used for providing streaming media service for the live broadcast room;
determining the current interruption time according to the current interruption callback request;
searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, wherein the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the access record corresponding to the client comprises the starting time of the client entering the live broadcast room;
and if the end time included by the target access record is empty, modifying the end time included by the target access record into the current breaking time, and determining the live broadcast time length of the target client according to the modified target access record.
2. The method of claim 1, wherein determining a blackout time based on the blackout callback request comprises:
if the cutoff callback request comprises abnormal time, taking the abnormal time as the cutoff time, wherein the abnormal time is the time when the link between the streaming media server and a target client side is detected to be abnormal;
and if the interruption callback request does not comprise the abnormal time, taking the time of receiving the interruption callback request as the interruption time.
3. The method according to claim 1, wherein the searching for the target access record corresponding to the target client in the access record table corresponding to the live broadcast room includes:
if a plurality of target access records corresponding to the target client exist in the access record table, taking the latest target access record with the latest starting time as the latest target access record;
if the end time included in the target access record is empty, modifying the end time included in the target access record into the current breaking time, and determining the live broadcast time length of the target client according to the modified target access record, including:
if the end time included in the latest target access record is empty, the end time included in the latest target access record is modified into the flow break time;
and determining the live broadcast time length of the target client according to other target access records and the modified latest target access record, wherein the other target access records are target access records except the latest target access record in the plurality of target access records.
4. The method of claim 1, further comprising:
in response to the fact that a first client enters the live broadcast room at the first time, searching whether a first entrance record corresponding to the first client exists in the entrance record table or not;
generating a second entry-exit record corresponding to the first client in the entry-exit record table, wherein the start time of the second entry-exit record is the first time;
if the first entry and exit record exists in the entry and exit record table and the end time included in the first entry and exit record is empty, the end time included in the first entry and exit record is modified into the first time.
5. The method of claim 4, further comprising:
marking the modified target access record as a first state;
marking the modified first entry and exit record as a second state;
responding to an end instruction aiming at the live broadcast room, traversing each entry and exit record in the entry and exit record table, if an abnormal entry and exit record with empty end time exists, modifying the end time included by the abnormal entry and exit record into the current time, and marking the abnormal entry and exit record into a third state;
and determining the total live broadcast time length of the live broadcast room according to all the access records in the access record table.
6. The method of claim 5, further comprising:
in response to the fact that a second client exits from the live broadcast room at a second time, whether a third entrance record corresponding to the second client exists is searched in the entrance record table, wherein the second client is any client in the live broadcast room;
if the third entry-exit record exists in the entry-exit record table, the end time included in the third entry-exit record is empty, and the third entry-exit record is in a fourth state, the end time included in the third entry-exit record is modified into the second time, and the fourth state is different from the first state, the second state and the third state;
if the third entry-exit record exists in the entry-exit record table and the third entry-exit record is in the first state, the second state or the third state, modifying the end time included in the third entry-exit record to the second time;
and determining the live broadcast time length of the second client according to the modified third entry-exit record.
7. The method according to any one of claims 1-6, further comprising:
and responding to an ending instruction aiming at the live broadcast room, and modifying the empty ending time in the access record table into the time for detecting the ending instruction.
8. A device for determining the live broadcast time length is applied to a service end, and comprises:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a flow break callback request sent by a streaming media server, the flow break callback request is sent when the streaming media server detects that a link between the streaming media server and a target client is abnormal, the target client is any client in a live broadcast room, and the streaming media server is used for providing streaming media service for the live broadcast room;
the determining module is used for determining the flow break time according to the flow break callback request;
the searching module is used for searching a target access record corresponding to the target client in an access record table corresponding to the live broadcast room, the access record table comprises a plurality of access records, each client generates a corresponding access record when entering the live broadcast room, and the start time of the access record corresponding to the client is the time when the client enters the live broadcast room;
and the processing module is used for modifying the end time included by the target access record into the current breaking time if the end time included by the target access record is empty, and determining the live broadcast time of the target client according to the modified target access record.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 7.
CN202110357464.8A 2021-04-01 2021-04-01 Live broadcast time length determination method and device, storage medium and electronic equipment Active CN113068061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110357464.8A CN113068061B (en) 2021-04-01 2021-04-01 Live broadcast time length determination method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110357464.8A CN113068061B (en) 2021-04-01 2021-04-01 Live broadcast time length determination method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113068061A true CN113068061A (en) 2021-07-02
CN113068061B CN113068061B (en) 2022-12-30

Family

ID=76565435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110357464.8A Active CN113068061B (en) 2021-04-01 2021-04-01 Live broadcast time length determination method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113068061B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604532A (en) * 2022-11-30 2023-01-13 深圳市华曦达科技股份有限公司(Cn) Statistical method and device for live broadcast watching users in specified time period

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130239136A1 (en) * 2012-03-08 2013-09-12 Verizon Patent And Licensing Inc. Method and apparatus for injecting program markers in live media streams
CN110446079A (en) * 2019-07-03 2019-11-12 北京达佳互联信息技术有限公司 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN111107389A (en) * 2019-12-31 2020-05-05 广州酷狗计算机科技有限公司 Method, device and system for determining live broadcast watching time length
CN111372130A (en) * 2020-03-02 2020-07-03 北京字节跳动网络技术有限公司 User online time counting method and device, electronic equipment and storage medium
CN111787347A (en) * 2020-07-15 2020-10-16 广州繁星互娱信息科技有限公司 Live broadcast time length calculation method, live broadcast display method, device and equipment
CN111901617A (en) * 2020-07-17 2020-11-06 北京达佳互联信息技术有限公司 Method and device for calculating live broadcast watching time length

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130239136A1 (en) * 2012-03-08 2013-09-12 Verizon Patent And Licensing Inc. Method and apparatus for injecting program markers in live media streams
CN110446079A (en) * 2019-07-03 2019-11-12 北京达佳互联信息技术有限公司 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN111107389A (en) * 2019-12-31 2020-05-05 广州酷狗计算机科技有限公司 Method, device and system for determining live broadcast watching time length
CN111372130A (en) * 2020-03-02 2020-07-03 北京字节跳动网络技术有限公司 User online time counting method and device, electronic equipment and storage medium
CN111787347A (en) * 2020-07-15 2020-10-16 广州繁星互娱信息科技有限公司 Live broadcast time length calculation method, live broadcast display method, device and equipment
CN111901617A (en) * 2020-07-17 2020-11-06 北京达佳互联信息技术有限公司 Method and device for calculating live broadcast watching time length

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604532A (en) * 2022-11-30 2023-01-13 深圳市华曦达科技股份有限公司(Cn) Statistical method and device for live broadcast watching users in specified time period

Also Published As

Publication number Publication date
CN113068061B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
EP3709664A1 (en) Stream pushing method, system and server
EP3059945A1 (en) Method and system for video surveillance content adaptation, and central server and device
CN113411642A (en) Screen projection method and device, electronic equipment and storage medium
CN110830823B (en) Play progress correction method and device, electronic equipment and readable storage medium
CN113068061B (en) Live broadcast time length determination method and device, storage medium and electronic equipment
CN113032223A (en) Server state detection method and device
CN113268216A (en) Screen projection control method and device and readable storage medium
EP2846541A1 (en) Video monitoring system and method for reducing pan-tilt control delay
CN111107387B (en) Video transcoding method and device and computer storage medium
CN112953815A (en) Information access control method, device, equipment and storage medium
US11082363B2 (en) Communication apparatus performing multi-camera live streaming, control method therefor, and storage medium
CN112217910B (en) Video service access method, device, network equipment and storage medium
CN108076381B (en) Video display method, video forwarding equipment and system
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium
CN112272181B (en) Live broadcast method based on block chain, electronic equipment and computer readable storage medium
CN112291573B (en) Live stream pushing method and device, electronic equipment and computer readable medium
CN114143616A (en) Target video processing method and system, storage medium and electronic device
CN114051146A (en) Method and system for preventing repeated plug flow
CN112929228A (en) Bandwidth testing method, user equipment and storage device
CN115225627A (en) File transmission method and device, computer equipment and storage medium
CN113973089B (en) Streaming media transmission method, system, equipment and storage medium
US11729474B2 (en) System and method for ensuring media appliance stability
CN115022694B (en) Screen time statistics method, device, system, background server and medium
CN113014945B (en) Data processing method and device, storage medium and computer equipment
WO2023128201A1 (en) Content service device and operating method thereof

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