CN116095369A - Live broadcast control method and device, video cloud platform and storage medium - Google Patents

Live broadcast control method and device, video cloud platform and storage medium Download PDF

Info

Publication number
CN116095369A
CN116095369A CN202211710636.6A CN202211710636A CN116095369A CN 116095369 A CN116095369 A CN 116095369A CN 202211710636 A CN202211710636 A CN 202211710636A CN 116095369 A CN116095369 A CN 116095369A
Authority
CN
China
Prior art keywords
live
live broadcast
client
video
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211710636.6A
Other languages
Chinese (zh)
Inventor
刘波宏
宋南杰
朱龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huacheng Network Technology Co ltd
Original Assignee
Hangzhou Huacheng Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Network Technology Co ltd filed Critical Hangzhou Huacheng Network Technology Co ltd
Priority to CN202211710636.6A priority Critical patent/CN116095369A/en
Publication of CN116095369A publication Critical patent/CN116095369A/en
Pending legal-status Critical Current

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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2407Monitoring of transmitted content, e.g. distribution time, number of downloads
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to a live control method, a live control device, a video cloud platform and a storage medium, wherein the live control method comprises the following steps: responding to a video playing request of a client for a target live address, acquiring flow distribution data and client information based on the video playing request, and counting live flow of the target live address according to the flow distribution data and the client information to obtain a flow counting result; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result. The live traffic statistics method and the live traffic statistics system have the advantages that live traffic statistics is completed on the video cloud platform, dependence on data reported by a client is reduced, the problem that traffic statistics results are maliciously tampered is avoided, and accordingly the credibility of traffic statistics information is improved.

Description

