[go: up one dir, main page]

CN108810052A - The selection method and device of direct broadcast server - Google Patents

The selection method and device of direct broadcast server Download PDF

Info

Publication number
CN108810052A
CN108810052A CN201710305843.6A CN201710305843A CN108810052A CN 108810052 A CN108810052 A CN 108810052A CN 201710305843 A CN201710305843 A CN 201710305843A CN 108810052 A CN108810052 A CN 108810052A
Authority
CN
China
Prior art keywords
live
server
servers
live broadcast
communication quality
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.)
Granted
Application number
CN201710305843.6A
Other languages
Chinese (zh)
Other versions
CN108810052B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710305843.6A priority Critical patent/CN108810052B/en
Publication of CN108810052A publication Critical patent/CN108810052A/en
Application granted granted Critical
Publication of CN108810052B publication Critical patent/CN108810052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • 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/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests

Landscapes

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

Abstract

本申请公开了一种直播服务器的选择方法及装置,属于网络技术领域。该方法包括:直播管理服务器接收主播终端发送的推流请求,该推流请求中携带主播标识,该直播管理服务器基于该主播标识,获取该多个直播服务器中的每一个直播服务器与该主播标识对应的历史观看记录,该直播管理服务器基于该历史观看记录、该多个直播服务器中每一个直播服务器与该主播终端之间的通信质量参数以及该多个直播服务器之间的通信质量参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器。本发明实施例具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。

The application discloses a method and device for selecting a live broadcast server, belonging to the field of network technology. The method includes: the live broadcast management server receives a stream push request sent by the anchor terminal, the stream push request carries an anchor identifier, and the live broadcast management server obtains each live server in the plurality of live broadcast servers and the anchor identifier based on the anchor identifier Corresponding historical viewing records, based on the historical viewing records, the communication quality parameters between each of the multiple live servers and the anchor terminal, and the communication quality parameters between the multiple live servers, the live management server, from One of the multiple live servers is determined as the source live server. The embodiment of the present invention specifically pushes streams quickly for some users, and minimizes the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

Description

直播服务器的选择方法及装置Method and device for selecting live broadcast server

技术领域technical field

本申请涉及网络技术领域,特别涉及一种直播服务器的选择方法及装置。The present application relates to the field of network technology, in particular to a method and device for selecting a live server.

背景技术Background technique

随着网络技术的快速发展,网络直播系统得到了广泛的应用,如,可以应用于球赛直播、开业直播等直播场景中。目前,网络直播系统中主要包括主播终端、观看用户终端和网络直播平台,该网络直播平台还包括直播管理服务器和多个直播服务器。其中,直播服务器可以用于存储直播数据流,观看用户终端可以从直播服务器中下载该直播数据流。直播管理服务器主要用于从该多个直播服务器中选择某个直播服务器作为源直播服务器,该源直播服务器主要用于存储主播终端在直播过程中发送的直播数据流。With the rapid development of network technology, the network live broadcast system has been widely used, for example, it can be applied to live broadcast scenarios such as live broadcast of football games and live broadcast of opening ceremony. At present, the network live broadcast system mainly includes an anchor terminal, a viewing user terminal and a network live broadcast platform, and the network live broadcast platform also includes a live broadcast management server and multiple live broadcast servers. Wherein, the live server can be used to store the live data stream, and the user terminal watching can download the live data stream from the live server. The live broadcast management server is mainly used to select a live broadcast server from the plurality of live broadcast servers as a source live broadcast server, and the source live broadcast server is mainly used to store the live data stream sent by the anchor terminal during the live broadcast.

在现有技术中,主播终端在直播时可以向直播管理服务器发送推流请求,该推流请求中可以携带该主播终端当前接入网络的网络协议(Internet Protocol,IP)地址。由于与该主播终端处于相同或较近区域的直播服务器与该主播终端之间的通信质量一般较好,因此,直播管理服务器可以根据该主播终端的IP地址,从该多个直播服务器中选择与该主播终端之间通信质量较好的直播服务器作为源直播服务器。之后,直播管理服务器创建直播频道,并将该源直播服务器的地址信息和该直播频道的频道信息发送给主播终端,以便于该主播终端基于该地址信息和频道信息,向该源直播服务器发送直播数据流,由该源直播服务器存储该直播数据流,并且不再进一步分发。当有用户观看直播时,如果用户归属的直播服务器上没有直播数据流,则实时向源直播服务器回源拉取直播数据流之后发送给用户。In the prior art, the anchor terminal may send a stream push request to the live broadcast management server during live broadcast, and the stream push request may carry the Internet Protocol (IP) address of the anchor terminal currently accessing the network. Since the communication quality between the live broadcast server in the same or closer area to the anchor terminal and the anchor terminal is generally better, the live management server can select from the multiple live servers according to the IP address of the anchor terminal. The live broadcast server with better communication quality between the anchor terminals is used as the source live broadcast server. Afterwards, the live broadcast management server creates a live broadcast channel, and sends the address information of the source live broadcast server and the channel information of the live broadcast channel to the anchor terminal, so that the anchor terminal can send the live broadcast to the source live broadcast server based on the address information and channel information. The data stream is stored by the source live server and is not further distributed. When a user is watching a live broadcast, if there is no live data stream on the live broadcast server to which the user belongs, the live data stream will be pulled from the source live server in real time and sent to the user.

上述提供的实施方式中,直播管理服务器选择的是与主播终端之间通信质量较好的直播服务器作为源直播服务器来存储该主播终端发送的直播数据流,然而,由于直播视频流的分发需要一定的时延,假如从该源直播服务器中下载直播数据流的观看用户的数量较少,则导致大部分观看用户终端无法快速获取到直播视频流,也即是,上述提供的实施方式的直播针对性较差,效率较低。In the embodiment provided above, the live broadcast management server selects the live broadcast server with better communication quality with the anchor terminal as the source live server to store the live data stream sent by the anchor terminal. However, since the distribution of the live video stream requires a certain delay, if the number of viewing users who download the live data stream from the source live broadcast server is small, then most of the viewing user terminals cannot quickly obtain the live video stream. Poor performance and low efficiency.

发明内容Contents of the invention

为了解决现有技术中直播针对性较差,效率较低的问题,本申请提供了一种直播服务器的选择方法及装置。所述技术方案如下:In order to solve the problem of poor pertinence and low efficiency of live broadcast in the prior art, the present application provides a method and device for selecting a live broadcast server. Described technical scheme is as follows:

第一方面,提供了一种直播服务器的选择方法,应用于网络直播平台中,所述网络直播平台包括直播管理服务器和多个直播服务器,所述方法包括:In the first aspect, a method for selecting a live broadcast server is provided, which is applied to a network live broadcast platform. The network live broadcast platform includes a live broadcast management server and a plurality of live broadcast servers. The method includes:

所述直播管理服务器接收主播终端发送的推流请求,所述推流请求中携带主播标识;The live broadcast management server receives the stream push request sent by the anchor terminal, and the stream push request carries the anchor identifier;

所述直播管理服务器基于所述主播标识,获取所述多个直播服务器中的每一个直播服务器与所述主播标识对应的历史观看记录;The live broadcast management server obtains historical viewing records corresponding to each live server in the plurality of live broadcast servers and the anchor identifier based on the anchor identifier;

所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器。Based on the historical viewing records, the communication quality parameters between each of the multiple live servers and the anchor terminal, and the communication quality parameters between the multiple live servers, the live management server selects from the Determine a live server among the plurality of live servers as the source live server.

在本发明实施例中,由于直播管理服务器根据该历史观看记录、该多个直播服务器中每个直播服务器与主播终端之间的通信质量参数、该多个直播服务器之间的通信质量参数这三个条件,从多个直播服务器中确定一个直播服务器作为源直播服务器。如此,可以具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。In the embodiment of the present invention, since the live broadcast management server is based on the historical viewing records, the communication quality parameters between each of the multiple live servers and the host terminal, and the communication quality parameters between the multiple live servers One condition is used to determine a live server as the source live server from multiple live servers. In this way, it is possible to quickly push streams for some users in a targeted manner, and minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

所述直播管理服务器创建直播频道,并向所述主播终端发送推流响应,所述推流响应中携带所述源直播服务器的地址信息和所述直播频道的频道信息。The live broadcast management server creates a live channel, and sends a streaming response to the anchor terminal, and the streaming response carries the address information of the source live server and the channel information of the live channel.

值得说明的是,直播管理服务器向主播终端发送携带所述源直播服务器的地址信息和所述直播频道的频道信息推流响应后,可以使得主播终端基于该源直播服务器的地址信息和该直播频道的频道信息,向该源直播服务器上传直播数据流,从而实现了直播数据流的推送。It is worth noting that, after the live broadcast management server sends a streaming response carrying the address information of the source live broadcast server and the channel information of the live broadcast channel to the anchor terminal, the anchor terminal can channel information, and upload the live data stream to the source live server, thereby realizing the push of the live data stream.

在一种可能的实现方式中,所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,包括:In a possible implementation manner, the live broadcast management server is based on the historical viewing records, communication quality parameters between each of the multiple live broadcast servers and the anchor terminal, and the multiple live server Between the communication quality parameters, determine a live server as the source live server from the plurality of live servers, including:

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;The live management server determines N live servers that satisfy a preset matching strategy from the plurality of live servers based on the historical viewing records, where N is the number of live servers that meet the preset matching strategy;

所述直播管理服务器根据所述历史观看记录,确定所述N个直播服务器的权重;The live management server determines the weights of the N live servers according to the historical viewing records;

所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器。According to the weights of the N live servers, the communication quality parameters between the anchor terminal and the N live servers, and the communication quality parameters between the N live servers, the live management server selects from the N One of the live servers is determined as the source live server.

值得说明的是,直播管理服务器根据历史观看记录、N个直播服务器的权重所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器,如此,可以减小直播管理服务器确定源直播服务器的运算量。It is worth noting that the live broadcast management server, according to the historical viewing records, the weights of the N live broadcast servers, the communication quality parameters between the anchor terminal and the N live broadcast servers, and the communication quality parameters between the N live broadcast servers, One live server is determined from the N live servers as the source live server. In this way, the computation load of the live management server for determining the source live server can be reduced.

在一种可能的实现方式中,所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器,包括:In a possible implementation manner, the live broadcast management server is based on the weights of the N live broadcast servers, the communication quality parameters between the anchor terminal and the N live broadcast servers, and the communication quality parameters between the N live broadcast servers. Communication quality parameter, determine a live server as the source live server from the N live servers, including:

对于所述N个直播服务器中的每个直播服务器,确定所述直播服务器与所述主播终端之间的通信质量参数,以及确定所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数;For each live server in the N live servers, determine the communication quality parameter between the live server and the anchor terminal, and determine the live server and the N live servers except the live server Communication quality parameters between each live server other than ;

根据所述N个直播服务器的权重、所述直播服务器与所述主播终端之间的通信质量参数以及所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数,确定所述直播服务器对应的综合通信质量参数;According to the weights of the N live servers, the communication quality parameters between the live server and the anchor terminal, and the live server and each live server in the N live servers except the live server The communication quality parameter between, determine the comprehensive communication quality parameter corresponding to described live server;

从所述N个直播服务器中,将最小的综合通信质量参数对应的直播服务器确定为所述源直播服务器。From the N live servers, determine the live server corresponding to the smallest comprehensive communication quality parameter as the source live server.

值得说明的是,在从N个直播服务器中确定源直播服务器时,综合计算了主播终端与每个直播服务器之间的时延,以及每个直播服务器与其它直播服务器之间的时延,如此,在后续为该N个直播服务器分发直播数据流时,可以保证确定的源直播服务器与N个直播服务器之间的时延均较短,从而减小了观看用户终端获取直播数据流的时延,提升了直播效率。It is worth noting that when determining the source live server from the N live servers, the time delay between the host terminal and each live server, and the time delay between each live server and other live servers are calculated comprehensively, so , when subsequently distributing live data streams to the N live servers, it can ensure that the time delay between the determined source live server and the N live servers is relatively short, thereby reducing the time delay for viewing user terminals to obtain live data streams , which improves the live broadcast efficiency.

在一种可能的实现方式中,所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,包括:In a possible implementation manner, the live broadcast management server is based on the historical viewing records, communication quality parameters between each of the multiple live broadcast servers and the anchor terminal, and the multiple live server Between the communication quality parameters, determine a live server as the source live server from the plurality of live servers, including:

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;The live management server determines N live servers that satisfy a preset matching strategy from the plurality of live servers based on the historical viewing records, where N is the number of live servers that meet the preset matching strategy;

所述直播管理服务器根据所述历史观看记录,确定所述N个直播服务器的权重;The live management server determines the weights of the N live servers according to the historical viewing records;

所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述多个直播服务器任一直播服务器之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为所述源直播服务器。The live management server, according to the weights of the N live servers, the communication quality parameters between the anchor terminal and any one of the multiple live servers, and the communication quality parameters between the multiple live servers, Determining a live server from the plurality of live servers as the source live server.

值得说明的是,上述通过确定该多个直播服务器中每个直播服务器的综合通信参数,并根据每个直播服务器的综合通信参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器,如此,提高了确定源直播服务器的准确性。It is worth noting that, by determining the comprehensive communication parameters of each live server in the multiple live servers, and according to the comprehensive communication parameters of each live server, determine a live server from the multiple live servers as the source live server, In this way, the accuracy of determining the source live server is improved.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的用户数量;In a possible implementation manner, the historical viewing record includes the number of users who watched the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server determines N live servers that meet the preset matching strategy from the plurality of live servers, including:

所述直播管理服务器从所述多个直播服务器中确定观看所述主播标识对应的内容的用户数量大于或等于第一预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。The live management server determines from the plurality of live servers that the number of users watching the content corresponding to the anchor identifier is greater than or equal to a first preset threshold as the live servers that satisfy the preset matching policy.

值得说明的是,直播管理服务器从该多个直播服务器中选择历史观看该主播标识对应的内容的用户数量较多的直播服务器,并将选择的直播服务器作为推流的目标,如此,可以保证大部分的观看用户终端能够尽可能快速地获取到直播数据流。It is worth noting that the live broadcast management server selects a live server with a large number of users who have historically watched the content corresponding to the anchor ID from the multiple live broadcast servers, and uses the selected live server as the target of streaming. In this way, large Part of the viewing user terminals can obtain the live data stream as quickly as possible.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的所有用户的历史打赏总额度;In a possible implementation manner, the historical viewing record includes the total amount of historical rewards of all users who watch the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server determines N live servers that meet the preset matching strategy from the plurality of live servers, including:

所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。The live broadcast management server determines from the plurality of live broadcast servers that the total amount of historical rewards of all users watching the content corresponding to the host identifier is greater than or equal to a second preset threshold as meeting the preset match Strategies for live servers.

值得说明的是,直播管理服务器从多个直播服务器中,选择观看该主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器,并将所选择的直播服务器确定为推流目标,如此,可以使得打赏总额度较大所对应的直播服务器上的用户能够快速看到直播。It is worth noting that the live broadcast management server selects from multiple live broadcast servers the live broadcast server whose total historical tipping amount of all users who watch the content corresponding to the anchor identifier is greater than or equal to the second preset threshold, and sends the selected live broadcast server The server is determined as the streaming target. In this way, the users on the live server corresponding to the larger total amount of rewards can quickly see the live broadcast.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的每一个用户的历史打赏总额度;In a possible implementation manner, the historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server selects N live servers that meet the preset matching strategy from the plurality of live servers, including:

所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足所述预设匹配策略的直播服务器。The live broadcast management server determines, from the plurality of live broadcast servers, that the live broadcast server corresponding to the users who watch the content corresponding to the anchor identifier in the top M in the history of the total amount of rewards is the live broadcast server that satisfies the preset matching strategy server.

值得说明的是,上述直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足该预设匹配策略的直播服务器,如此可以保证打赏额度较大的用户可以快速观看直播。It is worth noting that the above-mentioned live broadcast management server determines from the plurality of live broadcast servers that the live broadcast servers corresponding to the users who watch the content corresponding to the anchor identifier in the top M in the history of the total amount of rewards are the ones that satisfy the preset matching strategy Live broadcast server, so that users with large rewards can quickly watch the live broadcast.

在一种可能的实现方式中,所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器之后,还包括:In a possible implementation manner, after the live broadcast management server determines N live servers satisfying a preset matching strategy from the plurality of live broadcast servers based on the historical viewing records, it further includes:

所述直播管理服务器接收所述源直播服务器发送的数据传输成功消息,所述数据传输成功消息中携带所述直播频道的频道信息;The live broadcast management server receives the data transmission success message sent by the source live broadcast server, and the data transmission success message carries the channel information of the live broadcast channel;

所述直播管理服务器向所述N个直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息。The live broadcast management server sends a download instruction to the N live servers, and the download instruction includes address information of the source live server and channel information of the live channel.

值得说明的是,直播管理服务器向N个直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息,如此,可以使得该N个直播服务器成功回源拉取直播数据流。It is worth noting that the live broadcast management server sends a download instruction to the N live servers, and the download instruction includes the address information of the source live server and the channel information of the live channel, so that the N live servers can be successfully downloaded. Pull the live data stream back to the source.

第二方面,提供了一种直播服务器的选择方法,应用于网络直播平台中,所述网络直播平台包括直播管理服务器和多个直播服务器,所述方法包括:In a second aspect, a method for selecting a live broadcast server is provided, which is applied to a network live broadcast platform. The network live broadcast platform includes a live broadcast management server and a plurality of live broadcast servers. The method includes:

所述直播管理服务器接收源直播服务器发送的数据传输成功消息,所述数据传输成功消息中携带直播频道的频道信息,所述源直播服务器由所述直播管理服务器在接收到主播终端发送的推流请求后从所述多个直播服务器中选择得到,且用于存储所述主播终端发送的直播数据流,所述直播频道由所述直播管理服务器在选择所述源直播服务器后建立;The live broadcast management server receives the data transmission success message sent by the source live broadcast server, the data transmission success message carries the channel information of the live channel, and the source live broadcast server receives the push stream sent by the anchor terminal by the live broadcast management server After the request is selected from the multiple live servers, and used to store the live data stream sent by the anchor terminal, the live channel is established by the live management server after selecting the source live server;

所述直播管理服务器基于所述直播频道的频道信息,从主播标识与频道信息之间的对应关系中获取对应的主播标识,并从存储的主播标识与历史观看记录之间的对应关系中,获取对应的历史观看记录,所述主播标识与所述直播频道的频道信息之间的对应关系由所述直播管理服务器创建所述直播频道后存储得到;Based on the channel information of the live broadcast channel, the live management server obtains the corresponding anchor ID from the correspondence between the anchor ID and channel information, and obtains the corresponding anchor ID from the stored correspondence between the anchor ID and historical viewing records. Corresponding historical viewing records, the corresponding relationship between the anchor identifier and the channel information of the live channel is stored after the live channel is created by the live management server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择除了所述源直播服务器之外符合所述预设匹配策略的至少一个直播服务器作为分发直播服务器。Based on the historical viewing records, the live broadcast management server selects at least one live server other than the source live server that meets the preset matching strategy as a distribution live server from the plurality of live broadcast servers.

在本发明实施例中,可以在对直播数据流进行分发的过程中,根据历史观看记录,从多个直播服务器中选择满足预设匹配策略的直播服务器作为分发直播服务器,如此,使得直播管理服务器具有针对性地对直播数据流进行分发,提高了直播效率。In the embodiment of the present invention, in the process of distributing live data streams, according to historical viewing records, a live server that satisfies the preset matching strategy can be selected from multiple live servers as the distribution live server, so that the live management server The live broadcast data stream is distributed in a targeted manner, which improves the live broadcast efficiency.

在一种可能的实现方式中,所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择除了所述源直播服务器之外符合所述预设匹配策略的至少一个直播服务器作为分发直播服务器之后,还包括:In a possible implementation, the live broadcast management server selects from the multiple live broadcast servers, based on the historical viewing records, at least one live broadcast server that meets the preset matching strategy except the source live broadcast server After serving as a distribution live server, it also includes:

向所述至少一个分发直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息。Sending a download instruction to the at least one live distribution server, where the download instruction includes address information of the source live server and channel information of the live channel.

值得说明的是,直播管理服务器向至少一个分发直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息,如此,可以使得该至少一个分发直播服务器成功回源拉取直播数据流。It is worth noting that the live broadcast management server sends a download instruction to at least one distribution live broadcast server, and the download instruction includes the address information of the source live broadcast server and the channel information of the live broadcast channel, so that the at least one distribution live broadcast The server successfully returns to the source to pull the live data stream.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的用户数量;In a possible implementation manner, the historical viewing record includes the number of users who watched the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择除了所述源直播服务器之外符合所述预设匹配策略的至少一个直播服务器作为分发直播服务器,包括:Based on the historical viewing records, the live management server selects at least one live server from the plurality of live servers that meets the preset matching strategy except the source live server as a distribution live server, including:

所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的用户数量大于或等于第一预设阈值的至少一个直播服务器为满足所述预设匹配策略的分发直播服务器。The live broadcast management server determines, from the multiple live broadcast servers, that at least one live broadcast server whose number of users watching the content corresponding to the anchor identifier is greater than or equal to a first preset threshold is a distribution live broadcast that satisfies the preset matching strategy. server.

值得说明的是,直播管理服务器从该多个直播服务器中选择历史观看该主播标识对应的内容的用户数量较多的直播服务器,并将选择的直播服务器作为推流的目标,如此,可以保证大部分的观看用户终端能够尽可能快速地获取到直播数据流。It is worth noting that the live broadcast management server selects a live server with a large number of users who have historically watched the content corresponding to the anchor ID from the multiple live broadcast servers, and uses the selected live server as the target of streaming. In this way, large Part of the viewing user terminals can obtain the live data stream as quickly as possible.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的所有用户的历史打赏总额度;In a possible implementation manner, the historical viewing record includes the total amount of historical rewards of all users who watch the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择除了所述源直播服务器之外符合所述预设匹配策略的至少一个直播服务器作为分发直播服务器,包括:Based on the historical viewing records, the live management server selects at least one live server from the plurality of live servers that meets the preset matching strategy except the source live server as a distribution live server, including:

所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的至少一个直播服务器为满足所述预设匹配策略的分发直播服务器。The live broadcast management server determines, from the multiple live broadcast servers, that at least one live broadcast server whose total historical tipping amount of all users who watch the content corresponding to the anchor identifier is greater than or equal to a second preset threshold value satisfies the preset threshold. Set the distribution live server of the matching strategy.

值得说明的是,直播管理服务器从多个直播服务器中,选择观看该主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器,并将所选择的直播服务器确定为推流目标,使得该直播服务器上的用户能够快速看到直播。It is worth noting that the live broadcast management server selects from multiple live broadcast servers the live broadcast server whose total historical tipping amount of all users who watch the content corresponding to the anchor identifier is greater than or equal to the second preset threshold, and sends the selected live broadcast server The server is determined as the push target, so that users on the live server can quickly watch the live broadcast.

在一种可能的实现方式中,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的每一个用户的历史打赏总额度;In a possible implementation manner, the historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor identifier on the live broadcast server;

所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择除了所述源直播服务器之外符合所述预设匹配策略的至少一个直播服务器作为分发直播服务器,包括:Based on the historical viewing records, the live management server selects at least one live server from the plurality of live servers that meets the preset matching strategy except the source live server as a distribution live server, including:

所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的至少一个直播服务器为满足所述预设匹配策略的分发直播服务器。The live broadcast management server determines from the plurality of live broadcast servers that at least one live broadcast server corresponding to users who watch the content corresponding to the anchor identifier in the top M in the history of the total amount of rewards is satisfied with the preset matching strategy distribution live server.

值得说明的是,直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足该预设匹配策略的直播服务器,如此可以保证打赏额度较大的用户可以快速观看直播。It is worth noting that, from the plurality of live broadcast servers, the live broadcast management server determines that the live broadcast servers corresponding to the users who watch the content corresponding to the anchor ID in the top M in terms of the total amount of historical tipping are the live broadcast servers that satisfy the preset matching strategy server, so that users with large rewards can quickly watch the live broadcast.

第三方面,提供了一种直播服务器的选择装置,所述直播服务器的选择装置具有实现上述第一方面、第二方面中直播服务器的选择方法行为的功能。所述直播服务器的选择装置包括至少一个单元,该至少一个单元用于实现上述第一方面、第二方面所提供的直播服务器的选择方法。In a third aspect, a device for selecting a live server is provided, and the device for selecting a live server has the function of implementing the behavior of the method for selecting a live server in the first aspect and the second aspect above. The device for selecting a live server includes at least one unit, and the at least one unit is used to implement the method for selecting a live server provided in the first aspect and the second aspect above.

第四方面,提供了一种直播服务器的选择装置,所述直播服务器的选择装置的结构中包括处理器和存储器,所述存储器用于存储支持直播服务器的选择装置执行上述第一方面、第二方面所提供的直播服务器的选择方法的程序,以及存储用于实现上述第一方面、第二方面所提供的直播服务器的选择方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。In a fourth aspect, a device for selecting a live server is provided. The structure of the device for selecting a live server includes a processor and a memory. The program of the method for selecting a live server provided by the aspect, and storing the data involved in realizing the method for selecting a live server provided by the first aspect and the second aspect above. The processor is configured to execute programs stored in the memory. The operating device of the storage device may further include a communication bus for establishing a connection between the processor and the memory.

第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面所述的直播服务器的选择方法。In the fifth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when it runs on a computer, the computer executes the live broadcast server described in the first aspect and the second aspect above selection method.

第六方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面所述的直播服务器的选择方法。In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to execute the live server selection method described in the first aspect and the second aspect above.

上述第三方面、第四方面、第五方面和第六方面所获得的技术效果与第一方面、第二方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the third aspect, the fourth aspect, the fifth aspect and the sixth aspect are similar to those obtained by the corresponding technical means in the first aspect and the second aspect, and will not be repeated here.

本申请提供的技术方案带来的有益效果是:直播管理服务器接收主播终端发送的携带主播标识的推流请求后,获取多个直播服务器中每个直播服务器与该主播标识对应的历史观看记录。之后,直播管理服务器根据该历史观看记录、该多个直播服务器中每个直播服务器与主播终端之间的通信质量参数、该多个直播服务器之间的通信质量参数这三个条件,从多个直播服务器中确定一个直播服务器作为源直播服务器。如此,可以具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。The beneficial effect brought by the technical solution provided by this application is: after the live broadcast management server receives the stream push request carrying the anchor ID sent by the anchor terminal, it obtains the historical viewing records corresponding to the anchor ID for each live server among the multiple live servers. Afterwards, according to the historical viewing record, the communication quality parameters between each live server and the anchor terminal in the multiple live servers, the live management server selects from multiple live broadcast servers according to these three conditions: In the live broadcast server, a live broadcast server is determined as the source live broadcast server. In this way, it is possible to quickly push streams for some users in a targeted manner, and minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

附图说明Description of drawings

图1是本发明实施例提供一种直播系统的结构示意图;FIG. 1 is a schematic structural diagram of a live broadcast system provided by an embodiment of the present invention;

图2是本发明实施例提供的一种直播管理服务器的结构示意图;Fig. 2 is a schematic structural diagram of a live broadcast management server provided by an embodiment of the present invention;

图3是本发明实施例提供的一种直播服务器的选择方法流程图;FIG. 3 is a flow chart of a method for selecting a live server provided by an embodiment of the present invention;

图4是本发明实施例提供的一种直播数据流的分发方法的流程图;FIG. 4 is a flow chart of a method for distributing live data streams according to an embodiment of the present invention;

图5是根据一示例性实施例示出的另一种直播服务器的选择方法的流程图;Fig. 5 is a flow chart showing another method for selecting a live server according to an exemplary embodiment;

图6A是本发明实施例提供的一种直播服务器的选择装置的结构示意图;FIG. 6A is a schematic structural diagram of a device for selecting a live server according to an embodiment of the present invention;

图6B是本发明实施例提供的另一种直播服务器的选择装置的结构示意图;Fig. 6B is a schematic structural diagram of another device for selecting a live server according to an embodiment of the present invention;

图6C是本发明实施例提供的另一种直播服务器的选择装置的结构示意图。Fig. 6C is a schematic structural diagram of another device for selecting a live server according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

在对本发明实施例进行详细地解释说明之前,先对本发明实施例的系统架构予以介绍。图1是本发明实施例提供一种直播系统的结构示意图。该直播系统中主要包括主播终端11、网络直播平台12和观看用户终端13。该主播终端11和该观看用户终端13分别可以通过无线网络与该网络直播平台12建立连接。Before explaining the embodiment of the present invention in detail, the system architecture of the embodiment of the present invention will be introduced first. FIG. 1 is a schematic structural diagram of a live broadcast system provided by an embodiment of the present invention. The live broadcast system mainly includes an anchor terminal 11 , a network live broadcast platform 12 and a viewing user terminal 13 . The host terminal 11 and the viewing user terminal 13 can respectively establish a connection with the webcast platform 12 through a wireless network.

其中,该主播终端11主要用于对主播侧的直播画面进行采集、编码等处理,并且,将经过采集、编码处理后的直播数据流推送到网络直播平台12的直播服务器中(其中,关于网络直播平台12中包括的设备具体请参见下文所述)。在实际应用场景中,该主播终端11可以为诸如手机、平板电脑、计算机之类的设备,本发明实施例对此不做限定。Wherein, the anchor terminal 11 is mainly used for collecting and encoding the live images on the anchor side, and pushing the collected and encoded live data streams to the live broadcast server of the network live broadcast platform 12 (wherein, regarding the network For the equipment included in the live broadcast platform 12, please refer to the description below). In an actual application scenario, the host terminal 11 may be a device such as a mobile phone, a tablet computer, or a computer, which is not limited in this embodiment of the present invention.

其中,该网络直播平台12中包括直播管理服务器和多个直播服务器。需要说明的是,在本发明实施例中并不对该直播管理服务器的数量,以及直播服务器的数量进行限定。为了方便进行说明,本发明实施例的附图1中以该网络直播平台12包括四个直播服务器、一个直播管理服务器为例进行说明。Wherein, the network live broadcast platform 12 includes a live broadcast management server and a plurality of live broadcast servers. It should be noted that the number of live management servers and the number of live servers are not limited in this embodiment of the present invention. For the convenience of description, in the accompanying drawing 1 of the embodiment of the present invention, the network live broadcast platform 12 includes four live broadcast servers and one live broadcast management server as an example for illustration.

