CN105933797B - Programme televised live based on network protocol television opens broadcasting method and device - Google Patents

Programme televised live based on network protocol television opens broadcasting method and device Download PDF

Info

Publication number
CN105933797B
CN105933797B CN201610330642.7A CN201610330642A CN105933797B CN 105933797 B CN105933797 B CN 105933797B CN 201610330642 A CN201610330642 A CN 201610330642A CN 105933797 B CN105933797 B CN 105933797B
Authority
CN
China
Prior art keywords
server
programme televised
televised live
backup
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610330642.7A
Other languages
Chinese (zh)
Other versions
CN105933797A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201610330642.7A priority Critical patent/CN105933797B/en
Publication of CN105933797A publication Critical patent/CN105933797A/en
Application granted granted Critical
Publication of CN105933797B publication Critical patent/CN105933797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6408Unicasting

Abstract

The invention discloses a kind of programme televised lives based on network protocol television to open broadcasting method and device, belongs to internet area.The described method includes: receiving opening for target programme televised live broadcasts instruction, it is described to open the main broadcast address and backup broadcast address broadcast and carry the target programme televised live in instruction, the connection between primary server is established based on the main broadcast address, and the connection between backup server is established based on the backup broadcast address, during this of the target programme televised live is opened and is broadcast, receive the program data that the server of successful connection for the first time is sent, based on received program data, the target programme televised live is played out.The present invention need not wait and the primary server establishes after connection failure the connection resettled between the backup server, improve the efficiency for opening and broadcasting the target programme televised live.

Description