Live broadcast control method and device, video cloud platform and storage medium
Technical Field
The application relates to the technical field of video clouds, in particular to a live broadcast control method and device, a video cloud platform and a storage medium.
Background
The video cloud is a cloud computing scheme which adopts videos as 'cloud' to present processing results to 'terminals'. The cloud live broadcast system can adapt to various industrial scenes such as education, cultivation, travel and the like by providing cloud live broadcast capability. In the live broadcast field, in order to provide a live broadcast service of a high-definition process, live broadcast access control needs to be performed based on dimensions such as user information, concurrency, traffic, bandwidth and the like.
At present, the access control for live broadcast is often performed based on the flow information reported by the player statistics of the client, and the reliability of the flow statistics is affected because the information reported by the client has the probability of being tampered maliciously.
Aiming at the problem of low reliability of flow statistical information required by live access control in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The embodiment provides a live broadcast control method, a live broadcast control device, a video cloud platform and a storage medium, so as to solve the problem that the reliability of flow statistical information required by live broadcast access control is low in the related technology.
In a first aspect, in this embodiment, a live broadcast control method is provided, which is used for a video cloud platform, and includes:
responding to a video playing request of a client for a target live address, acquiring flow distribution data and client information based on the video playing request, and counting live flow of the target live address according to the flow distribution data and the client information to obtain a flow counting result;
and performing access control on the video playing request based on preset live broadcast configuration information and the flow statistics result.
In some embodiments, the responding to the video playing request of the client for the target live address, collecting traffic distribution data and client information based on the video playing request, and counting live traffic of the target live address according to the traffic distribution data and the client information to obtain a traffic statistics result, including:
responding to a video playing request of the client for the target live address, making a playing file for the video playing request, updating flow distribution data stored by the video cloud platform based on the playing file, and updating the client information stored by the video cloud platform based on the video playing request;
and based on the updated flow distribution data and the client information, carrying out live broadcast flow statistics on the target live broadcast address to obtain a flow statistics result.
In some embodiments, the responding to the video playing request of the client for the target live address, making a playing file for the video playing request, updating the traffic distribution data stored by the video cloud platform based on the playing file, updating the client information stored by the video cloud platform based on the video playing request, and the method comprises the following steps:
under the condition that a video playing request of the client to the target live broadcast address is received, a playing file is made according to the video playing request, data information of the playing file and client information for sending the video playing request are written into a service log of the video cloud platform, so that the flow distribution data and the client information recorded in the service log are updated.
In some embodiments, the counting the live traffic of the target live address according to the traffic distribution data and the client information, to obtain a traffic counting result, includes:
based on the updated flow distribution data and the client information, obtaining the resource information consumed by the target live address and the client concurrency information;
and counting the resource information and the concurrent information of the client according to a preset time dimension to obtain the flow counting result.
In some embodiments, the access control for the video playing request based on the preset live broadcast configuration information and the traffic statistics includes:
under the condition that the preset live broadcast configuration information is updated, the updated live broadcast configuration information is validated in real time; the live broadcast configuration information comprises live broadcast state configuration and user access configuration;
and performing access control on the video playing request based on live state configuration and the user access configuration which take effect in real time.
In some embodiments, the access control to the video playing request based on the preset live broadcast configuration information and the traffic statistics result further includes:
and verifying the video playing request based on the preset live broadcast configuration information and the flow statistics result, and allowing the client to pull the direct broadcast video stream under the condition that the verification result accords with the preset verification condition.
In a second aspect, in this embodiment, a live broadcast control apparatus is provided, which is used for a video cloud platform, and includes: a statistics module and a control module; wherein:
the statistics module is used for responding to a video playing request of a client for a target live broadcast address, collecting flow distribution data and client information based on the video playing request, and counting live broadcast flow of the target live broadcast address according to the flow distribution data and the client information to obtain a flow statistics result;
the control module is used for performing access control on the video playing request based on preset live broadcast configuration information and the flow statistics result.
In a third aspect, in this embodiment, there is provided a video cloud platform, including: the video distribution module and the live broadcast management module;
the video distribution module is used for responding to a video playing request of the client to the target live address, and collecting flow distribution data and client information based on the video playing request of the client;
the live broadcast management module is used for counting the live broadcast flow of the target live broadcast address according to the flow distribution data and the client information to obtain a flow counting result; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result.
In some of these embodiments, the live management module obtains the traffic distribution data and the client information from the video distribution module based on a message queue.
In a fourth aspect, in this embodiment, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the live broadcast control method described in the first aspect when executing the computer program.
In a fifth aspect, in this embodiment, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the live control method described in the first aspect above.
Compared with the related art, the live broadcast control method, the live broadcast control device, the video cloud platform and the storage medium provided in the embodiment respond to the video playing request of the client for the target live broadcast address, acquire flow distribution data and client information based on the video playing request, and count live broadcast flow of the target live broadcast address according to the flow distribution data and the client information to obtain a flow statistics result; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result. The live traffic statistics method and the live traffic statistics system have the advantages that live traffic statistics is completed on the video cloud platform, dependence on data reported by a client is reduced, the problem that traffic statistics results are maliciously tampered is avoided, and accordingly the credibility of traffic statistics information is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a hardware configuration block diagram of a terminal of the live control method of the present embodiment;
fig. 2 is a flowchart of a live control method of the present embodiment;
fig. 3 is a schematic structural diagram of live configuration information of the present embodiment;
fig. 4 is a schematic diagram of verification logic of live control of the present embodiment;
fig. 5 is a flowchart of the live traffic calculation method of the present preferred embodiment;
fig. 6 is a block diagram of the structure of the live control apparatus of the present embodiment;
fig. 7 is a schematic structural diagram of the video cloud platform of the present embodiment;
fig. 8 is a platform frame composition of a video cloud platform.
Detailed Description
For a clearer understanding of the objects, technical solutions and advantages of the present application, the present application is described and illustrated below with reference to the accompanying drawings and examples.
Unless defined otherwise, technical or scientific terms used herein shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," "these," and the like in this application are not intended to be limiting in number, but rather are singular or plural. The terms "comprising," "including," "having," and any variations thereof, as used in the present application, are intended to cover a non-exclusive inclusion; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (units) is not limited to the list of steps or modules (units), but may include other steps or modules (units) not listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. Typically, the character "/" indicates that the associated object is an "or" relationship. The terms "first," "second," "third," and the like, as referred to in this application, merely distinguish similar objects and do not represent a particular ordering of objects.
The method embodiments provided in the present embodiment may be executed in a terminal, a computer, or similar computing device. For example, the method runs on a terminal, and fig. 1 is a hardware block diagram of the terminal of the live broadcast control method of the present embodiment. As shown in fig. 1, the terminal may include one or more (only one is shown in fig. 1) processors 102 and a memory 104 for storing data, wherein the processors 102 may include, but are not limited to, a microprocessor MCU, a programmable logic device FPGA, or the like. The terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the terminal. For example, the terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a live control method in the present embodiment, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-described method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. The network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a live broadcast control method is provided, fig. 2 is a flowchart of the live broadcast control method of this embodiment, and as shown in fig. 2, the flowchart includes the following steps:
step S210, responding to a video playing request of a client for a target live address, acquiring flow distribution data and client information based on the video playing request, and counting live flow of the target live address according to the flow distribution data and the client information to obtain a flow counting result.
The user can initiate a video playing request to the target live broadcast address by using the local client, and the video playing request is used for pulling video stream data. The video play request is sent to a live gateway of the video cloud platform, which routes it to a video distribution service of the video cloud platform. The video distribution service will generate a play file based on the video play request, which can be downloaded by the client after returning the download address of the play file to the client in a subsequent process. In addition, the video distribution service may collect traffic distribution data and client information based on the video play request. The traffic distribution data may specifically include information such as a size, a duration, and a code stream of the play file. The client information may include information about the client and the user, such as identification information of the client and the user, request records, and the like. The client may be H5 (HTML 5, hypertext 5), a Web application, a mobile terminal, or the like, and the form of the client is not particularly limited in this embodiment. In addition, the target live address can be generated manually by a user or by a video cloud platform.
Further, the video distribution service records the information of the playing file and the client information in the service log of the video cloud platform in real time while making the playing file. The log acquisition component of the video cloud platform can transmit relevant information in the service log updated in real time to the flow calculation component of the video cloud platform based on the message middleware. Then, the flow calculating component calculates and stores the information of the bandwidth consumed by each live address, the flow, the concurrency of the client and the like according to the preset time dimension, for example, according to the minute dimension based on the related information in the service log, and updates the residual flow of each live address, thereby obtaining the flow statistical result.
In the related art, live broadcast flow statistics is completed through a client, and a flow statistics result is reported. Compared with the problem that in the related art, the traffic statistics mode is tampered maliciously, so that the reliability of the statistics result is low, in the embodiment, live traffic statistics is completed on the basis of the video playing request of the client side in the video cloud platform, and the problem that the reliability and the accuracy are low due to the fact that the statistics result is tampered or influenced by the client side network can be avoided. In addition, in the embodiment, live broadcast flow calculation is deployed on the cloud platform side, and the client only needs to perform access operation of a live broadcast address, so that the embodiment also reduces dependence on the client and reduces service coupling between the cloud platform side and the client.
Step S220, access control is carried out on the video playing request based on preset live broadcast configuration information and flow statistics results.
Specifically, the preset live broadcast configuration information refers to configuration information of a control policy for live broadcast access. For example, the live configuration information may include a live status configuration and a user access configuration. In the live broadcast state configuration, the configuration of information such as a live broadcast on state, a live broadcast off state, a live broadcast time plan and the like can be carried out; in the user access configuration, configuration of information such as flow restriction, bandwidth restriction, and concurrency restriction may be performed. It should be understood that the foregoing configuration examples are merely illustrative of live configuration information, and those skilled in the art may perform configuration of other information according to the needs of the actual application scenario, which is not limited herein in detail.
Additionally, after the live broadcast configuration information is adjusted or updated, the video cloud platform stores the configuration, refreshes the live broadcast state based on the latest live broadcast configuration information, and performs access control on the video playing request based on the latest live broadcast configuration information and the flow statistics result. For example, when a client performs live access, a corresponding video playing request is forwarded to a live gateway of a video cloud platform, after the live gateway performs basic authentication, a legal video playing request is forwarded to a live control component in the video cloud platform, the live control component determines an access control strategy and a live address state based on current latest live configuration information, determines a traffic consumption condition based on a traffic statistics result, and then determines whether the client is allowed to perform live streaming or not according to the information. If so, a signal that the verification passed can be returned to the live gateway. If not, returning various abnormal error codes which are not passed by verification to the live gateway. The live broadcast gateway forwards or refuses the video playing request of the client based on the returned information. The above-mentioned check may include, for example, a live broadcast on check, a concurrent limited check, a bandwidth limited check, a traffic limited check, and the like.
According to the method, the device and the system, the flow statistics and the live broadcast access control are deployed on the video cloud platform side, so that the limitation of a user on the use of the client is eliminated, the user can conveniently select a third party playing component which is open source or self-research as the client to access the live broadcast address, and the reliability and the safety of the live broadcast flow statistics result are improved, and meanwhile the convenience of the user in using the client is improved.
Step S210 to step S220 are carried out, in response to a video playing request of a client for a target live broadcast address, flow distribution data and client information are collected based on the video playing request, live broadcast flow of the target live broadcast address is counted according to the flow distribution data and the client information, and a flow counting result is obtained; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result. The live traffic statistics method and the live traffic statistics system have the advantages that live traffic statistics is completed on the video cloud platform, dependence on data reported by a client is reduced, the problem that traffic statistics results are maliciously tampered is avoided, and accordingly the credibility of traffic statistics information is improved.
Further, in one embodiment, based on the step S210, in response to a video playing request of the client for the target live address, traffic distribution data and client information are collected based on the video playing request, and live traffic of the target live address is counted according to the traffic distribution data and the client information, so as to obtain a traffic counting result, which specifically may include the following steps:
step S211, responding to a video playing request of a client for a target live broadcast address, making a playing file for the video playing request, updating flow distribution data stored by a video cloud platform based on the playing file, and updating client information stored by the video cloud platform based on the video playing request;
and step S212, based on the updated flow distribution data and the client information, carrying out live broadcast flow statistics on the target live broadcast address to obtain a flow statistics result.
Through the above steps S211 and S212, the traffic distribution data is updated based on the play file, thereby improving the accuracy of the subsequent traffic statistics.
Further, in one embodiment, based on the step S211, in response to the video playing request of the client for the target live address, a playing file is made for the video playing request, and based on the playing file, the flow distribution data stored in the video cloud platform is updated, and based on the video playing request, the updating the client information stored in the video cloud platform may specifically include: under the condition that a video playing request of a client to a target live broadcast address is received, a playing file is made according to the video playing request, data information of the playing file and client information for sending the video playing request are written into a service log of a video cloud platform, so that flow distribution data and the client information recorded in the service log are updated.
According to the embodiment, the flow distribution data and the client information are updated to the service log in real time based on the video playing request of the client, and the live flow is counted in real time based on the related information in the service log, so that the playing operation of the client is matched with the flow counting result, the accuracy of the counting result is improved, and the credibility and the safety of the data are improved.
Additionally, in one embodiment, based on the step S210, the live traffic of the target live address is counted according to the traffic distribution data and the client information to obtain a traffic counting result, which specifically includes the following steps:
step S211, based on the updated flow distribution data and the client information, obtaining the resource information consumed by the target live address and the client concurrency information. In particular, the resource information consumed by the target live address may include bandwidth information and traffic information. The client concurrency information may specifically be a client concurrency number.
And S212, counting the resource information and the concurrent information of the client according to a preset time dimension to obtain a flow counting result. For example, the bandwidth and traffic consumed by each live address and the number of client concurrency corresponding to each live address may be calculated in the minute dimension, and the remaining traffic updated.
Step S211 to step S212 are described above, and based on the updated traffic distribution data and the client information, traffic statistics is performed according to a preset time dimension, so as to obtain a traffic statistics result, which can improve the accuracy of the traffic statistics result.
Additionally, in one embodiment, based on the step S220, based on the preset live broadcast configuration information and the traffic statistics result, the access control on the video playing request may specifically include the following steps:
step S221, under the condition that the preset live broadcast configuration information is updated, the updated live broadcast configuration information is validated in real time; the live broadcast configuration information comprises live broadcast state configuration and user access configuration.
Preferably, the live configuration may specifically include a live status configuration and a user access configuration. Fig. 3 is a schematic structural diagram of live broadcast configuration information in this embodiment. As shown in fig. 3, in the live status configuration, configurations such as turning on live, turning off live, and setting a live schedule may be included. The live state configuration may be a configuration based on a live address dimension, and different live addresses may be configured in different live states. In addition, by setting a live program, the live state can be updated regularly. In the user access configuration, configurations of traffic restrictions, bandwidth restrictions, and concurrency restrictions may be included, configuring available traffic, available bandwidth, and available concurrency in the user dimension. Wherein the configuration for user access can be shared on all live addresses under the same user name.
After the configuration manager completes adjustment or update of the live broadcast configuration information, the video cloud platform stores the live broadcast configuration information, and after the live broadcast configuration information is successfully stored, relevant information of the live broadcast address on the line is refreshed based on the latest live broadcast configuration information so as to realize real-time effective configuration of the information.
Step S222, based on live state configuration and user access configuration which are effective in real time, performing access control on the video playing request.
Specifically, whether live broadcasting is started or not can be checked based on the live broadcasting state configuration information, concurrency, bandwidth and flow are checked and limited based on the user access configuration, a client is operated to conduct live broadcasting and stream pulling after the verification is passed, and corresponding error prompt information is returned to the client under the condition that the verification is not passed, so that live broadcasting access control of the client is achieved. According to the embodiment, the live broadcast configuration information can be flexibly adjusted based on actual service requirements, so that live broadcast behaviors of the client can be controlled in real time and flexibly. The validation of the live broadcast configuration information is completed on the video cloud platform without the need of matching upgrading of the client, so that the flexibility and convenience of adjustment of the live broadcast configuration information are improved.
Additionally, in one embodiment, based on the step S220, based on the preset live broadcast configuration information and the traffic statistics result, the access control on the video playing request may specifically include the following steps:
step S223, based on the preset live broadcast configuration information and the flow statistics result, the video playing request is checked, and the client is allowed to pull the direct broadcast video stream under the condition that the check result accords with the preset check condition.
Fig. 4 is a schematic diagram of verification logic of live control in the present embodiment. As shown in fig. 4, the live broadcast control component of the video cloud platform may sequentially perform the following verification steps for a live broadcast access request of a client:
step S401, checking whether live broadcast is started, if so, executing step S402, otherwise, prompting that live broadcast is not started;
step S402, checking whether concurrency is limited, if so, prompting that concurrency is limited, otherwise, executing step S403;
step S403, checking whether the bandwidth is limited, if yes, prompting that the bandwidth is insufficient, otherwise, executing step S404;
step S404, checking whether the flow is limited, if yes, prompting the insufficient flow, otherwise, checking pass.
Specifically, the current live broadcast state is queried based on the target live broadcast address, and if the live broadcast is closed or not in the configured live broadcast period, the live broadcast state is closed, and the client is prompted to not start the live broadcast. Based on the live address query associated user information and live configuration information such as the current maximum client concurrency number, the maximum bandwidth, the residual available flow and the like supported by the current user, comparing and calculating the live configuration information with the current occupied bandwidth, the flow consumption information and the client concurrency number in the read real-time flow statistical result, and checking whether the user resources are limited or not, if so, the client cannot pull the video stream. The embodiment realizes the access control to the client based on the live broadcast configuration information, and improves the flexibility and convenience of live broadcast access control.
The present embodiment is described and illustrated below by way of preferred embodiments.
Fig. 5 is a flowchart of the live traffic calculation method of the present preferred embodiment. As shown in fig. 5, the live traffic calculation method includes the following steps:
step S501, a client initiates a video playing request to a video cloud platform;
step S502, the video distribution service responds to the video playing request of the client to make a playing file, and prints a key log to the log service based on the information of the playing file and the client information;
step S503, a log acquisition component acquires a log;
step S504, the log acquisition component formats the log and transmits the formatted log to the flow calculation component through the message middleware;
in step S505, the flow calculation component performs flow summary calculation based on the log, to obtain a flow statistical result.
The embodiment also provides a live broadcast control device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. The terms "module," "unit," "sub-unit," and the like as used below may refer to a combination of software and/or hardware that performs a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 6 is a block diagram of the live control apparatus 60 of the present embodiment, and as shown in fig. 6, the live control apparatus 60 includes: a statistics module 62 and a control module 64; wherein:
the statistics module 62 is configured to respond to a video playing request of the client for the target live address, collect traffic distribution data and client information based on the video playing request, and statistics live traffic of the target live address according to the traffic distribution data and the client information to obtain a traffic statistics result;
the control module 64 is configured to access-control the video playing request based on the preset live broadcast configuration information and the flow statistics result.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
Also provided in this embodiment is a video cloud platform 70, fig. 7 is a schematic structural diagram of the video cloud platform of this embodiment, and as shown in fig. 7, the video cloud platform 70 includes: a video distribution module 72 and a live management module 74; the video distribution module 72 is configured to collect, in response to a video play request of the client for the target live address, traffic distribution data and client information based on the video play request of the client; the live broadcast management module 74 is configured to count live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, and obtain a traffic statistics result; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result.
Fig. 8 is a platform frame composition of the video cloud platform. As shown in fig. 8, the live management module 74 includes a live management background, a live control component, and a flow calculation component. Included in the video distribution module 72 are a live gateway, video distribution services, and log collection components. The user initiates a request to the live gateway through the live client, and the live gateway forwards the request of the live client to the video distribution service or sends the request to the live control component through a hypertext transfer protocol (Hyper Text Transfer Protocol, abbreviated as HTTP) connection. The video distribution service generates hls/flv/rtmp and other data files from different sources, and returns the data files to the live client, wherein the live client can download and play the data files. Meanwhile, the video distribution service can record client information of the live client and duration of playing files and code stream information. The log acquisition component acquires the information from the video distribution service in real time, formats the information, and transmits the information to the flow calculation component in a data reporting mode through a Message Queue (MQ for short). And after the flow calculation component acquires the flow distribution data and the client information, carrying out flow calculation to obtain a flow statistical result. And the live broadcast control component performs access control on the live broadcast access request of the live broadcast client based on live broadcast configuration information updated in real time by the live broadcast management background and the flow statistics result.
The video cloud platform 70 completes statistics of live traffic, reduces dependence on data reported by a client, and avoids the problem that traffic statistics results are maliciously tampered, thereby improving the credibility of traffic statistics information.
Further, in one embodiment, the live management module obtains traffic distribution data and client information from the video distribution module based on the message queue.
There is also provided in this embodiment an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, responding to a video playing request of a client for a target live address, acquiring flow distribution data and client information based on the video playing request, and counting live flow of the target live address according to the flow distribution data and the client information to obtain a flow counting result;
s2, based on preset live broadcast configuration information and flow statistics results, performing access control on the video playing request.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and are not described in detail in this embodiment.
In addition, in combination with the live control method provided in the above embodiment, a storage medium may be provided in this embodiment. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the live control methods of the above embodiments.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present application, are within the scope of the present application in light of the embodiments provided herein.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It is evident that the drawings are only examples or embodiments of the present application, from which the present application can also be adapted to other similar situations by a person skilled in the art without the inventive effort. In addition, it should be appreciated that while the development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as an admission of insufficient detail.
The term "embodiment" in this application means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive. It will be clear or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the patent. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (11)