该直播管理服务器是网络直播平台12的核心,也是影响用户观看直播体验的关键设备。该直播管理服务器主要负责从多个直播服务器中选择源直播服务器,该源直播服务器为该多个直播服务器中的任一个,主要用于存储主播终端上传的直播数据流。The live broadcast management server is the core of the network live broadcast platform 12, and is also a key device that affects the user's viewing experience of the live broadcast. The live broadcast management server is mainly responsible for selecting a source live broadcast server from multiple live broadcast servers, and the source live broadcast server is any one of the multiple live broadcast servers, and is mainly used for storing live data streams uploaded by anchor terminals.

在实际实现过程中,该主播终端11可以向直播管理服务器发送携带主播标识的推流请求,该主播标识可以用于唯一标识一个主播,例如,该主播标识可以为主播账号等。该直播管理服务器接收到该推流请求后,根据该主播标识,获取该多个直播服务器中的每个直播服务器与该主播标识对应的历史观看记录。之后,该直播管理服务器根据该历史观看记录、该多个直播服务器中每一个直播服务器与主播终端11之间的通信质量参数以及该多个直播服务器之间的通信质量参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器,主播终端11可以向该源直播服务器推送直播数据流。关于该具体实现过程可以参见如下图3所述的实施例。其中,该通信质量参数可以包括但不限于地理位置、时延、丢包率。In actual implementation, the anchor terminal 11 may send a stream push request carrying an anchor ID to the live broadcast management server, and the anchor ID may be used to uniquely identify an anchor, for example, the anchor ID may be an anchor account. After receiving the stream pushing request, the live broadcast management server obtains historical viewing records corresponding to the anchor ID of each live server among the plurality of live servers according to the anchor ID. Afterwards, the live broadcast management server, according to the historical viewing records, the communication quality parameters between each live server in the multiple live servers and the host terminal 11, and the communication quality parameters between the multiple live servers, from the multiple live broadcasts A live server is determined in the server as the source live server, and the anchor terminal 11 can push the live data stream to the source live server. Regarding the specific implementation process, reference may be made to the embodiment described in FIG. 3 below. Wherein, the communication quality parameter may include but not limited to geographic location, time delay, and packet loss rate.

在本发明实施例中,在选择源直播服务器时,不仅考虑了主播终端与每个直播服务器之间的通信质量,还考虑了每个直播服务器上的历史观看记录以及多个直播服务器之间的通信质量,如此,具有针对性地为某些用户快速推流,并可以尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。In the embodiment of the present invention, when selecting the source live server, not only the communication quality between the anchor terminal and each live server is considered, but also the historical viewing records on each live server and the communication between multiple live servers are considered. The quality of communication, in this way, can push streams quickly for certain users in a targeted manner, and can minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

进一步地,该直播管理服务器还可以用于从该多个直播服务器中选择至少一个直播服务器作为分发直播服务器。每个分发直播服务器也均为该多个服务器中的任一个,主要用于从源直播服务器回源拉取直播数据流。其具体实现过程可以参见如下图4或图5所述的实施例。Further, the live broadcast management server can also be used to select at least one live broadcast server from the plurality of live broadcast servers as the distribution live broadcast server. Each distribution live server is also any one of the multiple servers, and is mainly used to pull the live data stream from the source live server back to the source. For the specific implementation process, refer to the embodiment described in FIG. 4 or FIG. 5 below.

需要说明的是,为了提升直播数据流的推流和分发速度,该多个直播服务器一般采用分散在各个地理位置上的内容分发网络(Content Delivery Network,CDN)系统来实现。It should be noted that, in order to improve the push and distribution speed of live data streams, the plurality of live servers are generally implemented by using content delivery network (Content Delivery Network, CDN) systems scattered in various geographic locations.

其中,上述观看用户终端13主要用于从直播服务器中获取直播数据流,并对该直播数据流进行解码、渲染播放等处理,从而使得用户可以观看到直播。其中,该观看用户终端13可以为诸如手机、平板电脑、计算机之类的设备,本发明实施例对此不做限定。另外,本发明实施例中不对该观看用户终端13的数量进行限定,附图1中以该直播系统中包括3个观看用户终端13为例进行说明。Wherein, the above-mentioned viewing user terminal 13 is mainly used to obtain the live data stream from the live server, and perform decoding, rendering and playback on the live data stream, so that the user can watch the live broadcast. Wherein, the viewing user terminal 13 may be a device such as a mobile phone, a tablet computer, or a computer, which is not limited in this embodiment of the present invention. In addition, the number of viewing user terminals 13 is not limited in the embodiment of the present invention. In FIG. 1 , three viewing user terminals 13 are included in the live broadcast system as an example for illustration.

在具体实现中,观看用户终端13一般都是从距离自己较近的直播服务器中获取直播数据流。具体地,当观看用户终端13需要获取直播数据流时,观看用户终端13向直播管理服务器发送观看直播的请求,该观看直播的请求中一般携带该观看用户终端13的IP地址。该直播管理服务器接收到该观看直播的请求后,根据该IP地址,从该多个直播服务器中,选择与该观看用户终端13处于相同或较近区域的直播服务器,并将该直播服务器的地址信息发送给该观看用户终端13,以便于该观看用户终端13从所分配的该直播服务器中获取直播数据流。In a specific implementation, the viewing user terminal 13 generally obtains the live data stream from a live server that is closer to itself. Specifically, when the watching user terminal 13 needs to obtain the live broadcast data stream, the watching user terminal 13 sends a request to watch the live broadcast to the live broadcast management server, and the request generally carries the IP address of the watching user terminal 13 . After the live broadcast management server receives the request to watch the live broadcast, according to the IP address, from the plurality of live broadcast servers, select the live broadcast server that is in the same or near area with the viewing user terminal 13, and sends the address of the live broadcast server The information is sent to the viewing user terminal 13, so that the viewing user terminal 13 obtains the live data stream from the allocated live server.

需要说明的是,在实际应用场景中,该主播终端11和观看用户设备13需要在成功登录至网络直播平台12中的情况下,才可以向该网络直播平台12推流或获取直播数据流。在具体实现中,该主播终端11和观看用户设备13可以分别向网络直播平台12发送登录请求,在一种可能的实现方式中,可以由该网络直播平台12中的直播管理服务器负责进行身份认证,其中,关于身份认证的具体实现过程可以参见相关技术,本发明实施例对此不做详细阐述。在本发明实施例中,是以该主播终端11和观看用户设备13均通过身份认证,成功登陆到网络直播平台12中为例进行说明的。It should be noted that, in actual application scenarios, the anchor terminal 11 and the viewing user equipment 13 need to successfully log in to the network live broadcast platform 12 before they can push streams to the network live broadcast platform 12 or obtain live data streams. In a specific implementation, the host terminal 11 and the viewing user equipment 13 can respectively send login requests to the webcast platform 12, and in a possible implementation, the live broadcast management server in the webcast platform 12 can be responsible for identity authentication , where, for the specific implementation process of identity authentication, reference may be made to related technologies, which will not be elaborated in this embodiment of the present invention. In the embodiment of the present invention, it is described by taking the anchor terminal 11 and the viewing user equipment 13 as an example to successfully log in to the network live broadcast platform 12 through identity authentication.

图2是本发明实施例提供的一种直播管理服务器的结构示意图。图1中的直播系统可以通过图2所示的直播管理服务器来实现。该直播管理服务器可以为计算机设备,参见图2,该计算机设备包括至少一个处理器201,通信总线202,存储器203以及至少一个通信接口204。Fig. 2 is a schematic structural diagram of a live broadcast management server provided by an embodiment of the present invention. The live broadcast system in FIG. 1 can be realized by the live broadcast management server shown in FIG. 2 . The live broadcast management server may be a computer device. Referring to FIG. 2 , the computer device includes at least one processor 201 , a communication bus 202 , a memory 203 and at least one communication interface 204 .

处理器201可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 201 may be a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more devices used to control the execution of the program program of this application. integrated circuit.

通信总线202可包括一通路,在上述组件之间传送信息。Communication bus 202 may include a path for communicating information between the components described above.

存储器203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM))或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器203可以是独立存在,通过通信总线202与处理器201相连接。存储器203也可以和处理器201集成在一起。The memory 203 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM)) or other types that can store information and instructions Type of dynamic storage device, also can be Electrically Erasable Programmable Read-Only Memory (EEPROM), CD-ROM (CompactDisc Read-Only Memory, CD-ROM) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to. The memory 203 may exist independently, and is connected to the processor 201 through the communication bus 202 . The memory 203 can also be integrated with the processor 201 .

通信接口204,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 204 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (Wireless Local Area Networks, WLAN) and so on.

在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图2中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 2 .

在具体实现中,作为一种实施例,计算机设备可以包括多个处理器,例如图2中所示的处理器201和处理器205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, a computer device may include multiple processors, such as the processor 201 and the processor 205 shown in FIG. 2 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).

在具体实现中,作为一种实施例,计算机设备还可以包括输出设备206和输入设备207。输出设备206和处理器201通信,可以以多种方式来显示信息。例如,输出设备206可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备207和处理器201通信,可以以多种方式接收用户的输入。例如,输入设备207可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the computer device may further include an output device 206 and an input device 207 . Output device 206 is in communication with processor 201 and can display information in a variety of ways. For example, the output device 206 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, or a projector (projector) Wait. The input device 207 communicates with the processor 201 and can receive user input in various ways. For example, the input device 207 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.

