CN116132705B - Live broadcast buffer volume adjusting method, device, equipment and storage medium - Google Patents

Live broadcast buffer volume adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN116132705B
CN116132705B CN202310406644.XA CN202310406644A CN116132705B CN 116132705 B CN116132705 B CN 116132705B CN 202310406644 A CN202310406644 A CN 202310406644A CN 116132705 B CN116132705 B CN 116132705B
Authority
CN
China
Prior art keywords
user terminal
buffer
user
server
connection state
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.)
Active
Application number
CN202310406644.XA
Other languages
Chinese (zh)
Other versions
CN116132705A (en
Inventor
寿哲男
俞伟柯
章利军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Panteng Technology Co ltd
Original Assignee
Beijing Panteng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Panteng Technology Co ltd filed Critical Beijing Panteng Technology Co ltd
Priority to CN202310406644.XA priority Critical patent/CN116132705B/en
Publication of CN116132705A publication Critical patent/CN116132705A/en
Application granted granted Critical
Publication of CN116132705B publication Critical patent/CN116132705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The application relates to a method, a device, equipment and a storage medium for adjusting live broadcast buffer capacity, wherein the method comprises the following steps: acquiring a first connection state with a live broadcast end, and determining a first cache amount range of a server; acquiring a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas, wherein each user terminal area comprises at least one user terminal, and the user terminals in the same user terminal area are connected to the same server line; determining a second cache amount range of each user end area according to the second connection state and the first cache amount range of each user end area; responding to the buffer capacity adjusting instruction, and determining the buffer capacity adjusting amount of the target user terminal according to the equipment information of the target user terminal corresponding to the adjusting instruction, the number of the current connected user terminals of the server and the second buffer capacity range corresponding to the target user terminal; and sending the buffer adjustment quantity to the target user terminal. The technical effect that this application had is: for adjusting the amount of buffering according to the actual situation.

Description

Live broadcast buffer volume adjusting method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of live broadcasting, in particular to a method, a device, equipment and a storage medium for adjusting live broadcasting buffer capacity.
Background
Live broadcast has instant communication and communication modes and is favored by users, the number of active users of the live broadcast is continuously increased, the watching demands of audiences are continuously diversified, and more people not only serve as the audiences of the live broadcast, but also start to enter the live broadcast industry as a main broadcast.
However, in the live broadcast process, when a problem occurs in the network state, the live broadcast content is delayed in the transmission process, so that the live broadcast picture is blocked. To solve this problem, live content is typically cached in advance in an audio-video buffer. However, in practical applications, the buffer capacity of the live broadcast content is difficult to set according to practical situations, if the buffer capacity is too large, the live broadcast content of the live broadcast transmitting end and the live broadcast content of the receiving end may not be synchronous, and if the buffer capacity is too small, the practical problem cannot be solved.
Therefore, a method for adjusting the amount of buffering according to the actual situation is needed.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for adjusting live broadcast buffer capacity, which are used for adjusting the buffer capacity according to actual conditions.
In a first aspect, the present application provides a method for adjusting a live broadcast buffer size, which adopts the following technical scheme: acquiring a first connection state with a live broadcast end, and determining a first cache amount range of the server according to the first connection state; acquiring a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas according to the second connection state, wherein each user terminal area comprises at least one user terminal, and the user terminals in the same user terminal area are connected to the same server line; determining a second buffer capacity range of each user end area according to the second connection state of each user end area and the first buffer capacity range; responding to a buffer adjustment instruction, and determining the buffer adjustment amount of the target user terminal according to equipment information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server and a second buffer amount range corresponding to the target user terminal; and sending the buffer adjustment quantity to the target user terminal so that the target user terminal can adjust the buffer quantity according to the buffer adjustment quantity.
By adopting the technical scheme, the first connection state with the live broadcast end is acquired firstly, the first buffer memory volume range of the server can be determined according to the first connection state, and the situation that the live broadcast end is blocked when network jitter or other influences are caused can be avoided as much as possible under the premise that the normal work of the server is ensured. And further, a second connection state with each user terminal is obtained, each user terminal is divided into a plurality of user terminal areas according to the second connection state, the user terminals in the same user terminal area are connected to the same server circuit, and different user terminals can be divided into areas according to different user terminals, so that the management of the plurality of user terminals and the establishment of the buffer capacity of each user terminal are facilitated. Determining a second cache amount range of the user end region, and determining a cache adjustment amount of the target user end by combining the multi-dimension according to the equipment information of the target end corresponding to the adjustment instruction, the number of the current connected user ends of the server and the second cache amount range corresponding to the target end, so that the finally formulated cache amount is more scientific and accurate; and different buffer adjustment amounts are formulated according to different user terminals, so that all the user terminals can adjust the buffer amount according to actual conditions.
Optionally, the determining, according to the second connection state of each ue area and the first buffer size range, the second buffer size range of each ue area includes: determining a third cache amount range of each user end area according to the second connection state of each user end area; and combining the first buffer memory amount range and the third buffer memory amount range to determine a second buffer memory amount range of each user end area.
By adopting the technical scheme, the third buffer capacity range of each user terminal area is determined according to the second connection state of each user terminal area, and then the second buffer capacity range of each user terminal area is determined by combining the first buffer capacity range and the third buffer capacity range. In summary, the first buffer capacity range can avoid the situation that the playing end is blocked when the live broadcasting end is jittered or otherwise affected as much as possible under the premise of ensuring the normal operation of the server, and the third buffer capacity can set different buffer capacities of different user end areas according to actual conditions under the premise of ensuring the normal operation of the server, and the buffer capacity adjustment capacity finally sent to each user end can be more scientific and accurate by combining the first buffer capacity range and the third buffer capacity range.
Optionally, the device information includes device custom information and device network information, and determining the buffer adjustment amount of the target ue according to the device information of the target ue corresponding to the adjustment instruction, the number of the current connected ues of the server, and the second buffer amount range corresponding to the target ue includes: determining a preliminary cache amount range of the target user terminal according to the equipment self-defining information and the equipment network information; and determining the final buffer capacity of the target user terminal according to the initial buffer capacity range, the number of the current connected user terminals of the server and the second buffer capacity range corresponding to the target user terminal, wherein the final buffer capacity of the target user terminal is the buffer regulation capacity of the target user terminal.
By adopting the technical scheme, when the buffer adjustment amount of the target user terminal is determined, the buffer adjustment amount of the target user terminal is determined according to the equipment information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server and the second buffer amount range corresponding to the target user terminal. The buffer adjustment quantity of the final target end is obtained through multi-dimensional calculation, so that the final formulated buffer adjustment quantity is more accurate, the situation that the user end is blocked when watching live broadcast is reduced on the premise that too much live broadcast content is not needed to be buffered, and the experience of watching live broadcast by the user is improved.
Optionally, the device network information includes network information, terminal information and setting information, and determining, according to the device custom information and the device network information, a preliminary cache amount range of the target user terminal includes: determining an initial cache amount range according to the equipment self-defining information; according to the equipment network information, distributing the network information as a first weight; distributing the terminal information as a second weight; distributing the setting information as a third weight; combining the first weight, the second weight and the third weight to determine an adjusting range; and combining the initial buffer memory range and the adjusting range to determine the initial buffer memory range of the target user terminal.
By adopting the technical scheme, when determining the primary buffer quantity range of the target user side, the equipment user-defined information and the equipment network information need to be determined, wherein the equipment network information comprises network information, terminal information and setting information; because the network information, the terminal information and the setting information of different user terminals are different, the network information is distributed to be a first weight; distributing terminal information as a second weight; distributing the setting information as a third weight; according to different conditions of different user terminals, an adjusting range is determined, and the initial buffering capacity range of the target user terminal is determined by combining the initial buffering capacity range and the adjusting range. Different preliminary caching plans can be effectively formulated for different user ends, and the practicability is high.
Optionally, the obtaining a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas according to the second connection state, includes: the second connection state of each user end is obtained; scoring the user ends according to the second connection state to obtain state scores of the user ends; and dividing the user terminals with the state scores in the same preset interval into the same user terminal area according to the state scores to obtain at least one user terminal area.
By adopting the technical scheme, according to the second connection state of the server and each user terminal, each user terminal is scored, the state score of each user terminal is obtained, and according to the state score, the user terminals corresponding to the state scores in the same preset interval are divided into the same user terminal area. Corresponding user terminals are distributed to the same user terminal area, so that the buffer memory adjusting quantity of each user terminal can be accurately determined later.
Optionally, the obtaining the second connection state with each user terminal, after dividing each user terminal into a plurality of user terminal areas according to the second connection state, further includes: acquiring the number of the current user terminals; if the number of the current user terminals exceeds the first preset number, the user terminals in the user terminal areas are redistributed according to the number of the user terminals in the current user terminal areas; and if the number of the current user terminals is lower than a second preset number, re-dividing the user terminal areas according to the number of the user terminals of each current user terminal area.
By adopting the technical scheme, after each user terminal is divided into a plurality of user terminal areas, the user terminal areas also need to be changed in order to reasonably formulate different cache amount ranges according to different user terminal areas because the number of the users changes. If the number of the current user terminals exceeds the first preset number, the user terminals in the user terminal areas can be redistributed, so that the situation that the user terminals are blocked due to too many user terminals connected with the same server line and the user terminals are blocked is avoided as much as possible; if the number of the user terminals is lower than the second preset number, the user terminal areas can be divided again, the server circuit is reduced, the utilization rate of the server circuit is improved, and resource waste is avoided.
Optionally, after the obtaining the first connection state of the live broadcast end and determining the first buffer memory range of the server according to the first connection state, the method further includes: acquiring historical live broadcast data of the live broadcast terminal and change information of the number of the current connected user terminals of the server; combining the historical live broadcast data of the live broadcast terminal, the quantity change information and the quantity of the current connected user terminals of the server; predicting the quantity change trend of the server connected with the user terminal within a preset time length to obtain a prediction result; and adjusting the first cache amount range according to the prediction result.
By adopting the technical scheme, as the number of the user terminals changes in real time, the number change trend of the server connected with the user terminals in the preset time length is predicted by combining the historical live broadcast data of the live broadcast terminals, the number change information and the number of the current connected user terminals of the server; the first buffer volume range can be adjusted according to the quantity change trend, so that the situation that the server load is too high due to the fact that the quantity of the user terminal is suddenly increased is avoided as much as possible, and the first buffer volume range cannot meet the condition of the user terminal is further avoided.
In a second aspect, the present application provides a device for adjusting a live cache amount, the device including: the device comprises an acquisition module, a determination module, a division module and a sending module; the acquisition module is used for acquiring a first connection state with the live broadcast end; the acquisition module is also used for acquiring a second connection state with each user terminal; the determining module is used for determining a first cache amount range of the server according to the first connection state; the determining module is further configured to determine a second buffer size range of each of the user side areas according to a second connection state of each of the user side areas and the first buffer size range; the determining module is further configured to determine a cache adjustment amount of the target user terminal according to the device information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server, and a second cache amount range corresponding to the target user terminal; the dividing module is configured to divide each client into a plurality of client areas according to the second connection state, where the client areas include at least one client, and the clients in the same client area are connected to the same server line; the sending module is used for sending the buffer adjustment quantity to the target user terminal so that the target user terminal can adjust the buffer quantity according to the buffer adjustment quantity.
By adopting the technical scheme, the first cache quantity range of the server can be determined according to the first connection state, and the situation that the playing end is blocked when network jitter or other influences are caused at the live broadcasting end can be avoided as much as possible under the premise of ensuring the normal operation of the server. According to the second connection state, each user terminal is divided into a plurality of user terminal areas, and different user terminals can be divided into areas according to different user terminals, so that the plurality of user terminals can be managed conveniently, and the buffer quantity of each user terminal can be formulated. Determining a second cache amount range of the user end region, and determining a cache adjustment amount of the target user end by combining the multi-dimension according to the equipment information of the target end corresponding to the adjustment instruction, the number of the current connected user ends of the server and the second cache amount range corresponding to the target end, so that the finally formulated cache amount is more scientific and accurate; and different buffer adjustment amounts are formulated according to different user terminals, so that all the user terminals can adjust the buffer amount according to actual conditions.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme: the system comprises a processor, a memory, a user interface and a network interface, wherein the memory is used for storing instructions, the user interface and the network interface are used for communicating with other devices, and the processor is used for executing the instructions stored in the memory so as to enable the electronic device to execute the computer program of the method for adjusting the live broadcast buffer quantity.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical solutions: a computer program capable of being loaded by a processor and executing any one of the above-described methods of adjusting the amount of live cache is stored.
In summary, the present application includes at least one of the following beneficial technical effects:
1. different buffer adjustment amounts are formulated according to different user terminals, so that all the user terminals can adjust the buffer amount according to actual conditions;
2. on the premise of ensuring the normal operation of the server, the situation that the playing end is blocked when the live broadcasting end is subjected to network jitter or other influences is avoided as much as possible, and different buffer amounts of different user end areas can be set according to actual conditions, so that the buffer adjustment amount finally sent to each user end is more scientific and accurate;
3. the situation that the server load is too high due to the fact that the number of the user ends is increased suddenly to the greatest extent, and the first cache quantity range cannot meet the requirement of the user ends is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of a scenario in which an embodiment provided herein is implemented;
fig. 2 is a flowchart of a method for adjusting a live cache amount according to an embodiment of the present application;
fig. 3 is a schematic diagram of a device for adjusting a live cache amount according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 1. an acquisition module; 2. a determining module; 3. dividing the module; 4. a transmitting module; 1000. an electronic device; 1001. a processor; 1002. a communication bus; 1003. a user interface; 1004. a network interface; 1005. a memory.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments.
In the description of embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "illustratively," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion. In addition, unless otherwise indicated, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The present application is described in further detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic view of a scenario in which an embodiment of the present application is implemented. The system comprises a live broadcast terminal, a server and a plurality of user terminal areas. The whole scheme can be understood as that any anchor can live through live broadcast software or live broadcast through live broadcast software is carried out by some authorities, and then the live broadcast is transmitted to the user side after being transferred through the server, and in order to avoid the situation that the user side is blocked when watching live broadcast or live broadcast, the general live broadcast software can be cached, and the blocking situation is reduced. For a user side watching live broadcast, excessive cache can cause that the currently watched content and the content being live broadcast by the live broadcast side are not synchronous, so that interaction between the user side and the live broadcast side is influenced, resources of terminal equipment are occupied, and finally the terminal equipment is blocked; if the buffer memory is too small, any network jitter during live broadcast watching can bring the situation of blocking. Therefore, proper buffer memory amount needs to be selected, so that normal operation of the terminal equipment can be ensured, and the blocking condition when live broadcasting is watched can be reduced. The method combines the live broadcast terminal, the server and the user terminal to adjust the cache quantity of the user terminal, and further solves the problem.
Because of the abundance and diversity of live content, for example, live news-like live broadcast, entertainment-like live broadcast, PK-like live broadcast, etc. Because each live broadcast has specificity, the problem of blocking at the user end is considered when the live broadcast is aimed at some specificity, and the characteristics of each live broadcast are combined for analysis. For example, taking PK live broadcasting as an example, a live broadcasting terminal needs to interact with a user terminal, at this time, if a buffer schedule with an excessive buffer size is formulated to avoid the user terminal from being blocked, the live broadcasting terminal and the user terminal are not synchronous, which affects the interaction between the live broadcasting terminal and the user terminal, so that the experience of the user terminal is poor, the buffer size needs to be further limited, and the user terminal can be prevented from being blocked as much as possible while the interaction is ensured. Therefore, when different live broadcast contents are targeted, different buffer adjustment plans need to be formulated according to different live broadcast characteristics, and the following embodiments are referred to for specific embodiments.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings of the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
Fig. 2 is a flow chart of a method for adjusting a live cache amount in one embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows; the steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders; and at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
As shown in fig. 2, fig. 2 is a flowchart of a method for adjusting a live cache amount according to an embodiment of the present application, where the method includes S101-S105.
Step S101, a first connection state with a live broadcast end is obtained, and a first cache amount range of a server is determined according to the first connection state.
In one example, in the live broadcast process, live broadcast data is first cached in a server and then transmitted to a user side by the server. The method can reduce the blocking and delay in network transmission and improve the smoothness and stability of live broadcasting. Meanwhile, the server cache can also realize functions of live broadcast distribution, transcoding, storage and the like, and provides more perfect support for live broadcast.
In the application, the live broadcast end may have a network problem or other problems, so that live broadcast data cannot be timely sent to the server, and live broadcast data cached by the server are limited, so that when the live broadcast end fails to timely upload the live broadcast data due to special reasons, the user end is blocked; if the cache quantity of the server is too large, the video of the live broadcast end and the video of the user end are not synchronous, so that the user experience is affected, the server processes live broadcast data of a plurality of live broadcast ends, the task quantity is large, the cache can excessively occupy the memory and the storage space of the server, and if the cache of the server is not fully utilized, the resource is wasted. Therefore, it is necessary to determine the relationship between the live end and the server, i.e. the first connection state, which can be understood as: the server acquires main influencing factors of the live broadcast terminal, wherein the main influencing factors are factors influencing that the live broadcast terminal fails to upload live broadcast data in time, and the main influencing factors can be network states; the server can formulate a buffer capacity range for the processing task amount, the memory and the like of the current server according to the main influencing factors and the self factors, wherein the buffer capacity range is the first buffer capacity range.
Acquiring a first connection state with the live broadcast end, and determining a first cache amount range of the server according to the first connection state, wherein the method further comprises the following steps: acquiring historical live broadcast data of a live broadcast terminal and change information of the number of currently connected user terminals of a server; combining historical live broadcast data and quantity change information of a live broadcast terminal and the quantity of the current connected user terminals of the server; predicting the quantity change trend of the server connected with the user terminal within a preset time length to obtain a prediction result; and adjusting the first cache amount range according to the prediction result.
In one example, since the user watching live broadcast is changing in real time, the first buffer volume plan can meet all situations, and the present solution further optimizes after the first buffer volume plan is proposed. The change of the number of live persons in any live broadcasting room can be obtained by predicting the number of live persons, the average number of watching persons in the live broadcasting terminal can be calculated by acquiring the historical live data of the live broadcasting terminal, and then the prediction is carried out by acquiring the change information of the number of live persons; of course, the server needs to process live broadcast data of a plurality of live broadcast ends, so when the first buffer quantity is adjusted, the server needs to combine the historical live broadcast data of the live broadcast ends, quantity change information and the quantity of the current connected user ends of the server to predict, then a prediction result is obtained, and the range of the first buffer quantity is adjusted according to the prediction result.
Step S102, a second connection state with each user terminal is obtained, each user terminal is divided into a plurality of user terminal areas according to the second connection state, the user terminal areas comprise at least one user terminal, and the user terminals in the same user terminal area are connected to the same server line.
In one example, the server obtains a second connection state with each user end, where the second connection state can be understood as: the server obtains the network state of each user side. The method comprises the steps that the areas where all the user terminals are located are different, the network states and the network signals are also different, the server obtains the network states of all the user terminals, all the user terminals are divided into a plurality of areas according to the network states of all the user terminals, and the user terminals with the same network states are divided into the same area. The user terminals in the same area are connected with the same server circuit. The server line can be understood as: the user side watches live broadcast through the server circuit, the server circuits in different areas are different, and the setting of different server circuits is convenient for reducing the blocking or delay when the user side watches live broadcast.
It should be noted that the second connection state includes, but is not limited to, the server obtaining the network state of each user end, and may also be other factors, for example, a terminal model of each user end, where the terminal may be a mobile phone or a computer; the terminal types of the user terminals are different, and the user terminals are set differently when watching live broadcast, for example, the current image quality of watching live broadcast is set to be high definition or standard definition or blue light. Can be set according to the actual situation. If the number of live persons watching the live persons currently is small, the area division can be performed by combining the terminal model and the network state of the user terminal, and in other cases, please refer to the above-mentioned embodiment, and redundant description is omitted here.
Acquiring a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas according to the second connection state, and comprising: acquiring a second connection state with each user terminal; scoring each user terminal according to the second connection state to obtain the state score of each user terminal; and dividing the user terminals with the state scores in the same preset interval into the same user terminal area according to the state scores to obtain at least one user terminal area.
In one example, the user terminals are scored according to the second connection state, each connection state corresponds to a score, the lowest score is 0, the highest score is 100, and the number of the user terminal areas can be set according to the number of the user terminals. For convenience of description, two user end regions are set, screening is performed according to network signals of the user end, the signal score is not lower than 50 and is divided into an optimal region, the signal score is lower than 50 and is divided into a differential region, and the optimal region and the low region are preset regions. And acquiring the network state of the user terminal, and automatically scoring according to the network state of the user terminal, wherein the score is 0-100. It should be noted that, a network status score exists throughout each ue, and the network status score changes in real time, but the ue does not automatically adjust the ue area according to the change of the network status score, and the server needs to send an instruction to adjust.
Acquiring a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas according to the second connection state, and further comprising: acquiring the number of the current user terminals; if the number of the current user terminals exceeds the first preset number, the user terminals in the user terminal areas are redistributed according to the number of the user terminals in the current user terminal areas; and if the number of the current user terminals is lower than the second preset number, the user terminal areas are divided again according to the number of the user terminals of each current user terminal area.
In one example, since the number of clients changes in real time, in order to reduce the occurrence of a stuck condition, the client area needs to be re-divided, and clients in the same client area are connected to the same server line, and when the areas are divided, the line needs to be re-planned. When the number of the user terminals exceeds the first preset number, the first preset number and the second preset number can be set according to the server and the server lines set by the server, the server lines are required to be combined, and the number of the users supported by each server line is limited due to limited service lines, so that when the number of the users exceeds a certain amount, the adjustment is required, and because the setting areas are carried out according to the network state before, the number of the users in different areas is different, when the number of the users is too large, the adjustment is required, so that the overload or lack of the number of the users in each area can not occur, and the stability of watching live broadcast by each user terminal is ensured to the greatest extent. Similarly, when the number of people is too small, the user terminal area can be reduced, the load of the server is reduced, resources are saved, the stability of watching live broadcast by the user is ensured, and the user experience is improved.
Step S103, according to the second connection state and the first buffer volume range of each user end area, determining the second buffer volume range of each user end area.
In one example, according to the second connection state, each ue is divided into areas, and the ues in the same area have at least one common point, where the common point may be a network state. After the area division is performed, a buffer volume range can be set in different areas according to different network states, the buffer volume ranges of the areas are different, and then the buffer volume ranges of the areas and the buffer volume ranges of the server are combined to determine the final buffer volume range of the areas, wherein the final buffer volume range is the second buffer volume range. When the second buffer volume range is formulated, not only the buffer volume of the server but also the buffer volume of each user end area are considered, so that the buffer volume of the server can be ensured to reduce the blocking of the user end in each area when watching live broadcast on the premise of not excessively occupying the memory and the storage space of the server.
Determining a second buffer capacity range of each user end area according to the second connection state and the first buffer capacity range of each user end area, including: determining a third cache amount range of each user end area according to the second connection state of each user end area; and combining the first buffer memory amount range and the third buffer memory amount range to determine a second buffer memory amount range of each user end area.
In one example, when the user end regions are divided, the user ends may be divided according to the network states of the user ends, and the user ends with similar network states may be divided into the same region. The buffer capacity range is set for each area, the buffer capacity of the user end area with good network state can be relatively less, and the buffer capacity of the user end area with poor network state can be relatively more. The buffer capacity is a third buffer capacity range, and when the buffer capacity range of each area is obtained, the final buffer capacity range of each user end area is determined by combining the first buffer capacity range of the server, and the final buffer capacity range is a second buffer capacity range.
Step S104, responding to the buffer adjustment instruction, and determining the buffer adjustment amount of the target user terminal according to the equipment information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server and the second buffer amount range corresponding to the target user terminal.
In one example, responding to a cache amount adjustment instruction may be understood as: when the server detects that the number of times of blocking at the user side exceeds the preset number of times, the preset number of times can be set for the server or can be set for the user by himself; or when the server receives the buffer adjusting instruction sent by the user terminal, adjusting the buffer amount of the corresponding user terminal. The adjustment mode is to acquire equipment information corresponding to the target end user, wherein the equipment information is related information of terminal equipment used by the target end user when watching live broadcast and related settings performed when watching live broadcast, and the terminal equipment can be a mobile phone, a computer, a tablet and the like; the number of the servers currently connected with the user terminals, namely the number of people currently watching live broadcast; and determining the buffer adjustment quantity of the target user terminal by combining the three aspects in the second buffer quantity range corresponding to the target user terminal. There are various ways of adjusting, including but not limited to the above, and more dimensions may be combined to formulate the adjustment.
For example: when the server receives an adjusting instruction sent by the a user side of the A area, the a user side is adjusted, and the cache amount range of the A area is 5-10 seconds and is adjusted based on the adjusting instruction. Firstly, acquiring a self-set cache amount range of a user, wherein various conditions exist, the cache amount range set by the user is 5-8 seconds, and the cache amount range is within the cache amount range of the area A; or the buffer capacity range set by the user is 8-10 seconds, and part of the buffer capacity range is within the buffer capacity range of the area A; or the buffer capacity range set by the user is 2-4 seconds and is not in the buffer capacity range of the area A; the server performs different settings according to different situations, and the server is illustrated in the cache amount range of the area a, and other situations refer to the situations and are not described in detail. If the buffer capacity set by the user is 5-8 seconds, and the current number of live persons watching (the current working state of the server can be understood) and the network state of the user are combined, if the network state of the current user side is good and the number of live persons watching is less, the buffer capacity adjustment amount can be determined to be 5S after the multidimensional factors are combined. In specific practical application, the method can be set according to different conditions, and the buffer capacity of the end user is obtained through multi-dimensional combination.
In another example, the buffer adjustment amount of the target user terminal may also be adjusted according to some secondary factors. For example, when the buffer adjustment amount of any one target user terminal is obtained, optimization is continued, such as obtaining equipment information of the live broadcast terminal, hardware configuration of the live broadcast terminal, and the like; hardware configuration of the server, the number of other live broadcast and the number of audience watching live broadcast online, and the like; equipment problems of the user side, etc.; the above problem is added as an uncertainty to the amount of end user buffering. Taking the live broadcast end as an example, the equipment hardware configuration of the obtained live broadcast end is low, and although the situation that the live broadcast end does not upload live broadcast data in time does not occur, the hidden danger that the live broadcast data is not uploaded in time exists, and when the final buffer adjustment amount is prepared, the situation can be avoided, and the live broadcast data can be buffered for a period of time. Of course, the above problems can be considered in combination according to the actual situation, and the increase or decrease of the buffer amount is considered; it should be noted that, the live broadcast terminal, the server and the plurality of user terminals all have a plurality of problems, and specifically, the live broadcast terminal, the server and the plurality of user terminals can be independently formulated according to different user terminals, and no one-to-one example is needed here, and specific reference is made to the above embodiments.
The device information includes device custom information and device network information, and determining a buffer adjustment amount of the target user terminal according to the device information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server and the second buffer amount range corresponding to the target user terminal, including: determining a preliminary cache amount range of a target user terminal according to the equipment self-defining information and the equipment network information; and determining the final buffer capacity of the target user terminal according to the initial buffer capacity range, the number of the current connected user terminals of the server and the second buffer capacity range corresponding to the target user terminal, wherein the final buffer capacity of the target user terminal is the buffer regulating capacity of the target user terminal.
In one example, the device information includes device custom information and device network information, where the device custom information may be an initial buffer amount set by the user side, i.e. a main influencing factor; the device network information is some secondary influencing factors or uncertain factors, for example, whether the basic information of the terminal device and the network have fluctuation or possible fluctuation, and the like, and the secondary factors and the uncertain factors have a plurality of secondary factors and can be specifically set according to actual conditions and different users, and the users can also select the secondary factors and the uncertain factors by themselves, so that excessive details are not needed. Determining a primary buffer volume range of the target user terminal according to the device custom information and the device network information, and then determining a final buffer volume of the target user terminal by combining the primary buffer volume range, the number of the current connected user terminals of the server and the second buffer volume range corresponding to the target user terminal, wherein the determination method is described in the above embodiment, and specifically please refer to the above embodiment, and the final buffer volume is the buffer adjustment volume of the target user terminal.
The device network information comprises network information, terminal information and setting information, and the determining the preliminary buffer memory range of the target user terminal according to the device custom information and the device network information comprises the following steps: determining an initial cache amount range according to the self-defining information of the equipment; according to the equipment network information, distributing the network information as a first weight; distributing terminal information as a second weight; distributing the setting information as a third weight; combining the first weight, the second weight and the third weight to determine an adjusting range; and determining the initial buffer capacity range of the target user terminal by combining the initial buffer capacity range and the adjustment range.
In one example, the device network information includes network information, terminal information, and setting information, and it should be noted that the device network information includes, but is not limited to, the above three types of information, which are exemplified here. Network information and network condition information of a target user terminal; the terminal information is the terminal equipment of the target user end, such as the running memory quantity of the terminal equipment; the setting information is a requirement set by the user side when watching live broadcast through live broadcast software, and if the image quality is high definition. And then the three aspects are distributed with weights, and the purpose of distributing the weights by a user according to actual conditions or distributing the weights by a server and batching the weights is to optimize the initial buffer memory amount range on the basis of the initial buffer memory amount range after determining the initial buffer memory amount range, wherein the initial buffer memory amount range is the buffer memory amount range self-defined by the user.
For example, the allocation network information is 3 second buffer, the terminal information is 2 second buffer, and the setting information is 1 second buffer, and the time allocation can be set by itself, and then the total weight of the network information, the terminal information, and the setting information is 1. For example, when there is an unstable network quality at the user end, the weight ratio of the network information may be set to 80%, and the buffering time of the network information is then
Figure SMS_1
Second, wherein the second is; the remaining terminal information and the setting information are sequentially distributed for the remaining 20%, if the terminal equipment is good, namely the terminal information has no influence, the terminal information can be selected to be removed, namely the terminal information accounts for 0%; the set information is 20% in proportion, and the buffer time of the set information is +.>
Figure SMS_2
Second, wherein the second is; the final conditioning time is 0.2+2.4=2.6 seconds; at this time, if the initial buffering capacity is 5-10 seconds, the final buffering capacity is 5-12.6 seconds, and the final buffering capacity is the initial buffering capacity range of the target user terminal.
Step S105, the buffer adjustment amount is sent to the target user end, so that the target user end adjusts the buffer amount according to the buffer adjustment amount.
In one example, when the buffer adjustment amount is obtained, the buffer adjustment amount is sent to the target ue, so that the target ue adjusts the buffer amount according to the buffer adjustment amount. Of course, the present application only sends the adjustment scheme, and does not directly change the buffer capacity of the user, whether to select to change and how much to change depend on the individual user, and the user adjusts according to the actual situation when receiving the buffer capacity sent by the server.
In another example, when the server pushes a buffer adjustment scheme to the client, it needs to consider whether there are special cases, where the special cases may cause the client to get stuck. Therefore, comprehensive consideration is needed to reduce the situation that the user end is blocked as much as possible. In general, special situations exist in the live broadcast end, the server and the user end, for example, for the live broadcast end, the hardware equipment performance is poor, the network equipment is problematic, the live broadcast end has power failure, and the like, which may cause the user end to be blocked; special conditions exist for the server side, such as power failure and poor performance of hardware equipment of the server side may cause the client side to be blocked; the same problem also exists for the user side. The above problems are that the user end is blocked due to some external factors or uncertain factors, so that the buffer amount pushed to the user can be adjusted according to the requirement when the buffer plan is formulated. For example, the server has determined that the cache adjustment plan pushed to a client is 5S, and in consideration of special cases, the adjustment can be performed again based on the cache adjustment plan. It should be noted that, the specific factors of the live broadcast terminal, the server and the user terminal may be considered, or any one or more terminals may be considered, and may be selected according to the actual situation, for convenience of description, here, an example is taken, where it is detected that the live broadcast terminal currently being watched by the user terminal has multiple power failures or other specific situations in a week, and the caching plan may be adjusted again for such situations, for example, may be adjusted to 7S. Thus, the experience of the user side can be better improved.
Based on the method, the embodiment of the application also discloses a schematic diagram of a device for adjusting the live broadcast buffer capacity.
As shown in fig. 3, fig. 3 is a schematic diagram of a device for adjusting a live buffer; the device comprises: the device comprises an acquisition module 1, a determination module 2, a division module 3 and a sending module 4; the acquisition module 1 is used for acquiring a first connection state with the live broadcast terminal; the acquisition module 1 is further configured to acquire a second connection state with each user terminal; the determining module 2 is configured to determine a first cache size range of the server according to the first connection state; the determining module 2 is further configured to determine a second buffer size range of each user side area according to the second connection state and the first buffer size range of each user side area; the determining module 2 is further configured to determine a cache adjustment amount of the target user terminal according to the device information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server, and the second cache amount range corresponding to the target user terminal; the dividing module 3 is configured to divide each client into a plurality of client areas according to the second connection state, where the client areas include at least one client, and the clients in the same client area are connected to the same server line; the sending module 4 is configured to send the buffer adjustment amount to the target ue, so that the target ue adjusts the buffer amount according to the buffer adjustment amount.
It should be noted that: in the device provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the embodiments of the apparatus and the method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the embodiments of the method are detailed in the method embodiments, which are not repeated herein.
Embodiments of the present application provide a computer readable storage medium storing instructions that, when executed, perform one or more of the methods of the embodiments described above.
A schematic structure of the electronic device in the example of the present application will be described in detail below with reference to fig. 4.
A schematic structural diagram of an electronic device is provided for an embodiment of the present application. As shown in fig. 4, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (ProgrammableLogic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The memory 1005 may include a random access memory (Random Access Memory, RAM) or a Read-only memory (Read-only memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 4, an operating system, a network communication module, a user interface module, and an application program of a method of adjusting a live cache amount may be included in the memory 1005 as a computer storage medium.
In the electronic device 1000 shown in fig. 4, the user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke an application in the memory 1005 that stores a method of adjusting the amount of live cache, which when executed by one or more processors, causes the electronic device to perform the method as described in one or more of the embodiments above.
An electronic device readable storage medium storing instructions. When executed by one or more processors, cause an electronic device to perform the method as described in one or more of the embodiments above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A method for adjusting a live cache amount, applied to a server, the method comprising:
acquiring a first connection state with a live broadcast end, and determining a first cache amount range of the server according to the first connection state;
acquiring a second connection state with each user terminal, dividing each user terminal into a plurality of user terminal areas according to the second connection state, wherein each user terminal area comprises at least one user terminal, and the user terminals in the same user terminal area are connected to the same server line;
Determining a second buffer capacity range of each user end area according to the second connection state of each user end area and the first buffer capacity range;
responding to a buffer adjustment instruction, and determining the buffer adjustment amount of the target user terminal according to equipment information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server and a second buffer amount range corresponding to the target user terminal;
and sending the buffer adjustment quantity to the target user terminal so that the target user terminal can adjust the buffer quantity according to the buffer adjustment quantity.
2. The method for adjusting the live cache amount according to claim 1, wherein the determining the second cache amount range of each client area according to the second connection state of each client area and the first cache amount range includes:
determining a third cache amount range of each user end area according to the second connection state of each user end area;
and combining the first buffer memory amount range and the third buffer memory amount range to determine a second buffer memory amount range of each user end area.
3. The method for adjusting the live broadcast buffer capacity according to claim 1, wherein the device information includes device custom information and device network information, and the determining the buffer adjustment capacity of the target ue according to the device information of the target ue corresponding to the adjustment instruction, the number of the current connected ues of the server, and the second buffer capacity range corresponding to the target ue includes:
Determining a preliminary cache amount range of the target user terminal according to the equipment self-defining information and the equipment network information;
and determining the final buffer capacity of the target user terminal according to the initial buffer capacity range, the number of the current connected user terminals of the server and the second buffer capacity range corresponding to the target user terminal, wherein the final buffer capacity of the target user terminal is the buffer regulation capacity of the target user terminal.
4. The method for adjusting the live cache amount according to claim 3, wherein the device network information includes network information, terminal information and setting information, and the determining the preliminary cache amount range of the target user terminal according to the device custom information and the device network information includes:
determining an initial cache amount range according to the equipment self-defining information;
according to the equipment network information, distributing the network information as a first weight; distributing the terminal information as a second weight; distributing the setting information as a third weight;
combining the first weight, the second weight and the third weight to determine an adjusting range;
and combining the initial buffer memory range and the adjusting range to determine the initial buffer memory range of the target user terminal.
5. The method for adjusting a live broadcast buffer size according to claim 1, wherein the obtaining the second connection state with each client, dividing each client into a plurality of client areas according to the second connection state, includes:
the second connection state of each user end is obtained;
scoring the user ends according to the second connection state to obtain state scores of the user ends;
and dividing the user terminals with the state scores in the same preset interval into the same user terminal area according to the state scores to obtain at least one user terminal area.
6. The method for adjusting the live broadcast buffer size according to claim 1, wherein the obtaining the second connection state with each client, dividing each client into a plurality of client areas according to the second connection state, further comprises:
acquiring the number of the current user terminals;
if the number of the current user terminals exceeds the first preset number, the user terminals in the user terminal areas are redistributed according to the number of the user terminals in the current user terminal areas;
and if the number of the current user terminals is lower than a second preset number, re-dividing the user terminal areas according to the number of the user terminals of each current user terminal area.
7. The method for adjusting the live cache amount according to claim 1, wherein the acquiring the first connection state with the live end, after determining the first cache amount range of the server according to the first connection state, further comprises:
acquiring historical live broadcast data of the live broadcast terminal and change information of the number of the current connected user terminals of the server;
combining the historical live broadcast data of the live broadcast terminal, the quantity change information and the quantity of the current connected user terminals of the server;
predicting the quantity change trend of the server connected with the user terminal within a preset time length to obtain a prediction result;
and adjusting the first cache amount range according to the prediction result.
8. An apparatus for adjusting a live cache amount, the apparatus comprising: the device comprises an acquisition module (1), a determination module (2), a division module (3) and a sending module (4); wherein,,
the acquisition module (1) is used for acquiring a first connection state with the live broadcast end;
the acquisition module (1) is further used for acquiring a second connection state with each user terminal;
the determining module (2) is configured to determine a first cache amount range of a server according to the first connection state;
The determining module (2) is further configured to determine a second buffer size range of each user end area according to a second connection state of each user end area and the first buffer size range;
the determining module (2) is further configured to determine a cache adjustment amount of the target user terminal according to the device information of the target user terminal corresponding to the adjustment instruction, the number of the current connected user terminals of the server, and a second cache amount range corresponding to the target user terminal;
the dividing module (3) is configured to divide each client into a plurality of client areas according to the second connection state, where the client areas include at least one client, and the clients in the same client area are connected to the same server line;
the sending module (4) is configured to send the buffer adjustment amount to the target ue, so that the target ue adjusts the buffer amount according to the buffer adjustment amount.
9. An electronic device comprising a processor, a memory, a user interface, and a network interface, the memory for storing instructions, the user interface and the network interface for communicating to other devices, the processor for executing the instructions stored in the memory to cause the electronic device to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which performs the method according to any of claims 1-7.
CN202310406644.XA 2023-04-17 2023-04-17 Live broadcast buffer volume adjusting method, device, equipment and storage medium Active CN116132705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310406644.XA CN116132705B (en) 2023-04-17 2023-04-17 Live broadcast buffer volume adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310406644.XA CN116132705B (en) 2023-04-17 2023-04-17 Live broadcast buffer volume adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116132705A CN116132705A (en) 2023-05-16
CN116132705B true CN116132705B (en) 2023-06-09

Family

ID=86308532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310406644.XA Active CN116132705B (en) 2023-04-17 2023-04-17 Live broadcast buffer volume adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116132705B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628769A (en) * 2017-03-17 2018-10-09 华为技术有限公司 A kind of cache allocation method and equipment
WO2021004063A1 (en) * 2019-07-11 2021-01-14 网宿科技股份有限公司 Cache server bandwidth scheduling method and device
CN112492341A (en) * 2020-11-30 2021-03-12 深圳前海微众银行股份有限公司 Live broadcast time shifting caching method, device and system and computer readable storage medium
CN113573093A (en) * 2021-08-02 2021-10-29 杭州米络星科技(集团)有限公司 Live broadcast data analysis method and device, electronic equipment and storage medium
CN114697695A (en) * 2022-03-28 2022-07-01 阿里巴巴(中国)有限公司 Live broadcast data pushing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628769A (en) * 2017-03-17 2018-10-09 华为技术有限公司 A kind of cache allocation method and equipment
WO2021004063A1 (en) * 2019-07-11 2021-01-14 网宿科技股份有限公司 Cache server bandwidth scheduling method and device
CN112492341A (en) * 2020-11-30 2021-03-12 深圳前海微众银行股份有限公司 Live broadcast time shifting caching method, device and system and computer readable storage medium
CN113573093A (en) * 2021-08-02 2021-10-29 杭州米络星科技(集团)有限公司 Live broadcast data analysis method and device, electronic equipment and storage medium
CN114697695A (en) * 2022-03-28 2022-07-01 阿里巴巴(中国)有限公司 Live broadcast data pushing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116132705A (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN111628847B (en) Data transmission method and device
CN104394486B (en) A kind of video stream processing method and device based on cloud desktop
US10848433B2 (en) Method for distributing available bandwidth of a network amongst ongoing traffic sessions run by devices of the network, corresponding device
US8650301B2 (en) Adaptive data rate streaming in a peer-to-peer network delivering video content
US9521178B1 (en) Dynamic bandwidth thresholds
WO2022194140A1 (en) Remote video transmitting method and transmitting apparatus, storage medium, and electronic device
CA2888218A1 (en) Playback stall avoidance in adaptive media streaming
US20160234069A1 (en) Dynamic Content Delivery Network Allocation System
CN108494788A (en) Transmission method, data transmission device and the computer readable storage medium of data
US20150138962A1 (en) Method and Apparatus for Using a Local Area Network to Offload Demand of a Wide Area Network
JP2020507235A (en) Data buffering method, network device, and storage medium
CN108540400A (en) A kind of data transfer control method, control device, terminal and readable storage medium storing program for executing
CN116132705B (en) Live broadcast buffer volume adjusting method, device, equipment and storage medium
CN111417001B (en) Video transmission method, device, server and storage medium
JP2005223430A (en) Image communication system, image distributing server, client terminal, image communication method, and program
CN104754401A (en) Stream sharing method, stream sharing device and stream sharing system
CN108347579B (en) Bandwidth control method and device
CN112073207B (en) Method, device and computer equipment for reducing message bandwidth of chat room
US9402260B2 (en) Method and device for improving cell throughput based on streaming media service
US11706469B2 (en) Systems and methods for streaming media content during unavailability of content server
US10298645B2 (en) Optimal settings for application streaming
CN115051956B (en) Connection establishment method, device, equipment and storage medium
US10728911B2 (en) Wireless communication device
CN118102478A (en) Method and device for distributing communication resources
CN117676194A (en) Video display data processing method, device, equipment and storage medium

Legal Events

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