1. A live broadcast control method for a video cloud platform, comprising:
responding to a video playing request of a client for a target live address, acquiring flow distribution data and client information based on the video playing request, and counting live flow of the target live address according to the flow distribution data and the client information to obtain a flow counting result;
and performing access control on the video playing request based on preset live broadcast configuration information and the flow statistics result.
2. The live broadcast control method according to claim 1, wherein the responding to the video playing request of the client for the target live broadcast address, collecting the traffic distribution data and the client information based on the video playing request, and counting the live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, to obtain the traffic statistics result, includes:
responding to a video playing request of the client for the target live address, making a playing file for the video playing request, updating flow distribution data stored by the video cloud platform based on the playing file, and updating the client information stored by the video cloud platform based on the video playing request;
and based on the updated flow distribution data and the client information, carrying out live broadcast flow statistics on the target live broadcast address to obtain a flow statistics result.
3. The live control method according to claim 2, wherein the responding to the video playing request of the client for the target live address, making a playing file for the video playing request, updating the traffic distribution data stored by the video cloud platform based on the playing file, updating the client information stored by the video cloud platform based on the video playing request, comprises:
under the condition that a video playing request of the client to the target live broadcast address is received, a playing file is made according to the video playing request, data information of the playing file and client information for sending the video playing request are written into a service log of the video cloud platform, so that the flow distribution data and the client information recorded in the service log are updated.
4. The live broadcast control method according to claim 1, wherein the counting live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, to obtain a traffic counting result, includes:
based on the updated flow distribution data and the client information, obtaining the resource information consumed by the target live address and the client concurrency information;
and counting the resource information and the concurrent information of the client according to a preset time dimension to obtain the flow counting result.
5. The live broadcast control method according to claim 1, wherein the access control of the video play request based on the preset live broadcast configuration information and the traffic statistics result includes:
under the condition that the preset live broadcast configuration information is updated, the updated live broadcast configuration information is validated in real time; the live broadcast configuration information comprises live broadcast state configuration and user access configuration;
and performing access control on the video playing request based on live state configuration and the user access configuration which take effect in real time.
6. The live control method according to any one of claims 1 to 5, wherein the access control to the video play request is performed based on preset live configuration information and the traffic statistics, further comprising:
and verifying the video playing request based on the preset live broadcast configuration information and the flow statistics result, and allowing the client to pull the direct broadcast video stream under the condition that the verification result accords with the preset verification condition.
7. A live control device for a video cloud platform, comprising: a statistics module and a control module; wherein:
the statistics module is used for responding to a video playing request of a client for a target live broadcast address, collecting flow distribution data and client information based on the video playing request, and counting live broadcast flow of the target live broadcast address according to the flow distribution data and the client information to obtain a flow statistics result;
the control module is used for performing access control on the video playing request based on preset live broadcast configuration information and the flow statistics result.
8. A video cloud platform, comprising: the video distribution module and the live broadcast management module;
the video distribution module is used for responding to a video playing request of the client to the target live address, and collecting flow distribution data and client information based on the video playing request;
the live broadcast management module is used for counting the live broadcast flow of the target live broadcast address according to the flow distribution data and the client information to obtain a flow counting result; and performing access control on the video playing request based on the preset live broadcast configuration information and the flow statistics result.
9. The video cloud platform of claim 8, wherein said live management module obtains said traffic distribution data and said client information from said video distribution module based on a message queue.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the live control method of any of claims 1 to 6.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the live control method of any of claims 1 to 6.
CN202211710636.6A 2022-12-29 2022-12-29 Live broadcast control method and device, video cloud platform and storage medium Pending CN116095369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211710636.6A CN116095369A (en) 2022-12-29 2022-12-29 Live broadcast control method and device, video cloud platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211710636.6A CN116095369A (en) 2022-12-29 2022-12-29 Live broadcast control method and device, video cloud platform and storage medium