上述的计算机设备可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备可以是台式机、便携式电脑、网络服务器、掌上电脑(PersonalDigital Assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本发明实施例不限定计算机设备的类型。The above computer equipment may be a general computer equipment or a special computer equipment. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present invention does not limit the type of computer equipment.

其中,存储器203用于存储执行本申请方案的程序代码,并由处理器201来控制执行。处理器201用于执行存储器203中存储的程序代码208。程序代码208中可以包括一个或多个软件模块。处理器201用于执行存储器203中存储的应用程序代码,从而实现图1中直播管理服务器的功能。Wherein, the memory 203 is used to store program codes for executing the solution of the present application, and the execution is controlled by the processor 201 . The processor 201 is used to execute the program code 208 stored in the memory 203 . One or more software modules may be included in the program code 208 . The processor 201 is configured to execute the application program code stored in the memory 203, so as to realize the function of the live broadcast management server in FIG. 1 .

根据上文描述可知,该直播管理服务器需要获取历史观看记录,因此,在实现本发明实施例之前,需要根据历史直播情况确定该历史观看记录。在这里,将先对该历史观看记录的存储过程进行介绍。在实际实现中,该历史观看记录可以存储在一个集中管理设备上,例如,该集中管理设备可以为该直播管理服务器,或者,该集中管理设备也可以为一个单独的设备,本发明实施例对此不做限定。接下来,以该历史观看记录由该直播管理服务器存储为例进行说明:According to the above description, it can be known that the live broadcast management server needs to obtain historical viewing records. Therefore, before implementing the embodiments of the present invention, the historical viewing records need to be determined according to historical live broadcast conditions. Here, the storage process of the historical viewing records will be introduced first. In actual implementation, the historical viewing records can be stored on a centralized management device. For example, the centralized management device can be the live broadcast management server, or the centralized management device can also be a separate device. This is not limited. Next, take the historical viewing record stored by the live broadcast management server as an example for illustration:

根据实际需求不同,该历史观看记录中需要记录的内容不同,具体地可以包括但不限于如下几种情况:According to different actual needs, the content that needs to be recorded in the historical viewing record is different, which may specifically include but not limited to the following situations:

第一种情况:该历史观看记录包括直播服务器上观看该主播标识对应的内容的用户数量。Case 1: the historical viewing record includes the number of users who watched the content corresponding to the host ID on the live broadcast server.

如前文所述,观看用户终端一般都是从距离自己较近的直播服务器中获取直播数据流,也即是,该多个直播服务器中的每个直播服务器上均可能有用户观看直播内容。为了记录每个直播服务器上观看该主播标识对应的内容的用户数量,在每次直播结束后,直播管理服务器以主播标识为单位,可以按照如下表1的格式进行记录:As mentioned above, the viewing user terminal generally obtains the live broadcast data stream from the live broadcast server that is closer to itself, that is, there may be users watching the live broadcast content on each of the multiple live broadcast servers. In order to record the number of users who watch the content corresponding to the anchor ID on each live server, after each live broadcast ends, the live broadcast management server can use the anchor ID as a unit to record according to the format of Table 1 below:

表1Table 1

主播标识anchor logo 直播服务器的标识The ID of the live server 观看用户数量number of viewers

之后,该直播管理服务器对记录的信息进行汇总。在一种可能的实现方式中,直播管理服务器可以以主播标识、直播服务器的标识和用户数量三者之间的对应关系的格式进行存储,以得到该历史观看记录。进一步地,为了便于后续获取每个直播服务器的地址信息,该历史观看记录中还可以包括每一个直播服务器的地址信息。具体可以为如下表2所示:Afterwards, the live broadcast management server summarizes the recorded information. In a possible implementation manner, the live broadcast management server may store the corresponding relationship among the anchor ID, the live server ID, and the number of users, so as to obtain the historical viewing record. Further, in order to facilitate subsequent acquisition of the address information of each live server, the historical viewing record may also include the address information of each live server. Specifically, it can be as shown in Table 2 below:

表2Table 2

第二种情况;该历史观看记录包括直播服务器上观看该主播标识对应的内容的所有用户的历史打赏总额度。The second case: the historical viewing record includes the total amount of historical rewards of all users who watch the content corresponding to the anchor identifier on the live broadcast server.

在直播过程中,用户可以根据对主播直播的内容的喜好程度,对该主播进行打赏。在一种可能的实现方式中,可以由网络直播平台中的直播管理服务器对打赏、支付操作进行管理。当然,这里仅是以由该直播管理服务器对打赏、支付操作进行管理为例进行说明,在另一实施例中,也可以由该网络直播平台中的其它设备进行管理,本发明实施例对此不作限定。During the live broadcast, users can tip the anchor according to their liking for the live broadcast content of the anchor. In a possible implementation manner, the tipping and payment operations can be managed by the live broadcast management server in the network live broadcast platform. Of course, here is only an example of how the live broadcast management server manages rewards and payment operations. In another embodiment, it can also be managed by other devices in the network live broadcast platform. This is not limited.

具体地,用户可以通过观看用户终端向该直播管理服务器发送打赏消息,该打赏消息中可以携带打赏额度、直播频道的频道信息以及该用户观看该主播直播的内容所在的直播服务器的标识。该直播管理服务器接收到该打赏消息后,根据该频道信息确定对应的主播标识,并可以根据如下表3的格式进行记录:Specifically, the user can send a tipping message to the live broadcast management server through the viewing user terminal, and the tipping message can carry the tipping amount, the channel information of the live channel, and the identifier of the live server where the user watches the content of the host's live broadcast . After the live broadcast management server receives the reward message, it determines the corresponding host ID according to the channel information, and can record it according to the format of Table 3 below:

表3table 3

主播标识anchor logo 直播服务器的标识The ID of the live server 用户的打赏额度User's tipping amount

之后,该直播管理服务器对记录的信息进行汇总。同理,为了便于后续获取每个直播服务器的地址信息,该历史观看记录中还可以包括每一个直播服务器的地址信息。如此,得到汇总后的历史观看记录可以为如下表4所示:Afterwards, the live broadcast management server summarizes the recorded information. Similarly, in order to facilitate subsequent acquisition of the address information of each live server, the historical viewing record may also include the address information of each live server. In this way, the summarized historical viewing records can be as shown in Table 4 below:

表4Table 4

当然,在实际实现中,用户打赏的还可能为虚拟物品等,在该种情况下,可以根据一定的换算策略,将该虚拟物品换算成打赏额度,并对该打赏额度进行记录、汇总处理,本发明实施例对此不做限定。Of course, in actual implementation, users may tip virtual items, etc. In this case, the virtual item can be converted into a tipping amount according to a certain conversion strategy, and the tipping amount can be recorded, The summary processing is not limited in this embodiment of the present invention.

第三种情况:该历史观看记录包括直播服务器上观看该主播标识对应的内容的每一个用户的历史打赏总额度。The third case: the historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor identifier on the live broadcast server.

与上述第二种情况类似,在直播过程中,直播管理服务器可以对用户的打赏情况进行记录和汇总。与上述第二种情况不同的是,在该种实现方式,直播管理服务器汇总的是每个直播服务器上观看主播标识对应的内容的每一个用户的打赏总额度。在实际应用场景中,根据该用户对主播标识对应的内容的喜好程度不同,不同用户的打赏额度也不相同。在一种可能的实现方式中,直播管理服务器记录、汇总后的历史观看记录可以为如下表5所示:Similar to the second case above, during the live broadcast, the live broadcast management server can record and summarize the rewards of the users. The difference from the above second case is that in this implementation, the live broadcast management server summarizes the total amount of rewards of each user who watches the content corresponding to the anchor ID on each live server. In the actual application scenario, according to the user's preference for the content corresponding to the anchor ID, the amount of rewards for different users is also different. In a possible implementation, the live broadcast management server records and summarized historical viewing records may be as shown in Table 5 below:

表5table 5

在实际实现中,不仅可以考虑每个用户的打赏总额度,还可以考虑每个用户的等级或爵位,在该种情况下,该历史观看记录中可以包括直播服务器上观看主播标识对应的内容且级别高于某个级别的多个用户的打赏总额度。例如,该历史观看记录中可以包括直播服务器上观看主播标识对应的内容且级别高于五级的多个用户的打赏总额度。In actual implementation, not only the total reward amount of each user can be considered, but also the level or title of each user can be considered. In this case, the historical viewing record can include the content corresponding to the host ID on the live broadcast server The total amount of rewards of multiple users whose level is higher than a certain level. For example, the historical viewing record may include the total amount of rewards of multiple users who watch the content corresponding to the anchor identifier on the live broadcast server and whose level is higher than level five.

实际上,由于用户的打赏额度越大,对应的级别一般就会越高,因此,本发明实施例中,仅以该历史观看记录中包括直播服务器上观看该主播标识对应的内容的每一个用户的历史打赏总额度为例进行说明。In fact, since the larger the user’s reward amount, the corresponding level will generally be higher. Therefore, in the embodiment of the present invention, only the historical viewing records include each content corresponding to the anchor ID on the live broadcast server. The total amount of historical tipping by a user is used as an example for illustration.

需要说明的是,在实际实现过程中,该直播管理服务器可以只保存最近一次或最近几次直播后的观看用户信息,其中,该观看用户信息包括用户数量、打赏额度等信息。或者,该直播管理服务器也可以将最近多次直播后的观看用户信息均记录下来后,根据该多次直播后的观看用户信息进行计算,得到计算后的历史观看记录,例如,可以通过求平均值的方式来进行计算,本发明实施例对此不做限定。It should be noted that, in the actual implementation process, the live broadcast management server may only save the viewing user information after the latest live broadcast or several recent live broadcasts, wherein the viewing user information includes information such as the number of users and the amount of rewards. Alternatively, the live broadcast management server may also record the viewing user information after multiple recent live broadcasts, and then perform calculations based on the viewing user information after multiple live broadcasts to obtain the calculated historical viewing records. Values are calculated, which is not limited in this embodiment of the present invention.

需要说明的是,上述仅是示例性地示出了历史观看记录的格式,在另一实施例中,还可以以其它方式存储该历史观看记录,本发明实施例对此不做限定。It should be noted that, the above is only an example showing the format of the historical viewing record. In another embodiment, the historical viewing record may also be stored in other ways, which is not limited in this embodiment of the present invention.

基于上述实施例提供的历史观看记录,接下来对本发明实施例提供的直播服务器选择方法进行详细介绍,请参考图3,该图3是本发明实施例提供的一种直播服务器的选择方法流程图,该方法可以通过如上图1所示的直播系统来实现,该方法包括:Based on the historical viewing records provided by the above embodiments, the method for selecting a live server provided by the embodiment of the present invention is described in detail next, please refer to Figure 3, which is a flow chart of a method for selecting a live server provided by the embodiment of the present invention , this method can be implemented through the live broadcast system shown in Figure 1 above, and the method includes:

301:直播管理服务器接收主播终端发送的推流请求,该推流请求中携带主播标识。301: The live broadcast management server receives a stream push request sent by the anchor terminal, and the stream push request carries an anchor identifier.

如前文所述,当主播终端需要进行直播时,可以向直播管理服务器发送携带主播标识的推流请求。As mentioned above, when the anchor terminal needs to perform live broadcast, it can send a push request carrying the anchor ID to the live broadcast management server.

另外,为了便于直播管理服务器后续确定该主播终端与多个直播管理服务器之间的通信质量,在一种可能的实现方式中,该推流请求中还可以携带该主播终端的IP地址。In addition, in order to facilitate the live broadcast management server to subsequently determine the communication quality between the anchor terminal and multiple live broadcast management servers, in a possible implementation, the streaming request may also carry the IP address of the anchor terminal.

302:直播管理服务器基于该主播标识,获取该多个直播服务器中的每一个直播服务器与该主播标识对应的历史观看记录。302: Based on the anchor identifier, the live broadcast management server acquires historical viewing records corresponding to the anchor identifier on each of the multiple live broadcast servers.

如前文所述,在一种可能的实现方式中,该直播管理服务器预先记录并保存了与主播标识对应的每个直播服务器的历史观看记录。在该种情况下,该直播管理服务器可以直接从本地获取每一个直播服务器与该主播标识对应的历史观看记录。As mentioned above, in a possible implementation manner, the live broadcast management server pre-records and saves the historical viewing record of each live broadcast server corresponding to the host ID. In this case, the live broadcast management server can directly obtain the historical viewing record of each live server corresponding to the anchor ID locally.

在具体实现中,根据实际需求不同,该历史观看记录中记录的内容可能也不同,该历史观看记录具体包括的内容如上述实施例中表2、表4或表5所示。In a specific implementation, according to different actual needs, the content recorded in the historical viewing record may also be different, and the specific content included in the historical viewing record is shown in Table 2, Table 4 or Table 5 in the above embodiment.

303:直播管理服务器基于该历史观看记录、该多个直播服务器中每一个直播服务器与该主播终端之间的通信质量参数以及该多个直播服务器之间的通信质量参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器。303: The live broadcast management server, based on the historical viewing records, the communication quality parameters between each live server in the multiple live servers and the anchor terminal, and the communication quality parameters between the multiple live servers Determine a live server as the source live server.

具体地,该步骤可以包括如下3031-3033几个实现过程:Specifically, this step may include the following 3031-3033 implementation processes:

3031:直播管理服务器基于该历史观看记录,从该多个直播服务器中确定满足预设匹配策略的N个直播服务器,该N为满足该预设匹配策略的直播服务器的数量。3031: Based on the historical viewing record, the live broadcast management server determines N live broadcast servers satisfying a preset matching strategy from the plurality of live broadcast servers, where N is the number of live broadcast servers satisfying the preset matching strategy.

该预设匹配策略可以预设进行设置。根据该预设匹配策略不同,直播管理服务器基于该历史观看记录,从该多个直播服务器中确定满足预设匹配策略的N个直播服务器的方法也不同,具体可以包括如下几种可能的实现方式:The preset matching strategy can be set by default. According to the different preset matching strategies, the method for the live management server to determine N live servers satisfying the preset matching strategy from the plurality of live servers based on the historical viewing records is also different, specifically, the following possible implementation methods may be included :

第一种情况:该历史观看记录包括直播服务器上观看该主播标识对应的内容的用户数量,该直播管理服务器从该多个直播服务器中确定观看该主播标识对应的内容的用户数量大于或等于第一预设阈值的直播服务器为满足该预设匹配策略的直播服务器。The first case: the historical viewing record includes the number of users who watched the content corresponding to the host ID on the live broadcast server, and the live management server determines from the multiple live broadcast servers that the number of users who watched the content corresponding to the host ID is greater than or equal to the first A live server with a preset threshold is a live server that satisfies the preset matching strategy.

在实际应用场景中,根据每一个直播服务器上观看该主播标识对应的内容的用户数量,可以确定该主播标识对应的内容在该直播服务器中的受欢迎程度。用户数量越多,说明观看的用户越多。因此,为了使得大部分用户可以快速观看到直播,该直播管理服务器从该多个直播服务器中确定观看该主播标识对应的内容的用户数量大于或等于第一预设阈值的直播服务器为满足该预设匹配策略的直播服务器。In an actual application scenario, according to the number of users who watch the content corresponding to the anchor ID on each live server, the popularity of the content corresponding to the anchor ID in the live server can be determined. The higher the number of users, the more users are watching. Therefore, in order to allow most users to quickly watch the live broadcast, the live broadcast management server determines from the plurality of live broadcast servers that the number of users watching the content corresponding to the anchor identifier is greater than or equal to the first preset threshold as meeting the preset threshold. Set the live server of the matching strategy.

其中,该第一预设阈值可以预先设置,如,该第一预设阈值可以为500。请参考上述表2,假如该主播标识为A,可以确定该多个直播服务器中,观看该主播标识A对应的内容的用户数量大于或等于500的直播服务器分别为直播服务器1、直播服务器2、直播服务器4和直播服务器5。因此,直播管理服务器确定该直播服务器1、直播服务器2、直播服务器4和直播服务器5为满足该预设匹配策略的直播服务器。Wherein, the first preset threshold may be preset, for example, the first preset threshold may be 500. Please refer to the above Table 2. If the anchor ID is A, it can be determined that among the multiple live servers, the live servers whose number of users watching the content corresponding to the anchor ID A is greater than or equal to 500 are live server 1, live server 2, Live Server 4 and Live Server 5. Therefore, the live management server determines that the live server 1 , the live server 2 , the live server 4 and the live server 5 are the live servers satisfying the preset matching strategy.

值得一提的是,直播管理服务器从该多个直播服务器中选择历史观看该主播标识对应的内容的用户数量较多的直播服务器,并将选择的直播服务器作为推流的目标,如此,可以保证大部分的观看用户终端能够尽可能快速地获取到直播数据流。It is worth mentioning that the live broadcast management server selects a live server with a large number of users who have historically watched the content corresponding to the anchor ID from the multiple live broadcast servers, and uses the selected live server as the target of streaming. In this way, it can be ensured that Most of the viewing user terminals can obtain the live data stream as quickly as possible.

第二种情况:该历史观看记录包括直播服务器上观看该主播标识对应的内容的所有用户的历史打赏总额度,该直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器为满足该预设匹配策略的直播服务器。Case 2: The historical viewing record includes the total amount of historical rewards of all users who watched the content corresponding to the anchor ID on the live broadcast server, and the live broadcast management server determines to watch the content corresponding to the anchor ID from the multiple live broadcast servers The live broadcast servers whose historical total tipping amounts of all users are greater than or equal to the second preset threshold are the live broadcast servers that satisfy the preset matching strategy.

不难理解,直播服务器上观看该主播标识对应的内容的所有用户的历史打赏总额度越高,一般说明该直播服务器上的用户越重要,即需要尽量保证该直播服务器上的用户观看直播的时延较短。因此,直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器为满足该预设匹配策略的直播服务器。It is not difficult to understand that the higher the total amount of historical rewards of all users who watch the content corresponding to the host logo on the live broadcast server, generally indicates that the users on the live broadcast server are more important, that is, it is necessary to ensure that users on the live broadcast server watch the live broadcast. The latency is short. Therefore, from the plurality of live broadcast servers, the live broadcast management server determines that the live broadcast servers whose historical total amount of rewards of all users watching the content corresponding to the anchor identifier are greater than or equal to the second preset threshold are live broadcast servers that meet the preset matching strategy server.

其中,该第二预设阈值可以预先设置,如,该第二预设阈值可以为2000元。请参考上述表4,假如该主播标识为A,则可以确定该多个直播服务器中,观看该主播标识A对应的内容的所有用户的历史打赏总额度大于或等于2000的直播服务器分别为直播服务器1、直播服务器2和直播服务器3。因此,该直播管理服务器将该直播服务器1、直播服务器2和直播服务器3确定为满足该预设匹配策略的直播服务器。Wherein, the second preset threshold can be preset, for example, the second preset threshold can be 2000 yuan. Please refer to the above Table 4. If the anchor ID is A, it can be determined that among the multiple live broadcast servers, the live broadcast servers whose historical total amount of rewards of all users who watch the content corresponding to the anchor ID A are greater than or equal to 2000 are live broadcast servers. Server 1, Live Server 2 and Live Server 3. Therefore, the live management server determines the live server 1, the live server 2 and the live server 3 as the live servers satisfying the preset matching policy.

值得一提的是,在该种实现方式中,直播管理服务器从多个直播服务器中,选择观看该主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器,并将所选择的直播服务器确定为推流目标,使得该直播服务器上的用户能够快速看到直播。It is worth mentioning that, in this implementation, the live broadcast management server selects from multiple live broadcast servers the live broadcasts for which the total amount of historical rewards of all users watching the content corresponding to the anchor identifier is greater than or equal to the second preset threshold server, and determine the selected live server as the push target, so that users on the live server can quickly see the live broadcast.

第三种情况:该历史观看记录包括直播服务器上观看该主播标识对应的内容的每一个用户的历史打赏总额度,该直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足该预设匹配策略的直播服务器。Case 3: The historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor ID on the live broadcast server, and the live broadcast management server determines from the multiple live broadcast servers to watch the content corresponding to the anchor ID. The live servers corresponding to the top M users in terms of the total amount of historical rewards of the content users are the live servers that meet the preset matching strategy.

在实际应用场景中,个别用户的历史打赏总额度较大,例如,某用户的打赏总额度超过万元。为了使得该部分用户能够快速观看到直播,在该种实现方式中,直播管理服务器从该多个直播服务器中,选择观看该主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器,并将选择的直播服务器确定为满足该预设匹配策略的直播服务器。其中,该M可以为大于1的自然数。In the actual application scenario, the total amount of historical rewards of individual users is relatively large. For example, the total amount of rewards of a certain user exceeds 10,000 yuan. In order to enable this part of users to quickly watch the live broadcast, in this implementation, the live broadcast management server selects from the multiple live broadcast servers the users who watch the content corresponding to the anchor ID in the top M in terms of the total amount of historical rewards corresponding live server, and determine the selected live server as the live server satisfying the preset matching policy. Wherein, the M may be a natural number greater than 1.

例如,假如该主播标识为A,M的值为3,则请参考上述表5,可以确定该多个直播服务器中,观看该主播标识A对应的内容的用户的历史打赏总额度排序前3的用户对应的直播服务器分别为直播服务器4、直播服务器3和直播服务器1。因此,该直播管理服务器可以确定直播服务器4、直播服务器3和直播服务器1为满足该预设匹配策略的直播服务器。For example, if the anchor ID is A, and the value of M is 3, please refer to the above Table 5 to determine the top 3 total historical rewards of users who watch the content corresponding to the anchor ID A among the multiple live servers The live servers corresponding to the users are live server 4, live server 3 and live server 1 respectively. Therefore, the live management server can determine that the live server 4, the live server 3 and the live server 1 are the live servers satisfying the preset matching strategy.

值得一提的是,上述直播管理服务器从该多个直播服务器中,确定观看该主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足该预设匹配策略的直播服务器,如此可以保证打赏额度较大的用户可以快速观看直播。It is worth mentioning that the above-mentioned live broadcast management server determines from the plurality of live broadcast servers that the live broadcast servers corresponding to the users who watch the content corresponding to the anchor ID in the top M in the history of the total amount of rewards are satisfied with the preset matching strategy Live broadcast server, so that users with large rewards can quickly watch the live broadcast.

需要说明的是,上述直播管理服务器基于该历史观看记录,从该多个直播服务器中确定满足预设匹配策略的N个直播服务器的方法仅是示例性的,在另一实施例中,直播管理服务器还可以采用其它方式基于该历史观看记录,从该多个直播服务器中确定满足预设匹配策略的N个直播服务器的方法。It should be noted that, based on the historical viewing records, the above live management server determines the N live servers that meet the preset matching strategy from the plurality of live servers. The server may also use other methods to determine N live servers satisfying the preset matching strategy from the plurality of live servers based on the historical viewing records.

如,在一种可能的实现方式中,当该历史观看记录中包括上述三种情况涉及的多个维度时,对于该多个直播服务器中的每个直播服务器,该直播管理服务器可以确定该直播服务器上按照该多个维度统计得到的数值与对应维度的权重之间的乘积之和,得到该直播服务器的总得分。之后,直播管理服务器从该多个直播服务器中将总得分大于或等于第三预设阈值的直播服务器确定为满足预设匹配策略的直播服务器。For example, in a possible implementation, when the historical viewing records include multiple dimensions involved in the above three situations, for each live server in the multiple live servers, the live management server can determine the live The total score of the live server is obtained by the sum of the products of the values obtained according to the statistics of the multiple dimensions and the weights of the corresponding dimensions on the server. Afterwards, the live broadcast management server determines from the plurality of live broadcast servers that the total score is greater than or equal to the third preset threshold as the live broadcast server that satisfies the preset matching policy.

其中,该第三预设阈值可以预先设置。例如,请参考表2、表4和表5,对于该多个直播服务器中的直播服务器1来说,如果用户数量对应的权重为a,所有用户的历史打赏总额度对应的权重为b,每个用户的历史打赏总额度对应的权重为c,则可以确定该直播服务器1的总得分为1200*a+5000*b+1200*c。按照该算法,可以确定每个直播服务器的总得分。直播管理服务器可以将该多个直播服务器中总得分大于或等于第三预设阈值的直播服务器确定为满足预设匹配策略的直播服务器。Wherein, the third preset threshold can be preset. For example, please refer to Table 2, Table 4, and Table 5. For the live server 1 among the multiple live servers, if the weight corresponding to the number of users is a, the weight corresponding to the total amount of historical rewards of all users is b, The weight corresponding to the total amount of historical rewards of each user is c, so it can be determined that the total score of the live server 1 is 1200*a+5000*b+1200*c. According to this algorithm, the total score of each live server can be determined. The live management server may determine a live server whose total score is greater than or equal to a third preset threshold among the plurality of live servers as a live server satisfying a preset matching policy.

实际上,根据上文描述不难理解,该N个直播服务器即为需要推流的直播服务器。在实际实现中,观看用户终端获知直播数据流的时延包括两段,一段是主播终端与源直播服务器之间的时延,另一段是源直播服务器与分发直播服务器之间的时延。因此,如何选择源直播服务器,以使得该N个直播服务器上的用户均能较快速地观看到直播成为重点,其具体过程请参见下文。In fact, it is not difficult to understand from the above description that the N live servers are the live servers that need to push streams. In actual implementation, the time delay for the viewing user terminal to know the live data stream includes two sections, one is the time delay between the anchor terminal and the source live broadcast server, and the other is the time delay between the source live broadcast server and the distribution live broadcast server. Therefore, how to select the source live broadcast server so that the users on the N live broadcast servers can watch the live broadcast relatively quickly becomes the key point. Please refer to the following for the specific process.

3032:直播管理服务器根据该历史观看记录,确定该N个直播服务器的权重。3032: The live broadcast management server determines the weights of the N live broadcast servers according to the historical viewing records.

其中,根据该历史观看记录中包括的内容不同,确定该N个直播服务器的权重的方式也不同,接下来,以该历史观看记录中包括直播服务器上观看该主播标识对应的内容的用户数量为例,对确定该N个直播服务器的权重的方式进行介绍。Wherein, according to the different contents included in the historical viewing record, the ways of determining the weights of the N live servers are also different. Next, the number of users who watch the content corresponding to the anchor identification on the live server included in the historical viewing record is As an example, the manner of determining the weights of the N live servers is introduced.

该直播管理服务器可以根据每个直播服务器中用户数量的多少来确定对应的权重。例如,该直播管理服务器可以确定该多个直播服务器中的用户总数量,然后,确定每个直播服务器中用户数量占该用户总数量的比例,并将该比例确定为对应的直播服务器的权重。The live management server can determine the corresponding weight according to the number of users in each live server. For example, the live management server may determine the total number of users in the multiple live servers, then determine the ratio of the number of users in each live server to the total number of users, and determine the ratio as the weight of the corresponding live server.

需要说明的是,上述确定该N个直播服务器的权重方式仅是示例性的,在另一实施例中,还可以采用其它方式来确定。例如,可以预先针对不同用户数量范围对应设置不同的权重,如此以来,直播管理服务器可以根据每个直播服务器中用户数量所处的用户数量范围,确定该用户数量范围对应的预设的权重,本发明实施例对此不做限定。It should be noted that, the foregoing manner of determining the weights of the N live servers is only exemplary, and in another embodiment, other manners may also be used for determination. For example, different weights can be set in advance for different ranges of the number of users. In this way, the live broadcast management server can determine the preset weight corresponding to the range of the number of users in each live server according to the range of the number of users in each live server. The embodiments of the invention do not limit this.

当每个直播服务器上的历史观看记录包括的内容为历史打赏额度时,可以对该历史打赏额度按照一定的换算法进行换算,并根据换算后的数值确定每个直播服务器的权重。When the historical viewing records on each live server include the historical tipping amount, the historical tipping amount can be converted according to a certain conversion algorithm, and the weight of each live server can be determined according to the converted value.

在实际实现中,本发明实施例不对直播管理服务器根据该历史观看记录,确定该N个直播服务器的权重的具体实现方式进行限定。In actual implementation, the embodiment of the present invention does not limit the specific implementation manner in which the live broadcast management server determines the weights of the N live broadcast servers according to the historical viewing records.

3033:直播管理服务器根据该N个直播服务器的权重选择源直播服务器。3033: The live broadcast management server selects a source live broadcast server according to the weights of the N live broadcast servers.

在具体实现中,该步骤可以包括如下两种可能的实现方式:In a specific implementation, this step may include the following two possible implementations:

第一种方式:直播管理服务器根据该N个直播服务器的权重、该主播终端与该N个直播服务器之间的通信质量参数以及该N个直播服务器之间的通信质量参数,从该N个直播服务器中确定一个直播服务器作为该源直播服务器。The first method: the live broadcast management server selects from the N live broadcast servers according to the weights of the N live broadcast servers, the communication quality parameters between the anchor terminal and the N live broadcast servers, and the communication quality parameters between the N live broadcast servers. A live server is determined in the server as the source live server.

也即是,在该种实现方式中,直播管理服务器从该N个直播服务器中选择一个直播服务器作为源直播服务器,其具体实现过程可以包括如下(1)-(3)几个步骤:That is, in this implementation, the live management server selects a live server from the N live servers as the source live server, and its specific implementation process may include the following steps (1)-(3):

(1)对于该N个直播服务器中的每个直播服务器,确定该直播服务器与该主播终端之间的通信质量参数,以及确定该直播服务器与该N个直播服务器中除该直播服务器之外的每个直播服务器之间的通信质量参数。(1) For each live server in the N live servers, determine the communication quality parameter between the live server and the anchor terminal, and determine the live server and the N live servers except the live server Communication quality parameters between each live server.

为了便于理解,接下来以该N个直播服务器包括上海直播服务器、南京直播服务器、苏州直播服务器、扬州直播服务器,且该通信质量参数为时延为例进行举例说明。For ease of understanding, the N live servers include Shanghai live server, Nanjing live server, Suzhou live server, and Yangzhou live server, and the communication quality parameter is time delay as an example for illustration.

对于该N个直播服务器中的每个直播服务器,例如,对于上海直播服务器,该直播管理服务器确定该上海直播服务器与该主播终端之间的时延T1、该上海直播服务器与该南京直播服务器之间的时延T2、该上海直播服务器与该苏州直播服务器之间的时延T3、以及该上海直播服务器与扬州直播服务器之间的时延T4。For each live server in the N live servers, for example, for the Shanghai live server, the live management server determines the time delay T1 between the Shanghai live server and the anchor terminal, the time delay T1 between the Shanghai live server and the Nanjing live server time delay T2 between the Shanghai live server and the Suzhou live server, and time delay T4 between the Shanghai live server and the Yangzhou live server.

(2)根据该N个直播服务器的权重、该直播服务器与该主播终端之间的通信质量参数以及该直播服务器与该N个直播服务器中除该直播服务器之外的每个直播服务器之间的通信质量参数,确定该直播服务器对应的综合通信质量参数。(2) According to the weights of the N live servers, the communication quality parameters between the live server and the anchor terminal, and the communication between the live server and each live server in the N live servers except the live server The communication quality parameter is used to determine the comprehensive communication quality parameter corresponding to the live broadcast server.

假如上海直播服务器、南京直播服务器、苏州直播服务器和扬州直播服务器的权重分别为S1、S2、S3和S4。则可以得到该上海直播服务器的综合时延为T1*S1+T2*S2+T3*S3+T4*S4。Suppose the weights of the Shanghai live server, Nanjing live server, Suzhou live server and Yangzhou live server are S1, S2, S3 and S4 respectively. Then it can be obtained that the comprehensive delay of the Shanghai live broadcast server is T1*S1+T2*S2+T3*S3+T4*S4.

按照上述实现过程,可以分别确定该南京直播服务器、苏州直播服务器和扬州直播服务器的综合时延。According to the above implementation process, the comprehensive time delays of the Nanjing live server, Suzhou live server and Yangzhou live server can be respectively determined.

(3)从该N个直播服务器中,将最小的综合通信质量参数对应的直播服务器确定为该源直播服务器。(3) From the N live servers, determine the live server corresponding to the smallest comprehensive communication quality parameter as the source live server.

综合通信质量参数越小,说明对应的直播服务器到该N个直播服务器的时延相对均较小。因此,直播管理服务器从确定的多个综合通信质量参数中,选择最小的综合通信质量参数,并将该最小的综合通信质量参数对应的直播服务器确定为该源直播服务器。例如,直播管理服务器从该N个直播服务器中选择最小综合时延对应的直播服务器,并将该直播服务器确定为该源直播服务器。The smaller the comprehensive communication quality parameter is, the shorter the delays from the corresponding live server to the N live servers are. Therefore, the live broadcast management server selects the smallest comprehensive communication quality parameter from the multiple determined comprehensive communication quality parameters, and determines the live broadcast server corresponding to the smallest comprehensive communication quality parameter as the source live broadcast server. For example, the live broadcast management server selects the live broadcast server corresponding to the smallest integrated delay from the N live broadcast servers, and determines the live broadcast server as the source live broadcast server.

上述通过确定该N个直播服务器中每个直播服务器的综合通信参数,并根据每个直播服务器的综合通信参数,从该N个直播服务器中确定一个直播服务器作为源直播服务器,如此,减小了直播管理服务器的运算量。Above-mentioned by determining the comprehensive communication parameter of each live server in these N live servers, and according to the comprehensive communication parameter of each live server, determine a live server as source live server from these N live servers, so, reduce The computing load of the live management server.

第二种方式:直播管理服务器根据该N个直播服务器的权重、该主播终端与该多个直播服务器之间的通信质量参数以及该多个直播服务器之间的通信质量参数,从该多个直播服务器中确定一个直播服务器作为该源直播服务器。The second method: the live broadcast management server selects from the multiple live broadcast servers according to the weights of the N live broadcast servers, the communication quality parameters between the anchor terminal and the multiple live broadcast servers, and the communication quality parameters between the multiple live broadcast servers. A live server is determined in the server as the source live server.

与上述第一种方式不同的是,该种实现方式是从该多个直播服务器中选择一个直播服务器作为该源直播服务器,此时,该源直播服务器可能为该N个直播服务器中的某个直播服务器,也可能是该多个直播服务器中除该N个直播服务器之外的其它某个直播服务器。Different from the above first method, this implementation method is to select a live server from the multiple live servers as the source live server. At this time, the source live server may be one of the N live servers The live server may also be some other live server in the plurality of live servers except the N live servers.

需要说明的是,在该种实现方式中,对于该多个直播服务器中的每个直播服务器,直播管理服务器需要确定该直播服务器与主播终端之间的通信质量参数,以及与该N个直播服务器中每个直播服务器之间的通信质量参数,然后,根据N个直播服务器的权重,确定该直播服务器的综合通信参数。之后,该直播管理服务器从该多个直播服务器中,将最小的综合通信质量参数对应的直播服务器确定为该源直播服务器,具体可以参见上述第一种实现方式。It should be noted that, in this implementation, for each live server in the plurality of live servers, the live management server needs to determine the communication quality parameters between the live server and the host terminal, and the communication quality parameters with the N live servers. The communication quality parameters between each live server in the network, and then, according to the weights of the N live servers, determine the comprehensive communication parameters of the live server. Afterwards, the live broadcast management server determines, from the multiple live broadcast servers, the live broadcast server corresponding to the smallest comprehensive communication quality parameter as the source live broadcast server. For details, refer to the above first implementation manner.

上述通过确定该多个直播服务器中每个直播服务器的综合通信参数,并根据每个直播服务器的综合通信参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器,如此,提高了确定源直播服务器的准确性。By determining the comprehensive communication parameters of each live server in the multiple live servers, and according to the comprehensive communication parameters of each live server, determine a live server from the multiple live servers as the source live server, thus improving the determination The accuracy of the source live server.

304:直播管理服务器创建直播频道。304: The live broadcast management server creates a live channel.

305:直播管理服务器向该主播终端发送推流响应,该推流响应中携带该源直播服务器的地址信息和该直播频道的频道信息。305: The live broadcast management server sends a stream push response to the anchor terminal, and the stream push response carries the address information of the source live broadcast server and the channel information of the live broadcast channel.

在一种可能的实现方式中,该直播管理服务器可以基于该源直播服务器的地址信息和该直播频道的频道信息,生成统一资源定位符(Uniform Resource Locator,URL),并通过该推流响应携带该URL,从而实现通过该推流响应携带该源直播服务器的地址信息和该直播频道的频道信息。In a possible implementation, the live broadcast management server can generate a uniform resource locator (Uniform Resource Locator, URL) based on the address information of the source live broadcast server and the channel information of the live broadcast channel, and carry The URL, so that the streaming response carries the address information of the source live server and the channel information of the live channel.

进一步地,该主播终端接收到该推流响应后,从该推流响应中获取该源直播服务器的地址信息和该直播频道的频道信息,并基于该源直播服务器的地址信息和该直播频道的频道信息,向该源直播服务器发送直播数据流,以通过该源直播服务器存储该直播数据流。Further, after receiving the push stream response, the anchor terminal obtains the address information of the source live server and the channel information of the live channel from the push response, and based on the address information of the source live server and the channel information of the live channel Channel information, sending the live data stream to the source live server, so as to store the live data stream through the source live server.

在具体实现中,该源直播服务器成功存储该直播数据流后,还可以向该直播管理服务器发送携带频道信息的数据传输成功消息,以通知该直播管理服务器成功存储直播数据流,例如,该源直播服务器在成功接收直播数据流的第一个分片后,可以向该直播管理服务器发送携带频道信息的数据传输成功消息。In a specific implementation, after the source live broadcast server successfully stores the live data stream, it may also send a data transmission success message carrying channel information to the live broadcast management server to notify the live broadcast management server that the live data stream has been successfully stored, for example, the source After the live broadcast server successfully receives the first segment of the live data stream, it can send a data transmission success message carrying channel information to the live broadcast management server.

直播管理服务器接收该数据传输成功消息,可以继续主动向其他直播服务器分发直播数据流,以便于观看用户终端从其他直播服务器中获取直播数据流。关于直播管理服务器接收到该数据传输成功消息后,主动向其他直播服务器分发直播数据流的实现过程请参见如下图4所述的实施例。After receiving the data transmission success message, the live broadcast management server can continue to proactively distribute live data streams to other live broadcast servers, so that the viewing user terminal can obtain live data streams from other live broadcast servers. For the implementation process of the live broadcast management server actively distributing live data streams to other live servers after receiving the data transmission success message, please refer to the embodiment described in FIG. 4 below.

在本发明实施例中,直播管理服务器接收主播终端发送的携带主播标识的推流请求后,获取多个直播服务器中每个直播服务器与该主播标识对应的历史观看记录。之后,直播管理服务器根据该历史观看记录、该多个直播服务器中每个直播服务器与主播终端之间的通信质量参数、该多个直播服务器之间的通信质量参数这三个条件,从多个直播服务器中确定一个直播服务器作为源直播服务器。如此,可以具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。In the embodiment of the present invention, after the live broadcast management server receives the streaming push request carrying the anchor ID sent by the anchor terminal, it obtains the historical viewing records corresponding to the anchor ID of each live server among the plurality of live servers. Afterwards, according to the historical viewing record, the communication quality parameters between each live server and the anchor terminal in the multiple live servers, the live management server selects from multiple live broadcast servers according to these three conditions: In the live broadcast server, a live broadcast server is determined as the source live broadcast server. In this way, it is possible to quickly push streams for some users in a targeted manner, and minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

如前文所述,该直播管理服务器接收到该数据传输成功消息时,还可以主动向其他直播服务器分发直播数据流,这里将详细对该实现过程进行详细介绍。请参考图4,该图4是本发明实施例提供的一种直播数据流的分发方法的流程图,该方法也可以通过如上图1所示的直播系统来实现,该方法主要包括如下几个实现步骤:As mentioned above, when the live broadcast management server receives the data transmission success message, it can also proactively distribute the live data stream to other live broadcast servers, and the implementation process will be described in detail here. Please refer to Figure 4, which is a flow chart of a method for distributing live data streams provided by an embodiment of the present invention. This method can also be implemented by the live broadcast system shown in Figure 1 above. This method mainly includes the following Implementation steps:

401:源直播服务器向直播管理服务器发送数据传输成功消息,该直播管理服务器接收源直播服务器发送的数据传输成功消息,该数据传输成功消息中携带该直播频道的频道信息。401: The source live broadcast server sends a data transmission success message to the live broadcast management server, and the live broadcast management server receives the data transmission success message sent by the source live broadcast server, and the data transmission success message carries the channel information of the live broadcast channel.

该直播管理服务器接收到该源直播服务器发送的数据传输成功消息后,确定源直播服务器已经成功存储的了直播数据流,此时,可以对该直播数据流进行进一步地主动分发。After receiving the data transmission success message sent by the source live server, the live broadcast management server determines that the source live server has successfully stored the live data stream, and at this time, can further actively distribute the live data stream.

402:该直播管理服务器向该N个直播服务器发送下载指示,该下载指示中包括该源直播服务器的地址信息和该直播频道的频道信息。402: The live broadcast management server sends a download instruction to the N live servers, and the download instruction includes address information of the source live server and channel information of the live channel.

根据上述描述,该N个直播服务器为需要推流的直播服务器,因此,该直播管理服务器向该N个直播服务器发送下载指示,以便于该N个直播服务器接收到该下载指示后,根据该下载指示中携带的源直播服务器的地址信息和该直播频道的频道信息,从该源直播服务器中下载并存储直播数据流。According to the above description, the N live servers are live servers that need to push streams. Therefore, the live management server sends a download instruction to the N live servers, so that after the N live servers receive the download instructions, they can download according to the download instructions. The address information of the source live server and the channel information of the live channel carried in the instruction download and store the live data stream from the source live server.

需要说明的是,如上文所述,在实际实现中,该源直播服务器可能为该N个直播服务器中的一个直播服务器,在该种情况下,该直播管理服务器可以向该N个直播服务器中除了该源直播服务器之外的每一个直播服务器发送该下载指示。It should be noted that, as mentioned above, in actual implementation, the source live server may be one of the N live servers. Each live server except the source live server sends the download instruction.

进一步地,对于观看用户终端来说,当观看用户终端想要观看直播时,观看用户终端向直播管理服务器发送观看直播的请求,该观看直播的请求中包括观看用户终端的IP地址和直播频道的频道信息。该直播管理服务器根据该观看用户终端的IP地址,选择与该观看用户终端最近的一个直播服务器,并将直播服务器的地址信息发送给观看用户终端。观看用户终端向根据该地址信息向该直播服务器发送内容获取请求,该内容获取请求中包括直播频道的频道信息。该直播服务器接收到该内容获取请求后,根据该直播频道信息,获取对应的直播数据流,并将该直播数据流发送给该观看用户终端。观看用户终端接收该直播数据流后,对该直播数据流进行解码、渲染播放等处理,如此,用户即可观看直播。Further, for the watching user terminal, when the watching user terminal wants to watch the live broadcast, the watching user terminal sends a request for watching the live broadcast to the live broadcast management server, and the request for watching the live broadcast includes the IP address of the watching user terminal and the live channel Channel information. According to the IP address of the watching user terminal, the live management server selects a live server closest to the watching user terminal, and sends the address information of the live server to the watching user terminal. The viewing user terminal sends a content acquisition request to the live broadcast server according to the address information, and the content acquisition request includes channel information of the live broadcast channel. After receiving the content acquisition request, the live server obtains the corresponding live data stream according to the live channel information, and sends the live data stream to the viewing user terminal. After receiving the live broadcast data stream, the viewing user terminal performs decoding, rendering and playback processing on the live data stream, so that the user can watch the live broadcast.

需要说明的是,这里仅是以该直播管理服务器主动向该N个直播服务器分发直播数据流为例进行说明,在另一实施例中,该直播管理服务器还可以根据历史观看记录,从该多个直播服务器中选择满足预设匹配策略的至少一个直播服务器作为分发直播服务器,其具体请参见如下图5所述的实施例。It should be noted that, here is an example of the live broadcast management server actively distributing live data streams to the N live servers. In another embodiment, the live broadcast management server can also select from the multiple Select at least one live server that satisfies the preset matching strategy among the live servers as the distribution live server. For details, please refer to the embodiment described in FIG. 5 below.

在本发明实施例中,直播管理服务器接收主播终端发送的携带主播标识的推流请求后,获取多个直播服务器中每个直播服务器与该主播标识对应的历史观看记录。之后,直播管理服务器根据该历史观看记录、该多个直播服务器中每个直播服务器与主播终端之间的通信质量参数、该多个直播服务器之间的通信质量参数这三个条件,从多个直播服务器中确定一个直播服务器作为源直播服务器。如此,可以具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。In the embodiment of the present invention, after the live broadcast management server receives the streaming push request carrying the anchor ID sent by the anchor terminal, it obtains the historical viewing records corresponding to the anchor ID of each live server among the plurality of live servers. Afterwards, according to the historical viewing record, the communication quality parameters between each live server and the anchor terminal in the multiple live servers, the live management server selects from multiple live broadcast servers according to these three conditions: In the live broadcast server, a live broadcast server is determined as the source live broadcast server. In this way, it is possible to quickly push streams for some users in a targeted manner, and minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

在实际实现中,直播管理服务器还可以根据历史观看记录,从多个直播服务器中选择至少一个满足预设匹配策略的直播服务器,并将该直播服务器作为分发直播服务器。为此,请参考图5,该图5是根据一示例性实施例示出的另一种直播服务器的选择方法的流程图,该方法用于实现从多个直播服务器选择至少一个直播服务器作为分发直播服务器,该方法也可以通过如上图1所示的直播系统来实现,该方法包括如下几个实现步骤:In actual implementation, the live broadcast management server may also select at least one live broadcast server that satisfies a preset matching strategy from multiple live broadcast servers according to historical viewing records, and use this live broadcast server as a distribution live broadcast server. For this, please refer to FIG. 5 , which is a flow chart of another live server selection method shown according to an exemplary embodiment, the method is used to select at least one live server from multiple live servers as the distribution live server Server, this method can also be realized by the live broadcast system shown in Figure 1 above, and this method includes the following several implementation steps:

501:该直播管理服务器接收源直播服务器发送的数据传输成功消息,该数据传输成功消息中携带直播频道的频道信息,该源直播服务器由该直播管理服务器在接收到主播终端发送的推流请求后从该多个直播服务器中选择得到,且用于存储该主播终端发送的直播数据流,该直播频道由该直播管理服务器在选择该源直播服务器后建立。501: The live broadcast management server receives the data transmission success message sent by the source live broadcast server. The data transmission success message carries the channel information of the live broadcast channel. After the source live broadcast management server receives the streaming push request sent by the host terminal It is selected from the multiple live broadcast servers and is used to store the live broadcast data stream sent by the anchor terminal. The live broadcast channel is established by the live broadcast management server after selecting the source live broadcast server.

在该种实现方式中,可以不对该源直播服务器的选择方式进行限定。例如,在一种可能的实现方式中,该直播管理服务器可以根据就近原则,从该多个直播服务器中选择该源直播服务器。具体地,该直播管理服务器可以根据该多个直播服务器中每个直播服务器与该主播终端之间的通信质量参数,确定最小通信质量参数对应的直播服务器,并将该直播服务器确定为该源直播服务器。In this implementation manner, the selection manner of the source live server may not be limited. For example, in a possible implementation manner, the live broadcast management server may select the source live broadcast server from the plurality of live broadcast servers according to the principle of proximity. Specifically, the live broadcast management server may determine the live broadcast server corresponding to the minimum communication quality parameter according to the communication quality parameters between each live broadcast server among the plurality of live broadcast servers and the anchor terminal, and determine the live broadcast server as the source live broadcast server. server.

或者,在另一种可能的实现方式中,该直播管理服务器还可以按照上述图3所述实施例的实现方法,根据该历史观看记录、该多个直播服务器中每一个直播服务器与该主播终端之间的通信质量参数以及该多个直播服务器之间的通信质量参数,从该多个直播服务器中确定一个直播服务器作为源直播服务器。Or, in another possible implementation, the live broadcast management server can also follow the implementation method of the above-mentioned embodiment described in FIG. The communication quality parameters among the multiple live broadcast servers and the communication quality parameters between the multiple live broadcast servers, and a live broadcast server is determined from the multiple live broadcast servers as the source live broadcast server.

502:该直播管理服务器基于该直播频道的频道信息,从主播标识与频道信息之间的对应关系中获取对应的主播标识,并从存储的主播标识与历史观看记录之间的对应关系中,获取对应的历史观看记录,该主播标识与该直播频道的频道信息之间的对应关系由该直播管理服务器创建该直播频道后存储得到。502: Based on the channel information of the live broadcast channel, the live broadcast management server obtains the corresponding host ID from the correspondence between the host ID and channel information, and obtains from the stored correspondence between the host ID and historical viewing records. The corresponding historical viewing record, the corresponding relationship between the anchor identifier and the channel information of the live channel is stored after the live channel management server creates the live channel.

在实际实现过程中,当直播管理服务器创建直播频道后,可以保存该主播标识与该直播频道的频道信息之间的对应关系。如此,当直播管理服务器接收到源直播服务器发送的携带频道信息的数据传输成功消息时,可以从该主播标识与该直播频道的频道信息之间的对应关系中,获取该频道信息对应的主播标识。之后,该直播管理服务器根据该主播标识,从主播标识与历史观看记录之间的对应关系中,获取对应的历史观看记录。In an actual implementation process, after the live broadcast management server creates a live channel, it may save the corresponding relationship between the anchor identifier and the channel information of the live channel. In this way, when the live broadcast management server receives the data transmission success message carrying the channel information sent by the source live broadcast server, it can obtain the anchor ID corresponding to the channel information from the correspondence between the anchor ID and the channel information of the live channel. . Afterwards, the live broadcast management server obtains the corresponding historical viewing records from the correspondence between the anchor identifications and historical viewing records according to the anchor identification.

503:该直播管理服务器基于该历史观看记录,从该多个直播服务器中选择除了该源直播服务器之外符合该预设匹配策略的至少一个直播服务器作为分发直播服务器。503: Based on the historical viewing record, the live broadcast management server selects from the plurality of live broadcast servers, except the source live broadcast server, at least one live broadcast server that meets the preset matching strategy as a distribution live broadcast server.

需要说明的是,直播管理服务器基于该历史观看记录,从该多个直播服务器中选择除了该源直播服务器之外符合该预设匹配策略的至少一个直播服务器的实现过程可以参见上述图3实施例中基于该历史观看记录,从该多个直播服务器中选择满足预设匹配策略的N个直播服务器的实现过程,这里不再重复赘述。It should be noted that, based on the historical viewing records, the live management server selects at least one live server from the plurality of live servers that meets the preset matching strategy except the source live server. The implementation process of selecting N live servers satisfying the preset matching strategy from the plurality of live servers based on the historical viewing records will not be repeated here.

需要说明的是,由于根据历史观看记录,从多个直播服务器中选择满足预设匹配策略的直播服务器的方法相同,因此,当直播管理服务器按照上述图3所述实施例的实现方法选择该源直播服务器时,与按照该方法选择出的直播服务器可能相同,因此,在上述实现过程中,当直播管理服务器按照上述图3所述实施例的实现方法选择该源直播服务器后,可以直接向在该过程中选择出的N个直播服务器分发直播数据流,而无需根据历史观看记录来确定。It should be noted that, since the method of selecting a live server that satisfies the preset matching strategy from multiple live servers is the same according to historical viewing records, when the live management server selects the source according to the implementation method of the embodiment described in FIG. When the live server is selected, it may be the same as the live server selected according to this method. Therefore, in the above-mentioned implementation process, after the live management server selects the source live server according to the implementation method of the embodiment described in Figure 3 above, it can directly report to the live server. The N live servers selected in this process distribute the live data streams without being determined according to historical viewing records.

进一步地,为了便于该至少一个分发直播服务器从该源直播服务器中获取直播数据流,该直播管理服务器还可以向该至少一个分发直播服务器发送下载指示,该下载指示中包括该源直播服务器的地址信息和该直播频道的频道信息。如此,该至少一个直播服务器即可根据该源直播服务器的地址信息和该直播频道的频道信息,从该源直播服务器中下载该频道信息对应的直播数据流,从而实现直播数据流的分发。Further, in order to facilitate the at least one distribution live broadcast server to obtain the live data stream from the source live broadcast server, the live broadcast management server may also send a download instruction to the at least one distribution live broadcast server, and the download instruction includes the address of the source live broadcast server information and channel information for that live channel. In this way, the at least one live server can download the live data stream corresponding to the channel information from the source live server according to the address information of the source live server and the channel information of the live channel, thereby realizing the distribution of the live data stream.

在本发明实施例中,在对直播数据流进行分发的过程中,直播管理服务器根据历史观看记录,从多个直播服务器中选择满足预设匹配策略的至少一个直播服务器作为分发直播服务器,并主动向该至少一个分发直播服务器分发直播数据流。如此,增加了直播数据流分发的针对性,提高了直播效率。In the embodiment of the present invention, in the process of distributing live data streams, the live management server selects at least one live server that satisfies the preset matching strategy from multiple live servers as the distribution live server according to historical viewing records, and actively Distribute the live data stream to the at least one live distribution server. In this way, the pertinence of live data stream distribution is increased, and the live broadcast efficiency is improved.

参见图6A,图6A是本发明实施例提供的一种直播服务器的选择装置的结构示意图,该装置应用于网络直播平台中,该网络直播平台包括直播管理服务器和多个直播服务器,该装置包括:Referring to FIG. 6A, FIG. 6A is a schematic structural diagram of a device for selecting a live broadcast server provided by an embodiment of the present invention. The device is applied to a network live broadcast platform. The network live broadcast platform includes a live broadcast management server and multiple live broadcast servers. :

接收单元610,用于执行上述图3实施例中的步骤301。The receiving unit 610 is configured to execute step 301 in the above embodiment in FIG. 3 .

获取单元620,用于执行上述图3实施例中的步骤302。The acquiring unit 620 is configured to execute step 302 in the above embodiment in FIG. 3 .

确定单元630,用于执行上述图3实施例中的步骤303。The determining unit 630 is configured to execute step 303 in the above embodiment in FIG. 3 .

可选地,请参考图6B,该装置还包括:Optionally, referring to Figure 6B, the device also includes:

创建发送单元640,用于执行上述图3实施例中的步骤304和步骤305。A sending unit 640 is created to execute step 304 and step 305 in the above-mentioned embodiment in FIG. 3 .

可选地,该确定单元630,还用于执行上述图3实施例中的步骤3031-3033。Optionally, the determining unit 630 is further configured to execute steps 3031-3033 in the above-mentioned embodiment in FIG. 3 .

可选地,该确定单元630,还用于执行上述图3实施例中的步骤(1)-步骤(3)。Optionally, the determining unit 630 is further configured to execute steps (1)-(3) in the above embodiment in FIG. 3 .

可选地,该确定单元630,还用于执行上述图3实施例中步骤3031的第一种情况、第二种情况和第三种情况。Optionally, the determining unit 630 is further configured to execute the first case, the second case, and the third case of step 3031 in the above embodiment of FIG. 3 .

可选地,该接收单元610,还用于执行上述图4实施例中的步骤401。Optionally, the receiving unit 610 is also configured to execute step 401 in the above embodiment in FIG. 4 .

该装置还包括发送单元650,该发送单元650用于执行上述图4实施例中的步骤402。The device further includes a sending unit 650, and the sending unit 650 is configured to execute step 402 in the above-mentioned embodiment in FIG. 4 .

在本发明实施例中,直播管理服务器接收主播终端发送的携带主播标识的推流请求后,获取多个直播服务器中每个直播服务器与该主播标识对应的历史观看记录。之后,直播管理服务器根据该历史观看记录、该多个直播服务器中每个直播服务器与主播终端之间的通信质量参数、该多个直播服务器之间的通信质量参数这三个条件,从多个直播服务器中确定一个直播服务器作为源直播服务器。如此,可以具有针对性地为部分用户快速推流,并尽可能地减小观看用户终端获取直播数据流的时延,从而提高了直播效率。In the embodiment of the present invention, after the live broadcast management server receives the streaming push request carrying the anchor ID sent by the anchor terminal, it obtains the historical viewing records corresponding to the anchor ID of each live server among the plurality of live servers. Afterwards, according to the historical viewing record, the communication quality parameters between each live server and the anchor terminal in the multiple live servers, the live management server selects from multiple live broadcast servers according to these three conditions: In the live broadcast server, a live broadcast server is determined as the source live broadcast server. In this way, it is possible to quickly push streams for some users in a targeted manner, and minimize the time delay for viewing user terminals to obtain live data streams, thereby improving the efficiency of live broadcasting.

在本发明实施例中,直播服务器的选择装置是以功能单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到直播服务器的选择装置可以采用图2所示的形式。其中,接收单元610、获取单元620、确定单元630、创建发送单元640和发送单元650可以通过图2的处理器和存储器来实现,具体地,可以通过由处理器来执行存储器中存储的程序代码来实现。In the embodiment of the present invention, the device for selecting a live server is presented in the form of a functional unit. A "unit" here may refer to an application-specific integrated circuit (ASIC), a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above functions device. In a simple embodiment, those skilled in the art can imagine that the device for selecting a live server can take the form shown in FIG. 2 . Wherein, the receiving unit 610, the obtaining unit 620, the determining unit 630, the creating sending unit 640 and the sending unit 650 can be realized by the processor and the memory in FIG. 2, specifically, the program code stored in the memory can be executed by the processor to fulfill.

本发明实施例还提供了一种计算机存储介质,用于储存实现上述图3、图4和图5所示的直播服务器选择装置的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。通过执行存储的程序,可以实现获取开发应用所需的业务数据。An embodiment of the present invention also provides a computer storage medium for storing computer software instructions for implementing the live server selection device shown in Fig. 3 , Fig. 4 and Fig. 5 above, which includes the computer software designed to execute the above method embodiment program. By executing the stored program, the business data required for developing the application can be acquired.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the actions and modules involved in the embodiments described in the specification are not necessarily required by the present application.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described in conjunction with various embodiments herein, those skilled in the art can understand and realize the disclosure by viewing the drawings, the disclosure, and the appended claims during the implementation of the claimed application. Other Variations of Embodiments. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, devices (devices), or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed on suitable media, supplied with or as part of other hardware, and may also take other forms of distribution, such as via the Internet or other wired or wireless telecommunication systems.

本申请是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, apparatuses (devices) and computer program products of the embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (19)

1.一种直播服务器的选择方法,其特征在于,应用于网络直播平台中,所述网络直播平台包括直播管理服务器和多个直播服务器,所述方法包括:1. A selection method of a live server, characterized in that, it is applied in a live network platform, and the live network platform includes a live management server and a plurality of live servers, and the method comprises: 所述直播管理服务器接收主播终端发送的推流请求,所述推流请求中携带主播标识;The live broadcast management server receives the stream push request sent by the anchor terminal, and the stream push request carries the anchor identifier; 所述直播管理服务器基于所述主播标识,获取所述多个直播服务器中的每一个直播服务器与所述主播标识对应的历史观看记录;The live broadcast management server obtains historical viewing records corresponding to each live server in the plurality of live broadcast servers and the anchor identifier based on the anchor identifier; 所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器。Based on the historical viewing records, the communication quality parameters between each of the multiple live servers and the anchor terminal, and the communication quality parameters between the multiple live servers, the live management server selects from the Determine a live server among the plurality of live servers as the source live server. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, further comprising: 所述直播管理服务器创建直播频道,并向所述主播终端发送推流响应,所述推流响应中携带所述源直播服务器的地址信息和所述直播频道的频道信息。The live broadcast management server creates a live channel, and sends a streaming response to the anchor terminal, and the streaming response carries the address information of the source live server and the channel information of the live channel. 3.如权利要求1或2所述的方法,其特征在于,所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,包括:3. The method according to claim 1 or 2, wherein the live management server is based on the historical viewing records, the communication quality between each live server in the plurality of live servers and the anchor terminal parameters and the communication quality parameters between the multiple live servers, and determine a live server as the source live server from the multiple live servers, including: 所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;The live management server determines N live servers that satisfy a preset matching strategy from the plurality of live servers based on the historical viewing records, where N is the number of live servers that meet the preset matching strategy; 所述直播管理服务器根据所述历史观看记录,确定所述N个直播服务器的权重;The live management server determines the weights of the N live servers according to the historical viewing records; 所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器。According to the weights of the N live servers, the communication quality parameters between the anchor terminal and the N live servers, and the communication quality parameters between the N live servers, the live management server selects from the N One of the live servers is determined as the source live server. 4.如权利要求3所述的方法,其特征在于,所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器,包括:4. The method according to claim 3, wherein the live management server is based on the weights of the N live servers, the communication quality parameters between the anchor terminal and the N live servers, and the Communication quality parameters between N live servers, determining a live server as the source live server from the N live servers, including: 对于所述N个直播服务器中的每个直播服务器,确定所述直播服务器与所述主播终端之间的通信质量参数,以及确定所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数;For each live server in the N live servers, determine the communication quality parameter between the live server and the anchor terminal, and determine the live server and the N live servers except the live server Communication quality parameters between each live server other than ; 根据所述N个直播服务器的权重、所述直播服务器与所述主播终端之间的通信质量参数以及所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数,确定所述直播服务器对应的综合通信质量参数;According to the weights of the N live servers, the communication quality parameters between the live server and the anchor terminal, and the live server and each live server in the N live servers except the live server The communication quality parameter between, determine the comprehensive communication quality parameter corresponding to described live server; 从所述N个直播服务器中,将最小的综合通信质量参数对应的直播服务器确定为所述源直播服务器。From the N live servers, determine the live server corresponding to the smallest comprehensive communication quality parameter as the source live server. 5.如权利要求1或2所述的方法,其特征在于,所述直播管理服务器基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,包括:5. The method according to claim 1 or 2, wherein the live management server is based on the historical viewing records, the communication quality between each live server in the plurality of live servers and the anchor terminal parameters and the communication quality parameters between the multiple live servers, and determine a live server as the source live server from the multiple live servers, including: 所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;The live management server determines N live servers that satisfy a preset matching strategy from the plurality of live servers based on the historical viewing records, where N is the number of live servers that meet the preset matching strategy; 所述直播管理服务器根据所述历史观看记录,确定所述N个直播服务器的权重;The live management server determines the weights of the N live servers according to the historical viewing records; 所述直播管理服务器根据所述N个直播服务器的权重、所述主播终端与所述多个直播服务器任一直播服务器之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为所述源直播服务器。The live management server, according to the weights of the N live servers, the communication quality parameters between the anchor terminal and any one of the multiple live servers, and the communication quality parameters between the multiple live servers, Determining a live server from the plurality of live servers as the source live server. 6.如权利要求3-5任一所述的方法,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的用户数量;6. The method according to any one of claims 3-5, wherein the historical viewing record includes the number of users who watch the content corresponding to the anchor ID on the live broadcast server; 所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server determines N live servers that meet the preset matching strategy from the plurality of live servers, including: 所述直播管理服务器从所述多个直播服务器中确定观看所述主播标识对应的内容的用户数量大于或等于第一预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。The live management server determines from the plurality of live servers that the number of users watching the content corresponding to the anchor identifier is greater than or equal to a first preset threshold as the live servers that satisfy the preset matching policy. 7.如权利要求3-5任一所述的方法,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的所有用户的历史打赏总额度;7. The method according to any one of claims 3-5, wherein the historical viewing record includes the total amount of historical rewards of all users who watch the content corresponding to the anchor ID on the live broadcast server; 所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server determines N live servers that meet the preset matching strategy from the plurality of live servers, including: 所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。The live broadcast management server determines from the plurality of live broadcast servers that the total amount of historical rewards of all users watching the content corresponding to the host identifier is greater than or equal to a second preset threshold as meeting the preset match Strategies for live servers. 8.如权利要求3-5任一所述的方法,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的每一个用户的历史打赏总额度;8. The method according to any one of claims 3-5, wherein the historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor ID on the live broadcast server; 所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中选择满足预设匹配策略的N个直播服务器,包括:Based on the historical viewing records, the live management server selects N live servers that meet the preset matching strategy from the plurality of live servers, including: 所述直播管理服务器从所述多个直播服务器中,确定观看所述主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足所述预设匹配策略的直播服务器。The live broadcast management server determines, from the plurality of live broadcast servers, that the live broadcast server corresponding to the users who watch the content corresponding to the anchor identifier in the top M in the history of the total amount of rewards is the live broadcast server that satisfies the preset matching strategy server. 9.如权利要求3-8任一所述的方法,其特征在于,所述直播管理服务器基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器之后,还包括:9. The method according to any one of claims 3-8, wherein the live management server determines N live servers that satisfy a preset matching strategy from the plurality of live servers based on the historical viewing records After that, also include: 所述直播管理服务器接收所述源直播服务器发送的数据传输成功消息,所述数据传输成功消息中携带所述直播频道的频道信息;The live broadcast management server receives the data transmission success message sent by the source live broadcast server, and the data transmission success message carries the channel information of the live broadcast channel; 所述直播管理服务器向所述N个直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息。The live broadcast management server sends a download instruction to the N live servers, and the download instruction includes address information of the source live server and channel information of the live channel. 10.一种直播服务器的选择装置,其特征在于,所述装置部署于网络直播平台中的直播管理服务器中,所述网络直播平台还包括多个直播服务器,所述装置包括:10. A selection device for a live broadcast server, characterized in that the device is deployed in a live broadcast management server in a network live broadcast platform, and the network live broadcast platform also includes a plurality of live broadcast servers, and the device includes: 接收单元,用于接收主播终端发送的推流请求,所述推流请求中携带主播标识;A receiving unit, configured to receive a stream push request sent by the anchor terminal, where the stream push request carries an anchor identifier; 获取单元,用于基于所述主播标识,获取所述多个直播服务器中的每一个直播服务器与所述主播标识对应的历史观看记录;An acquisition unit, configured to acquire, based on the anchor identifier, historical viewing records corresponding to each of the plurality of live servers and the anchor identifier; 确定单元,用于基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器。A determining unit, configured to, based on the historical viewing records, the communication quality parameters between each of the plurality of live servers and the anchor terminal, and the communication quality parameters between the plurality of live servers, from the Determine a live server among the plurality of live servers as the source live server. 11.如权利要求10所述的装置,其特征在于,所述装置还包括:11. The device of claim 10, further comprising: 创建发送单元,用于创建直播频道,并向所述主播终端发送推流响应,所述推流响应中携带所述源直播服务器的地址信息和所述直播频道的频道信息。Create a sending unit, configured to create a live channel, and send a stream push response to the anchor terminal, where the stream push response carries the address information of the source live server and the channel information of the live channel. 12.如权利要求10或11所述的装置,其特征在于,所述确定单元用于基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,具体为:12. The device according to claim 10 or 11, wherein the determining unit is configured to communicate between each live server in the plurality of live servers and the anchor terminal based on the historical viewing records, The quality parameter and the communication quality parameter between the multiple live servers determine a live server as the source live server from the multiple live servers, specifically: 基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;Based on the historical viewing records, determine N live servers that meet the preset matching strategy from the plurality of live servers, where N is the number of live servers that meet the preset matching strategy; 根据所述历史观看记录,确定所述N个直播服务器的权重;Determine the weights of the N live servers according to the historical viewing records; 根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器。According to the weights of the N live servers, the communication quality parameters between the host terminal and the N live servers, and the communication quality parameters between the N live servers, determine from the N live servers A live server is used as the source live server. 13.如权利要求12所述的装置,其特征在于,所述确定单元用于根据所述N个直播服务器的权重、所述主播终端与所述N个直播服务器之间的通信质量参数以及所述N个直播服务器之间的通信质量参数,从所述N个直播服务器中确定一个直播服务器作为所述源直播服务器,具体为:13. The device according to claim 12, wherein the determining unit is configured to use the weights of the N live servers, the communication quality parameters between the anchor terminal and the N live servers, and the The communication quality parameter between the N live servers, determine a live server as the source live server from the N live servers, specifically: 对于所述N个直播服务器中的每个直播服务器,确定所述直播服务器与所述主播终端之间的通信质量参数,以及确定所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数;For each live server in the N live servers, determine the communication quality parameter between the live server and the anchor terminal, and determine the live server and the N live servers except the live server Communication quality parameters between each live server other than ; 根据所述N个直播服务器的权重、所述直播服务器与所述主播终端之间的通信质量参数以及所述直播服务器与所述N个直播服务器中除所述直播服务器之外的每个直播服务器之间的通信质量参数,确定所述直播服务器对应的综合通信质量参数;According to the weights of the N live servers, the communication quality parameters between the live server and the anchor terminal, and the live server and each live server in the N live servers except the live server The communication quality parameter between, determine the comprehensive communication quality parameter corresponding to described live server; 从所述N个直播服务器中,将最小的综合通信质量参数对应的直播服务器确定为所述源直播服务器。From the N live servers, determine the live server corresponding to the smallest comprehensive communication quality parameter as the source live server. 14.如权利要求10或11所述的装置,其特征在于,所述确定单元用于基于所述历史观看记录、所述多个直播服务器中每一个直播服务器与所述主播终端之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为源直播服务器,具体为:14. The device according to claim 10 or 11, wherein the determining unit is configured to communicate between each live server in the plurality of live servers and the anchor terminal based on the historical viewing records, The quality parameter and the communication quality parameter between the multiple live servers determine a live server as the source live server from the multiple live servers, specifically: 基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,所述N为满足所述预设匹配策略的直播服务器的数量;Based on the historical viewing records, determine N live servers that meet the preset matching strategy from the plurality of live servers, where N is the number of live servers that meet the preset matching strategy; 根据所述历史观看记录,确定所述N个直播服务器的权重;Determine the weights of the N live servers according to the historical viewing records; 根据所述N个直播服务器的权重、所述主播终端与所述多个直播服务器任一直播服务器之间的通信质量参数以及所述多个直播服务器之间的通信质量参数,从所述多个直播服务器中确定一个直播服务器作为所述源直播服务器。According to the weights of the N live servers, the communication quality parameters between the anchor terminal and any one of the plurality of live servers, and the communication quality parameters between the plurality of live servers, from the plurality of One of the live servers is determined as the source live server. 15.如权利要求12-14任一所述的装置,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的用户数量;15. The device according to any one of claims 12-14, wherein the historical viewing record includes the number of users who watched the content corresponding to the anchor ID on the live broadcast server; 所述确定单元用于基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,具体为:The determining unit is configured to determine N live servers satisfying a preset matching strategy from the plurality of live servers based on the historical viewing records, specifically: 从所述多个直播服务器中确定观看所述主播标识对应的内容的用户数量大于或等于第一预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。It is determined from the plurality of live servers that the number of users watching the content corresponding to the anchor identifier is greater than or equal to a first preset threshold as the live servers satisfying the preset matching policy. 16.如权利要求12-14任一所述的装置,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的所有用户的历史打赏总额度;16. The device according to any one of claims 12-14, characterized in that, the historical viewing record includes the total amount of historical rewards of all users who watch the content corresponding to the anchor ID on the live broadcast server; 所述确定单元用于基于所述历史观看记录,从所述多个直播服务器中确定满足预设匹配策略的N个直播服务器,具体为:The determining unit is configured to determine N live servers satisfying a preset matching strategy from the plurality of live servers based on the historical viewing records, specifically: 从所述多个直播服务器中,确定观看所述主播标识对应的内容的所有用户的历史打赏总额度大于或等于第二预设阈值的直播服务器为满足所述预设匹配策略的直播服务器。From the plurality of live servers, it is determined that the total amount of historical rewards of all users watching the content corresponding to the anchor identifier is greater than or equal to a second preset threshold as the live server that satisfies the preset matching strategy. 17.如权利要求12-14任一所述的装置,其特征在于,所述历史观看记录包括直播服务器上观看所述主播标识对应的内容的每一个用户的历史打赏总额度;17. The device according to any one of claims 12-14, wherein the historical viewing record includes the total amount of historical rewards of each user who watches the content corresponding to the anchor ID on the live broadcast server; 所述确定单元用于基于所述历史观看记录,从所述多个直播服务器中选择满足预设匹配策略的N个直播服务器,具体为:The determining unit is configured to select N live servers satisfying a preset matching strategy from the plurality of live servers based on the historical viewing records, specifically: 从所述多个直播服务器中,确定观看所述主播标识对应的内容的用户的历史打赏总额度排序前M的用户对应的直播服务器为满足所述预设匹配策略的直播服务器。From the plurality of live broadcast servers, determine that the live broadcast servers corresponding to the users who watch the content corresponding to the anchor identifier in the top M in terms of the total amount of historical rewards are the live broadcast servers that satisfy the preset matching strategy. 18.如权利要求12-17任一所述的装置,其特征在于,18. The device according to any one of claims 12-17, wherein: 所述接收单元,还用于接收所述源直播服务器发送的数据传输成功消息,所述数据传输成功消息中携带所述直播频道的频道信息;The receiving unit is further configured to receive a data transmission success message sent by the source live broadcast server, where the data transmission success message carries channel information of the live broadcast channel; 所述装置还包括:The device also includes: 发送单元,用于向所述N个直播服务器发送下载指示,所述下载指示中包括所述源直播服务器的地址信息和所述直播频道的频道信息。A sending unit, configured to send a download instruction to the N live servers, where the download instruction includes address information of the source live server and channel information of the live channel. 19.一种直播服务器的选择装置,其特征在于,所述装置包括:19. A device for selecting a live server, characterized in that the device comprises: 处理器和存储器;processor and memory; 其中,所述存储器中存有计算机可读程序;Wherein, a computer readable program is stored in the memory; 所述处理器通过运行所述存储器中的程序,以用于完成权利要求1-9任一所述的方法。The processor executes the program in the memory to implement the method of any one of claims 1-9.
CN201710305843.6A 2017-05-03 2017-05-03 Live broadcast server selection method and device Active CN108810052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710305843.6A CN108810052B (en) 2017-05-03 2017-05-03 Live broadcast server selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710305843.6A CN108810052B (en) 2017-05-03 2017-05-03 Live broadcast server selection method and device

Publications (2)

Publication Number Publication Date
CN108810052A true CN108810052A (en) 2018-11-13
CN108810052B CN108810052B (en) 2020-09-04

Family

ID=64054123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710305843.6A Active CN108810052B (en) 2017-05-03 2017-05-03 Live broadcast server selection method and device

Country Status (1)

Country Link
CN (1) CN108810052B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413199A (en) * 2018-11-22 2019-03-01 北京大米科技有限公司 A kind of communication means, device, electronic equipment and medium
CN110460866A (en) * 2019-07-29 2019-11-15 网宿科技股份有限公司 Method, system and server for pushing streaming media data
CN110798698A (en) * 2019-11-25 2020-02-14 盈动电子竞技(海南自贸区)有限公司 Multi-server stream pushing method and equipment for live broadcast application program
CN111314293A (en) * 2020-01-15 2020-06-19 安徽文香信息技术有限公司 Media resource service system, method, device, storage medium and processor
CN112423012A (en) * 2020-11-18 2021-02-26 青岛华升联信智慧科技有限公司 Multistage-load live broadcast method
WO2021104249A1 (en) * 2019-11-29 2021-06-03 阿里巴巴集团控股有限公司 Data processing method and apparatus, computer storage medium, and electronic device
CN114584561A (en) * 2022-03-15 2022-06-03 联想(北京)有限公司 Information processing method and device and electronic equipment
CN115412738A (en) * 2021-05-26 2022-11-29 武汉斗鱼网络科技有限公司 Server scheduling method and device and storage medium
CN117201502A (en) * 2023-09-12 2023-12-08 广州云硕科技发展有限公司 Intelligent cloud server access method and system based on artificial intelligence

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964787A (en) * 2010-09-17 2011-02-02 深圳市同洲电子股份有限公司 Method, device and system for implementation of multiple-terminal breakpoint broadcast of programs
CN102123307A (en) * 2011-01-20 2011-07-13 深圳市同洲电子股份有限公司 Method and system for playing programs
CN104135672A (en) * 2014-08-13 2014-11-05 浪潮软件集团有限公司 A method for seamless disaster recovery of video on demand based on HLS
KR20150123678A (en) * 2014-04-24 2015-11-04 숭실대학교산학협력단 A CDN Service System through Distributed Mobility Management and Method Thereof
CN105681835A (en) * 2016-02-26 2016-06-15 腾讯科技(深圳)有限公司 Information pushing method and server
CN105847874A (en) * 2016-04-20 2016-08-10 乐视控股(北京)有限公司 Live broadcasting device and live broadcasting terminal
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN105897836A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Back source request processing method and device
CN106060605A (en) * 2016-05-25 2016-10-26 清华大学深圳研究生院 CDN-based live stream self-adaption method and system
CN106453328A (en) * 2016-10-18 2017-02-22 乐视控股(北京)有限公司 Publishing method for live broadcast video file, publishing client and edge streaming media server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964787A (en) * 2010-09-17 2011-02-02 深圳市同洲电子股份有限公司 Method, device and system for implementation of multiple-terminal breakpoint broadcast of programs
CN102123307A (en) * 2011-01-20 2011-07-13 深圳市同洲电子股份有限公司 Method and system for playing programs
KR20150123678A (en) * 2014-04-24 2015-11-04 숭실대학교산학협력단 A CDN Service System through Distributed Mobility Management and Method Thereof
CN104135672A (en) * 2014-08-13 2014-11-05 浪潮软件集团有限公司 A method for seamless disaster recovery of video on demand based on HLS
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN105897836A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Back source request processing method and device
CN105681835A (en) * 2016-02-26 2016-06-15 腾讯科技(深圳)有限公司 Information pushing method and server
CN105847874A (en) * 2016-04-20 2016-08-10 乐视控股(北京)有限公司 Live broadcasting device and live broadcasting terminal
CN106060605A (en) * 2016-05-25 2016-10-26 清华大学深圳研究生院 CDN-based live stream self-adaption method and system
CN106453328A (en) * 2016-10-18 2017-02-22 乐视控股(北京)有限公司 Publishing method for live broadcast video file, publishing client and edge streaming media server

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413199A (en) * 2018-11-22 2019-03-01 北京大米科技有限公司 A kind of communication means, device, electronic equipment and medium
CN110460866A (en) * 2019-07-29 2019-11-15 网宿科技股份有限公司 Method, system and server for pushing streaming media data
CN110798698A (en) * 2019-11-25 2020-02-14 盈动电子竞技(海南自贸区)有限公司 Multi-server stream pushing method and equipment for live broadcast application program
WO2021104249A1 (en) * 2019-11-29 2021-06-03 阿里巴巴集团控股有限公司 Data processing method and apparatus, computer storage medium, and electronic device
CN111314293A (en) * 2020-01-15 2020-06-19 安徽文香信息技术有限公司 Media resource service system, method, device, storage medium and processor
CN112423012A (en) * 2020-11-18 2021-02-26 青岛华升联信智慧科技有限公司 Multistage-load live broadcast method
CN112423012B (en) * 2020-11-18 2023-05-09 青岛华升联信智慧科技有限公司 Multi-stage load live broadcast method
CN115412738A (en) * 2021-05-26 2022-11-29 武汉斗鱼网络科技有限公司 Server scheduling method and device and storage medium
CN115412738B (en) * 2021-05-26 2023-09-08 广西三方大供应链技术服务有限公司 Scheduling method and device of server and storage medium
CN114584561A (en) * 2022-03-15 2022-06-03 联想(北京)有限公司 Information processing method and device and electronic equipment
CN117201502A (en) * 2023-09-12 2023-12-08 广州云硕科技发展有限公司 Intelligent cloud server access method and system based on artificial intelligence
CN117201502B (en) * 2023-09-12 2024-02-20 广州云硕科技发展有限公司 Intelligent cloud server access method and system based on artificial intelligence

Also Published As

Publication number Publication date
CN108810052B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN108810052B (en) Live broadcast server selection method and device
US10798440B2 (en) Methods and systems for synchronizing data streams across multiple client devices
US9160777B2 (en) Adaptive variable fidelity media distribution system and method
US9432452B2 (en) Systems and methods for dynamic networked peer-to-peer content distribution
CN101764831B (en) A streaming media data sharing method, sharing system and streaming media node
US20200358836A1 (en) Dynamic bit rate encoding
WO2017071228A1 (en) Hls protocol-based method and system for live broadcast and client
US10225319B2 (en) System and method of a link surfed http live streaming broadcasting system
He et al. Fog-based transcoding for crowdsourced video livecast
CN109982159A (en) The method and terminal of online playing stream media
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
TW201607302A (en) A system for filtering media manifests using manifest attributes
CN110099134A (en) Video file method for down loading, device, electronic equipment and storage medium
US12200285B2 (en) Technologies for managing collaborative and multiplatform media content playlists
US20160381127A1 (en) Systems and methods for dynamic networked peer-to-peer content distribution
CN107920108A (en) A kind of method for pushing of media resource, client and server
Liu et al. Measurement and analysis of an internet streaming service to mobile devices
Kumar et al. Edge assisted DASH video caching mechanism for multi-access edge computing
CN110248206A (en) A kind of resource allocation methods, device and electronic equipment for edge network system
HK1202723A1 (en) Method for transmitting information and device thereof
JP6342526B2 (en) Method and system for sharing live broadcast data
US12177284B2 (en) Content delivery network (CDN) selection using performance metric
CN102665096B (en) System and method for wireless distribution system proxy caches
JP2023031248A (en) Edge computing network, data transmission method, apparatus, device, and storage medium
CN101179705B (en) Fellow resource node selecting method and apparatus

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