Programme televised live based on network protocol television opens broadcasting method and device
Technical field
The present invention relates to internet area, in particular to a kind of programme televised live based on network protocol television open broadcasting method and Device.
Background technique
With the development of network technology, IPTV (Internet Protocol Television, network protocol television) etc. Stream media technology using more and more extensive, user can watch the flow-medium performance based on IPTV by terminal, including straight Broadcast program and request program.For programme televised live, the terminal on startup, from EPG (Electronic Program Guide, Electronic program guides) server obtains EPG information, and include programme televised live list in the EPG information, is wrapped in the programme televised live list The program identification and broadcast address of at least one programme televised live are included, which can be based on any at least one programme televised live The broadcast address of a programme televised live plays the programme televised live, and switches over to currently playing programme televised live.When the terminal exists When playing a new programme televised live, if play the new programme televised live opens that broadcast speed excessively slow, it will affect the terminal plays Therefore the efficiency of programme televised live needs a kind of programme televised live based on network protocol television and opens broadcasting method.
In the related technology, for each programme televised live at least one programme televised live, the broadcast address of the programme televised live It may include main broadcast address and backup broadcast address, which can be multicast address or unicast address, this is standby Part broadcast address is unicast address.It is multicast in the main broadcast address of the programme televised live when the terminal plays programme televised live In the case where address, which can be based on the multicast address, the first connection request be sent to primary server, when the terminal is in spy When being not received by the connection response of primary server transmission in timing is long, the determining and primary server connection failure.Alternatively, at this In the case that the main broadcast address of programme televised live is unicast address, which can be based on the unicast address, to the primary server The second connection request is sent, when being not received by the connection response of primary server transmission, determines and connect mistake with the primary server It loses.At this point, the terminal can send third connection request to backup server based on the backup broadcast address of the programme televised live, When with the backup server successful connection, the program data of backup server transmission is received, and plays the programme televised live, when When establishing connection failure with the backup server, determine that the programme televised live plays failure.
When the terminal and the primary server establish connection failure, resettle with the connection between the backup server, should Terminal, which needs to expend longer time just and can open, broadcasts the programme televised live, that is, open broadcast the programme televised live speed it is slower, inefficiency, Especially when the main broadcast address of the programme televised live is multicast address, which needs to expend specific duration and is just capable of determining whether It therefore further increases the terminal with primary server connection failure and opens the time required for broadcasting the programme televised live, reduce this Terminal opens the efficiency for broadcasting the programme televised live.
Summary of the invention
In order to solve the problems, such as the relevant technologies, the embodiment of the invention provides a kind of live streaming section based on network protocol television Mesh opens broadcasting method and device.The technical solution is as follows:
In a first aspect, providing a kind of programme televised live based on network protocol television opens broadcasting method, which comprises
Receive opening for target programme televised live and broadcast instruction, it is described open broadcast instruct in carry the main broadcaster of the target programme televised live and put Address and backup broadcast address;
The connection between primary server is established based on the main broadcast address, and is established based on the backup broadcast address Connection between backup server;
During this of the target programme televised live is opened and broadcast, the program that the server of successful connection for the first time is sent is received Data;
Based on received program data, the target programme televised live is played out.
Second aspect provides a kind of programme televised live based on network protocol television and opens broadcasting device, and described device includes:
First receiving module broadcasts instruction for receiving opening for target programme televised live, it is described open broadcast instruction in carry the mesh Mark the main broadcast address and backup broadcast address of programme televised live;
First link block for establishing the connection between primary server based on the main broadcast address, and is based on institute State the connection that backup broadcast address is established between backup server;
Second receiving module, for receiving successful connection for the first time during this of the target programme televised live is opened and broadcast Server send program data;
Playing module is based on received program data, plays out to the target programme televised live.
Technical solution provided in an embodiment of the present invention has the benefit that in embodiments of the present invention, firstly, the end It holds after receiving the opening and broadcast instruction of target programme televised live, company can be established with the primary server and the backup server simultaneously It connects, without establishing connection with the backup server again when the determining and primary server establishes connection failure, saves the end The time connecting with server is held, the efficiency for opening and broadcasting the target programme televised live is improved.It is saved secondly, the terminal is broadcast live in the target Purpose this open and broadcast during, can receive the program data that the server of successful connection for the first time is sent, and then based on received Program data plays out the target programme televised live, broadcasts the target programme televised live to open, when the server is target live streaming Program this open broadcast during successful connection for the first time server when, illustrate that the Network status of server is preferable, therefore, the clothes Business device can faster and more accurately send the program data, and then improve the terminal and open the efficiency for broadcasting the target programme televised live.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Figure 1A is that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens the system architecture broadcast Schematic diagram;
Figure 1B is the process that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting method Figure;
Fig. 2 is the process that another programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting method Figure;
Fig. 3 is the block diagram that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting device.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Figure 1A is that a kind of programme televised live based on network protocol television shown according to an exemplary embodiment opens the system of broadcasting Architecture diagram, A referring to Fig.1, it includes terminal 01, EPG server 02, primary server 03 and backup services which, which opens the system of broadcasting, Device 04, the terminal 01 can be connect with EPG server 02, primary server 03 and backup server 04 respectively.The terminal 01 can be with It is the terminal that can play the flow-medium performances such as IPTV.It include programme televised live list, programme televised live column in the EPG server 02 It include program identification, main broadcast address and the backup broadcast address of at least one programme televised live in table, and the main broadcast address can Think multicast address or unicast address, which is unicast address, in addition, can be in the EPG server 02 Including user informations such as user name, login passwords, the embodiment of the present invention is not specifically limited in this embodiment.Include in the primary server 03 The program data of at least one programme televised live, and the primary server 03 is able to respond the connection based on the main broadcast address and asks It asks.It include the program data of at least one programme televised live in the backup server 04, and the backup server 04 is able to respond Connection request based on the backup broadcast address.
Wherein, the EPG server 02, the primary server 03 and the backup server 04 can be in a server cluster Different servers, is also possible to the disparate modules being located in a server, and the embodiment of the present invention is not specifically limited in this embodiment.
When the terminal 01 starting, the program mark of at least one programme televised live can be obtained from the EPG server 02 Know, main broadcast address and backup broadcast address, when receive target programme televised live open broadcast instruction when, which can Think any one programme televised live at least one programme televised live, which puts ground based on the main broadcaster of the target programme televised live The connection between the primary server 03 is established in location, and receives the program data of the primary server 03 transmission, alternatively, the terminal 01 Backup broadcast address based on the target programme televised live establishes the connection between the backup server 04, and receives backup clothes The program data that business device 04 is sent is based on the number of programs after terminal receives the program data of the target programme televised live According to being played out to the target programme televised live.
Figure 1B is the process that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting method Figure, referring to Fig. 1, this method comprises:
Step 101: receiving opening for target programme televised live and broadcast instruction, this opens the master for broadcasting and carrying the target programme televised live in instruction Broadcast address and backup broadcast address.
Step 102: the connection between primary server being established based on the main broadcast address, and is based on the backup broadcast address Establish the connection between backup server.
Step 103: during this of the target programme televised live is opened and broadcast, the server for receiving successful connection for the first time is sent Program data.
Step 104: being based on received program data, which is played out.
In embodiments of the present invention, firstly, the terminal is after receiving the opening and broadcast instruction of target programme televised live, Ke Yitong When with the primary server and the backup server establish connection, without when the determining and primary server establishes connection failure again Connection is established with the backup server, saves the time that the terminal is connect with server, improves to open and broadcasts target live streaming section Purpose efficiency.Secondly, the terminal can receive the clothes of successful connection for the first time during this of the target programme televised live is opened and broadcast The program data that business device is sent, and then it is based on received program data, which is played out, broadcasts the mesh to open Mark programme televised live, when the server be the target programme televised live this open broadcast during successful connection for the first time server when, Illustrate that the Network status of server is preferable, therefore, which can faster and more accurately send the program data, and then improve The terminal opens the efficiency for broadcasting the target programme televised live.
Optionally, the program data that the server of successful connection for the first time is sent is received, comprising:
When with the primary server successful connection and not with the backup server successful connection, which is determined as The server of successful connection for the first time;
Receive the program data of primary server transmission.
Optionally, the program data that the server of successful connection for the first time is sent is received, comprising:
When with the backup server successful connection and not with the primary server successful connection, which is determined For the server of successful connection for the first time;
Receive the program data of backup server transmission.
Optionally, it is based on received program data, after playing out to the target programme televised live, further includes:
When the currently playing address of the target programme televised live is the backup broadcast address, the target programme televised live is judged Whether main broadcast address is multicast address;
When the main broadcast address is multicast address, every preset duration, established and the main clothes based on the main broadcast address It is connected between business device;
When with the primary server successful connection, the backup server for currently providing the program data is switched to the main clothes Business device.
Optionally, after the program data for receiving backup server transmission, further includes:
When with the primary server successful connection, the backup server for currently providing the program data is switched to the main clothes Business device.
Fig. 2 is the process that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting method Figure, referring to fig. 2, this method comprises:
Step 201: terminal obtains programme televised live list, includes the section of at least one programme televised live in the programme televised live list Target knowledge, main broadcast address and backup broadcast address.
Due to needing the broadcast address based on the programme televised live to obtain when the terminal starts and plays a programme televised live The program data of the programme televised live, and then open and broadcast the programme televised live, therefore, the available programme televised live list of the terminal should The programs such as program identification, main broadcast address and backup broadcast address in programme televised live list including at least one programme televised live letter Breath.
Wherein, the operation which obtains the programme televised live list can be with are as follows: the terminal on startup, to EPG server Programme televised live list acquisition request is sent, when the EPG server receives the programme televised live list acquisition request, by storage The programme televised live list is sent to the terminal.
It should be noted that the terminal is can to play the terminal of the programme televised live based on IPTV, or be equipped with base In IPTV application and with video playback capability terminal etc., the embodiment of the present invention is not specifically limited in this embodiment.
It should also be noted that, the program identification is used for one programme televised live of unique identification, which can be this Programm name, program code of programme televised live etc., the embodiment of the present invention is not specifically limited in this embodiment.
It should also be noted that, the main broadcast address can be multicast address or unicast address, which can Think unicast address.
Wherein, for any one programme televised live at least one programme televised live, in the broadcast address of the programme televised live Multicast mark or unicast mark can be carried, multicast mark is for illustrating that the broadcast address is multicast address, unicast mark For illustrating that the broadcast address is unicast address.Multicast mark or unicast mark can be by the terminals directly according to the live streaming The broadcast address of program obtains, or obtains after being parsed by broadcast address of the terminal to the programme televised live, the present invention Embodiment is not specifically limited in this embodiment.
It should be noted that the multicast mark can for IGMP (Internet Group Management Protocol, Group Management Protocol), unicast mark can be RTSP (Real Time Streaming Protocol, real-time streaming transport association View), certainly, in practical applications, the multicast mark and unicast mark can also for it is other can by the broadcasting of programme televised live Location is identified as the information of multicast address or unicast address, and the embodiment of the present invention is not specifically limited in this embodiment.
It should also be noted that, when the terminal plays the programme televised live based on the multicast address, it can be to the live streaming section Mesh is broadcast live broadcasting, i.e. the terminal can play the programme content at the programme televised live current time by the multicast address;When When the terminal plays the programme televised live based on the unicast address, time shifting broadcasting can be carried out to the programme televised live, i.e., the terminal can With by the unicast address play the programme televised live current time and before current time any time programme content.
It should also be noted that, in practical applications, in the programme televised live list can also include at least one live streaming The information such as program abstract of each programme televised live, this hair in other programme informations of program, such as at least one programme televised live Bright embodiment is not specifically limited in this embodiment.
For example, the programme televised live list that the terminal obtains can be as shown in table 1 below.It include three in the programme televised live list The program identification of programme televised live, main broadcast address and backup broadcast address.
Table 1
Program identification Main broadcast address Backup broadcast address
Concert IGMP:www.asd.com/6788 RTSP:www.asd1.com/6788
Platform is broadcast live in game IGMP:www.zxc.cn/yxzb RTSP:www.zxc.net/yxzb
News spot RTSP:www.ccv.gov/news RTSP:www.ccv.com/news01
It should be noted that the embodiment of the present invention is only illustrated for the programme televised live list shown in the above-mentioned table 1, on It states table 1 and restriction is not constituted to the embodiment of the present invention.
Further, which can show the programme televised live list after getting the programme televised live list, so as to It is based on selecting interested programme televised live in the programme televised live list in user.
It should be noted that the modes such as the terminal can be shown by window, pop-up is shown show the programme televised live list, The embodiment of the present invention is not specifically limited in this embodiment.
Further, the terminal is before sending the programme televised live list acquisition request to the EPG server, can also be to The EPG server sends logging request, can carry the information such as user name and login password in the logging request, when the EPG takes When business device receives the logging request, the user name and the login password are verified, it when the authentication succeeds, should to the terminal Programme televised live list.
Wherein, the method which verifies the user name and the login password, can be with reference to related skill Art, the embodiment of the present invention are not specifically limited in this embodiment.
Step 202: the terminal receives opening for target programme televised live and broadcasts instruction, this, which opens to broadcast, carries target live streaming section in instruction The main broadcast address of purpose and backup broadcast address.
From the foregoing it will be appreciated that the terminal obtain programme televised live list in include at least one programme televised live program identification, Main broadcast address and backup broadcast address, therefore, in order to determine programme televised live that needs play, which can receive the target Instruction is broadcast in opening for programme televised live, which can any one programme televised live at least one programme televised live.
Wherein, this open broadcast instruction can by user by execute predetermined registration operation triggering, the predetermined registration operation can be click behaviour The operation such as work, button operation, the embodiment of the present invention are not specifically limited in this embodiment.
It should be noted that from the foregoing it will be appreciated that the terminal can show the programme televised live list, therefore, user can be In the programme televised live list of display, based on the program identification at least one programme televised live for including in the programme televised live list, A target programme televised live, and the program identification based on the target programme televised live are selected, executes predetermined registration operation to trigger the target Instruction is broadcast in opening for programme televised live.
The target programme televised live is played out it should also be noted that, ensuring that, raising opens that broadcast the target straight The success rate of program is broadcast, this, which opens to broadcast, can carry two broadcast address in instruction, including the main broadcast address and the backup play Address.
For example, the terminal is received based on the program identification " game live streaming platform " in programme televised live list described in above-mentioned table 1 Instruction is broadcast to opening for game live streaming, this opens the program identification broadcast and carries game live streaming in instruction: " game live streaming platform ", Zhu Bofang Address: " IGMP:www.zxc.cn/yxzb " and backup broadcast address: " RTSP:www.zxc.net/yxzb ".
In addition, in practical applications, which can also receive opening for programme televised live otherwise and broadcast instruction, than Such as, in a kind of possible mode, which receives program identification, main broadcast address and the backup broadcast address of user's input, And opening for target programme televised live is received based on the program identification received and broadcasts instruction, the embodiment of the present invention does not do specific limit to this It is fixed.
Step 203: the terminal establishes the connection between primary server based on the main broadcast address, and is broadcast based on the backup Put the connection that address is established between backup server.
Since the target programme televised live is flow-medium performance, the program data of the target programme televised live is usually mentioned by server For, therefore, the terminal open broadcast the target programme televised live when, can be established between primary server based on the main broadcast address Connection, and the connection between backup server is established based on the backup broadcast address, it that is to say, which can establish simultaneously Connection between the primary server and the connection between the backup server.
Wherein, the influence due to Network status is unstable or other, the terminal are establishing company with the primary server When connecing or establishing connection with the backup server, it is possible that connection failure, is established if the terminal is first with the primary server Connection, and resettled in the determining and primary server connection failure and establish connection with the backup server, which needs to consume Take a large amount of time determine with the primary server connection failure, inefficiency, and when the terminal simultaneously establish with the main service When connection between device and the connection between the backup server, save etc. to be determined with the primary server connection failure Time, save the time for establishing connection with server, improve the efficiency for opening and broadcasting the target programme televised live.
For example, the terminal determines whether and is somebody's turn to do from based on being connected between main broadcast address foundation and the primary server Primary server establishes connection failure and needs 15ms, which is established between the backup server from based on the backup broadcast address Be connected to and determine whether that establishing successful connection with the backup server needs 10ms.If the terminal is first established and the main service Connection between device resettles in the determining and primary server connection failure and establishes connection with the backup server, then the end The total time that connection is established with server in end is 25ms.And when the terminal simultaneously establish and the primary server between connection and When connection between the backup server, it is 10ms that the terminal and server, which establish connection total time, saves 15ms.
It should be noted that when the terminal simultaneously establish and the primary server between connection and with the backup server Between connection when, the connection that can be established between the primary server respectively by two threads and with the backup services Connection between device.
It should also be noted that, the primary server, the backup server and the EPG server can be a server set Different server in group, is also possible to the disparate modules being located in a server, and the embodiment of the present invention is not done this specifically It limits.
For example, when the target programme televised live be game be broadcast live when, based on game live streaming main broadcast address " IGMP: Www.zxc.cn/yxzb " establish and the primary server between connection, and based on game live streaming backup broadcast address " RTSP: Www.zxc.net/yxzb " establishes the connection between the backup server.
Further, established based on the main broadcast address can be with the operation that connect between primary server for the terminal are as follows: When the main broadcast address is multicast address, which is based on the multicast address, multicast request is sent to the primary server, to add Enter the corresponding multicast group of target programme televised live, when the multicast that the terminal receives primary server transmission in specific duration is rung At once, it determines and the corresponding multicast group success of the target programme televised live is added, i.e., establish successful connection with the primary server.As the master When broadcast address is unicast address, which is based on the unicast address, unitcast request is sent to the primary server, when receiving this When the unicast response that primary server is sent, the determining and primary server successful connection.
Wherein, the multicast group of the target programme televised live may include multiple terminals, which can be simultaneously to the group It broadcasts the multiple terminals for including in group and sends identical program data, that is to say, multiple terminals can be shared in the same multicast group The program data of the target programme televised live.
It should also be noted that, the terminal is based on main behaviour broadcast address foundation and connect between the primary server Make, the relevant technologies can also be referred to, the embodiment of the present invention is not specifically limited in this embodiment.
Further, since the backup broadcast address is unicast address, which is based on the backup broadcast address Establishing can be with the operation that connect between backup server are as follows: the terminal is based on the backup broadcast address, to the backup services Device sends unitcast request, and when receiving the unicast response of backup server transmission, determination is connected into the backup server Function.
It should be noted that the terminal is based on behaviour backup broadcast address foundation and connect between backup server Make, the relevant technologies can also be referred to, the embodiment of the present invention is not specifically limited in this embodiment.
Step 204: the terminal receives the service of successful connection for the first time during this of the target programme televised live is opened and broadcast The program data that device is sent.
From the foregoing it will be appreciated that the primary server and the backup server can provide the target programme televised live for the terminal and exist Therefore the program data at current time in order to accelerate to open the speed for broadcasting the target programme televised live, improves working efficiency, the terminal During this of the target programme televised live is opened and broadcast, program data that the server of for the first time successful connection send can be received.
Wherein, from the foregoing it will be appreciated that the terminal is established simultaneously and the connection between the primary server and the backup server, but The speed that the terminal and the primary server establish the speed of connection and the terminal establishes connection with the backup server may be not Identical, therefore, which first may establish successful connection with the primary server, it is also possible to first establish connection with the backup server Success.So the operation for the program data that the server that the terminal receives successful connection for the first time is sent includes three kinds of possible sides Formula:
The first possible mode, when with the backup server successful connection and not with the primary server successful connection, The backup server is determined as to the server of successful connection for the first time, receives the program data of backup server transmission.
Further, since the primary server or the backup server may provide direct broadcast service simultaneously for multiple terminals, And the primary server can ensure that multiple terminals in a multicast group share the section of a programme televised live by way of multicast Mesh number evidence, so that the bandwidth of the primary server is saved, therefore, when the terminal number of the primary server and the backup server service When identical, which more stable can provide the program data of programme televised live, so, target live streaming is broadcast in order to improve to open The efficiency of program, while the system resource of the primary server is made full use of, the bandwidth of the backup server is saved, which is connecing After the data for receiving backup server transmission, when with the primary server successful connection, the program data will be currently provided Backup server is switched to the primary server.
Wherein, the operation for the backup server for currently providing the program data being switched to the primary server can be with are as follows: should Terminal sends pause request to the backup server and disconnects the connection between the backup server, when the backup server connects Receive the pause request when, stop sending the program data to the terminal, later, the terminal be based on the main broadcast address, establish with Connection between the primary server receives the program of primary server transmission when establishing successful connection with the primary server Data.
It should be noted that the backup server for currently providing the program data is switched to the primary server by the terminal Operation can also refer to the relevant technologies, and the embodiment of the present invention is not specifically limited in this embodiment.
Further, receive the backup server send program data after, when with the primary server successful connection When, which only when the main broadcaster address of the target programme televised live is multicast address, will currently provide the program data Backup server is switched to the primary server, that is, receive the backup server send program data after, when with the main clothes When business device successful connection, which judges whether the main broadcast address of the target programme televised live is multicast address, when the main broadcaster is put When address is multicast address, the backup server for currently providing the program data is switched to the primary server.
From the foregoing it will be appreciated that the backup broadcast address is unicast address, which can be multicast address or list Address is broadcast, and server provides the program data than providing program data occupancy by unicast address by multicast address Bandwidth is few, therefore, when the main broadcaster address of the target programme televised live is multicast address, will currently provide the backup of the program data Server is switched to the primary server, can save the primary server while raising opens and broadcasts the target programme televised live efficiency With the total bandwidth of the backup server, and when the main broadcast address of the target programme televised live be unicast address when, no matter work as premise What it is for the program data is the primary server or the backup server, and occupied bandwidth is identical, therefore, it is not necessary to will work as premise The primary server is switched to for the backup server of the program data.
For example, the terminal receive the backup server send game live streaming program data after, with the main service Device successful connection, the terminal determine that the main broadcast address " IGMP:www.zxc.cn/yxzb " of game live streaming is multicast address, because This, which can be switched to the primary server for the backup server for currently providing the program data.
Further, which connects after receiving the program data that the backup server is sent when with the primary server When being connected into function, which determines the primary server and the current load capacity of the backup server, bears when the primary server is current When carrying capacity is less than the backup server current load capacity, the backup server for currently providing the program data is switched to the master Server.
Wherein, since the current load capacity of the primary server is small, which can faster and more accurately be the terminal The program data of the target programme televised live is sent, therefore the terminal can be further increased and open the effect for broadcasting the target programme televised live Rate.
Wherein, which determines that the operation of the current load capacity of the primary server can be with are as follows: the terminal is sent out to the main service Load capacity inquiry request is sent, when the primary server receives the load capacity inquiry request, by the current load of the primary server Information is sent to the terminal, when the terminal receives the load information, can determine the current load capacity of the primary server.Separately Outside, in practical applications, which determines that the method for the current load capacity of the primary server can also be with reference to the relevant technologies, this hair Bright embodiment is not specifically limited in this embodiment.
It, can with second it should be noted that the terminal determines the operation of the current load capacity of the backup server Determine that the operation of the current load capacity of the primary server is identical in the mode of energy.
Second of possible mode, when with the primary server successful connection and not with the backup server successful connection, The primary server is determined as to the server of successful connection for the first time, receives the program data of primary server transmission.
Further, which connects after receiving the program data that the primary server is sent when with the backup server When being connected into function, which determines the primary server and the current load capacity of the backup server, bears when the primary server is current When carrying capacity is greater than or equal to the backup server current load capacity, the primary server for currently providing the program data is switched to The backup server.
The third possible mode, when the terminal simultaneously with the primary server and the backup services weapon successful connection when, The terminal can select a server: plan by following three kinds possible strategies in the primary server and the backup server Slightly one, which can randomly choose a server in the primary server or the backup server;Strategy two, the terminal According to predetermined preference server, a server is selected in the primary server or the backup server;Strategy three, The terminal determines the primary server and the current load capacity of the backup server, is somebody's turn to do when the current load capacity of the primary server is less than When the current load capacity of backup server, select the primary server, when the current load capacity of the primary server is greater than or equal to should When the load capacity of backup server, the backup server is selected.
It should be noted that reducing the terminal and the interaction of user when the terminal selects server by strategy one Number improves the efficiency for opening and broadcasting the target programme televised live;When the terminal by strategy two select server when, can according to The actual demand or preference at family select a server, improve the flexibility opened and broadcast the target programme televised live;When the terminal When selecting server by strategy three, current load capacity can choose compared with servlets, the lesser server energy of the load capacity It is enough faster and more accurately to send the program data of the target programme televised live for the terminal, therefore can be improved the terminal and open and broadcast the mesh Mark the efficiency of programme televised live.
Wherein, in strategy two, the operation that terminal predefines preference server can be with are as follows: the terminal is connected for the first time receiving Before the program data that successful server is sent, display server preference setting information, the server preference setting information is used The server for selecting a preference in the primary server and the backup server in prompt user, when the terminal receives service When device preference instruction, the server which selects is determined as the preference server.
It should be noted that the modes such as the terminal can be shown by window, pop-up is shown show that the server preference is set Confidence breath, the embodiment of the present invention are not specifically limited in this embodiment.
It should also be noted that, the server preference instruction can be triggered by user by specific operation, the specific operation It can be the operation such as clicking operation, button operation, the embodiment of the present invention is not specifically limited in this embodiment.
Step 205: the terminal is based on received program data, plays out to the target programme televised live.
Since the program data is the corresponding data of target programme televised live, when the terminal receives the number of programs According to when, can be based on received program data, which is played out, broadcasts the target programme televised live to open.
Wherein, when the terminal, which is based on received program data, to be played out to the target programme televised live, this can be connect The program data received is decoded, the data after being decoded, and the data after output decoding are to play target live streaming Program.
It should be noted that the terminal can also be by received number of programs when the terminal plays target programme televised live According to or decoding after data be sent to other terminals with video playback capability, and then by other terminal plays mesh Programme televised live is marked, the embodiment of the present invention is not specifically limited in this embodiment.
Further, when the currently playing address of the target programme televised live is the backup broadcast address, judge the target Whether the main broadcast address of programme televised live is multicast address, when the main broadcast address is multicast address, every preset duration, base It establishes between the primary server and connects in the main broadcast address, when with the primary server successful connection, currently will provide this The backup server of program data is switched to the primary server.
From the foregoing it will be appreciated that the load of the primary server can be reduced when main broadcast address is multicast address, needing to obtain In the case where taking the terminal number of program data constant, which faster and more accurately can send number of programs to multiple terminals According to, and then each terminal opens the efficiency and accuracy rate for broadcasting programme televised live in multiple terminal.So when the target programme televised live Currently playing address be the backup broadcast address, and the main broadcast address be multicast address when.The terminal can be when default It is long, it is established between the primary server and is connected based on the main broadcast address, the backup services of the program data will be currently provided Device is switched to the primary server.
Wherein, which is preset by the terminal, which can be 3 minutes or 5 minutes, certainly, In practical applications, which can also be that other values, the embodiment of the present invention are not specifically limited in this embodiment.
For example, the address of the currently playing game live streaming of the terminal is backup broadcast address " RTSP:www.zxc.net/ Yxzb ", the terminal determine that the main broadcast address " IGMP:www.zxc.cn/yxzb " of game live streaming is multicast address, therefore, should Terminal was established between the primary server based on the main broadcast address " IGMP:www.zxc.cn/yxzb " and is connected every 3 minutes, When with the primary server successful connection, the backup server for currently providing program data is switched to the primary server.
Further, when the terminal and the primary server successful connection, the primary server and backup clothes can be determined The current load capacity of device of being engaged in will be worked as when the current load capacity of the primary server is less than the current load capacity of the backup server The preceding backup server for providing the program data is switched to the primary server.
In embodiments of the present invention, firstly, the terminal is after receiving the opening and broadcast instruction of target programme televised live, Ke Yitong When with the primary server and the backup server establish connection, without when the determining and primary server establishes connection failure again Connection is established with the backup server, saves the time that the terminal is connect with server, improves to open and broadcasts target live streaming section Purpose efficiency.Secondly, the terminal can receive the clothes of successful connection for the first time during this of the target programme televised live is opened and broadcast The program data that business device is sent, and then it is based on received program data, which is played out, broadcasts the mesh to open Mark programme televised live, when the server be the target programme televised live this open broadcast during successful connection for the first time server when, Illustrate that the Network status of server is preferable, therefore, which can faster and more accurately send the program data, and then improve The terminal opens the efficiency for broadcasting the target programme televised live.Finally, playing the target programme televised live based on received program data Later, if the current broadcast address of the target programme televised live is the backup broadcast address, and the main broadcaster of the target programme televised live Putting address is the multicast address, which can establish the connection between the main service again, will work as every preset duration Preceding backup server for providing the program data is switched to the primary server, not influence target programme televised live broadcasting In the case of reduce the load capacity of the backup server, make full use of system resource.
Fig. 3 is that a kind of programme televised live based on network protocol television provided in an embodiment of the present invention opens broadcasting device, referring to figure 3, which includes: the first receiving module 301, the first link block 302, the second receiving module 303 and playing module 304.
First receiving module 301 broadcasts instruction for receiving opening for target programme televised live, this, which opens to broadcast in instruction, carries the target The program identification of programme televised live, main broadcast address and backup broadcast address;
First link block 302, for establishing the connection between primary server based on the main broadcast address, and based on this Backup broadcast address establishes the connection between backup server;
Second receiving module 303, for receiving successful connection for the first time during this of the target programme televised live is opened and broadcast Server send program data;
Playing module 304 is based on received program data, plays out to the target programme televised live.
Optionally, which includes:
First determination unit, for when with the primary server successful connection and not with the backup server successful connection, The primary server is determined as to the server of successful connection for the first time;
First receiving unit, for receiving the program data of primary server transmission.
Optionally, which includes:
Second determination unit, for when with the backup server successful connection and not with the primary server successful connection, The backup server is determined as to the server of successful connection for the first time;
Second receiving unit, for receiving the program data of backup server transmission.
Optionally, the device further include:
Judgment module, for when the currently playing address of the target programme televised live is the backup broadcast address, judgement should Whether the main broadcast address of target programme televised live is multicast address;
Second link block, for every preset duration, being put based on the main broadcaster when the main broadcast address is multicast address Address is established between the primary server and is connected;
Switching module, for will currently provide the backup services of the program data when with the primary server successful connection Device is switched to the primary server.
Optionally, second receiving module further include:
Switch unit, for will currently provide the backup services of the program data when with the primary server successful connection Device is switched to the primary server.
In embodiments of the present invention, firstly, the terminal is after receiving the opening and broadcast instruction of target programme televised live, Ke Yitong When with the primary server and the backup server establish connection, without when the determining and primary server establishes connection failure again Connection is established with the backup server, saves the time that the terminal is connect with server, improves to open and broadcasts target live streaming section Purpose efficiency.Secondly, the terminal can receive the clothes of successful connection for the first time during this of the target programme televised live is opened and broadcast The program data that business device is sent, and then it is based on received program data, which is played out, broadcasts the mesh to open Mark programme televised live, when the server be the target programme televised live this open broadcast during successful connection for the first time server when, Illustrate that the Network status of server is preferable, therefore, which can faster and more accurately send the program data, and then improve The terminal opens the efficiency for broadcasting the target programme televised live.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of programme televised live based on network protocol television opens broadcasting method, which is characterized in that the described method includes:
It receives opening for target programme televised live and broadcasts instruction, it is described to open the main broadcast address broadcast and carry the target programme televised live in instruction With backup broadcast address;
Establish the connection between primary server based on the main broadcast address, and based on backup broadcast address foundation with it is standby Connection between part server;
During this of the target programme televised live is opened and broadcast, the number of programs that the server of successful connection for the first time is sent is received According to;
Based on received program data, the target programme televised live is played out.
2. the method as described in claim 1, which is characterized in that the program that the server for receiving successful connection for the first time is sent Data, comprising:
When with the primary server successful connection and not with the backup server successful connection, the primary server is determined For the server of successful connection for the first time;
Receive the program data that the primary server is sent.
3. the method as described in claim 1, which is characterized in that the program that the server for receiving successful connection for the first time is sent Data, comprising:
It is when with the backup server successful connection and not with the primary server successful connection, the backup server is true It is set to the server of successful connection for the first time;
Receive the program data that the backup server is sent.
4. the method as described in claim 1, which is characterized in that it is described to be based on received program data, the target is broadcast live After program plays out, further includes:
When the currently playing address of the target programme televised live is the backup broadcast address, the target programme televised live is judged Main broadcast address whether be multicast address;
When the main broadcast address is multicast address, every preset duration, established and the master based on the main broadcast address It is connected between server;
When with the primary server successful connection, the backup server for currently providing the program data is switched to the master Server.
5. method as claimed in claim 3, which is characterized in that it is described receive program data that the backup server is sent it Afterwards, further includes:
When with the primary server successful connection, the backup server for currently providing the program data is switched to the master Server.
6. a kind of programme televised live based on network protocol television opens broadcasting device, which is characterized in that described device includes:
First receiving module broadcasts instruction for receiving opening for target programme televised live, and described open broadcasts in instruction that carry the target straight Broadcast the main broadcast address and backup broadcast address of program;
First link block, for establishing the connection between primary server based on the main broadcast address, and based on described standby Part broadcast address establishes the connection between backup server;
Second receiving module, for receiving the clothes of successful connection for the first time during this of the target programme televised live is opened and broadcast The program data that business device is sent;
Playing module is based on received program data, plays out to the target programme televised live.
7. device as claimed in claim 6, which is characterized in that second receiving module includes:
First determination unit, for when with the primary server successful connection and not with the backup server successful connection, The primary server is determined as to the server of successful connection for the first time;
First receiving unit, the program data sent for receiving the primary server.
8. device as claimed in claim 6, which is characterized in that second receiving module includes:
Second determination unit, for when with the backup server successful connection and not with the primary server successful connection, The backup server is determined as to the server of successful connection for the first time;
Second receiving unit, the program data sent for receiving the backup server.
9. device as claimed in claim 6, which is characterized in that described device further include:
Judgment module, for judging institute when the currently playing address of the target programme televised live is the backup broadcast address Whether the main broadcast address for stating target programme televised live is multicast address;
Second link block, for every preset duration, being put based on the main broadcaster when the main broadcast address is multicast address Address is established between the primary server and is connected;
Switching module, for will currently provide the backup services of the program data when with the primary server successful connection Device is switched to the primary server.
10. device as claimed in claim 8, which is characterized in that second receiving module further include:
Switch unit, for will currently provide the backup services of the program data when with the primary server successful connection Device is switched to the primary server.
CN201610330642.7A 2016-05-18 2016-05-18 Programme televised live based on network protocol television opens broadcasting method and device Active CN105933797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610330642.7A CN105933797B (en) 2016-05-18 2016-05-18 Programme televised live based on network protocol television opens broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610330642.7A CN105933797B (en) 2016-05-18 2016-05-18 Programme televised live based on network protocol television opens broadcasting method and device

