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
direct broadcast
broadcast server
server
main broadcaster
live streaming
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

This application discloses a kind of selection method of direct broadcast server and devices, belong to network technique field.This method includes:Management server is broadcast live and receives the plug-flow request that main broadcaster's terminal is sent, main broadcaster's mark is carried in plug-flow request, the live streaming management server is identified based on the main broadcaster, obtain each direct broadcast server history viewing record corresponding with main broadcaster mark in multiple direct broadcast server, the live streaming management server is based on history viewing record, the communication quality parameter between communication quality parameter and multiple direct broadcast server in multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal, determine a direct broadcast server as source direct broadcast server from multiple direct broadcast server.It is pointedly the quick plug-flow of certain customers that the embodiment of the present invention, which has, and reduces the time delay that viewing user terminal obtains live data streams as much as possible, to improve live streaming efficiency.

Description

The selection method and device of direct broadcast server
Technical field
This application involves network technique field, more particularly to the selection method and device of a kind of direct broadcast server.
Background technology
With the fast development of network technology, network direct broadcasting system is widely used, and e.g., can be applied to ball match In the live scenes such as live streaming, opening live streaming.Currently, in network direct broadcasting system mainly include main broadcaster's terminal, viewing user terminal and Network direct broadcasting platform, the network direct broadcasting platform further include live streaming management server and multiple direct broadcast servers.Wherein, direct broadcast service Device can be used for storing live data streams, and viewing user terminal can download the live data streams from direct broadcast server.Live streaming Management server is mainly used for selecting some direct broadcast server as source direct broadcast server, the source from multiple direct broadcast server Direct broadcast server is mainly used for storing the live data streams that main broadcaster's terminal is sent in the process in live streaming.
In the prior art, main broadcaster's terminal can send plug-flow request, the plug-flow in live streaming to live streaming management server Address procotol (Internet Protocol, IP) of main broadcaster's terminal present access network can be carried in request.Due to The communication quality being in main broadcaster's terminal between identical or immediate area direct broadcast server and main broadcaster's terminal is generally preferable, Therefore, live streaming management server can be according to the IP address of main broadcaster's terminal, selection and the master from multiple direct broadcast server The preferable direct broadcast server of communication quality is as source direct broadcast server between broadcasting terminal.Later, live streaming management server creates straight Channel is broadcast, and the channel information of the address information of the source direct broadcast server and the direct broadcast band is sent to main broadcaster's terminal, so as to It is based on the address information and channel information in main broadcaster's terminal, live data streams are sent to the source direct broadcast server, it is straight by the source The server storage live data streams are broadcast, and are not distributed further.When there is user to watch live streaming, if user attaching There is no live data streams on direct broadcast server, is then sent to use after pulling live data streams to source direct broadcast server Hui Yuan in real time Family.
In the embodiment of above-mentioned offer, live streaming management server selection is that communication quality is preferable between main broadcaster's terminal Direct broadcast server as source direct broadcast server come store main broadcaster's terminal transmission live data streams, however, due to live streaming regard The distribution of frequency stream needs certain time delay, if the quantity of the viewing user of live data streams is downloaded from the source direct broadcast server It is less, then cause it is most of watch user terminal can not quick obtaining to live video stream, that is to say, the embodiment party of above-mentioned offer The live streaming specific aim of formula is poor, less efficient.
Invention content
Specific aim is poor in order to solve to be broadcast live in the prior art, and less efficient problem, this application provides a kind of live streamings The selection method and device of server.The technical solution is as follows:
In a first aspect, providing a kind of selection method of direct broadcast server, it is applied in network direct broadcasting platform, the network It includes that management server and multiple direct broadcast servers is broadcast live that platform, which is broadcast live, the method includes:
The live streaming management server receives the plug-flow request that main broadcaster's terminal is sent, and main broadcaster's mark is carried in the plug-flow request Know;
The live streaming management server is identified based on the main broadcaster, each obtained in the multiple direct broadcast server is straight Broadcast server history viewing record corresponding with main broadcaster mark;
The live streaming management server is based on each in history viewing record, the multiple direct broadcast server and is broadcast live Communication quality ginseng between communication quality parameter and the multiple direct broadcast server between server and main broadcaster's terminal Number determines a direct broadcast server as source direct broadcast server from the multiple direct broadcast server.
In embodiments of the present invention, since live streaming management server is according to history viewing record, multiple direct broadcast service Communication quality in device between each communication quality parameter between direct broadcast server and main broadcaster's terminal, multiple direct broadcast server These three conditions of parameter determine a direct broadcast server as source direct broadcast server from multiple direct broadcast servers.In this way, can be with With pointedly be the quick plug-flow of certain customers, and as much as possible reduce viewing user terminal obtain live data streams when Prolong, to improve live streaming efficiency.
In one possible implementation, the method further includes:
The live streaming management server creates direct broadcast band, and sends plug-flow response, the plug-flow to main broadcaster's terminal The channel information of the address information and the direct broadcast band of the source direct broadcast server is carried in response.
It is worth noting that live streaming management server sends the address letter for carrying the source direct broadcast server to main broadcaster's terminal After the response of the channel information plug-flow of breath and the direct broadcast band, main broadcaster's terminal can be made based on the address of the source direct broadcast server The channel information of information and the direct broadcast band uploads live data streams, to realize live data to the source direct broadcast server The push of stream.
In one possible implementation, the live streaming management server is recorded based on history viewing, is described more Communication quality parameter in a direct broadcast server between each direct broadcast server and main broadcaster's terminal and the multiple straight The communication quality parameter between server is broadcast, determines that a direct broadcast server is broadcast live as source from the multiple direct broadcast server Server, including:
The live streaming management server is based on history viewing record, determines and meets from the multiple direct broadcast server N number of direct broadcast server of preset matching strategy, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
The live streaming management server is watched according to the history and being recorded, and determines the weight of N number of direct broadcast server;
The live streaming management server according to the weight of N number of direct broadcast server, main broadcaster's terminal with it is described N number of straight The communication quality parameter between communication quality parameter and the N number of direct broadcast server between server is broadcast, from described N number of straight It broadcasts and determines a direct broadcast server as the source direct broadcast server in server.
It is worth noting that live streaming management server records according to history viewing, is main described in the weight of N number of direct broadcast server Broadcast the communication matter between communication quality parameter and the N number of direct broadcast server between terminal and N number of direct broadcast server Parameter is measured, a direct broadcast server is determined from N number of direct broadcast server as the source direct broadcast server, in this way, can be with Reduce the operand that live streaming management server determines source direct broadcast server.
In one possible implementation, the live streaming management server according to the weight of N number of direct broadcast server, Between communication quality parameter and N number of direct broadcast server between main broadcaster's terminal and N number of direct broadcast server Communication quality parameter determines a direct broadcast server as the source direct broadcast server, packet from N number of direct broadcast server It includes:
For each direct broadcast server in N number of direct broadcast server, the direct broadcast server and the main broadcaster are determined Communication quality parameter between terminal, and determine the direct broadcast server and remove the live streaming in N number of direct broadcast server The communication quality parameter between each direct broadcast server except server;
According to the communication matter between the weight of N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal It measures parameter and the direct broadcast server and clothes is broadcast live in N number of direct broadcast server each of in addition to the direct broadcast server Communication quality parameter between business device, determines the corresponding integrated communication mass parameter of the direct broadcast server;
From N number of direct broadcast server, the minimum corresponding direct broadcast server of integrated communication mass parameter is determined as The source direct broadcast server.
It is worth noting that when determining source direct broadcast server from N number of direct broadcast server, COMPREHENSIVE CALCULATING main broadcaster terminal With the time delay between each direct broadcast server, and each time delay between direct broadcast server and other direct broadcast servers, in this way, When being subsequently that N number of direct broadcast server distributes live data streams, it is ensured that determining source direct broadcast server takes with N number of live streaming Time delay between business device is shorter, to reduce the time delay that viewing user terminal obtains live data streams, improves live streaming effect Rate.
In one possible implementation, the live streaming management server is recorded based on history viewing, is described more Communication quality parameter in a direct broadcast server between each direct broadcast server and main broadcaster's terminal and the multiple straight The communication quality parameter between server is broadcast, determines that a direct broadcast server is broadcast live as source from the multiple direct broadcast server Server, including:
The live streaming management server is based on history viewing record, determines and meets from the multiple direct broadcast server N number of direct broadcast server of preset matching strategy, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
The live streaming management server is watched according to the history and being recorded, and determines the weight of N number of direct broadcast server;
The live streaming management server according to the weight of N number of direct broadcast server, main broadcaster's terminal with it is the multiple The communication matter between communication quality parameter and the multiple direct broadcast server between any direct broadcast server of direct broadcast server Parameter is measured, determines a direct broadcast server as the source direct broadcast server from the multiple direct broadcast server.
It is worth noting that the integrated communication above by each direct broadcast server in the multiple direct broadcast server of determination is joined Number, and according to the integrated communication parameter of each direct broadcast server, a direct broadcast server is determined from multiple direct broadcast server As source direct broadcast server, in this way, improving the accuracy of determining source direct broadcast server.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server Know the number of users of corresponding content;
The live streaming management server is based on history viewing record, determines and meets from the multiple direct broadcast server N number of direct broadcast server of preset matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server The direct broadcast server that the number of users of appearance is greater than or equal to the first predetermined threshold value is the live streaming clothes for meeting the preset matching strategy Business device.
It is worth noting that live streaming management server selects history to watch main broadcaster mark from multiple direct broadcast server The more direct broadcast server of the number of users of corresponding content, and using the direct broadcast server selected as the target of plug-flow, in this way, It can ensure that most viewing user terminal can get live data streams as quickly as possible.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server The history for knowing all users of corresponding content beats reward full amount;
The live streaming management server is based on history viewing record, determines and meets from the multiple direct broadcast server N number of direct broadcast server of preset matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server It is to meet described preset that the history of all users held, which beats reward full amount to be greater than or equal to the direct broadcast server of the second predetermined threshold value, The direct broadcast server of matching strategy.
It is worth noting that live streaming management server is from multiple direct broadcast servers, selection watches the main broadcaster and identifies correspondence The history of all users of content beat the direct broadcast server that reward full amount is greater than or equal to the second predetermined threshold value, and will be selected Direct broadcast server be determined as plug-flow target, in this way, can to beat on the larger corresponding direct broadcast server of reward full amount User can quickly see live streaming.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server The history for knowing each user of corresponding content beats reward full amount;
The live streaming management server is based on history viewing record, selects to meet from the multiple direct broadcast server N number of direct broadcast server of preset matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server The corresponding direct broadcast server of user that the history of the user of appearance beats the preceding M of reward full amount sequence is to meet the preset matching strategy Direct broadcast server.
It is worth noting that above-mentioned live streaming management server, which from multiple direct broadcast server, determines, watches main broadcaster mark The history for knowing the user of corresponding content beats the corresponding direct broadcast server of user of the preceding M of reward full amount sequence to meet this default Direct broadcast server with strategy can so ensure that live streaming can be quick looked at by beating the larger user of reward amount.
In one possible implementation, the live streaming management server is based on history viewing record, from described It is determined in multiple direct broadcast servers after meeting N number of direct broadcast server of preset matching strategy, further includes:
The live streaming management server receives the data transmission success message that the source direct broadcast server is sent, the data The channel information of the direct broadcast band is carried in transmission success message;
The live streaming management server sends to N number of direct broadcast server and downloads instruction, and the download instruction includes The channel information of the address information and the direct broadcast band of the source direct broadcast server.
It is worth noting that live streaming management server is sent to N number of direct broadcast server downloads instruction, in the download instruction The channel information of address information and the direct broadcast band including the source direct broadcast server, in this way, can make N number of live streaming Server success Hui Yuan pulls live data streams.
Second aspect provides a kind of selection method of direct broadcast server, is applied in network direct broadcasting platform, the network It includes that management server and multiple direct broadcast servers is broadcast live that platform, which is broadcast live, the method includes:
The live streaming management server receives the data transmission success message that source direct broadcast server is sent, the data transmission The channel information of direct broadcast band is carried in success message, the source direct broadcast server is being received by the live streaming management server It selects to obtain from the multiple direct broadcast server after the plug-flow request that main broadcaster's terminal is sent, and for storing main broadcaster's terminal The live data streams of transmission, the direct broadcast band are built by the live streaming management server after selecting the source direct broadcast server It is vertical;
The live streaming channel information of the management server based on the direct broadcast band, between main broadcaster's mark and channel information Correspondence in obtain corresponding main broadcaster mark, and the correspondence between the main broadcaster of storage mark and history viewing record In, obtain corresponding history viewing record, the correspondence between main broadcaster's mark and the channel information of the direct broadcast band It is obtained by being stored after the live streaming management server establishment direct broadcast band;
The live streaming management server be based on the history viewing record, from the multiple direct broadcast server selection in addition to Meet at least one direct broadcast server of the preset matching strategy except the source direct broadcast server as distribution direct broadcast service Device.
In embodiments of the present invention, it can be watched and being recorded according to history during being distributed to live data streams, Select the direct broadcast server for meeting preset matching strategy as distribution direct broadcast server from multiple direct broadcast servers, in this way, making Management server must be broadcast live with being pointedly distributed to live data streams, improve live streaming efficiency.
In one possible implementation, the live streaming management server is based on history viewing record, from described Selection meets at least one straight of the preset matching strategy other than the source direct broadcast server in multiple direct broadcast servers After server is broadcast as distribution direct broadcast server, further include:
It is sent at least one distribution direct broadcast server and downloads instruction, the download instruction includes the source live streaming The channel information of the address information of server and the direct broadcast band.
It is worth noting that live streaming management server is sent at least one distribution direct broadcast server downloads instruction, it is described The channel information that instruction includes the address information and the direct broadcast band of the source direct broadcast server is downloaded, in this way, can make It obtains at least one distribution direct broadcast server success Hui Yuan and pulls live data streams.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server Know the number of users of corresponding content;
The live streaming management server be based on the history viewing record, from the multiple direct broadcast server selection in addition to Meet at least one direct broadcast server of the preset matching strategy except the source direct broadcast server as distribution direct broadcast service Device, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server At least one direct broadcast server that the number of users of appearance is greater than or equal to the first predetermined threshold value is to meet the preset matching strategy Distribution direct broadcast server.
It is worth noting that live streaming management server selects history to watch main broadcaster mark from multiple direct broadcast server The more direct broadcast server of the number of users of corresponding content, and using the direct broadcast server selected as the target of plug-flow, in this way, It can ensure that most viewing user terminal can get live data streams as quickly as possible.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server The history for knowing all users of corresponding content beats reward full amount;
The live streaming management server be based on the history viewing record, from the multiple direct broadcast server selection in addition to Meet at least one direct broadcast server of the preset matching strategy except the source direct broadcast server as distribution direct broadcast service Device, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server It is to meet that the history of all users held, which beats reward full amount to be greater than or equal at least one direct broadcast server of the second predetermined threshold value, The distribution direct broadcast server of the preset matching strategy.
It is worth noting that live streaming management server is from multiple direct broadcast servers, selection watches the main broadcaster and identifies correspondence The history of all users of content beat the direct broadcast server that reward full amount is greater than or equal to the second predetermined threshold value, and will be selected Direct broadcast server be determined as plug-flow target so that the user on the direct broadcast server can quickly see live streaming.
In one possible implementation, the history viewing record includes that main broadcaster's mark is watched on direct broadcast server The history for knowing each user of corresponding content beats reward full amount;
The live streaming management server be based on the history viewing record, from the multiple direct broadcast server selection in addition to Meet at least one direct broadcast server of the preset matching strategy except the source direct broadcast server as distribution direct broadcast service Device, including:
The live streaming management server determines that watching the main broadcaster identifies in corresponding from the multiple direct broadcast server The corresponding at least one direct broadcast server of user that the history of the user of appearance beats the preceding M of reward full amount sequence is to meet described default Distribution direct broadcast server with strategy.
It is worth noting that live streaming management server from multiple direct broadcast server, determines and watches main broadcaster mark pair The corresponding direct broadcast server of user that the history of the user for the content answered beats the preceding M of reward full amount sequence is to meet the preset matching plan Direct broadcast server slightly can so ensure that live streaming can be quick looked at by beating the larger user of reward amount.
The third aspect, provides a kind of selection device of direct broadcast server, and the selection device of the direct broadcast server has Realize the function of the selection method behavior of direct broadcast server in above-mentioned first aspect, second aspect.The choosing of the direct broadcast server It includes at least one unit to select device, which is provided straight for realizing above-mentioned first aspect, second aspect Broadcast the selection method of server.
Fourth aspect provides a kind of selection device of direct broadcast server, the knot of the selection device of the direct broadcast server Structure includes processor and memory, and the memory, which is used to store, supports the selection device of direct broadcast server to execute above-mentioned first The program of the selection method for the direct broadcast server that aspect, second aspect are provided, and storage for realizing above-mentioned first aspect, Data involved by the selection method for the direct broadcast server that second aspect is provided.The processor is configurable for executing institute State the program stored in memory.The operating device of the storage device can also include communication bus, which is used for Connection is established between the processor and memory.
5th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage medium Instruction, when run on a computer so that computer executes the direct broadcast server described in above-mentioned first aspect, second aspect Selection method.
6th aspect provides a kind of computer program product including instruction, when run on a computer so that Computer executes the selection method of the direct broadcast server described in above-mentioned first aspect, second aspect.
The above-mentioned third aspect, fourth aspect, the 5th aspect and the 6th technique effect that is obtained of aspect and first aspect, the The technique effect that corresponding technological means obtains in two aspects is approximate, repeats no more herein.
The advantageous effect that technical solution provided by the present application is brought is:Management server is broadcast live and receives what main broadcaster's terminal was sent After the plug-flow request for carrying main broadcaster's mark, it is corresponding with main broadcaster mark to obtain each direct broadcast server in multiple direct broadcast servers History viewing record.Later, live streaming management server is each broadcast live according in history viewing record, multiple direct broadcast server The communication quality parameter between communication quality parameter, multiple direct broadcast server between server and main broadcaster's terminal these three Part determines a direct broadcast server as source direct broadcast server from multiple direct broadcast servers.In this way, can have pointedly For the quick plug-flow of certain customers, and reduce the time delay that viewing user terminal obtains live data streams as much as possible, to improve Efficiency is broadcast live.
Description of the drawings
Fig. 1 is that the embodiment of the present invention provides a kind of structural schematic diagram of live broadcast system;
Fig. 2 is a kind of structural schematic diagram of live streaming management server provided in an embodiment of the present invention;
Fig. 3 is a kind of selection method flow chart of direct broadcast server provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of the distribution method of live data streams provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the selection method of another direct broadcast server shown according to an exemplary embodiment;
Fig. 6 A are a kind of structural schematic diagrams of the selection device of direct broadcast server provided in an embodiment of the present invention;
Fig. 6 B are the structural schematic diagrams of the selection device of another direct broadcast server provided in an embodiment of the present invention;
Fig. 6 C are the structural schematic diagrams of the selection device of another direct broadcast server provided in an embodiment of the present invention.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Before to the embodiment of the present invention carrying out that explanation is explained in detail, first the system architecture of the embodiment of the present invention is given It introduces.Fig. 1 is that the embodiment of the present invention provides a kind of structural schematic diagram of live broadcast system.Include mainly that main broadcaster is whole in the live broadcast system End 11, network direct broadcasting platform 12 and viewing user terminal 13.Main broadcaster's terminal 11 and the viewing user terminal 13 can lead to respectively It crosses wireless network and establishes connection with the network direct broadcasting platform 12.
Wherein, which is mainly used for the processing such as being acquired, encode to the live streaming picture of main broadcaster side, also, To be pushed in the direct broadcast server of network direct broadcasting platform 12 by acquisition, the live data streams after coded treatment (wherein, about The equipment that network direct broadcasting platform 12 includes specifically sees below described).In practical application scene, which can Think the equipment of such as mobile phone, tablet computer, computer etc, it is not limited in the embodiment of the present invention.
Wherein, which includes live streaming management server and multiple direct broadcast servers.It needs to illustrate It is that the quantity to the live streaming management server and the quantity of direct broadcast server are not defined in embodiments of the present invention. It illustrates for convenience, four direct broadcast servers, one is included with the network direct broadcasting platform 12 in the attached drawing 1 of the embodiment of the present invention It is illustrated for a live streaming management server.
The live streaming management server is the core of network direct broadcasting platform 12, and influences the key that user watches live-experience Equipment.The live streaming management server is mainly responsible for selection source direct broadcast server, the source direct broadcast service from multiple direct broadcast servers Device is any of multiple direct broadcast server, is mainly used for storing the live data streams that main broadcaster's terminal uploads.
During actually realizing, what which can identify to live streaming management server transmission carrying main broadcaster pushes away Stream request, main broadcaster mark can be used for one main broadcaster of unique mark, for example, main broadcaster mark can be main broadcaster's account etc..It should After live streaming management server receives plug-flow request, is identified according to the main broadcaster, obtain each of multiple direct broadcast server Direct broadcast server history viewing record corresponding with main broadcaster mark.Later, which watches according to the history Record, the communication quality parameter in multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal 11 and this is more Communication quality parameter between a direct broadcast server determines that a direct broadcast server is straight as source from multiple direct broadcast server Server is broadcast, main broadcaster's terminal 11 can push live data streams to the source direct broadcast server.It can be with about the specific implementation process Referring to following Fig. 3 the embodiment described.Wherein, which can include but is not limited to geographical location, time delay, packet loss Rate.
In embodiments of the present invention, it when selecting source direct broadcast server, not only allows for main broadcaster's terminal and is taken with each live streaming The communication quality being engaged between device, it is also contemplated that history viewing record and multiple direct broadcast servers on each direct broadcast server it Between communication quality, in this way, with being pointedly the quick plug-flow of certain user, and it is whole to reduce viewing user as much as possible End obtains the time delay of live data streams, to improve live streaming efficiency.
Further, which can be also used for selecting from multiple direct broadcast server at least one straight Server is broadcast as distribution direct broadcast server.Each distribution direct broadcast server is also any of multiple server, main It is used to pull live data streams from source direct broadcast server Hui Yuan.Its specific implementation process may refer to described in following Fig. 4 or Fig. 5 Embodiment.
It should be noted that in order to which the plug-flow and distribution speed, multiple direct broadcast server that promote live data streams are general Come using content distributing network (Content Delivery Network, the CDN) system being dispersed on each geographical location real It is existing.
Wherein, above-mentioned viewing user terminal 13 is mainly used for obtaining live data streams from direct broadcast server, and straight to this Multicast data stream is decoded, renders the processing such as broadcasting, so that user can watch live streaming.Wherein, viewing user is whole End 13 can be the equipment of such as mobile phone, tablet computer, computer etc, and it is not limited in the embodiment of the present invention.In addition, this The quantity of the viewing user terminal 13 is not defined in inventive embodiments, including 3 in attached drawing 1 with the live broadcast system sees It sees for user terminal 13 and illustrates.
In the concrete realization, viewing user terminal 13 is typically all and is obtained directly from the direct broadcast server closer apart from oneself Multicast data stream.Specifically, when viewing user terminal 13 needs to obtain live data streams, viewing user terminal 13 is managed to live streaming Server sends the request of viewing live streaming, and the IP address of the viewing user terminal 13 is generally carried in the request of viewing live streaming. After the live streaming management server receives the request of viewing live streaming, according to the IP address, from multiple direct broadcast server, choosing It selects and is in identical or immediate area direct broadcast server with the viewing user terminal 13, and by the address information of the direct broadcast server It is sent to the viewing user terminal 13, in order to which the viewing user terminal 13 obtains live streaming from the direct broadcast server distributed Data flow.
It should be noted that in practical application scene, main broadcaster's terminal 11 and viewing user equipment 13 are needed in success In the case of logging on in network direct broadcasting platform 12, just to 12 plug-flow of network direct broadcasting platform or live data streams can be obtained. In the concrete realization, main broadcaster's terminal 11 and viewing user equipment 13 can send to log in network direct broadcasting platform 12 respectively asks It asks, in one possible implementation, can be responsible for carrying out body by the live streaming management server in the network direct broadcasting platform 12 Part certification, wherein the specific implementation process about authentication may refer to the relevant technologies, and the embodiment of the present invention is not done this in detail It is thin to illustrate.In embodiments of the present invention, it is successfully to be stepped on by authentication with main broadcaster's terminal 11 and viewing user equipment 13 It is illustrated in land to network direct broadcasting platform 12.
Fig. 2 is a kind of structural schematic diagram of live streaming management server provided in an embodiment of the present invention.Live broadcast system in Fig. 1 It can be realized by live streaming management server shown in Fig. 2.The live streaming management server can be computer equipment, referring to figure 2, which includes at least one processor 201, communication bus 202, memory 203 and at least one communication interface 204。
Processor 201 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, application-specific integrated circuit (application-specific integrated circuit, ASIC) or one or more A integrated circuit for controlling the execution of application scheme program.
Communication bus 202 may include an access, and information is transmitted between said modules.
Memory 203 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other types of static storage device, random access memory (random access memory, RAM)) or can store The other types of dynamic memory of information and instruction, can also be Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, light Dish, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carry or Store with instruction or data structure form desired program code and can by any other medium of computer access, but It is without being limited thereto.Memory 203 can be individually present, and be connected with processor 201 by communication bus 202.Memory 203 It can be integrated with processor 201.
Communication interface 204, using the device of any transceiver one kind, for miscellaneous equipment or communication, such as Ethernet, wireless access network (RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the concrete realization, as a kind of embodiment, processor 201 may include one or more CPU, such as in Fig. 2 Shown in CPU0 and CPU1.
In the concrete realization, as a kind of embodiment, computer equipment may include multiple processors, such as institute in Fig. 2 The processor 201 and processor 205 shown.Each in these processors can be monokaryon (single-CPU) processing Device can also be multinuclear (multi-CPU) processor.Here processor can refer to one or more equipment, circuit, And/or the process cores for handling data (such as computer program instructions).
In the concrete realization, as a kind of embodiment, computer equipment can also include output equipment 206 and input equipment 207.Output equipment 206 and processor 201 communicate, and can show information in many ways.For example, output equipment 206 can be with It is liquid crystal display (liquid crystal display, LCD), Light-Emitting Diode (light emitting diode, LED) Show that equipment, cathode-ray tube (cathode ray tube, CRT) show equipment or projecting apparatus (projector) etc..Input Equipment 207 and processor 201 communicate, and can receive the input of user in many ways.For example, input equipment 207 can be mouse Mark, keyboard, touch panel device or sensing equipment etc..
Above-mentioned computer equipment can be an a general purpose computing device either dedicated computing machine equipment.Having During body is realized, computer equipment can be desktop computer, portable computer, network server, palm PC (Personal Digital Assistant, PDA), cell phone, tablet computer, wireless terminal device, communication equipment or embedded device. The unlimited type for determining computer equipment of the embodiment of the present invention.
Wherein, memory 203 is used to store the program code for executing application scheme, and is held by processor 201 to control Row.Processor 201 is for executing the program code 208 stored in memory 203.May include in program code 208 one or Multiple software modules.Processor 201 is broadcast live for executing the application code stored in memory 203 to realize in Fig. 1 The function of management server.
According to above description it is found that the live streaming management server needs to obtain history viewing record, therefore, this hair is being realized Before bright embodiment, need to determine history viewing record according to history live streaming situation.Herein, first the history will be watched and is remembered The storing process of record is introduced.In practical implementations, history viewing record can be stored in a centralized management equipment, For example, the centralized management equipment can be the live streaming management server, alternatively, the centralized management equipment may be one independent Equipment, it is not limited in the embodiment of the present invention.It is stored by the live streaming management server next, watching record with the history For illustrate:
According to actual demand difference, needs the content recorded different in history viewing record, may include specifically but It is not limited to following several situations:
The first situation:History viewing record includes the use watched the main broadcaster on direct broadcast server and identify corresponding content Amount amount.
As it was noted above, viewing user terminal is typically all to obtain live streaming number from the direct broadcast server closer apart from oneself It according to stream, that is to say, come in handy viewing live content in family on each direct broadcast server in multiple direct broadcast server.In order to It records and watches the number of users that the main broadcaster identifies corresponding content on each direct broadcast server, after each live streaming, live streaming Management server can be recorded as unit of main broadcaster identifies according to the format of such as the following table 1:
Table 1
Main broadcaster identifies The mark of direct broadcast server Watch number of users
Later, which summarizes the information of record.In one possible implementation, it is broadcast live Management server can identify with main broadcaster, the format of correspondence between the mark of direct broadcast server and number of users three into Row storage, to obtain history viewing record.Further, believe for the ease of subsequently obtaining the address of each direct broadcast server Breath, history viewing can also include the address information of each direct broadcast server in recording.It is specifically as follows such as the following table 2 institute Show:
Table 2
The second situation;History viewing record includes the institute watched the main broadcaster on direct broadcast server and identify corresponding content There is the history of user to beat reward full amount.
During live streaming, user can carry out the main broadcaster to beat reward according to the fancy grade for the content that main broadcaster is broadcast live. In one possible implementation, can by the live streaming management server in network direct broadcasting platform fight each other reward, delivery operation into Row management.Certainly, only it is to be illustrated for being managed by live streaming management server air exercise reward, delivery operation here, In another embodiment, can also be managed by the miscellaneous equipment in the network direct broadcasting platform, the embodiment of the present invention to this not It is construed as limiting.
Specifically, user can beat reward message, this dozen reward by watching user terminal to live streaming management server transmission Dozen reward amount, the channel information of direct broadcast band and the user can be carried in message to watch where the content of main broadcaster live streaming The mark of direct broadcast server.After the live streaming management server receives this dozen reward message, determined according to the channel information corresponding Main broadcaster identifies, and can be recorded according to the format of such as the following table 3:
Table 3
Main broadcaster identifies The mark of direct broadcast server User's beats reward amount
Later, which summarizes the information of record.Similarly, each straight for the ease of subsequently obtaining The address information of server is broadcast, the address information of each direct broadcast server can also be included in history viewing record.In this way, History viewing record after being summarized can be as shown in table 4 below:
Table 4
Certainly, in practical implementations, user beat reward be also possible in that case can basis for virtual objects etc. Certain conversion strategy by virtual objects conversion reward amount in dozen, and records this dozen reward amount, aggregation process, this Inventive embodiments do not limit this.
The third situation:History viewing record includes watching the main broadcaster on direct broadcast server to identify the every of corresponding content The history of one user beats reward full amount.
Similar with above-mentioned the second situation, during live streaming, live streaming management server can beat reward situation to user It is recorded and is summarized.Unlike above-mentioned the second situation, in this kind of realization method, live streaming management server remittance is Viewing main broadcaster identifies beating for each user of corresponding content and appreciates full amount on each direct broadcast server.In practical application scene In, the fancy grade for identifying corresponding content to main broadcaster according to the user is different, and the reward amount of beating of different user also differs.? In a kind of possible realization method, live streaming record management server, summarize after history viewing record can be 5 institute of following table Show:
Table 5
In practical implementations, not only it is contemplated that each user's beats reward full amount, it is also contemplated that each user etc. Grade or the rank of nobility, in that case, the history viewing record in may include on direct broadcast server watch main broadcaster mark it is corresponding Content and be superior to some rank multiple users beat reward full amount.For example, may include straight in history viewing record Broadcast on server watch main broadcaster identify corresponding content and be superior to multiple users of Pyatyi beat appreciate full amount.
In fact, due to user beat reward amount it is bigger, corresponding rank generally will be higher, therefore, the present invention implement Only include each user for watching the main broadcaster on direct broadcast server and identifying corresponding content with history viewing record in example History beat reward full amount for illustrate.
It should be noted that during actually realizing, which can only preserve the last or most Viewing user information after being closely broadcast live several times, wherein the viewing user information includes number of users, beats the information such as reward amount.Or Person is more according to this after the live streaming management server can also record the viewing user information after being repeatedly broadcast live recently Viewing user information after secondary live streaming is calculated, the history viewing record after being calculated, for example, can be by averaging Mode calculated, it is not limited in the embodiment of the present invention.
It should be noted that above-mentioned is only the format for schematically illustrating history viewing record, in another embodiment, History viewing record can also be stored in other ways, and it is not limited in the embodiment of the present invention.
Record is watched based on the history that above-described embodiment provides, next to direct broadcast server provided in an embodiment of the present invention Selection method describes in detail, referring to FIG. 3, the Fig. 3 is a kind of selection of direct broadcast server provided in an embodiment of the present invention Method flow diagram, this method can realize that this method includes by live broadcast system shown in FIG. 1 as above:
301:Management server is broadcast live and receives the plug-flow request that main broadcaster's terminal is sent, main broadcaster's mark is carried in plug-flow request Know.
As it was noted above, when main broadcaster's terminal needs to be broadcast live, it can be sent to live streaming management server and carry main broadcaster The plug-flow of mark is asked.
In addition, subsequently being determined between main broadcaster's terminal and multiple live streaming management servers for the ease of live streaming management server Communication quality can also carry the IP address of main broadcaster's terminal in plug-flow request in one possible implementation.
302:Management server is broadcast live to identify based on the main broadcaster, obtains each live streaming clothes in multiple direct broadcast server Device history corresponding with main broadcaster mark of being engaged in watches record.
As it was noted above, in one possible implementation, the live streaming management server it is pre-recorded and save with Main broadcaster identifies the history viewing record of corresponding each direct broadcast server.In that case, which can be with Directly each direct broadcast server history viewing record corresponding with main broadcaster mark is obtained from local.
In the concrete realization, according to actual demand difference, the content that history viewing records in recording may be also different, should In the content such as above-described embodiment that history viewing record specifically includes shown in table 2, table 4 or table 5.
303:Management server is broadcast live and is based on each direct broadcast service in history viewing record, multiple direct broadcast server The communication quality parameter between communication quality parameter and multiple direct broadcast server between device and main broadcaster's terminal is more from this Determine a direct broadcast server as source direct broadcast server in a direct broadcast server.
Specifically, which may include the several realization processes of following 3031-3033:
3031:Management server is broadcast live based on history viewing record, determines and meets in advance from multiple direct broadcast server If N number of direct broadcast server of matching strategy, which is the quantity for the direct broadcast server for meeting the preset matching strategy.
The preset matching strategy, which can be preset, to be configured.It is different according to the preset matching strategy, management server is broadcast live It is watched and being recorded based on the history, the N number of direct broadcast server for meeting preset matching strategy is determined from multiple direct broadcast server Method is also different, can specifically include following several possible realization methods:
The first situation:History viewing record includes the use watched the main broadcaster on direct broadcast server and identify corresponding content Amount amount, which determines from multiple direct broadcast server watches the user that the main broadcaster identifies corresponding content The direct broadcast server that quantity is greater than or equal to the first predetermined threshold value is the direct broadcast server for meeting the preset matching strategy.
In practical application scene, according to the user for watching the main broadcaster on each direct broadcast server and identifying corresponding content Quantity, it may be determined that the main broadcaster identifies pouplarity of the corresponding content in the direct broadcast server.Number of users is more, says The user of bright viewing is more.Therefore, in order to enable most of user can quick look at live streaming, the live streaming management server from Determine that watching the main broadcaster identifies the number of users of corresponding content more than or equal to the first default threshold in multiple direct broadcast server The direct broadcast server of value is the direct broadcast server for meeting the preset matching strategy.
Wherein, which can pre-set, and e.g., which can be 500.It please refers to above-mentioned Table 2, if the main broadcaster is identified as A, it may be determined that and in multiple direct broadcast server, watches the main broadcaster and identify the corresponding contents of A Direct broadcast server of the number of users more than or equal to 500 is respectively direct broadcast server 1, direct broadcast server 2,4 and of direct broadcast server Direct broadcast server 5.Therefore, live streaming management server determines the direct broadcast server 1, direct broadcast server 2, direct broadcast server 4 and straight It is the direct broadcast server for meeting the preset matching strategy to broadcast server 5.
It is noted that live streaming management server selects history to watch main broadcaster mark from multiple direct broadcast server The more direct broadcast server of the number of users of corresponding content, and using the direct broadcast server selected as the target of plug-flow, in this way, It can ensure that most viewing user terminal can get live data streams as quickly as possible.
The second situation:History viewing record includes the institute watched the main broadcaster on direct broadcast server and identify corresponding content There is the history of user to beat reward full amount, which determines from multiple direct broadcast server and watch main broadcaster mark Know all users of corresponding content history beat reward full amount be greater than or equal to the second predetermined threshold value direct broadcast server be full The direct broadcast server of the foot preset matching strategy.
It can be appreciated that the history for watching all users that the main broadcaster identifies corresponding content on direct broadcast server beats reward total value Degree is higher, and the user on the general remark direct broadcast server is more important, that is, needs to ensure the user on the direct broadcast server as possible The time delay for watching live streaming is shorter.Therefore, live streaming management server determines from multiple direct broadcast server and watches main broadcaster mark It is to meet that the history of all users of corresponding content, which beats reward full amount to be greater than or equal to the direct broadcast server of the second predetermined threshold value, The direct broadcast server of the preset matching strategy.
Wherein, which can pre-set, and e.g., which can be 2000 yuan.It please refers to Above-mentioned table 4 can then determine in multiple direct broadcast server if the main broadcaster is identified as A, and it is corresponding to watch main broadcaster mark A The history of all users of content beat reward full amount more than or equal to 2000 direct broadcast server be respectively direct broadcast server 1, it is straight Broadcast server 2 and direct broadcast server 3.Therefore, which by the direct broadcast server 1, direct broadcast server 2 and is broadcast live Server 3 is determined as meeting the direct broadcast server of the preset matching strategy.
It is noted that in this kind of realization method, live streaming management server from multiple direct broadcast servers, see by selection See the main broadcaster identify all users of corresponding content history beat reward full amount be greater than or equal to the second predetermined threshold value live streaming Server, and selected direct broadcast server is determined as plug-flow target so that the user on the direct broadcast server can be quick See live streaming.
The third situation:History viewing record includes watching the main broadcaster on direct broadcast server to identify the every of corresponding content The history of one user beats reward full amount, which determines from multiple direct broadcast server and watch the main broadcaster Identifying the history of the user of corresponding content, to beat the corresponding direct broadcast server of user of M before reward full amount sequence be that meet this default The direct broadcast server of matching strategy.
In practical application scene, the history of individual user beats that reward full amount is larger, for example, full amount is appreciated in beating for certain user More than ten thousand yuan.In order to enable the certain customers can quick look at live streaming, in this kind of realization method, management server is broadcast live From multiple direct broadcast server, before selecting the history for watching the user that the main broadcaster identifies corresponding content to play reward full amount sequence The corresponding direct broadcast server of user of M, and the live streaming that the direct broadcast server of selection is determined as meeting the preset matching strategy takes Business device.Wherein, which can be the natural number more than 1.
If for example, the main broadcaster is identified as A, the value of M is 3, then please refers to above-mentioned table 5, it may be determined that multiple live streaming clothes It is engaged in device, the history for watching the user that the main broadcaster identifies the corresponding contents of A plays the corresponding live streaming of user of reward full amount sequence preceding 3 Server is respectively direct broadcast server 4, direct broadcast server 3 and direct broadcast server 1.Therefore, which can be true It is the direct broadcast server for meeting the preset matching strategy to determine direct broadcast server 4, direct broadcast server 3 and direct broadcast server 1.
It is noted that above-mentioned live streaming management server, which from multiple direct broadcast server, determines, watches main broadcaster mark The history for knowing the user of corresponding content beats the corresponding direct broadcast server of user of the preceding M of reward full amount sequence to meet this default Direct broadcast server with strategy can so ensure that live streaming can be quick looked at by beating the larger user of reward amount.
It should be noted that above-mentioned live streaming management server is based on history viewing record, from multiple direct broadcast server The method that middle determination meets N number of direct broadcast server of preset matching strategy is merely exemplary, in another embodiment, live streaming pipe Managing server can also use other manner based on history viewing record, determine to meet from multiple direct broadcast server and preset The method of N number of direct broadcast server of matching strategy.
Such as, in one possible implementation, when the history viewing record include above-mentioned three kinds of situations be related to it is more When a dimension, for each direct broadcast server in multiple direct broadcast server, which can determine that this is straight The sum of products between the numerical value counted according to multiple dimension on server and the weight of corresponding dimension is broadcast, it is straight to obtain this Broadcast the total score of server.Later, total score is greater than or equal to the by live streaming management server from multiple direct broadcast server The direct broadcast server of three predetermined threshold values is determined as meeting the direct broadcast server of preset matching strategy.
Wherein, which can pre-set.For example, table 2, table 4 and table 5 are please referred to, for multiple straight It broadcasts for the direct broadcast server 1 in server, if the corresponding weight of number of users is a, the history of all users beats reward total value It is b to spend corresponding weight, and it is c that the history of each user, which beats the corresponding weight of reward full amount, then can determine the direct broadcast server 1 Must be divided into 1200*a+5000*b+1200*c.According to the algorithm, it may be determined that the total score of each direct broadcast server.Live streaming The direct broadcast server that total score in multiple direct broadcast server can be greater than or equal to third predetermined threshold value by management server is true It is set to the direct broadcast server for meeting preset matching strategy.
In fact, according to above description it can be appreciated that N number of direct broadcast server is the direct broadcast server for needing plug-flow. In practical implementations, viewing user terminal knows that the time delay of live data streams includes two sections, and one section is that main broadcaster's terminal is broadcast live with source Time delay between server, another section be source direct broadcast server and distribution direct broadcast server between time delay.Therefore, how to select Source direct broadcast server so that on N number of direct broadcast server with can more quickly watch per family live streaming become emphasis, tool Body process is seen below.
3032:Management server is broadcast live, record is watched according to the history, determines the weight of N number of direct broadcast server.
Wherein, the content for including according to history viewing record is different, determines the side of the weight of N number of direct broadcast server Formula is also different, next, including watching the main broadcaster on direct broadcast server to identify corresponding content with history viewing record For number of users, to determining that the mode of the weight of N number of direct broadcast server is introduced.
The live streaming management server can determine corresponding power according to the number of number of users in each direct broadcast server Weight.For example, the live streaming management server can determine the total number of users amount in multiple direct broadcast server, then, it is determined that each Number of users accounts for the ratio of the total number of users amount in direct broadcast server, and is the power of corresponding direct broadcast server by the ratio-dependent Weight.
It should be noted that the weight mode of above-mentioned determination N number of direct broadcast server is merely exemplary, in another implementation In example, it can also be determined using other manner.For example, can be correspondingly arranged in advance for different user quantitative range different Weight, so that live streaming management server can be according to the number of users model residing for number of users in each direct broadcast server It encloses, determines the corresponding preset weight of the number of users range, it is not limited in the embodiment of the present invention.
When the content that the history viewing record on each direct broadcast server includes is that history beats reward amount, this can be gone through History beats reward amount and converts according to certain scaling method, and the power of each direct broadcast server is determined according to the numerical value after conversion Weight.
In practical implementations, the embodiment of the present invention is not watched live streaming management server according to the history and being recorded, and determines the N The specific implementation of the weight of a direct broadcast server is defined.
3033:Management server is broadcast live, source direct broadcast server is selected according to the weight of N number of direct broadcast server.
In the concrete realization, which may include the possible realization method of the following two kinds:
First way:Management server is broadcast live according to the weight of N number of direct broadcast server, main broadcaster's terminal and this is N number of The communication quality parameter between communication quality parameter and N number of direct broadcast server between direct broadcast server, from N number of live streaming Determine a direct broadcast server as the source direct broadcast server in server.
It that is to say, in this kind of realization method, live streaming management server selects a live streaming from N number of direct broadcast server For server as source direct broadcast server, specific implementation process may include following (1)-(3) several steps:
(1) for each direct broadcast server in N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal are determined Between communication quality parameter, and determine in the direct broadcast server and N number of direct broadcast server in addition to the direct broadcast server Each direct broadcast server between communication quality parameter.
In order to make it easy to understand, including next Shanghai direct broadcast server, Nanjing direct broadcast service with N number of direct broadcast server Device, Suzhou direct broadcast server, Yangzhou direct broadcast server, and the communication quality parameter be time delay for be illustrated.
For each direct broadcast server in N number of direct broadcast server, for example, for Shanghai direct broadcast server, the live streaming Management server determines time delay T1, the Shanghai direct broadcast server and the south between the Shanghai direct broadcast server and main broadcaster's terminal Time delay T2, the Shanghai direct broadcast server between the direct broadcast server of capital and the time delay T3 between the Suzhou direct broadcast server and Time delay T4 between the Shanghai direct broadcast server and Yangzhou direct broadcast server.
(2) joined according to the communication quality between the weight of N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal Between each direct broadcast server in number and the direct broadcast server and N number of direct broadcast server in addition to the direct broadcast server Communication quality parameter determines the corresponding integrated communication mass parameter of the direct broadcast server.
If the power of Shanghai direct broadcast server, Nanjing direct broadcast server, Suzhou direct broadcast server and Yangzhou direct broadcast server It is respectively S1, S2, S3 and S4 again.The synthesis time delay that the Shanghai direct broadcast server can then be obtained is T1*S1+T2*S2+T3*S3+ T4*S4。
According to above-mentioned realization process, it can determine that the Nanjing direct broadcast server, Suzhou direct broadcast server and Yangzhou are straight respectively Broadcast the synthesis time delay of server.
(3) from N number of direct broadcast server, the minimum corresponding direct broadcast server of integrated communication mass parameter is determined as The source direct broadcast server.
Integrated communication mass parameter is smaller, illustrates that corresponding direct broadcast server is opposite to the time delay of N number of direct broadcast server It is smaller.Therefore, live streaming management server selects minimum integrated communication matter from determining multiple integrated communication mass parameters Parameter is measured, and the corresponding direct broadcast server of integrated communication mass parameter of the minimum is determined as the source direct broadcast server.For example, Live streaming management server select from N number of direct broadcast server it is minimum integrate the corresponding direct broadcast server of time delay, and by the live streaming Server is determined as the source direct broadcast server.
Above by the integrated communication parameter for determining each direct broadcast server in N number of direct broadcast server, and according to each The integrated communication parameter of direct broadcast server determines a direct broadcast server as source direct broadcast service from N number of direct broadcast server Device, in this way, reducing the operand of live streaming management server.
The second way:Be broadcast live management server according to the weight of N number of direct broadcast server, main broadcaster's terminal with it is multiple The communication quality parameter between communication quality parameter and multiple direct broadcast server between direct broadcast server, from multiple straight It broadcasts and determines a direct broadcast server as the source direct broadcast server in server.
Unlike above-mentioned first way, this kind is achieved in that from multiple direct broadcast server, selection one is straight Server is broadcast as the source direct broadcast server, at this point, the source direct broadcast server may be straight for some in N number of direct broadcast server Broadcast server, it is also possible to some other direct broadcast servers in multiple direct broadcast server in addition to N number of direct broadcast server.
It should be noted that in this kind of realization method, for each direct broadcast server in multiple direct broadcast server, Management server is broadcast live it needs to be determined that communication quality parameter between the direct broadcast server and main broadcaster's terminal, and N number of straight with this The communication quality parameter between each direct broadcast server in server is broadcast, then, according to the weight of N number of direct broadcast server, is determined The integrated communication parameter of the direct broadcast server.Later, the live streaming management server is from multiple direct broadcast server, by minimum The corresponding direct broadcast server of integrated communication mass parameter is determined as the source direct broadcast server, specifically may refer to the first above-mentioned reality Existing mode.
Above by the integrated communication parameter of each direct broadcast server in the multiple direct broadcast server of determination, and according to each The integrated communication parameter of direct broadcast server determines a direct broadcast server as source direct broadcast service from multiple direct broadcast server Device, in this way, improving the accuracy of determining source direct broadcast server.
304:Management server is broadcast live and creates direct broadcast band.
305:Management server is broadcast live and sends plug-flow response to main broadcaster's terminal, live streaming clothes in the source are carried in plug-flow response The channel information of the address information and the direct broadcast band of business device.
In one possible implementation, which can be believed based on the address of the source direct broadcast server The channel information of breath and the direct broadcast band generates uniform resource locator (Uniform Resource Locator, URL), and By the plug-flow respond carry the URL, to realize by the plug-flow response carry the source direct broadcast server address information and The channel information of the direct broadcast band.
Further, after which receives plug-flow response, the source direct broadcast service is obtained from plug-flow response The address information of device and the channel information of the direct broadcast band, and the address information based on the source direct broadcast server and the direct broadcast band Channel information, live data streams are sent to source direct broadcast server, to store the live data by the source direct broadcast server Stream.
It in the concrete realization, can also be to the live streaming management after which successfully stores the live data streams Server sends the data transmission success message for carrying channel information, to notify the live streaming management server successfully to store live streaming number According to stream, for example, the source direct broadcast server can take after first fragment for being properly received live data streams to the live streaming management Business device sends the data transmission success message for carrying channel information.
Live streaming management server receives the data transmission success message, can continue actively to distribute to other direct broadcast servers Live data streams obtain live data streams in order to watch user terminal from other direct broadcast servers.About live streaming management clothes After business device receives the data transmission success message, the realization process that live data streams are actively distributed to other direct broadcast servers is asked Referring to following Fig. 4 the embodiment described.
In embodiments of the present invention, live streaming management server receives the plug-flow that the carrying main broadcaster that main broadcaster's terminal is sent identifies and asks After asking, the history viewing record corresponding with main broadcaster mark of each direct broadcast server in multiple direct broadcast servers is obtained.Later, directly Broadcast management server according to history viewing record, in multiple direct broadcast server it is each between direct broadcast server and main broadcaster's terminal Communication quality parameter, communication quality parameter these three conditions between multiple direct broadcast server, from multiple direct broadcast servers One direct broadcast server of middle determination is as source direct broadcast server.In this way, it is the quick plug-flow of certain customers that can have pointedly, And reduce the time delay that viewing user terminal obtains live data streams as much as possible, to improve live streaming efficiency.
As it was noted above, when the live streaming management server receives the data transmission success message, it can also be actively to it He distributes live data streams by direct broadcast server, will describe in detail in detail to the realization process here.Referring to FIG. 4, the Fig. 4 It is a kind of flow chart of the distribution method of live data streams provided in an embodiment of the present invention, this method can also pass through such as figure 1 above Shown in live broadcast system realize that this method includes mainly following several realization steps:
401:Source direct broadcast server to live streaming management server transmission data transmission success message, the live streaming management server The data transmission success message that reception source direct broadcast server is sent carries the frequency of the direct broadcast band in the data transmission success message Road information.
After the live streaming management server receives the data transmission success message that the source direct broadcast server is sent, determine that source is straight It broadcasts server to have succeeded the live data streams of storage, at this point it is possible to carry out further actively point the live data streams Hair.
402:The live streaming management server sends to N number of direct broadcast server and downloads instruction, and download instruction includes this The address information of source direct broadcast server and the channel information of the direct broadcast band.
According to foregoing description, which is the direct broadcast server for needing plug-flow, therefore, live streaming management clothes Business device sends to N number of direct broadcast server and downloads instruction, after receiving download instruction in order to N number of direct broadcast server, root The channel information of the address information and the direct broadcast band of the source direct broadcast server carried in being indicated according to the download is broadcast live from the source and takes It is downloaded in business device and stores live data streams.
It should be noted that as described above, in practical implementations, which may be N number of live streaming clothes A direct broadcast server being engaged in device, in that case, which can remove into N number of direct broadcast server Each direct broadcast server except the source direct broadcast server sends download instruction.
Further, for viewing user terminal, when viewing user terminal wants viewing live streaming, viewing user's end The request that viewing live streaming is sent to live streaming management server is held, the request of viewing live streaming includes the IP of viewing user terminal The channel information of location and direct broadcast band.The live streaming management server selects and the sight according to the IP address of the viewing user terminal It sees a nearest direct broadcast server of user terminal, and the address information of direct broadcast server is sent to viewing user terminal.It sees See that user terminal sends content acquisition request to according to the address information to the direct broadcast server, which includes The channel information of direct broadcast band.After the direct broadcast server receives the content acquisition request, according to the direct broadcast band information, obtain Corresponding live data streams, and the live data streams are sent to the viewing user terminal.Viewing user terminal receives the live streaming After data flow, which is decoded, renders the processing such as broadcasting, in this way, user may be viewed by being broadcast live.
It should be noted that be actively broadcast live to N number of direct broadcast server distribution with the live streaming management server here It is illustrated for data flow, in another embodiment, which can also watch according to history and record, from this Select to meet at least one direct broadcast server of preset matching strategy in multiple direct broadcast servers as distribution direct broadcast server, Specifically refer to following Fig. 5 the embodiment described.
In embodiments of the present invention, live streaming management server receives the plug-flow that the carrying main broadcaster that main broadcaster's terminal is sent identifies and asks After asking, the history viewing record corresponding with main broadcaster mark of each direct broadcast server in multiple direct broadcast servers is obtained.Later, directly Broadcast management server according to history viewing record, in multiple direct broadcast server it is each between direct broadcast server and main broadcaster's terminal Communication quality parameter, communication quality parameter these three conditions between multiple direct broadcast server, from multiple direct broadcast servers One direct broadcast server of middle determination is as source direct broadcast server.In this way, it is the quick plug-flow of certain customers that can have pointedly, And reduce the time delay that viewing user terminal obtains live data streams as much as possible, to improve live streaming efficiency.
In practical implementations, live streaming management server can also be watched according to history and be recorded, from multiple direct broadcast servers At least one direct broadcast server for meeting preset matching strategy is selected, and using the direct broadcast server as distribution direct broadcast server. For this purpose, referring to FIG. 5, the Fig. 5 is the stream of the selection method of another direct broadcast server shown according to an exemplary embodiment Cheng Tu, this method for realizing from multiple direct broadcast servers select at least one direct broadcast server as distribution direct broadcast server, This method can also realize that this method includes following several realization steps by live broadcast system shown in FIG. 1 as above:
501:The live streaming management server receives the data transmission success message that source direct broadcast server is sent, the data transmission The channel information of direct broadcast band is carried in success message, which is receiving main broadcaster by the live streaming management server It selects to obtain from multiple direct broadcast server after the plug-flow request that terminal is sent, and for storing the straight of main broadcaster's terminal transmission Multicast data stream, the direct broadcast band are established by the live streaming management server after selecting the source direct broadcast server.
In this kind of realization method, the selection mode of the source direct broadcast server can not be defined.For example, in one kind In possible realization method, which can be according to nearby principle, and selection should from multiple direct broadcast server Source direct broadcast server.Specifically, which can be according to each direct broadcast server in multiple direct broadcast server With the communication quality parameter between main broadcaster's terminal, the corresponding direct broadcast server of minimal communications mass parameter is determined, and this is straight It broadcasts server and is determined as the source direct broadcast server.
Alternatively, in alternatively possible realization method, which can also be according to real described in above-mentioned Fig. 3 The implementation method for applying example, according to each direct broadcast server and the main broadcaster in history viewing record, multiple direct broadcast server The communication quality parameter between communication quality parameter and multiple direct broadcast server between terminal, from multiple direct broadcast service Determine a direct broadcast server as source direct broadcast server in device.
502:The channel information of the live streaming management server based on the direct broadcast band, between main broadcaster's mark and channel information Correspondence in obtain corresponding main broadcaster mark, and the correspondence between the main broadcaster of storage mark and history viewing record In, corresponding history viewing record is obtained, the correspondence between main broadcaster mark and the channel information of the direct broadcast band is by this Live streaming management server, which creates to store after the direct broadcast band, to be obtained.
Actually realize during, when be broadcast live management server create direct broadcast band after, can preserve the main broadcaster mark with Correspondence between the channel information of the direct broadcast band.In this way, when live streaming management server receives source direct broadcast server hair When the data transmission success message of the carrying channel information sent, can be identified from the main broadcaster with the channel information of the direct broadcast band it Between correspondence in, obtain the channel information corresponding main broadcaster mark.Later, which marks according to the main broadcaster Know, in the correspondence between main broadcaster's mark and history viewing record, obtains corresponding history viewing record.
503:The live streaming management server is based on history viewing record, and selection is in addition to this from multiple direct broadcast server Meet at least one direct broadcast server of the preset matching strategy except the direct broadcast server of source as distribution direct broadcast server.
It should be noted that live streaming management server is based on history viewing record, selected from multiple direct broadcast server The realization process for selecting at least one direct broadcast server for meeting the preset matching strategy other than the source direct broadcast server can be with Referring to history viewing record is based in above-mentioned Fig. 3 embodiments, select to meet preset matching plan from multiple direct broadcast server The realization process of N number of direct broadcast server slightly, is not repeated herein and repeats.
It should be noted that recording due to being watched according to history, select to meet preset matching from multiple direct broadcast servers The method of the direct broadcast server of strategy is identical, therefore, when live streaming management server is according to the realization side of embodiment described in above-mentioned Fig. 3 It is identical as the direct broadcast server possibility selected in the method when method selects the source direct broadcast server, therefore, in above-mentioned realization It in the process, can after live streaming management server selects the source direct broadcast server according to the implementation method of embodiment described in above-mentioned Fig. 3 Directly to distribute live data streams to the N number of direct broadcast server selected in this process, recorded without being watched according to history To determine.
Further, live streaming number is obtained from the source direct broadcast server for the ease of at least one distribution direct broadcast server According to stream, which can also send at least one distribution direct broadcast server and download instruction, download instruction It include the channel information of the address information and the direct broadcast band of the source direct broadcast server.In this way, at least one direct broadcast service Device can be according to the channel information of the address information and the direct broadcast band of the source direct broadcast server, under in the source direct broadcast server The corresponding live data streams of the channel information are carried, to realize the distribution of live data streams.
In embodiments of the present invention, during being distributed to live data streams, live streaming management server is according to going through History viewing record, selects at least one direct broadcast server for meeting preset matching strategy as distribution from multiple direct broadcast servers Direct broadcast server, and actively distribute live data streams at least one distribution direct broadcast server.In this way, increasing live data The specific aim of stream distribution improves live streaming efficiency.
Referring to Fig. 6 A, Fig. 6 A are a kind of structural representations of the selection device of direct broadcast server provided in an embodiment of the present invention Figure, the device are applied in network direct broadcasting platform, which includes live streaming management server and multiple direct broadcast services Device, the device include:
Receiving unit 610, for executing the step 301 in above-mentioned Fig. 3 embodiments.
Acquiring unit 620, for executing the step 302 in above-mentioned Fig. 3 embodiments.
Determination unit 630, for executing the step 303 in above-mentioned Fig. 3 embodiments.
Optionally, Fig. 6 B are please referred to, which further includes:
Transmission unit 640 is created, for executing step 304 and step 305 in above-mentioned Fig. 3 embodiments.
Optionally, the determination unit 630 is additionally operable to execute the step 3031-3033 in above-mentioned Fig. 3 embodiments.
Optionally, the determination unit 630 is additionally operable to execute step (1)-step (3) in above-mentioned Fig. 3 embodiments.
Optionally, the determination unit 630 is additionally operable to execute the first situation of step 3031 in above-mentioned Fig. 3 embodiments, Two kinds of situations and the third situation.
Optionally, the receiving unit 610 is additionally operable to execute the step 401 in above-mentioned Fig. 4 embodiments.
The device further includes transmission unit 650, which is used to execute the step in above-mentioned Fig. 4 embodiments 402。
In embodiments of the present invention, live streaming management server receives the plug-flow that the carrying main broadcaster that main broadcaster's terminal is sent identifies and asks After asking, the history viewing record corresponding with main broadcaster mark of each direct broadcast server in multiple direct broadcast servers is obtained.Later, directly Broadcast management server according to history viewing record, in multiple direct broadcast server it is each between direct broadcast server and main broadcaster's terminal Communication quality parameter, communication quality parameter these three conditions between multiple direct broadcast server, from multiple direct broadcast servers One direct broadcast server of middle determination is as source direct broadcast server.In this way, it is the quick plug-flow of certain customers that can have pointedly, And reduce the time delay that viewing user terminal obtains live data streams as much as possible, to improve live streaming efficiency.
In embodiments of the present invention, the selection device of direct broadcast server is presented in the form of functional unit.Here " unit " can refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), electricity Road, executes the processor and memory of one or more softwares or firmware program, integrated logic circuit and/or other can carry For the device of above-mentioned function.In a simple embodiment, those skilled in the art is contemplated that the choosing of direct broadcast server It selects device and form shown in Fig. 2 may be used.Wherein, receiving unit 610, acquiring unit 620, determination unit 630, establishment are sent Unit 640 and transmission unit 650 can be realized by the processor and memory of Fig. 2, specifically, can be by by processor It is realized to execute the program code stored in memory.
The embodiment of the present invention additionally provides a kind of computer storage media, and above-mentioned Fig. 3, Fig. 4 and Fig. 5 institute is realized for storing The computer software instructions of the direct broadcast server selection device shown, it includes for executing the journey designed by above method embodiment Sequence.By executing the program of storage, may be implemented to obtain the business datum needed for development and application.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, necessary to action and module not necessarily the application involved by embodiment described in this description.
Although the application is described in conjunction with each embodiment herein, however, implementing the application claimed In the process, those skilled in the art are by checking attached drawing, disclosure and the appended claims, it will be appreciated that and realize public affairs Open other variations of embodiment.In the claims, " comprising " (comprising) word is not excluded for other components or step Suddenly, "a" or "an" is not excluded for multiple situations.What single processor or other units may be implemented to enumerate in claim Several functions.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these measures cannot group Good effect is generated altogether.
It will be understood by those skilled in the art that embodiments herein can be provided as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the application The form of embodiment.Moreover, the application can be used in one or more wherein include computer usable program code calculating The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication systems of Internet or other.
The application be with reference to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each flow that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer program instructions can be provided To all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the application is described in conjunction with specific features and embodiment, it is clear that, do not departing from this Shen In the case of spirit and scope please, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute The exemplary illustration for the application that attached claim is defined, and be considered as covered within the scope of the application arbitrary and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art the application can be carried out various modification and variations without It is detached from spirit and scope.If in this way, these modifications and variations of the application belong to the application claim and its Within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.