Publications (1)

Publication Number Publication Date
CN116095369A true CN116095369A (en) 2023-05-09

Family

ID=86209670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211710636.6A Pending CN116095369A (en) 2022-12-29 2022-12-29 Live broadcast control method and device, video cloud platform and storage medium

Country Status (1)

Country Link
CN (1) CN116095369A (en)

Similar Documents

Publication Publication Date Title
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN110399550B (en) Information recommendation method and device
CN101449557B (en) Methods and apparatus for sampling usage information from a pool of terminals in a data network
CN108810116B (en) Message processing method and related product
CN113015165A (en) Internet of things platform device access method, device and system
CN105991412A (en) Method and device for pushing message
CN102047641A (en) Methods and apparatus for sampling usage information from a pool of terminals in a data network
US9369874B2 (en) Controlling network access using a wrapper application executing on a mobile device
US11356839B2 (en) Location verification and enforcement for content access devices
CN116088901A (en) Firmware upgrading method and device, electronic equipment and computer storage medium
CN113094002B (en) Message processing method, device, electronic equipment and computer medium
CN110913038A (en) IP address determination method, device, server and computer readable storage medium
CN106657116B (en) Method and device for remotely starting streaming data transmission
CN116095369A (en) Live broadcast control method and device, video cloud platform and storage medium
EP1993245A1 (en) A system and method for realizing message service
EP3758396A1 (en) Communication control device, communication setting method, communication setting program, and communication system
CN111371825A (en) Load balancing method, device and equipment based on HTTP2.0 protocol
EP2928105A2 (en) Content delivery architecture
CN112766055B (en) Stall management method, device, system, storage medium and electronic device
US10659565B2 (en) Information processing system and information processing apparatus
US10951684B2 (en) Information processing system, information processing method, user terminal and storage medium
CN115967930A (en) Data processing method, device, equipment and computer readable storage medium
CN109348413B (en) Position information sharing method, device, equipment and storage medium
CN110876852B (en) Network game data processing method and system for micro-service
CN113642047B (en) Buried point data verification method and system

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