Publications (2)

Publication Number Publication Date
CN105933797A CN105933797A (en) 2016-09-07
CN105933797B true CN105933797B (en) 2019-02-01

Family

ID=56841960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610330642.7A Active CN105933797B (en) 2016-05-18 2016-05-18 Programme televised live based on network protocol television opens broadcasting method and device

Country Status (1)

Country Link
CN (1) CN105933797B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257496A (en) * 2017-06-14 2017-10-17 广州市千钧网络科技有限公司 A kind of live control method, device and mobile terminal
CN109963203B (en) * 2017-12-25 2021-12-07 中国移动通信集团福建有限公司 Video stream conversion and adaptive switching method and device, equipment and medium
CN110996160B (en) * 2019-11-15 2022-10-28 广州方硅信息技术有限公司 Video processing method and device, electronic equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425990A (en) * 2001-12-13 2003-06-25 杨磊 File cocurrent downloading technology for Internet multiple servers
CN103442287A (en) * 2013-08-26 2013-12-11 深圳市九洲电器有限公司 Set top box network automatic expanding playing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075338B (en) * 2009-11-25 2015-05-13 突触计算机系统(上海)有限公司 Distributed network-based live broadcasting method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425990A (en) * 2001-12-13 2003-06-25 杨磊 File cocurrent downloading technology for Internet multiple servers
CN103442287A (en) * 2013-08-26 2013-12-11 深圳市九洲电器有限公司 Set top box network automatic expanding playing method