Claims (19)

1. a kind of selection method of direct broadcast server, which is characterized in that be applied in network direct broadcasting platform, the network direct broadcasting is flat Platform includes that management server and multiple direct broadcast servers is broadcast live, the method includes:
The live streaming management server receives the plug-flow request that main broadcaster's terminal is sent, and main broadcaster's mark is carried in the plug-flow request;
The live streaming management server is identified based on the main broadcaster, obtains each live streaming clothes in the multiple direct broadcast server Device history corresponding with main broadcaster mark of being engaged in watches record;
The live streaming management server is based on each direct broadcast service in history viewing record, the multiple direct broadcast server The communication quality parameter between communication quality parameter and the multiple direct broadcast server between device and main broadcaster's terminal, from Determine a direct broadcast server as source direct broadcast server in the multiple direct broadcast server.
2. the method as described in claim 1, which is characterized in that the method further includes:
The live streaming management server creates direct broadcast band, and sends plug-flow response, the plug-flow response to main broadcaster's terminal The channel information of the middle address information and the direct broadcast band for carrying the source direct broadcast server.
3. method as claimed in claim 1 or 2, which is characterized in that the live streaming management server is watched based on the history Record, the communication quality parameter in the multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal and Communication quality parameter between the multiple direct broadcast server determines a direct broadcast server from the multiple direct broadcast server As source direct broadcast server, including:
The live streaming management server is based on history viewing record, determines that satisfaction is default from the multiple direct broadcast server N number of direct broadcast server of matching strategy, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
The live streaming management server is watched according to the history and being recorded, and determines the weight of N number of direct broadcast server;
The live streaming management server takes according to weight, the main broadcaster's terminal of N number of direct broadcast server with N number of live streaming The communication quality parameter between communication quality parameter and N number of direct broadcast server between business device, takes from N number of live streaming It is engaged in determining a direct broadcast server as the source direct broadcast server in device.
4. method as claimed in claim 3, which is characterized in that the live streaming management server is according to N number of direct broadcast service Communication quality parameter between the weight of device, main broadcaster's terminal and N number of direct broadcast server and N number of direct broadcast service Communication quality parameter between device determines that clothes are broadcast live as the source in a direct broadcast server from N number of direct broadcast server Business device, including:
For each direct broadcast server in N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal are determined Between communication quality parameter, and determine the direct broadcast server and remove the direct broadcast service in N number of direct broadcast server The communication quality parameter between each direct broadcast server except device;
According to the communication quality ginseng between the weight of N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal The several and described direct broadcast server and each direct broadcast server in N number of direct broadcast server in addition to the direct broadcast server Between communication quality parameter, determine the corresponding integrated communication mass parameter of the direct broadcast server;
From N number of direct broadcast server, the minimum corresponding direct broadcast server of integrated communication mass parameter is determined as described Source direct broadcast server.
5. method as claimed in claim 1 or 2, which is characterized in that the live streaming management server is watched based on the history Record, the communication quality parameter in the multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal and Communication quality parameter between the multiple direct broadcast server determines a direct broadcast server from the multiple direct broadcast server As source direct broadcast server, including:
The live streaming management server is based on history viewing record, determines that satisfaction is default from the multiple direct broadcast server N number of direct broadcast server of matching strategy, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
The live streaming management server is watched according to the history and being recorded, and determines the weight of N number of direct broadcast server;
It is described that weight, the main broadcaster terminal and the multiple live streaming of the management server according to N number of direct broadcast server is broadcast live Communication quality ginseng between communication quality parameter and the multiple direct broadcast server between any direct broadcast server of server Number determines a direct broadcast server as the source direct broadcast server from the multiple direct broadcast server.
6. the method as described in claim 3-5 is any, which is characterized in that the history viewing record includes on direct broadcast server Watch the number of users that the main broadcaster identifies corresponding content;
The live streaming management server is based on history viewing record, determines that satisfaction is default from the multiple direct broadcast server N number of direct broadcast server of matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies corresponding content from the multiple direct broadcast server The direct broadcast server that number of users is greater than or equal to the first predetermined threshold value is the direct broadcast server for meeting the preset matching strategy.
7. the method as described in claim 3-5 is any, which is characterized in that the history viewing record includes on direct broadcast server The history for watching all users that the main broadcaster identifies corresponding content beats reward full amount;
The live streaming management server is based on history viewing record, determines that satisfaction is default from the multiple direct broadcast server N number of direct broadcast server of matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies corresponding content from the multiple direct broadcast server It is to meet the preset matching that the history of all users, which beats reward full amount to be greater than or equal to the direct broadcast server of the second predetermined threshold value, The direct broadcast server of strategy.
8. the method as described in claim 3-5 is any, which is characterized in that the history viewing record includes on direct broadcast server The history for watching each user that the main broadcaster identifies corresponding content beats reward full amount;
The live streaming management server is based on history viewing record, and selection satisfaction is default from the multiple direct broadcast server N number of direct broadcast server of matching strategy, including:
The live streaming management server determines that watching the main broadcaster identifies corresponding content from the multiple direct broadcast server The corresponding direct broadcast server of user that the history of user beats the preceding M of reward full amount sequence is the live streaming for meeting the preset matching strategy Server.
9. the method as described in claim 3-8 is any, which is characterized in that the live streaming management server is based on the conception of history It sees record, after determination meets N number of direct broadcast server of preset matching strategy in the multiple direct broadcast server, further includes:
The live streaming management server receives the data transmission success message that the source direct broadcast server is sent, the data transmission The channel information of the direct broadcast band is carried in success message;
The live streaming management server sends to N number of direct broadcast server and downloads instruction, and the download instruction includes described The channel information of the address information of source direct broadcast server and the direct broadcast band.
10. a kind of selection device of direct broadcast server, which is characterized in that described device is deployed in the live streaming in network direct broadcasting platform In management server, the network direct broadcasting platform further includes multiple direct broadcast servers, and described device includes:
Receiving unit, the plug-flow request for receiving the transmission of main broadcaster's terminal carry main broadcaster's mark in the plug-flow request;
Acquiring unit obtains each direct broadcast server in the multiple direct broadcast server for being identified based on the main broadcaster History viewing record corresponding with main broadcaster mark;
Determination unit, for based on history viewing record, in the multiple direct broadcast server each direct broadcast server with The communication quality parameter between communication quality parameter and the multiple direct broadcast server between main broadcaster's terminal, from described Determine a direct broadcast server as source direct broadcast server in multiple direct broadcast servers.
11. device as claimed in claim 10, which is characterized in that described device further includes:
Transmission unit is created, plug-flow response is sent for creating direct broadcast band, and to main broadcaster's terminal, in the plug-flow response Carry the channel information of the address information and the direct broadcast band of the source direct broadcast server.
12. the device as described in claim 10 or 11, which is characterized in that the determination unit is used to watch based on the history Record, the communication quality parameter in the multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal and Communication quality parameter between the multiple direct broadcast server determines a direct broadcast server from the multiple direct broadcast server As source direct broadcast server, specially:
It is watched and being recorded based on the history, the N number of live streaming for meeting preset matching strategy is determined from the multiple direct broadcast server Server, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
It is watched and being recorded according to the history, determine the weight of N number of direct broadcast server;
According to the communication quality between the weight of N number of direct broadcast server, main broadcaster's terminal and N number of direct broadcast server Communication quality parameter between parameter and N number of direct broadcast server determines a live streaming from N number of direct broadcast server Server is as the source direct broadcast server.
13. device as claimed in claim 12, which is characterized in that the determination unit is used for according to N number of direct broadcast service Communication quality parameter between the weight of device, main broadcaster's terminal and N number of direct broadcast server and N number of direct broadcast service Communication quality parameter between device determines that clothes are broadcast live as the source in a direct broadcast server from N number of direct broadcast server Business device, specially:
For each direct broadcast server in N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal are determined Between communication quality parameter, and determine the direct broadcast server and remove the direct broadcast service in N number of direct broadcast server The communication quality parameter between each direct broadcast server except device;
According to the communication quality ginseng between the weight of N number of direct broadcast server, the direct broadcast server and main broadcaster's terminal The several and described direct broadcast server and each direct broadcast server in N number of direct broadcast server in addition to the direct broadcast server Between communication quality parameter, determine the corresponding integrated communication mass parameter of the direct broadcast server;
From N number of direct broadcast server, the minimum corresponding direct broadcast server of integrated communication mass parameter is determined as described Source direct broadcast server.
14. the device as described in claim 10 or 11, which is characterized in that the determination unit is used to watch based on the history Record, the communication quality parameter in the multiple direct broadcast server between each direct broadcast server and main broadcaster's terminal and Communication quality parameter between the multiple direct broadcast server determines a direct broadcast server from the multiple direct broadcast server As source direct broadcast server, specially:
It is watched and being recorded based on the history, the N number of live streaming for meeting preset matching strategy is determined from the multiple direct broadcast server Server, the N are the quantity for the direct broadcast server for meeting the preset matching strategy;
It is watched and being recorded according to the history, determine the weight of N number of direct broadcast server;
According to the weight of N number of direct broadcast server, main broadcaster's terminal and any direct broadcast service of the multiple direct broadcast server The communication quality parameter between communication quality parameter and the multiple direct broadcast server between device takes from the multiple live streaming It is engaged in determining a direct broadcast server as the source direct broadcast server in device.
15. the device as described in claim 12-14 is any, which is characterized in that the history viewing record includes direct broadcast service The number of users that the main broadcaster identifies corresponding content is watched on device;
The determination unit is used to, based on history viewing record, determine from the multiple direct broadcast server and meet default N number of direct broadcast server with strategy, specially:
Determine that watching the number of users that the main broadcaster identifies corresponding content is greater than or equal to from the multiple direct broadcast server The direct broadcast server of first predetermined threshold value is the direct broadcast server for meeting the preset matching strategy.
16. the device as described in claim 12-14 is any, which is characterized in that the history viewing record includes direct broadcast service The history that all users that the main broadcaster identifies corresponding content are watched on device beats reward full amount;
The determination unit is used to, based on history viewing record, determine from the multiple direct broadcast server and meet default N number of direct broadcast server with strategy, specially:
From the multiple direct broadcast server, determine that the history for watching all users that the main broadcaster identifies corresponding content beats reward The direct broadcast server that full amount is greater than or equal to the second predetermined threshold value is the direct broadcast server for meeting the preset matching strategy.
17. the device as described in claim 12-14 is any, which is characterized in that the history viewing record includes direct broadcast service The history that each user that the main broadcaster identifies corresponding content is watched on device beats reward full amount;
The determination unit is used to, based on history viewing record, select to meet default from the multiple direct broadcast server N number of direct broadcast server with strategy, specially:
From the multiple direct broadcast server, determine that the history for watching the user that the main broadcaster identifies corresponding content beats reward total value The corresponding direct broadcast server of user of M is the direct broadcast server for meeting the preset matching strategy before degree sequence.
18. the device as described in claim 12-17 is any, which is characterized in that
The receiving unit is additionally operable to receive the data transmission success message that the source direct broadcast server is sent, and the data pass The channel information of the direct broadcast band is carried in defeated success message;
Described device further includes:
Transmission unit downloads instruction for being sent to N number of direct broadcast server, and the download instruction includes the source live streaming The channel information of the address information of server and the direct broadcast band.
19. a kind of selection device of direct broadcast server, which is characterized in that described device includes:
Processor and memory;
Wherein, there is computer-readable program in the memory;
The processor is by running the program in the memory, for completing any methods of claim 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 网宿科技股份有限公司 Push method, system and the server of stream medium 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 浪潮软件集团有限公司 HLS-based method for realizing seamless disaster recovery of video on demand
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 浪潮软件集团有限公司 HLS-based method for realizing seamless disaster recovery of video on demand
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 网宿科技股份有限公司 Push method, system and the server of stream medium 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
CN108810052A (en) The selection method and device of direct broadcast server
Zheng et al. Online cloud transcoding and distribution for crowdsourced live game video streaming
CN105227550B (en) Scene display methods, apparatus and system
He et al. Fog-based transcoding for crowdsourced video livecast
WO2020119540A1 (en) Group profile picture generation method and device
CN108174233A (en) A kind of live broadcasting method, device, server and medium
CN105791902B (en) User's recommended method and device
CN107920108A (en) A kind of method for pushing of media resource, client and server
CN108769824A (en) A kind of video mixed flow method, apparatus, system, equipment and medium
CN108700928A (en) Content is managed based on battery utilization rate when showing content on device
CN110300306A (en) Based on RTMP agreement live stream load-balancing algorithm
US20200134739A1 (en) Apparatus and method for soliciting dynamic group support for an individual video streaming an event
EP3048796A1 (en) Information system, information delivery method and iptv system based on multi-screen interaction
CN107318052A (en) Player method, television set and the storage medium of television video
US11431770B2 (en) Method, system, apparatus, and electronic device for managing data streams in a multi-user instant messaging system
CN108650520B (en) Video live broadcast control method, related equipment and computer storage medium
CN108337556A (en) Method and apparatus for playing audio/video file
CN108966034B (en) Virtual article display method, device and storage medium
CN110070379B (en) Message transmission method, device and server
CN109948082A (en) Live information processing method and processing device, electronic equipment, storage medium
CN113271474B (en) Method, device, equipment and storage medium for testing streaming media server
JP2023031248A (en) Edge computing network, data transmission method, apparatus, device, and storage medium
US8799332B2 (en) Content conversion apparatus and method
US11641513B2 (en) Message processing using a client-side control group
CN111367592B (en) Information processing method and device

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