Live broadcast control method and device, video cloud platform and storage medium
By collecting and statistically analyzing traffic distribution data and client information on the video cloud platform side, the problem of low reliability of traffic statistics information in live streaming access control is solved, achieving higher accuracy and security.
Patent Information
- Application Number
- CN202211710636.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The traffic statistics information required for live streaming access control in existing technologies has low reliability and is easily tampered with maliciously.
Traffic distribution data and client information are collected on the video cloud platform side. Traffic statistics and access control are performed through the statistics module and control module, reducing the dependence on client-reported data and updating service logs in real time to improve the accuracy and security of statistical results.
It improves the credibility of traffic statistics information, prevents malicious tampering, and enhances the flexibility of live streaming access control and user convenience.
Smart Images

Figure CN116095369B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of video cloud, and particularly relates to a live broadcast control method and device, a video cloud platform and a storage medium. BACKGROUND
[0002] A video cloud is a cloud computing scheme that uses video as a "cloud" to present processing results to a "terminal". The video cloud can adapt to various industry scenarios such as education, breeding and tourism by providing cloud live broadcast capability. In the field of live broadcast, in order to provide high-definition process live broadcast services, live broadcast access control needs to be performed based on user information, concurrency, traffic and bandwidth.
[0003] Currently, the access control of live broadcast is often performed based on traffic information reported by a player of a client. However, since the information reported by the client can be maliciously tampered with, the credibility of traffic statistics will be affected.
[0004] Currently, there is no effective solution to the problem that the credibility of traffic statistics required for live broadcast access control is low in the related art. SUMMARY
[0005] A live broadcast control method, device, video cloud platform and storage medium are provided in the embodiments to solve the problem that the credibility of traffic statistics required for live broadcast access control is low in the related art.
[0006] In a first aspect, a live broadcast control method is provided in the embodiments, and is used for a video cloud platform, and includes the following steps.
[0007] In response to a video play request of a client for a target live broadcast address, collecting traffic distribution data and client information based on the video play request, and statistically analyzing live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information to obtain a traffic statistical result.
[0008] Performing access control on the video play request based on preset live broadcast configuration information and the traffic statistical result.
[0009] In some embodiments, the step of collecting traffic distribution data and client information based on the video play request, and statistically analyzing live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information to obtain a traffic statistical result in response to the video play request of the client for the target live broadcast address includes the following steps.
[0010] In response to the video play request of the client for the target live broadcast address, a play file is made for the video play request, and the traffic distribution data stored by the video cloud platform is updated based on the play file, and the client information stored by the video cloud platform is updated based on the video play request;
[0011] Based on the updated traffic distribution data and client information, live traffic statistics are performed on the target live broadcast address to obtain a traffic statistics result.
[0012] In some embodiments, the response to the video play request of the client for the target live broadcast address, the play file is made for the video play request, and the traffic distribution data stored by the video cloud platform is updated based on the play file, and the client information stored by the video cloud platform is updated based on the video play request, including:
[0013] In the case of receiving the video play request of the client for the target live broadcast address, a play file is made for the video play request, and the data information of the play file and the client information sending the video play request are written into the service log of the video cloud platform to update the traffic distribution data and the client information recorded in the service log.
[0014] In some embodiments, the live traffic of the target live broadcast address is counted according to the traffic distribution data and the client information to obtain a traffic statistics result, including:
[0015] Based on the updated traffic distribution data and client information, the resource information consumed by the target live broadcast address and the client concurrency information are obtained;
[0016] The resource information and the client concurrency information are counted according to a preset time dimension to obtain the traffic statistics result.
[0017] In some embodiments, the access control of the video play request based on the preset live broadcast configuration information and the traffic statistics result includes:
[0018] In the case of updating the preset live broadcast configuration information, the updated live broadcast configuration information is real-time effective; wherein the live broadcast configuration information includes live broadcast state configuration and user access configuration;
[0019] Based on the real-time effective live broadcast state configuration and the user access configuration, the access control of the video play request is performed.
[0020] In some embodiments, the access control on the video play request based on the preset live configuration information and the traffic statistics result further includes:
[0021] The video play request is verified based on the preset live configuration information and the traffic statistics result, and the live video stream is allowed to be pulled by the client if the verification result meets a preset verification condition.
[0022] In a second aspect, a live control apparatus for a video cloud platform is provided in the embodiments, which includes a statistics module and a control module, and wherein:
[0023] The statistics module is configured to collect traffic distribution data and client information based on a video play request from a client to a target live address, and to obtain traffic statistics result of the target live address according to the traffic distribution data and the client information.
[0024] The control module is configured to perform access control on the video play request based on preset live configuration information and the traffic statistics result.
[0025] In a third aspect, a video cloud platform is provided in the embodiments, which includes a video distribution module and a live management module.
[0026] The video distribution module is configured to collect traffic distribution data and client information based on a video play request from a client to a target live address.
[0027] The live management module is configured to obtain traffic statistics result of the target live address according to the traffic distribution data and the client information, and to perform access control on the video play request based on preset live configuration information and the traffic statistics result.
[0028] In some embodiments, the live management module obtains the traffic distribution data and the client information from the video distribution module based on a message queue.
[0029] In a fourth aspect, an electronic apparatus is provided in the embodiments, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the live control method of the first aspect when executing the computer program.
[0030] In a fifth aspect, a storage medium is provided in the embodiments, which stores a computer program executable on a processor to implement the live control method of the first aspect.
[0031] Compared with the related art, the live broadcast control method, device, video cloud platform and storage medium provided in the embodiment, in response to a video play request of a client for a target live broadcast address, traffic distribution data and client information are collected based on the video play request, and live broadcast traffic of the target live broadcast address is counted based on the traffic distribution data and the client information to obtain a traffic counting result; and the video play request is subjected to access control based on preset live broadcast configuration information and the traffic counting result. The video cloud platform completes counting of live broadcast traffic, reduces dependence on reporting data of the client, avoids problems of malicious tampering of the traffic counting result, and thus improves credibility of traffic counting information.
[0032] The details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects and advantages of the present application more clear and easy to understand. BRIEF DESCRIPTION OF DRAWINGS
[0033] The drawings described herein are used to provide further understanding of the present application, constitute a part of the present application, and the illustrative embodiments of the present application and the description thereof are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0034] Figure 1 is a hardware structure block diagram of a terminal of the live broadcast control method of the present embodiment;
[0035] Figure 2 is a flowchart of the live broadcast control method of the present embodiment;
[0036] Figure 3 is a structure schematic diagram of live broadcast configuration information of the present embodiment;
[0037] Figure 4 is a verification logic schematic diagram of live broadcast control of the present embodiment;
[0038] Figure 5 is a flowchart of a live broadcast traffic counting method of the present preferred embodiment;
[0039] Figure 6 is a structure block diagram of a live broadcast control device of the present embodiment;
[0040] Figure 7 is a structure schematic diagram of a video cloud platform of the present embodiment;
[0041] Figure 8 is a platform architecture diagram of the video cloud platform. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clear, the present application is described and explained below in combination with the drawings and embodiments.
[0043] Unless otherwise defined, technical terms or scientific terms used in the present application shall have the same meaning as those commonly understood by a person of ordinary skill in the art to which the present application belongs. The terms "one", "a", "an", "the", "these", and similar terms in the present application do not indicate quantity, and they can be singular or plural. The terms "include", "contain", "have", and any variants thereof in the present application are intended to cover non-exclusive inclusion; for example, a process, method, and system, product or device containing a series of steps or modules (units) are not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. The terms "connect", "connect", "couple" and the like in the present application are not limited to physical or mechanical connection, but can include electrical connection, whether direct or indirect. The term "multiple" in the present application refers to two or more. The term "and / or" describes the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. In general, the character " / " represents an "or" relationship between the associated objects. The terms "first", "second", "third" and the like in the present application are only used to distinguish similar objects, and do not represent a specific order of the objects.
[0044] The method embodiments provided in the present embodiment can be executed in a terminal, a computer or a similar computing device. For example, the method embodiments are executed on a terminal, Figure 1 is a hardware structure diagram of the terminal of the live broadcast control method of the present embodiment. As shown in Figure 1 , the terminal can include one or more (only one is shown in Figure 1 ) processor 102 and memory 104 for storing data, wherein the processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA. The above terminal can also include a transmission device 106 for communication function and an input / output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above terminal. For example, the terminal can include more or less components than those shown in Figure 1 , or have a different configuration from that shown in Figure 1 .
[0045] The memory 104 can be configured to store computer programs, for example, software programs of application software and modules, such as a computer program corresponding to the live broadcast control method in the embodiment. The processor 102 can execute various functional applications and data processing, i.e., implement the method described above, by running the computer program stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0046] The transmission device 106 is configured to receive or send data via a network. The network includes a wireless network provided by a communication provider of the terminal. In an example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 106 can be a radio frequency (RF) module, which is configured to communicate with the Internet in a wireless manner.
[0047] In the embodiment, a live broadcast control method is provided, Figure 2 is a flowchart of the live broadcast control method of the embodiment, as shown in Figure 2 The flowchart includes the following steps:
[0048] In step S210, in response to a video playing request of a client for a target live broadcast address, traffic distribution data and client information are collected based on the video playing request, and live broadcast traffic of the target live broadcast address is counted according to the traffic distribution data and the client information, so as to obtain a traffic counting result.
[0049] Wherein, the user can use the local client to initiate a video play request to the target live address, and the video play request is used to pull the video stream data. The video play request will be sent to the live gateway of the video cloud platform, and the live gateway will route it to the video distribution service of the video cloud platform. The video distribution service will generate a play file based on the video play request, and the play file can be downloaded by the client in the subsequent process after returning the download address of the play file to the client. In addition, the video distribution service can also collect traffic distribution data and client information based on the video play request. Wherein, the traffic distribution data here can specifically include the size, duration, code stream and other information of the play file. The client information can include the relevant information of the client and the user, such as the identification information and request record of the client and the user. The client can be H5 (HTML5, HyperText Markup Language 5), Web application, and mobile terminal, etc. The form of the client is not limited in the embodiment. In addition, the target live address can be generated manually by the user, or generated by the video cloud platform.
[0050] Further, the video distribution service will record the above information of the play file and the client information into the service log of the video cloud platform in real time while making the play file. The log collection component of the video cloud platform will deliver the related information in the real-time updated service log to the traffic calculation component of the video cloud platform based on the message middleware. Next, the traffic calculation component will calculate and store the consumed bandwidth, traffic, client concurrency and other information of each live address according to the preset time dimension, such as the minute dimension, based on the related information in the above service log, and update the remaining traffic of each live address, so as to obtain the traffic statistics result.
[0051] In the related technology, the live traffic statistics is completed by the client, and the traffic statistics result is reported. Compared with the problem that the traffic statistics method in the related technology is maliciously tampered, resulting in low credibility of the statistics result, the embodiment completes the live traffic statistics based on the video play request of the client in the video cloud platform, which can avoid the statistics result being tampered or affected by the client network, resulting in low credibility and accuracy. In addition, the embodiment deploys the live traffic calculation on the cloud platform side, and the client only needs to perform the access operation of the live address, so the embodiment also reduces the dependence on the client and reduces the coupling between the cloud platform side and the client.
[0052] Step S220, access control is performed on the video play request based on the preset live configuration information and the traffic statistics result.
[0053] Specifically, the preset live broadcast configuration information refers to configuration information of a control policy for live broadcast access. For example, the live broadcast configuration information can include live broadcast state configuration and user access configuration. In the live broadcast state configuration, the configuration of information such as an open state in which live broadcast can be performed, a closed state, and a time plan of live broadcast can be performed; in the user access configuration, the configuration of information such as traffic limitation, bandwidth limitation, and concurrency limitation can be performed. It can be understood that the above-mentioned configuration examples are only for illustrating the live broadcast configuration information, and a person skilled in the art can also perform configuration of other information according to the needs of actual application scenarios, and the embodiment is not limited specifically herein.
[0054] In addition, after the live broadcast configuration information is adjusted or updated, the video cloud platform will store the effective configuration, refresh the live broadcast state based on the latest live broadcast configuration information, and perform access control on the video playback request based on the latest live broadcast configuration information and the traffic statistical result. For example, when the client performs live broadcast access, the corresponding video playback request is forwarded to the live broadcast gateway of the video cloud platform, the live broadcast gateway performs basic authentication, and then forwards the legal video playback request to the live broadcast control component in the video cloud platform. The live broadcast control component determines the access control policy and the live broadcast address state based on the current latest live broadcast configuration information, determines the traffic consumption based on the traffic statistical result, and then determines whether to allow the client to perform live broadcast pull streaming in combination with the above information. If allowed, a verification passed signal can be returned to the live broadcast gateway. If not allowed, various types of verification failed error codes are returned to the live broadcast gateway. The live broadcast gateway forwards or rejects the video playback request of the client based on the returned information. Illustratively, the above-mentioned verification can include live broadcast opening verification, concurrency limitation verification, bandwidth limitation verification, and traffic limitation verification.
[0055] The embodiment deploys traffic statistics and live broadcast access control on the video cloud platform side, thereby eliminating the restriction of the user on the use of the client, facilitating the user to select an open source or self-developed third-party playback component as the client to access the live broadcast address, and further improving the convenience of the user using the client while improving the credibility and security of the live broadcast traffic statistical result.
[0056] The above-mentioned steps S210 to S220, in response to the video playback request of the client for the target live broadcast address, collect traffic distribution data and client information based on the video playback request, and statistically determine the live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information to obtain a traffic statistical result; and perform access control on the video playback request based on the preset live broadcast configuration information and the traffic statistical result. The video cloud platform completes the statistics of the live broadcast traffic, reduces the dependence on the reporting data of the client, avoids the problem that the traffic statistical result is maliciously tampered with, and thereby improves the credibility of the traffic statistical information.
[0057] Further, in one embodiment, based on the above step S210, in response to the video playback request of the client for the target live address, the traffic distribution data and the client information are collected based on the video playback request, and the live traffic of the target live address is counted according to the traffic distribution data and the client information, to obtain the traffic counting result, which can specifically include the following steps:
[0058] Step S211, in response to the video playback request of the client for the target live address, a playback file is made for the video playback request, and the traffic distribution data stored in the video cloud platform is updated based on the playback file, and the client information stored in the video cloud platform is updated based on the video playback request;
[0059] Step S212, based on the updated traffic distribution data and client information, live traffic of the target live address is counted to obtain the traffic counting result.
[0060] Through the above steps S211 and S212, the traffic distribution data is updated based on the playback file, thereby improving the accuracy of the subsequent traffic counting result.
[0061] Further, in one embodiment, based on the above step S211, in response to the video playback request of the client for the target live address, a playback file is made for the video playback request, and the traffic distribution data stored in the video cloud platform is updated based on the playback file, and the client information stored in the video cloud platform is updated based on the video playback request, which can specifically include: in the case that the video playback request of the client for the target live address is received, a playback file is made for the video playback request, and the data information of the playback file and the client information sending the video playback request are written into the service log of the video cloud platform to update the traffic distribution data and the client information recorded in the service log.
[0062] The embodiment can update the traffic distribution data and the client information to the service log in real time based on the video playback request of the client, and count the live traffic based on the related information in the service log in real time, so that the playback operation of the client is consistent with the traffic counting result, thereby improving the accuracy of the counting result, and improving the credibility and security of the data.
[0063] Additionally, in one embodiment, based on the above step S210, the live traffic of the target live address is counted according to the traffic distribution data and the client information, to obtain the traffic counting result, which can specifically include the following steps:
[0064] Step S211: Based on the updated traffic distribution data and client information, obtain the resource information consumed by the target live streaming address, as well as the client concurrency information. Specifically, the resource information consumed by the target live streaming address may include bandwidth information and traffic information. The client concurrency information may specifically be the number of concurrent clients.
[0065] Step S212: Statistically analyze resource information and client concurrency information according to a preset time dimension to obtain traffic statistics results. For example, the bandwidth and traffic consumed by each live stream address can be calculated by minute, as well as the number of concurrent clients corresponding to each live stream address, and the remaining traffic can be updated.
[0066] Steps S211 to S212 above, based on the updated traffic distribution data and client information, perform traffic statistics according to a preset time dimension to obtain traffic statistics results, which can improve the accuracy of traffic statistics results.
[0067] In another embodiment, based on step S220 above, and based on preset live streaming configuration information and traffic statistics results, access control is performed on video playback requests, which may specifically include the following steps:
[0068] Step S221: If the preset live streaming configuration information is updated, the updated live streaming configuration information shall be applied in real time; wherein, the live streaming configuration information includes live streaming status configuration and user access configuration.
[0069] Preferably, the live streaming configuration may specifically include live streaming status configuration and user access configuration. Figure 3 This is a schematic diagram of the structure of the live streaming configuration information in this embodiment. For example... Figure 3 As shown, the live stream status configuration can include settings such as starting the live stream, stopping the live stream, and setting a live stream schedule. This live stream status configuration can be based on the live stream address; different live stream addresses can have different live stream status configurations. Furthermore, by setting a live stream schedule, the live stream status can be updated periodically. The user access configuration can include settings for traffic limits, bandwidth limits, and concurrency limits, thereby configuring available traffic, available bandwidth, and available concurrency at the user level. The user access configuration can be shared across all live stream addresses under the same username.
[0070] After the configuration administrator completes the adjustment or update of the above live streaming configuration information, the video cloud platform will store the above live streaming configuration information. After successful storage, it will refresh the relevant information of the online live streaming address based on the latest live streaming configuration information to achieve real-time effect of the above configuration information.
[0071] Step S222: Based on the real-time effective live streaming status configuration and user access configuration, perform access control on video playback requests.
[0072] Specifically, it can be verified based on the live broadcast state configuration information whether the live broadcast is started, and based on the user access configuration whether the concurrency, bandwidth, and traffic are limited, and the client is run to pull the live stream after the verification is passed, and the corresponding error prompt information is returned to the client in the case that the verification is not passed, so as to realize the live broadcast access control of the client. The embodiment can flexibly adjust the live broadcast configuration information based on the actual business demand, so as to realize the real-time and flexible control of the live broadcast behavior of the client. The effectiveness of the live broadcast configuration information is completed in the video cloud platform, and the client does not need to be upgraded, so the flexibility and convenience of the live broadcast configuration information adjustment are improved.
[0073] In addition, in one embodiment, based on the step S220, the video playback request is subjected to access control based on the preset live broadcast configuration information and the traffic statistical result, which can specifically include the following steps:
[0074] Step S223, the video playback request is subjected to verification based on the preset live broadcast configuration information and the traffic statistical result, and in the case that the verification result meets the preset verification condition, the client is allowed to pull the live video stream.
[0075] Figure 4 The verification logic diagram of the live broadcast control of the embodiment is shown. As shown in Figure 4 The live broadcast control component of the video cloud platform can sequentially perform the following verification steps on the live broadcast access request of the client:
[0076] Step S401, it is verified whether the live broadcast is started, if yes, step S402 is executed, otherwise it is prompted that the live broadcast is not started;
[0077] Step S402, it is verified whether the concurrency is limited, if yes, it is prompted that the concurrency is limited, otherwise step S403 is executed;
[0078] Step S403, it is verified whether the bandwidth is limited, if yes, it is prompted that the bandwidth is insufficient, otherwise step S404 is executed;
[0079] Step S404, it is verified whether the traffic is limited, if yes, it is prompted that the traffic is insufficient, otherwise the verification is passed.
[0080] Specifically, the current live broadcast state is queried based on the target live broadcast address, if the live broadcast has been closed or is not within the configured live broadcast period, the live broadcast state is a closed state, and the client is prompted that the live broadcast is not started. The user information associated with the live broadcast address, the maximum number of client concurrents supported by the current user, the maximum bandwidth, and the remaining available traffic and other live broadcast configuration information are queried, which are compared and calculated with the current occupied bandwidth, traffic consumption information, and the number of client concurrents in the read real-time traffic statistics result, to check whether the user resources are limited, if yes, the client cannot pull the video stream. The embodiment realizes access control of the client based on the live broadcast configuration information, and improves the flexibility and convenience of live broadcast access control.
[0081] The embodiment is described and explained below through preferred embodiments.
[0082] Figure 5 is a flowchart of the live broadcast traffic calculation method of the preferred embodiment. As shown in Figure 5 , the live broadcast traffic calculation method includes the following steps:
[0083] Step S501, the client initiates a video playing request to the video cloud platform;
[0084] 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;
[0085] Step S503, the log collection component collects the log;
[0086] Step S504, the log collection component performs a format processing on the log, and delivers the log to the traffic calculation component through the message middleware;
[0087] Step S505, the traffic calculation component performs traffic summary calculation based on the log, to obtain a traffic statistics result.
[0088] In the embodiment, a live broadcast control device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has been described and will not be repeated. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, the realization of hardware, or a combination of software and hardware is also possible and conceived.
[0089] Figure 6 is a structural block diagram of the live broadcast control device 60 of the embodiment, as shown in Figure 6 , the live broadcast control device 60 includes a statistics module 62 and a control module 64; wherein:
[0090] The statistical module 62 is configured to collect traffic distribution data and client information based on the video play request in response to the video play request of the client for the target live broadcast address, and to count live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, so as to obtain a traffic statistical result.
[0091] The control module 64 is configured to perform access control on the video play request based on preset live broadcast configuration information and the traffic statistical result.
[0092] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. For the module implemented by hardware, each of the above modules can be located in the same processor, or each of the above modules can be located in different processors in any combination.
[0093] In the embodiment, a video cloud platform 70 is further provided, Figure 7 is a structural schematic diagram of the video cloud platform of the embodiment, as Figure 7 shown, the video cloud platform 70 includes a video distribution module 72 and a live broadcast management module 74; the video distribution module 72 is configured to collect traffic distribution data and client information based on the video play request of the client in response to the video play request of the client for the target live broadcast address; 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, so as to obtain a traffic statistical result; and to perform access control on the video play request based on preset live broadcast configuration information and the traffic statistical result.
[0094] Among them, Figure 8 is a platform architecture diagram of the video cloud platform. As Figure 8As shown, the live broadcast management module 74 includes a live broadcast management background, a live broadcast control component, and a traffic calculation component. The video distribution module 72 includes a live broadcast gateway, a video distribution service, and a log collection component. The user initiates a request to the live broadcast gateway through the live broadcast client, the live broadcast gateway forwards the request of the live broadcast client to the video distribution service or sends it to the live broadcast control component through a Hyper Text Transfer Protocol (HTTP) connection. The video distribution service generates data files in hls / flv / rtmp formats from the video data of different sources, and returns them to the live broadcast client, which can download and play. At the same time, the video distribution service records the client information of the live broadcast client and the duration and code stream information of the playback file. The log collection component collects the above information from the video distribution service in real time, formats it, and transmits it to the traffic calculation component in the form of data reporting through a Message Queue (MQ). The traffic calculation component obtains the traffic distribution data and client information, performs traffic calculation, and obtains traffic statistics results. The live broadcast control component performs access control on the live broadcast access request of the live broadcast client based on the live broadcast configuration information updated by the live broadcast management background in real time.
[0095] The video cloud platform 70 described above completes the statistics of live broadcast traffic, reduces the dependence on the data reported by the client, avoids the problem that the traffic statistics results are maliciously tampered with, and thus improves the credibility of the traffic statistics information.
[0096] Further, in an embodiment, the live broadcast management module obtains the traffic distribution data and client information from the video distribution module based on the message queue.
[0097] In the embodiment, an electronic device is also provided, which includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.
[0098] Optionally, the electronic device described above can further include a transmission device and an input / output device, wherein the transmission device is connected with the processor, and the input / output device is connected with the processor.
[0099] Optionally, in the embodiment, the processor can be configured to execute the following steps through the computer program:
[0100] S1, in response to a video playback request of a client for a target live broadcast address, collecting traffic distribution data and client information based on the video playback request, and according to the traffic distribution data and the client information, statistics the live broadcast traffic of the target live broadcast address to obtain traffic statistics results;
[0101] S2, based on the preset live broadcast configuration information and the traffic statistics result, performing access control on the video playing request.
[0102] It should be noted that the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be described herein.
[0103] In addition, in combination with the live broadcast control method provided in the above embodiments, a storage medium can also be provided to implement the embodiment. The storage medium has a computer program stored thereon. The computer program is executed by a processor to implement any one of the live broadcast control methods in the above embodiments.
[0104] It should be understood that the specific embodiments described herein are only used to explain the application, but not to limit it. According to the embodiments provided in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.
[0105] It should be noted that the 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, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0106] Obviously, the drawings are only some examples or embodiments of the present application, and those skilled in the art can also apply the present application to other similar situations according to the drawings without creative labor. In addition, it can be understood that although the work done in the development process may be complex and long, for those skilled in the art, some design, manufacture or production changes according to the technical content disclosed in the present application are only routine technical means and should not be regarded as insufficient disclosure of the present application.
[0107] The word "embodiment" in the present application means that the specific features, structures or characteristics described in combination with the embodiments can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean independence or alternative to other embodiments. Those skilled in the art can clearly or implicitly understand that the embodiments described in the present application can be combined with other embodiments without conflict.
[0108] The above embodiments only express several implementation ways of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation to the patent protection scope. It should be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A live streaming control method for a video cloud platform, characterized in that, The method comprises: In response to a video playback request of a client for a target live broadcast address, collecting traffic distribution data and client information based on the video playback request, and statistically analyzing live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, to obtain a traffic statistical result; the traffic distribution data comprises size, time length and code stream of a playback file; Performing access control on the video playback request based on preset live broadcast configuration information and the traffic statistical result; The method comprises: In response to a video playback request of a client for a target live broadcast address, collecting traffic distribution data and client information based on the video playback request, and statistically analyzing live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, to obtain a traffic statistical result; the traffic distribution data comprises size, time length and code stream of a playback file; In the case that the video playback request of the client for the target live broadcast address is received, a playback file is produced for the video playback request, data information of the playback file and client information for sending the video playback request are written into a service log of the video cloud platform in real time, so as to update the traffic distribution data and the client information recorded in the service log; 2. The live control method of claim 1, wherein, Based on the updated traffic distribution data and the client information, live broadcast traffic of the target live broadcast address is statistically analyzed in real time, to obtain a traffic statistical result. The method comprises: Based on the updated traffic distribution data and the client information, resource information consumed by the target live broadcast address and client concurrency information are obtained; 3. The live control method of claim 1, wherein, According to a preset time dimension, the resource information and the client concurrency information are statistically analyzed, to obtain the traffic statistical result. The method comprises: In the case that the preset live broadcast configuration information is updated, the updated live broadcast configuration information is effectively applied in real time; wherein, the live broadcast configuration information comprises live broadcast state configuration and user access configuration; 4. The live control method according to any one of claims 1 to 3, characterized in that, Based on the live broadcast state configuration and the user access configuration effectively applied in real time, access control is performed on the video playback request. The method comprises:
5. A live control apparatus for a video cloud platform, the apparatus comprising: a video cloud platform; a live control device; and a communication link between the live control device and the video cloud platform. Based on the preset live broadcast configuration information and the traffic statistical result, the video playback request is verified, and in the case that a verification result meets a preset verification condition, the client is allowed to pull a live broadcast video stream. The method comprises: A statistical module and a control module; wherein: The statistical module is configured to, in response to a video playback request of a client for a target live broadcast address, collect traffic distribution data and client information based on the video playback request, and statistically analyze live broadcast traffic of the target live broadcast address according to the traffic distribution data and the client information, to obtain a traffic statistical result; the traffic distribution data comprises size, time length and code stream of a playback file. The control module is configured to perform access control on the video play request based on preset live broadcast configuration information and the traffic statistical result. The traffic statistical result is obtained by collecting traffic distribution data and client information based on the video play request and performing live broadcast traffic statistics on the target live broadcast address based on the traffic distribution data and the client information. In response to the video play request of the client for the target live broadcast address, traffic distribution data and client information are collected based on the video play request, and data information of a play file and client information that sends the video play request are written into a service log of the video cloud platform in real time to update the traffic distribution data and the client information recorded in the service log.
6. A video cloud platform, characterized by, In response to the video play request of the client for the target live broadcast address, traffic distribution data and client information are collected based on the video play request, and data information of a play file and client information that sends the video play request are written into a service log of the video cloud platform in real time to update the traffic distribution data and the client information recorded in the service log. The video distribution module and the live broadcast management module; The video distribution module is configured to collect traffic distribution data and client information based on the video play request in response to the video play request of the client for the target live broadcast address, and the traffic distribution data includes size, time length and bit rate of a play file. The live broadcast management module is configured to perform access control on the video play request based on preset live broadcast configuration information and the traffic statistical result. The traffic statistical result is obtained by collecting traffic distribution data and client information based on the video play request, and performing live broadcast traffic statistics on the target live broadcast address based on the traffic distribution data and the client information. In response to the video play request of the client for the target live broadcast address, traffic distribution data and client information are collected based on the video play request, and data information of a play file and client information that sends the video play request are written into a service log of the video cloud platform in real time to update the traffic distribution data and the client information recorded in the service log. The traffic statistical result is obtained by collecting traffic distribution data and client information based on the video play request, and performing live broadcast traffic statistics on the target live broadcast address based on the traffic distribution data and the client information. The live broadcast management module obtains the traffic distribution data and the client information from the video distribution module based on a message queue.
7. The video cloud platform of claim 6, wherein, The memory stores a computer program, and the processor is configured to run the computer program to perform the live broadcast control method in any one of claims 1 to 4. 8.An electronic device comprising a memory and a processor, the electronic device comprising: The computer program is executed by the processor to implement the steps of the live broadcast control method in any one of claims 1 to 4.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that,
Citation Information
Patent Citations
CDN (Content Delivery Network) node server traffic time deduction method and system
CN106027272A
Data transmission method and device, electronic equipment and storage medium
CN115037696A