CN108040261B - Network live broadcast management method and device and storage medium - Google Patents
Network live broadcast management method and device and storage medium Download PDFInfo
- Publication number
- CN108040261B CN108040261B CN201711401596.6A CN201711401596A CN108040261B CN 108040261 B CN108040261 B CN 108040261B CN 201711401596 A CN201711401596 A CN 201711401596A CN 108040261 B CN108040261 B CN 108040261B
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- terminal
- frame rate
- preset
- data
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2407—Monitoring of transmitted content, e.g. distribution time, number of downloads
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
- H04N21/64738—Monitoring network characteristics, e.g. bandwidth, congestion level
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a management method, a device and a storage medium for live webcasting, and belongs to the technical field of networks. The method comprises the following steps: receiving live broadcast state information sent by a terminal every other preset time, wherein the live broadcast state information is used for indicating the terminal performance and/or the network performance of the terminal when the terminal carries out network live broadcast currently, detecting whether the terminal meets preset live broadcast conditions or not based on the live broadcast state information, and stopping the terminal from carrying out network live broadcast when the terminal is determined not to meet the preset live broadcast conditions so as to realize network live broadcast management. According to the method and the device, whether the terminal meets the preset live broadcast condition or not is detected by receiving the live broadcast state information reported by the terminal, and when the preset live broadcast condition is determined not to be met, the terminal is stopped to carry out live broadcast on the network, so that the problem that the live broadcast effect is poor due to reasons such as low terminal performance is avoided.
Description
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and an apparatus for managing live webcasting, and a storage medium.
Background
With the rapid development of network technologies, webcast is more and more concerned, and generally, a user can realize webcast through a webcast system. The live broadcast system mainly comprises a terminal and a server, wherein the terminal can be connected with the server through a network. When a user wants to perform network live broadcasting, a live broadcasting request can be sent to the server through the terminal, and after receiving the live broadcasting request, the server provides a live broadcasting room for the terminal and controls the terminal to log in the live broadcasting room, so that the user can perform network live broadcasting in the live broadcasting room.
However, after receiving the live broadcast request, the server provides a live broadcast room for the terminals, but in an actual application scenario, the network live broadcast effect may be poor due to reasons such as low performance of some terminals.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present application provide a method and an apparatus for managing live webcasting, and a storage medium. The technical scheme is as follows:
in one aspect, a method for managing live webcasting is provided, where the method includes: a
Receiving live broadcast state information sent by a terminal every other preset time, wherein the live broadcast state information is used for indicating the terminal performance and/or the network performance when the terminal carries out network live broadcast currently;
detecting whether the terminal currently meets a preset live broadcast condition or not based on the live broadcast state information;
and when the terminal is determined not to meet the preset live broadcast condition currently, terminating the live broadcast of the network by the terminal so as to realize live broadcast management of the network.
Optionally, the live broadcast status information includes at least one of a data acquisition frame rate, a data encoding frame rate, and a data successful sending frame rate of the terminal.
Optionally, the detecting, based on the live broadcast status information, whether the terminal currently meets a preset live broadcast condition includes at least one of the following implementation manners:
if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently;
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
and if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
Optionally, if the live broadcast status information includes the data encoding frame rate and the data successful sending frame rate, and a difference between the data encoding frame rate and the data successful sending frame rate is greater than a second preset difference, when it is determined that the terminal does not currently satisfy the preset live broadcast condition, after the terminal terminates the network live broadcast, the method further includes:
sending a platform replacement instruction to the terminal, wherein the platform replacement instruction carries address information, the platform replacement instruction is used for instructing the terminal to log in to a network platform corresponding to the address information for network live broadcast, and the address information is selected by the server from the stored address information of a plurality of network platforms based on a preset optimal strategy.
In another aspect, an apparatus for managing live webcasting is provided, where the apparatus includes:
the receiving module is used for receiving live broadcast state information sent by a terminal every other preset time, wherein the live broadcast state information is used for indicating the terminal performance and/or the network performance when the terminal carries out network live broadcast currently;
the detection module is used for detecting whether the terminal currently meets a preset live broadcast condition or not based on the live broadcast state information;
and the live broadcast termination module is used for terminating the live broadcast of the terminal when the terminal is determined not to meet the preset live broadcast condition currently so as to realize live broadcast management of the network.
Optionally, the live broadcast status information includes at least one of a data acquisition frame rate, a data encoding frame rate, and a data successful sending frame rate of the terminal.
Optionally, the detection module is configured to:
if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently;
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
and if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
Optionally, the apparatus further comprises:
the server comprises a sending module and a receiving module, wherein the sending module is used for sending a platform replacement instruction to the terminal, the platform replacement instruction carries address information, the platform replacement instruction is used for indicating the terminal to log in a network platform corresponding to the address information for network live broadcast, and the address information is selected from the stored address information of a plurality of network platforms by the server based on a preset optimal strategy.
In another aspect, a computer-readable storage medium is provided, having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any one of the methods of the above aspects.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in the embodiment of the application, the live broadcast state information sent by the terminal is received every preset time length, and the live broadcast state information is used for indicating the terminal performance and/or the network performance of the terminal when the terminal is currently performing network live broadcast, so that whether the terminal currently meets preset live broadcast conditions can be detected based on the live broadcast state information, if not, the terminal is stopped performing network live broadcast, and thus, the problem that the network live broadcast effect is poor due to reasons such as low terminal performance can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic structural diagram illustrating a live system according to an exemplary embodiment.
Fig. 1B is a flow chart illustrating a method for managing live webcasting according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method for managing live webcasting according to another exemplary embodiment.
Fig. 3A is a schematic structural diagram illustrating a management apparatus for live webcasting according to an exemplary embodiment.
Fig. 3B is a schematic structural diagram illustrating a webcast management apparatus according to another exemplary embodiment.
Fig. 4 is a schematic diagram illustrating a server structure of a webcast management apparatus according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before the embodiments of the present application are described in detail, a brief description is first given to an application scenario and a system architecture related to the embodiments of the present application.
First, a brief description is given of an application scenario related to an embodiment of the present application.
In a live network scene, after receiving a live broadcast request of a terminal, a server establishes a live broadcast room for the terminal, so that the terminal can carry out live network broadcast in the live broadcast room. However, in an actual application scenario, the live broadcast effect of the network may be poor due to low performance of the terminal and the camera or poor network performance, for example, the picture may be unclear, and thus, the watching experience of the user may be affected to a certain extent.
Therefore, the embodiment of the application provides a management method for live webcasting, and the method terminates the live webcasting of the terminal when detecting that the terminal does not meet certain live webcasting conditions currently, so that the problem of poor live webcasting effect caused by low performance of the terminal and a camera or poor network performance and the like can be avoided. For a specific implementation process, please refer to the embodiment shown in fig. 1B or fig. 2 below.
Next, a system architecture according to an embodiment of the present application will be briefly described.
Referring to fig. 1A, fig. 1A is a schematic diagram illustrating an architecture of a live broadcast system according to an exemplary embodiment. The live broadcast system mainly includes a terminal 110 and a server 120, and the terminal 110 may be connected to the server 120 through a wired network or a wireless network.
The terminal 110 is mainly configured to report information to the server 120. Further, the terminal 110 itself may be configured with a camera for live webcasting through the camera. Alternatively, the terminal 110 may also be connected to an external camera, so as to perform live webcasting through the external camera.
It should be noted that, in an actual application scenario, the terminal 110 may be a device such as a mobile phone, a computer, a tablet computer, and the like, which is not limited in this embodiment of the present application.
The server 120 is mainly used to implement the management method for live webcasting provided in the embodiment of the present application, and a specific implementation process of the management method may be as shown in the following embodiment shown in fig. 1B or fig. 2.
In an actual application scenario, the server 120 may be one server or a server cluster composed of multiple servers, which is not limited in this embodiment of the present application.
After the application scenarios and the system architecture related to the embodiment of the present application are introduced, a method for managing live webcasting according to the embodiment of the present application will be described in detail with reference to the accompanying drawings.
Fig. 1B is a flowchart illustrating a live webcast management method according to an exemplary embodiment, where the live webcast management method may be applied to the live webcast system illustrated in fig. 1A, and the live webcast management method may include the following implementation steps:
step 101, receiving live broadcast state information sent by a terminal every preset time, wherein the live broadcast state information is used for indicating the terminal performance and/or the network performance when the terminal carries out network live broadcast currently.
Step 102: and detecting whether the terminal currently meets preset live broadcast conditions or not based on the live broadcast state information.
Step 103: and when the terminal is determined not to meet the preset live broadcast condition currently, terminating the live broadcast of the network by the terminal so as to realize live broadcast management of the network.
In the embodiment of the application, the live broadcast state information sent by the terminal is received every preset time length, and the live broadcast state information is used for indicating the terminal performance and/or the network performance of the terminal when the terminal is currently performing network live broadcast, so that whether the terminal currently meets preset live broadcast conditions can be detected based on the live broadcast state information, if not, the terminal is stopped performing network live broadcast, and thus, the problem that the network live broadcast effect is poor due to reasons such as low terminal performance can be avoided.
Optionally, the live broadcast status information includes at least one of a data acquisition frame rate, a data encoding frame rate, and a data successful sending frame rate of the terminal.
Optionally, the detecting, based on the live broadcast status information, whether the terminal currently meets a preset live broadcast condition includes at least one of the following implementation manners:
if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently;
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
and if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
Optionally, if the live broadcast status information includes the data encoding frame rate and the data successful sending frame rate, and a difference between the data encoding frame rate and the data successful sending frame rate is greater than a second preset difference, when it is determined that the terminal does not currently satisfy the preset live broadcast condition, after the terminal terminates the network live broadcast, the method further includes:
sending a platform replacement instruction to the terminal, wherein the platform replacement instruction carries address information, the platform replacement instruction is used for instructing the terminal to log in to a network platform corresponding to the address information for network live broadcast, and the address information is selected by the server from the stored address information of a plurality of network platforms based on a preset optimal strategy.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present application, and the present application embodiment is not described in detail again.
Fig. 2 is a flowchart illustrating a live webcast management method according to another exemplary embodiment, where this embodiment is described by taking as an example that the live webcast management method is applied to the live webcast system illustrated in fig. 1A, the live webcast management method may include the following implementation steps:
step 201: and receiving live broadcast state information sent by the terminal every preset time, wherein the live broadcast state information is used for indicating the terminal performance and/or the network performance when the terminal carries out network live broadcast currently.
In a live network scene, if the performance of the terminal is poor, the live network effect is poor; or, if the network performance is reduced, the network live broadcast effect is also influenced; of course, if both the terminal performance and the network performance are poor, the effect of the network live broadcast is undoubtedly worse. In order to avoid the situation, in the network live broadcast process, the terminal reports live broadcast state information to the server every preset time length, so that the server is informed of the current terminal performance and/or network performance through the live broadcast state information.
The preset duration can be set by a user according to actual needs in a self-defined manner, and can also be set by the terminal in a default manner, which is not limited in the embodiment of the application.
The live broadcast state information comprises at least one of a data acquisition frame rate, a data coding frame rate and a data successful sending frame rate of the terminal.
The data acquisition frame rate may be used to evaluate the performance of a camera used by the terminal, and in general, the higher the data acquisition frame rate is, the better the performance of the camera is.
The data coding frame rate may be used to evaluate the performance of the terminal in actual coding, that is, may be used to evaluate the performance of the terminal, and specifically, a higher data coding frame rate indicates a higher coding capability of the terminal, that is, a better performance of the terminal.
Specifically, the higher the frame rate of successful data transmission is, the better the network performance is, otherwise, the lower the frame rate of successful data transmission is, the worse the network performance is, at this time, the network may be jammed and the like.
In addition, it should be noted that, if the terminal sends a live broadcast request to the server for the first time, the terminal may carry the live broadcast status information in the live broadcast request, so that the server may subsequently determine whether the terminal can perform live broadcast on the network according to the live broadcast status information.
Step 202: and detecting whether the terminal currently meets preset live broadcast conditions or not based on the live broadcast state information.
Wherein, the preset live broadcast condition can be preset. As described above, the live broadcast status information may include one or more contents, the preset live broadcast conditions are different according to different contents included in the live broadcast status information, and the implementation manner for detecting whether the terminal currently satisfies the preset live broadcast conditions based on the live broadcast status information is also different. In a specific implementation, based on the live broadcast status information, detecting whether the terminal currently satisfies a preset live broadcast condition may include at least one of the following implementation manners:
the first mode is as follows: and if the live broadcast state information comprises the data acquisition frame rate and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently.
The preset data acquisition frame rate can be set by a user according to actual needs in a self-defined mode, and can also be set by a server in a default mode.
Because in the practical application scene, if the performance of the camera adopted by the terminal is poor, the definition and the fluency of the network live broadcast can be influenced, and thus, audiences can not clearly see the live broadcast content, thereby influencing the user experience effect.
As described above, since the data collection frame rate can be used to explain the performance of the camera employed by the terminal, in this implementation, the live broadcast status information may include the data collection frame rate. Therefore, after the server receives the live broadcast state information, the data acquisition frame rate included in the live broadcast state information can be compared with the preset data acquisition frame rate.
If the data acquisition frame rate is less than the preset data acquisition frame rate, it is indicated that the performance of the camera adopted by the terminal cannot meet the actual requirement, and therefore, the terminal can be determined not to meet the preset live broadcast condition currently. On the contrary, if the data acquisition frame rate is greater than or equal to the preset data acquisition frame rate, it is indicated that the performance of the camera adopted by the terminal meets the actual requirement, and therefore, the terminal can be determined to meet the preset live broadcast condition.
Further, when the server determines that the performance of the camera adopted by the terminal fails to meet the actual requirement, the server may send a first notification message to the terminal, where the first notification message is used to notify the user that the performance of the camera does not meet the standard. Accordingly, after receiving the first notification message, the terminal displays the first notification message in the display interface, for example, the first notification message may be "the camera performance does not meet the standard, please change the camera".
The second mode is as follows: and if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
The first preset difference value may be set by a user according to actual needs in a user-defined manner, or may be set by the server in a default manner, which is not limited in the embodiment of the present application.
In an actual application scenario, if the performance of the terminal itself is poor, the effect of the network live broadcast may be affected, for example, frame loss may occur. Therefore, the coding performance of the terminal can be judged by comparing the magnitude relation between the data acquisition frame rate and the data coding frame rate.
If the difference between the data acquisition frame rate and the data coding frame rate is larger than the first preset difference, the terminal cannot completely code the data acquired by the camera, and therefore the coding performance of the terminal does not meet the actual requirement, and therefore the terminal can be determined not to meet the preset live broadcast condition. On the contrary, if the difference between the data acquisition frame rate and the data encoding frame rate is less than or equal to the first preset difference, the difference indicates how many frames of data are acquired by the camera, and the terminal can encode how many frames of data, so that the encoding performance of the terminal can meet the actual requirement, and therefore, the terminal can be determined to meet the preset live broadcast condition.
Further, when it is determined that the terminal does not meet the preset live broadcast condition based on the data acquisition frame rate and the data encoding frame rate, the server may send a second notification message to the terminal, where the second notification message is used to indicate that the performance of the terminal does not meet the live broadcast requirement. For example, the second notification message may be "terminal performance is not met", at which time, the user may choose to replace the terminal.
The third mode is as follows: and if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is greater than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
The second preset difference value may be set by a user according to actual needs in a user-defined manner, or may be set by the server in a default manner, which is not limited in the embodiment of the present application.
In practical application scenarios, if the network performance is poor, the network live broadcast effect may also be affected, for example, a stuck phenomenon may occur. Therefore, in the embodiment of the application, whether the current network performance meets the requirement of network live broadcast or not is detected by comparing the size relationship between the data encoding frame rate and the data successful sending frame rate.
If the difference between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference, the difference between the sent data and the successfully sent data is larger, namely, more data sent by the terminal is not successfully transmitted to the server, so that the current network performance is poor, and therefore the server determines that the terminal does not meet the preset live broadcast condition. On the contrary, if the difference between the data encoding frame rate and the data successful sending frame rate is less than or equal to the second preset difference, it indicates that the data sent by the terminal is almost successfully transmitted to the server, so that the current network performance is better, and therefore, it can be determined that the terminal meets the preset live broadcast condition.
Step 203: and when the terminal is determined not to meet the preset live broadcast condition currently, terminating the live broadcast of the terminal so as to realize live broadcast management.
And when the terminal is determined not to meet the preset live broadcast condition, the server terminates the terminal to carry out the network live broadcast in order to avoid influencing the watching experience of the user. In a specific implementation, if the terminal initially requests to perform webcast, the server may prohibit providing a webcast room for the terminal, or, if the terminal is performing webcast, the server may control the terminal to exit from a current webcast room.
Further, when it is determined that the terminal does not satisfy the preset live broadcast condition based on the data encoding frame rate and the data successful sending frame rate, the server may also instruct the terminal to take a corresponding solution, specifically refer to steps 204 to 205 as follows.
Step 204: sending a platform replacement instruction to the terminal, wherein the platform replacement instruction carries address information, the platform replacement instruction is used for instructing the terminal to log in to a network platform corresponding to the address information for network live broadcast, and the address information is selected from the stored address information of a plurality of network platforms by the server based on a preset optimal strategy.
The preset optimal strategy can be preset by a user according to actual requirements. In addition, the server may store address information of a plurality of network platforms in advance.
When it is determined that the terminal does not satisfy the preset live broadcast condition based on the data encoding frame rate and the data successful sending frame rate, it indicates that the terminal is caused by poor network performance, so the server may select an optimal address information from the stored plurality of address information according to a preset preference policy set in advance, and send the address information to the terminal, for example, select an address information corresponding to another network platform closer to the current server, and send the selected address information to the terminal. After the terminal receives the address information, the terminal is reconnected to a new network platform to carry out network live broadcast based on the address information, and therefore the problem that the live broadcast cannot be carried out due to poor network performance is solved.
Further, if the terminal receives a code rate adjustment instruction sent by the network platform corresponding to the address information after the preset duration, the current code rate is automatically adjusted.
Step 205: and if the terminal detects that the terminal does not meet the preset live broadcast condition based on the data coding frame rate and the data successful sending frame rate in the live broadcast state information sent by the terminal after the preset duration, sending a code rate adjustment instruction to the terminal, wherein the code rate adjustment instruction is used for indicating the terminal to adjust the current code rate, and the code rate is used for indicating the size of data transmitted in unit time.
That is, if after the preset duration, the newly connected network platform detects that the terminal does not satisfy the preset live broadcast condition based on the data coding frame rate and the data successful transmission frame rate in the live broadcast status information sent by the terminal again, a code rate adjustment instruction may be sent to the terminal, where the code rate adjustment instruction is used to instruct the terminal to adjust the current code rate, and the code rate is used to instruct the size of the data transmitted in unit time.
That is, after the preset duration, the newly connected network platform again indicates that the network performance of the reconnection is still poor when detecting that the terminal does not satisfy the preset live broadcast condition based on the data encoding frame rate and the data successful transmission frame rate in the live broadcast status information sent by the terminal. At this time, the newly connected server may send a code rate adjustment instruction to the terminal, so that the terminal performs up-and-down adjustment on the current code rate, that is, changes the size of data transmitted in unit time.
Further, if the network performance is still poor after the terminal adjusts the code rate, the newly connected server may send a third notification message to the terminal, where the third notification message is used to instruct the user to increase the network bandwidth. Accordingly, after receiving the third notification message, the terminal displays the third notification message in the current display interface, for example, the third notification message may be "network performance is poor, please increase network bandwidth".
In the embodiment of the application, the live broadcast state information sent by the terminal is received every preset time length, and the live broadcast state information is used for indicating the terminal performance and/or the network performance of the terminal when the terminal is currently performing network live broadcast, so that whether the terminal currently meets preset live broadcast conditions can be detected based on the live broadcast state information, if not, the terminal is stopped performing network live broadcast, and thus, the problem that the network live broadcast effect is poor due to reasons such as low terminal performance can be avoided.
Fig. 3A is a schematic structural diagram illustrating a webcast management apparatus according to an exemplary embodiment, where the webcast management apparatus may be implemented by software, hardware, or a combination of the two. The live webcast management device may include:
a receiving module 310, configured to receive, every preset duration, live broadcast state information sent by a terminal, where the live broadcast state information is used to indicate a terminal performance and/or a network performance of the terminal when the terminal performs network live broadcast currently;
a detecting module 320, configured to detect whether the terminal currently meets a preset live broadcast condition based on the live broadcast status information;
and a live broadcast termination module 330, configured to terminate the live broadcast by the terminal when it is determined that the terminal does not meet the preset live broadcast condition currently, so as to implement live broadcast management.
Optionally, the live broadcast status information includes at least one of a data acquisition frame rate, a data encoding frame rate, and a data successful sending frame rate of the terminal.
Optionally, the detecting module 320 is configured to:
if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently;
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
and if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently.
Optionally, referring to fig. 3B, the apparatus further includes:
the sending module 340 is configured to send a platform replacement instruction to the terminal, where the platform replacement instruction carries address information, the platform replacement instruction is used to instruct the terminal to log in a network platform corresponding to the address information for live webcasting, and the address information is selected by the server from stored address information of multiple network platforms based on a preset preferred policy.
In the embodiment of the application, the live broadcast state information sent by the terminal is received every preset time length, and the live broadcast state information is used for indicating the terminal performance and/or the network performance of the terminal when the terminal is currently performing network live broadcast, so that whether the terminal currently meets preset live broadcast conditions can be detected based on the live broadcast state information, if not, the terminal is stopped performing network live broadcast, and thus, the problem that the network live broadcast effect is poor due to reasons such as low terminal performance can be avoided.
It should be noted that: in the foregoing embodiment, when the management apparatus for webcast is implemented, only the division of the functional modules is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiment of the management apparatus for live webcasting and the embodiment of the management method for live webcasting provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiment of the method and are not described herein again.
Fig. 4 is a schematic diagram illustrating a server structure of a webcast management apparatus according to an exemplary embodiment. The server may be a server in a cluster of background servers. Specifically, the method comprises the following steps:
the server 400 includes a Central Processing Unit (CPU)401, a system memory 404 including a Random Access Memory (RAM)402 and a Read Only Memory (ROM)403, and a system bus 405 connecting the system memory 404 and the central processing unit 401. The server 400 also includes a basic input/output system (I/O system) 406, which facilitates the transfer of information between devices within the computer, and a mass storage device 407 for storing an operating system 413, application programs 414, and other program modules 415.
The basic input/output system 406 includes a display 408 for displaying information and an input device 409 such as a mouse, keyboard, etc. for user input of information. Wherein a display 408 and an input device 409 are connected to the central processing unit 401 through an input output controller 410 connected to the system bus 405. The basic input/output system 406 may also include an input/output controller 410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 410 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 407 is connected to the central processing unit 401 through a mass storage controller (not shown) connected to the system bus 405. The mass storage device 407 and its associated computer-readable media provide non-volatile storage for the server 400. That is, the mass storage device 407 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 404 and mass storage device 407 described above may be collectively referred to as memory.
According to various embodiments of the present application, the server 400 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 400 may be connected to the network 412 through the network interface unit 411 connected to the system bus 405, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 411.
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU. The one or more programs include a management method for performing live webcasting provided by the embodiment of the present application as described in the above embodiment shown in fig. 1B or fig. 2.
An embodiment of the present application further provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to execute the live webcast management method provided in the embodiment shown in fig. 1B or fig. 2.
The embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the management method for webcasting provided in the embodiment shown in fig. 1B or fig. 2.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (5)
1. A management method for live webcasting is characterized by comprising the following steps:
receiving live broadcast state information sent by a terminal every other preset time, wherein the live broadcast state information is used for indicating the terminal performance and the network performance of the terminal when the terminal carries out network live broadcast currently, the live broadcast state information comprises at least one of a data acquisition frame rate, a data coding frame rate and a data successful sending frame rate of the terminal, the data acquisition frame rate is used for evaluating the performance of a camera adopted by the terminal, and the data coding frame rate is used for evaluating the performance of actual coding of the terminal;
based on the live broadcast state information, detecting whether the terminal currently meets preset live broadcast conditions or not, including:
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
when the terminal is determined not to meet the preset live broadcast condition currently, the terminal is stopped from carrying out live broadcast so as to realize live broadcast management;
if the live broadcast state information includes the data coding frame rate and the data successful sending frame rate, and a difference between the data coding frame rate and the data successful sending frame rate is greater than a second preset difference, when it is determined that the terminal does not meet the preset live broadcast condition currently, after the terminal is terminated to perform network live broadcast, the method further includes:
sending a platform replacement instruction to the terminal, wherein the platform replacement instruction carries address information and is used for instructing the terminal to log in a network platform corresponding to the address information for network live broadcast, and the address information is selected from the stored address information of a plurality of network platforms by a server based on a preset optimal strategy.
2. The method of claim 1, wherein the detecting whether the terminal currently meets a preset live condition based on the live status information further comprises at least one of the following implementation manners:
and if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently.
3. A management apparatus for webcasting, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving live broadcast state information sent by a terminal every preset time length, the live broadcast state information is used for indicating the terminal performance and the network performance when the terminal carries out network live broadcast currently, the live broadcast state information comprises at least one of a data acquisition frame rate, a data coding frame rate and a data successful sending frame rate of the terminal, the data acquisition frame rate is used for evaluating the performance of a camera adopted by the terminal, and the data coding frame rate is used for evaluating the performance of actual coding of the terminal;
the detection module is used for detecting whether the terminal currently meets a preset live broadcast condition or not based on the live broadcast state information;
the live broadcast termination module is used for terminating the live broadcast of the terminal when the terminal is determined not to meet the preset live broadcast condition currently so as to realize live broadcast management of the network;
the detection module is further configured to:
if the live broadcast state information comprises the data acquisition frame rate and the data coding frame rate, and the difference value between the data acquisition frame rate and the data coding frame rate is greater than a first preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
the detection module is further configured to:
if the live broadcast state information comprises the data coding frame rate and the data successful sending frame rate, and the difference value between the data coding frame rate and the data successful sending frame rate is larger than a second preset difference value, determining that the terminal does not meet the preset live broadcast condition currently;
the device further comprises:
the server comprises a sending module and a receiving module, wherein the sending module is used for sending a platform replacement instruction to the terminal, the platform replacement instruction carries address information, the platform replacement instruction is used for indicating the terminal to log in a network platform corresponding to the address information for network live broadcast, and the address information is selected from the stored address information of a plurality of network platforms by the server based on a preset optimal strategy.
4. The apparatus of claim 3, wherein the detection module is to:
and if the live broadcast state information comprises the data acquisition frame rate, and the data acquisition frame rate is less than a preset data acquisition frame rate, determining that the terminal does not meet the preset live broadcast condition currently.
5. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711401596.6A CN108040261B (en) | 2017-12-22 | 2017-12-22 | Network live broadcast management method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711401596.6A CN108040261B (en) | 2017-12-22 | 2017-12-22 | Network live broadcast management method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108040261A CN108040261A (en) | 2018-05-15 |
CN108040261B true CN108040261B (en) | 2020-06-30 |
Family
ID=62100289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711401596.6A Active CN108040261B (en) | 2017-12-22 | 2017-12-22 | Network live broadcast management method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108040261B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105282547A (en) * | 2014-07-03 | 2016-01-27 | 深圳市腾讯计算机系统有限公司 | Code rate control method and device of video encoding |
CN105847264A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and system of providing streaming media service |
CN107341754A (en) * | 2017-07-13 | 2017-11-10 | 哈尔滨市舍科技有限公司 | Unmanned plane view scenic spot management system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4423790B2 (en) * | 2001-01-11 | 2010-03-03 | ソニー株式会社 | Demonstration system, demonstration method via network |
US9965296B2 (en) * | 2013-06-30 | 2018-05-08 | Vmware, Inc. | Relative frame rate as display quality benchmark for remote desktop |
CN105872614A (en) * | 2016-04-12 | 2016-08-17 | 乐视控股(北京)有限公司 | Live stream switching method and device |
CN105872580B (en) * | 2016-04-15 | 2019-08-13 | 广州酷狗计算机科技有限公司 | The recording method and device of live video |
CN106331767B (en) * | 2016-09-09 | 2020-03-17 | 腾讯科技(深圳)有限公司 | Data error correction processing method, terminal, server and system |
CN106454413B (en) * | 2016-09-20 | 2019-10-08 | 北京小米移动软件有限公司 | Code switching method, device and equipment is broadcast live |
CN107071503B (en) * | 2017-02-09 | 2019-01-08 | 腾讯科技(深圳)有限公司 | The method, apparatus of net cast and live streaming connect streaming server |
-
2017
- 2017-12-22 CN CN201711401596.6A patent/CN108040261B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105282547A (en) * | 2014-07-03 | 2016-01-27 | 深圳市腾讯计算机系统有限公司 | Code rate control method and device of video encoding |
CN105847264A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and system of providing streaming media service |
CN107341754A (en) * | 2017-07-13 | 2017-11-10 | 哈尔滨市舍科技有限公司 | Unmanned plane view scenic spot management system |
Also Published As
Publication number | Publication date |
---|---|
CN108040261A (en) | 2018-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111628847B (en) | Data transmission method and device | |
CN109753207B (en) | Information processing method and device and storage medium | |
CN107147921B (en) | Video playing acceleration method and device based on slice and intelligent CDN scheduling | |
WO2019228340A1 (en) | Program optimization method and apparatus, terminal, and storage medium | |
US9998915B2 (en) | Wireless communication device | |
US11259063B2 (en) | Method and system for setting video cover | |
CN111083536B (en) | Method and device for adjusting video code rate | |
CN109391843B (en) | Online video speed doubling playing method, device, medium and intelligent terminal | |
CN114584833B (en) | Audio and video processing method and device and storage medium | |
US10250657B2 (en) | Streaming media optimization | |
CN104349177A (en) | Method for turning to play multimedia file under desktop cloud, virtual machine and system | |
CN110944220A (en) | Video screen projection playing method, device, equipment and system | |
CN106791957B (en) | Video live broadcast processing method and device | |
CN112543354B (en) | Service-aware distributed video cluster efficient telescoping method and system | |
CN106302827A (en) | Communication means based on distributed system, equipment and distributed system | |
CN109788251B (en) | Video processing method, device and storage medium | |
CN108551571B (en) | Monitoring video distribution method, device and system and distribution server | |
US9077768B2 (en) | Method and system for providing digital contents in a network environment | |
CN108040261B (en) | Network live broadcast management method and device and storage medium | |
EP4117294A1 (en) | Method and device for adjusting bit rate during live streaming | |
CN114051146B (en) | Method and system for preventing repeated plug flow | |
CN116248644A (en) | Optimization method based on WebRTC plug flow technology | |
CN109309805A (en) | Multi-window display method, device, equipment and system for video conference | |
WO2021027474A1 (en) | Positioning assistance information broadcasting method, positioning server and ran node | |
CN114363263A (en) | Bandwidth control method of financial service network and related equipment |
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 |