CN106954079B - Live broadcast record statistical method and device - Google Patents
Live broadcast record statistical method and device Download PDFInfo
- Publication number
- CN106954079B CN106954079B CN201710150580.6A CN201710150580A CN106954079B CN 106954079 B CN106954079 B CN 106954079B CN 201710150580 A CN201710150580 A CN 201710150580A CN 106954079 B CN106954079 B CN 106954079B
- Authority
- CN
- China
- Prior art keywords
- broadcast
- broadcasting
- notification
- identifier
- air
- 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.)
- Expired - Fee Related
Links
- 238000007619 statistical method Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 34
- 238000001914 filtration Methods 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 4
- 230000000977 initiatory effect Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
- H04N21/4532—Management of client data or end-user data involving end-user characteristics, e.g. viewer profile, preferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25891—Management of end-user data being end-user preferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/454—Content or additional data filtering, e.g. blocking advertisements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4667—Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Graphics (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 invention provides a live broadcast record statistical method and a device, wherein the method comprises the following steps: the method comprises the steps that a server receives an on-air notification and an off-air notification which are sent by a CDN node each time, the on-air notification comprises a main broadcast identification and an on-air identification, and the off-air notification comprises a main broadcast identification and an off-air identification; and counting the live broadcast records corresponding to the anchor broadcast identification according to the one-to-one correspondence between the preset broadcast identification and the closed broadcast identification. In the live broadcast record statistical method provided by the scheme, the pair of on-air broadcast notifications and the off-air broadcast notifications are accurately aligned based on the one-to-one correspondence between the on-air broadcast identification and the off-air broadcast identification, so that the accuracy of the live broadcast statistical result is ensured.
Description
Technical Field
The invention relates to the technical field of network live broadcast, in particular to a live broadcast record statistical method and device.
Background
The advent of live webcasting makes information transfer faster and more convenient, and its novel format and relatively convenient service bring a new visual and auditory enjoyment to audiences. The advent of live webcasting has greatly extended the viewer's autonomy of choice and participation. Meanwhile, the characteristic of network live broadcast bidirectional communication also gives the audience the proper honor, and is popular and loved by vast network friends, especially young network friends.
In the existing live broadcast website, the live broadcast time length of the anchor is generally counted, and the live broadcast time length is used as an important index for examining the anchor. At present, one way for a server to count the live broadcast duration is: when the anchor starts to broadcast or stops broadcasting, the broadcast opening notification or the broadcast closing notification is sent to the server, the server obtains the broadcast time length of the anchor by calculating the time interval between the broadcast opening notification and the broadcast closing notification, and the broadcast times of the anchor are determined according to the received broadcast opening notification times.
However, in practical applications, such problems often occur: the live broadcast times and live broadcast duration counted by the anchor are inconsistent with the live broadcast times and live broadcast duration fed back by the server. That is to say, the server may have a problem that the statistical result is not accurate in a manner of counting the live broadcast times and the live broadcast duration of the anchor broadcast according to the adjacent broadcast start notification and broadcast stop notification received in sequence.
Disclosure of Invention
In view of this, embodiments of the present invention provide a live broadcast record counting method and apparatus, which can accurately count live broadcast records of a host.
The embodiment of the invention provides a live broadcast record statistical method, which comprises the following steps:
receiving an broadcasting notification sent by a CDN node every time, wherein the broadcasting notification comprises a main broadcasting identifier and a broadcasting identifier;
receiving a broadcast closing notification sent by the CDN node each time, wherein the broadcast closing notification comprises the anchor identifier and a broadcast closing identifier;
and counting the live broadcast records corresponding to the anchor broadcast identification according to the preset one-to-one correspondence between the broadcast identification and the closed broadcast identification.
Optionally, before receiving the broadcast notification sent by the CDN node each time, the method further includes:
responding to a current broadcasting request of a main broadcasting client, and determining a stream pushing address corresponding to the broadcasting request, wherein the stream pushing address comprises a main broadcasting identifier, and a broadcasting identifier and a broadcasting closing identifier corresponding to the broadcasting request;
and sending the streaming address to the anchor client so that the anchor client pushes the live video stream to the corresponding CDN node according to the streaming address.
Optionally, the counting, according to a preset one-to-one correspondence between the play identifier and the off-air identifier, a live broadcast record corresponding to the anchor identifier includes:
according to the comparison result of the receiving time difference between the ith broadcast closing notice and the (i + 1) th broadcast opening notice and a preset time difference threshold value, carrying out validity filtration on each broadcast opening notice and each broadcast closing notice received;
determining the on-off broadcasting corresponding relation between the on-off broadcasting notice and the off-off broadcasting notice after filtering;
and counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation.
Optionally, the counting, according to the on-off broadcast correspondence, a live broadcast record corresponding to the anchor identifier includes:
determining the live broadcast times corresponding to the anchor identification according to the number of the on-off broadcast corresponding relation; and/or the presence of a gas in the gas,
and determining the live broadcast time length of each live broadcast corresponding to the anchor broadcast identification according to the one-to-one correspondence between the broadcast identification and the broadcast closing identification corresponding to each on-off broadcast corresponding relation.
Optionally, the determining, according to a one-to-one correspondence between the on-air identifier and the off-air identifier corresponding to each on-off-air correspondence, a live broadcast duration of each live broadcast corresponding to the anchor identifier includes:
for any on-off broadcasting corresponding relation, if the on-off broadcasting identification and the off-broadcasting identification corresponding to the on-off broadcasting corresponding relation have one-to-one correspondence, determining that a first receiving time difference between the corresponding on-off broadcasting notice and the corresponding off-on broadcasting notice is a live broadcasting time of one-time live broadcasting;
if the on-air identifier and the off-air identifier corresponding to any one on-off-air corresponding relationship do not have one-to-one correspondence, determining a first receiving time difference between the corresponding on-air notification and the corresponding off-air notification, and a second receiving time difference between each pair of the on-air notification and the off-air notification which are filtered out between the corresponding on-air notification and the corresponding off-air notification;
and determining the live broadcast time length of one-time live broadcast according to the difference value of the first receiving time difference and the second receiving time difference.
The embodiment of the invention provides a live broadcast record statistical method, which comprises the following steps:
if receiving a live video stream sent by a main broadcast client, sending a broadcast notification to a server, wherein the broadcast notification comprises a main broadcast identifier and a broadcast identifier;
responding to the cut-off of the live video stream, and sending a broadcasting closing notice to the server, wherein the broadcasting closing notice comprises the anchor identification and the broadcasting closing identification;
the broadcast identifiers correspond to the broadcast identifiers one to one.
Optionally, if a live video stream sent by the anchor client is received, before sending the broadcast start notification to the server, the method further includes:
receiving a stream pushing address sent by the anchor client;
and analyzing the anchor identification, the broadcast identification and the broadcast closing identification from the stream pushing address.
The embodiment of the invention provides a live broadcast recording statistical device, which comprises:
the receiving module is used for receiving an on-broadcasting notification and an off-broadcasting notification which are sent by the CDN node each time, wherein the on-broadcasting notification and the off-broadcasting notification both comprise a main broadcasting identifier and an on-broadcasting identifier;
and the counting module is used for counting the live broadcast records corresponding to the anchor broadcast identification according to the preset one-to-one correspondence between the broadcast identification and the closed broadcast identification.
Optionally, the apparatus further comprises:
the determining module is used for responding to a current broadcast request of a main broadcast client, and determining a stream pushing address corresponding to the broadcast request, wherein the stream pushing address comprises the main broadcast identification, and a broadcast identification and a broadcast closing identification corresponding to the broadcast request;
and the sending module is used for sending the streaming address to the anchor client so that the anchor client can push the live video stream to the corresponding CDN node according to the streaming address.
The embodiment of the invention provides a live broadcast recording statistical device, which comprises:
the receiving module is used for receiving a live video stream sent by a main broadcasting client;
the sending module is used for sending a broadcast notification to a server if the receiving module receives the live video stream sent by the anchor client, wherein the broadcast notification comprises an anchor identifier and a broadcast identifier;
the detection module is used for detecting whether the live video stream is cut off;
the sending module is further configured to send a broadcast closing notification to the server if the live video stream is disconnected, where the broadcast closing notification includes the anchor broadcast identifier and a broadcast closing identifier, and the broadcast opening identifiers correspond to the broadcast closing identifiers one to one.
According to the live broadcast record counting method and device provided by the embodiment of the invention, the CDN node sends the on-air notification with the anchor identification and the on-air identification to the server when receiving the live broadcast video stream, and sends the off-air notification with the anchor identification and the off-air identification to the server when monitoring that the live broadcast video stream is disconnected, wherein the on-air identification and the off-air identification are in one-to-one correspondence, namely, the correspondence of the on-air notification and the off-air notification triggered by the CDN node in sequence is reflected. Therefore, when the server receives the on-air notification and the off-air notification sent by the CDN node, even if the receiving order and the sending order of the on-air notification and the off-air notification are inconsistent due to network anomaly or the like, the pair of on-air notification and the off-air notification can be accurately aligned based on the one-to-one correspondence between the on-air identification and the off-air identification, so as to ensure the accuracy of the live broadcast statistical result.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic view of a live broadcast system architecture according to an embodiment of the present invention;
fig. 2 is a flowchart of a first live recording statistical method according to an embodiment of the present invention;
fig. 3 is a flowchart of a second live recording statistical method according to an embodiment of the present invention;
fig. 4 is a flowchart of a third embodiment of a live recording statistical method according to the present invention;
fig. 5 is a flowchart of a fourth live recording statistical method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first live recording statistics apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second live recording statistical apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a third live recording statistics apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a fourth live recording statistics apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Fig. 1 is a schematic view of a live network architecture according to an embodiment of the present invention. As shown in fig. 1, the live network includes: the Content Delivery Network comprises a main broadcasting client, a watching client, a Content Delivery Network (CDN) node and a server.
The process of performing webcast by using the webcast system may include: the anchor client uploads the live video stream to the CDN node, the CDN node receives the live video stream to complete the stream pushing process of the live video stream, and meanwhile the CDN node sends a broadcast notification to the server. After receiving the broadcast notification, the server determines that the anchor broadcast starts live broadcast, and can push a live broadcast room corresponding to the live broadcast to a live broadcast website home page, so that a user can select live broadcast content to be watched according to the push of the website home page. After a certain user selects a live broadcast room to be watched, a live broadcast video stream is acquired from the CDN node through a watching client installed in terminal equipment of the user, and the live broadcast video stream is watched, so that the stream pulling process of the live broadcast video stream is completed. And when the CDN node does not receive the live video stream sent by the anchor client within a preset time period, namely the CDN node detects that the live video stream has a cut-off, a broadcast closing notification is sent to the server to indicate that the anchor stops live broadcasting.
The live recording statistical method provided by the embodiment of the invention will be described in detail from the perspective of a server.
Fig. 2 is a flowchart of a first embodiment of a live recording statistics display method according to an embodiment of the present invention, where the live recording statistics display method according to this embodiment includes the following steps:
s201, receiving a broadcast notification sent by the CDN node each time, where the broadcast notification includes a anchor identifier and a broadcast identifier.
After receiving the live video stream sent by the anchor client, the CDN node considers that the anchor starts live broadcasting and sends a broadcast notification to the server. The broadcast notification includes a main broadcast identifier and a broadcast identifier, where the main broadcast identifier may be a main broadcast ID indicating which main broadcast is broadcast.
S202, receiving a broadcast closing notification sent by the CDN node each time, wherein the broadcast closing notification comprises a main broadcast identifier and a broadcast closing identifier.
When the CDN node detects that the live video stream is cut off, the CDN node judges that the anchor broadcast is closed, and then sends a broadcast closing notification to the server, wherein the broadcast closing notification correspondingly comprises an anchor broadcast identifier and a broadcast closing identifier.
Optionally, a time threshold may be preset, when the CDN node does not receive a live video stream sent by the anchor client within the preset time threshold, that is, when the CDN node detects that a live video stream has a cut-off, and when the cut-off duration reaches the time threshold, the anchor is considered to be stopped, and at this time, the CDN node triggers to send a broadcast closing notification including an anchor identifier and a broadcast closing identifier to the server.
Optionally, the on-air identifier and the off-air identifier may be generated by a CDN node, and specifically, for a certain anchor identifier, the CDN node may generate a corresponding on-air identifier and an off-air identifier for the anchor identifier in a pre-generated or real-time generated manner.
For the pre-generation manner, optionally, the CDN node may pre-generate a plurality of pairs of on-broadcast identifiers and off-broadcast identifiers for each anchor identifier, put the plurality of pairs of on-broadcast identifiers and off-broadcast identifiers into an identifier queue corresponding to the anchor identifier, and sequentially use the identifiers in sequence, where one on-broadcast identifier and one off-broadcast identifier serve as a pair of identifiers and have a one-to-one correspondence therebetween.
Based on this, when a CDN node receives a live video stream triggered by a certain anchor, the CDN node selects an on-air identifier in a pair of an on-air identifier and an off-air identifier currently queued at the head of a queue from an identifier queue corresponding to the anchor identifier of the anchor, carries the on-air identifier and the anchor identifier in an on-air notification, and sends the on-air notification to the server; when the CDN node detects that the live video stream is interrupted, a pair of on-air identification and off-air identification in the off-air identification and the anchor identification which are currently arranged at the head of the queue in the identification queue are carried in an off-air notification and sent to a server, and the pair of used on-air identification and off-air identification are deleted from the identification queue.
For the real-time generation manner, specifically, when the CDN node receives a live video stream triggered by a certain anchor, an initiation identifier is generated in real time, and the initiation identifier and the anchor identifier are carried in an initiation notification and sent to the server. After continuously receiving the live video stream for a period of time, if the live video stream is detected to be disconnected at a certain time, the CDN node generates, in real time, a broadcast closing identifier corresponding to the broadcast opening identifier, where the broadcast opening identifier and the broadcast closing identifier have a one-to-one correspondence, and carries the broadcast closing identifier and the anchor identifier in a broadcast closing notification to send to the server.
Optionally, the one-to-one correspondence between the on-air identifier and the off-air identifier may be embodied by setting the on-air identifier and the off-air identifier to be the same identifier. For example, the on-air identifier and the off-air identifier of a certain live broadcast are a1, when in use, one on-air notification is, for example, open (a1), and the corresponding one off-air notification is close (a1), where open and close correspond to the on-air notification and the off-air notification, respectively, and the parenthesis represents parameters that may be contained in the notifications. At this time, the server can identify whether the on-air notification or the off-air notification is based on open and close, and can determine the corresponding on-air identifier and off-air identifier based on a 1.
Optionally, the presence of a one-to-one correspondence between the on-air identifier and the off-air identifier may also be embodied by setting the on-air identifier and the off-air identifier to be different identifiers, but a preset correspondence exists between the on-air identifier and the off-air identifier, for example, the on-air identifier of a certain live broadcast is a1, and the corresponding off-air identifier is b 1.
It should be noted that there are differences between the broadcast identifiers corresponding to all the broadcast notifications and between the broadcast identifiers corresponding to all the broadcast notifications, that is, each broadcast identifier or broadcast identifier has uniqueness.
And S203, counting the live broadcast records corresponding to the anchor broadcast identification according to the one-to-one correspondence between the preset broadcast identification and the closed broadcast identification.
In this embodiment, the live broadcast record may include a live broadcast duration of each live broadcast and a total number of live broadcast times.
For an anchor, the CDN node may receive the live video stream of the anchor multiple times within a period of time, that is, the CDN node may detect the interruption of the live video stream of the anchor multiple times. When receiving a live video stream of the anchor, the CDN node triggers a broadcast start notification to the server, and when detecting a cut-off of the live video stream, triggers a corresponding broadcast stop notification to the server; and if the live video stream of the anchor is received again later, triggering an on-air notification to the server, and repeating the steps. Thus, for the anchor, the server side will likely receive multiple on-air notifications and corresponding multiple off-air notifications.
In this embodiment, assuming that all the on-air notifications and the off-air notifications received by the server are valid, the correspondence between the on-air notifications and the off-air notifications, that is, which on-air notification corresponds to which off-air notification, may be determined based on the one-to-one correspondence between the on-air identification and the off-air identification. Therefore, based on the correspondence between the on-air notification and the off-air notification, the live broadcast time length corresponding to one live broadcast is determined according to the time difference between the receiving times of the on-air notification and the off-air notification. The number of the live broadcast times can be determined according to the number of any one of the broadcasting identifier, the broadcasting closing identifier, the broadcasting opening notice and the broadcasting closing notice.
In this embodiment, the CDN node sends, to the server, an on-air notification with an anchor identifier and an on-air identifier when receiving the live video stream, and sends, to the server, an off-air notification with the anchor identifier and an off-air identifier when monitoring that the live video stream is disconnected later, where the on-air identifier and the off-air identifier are in one-to-one correspondence, that is, correspondence between the on-air notification and the off-air notification that are successively triggered by the CDN node is reflected. Therefore, when the server receives the on-air notification and the off-air notification sent by the CDN node, even if the receiving order and the sending order of the on-air notification and the off-air notification are inconsistent due to network anomaly or the like, the pair of on-air notification and the off-air notification can be accurately aligned based on the one-to-one correspondence between the on-air identification and the off-air identification, so as to ensure the accuracy of the live broadcast statistical result.
Fig. 3 is a flowchart of a second live recording statistical method according to an embodiment of the present invention, as shown in fig. 3. On the basis of the embodiment of fig. 2, before executing step S201, the following steps may be further included:
s301, responding to the current broadcast request of the anchor client, determining a stream pushing address corresponding to the broadcast request, wherein the stream pushing address comprises an anchor identifier, and a broadcast identifier and a broadcast closing identifier corresponding to the broadcast request.
Before the live broadcast video stream is uploaded by the anchor client, firstly, a live broadcast request is sent to a server aiming at the live broadcast, the live broadcast request comprises an anchor identifier, the server receives the broadcasting request and determines a stream pushing address corresponding to the broadcasting request, the stream pushing address comprises the anchor identifier and a broadcasting closing identifier corresponding to the broadcasting request of the anchor, and the broadcasting identifier corresponds to the broadcasting closing identifier. It should be noted that, in this embodiment, in order to reduce the interactive signaling between the server and the anchor client, the above-mentioned on-demand identifier and off-demand identifier may be carried in the push stream address, but actually, the on-demand identifier and off-demand identifier are not strictly limited to be carried in the push stream address.
Based on the references in example two: each broadcasting identifier and each broadcasting closing identifier have uniqueness, so that the stream pushing addresses of different broadcasting requests aiming at the same main broadcasting also have uniqueness, and the broadcasting identifiers and the broadcasting closing identifiers corresponding to the broadcasting requests are different.
For the process of generating the on-air identifier and the off-air identifier by the server, reference may be made to the description of generating the on-air identifier and the off-air identifier by the CDN node in the foregoing embodiment, but the corresponding generation process may be completed by the server in this embodiment, and details are not described here.
And S302, sending the streaming address to the anchor client so that the anchor client pushes the live video stream to the corresponding CDN node according to the streaming address.
And after determining the stream pushing address according to the broadcasting request, the server sends the stream pushing address to the anchor client, and the anchor client receives the stream pushing address and uploads the live video stream to the corresponding CDN node according to the address.
It can be understood that the CDN node may obtain the on-demand identifier and the off-demand identifier therein by parsing the stream pushing address.
And S303, receiving a broadcast notification sent by the CDN node each time, wherein the broadcast notification comprises a main broadcast identifier and a broadcast identifier.
And S304, receiving a broadcast closing notification sent by the CDN node each time, wherein the broadcast closing notification comprises a main broadcast identifier and a broadcast closing identifier.
S305, counting the live broadcast records corresponding to the anchor broadcast identification according to the one-to-one correspondence between the preset broadcast identification and the close broadcast identification.
The implementation process of the above three steps can refer to the related description in the embodiment shown in fig. 2, and is not described herein again.
In the foregoing embodiment, it is assumed that the multiple on-air notifications and the multiple off-air notifications received by the server are valid for the same anchor, that is, it is assumed that each on-air notification received means the start of a live broadcast and each off-air notification means the end of a live broadcast. However, in practice, since various network abnormal situations may occur in the wireless network environment between the anchor client and the CDN node, such situations may occur: the anchor actually does not trigger one-time off-broadcasting, but only the CDN node does not receive the live video stream of the anchor temporarily because of network abnormality, however, since the CDN node triggers an off-broadcasting notification to the server immediately when detecting that the live video stream is not received, and immediately sends an on-broadcasting notification to the server when receiving the live video stream again, if the server carries out statistics on live broadcasting times and live broadcasting time length based on the off-broadcasting notification and the on-broadcasting notification at this time, a situation of statistical errors may occur. For this reason, the embodiment of the present invention provides a scheme as shown in fig. 4 for performing live broadcast statistical processing.
Fig. 4 is a flowchart of a third embodiment of a live recording statistical method provided in the embodiment of the present invention, as shown in fig. 4. On the basis of the embodiment shown in fig. 2 or fig. 3, the step of counting the live broadcast records corresponding to the anchor identifier according to the one-to-one correspondence between the preset on-air identifier and the off-air identifier in the foregoing embodiment may be performed with reference to the scheme shown in fig. 4:
s401, according to the comparison result of the receiving time difference between the ith broadcast closing notice and the (i + 1) th broadcast opening notice and a preset time difference threshold value, validity filtering is carried out on each broadcast opening notice and each broadcast closing notice which are received.
For the same anchor mark, after the server receives a plurality of broadcasting notifications and broadcasting closing notifications in sequence within a period of time, the server can calculate the receiving time difference between the reception of the ith broadcasting closing notification and the (i + 1) th broadcasting notification, compare the receiving time difference with a preset time difference threshold, if the receiving time difference is greater than the time difference threshold, indicate that the live broadcasting video stream is interrupted for a long time, and at the moment, consider that the ith broadcasting closing notification and the (i + 1) th broadcasting notification are effective; if the receiving time difference is smaller than the time difference threshold, it indicates that a short interruption of the live video stream may be generated due to network anomaly during the period, and at this time, the received ith off-air notification and the (i + 1) th on-air notification are considered to be invalid, and the ith off-air notification and the (i + 1) th on-air notification are filtered.
For example, suppose that the on-air notification and the off-air notification received by the server are in turn: open (1), open (2), close (1), close (2). At this time, i is 1, that is, the reception time difference between the first close notification close (1) and the second open notification open (2) is calculated, and if the reception time difference is greater than the time difference threshold, close (1) and open (2) are valid, and conversely, if the reception time difference is greater than the time difference threshold, close (1) and open (2) are invalid and filtered out.
Due to the instability of the network between CDN nodes and servers, the reception order of the on-air notifications and the off-air notifications may not coincide with the transmission order, as shown in this example.
S402, determining the on-off broadcasting corresponding relation between the on-off broadcasting notice and the off-off broadcasting notice after filtering.
And S403, counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation.
And determining the corresponding relation of the on-off broadcasting for the broadcasting announcement and the off broadcasting announcement which are left after the invalid broadcasting announcement and the off broadcasting announcement are filtered.
It should be noted that if each of the on-air notifications and the off-air notifications received by the server are valid, the on-off corresponding relationship between the on-air notification and the off-air notification may be determined according to the one-to-one correspondence between the on-air identifier and the off-air identifier, and if there are invalid on-air notifications and off-air notifications, the on-off corresponding relationship between the on-air notification and the off-air notification may not be determined simply according to the one-to-one correspondence between the on-air identifier and the off-air identifier. At this time, the on-off broadcasting correspondence between the filtered on-off broadcasting notification and the filtered off-off broadcasting notification may be: and according to the receiving time sequence, the filtered previous effective broadcasting notice corresponds to the next effective broadcasting closing notice.
Specifically, taking the example in step S401 above as a support, assuming that open (1), open (2), close (1), and close (2) are all valid, open (1) and close (1) are determined to have the on-off broadcast correspondence, and open (2) and close (2) are determined to have the on-off broadcast correspondence. Assuming that open (2) and close (1) are filtered out due to invalidation, the rest are open (1) and close (2), and open (1) and close (2) have on-off broadcast correspondence.
After the effective on-off broadcast corresponding relationship between the broadcast notification and the off-broadcast notification is determined, the live broadcast record of the anchor broadcast can be counted according to the on-off broadcast corresponding relationship, wherein optionally, the broadcast record can include the number of live broadcasts and/or the live broadcast duration corresponding to each live broadcast.
For example, in the above example, when open (1), open (2), close (1), and close (2) are all valid, two corresponding relationships of on-off broadcasts exist, and the number of live broadcasts is 2; when open (2) and close (1) are invalid, a corresponding relation of on-off broadcasting exists, and the number of times of broadcasting is 1.
And determining the live broadcast duration of each live broadcast according to the one-to-one correspondence between the broadcast opening identification and the broadcast closing identification corresponding to each on-off broadcast corresponding relation for counting the live broadcast duration of each live broadcast.
Specifically, as an achievable live broadcast duration statistical method: and if the on-air identifier and the off-air identifier corresponding to any on-off-air corresponding relation have one-to-one correspondence, determining that a first receiving time difference between the corresponding on-air notification and the corresponding off-air notification is the live broadcasting time of one live broadcasting. This approach corresponds to the case where each of the received broadcast notification and the received off-broadcast notification is valid, that is, when the open (1), open (2), close (1), and close (2) are all valid in the above example, there are two corresponding relationships of the on-off broadcast: open (1) and close (1) have a switch broadcast correspondence, and open (2) and close (2) have a switch broadcast correspondence. At this time, the on-air identifier and the off-air identifier corresponding to each on-off broadcasting corresponding relationship have one-to-one correspondence, and then it is determined that the receiving time difference between open (1) and close (1) is the live broadcasting time length of one live broadcasting, and the receiving time difference between open (2) and close (2) is the live broadcasting time length of the other live broadcasting.
Specifically, as another achievable live broadcast time length statistical method: if the on-air identifier and the off-air identifier corresponding to any on-off-air corresponding relationship do not have one-to-one correspondence, determining a first receiving time difference between the corresponding on-air notification and the corresponding off-air notification and a second receiving time difference between each pair of the filtered on-air notification and the filtered off-air notification between the corresponding on-air notification and the corresponding off-air notification; and determining the live broadcast time length of one-time live broadcast according to the difference value of the first receiving time difference and the second receiving time difference. This approach corresponds to the case where some of the received respective on-air notifications and off-air notifications are invalid, i.e., open (2) and close (1) are invalid in the above example, and open (1) and close (2) have an on-off broadcast correspondence. At this time, the difference value of the receiving time of open (1) and close (2) is determined as a first receiving time difference; and determining a second receiving time difference between each pair of on-air notifications and off-air notifications received between open (1) and close (2) and filtered in pairs, namely, a difference between the receiving times of open (2) and close (1) filtered in pairs in the above example, as the second receiving time difference, and then calculating a difference between the first receiving time difference and the second receiving time difference as a live broadcast time length of the current live broadcast.
In this embodiment, for a situation that, in actual application, the CDN node frequently triggers the on-air notification and the off-air notification due to a network anomaly between the anchor client and the CDN node, the server side performs validity filtering on the received on-air notification and the received off-air notification to reduce adverse effects of invalid on-air notification and off-air notification on the live broadcast record statistical result, and ensure accuracy of the live broadcast record statistical result.
Fig. 5 is a flowchart of a fourth embodiment of the live broadcast recording statistical method provided in the embodiment of the present invention, where an execution subject of the live broadcast recording method provided in this embodiment may be a CDN node in a live broadcast network architecture shown in fig. 1, and as shown in fig. 5, the method includes the following steps:
s501, if receiving a live video stream sent by a main broadcast client, sending a broadcast start notification to a server, wherein the broadcast start notification comprises a main broadcast identifier and a broadcast start identifier.
S502, responding to the cut-off of the live video stream, sending a broadcasting closing notice to a server, wherein the broadcasting closing notice comprises a main broadcasting mark and a broadcasting closing mark, and the broadcasting opening mark corresponds to the broadcasting closing mark one by one.
When the anchor needs to carry out direct broadcasting, a corresponding stream pushing address is obtained through the server, a direct broadcasting video stream is sent to the CDN node through the anchor client according to the stream pushing address, the CDN node verifies the stream pushing address to verify whether the direct broadcasting video stream corresponding to the anchor is sent to the CDN node or not, the direct broadcasting video stream is received after the verification is passed, and a broadcasting notification including an anchor identifier and a broadcasting identifier is sent to the server. And if the CDN server cannot subsequently receive the live video stream, sending a broadcasting closing notification comprising the anchor identification and the broadcasting closing identification to the server. For the same anchor, the broadcast identifiers in the broadcast notification and the broadcast closing identifiers in the broadcast closing notification which are adjacent twice exist one-to-one correspondence.
Optionally, the anchor identifier, the start identifier, and the end identifier may be carried in a streaming address, and the CDN node obtains the anchor identifier, the start identifier, and the end identifier by parsing the streaming address. In addition, optionally, the opening identifier and the closing identifier may also be generated by the CDN node. Specifically, reference may be made to the description in the foregoing embodiments, which are not repeated herein.
The embodiment method shown in fig. 5 corresponds to the embodiment methods shown in fig. 2 and 3, and is two embodiments described from different execution subjects. For the parts of the present embodiment not described in detail, reference may be made to the relevant descriptions in fig. 2 and fig. 3. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 2 and fig. 3, and are not described herein again.
Fig. 6 is a schematic structural diagram of a first live recording statistics apparatus according to an embodiment of the present invention, and as shown in fig. 5, the live recording statistics apparatus includes: a receiving module 11 and a statistic module 12.
The receiving module 11 is configured to receive a broadcast notification sent by the CDN node each time, where the broadcast notification includes a anchor identifier and a broadcast identifier, and receive a broadcast closing notification sent by the CDN node each time, where the broadcast closing notification includes an anchor identifier and a broadcast closing identifier.
And the counting module 12 is configured to count the live broadcast records corresponding to the anchor broadcast identifier according to a one-to-one correspondence between preset broadcast identifiers and broadcast shutdown identifiers.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
Fig. 7 is a schematic structural diagram of a second embodiment of a live recording statistical apparatus according to an embodiment of the present invention, as shown in fig. 7, based on the embodiment shown in fig. 6, the live recording statistical apparatus further includes: a determining module 21 and a sending module 22.
The determining module 21 is configured to determine, in response to a current broadcast request of the anchor client, a stream pushing address corresponding to the broadcast request, where the stream pushing address includes an anchor identifier, and a broadcast identifier and a broadcast closing identifier corresponding to the broadcast request.
And the sending module 22 is configured to send the streaming address to the anchor client, so that the anchor client pushes the live video stream to the corresponding CDN node according to the streaming address.
The apparatus shown in fig. 7 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
Fig. 8 is a schematic structural diagram of a third embodiment of a live broadcast recording statistics apparatus provided in an embodiment of the present invention, as shown in fig. 8, based on the embodiment shown in fig. 6, the statistics module 12 further includes: a filtering unit 121, a determining unit 122, and a counting unit 123.
A filtering unit 121, configured to perform validity filtering on the received broadcast notifications and the off-air notifications according to a comparison result between a receiving time difference between the i-th off-air notification and the i + 1-th broadcast notification and a preset time difference threshold.
A determining unit 122, configured to determine an on-off broadcasting correspondence between the filtered on-broadcasting notification and the filtered off-broadcasting notification.
And the counting unit 123 is configured to count the live broadcast record corresponding to the anchor identifier according to the on-off broadcast correspondence.
Optionally, the statistical unit 123 is specifically configured to:
and/or determining the live broadcast time length of each live broadcast corresponding to the anchor broadcast identification according to the one-to-one correspondence between the on-off broadcast identification and the off-broadcast identification corresponding to each on-off broadcast corresponding relation.
Wherein, the statistical unit 123 is specifically configured to: for any one on-off broadcasting corresponding relation, if the on-off broadcasting identification and the off-broadcasting identification corresponding to the any on-off broadcasting corresponding relation have one-to-one correspondence, determining that a first receiving time difference between the corresponding on-off broadcasting notice and the corresponding off-on broadcasting notice is a live broadcasting time of one-time live broadcasting;
if the on-air identifier and the off-air identifier corresponding to any on-off-air corresponding relationship do not have one-to-one correspondence, determining a first receiving time difference between the corresponding on-air notification and the corresponding off-air notification and a second receiving time difference between each pair of the filtered on-air notification and the filtered off-air notification between the corresponding on-air notification and the corresponding off-air notification; and determining the live broadcast time length of one-time live broadcast according to the difference value of the first receiving time difference and the second receiving time difference.
The apparatus shown in fig. 8 can perform the method of the embodiment shown in fig. 4, and reference may be made to the related description of the embodiment shown in fig. 4 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 4, and are not described herein again.
Fig. 9 is a schematic structural diagram of a fourth live recording statistics apparatus according to an embodiment of the present invention, and as shown in fig. 9, the live recording statistics apparatus includes: a receiving module 31, a sending module 32, and a detecting module 33.
A receiving module 31, configured to receive a live video stream sent by a main broadcast client;
a sending module 32, configured to send a broadcast notification to the server if the receiving module receives a live video stream sent by the anchor client, where the broadcast notification includes an anchor identifier and a broadcast identifier;
a detection module 33, configured to detect whether a live video stream is cut off;
the sending module 32 is further configured to send a broadcast closing notification to the server if the live video stream is cut off, where the broadcast closing notification includes a main broadcast identifier and a broadcast closing identifier, and the broadcast opening identifiers correspond to the broadcast closing identifiers one to one.
Optionally, the receiving module 31 is further configured to receive a stream pushing address sent by the anchor client.
Optionally, the apparatus further comprises: and the analysis module is used for analyzing the anchor identification, the start playing identification and the close playing identification from the stream pushing address.
The apparatus shown in fig. 9 can execute the method of the embodiment shown in fig. 5, and reference may be made to the related description of the embodiment shown in fig. 5 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution are described in the embodiment shown in fig. 5, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and certainly, the embodiments can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., which includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A live recording statistical method is characterized by comprising the following steps:
receiving an broadcasting notification sent by a CDN node every time, wherein the broadcasting notification comprises a main broadcasting identifier and a broadcasting identifier;
receiving a broadcast closing notification sent by the CDN node each time, wherein the broadcast closing notification comprises the anchor identifier and a broadcast closing identifier;
according to the preset one-to-one correspondence between the on-air identification and the off-air identification, counting the live broadcast records corresponding to the anchor identification;
the counting of the live broadcast records corresponding to the anchor broadcast identification according to the one-to-one correspondence between the preset on-broadcast identification and the off-broadcast identification comprises the following steps:
according to the receiving time difference, carrying out validity filtration on the received adjacent on-air notification and off-air notification;
determining the on-off broadcasting corresponding relationship between the filtered on-off broadcasting notification and the filtered off-off broadcasting notification as follows: according to the receiving time sequence, the filtered previous effective broadcasting notification corresponds to the next effective broadcasting closing notification, and the broadcasting closing notification with the broadcasting closing correspondence has different identifications;
and counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation.
2. The method of claim 1, wherein before receiving the broadcast notification sent by the CDN node each time, the method further comprises:
responding to a current broadcasting request of a main broadcasting client, and determining a stream pushing address corresponding to the broadcasting request, wherein the stream pushing address comprises a main broadcasting identifier, and a broadcasting identifier and a broadcasting closing identifier corresponding to the broadcasting request;
and sending the streaming address to the anchor client so that the anchor client pushes the live video stream to the corresponding CDN node according to the streaming address.
3. The method according to claim 1, wherein the counting the live broadcast records corresponding to the anchor identifier according to a preset one-to-one correspondence between the on-broadcast identifier and the off-broadcast identifier includes:
according to the comparison result of the receiving time difference between the ith broadcast closing notice and the (i + 1) th broadcast opening notice and a preset time difference threshold value, carrying out validity filtration on each broadcast opening notice and each broadcast closing notice received;
determining the on-off broadcasting corresponding relation between the on-off broadcasting notice and the off-off broadcasting notice after filtering;
and counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation.
4. The method according to claim 3, wherein the counting live broadcast records corresponding to the anchor identifier according to the on-off broadcast correspondence includes:
determining the live broadcast times corresponding to the anchor identification according to the number of the on-off broadcast corresponding relation; and/or the presence of a gas in the gas,
and determining the live broadcast time length of each live broadcast corresponding to the anchor broadcast identification according to the one-to-one correspondence between the broadcast identification and the broadcast closing identification corresponding to each on-off broadcast corresponding relation.
5. The method according to claim 4, wherein determining the live broadcast duration of each live broadcast corresponding to the anchor broadcast identifier according to a one-to-one correspondence between the broadcast identifier and the broadcast identifier corresponding to each on-off broadcast correspondence relationship includes:
for any on-off broadcasting corresponding relation, if the on-off broadcasting identification and the off-broadcasting identification corresponding to the on-off broadcasting corresponding relation have one-to-one correspondence, determining that a first receiving time difference between the corresponding on-off broadcasting notice and the corresponding off-on broadcasting notice is a live broadcasting time of one-time live broadcasting;
if the on-air identifier and the off-air identifier corresponding to any one on-off-air corresponding relationship do not have one-to-one correspondence, determining a first receiving time difference between the corresponding on-air notification and the corresponding off-air notification, and a second receiving time difference between each pair of the on-air notification and the off-air notification which are filtered out between the corresponding on-air notification and the corresponding off-air notification;
and determining the live broadcast time length of one-time live broadcast according to the difference value of the first receiving time difference and the second receiving time difference.
6. A live recording statistical method is characterized by comprising the following steps:
if receiving a live video stream sent by a main broadcast client, sending a broadcast notification to a server, wherein the broadcast notification comprises a main broadcast identifier and a broadcast identifier;
responding to the cut-off of the live video stream, and sending a broadcasting closing notice to the server, wherein the broadcasting closing notice comprises the anchor identification and the broadcasting closing identification;
the broadcasting identifiers correspond to the broadcasting identifiers one to one, so that the server filters the effectiveness of the received adjacent broadcasting notifications and the broadcasting identifiers according to the receiving time difference, and determines the broadcasting-on-off corresponding relation between the filtered broadcasting notifications and the filtered broadcasting-off notifications; and counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation, wherein the on-off broadcast corresponding relation is as follows: and according to the receiving time sequence, the filtered previous effective broadcasting notification corresponds to the next effective broadcasting closing notification, and the broadcasting closing notification with the broadcasting closing correspondence has different identifications.
7. The method of claim 6, wherein before sending the on-air notification to the server if receiving the live video stream sent by the anchor client, further comprising:
receiving a stream pushing address sent by the anchor client;
and analyzing the anchor identification, the broadcast identification and the broadcast closing identification from the stream pushing address.
8. A live recording statistics apparatus, comprising:
the system comprises a receiving module, a judging module and a processing module, wherein the receiving module is used for receiving an on-air notification and an off-air notification which are sent by a CDN node each time, the on-air notification comprises a main broadcast identifier and an on-air identifier, and the off-air notification comprises the main broadcast identifier and an off-air identifier;
the counting module is used for counting the live broadcast records corresponding to the anchor broadcast identification according to the preset one-to-one correspondence between the broadcast identification and the closed broadcast identification, wherein the counting module is specifically used for: according to the receiving time difference, carrying out validity filtration on the received adjacent on-air notification and off-air notification; determining the on-off broadcasting corresponding relation between the on-off broadcasting notice and the off-off broadcasting notice after filtering; and counting the live broadcast record corresponding to the anchor identification according to the on-off broadcast corresponding relation, wherein the on-off broadcast corresponding relation is as follows: and according to the receiving time sequence, the filtered previous effective broadcasting notification corresponds to the next effective broadcasting closing notification, and the broadcasting closing notification with the broadcasting closing correspondence has different identifications.
9. The apparatus of claim 8, further comprising:
the determining module is used for responding to a current broadcast request of a main broadcast client, and determining a stream pushing address corresponding to the broadcast request, wherein the stream pushing address comprises the main broadcast identification, and a broadcast identification and a broadcast closing identification corresponding to the broadcast request;
and the sending module is used for sending the streaming address to the anchor client so that the anchor client can push the live video stream to the corresponding CDN node according to the streaming address.
10. A live recording statistics apparatus, comprising:
the receiving module is used for receiving a live video stream sent by a main broadcasting client;
the sending module is used for sending a broadcast notification to a server if the receiving module receives the live video stream sent by the anchor client, wherein the broadcast notification comprises an anchor identifier and a broadcast identifier;
the detection module is used for detecting whether the live video stream is cut off;
the sending module is further configured to send a broadcast closing notification to the server if the live video stream is interrupted, where the broadcast closing notification includes the anchor broadcast identifier and a broadcast closing identifier, so that the server performs validity filtering on the received adjacent broadcast opening notification and broadcast closing notification according to a receiving time difference, and determines a broadcast opening and closing corresponding relationship between the filtered broadcast opening notification and broadcast closing notification; and counting live broadcast records corresponding to the anchor identification according to the on-off broadcast corresponding relationship, wherein the on-off broadcast identification corresponds to the on-off broadcast identification one by one, and the on-off broadcast corresponding relationship is as follows: and according to the receiving time sequence, the filtered previous effective broadcasting notification corresponds to the next effective broadcasting closing notification, and the broadcasting closing notification with the broadcasting closing correspondence has different identifications.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710150580.6A CN106954079B (en) | 2017-03-14 | 2017-03-14 | Live broadcast record statistical method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710150580.6A CN106954079B (en) | 2017-03-14 | 2017-03-14 | Live broadcast record statistical method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106954079A CN106954079A (en) | 2017-07-14 |
| CN106954079B true CN106954079B (en) | 2020-03-17 |
Family
ID=59467475
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710150580.6A Expired - Fee Related CN106954079B (en) | 2017-03-14 | 2017-03-14 | Live broadcast record statistical method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106954079B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107613316B (en) * | 2017-09-07 | 2020-01-03 | 武汉斗鱼网络科技有限公司 | Live network push stream verification method and system |
| CN109802932B (en) * | 2017-11-17 | 2022-04-12 | 华为技术有限公司 | A method and device for live communication |
| CN107948596A (en) * | 2017-11-27 | 2018-04-20 | 江西文文网络科技有限公司 | A kind of villages and towns management system |
| CN110896504A (en) * | 2019-11-06 | 2020-03-20 | 南天亮 | Anchor duration statistical method and device |
| CN111787347A (en) * | 2020-07-15 | 2020-10-16 | 广州繁星互娱信息科技有限公司 | Live broadcast time length calculation method, live broadcast display method, device and equipment |
| CN112218175B (en) * | 2020-12-09 | 2021-03-02 | 深圳市房多多网络科技有限公司 | Processing method and device for live broadcast room state and computing equipment |
| CN119255003A (en) * | 2024-12-06 | 2025-01-03 | 杭州面朝信息科技有限公司 | Live data statistics method, electronic device and storage medium |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20090004122A (en) * | 2007-07-06 | 2009-01-12 | (주)유비티즌 | How to Provide Broadcasting Consignment Service Using the Internet |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106488256B (en) * | 2015-08-24 | 2019-12-10 | 北京国双科技有限公司 | data processing method and device |
| CN105656917B (en) * | 2016-02-02 | 2018-11-16 | 广州华多网络科技有限公司 | Control the method and device that online direct broadcast band starts broadcasting |
| CN106331739B (en) * | 2016-09-05 | 2019-05-03 | 广州爱九游信息技术有限公司 | Live broadcasting method, equipment, server, system and live state monitoring method |
| CN106303589B (en) * | 2016-09-05 | 2019-08-13 | 腾讯科技(深圳)有限公司 | A live broadcast control method and device |
| CN106488270B (en) * | 2016-09-08 | 2020-12-11 | 广州华多网络科技有限公司 | Live broadcast room switching method and device |
-
2017
- 2017-03-14 CN CN201710150580.6A patent/CN106954079B/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20090004122A (en) * | 2007-07-06 | 2009-01-12 | (주)유비티즌 | How to Provide Broadcasting Consignment Service Using the Internet |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106954079A (en) | 2017-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107105309B (en) | Live broadcast scheduling method and device | |
| US11837075B2 (en) | Processing alarm signals | |
| CN106878769B (en) | Live video quality monitoring method and device | |
| CN107277160B (en) | Content distribution network node switching method and device | |
| KR101564077B1 (en) | Method, apparatus, and system for locating iptv fault | |
| CN107040816B (en) | Client application operation abnormity analysis method and device | |
| EP3448040A1 (en) | Live broadcast rapid-startup method and system | |
| CN106954079A (en) | Live record statistical method and device | |
| CN104883618B (en) | Programme televised live tries method, apparatus and system | |
| CN110300307B (en) | Live broadcast interaction method and device, live broadcast server and storage medium | |
| CN105635180B (en) | Information push method and device | |
| CN103974139B (en) | Method and device for detecting network faults of terminal and system | |
| CN110996109A (en) | Abnormal live broadcast room cleaning method and device, live broadcast server and storage medium | |
| US10015552B2 (en) | Method of validating an electronic vote | |
| CN106254954B (en) | A kind of method and apparatus sending live streaming notice | |
| KR102388966B1 (en) | Media channel identification method and system with multi-match detection and disambiguation based on single-match | |
| WO2014110911A1 (en) | Fault processing method and apparatus in iptv system | |
| CN112565016B (en) | Positioning method, system and device for abnormal time delay, electronic equipment and storage medium | |
| CN106060663A (en) | Method and system for monitoring video smoothness in live video streaming process | |
| CN107404670A (en) | A kind of video playing control method and device | |
| CN113423008B (en) | Video data transmission method, server and viewer side equipment | |
| CN113242437A (en) | RTSP (real time streaming protocol) video plug-in-free playing method, system, device and storage medium | |
| CN107734362A (en) | The determination method, apparatus and computer-readable recording medium of a kind of video source | |
| CN108156473A (en) | A kind of method and system for obtaining live data | |
| CN101669362B (en) | Channel selection information transmission device and channel selection information transmission method |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20210318 Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing Patentee after: Beijing longzhixin Technology Co.,Ltd. Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing Patentee before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200317 |