Also Published As

Publication number Publication date
CN105933797A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN102036058B (en) Method, server, terminal and system for switching videos in video monitoring system
US7181526B1 (en) Announced session description
US7103667B1 (en) Announced session control
EP2034731A1 (en) Multicast service processing method and access equipment
KR20080076803A (en) Bandwidth requesting system, bandwidth requesting device, client device, bandwidth requesting method, content playback method, and program
CN110502259B (en) Server version upgrading method, video networking system, electronic equipment and storage medium
CN101207501A (en) IP broadcasting system and a multicast group management apparatus for the same
CN101656869A (en) Method, device and system for switching channels
CN102185856B (en) Team organizing video method, device and system used in team organizing game
CN110418188A (en) The quick intelligent terminal for throwing screen and method
CN104883618A (en) Method, device, and system for tentatively watching living programs
CN105933797B (en) Programme televised live based on network protocol television opens broadcasting method and device
US7280492B2 (en) Videoconferencing system
CN115664989A (en) Monitoring system and method of cloud desktop
CN102984558A (en) Set top box and method of playing frames in channel switching process of set top box
CN107332894B (en) Live broadcast method, device and system, server and storage medium
CN110557612B (en) Control method of monitoring equipment and video networking system
CN102083001B (en) System, method and device for issuing multimedia information
CN101494768A (en) Method and apparatus for sending and downloading multimedia data, and multimedia order programme system
CN105933798A (en) Method and device for playing live program based on Internet protocol television
CN105898340A (en) Live broadcast key point hinting method, server, user terminal and system
CN107547517A (en) Audio/video program method for recording and the network equipment and computer installation
CN109525862A (en) A kind of multiple terminals live streaming exchange method and system
CN101098456A (en) System for implementing internet narrow-band channel based addressable multimedia broadcast and its broadcasting method
CN109218740A (en) Display methods, storage medium, electronic equipment and the system of double screen video flowing

Legal Events

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