CN100542276C - A kind of implementation method of video frequency requested program broadcasting-like services, server and client - Google Patents
A kind of implementation method of video frequency requested program broadcasting-like services, server and client Download PDFInfo
- Publication number
- CN100542276C CN100542276C CNB2007101058917A CN200710105891A CN100542276C CN 100542276 C CN100542276 C CN 100542276C CN B2007101058917 A CNB2007101058917 A CN B2007101058917A CN 200710105891 A CN200710105891 A CN 200710105891A CN 100542276 C CN100542276 C CN 100542276C
- Authority
- CN
- China
- Prior art keywords
- server
- media server
- services
- video frequency
- requested program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a kind of implementation method and equipment of video frequency requested program broadcasting-like services, the implementation method of the VOD class business that the embodiment of the invention provides, provide URI by the EFG server to user client device, this URI comprises the IP address information of dispatch server, user client device is according to the URI that obtains, to dispatch server request streaming media service, be redirected to then and carry out VOD class business on the available stream media server.If carrying out detecting streaming media server in the process in VOD class business, client device breaks down, then client device to the IP address information of dispatch server request available stream media server or according to the IP address information of the standby available stream media server that sends before, is redirected to and continues VOD class business on another streaming media server again.
Description
Technical field
The present invention relates to streaming media service, particularly a kind of realization technology of video frequency requested program broadcasting-like services.
Background technology
After traditional analog television develops into Digital Television, lay a good foundation for the flexible processing of TV programme, the business of various novelties is emerged in large numbers successively.The characteristics of initial broadcast television service are unidirectional (user and head end do not have service interaction), broadcast type (numerous users watch same program).Video request program VOD (Video on Demand) business has appearred in the needs according to the user subsequently, operator has prepared a large amount of films in advance and has been stored in the video on-demand system, like this, the user can want the program seen in selection of time easily, send order request to video on-demand system, optionally control F.F., the fast reverse play of program, no longer be passively, uniaxially watches.
After missing, radio and television just are difficult to see again, server that video request program then takies and network bandwidth cost are very high, after these two business are made up for each other's deficiencies and learn from each other, merge and some brand-new business, for example: video on demand TVOD (TV on Demand), network individual video video recording nPVR (network Private VideoRecord), time-moving television TSTV (Time Shift TV) etc., these business are recorded programme televised live for the user and are used, with the VOD business common ground is arranged, all need server to provide streaming media service to the user, therefore these business and VOD business are referred to as VOD class business together, provide the server of VOD class business to be referred to as streaming media server.
Provide the streaming media server of VOD class business to constitute by a plurality of hardware and a plurality of software module.The a lot of hardware of server or the fault of software module all may cause the interruption of streaming media service.With the VOD technology is example, client device directly obtains comprising the universal resource identifier URI (Universal ResourceIdentifier) of VOD server ip address information and sets up the RTSP session according to the VOD server ip address information and the VOD server that obtain from Electronic Program Guide EPG (Electronic Program Guide) server, realize the VOD business.The IP address information that has only comprised a VOD server among the URI that from the EPG server, obtains in the prior art, if client device runs into the VOD server failure when using the VOD server, can't switch to other normal VOD server, then the broadcast of VOD program has just been interrupted.
In existing a kind of changing method, the information that EPG provides to client device is not single URI, but comprise the file that a plurality of streaming media server IP address informations are tabulated, this document transmits by the http agreement, include at least two streaming media server IP address informations in this document, be used for after current streaming media server breaks down, client device selects a streaming media server to continue VOD class business again from tabulation.Can also comprise a plurality of streaming media server IP address information tabulation groupings in this document with priority, at least comprise a streaming media server IP address information in each grouping, client device selects next streaming media server to continue VOD class business according to the priority order of each grouping.If run into repeatedly server failure in the playing process, then client device is all reselected an original streaming media server continuation VOD class business each time from tabulation.
Because the streaming media server IP address information that needs in advance institute might to be used is tabulated and is sent client device to, the transmission data volume is big, the overwhelming majority is a standby stream media server IP address information in the data of transmission, because the probability that breaks down in playing process is very little, standby message under most situations, use less than, therefore too much the transmission of standby message has also increased system burden, has reduced systematic function.And streaming media server IP address information tabulation transmits with the http agreement, and the inefficiencies that the http agreement transmits has also further reduced the handling property of EPG server, thereby has reduced the performance of whole system.The each program request of client device all needs to obtain a file that comprises a plurality of server ip address information lists, and therefrom parse a plurality of streaming media server IP address informations, and select streaming media server according to priority order can or run into server failure in the playing process before beginning to play the time, therefore also very high to the client device requirement.
Summary of the invention
The embodiment of the invention provides a kind of implementation method, user's dispatch server and client device of video frequency requested program broadcasting-like services, utilizes dispatch server to realize video frequency requested program broadcasting-like services.
Further, the embodiment of the invention also provides the handover mechanism of failure flow media server, has solved the problem that has reduced systematic function in the prior art for the switching that realizes the failure flow media server.
A kind of implementation method of video frequency requested program broadcasting-like services comprises:
During client device request video frequency requested program broadcasting-like services, carry out following steps:
Client device is to dispatch server request video frequency requested program broadcasting-like services; And
The redirected indication that the receiving scheduling server returns, comprising dispatch server in the described redirected indication is the available stream media server address information that described video frequency requested program broadcasting-like services is selected; And
Set up session and carry out described video frequency requested program broadcasting-like services according to described available stream media server address information and available stream media server;
Client device detects described video frequency requested program broadcasting-like services each time when taking place to interrupt, and carries out following steps:
Again to an available stream media server of described dispatch server request address information, and failure flow media server address information sent to described dispatch server, indicate described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server;
The redirected indication that the receiving scheduling server returns, comprising dispatch server in the described redirected indication is the address information of an available stream media server of described video frequency requested program broadcasting-like services selection; And
Session is set up with corresponding available stream media server in available stream media server address according to request again; And
With break period of described video frequency requested program broadcasting-like services as the broadcast start time of the video frequency requested program broadcasting-like services of request again, and described broadcast start time sent to this new available stream media server to continue described video frequency requested program broadcasting-like services.
Preferable, client device confirms that described available stream media server address information is one.
Further, client device is preserved the address information of each failure flow media server, and when asking video frequency requested program broadcasting-like services again each time, all failure flow media server address informations of preserving is before all sent to described dispatch server.
Preferable, play data cachedly behind the video frequency requested program broadcasting-like services stream medium data that described client device buffer memory receives, the reproduction time of the data total amount that is buffered interrupts setting up session and receiving the needed time of media data with an available stream media server again from video frequency requested program broadcasting-like services more than or equal to client device.
A kind of dispatch server comprises:
Receiving element is used to receive the video frequency requested program broadcasting-like services request of client device;
Selected cell, the available stream media server is selected in the video frequency requested program broadcasting-like services request that is used to described receiving element to receive;
Transmitting element is used for returning the available stream media server address information that described selected cell is selected to client device;
Resolution unit, be used for from the available stream media server request resolve fault streaming media server address information of described receiving element reception, and the failure flow media server address information that parses sent to selected cell, described selected cell is selected the available stream media server in other non-failure flow media server.
Described dispatch server also comprises: acquiring unit, be used to obtain the loading condition of each streaming media server, and described selected cell is selected described available stream media server according to the loading condition of each streaming media server.
A kind of client device comprises decoding output unit and display unit, and described decoding output unit decoded video program request class business datum is also exported to display unit with decoded signal and shown; Also comprise: video frequency requested program broadcasting-like services request unit, video frequency requested program broadcasting-like services control unit, initial URI memory cell and reception buffer unit; Wherein:
Control according to the video frequency requested program broadcasting-like services control unit, described video frequency requested program broadcasting-like services request unit obtains the VOD class business initial URI that comprises the dispatch server address information from the EPG server, and described initial URI is saved in the described initial URI memory cell by the video frequency requested program broadcasting-like services control unit; Send the video frequency requested program broadcasting-like services request to dispatch server, and receive the redirected indication that described dispatch server returns, comprising dispatch server in the described redirected indication is the available stream media server address information that described video frequency requested program broadcasting-like services is selected; And set up session with corresponding available stream media server according to described available stream media server address information;
Receive buffer unit and be used for receiving and buffer memory video frequency requested program broadcasting-like services data, and export to described decoding output unit data cached from the available stream media server of setting up session.
Preferable, described client device also comprises:
Detecting unit is used for triggering described VOD class Service Control Unit when detecting described video frequency requested program broadcasting-like services each time and take place to interrupt.
Preferable, described VOD class Service Control Unit is according to the triggering of detecting unit, control the described dispatch server of described video frequency requested program broadcasting-like services request unit request and reselect the available stream media server, the available stream media server that described video frequency requested program broadcasting-like services request unit and dispatch server are reselected is set up session and is asked video frequency requested program broadcasting-like services again, and Qing Qiu video frequency requested program broadcasting-like services broadcast start time is break period of described video frequency requested program broadcasting-like services before again.
Preferable, described client device also comprises:
First memory cell, be used for storage failure streaming media server information, described video frequency requested program broadcasting-like services request unit is when asking described dispatch server to reselect the available stream media server each time, the failure flow media server address information of storing in described first memory cell is sent to described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server.
Preferable, described client device also comprises:
Second memory cell, described video frequency requested program broadcasting-like services request unit obtains at least two available stream media server address informations from described redirected indication, described video frequency requested program broadcasting-like services control unit is saved in described two available stream media server address informations in second memory cell at least, and is used for and sets up session and carry out described video frequency requested program broadcasting-like services using streaming media server from an available stream media server of described memory cell selecting address information;
Described VOD class Service Control Unit is according to the triggering of detecting unit, trigger described video frequency requested program broadcasting-like services control unit and reselect an available stream media server address information from second memory cell, and triggering the video frequency requested program broadcasting-like services request unit and the available stream media server of the available stream media server address information correspondence reselected is set up session to ask video frequency requested program broadcasting-like services again, Qing Qiu video frequency requested program broadcasting-like services broadcast start time is break period of described video frequency requested program broadcasting-like services before again.
In the embodiment of the invention, client device obtains the address information of dispatch server from the EPG server, obtain available VOD class server address information by being redirected flow process from dispatch server then, set up session with available VOD class server again, thereby realize VOD class business, therefore the EPG server only need provide the address information of dispatch server to client device, thereby has alleviated the EPG load of server.Dispatch server is selected available VOD class server according to the loading condition of each VOD class server, balance the load of each VOD class server;
Further, when the VOD class server that VOD class business is provided broke down, the embodiment of the invention was obtained new available VOD class server address information once more and is switched from dispatch server by initiate being redirected flow process again; Perhaps, dispatch server sends at least one standby VOD class server address information to realize failover when client device sends available VOD class server address information.Thereby when having guaranteed VOD class server failure, client device can switch on other normal VOD server, and the fail-over scheme that the embodiment of the invention provides does not increase the EPG load of server, does not reduce systematic function yet.
Description of drawings
The primary structure schematic diagram of a kind of VOD class business realizing system that Fig. 1 provides for the embodiment of the invention;
First kind of VOD service implementation method schematic flow sheet that Fig. 2 provides for the embodiment of the invention;
Second kind of VOD service implementation method schematic flow sheet that Fig. 3 provides for the embodiment of the invention;
The third VOD service implementation method schematic flow sheet that Fig. 4 provides for the embodiment of the invention;
Fig. 5, Fig. 6 are respectively the dispatch server primary structure schematic diagram that the embodiment of the invention provides;
Fig. 7, Fig. 8 are respectively the client device primary structure schematic diagram that the embodiment of the invention provides.
Embodiment
Embodiment of the invention EPG load of server and to the requirement of client end capacity when reducing that the VOD class is professional to be switched, a kind of implementation method of VOD class business is provided, the IP address information of dispatch server is provided to user client device by the EFG server, user client device is according to the dispatch server IP address information of obtaining, to the IP address information of dispatch server request streaming media server, set up the RTSP session with the available stream media server then and carry out VOD class business.
The embodiment of the invention also provides two kinds of fail-over schemes, to guarantee that when the streaming media server that VOD class business is provided breaks down client device can switch to and continue VOD class business on the normal streaming media server, wherein:
In first kind of fail-over scheme, when the streaming media server that VOD class business is provided breaks down, the IP address information of the available stream media server that client device please be looked for novelty to dispatch server is again set up the RTSP session with new available stream media server again and is continued VOD class business;
In second kind of fail-over scheme, dispatch server sends at least two available stream media server IP address informations to client device, and client device is set up the RTSP session to carry out VOD class business according to one of them available stream media server IP address information and corresponding available stream media server; If this available stream media server breaks down, utilize remaining available stream media server IP address information and other available stream media server to set up the RTSP session again to continue VOD class business.
Above-mentioned two kinds of mechanism can also be used in combination, client device is when receiving the available stream media server IP address information that dispatch server sends, detect the quantity of available stream media server IP address information, if be one then realize switching according to first kind of fail-over scheme, if more than one, then utilize second kind of fail-over scheme to realize switching, in second kind of fail-over scheme, after attempting finishing in all IP addresses, the IP address information of the available stream media server that can also be again please look for novelty to dispatch server again by first kind of switching mode is set up the RTSP session with new available stream media server again and is continued VOD class business.
Also be elaborated in conjunction with the accompanying drawings with specific embodiment below.
As shown in Figure 1, the VOD business realizing system for the embodiment of the invention provides mainly comprises:
A plurality of streaming media servers (101,102......10n) are used to provide VOD class business;
Dispatch server (RRS, Request Routing Server) 20 is used to the VOD class service selection available stream media server of request;
EFG server 30 is used to provide the initial URI of VOD business, wherein comprises the IP address information of dispatch server 20;
At least one client device 40, the dispatch server 20IP address information that provides according to EFG server 30 is provided, to dispatch server 20 request VOD class business, the available stream media server IP address information of carrying in the redirected indication of returning according to dispatch server 20, and corresponding streaming media server is set up real-time streaming protocol RTSP (Real TimeStreaming Protocol) session to carry out VOD class business in the streaming media server (101,102......10n);
In the embodiment of the invention, dispatch server can be selected the available stream media server according to the ruuning situation of each VOD class server, selection strategy can be to select the lightest available VOD class server of load for the client device of request VOD class business, perhaps nearest available VOD class server of chosen distance client device etc., the embodiment of the invention does not limit concrete system of selection, the embodiment of the invention does not equally limit the method that dispatch server obtains each VOD class server ruuning situation yet, can be that each VOD class server is initiatively reported to dispatch server, also can be that dispatch server obtains from each VOD class server, can also be dispatch server according to the RTSP message oneself of selecting available VOD server each time write down etc.
In first embodiment provided by the invention, dispatch server is selected an available VOD class server for client device at every turn, and in being redirected indication, send to client device, the VOD class is professional interrupts if client device detects each time, then again to available stream media server of dispatch server request, the available stream media server IP address information of reselecting according to dispatch server is set up the RTSP session with corresponding available stream media server then; And break period of described VOD class business sent to this new available stream media server to continue described VOD class business as the broadcast start time of the VOD class business of request again, realized the switching of failure flow media server.
Further, in the method, client device is when asking described VOD class professional again each time, failure flow media server IP address information in the time of can also be with described VOD class service disconnection sends to described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server, can improve success rate for switching one time.Client device can also be preserved the IP address information of each failure flow media server, and asks VOD class business again each time, and all failure flow media server IP address informations of preserving are before all sent to described dispatch server.
In second embodiment provided by the invention, dispatch server is that client device is selected at least two available stream media servers, and in being redirected indication, these at least two available stream media server IP address informations all being sent to client device, client device therefrom selects one to be used to set up the RTSP session and to begin to carry out described VOD class business.Described VOD class is professional interrupts if client device detects, can from remaining available stream media server IP address information, reselect one again, and set up the RTSP session with the available stream media server of the available stream media server IP address information correspondence of reselecting; And break period of described VOD class business sent to this new available stream media server to continue described VOD class business as the broadcast start time of the VOD class business of request again.
Be example with the VOD business below, the implementation of the VOD class business that provides in the invention process is provided.
As shown in Figure 2, the first kind of VOD operation flow that provides for the embodiment of the invention, wherein:
Step S201-S207 is the process of setting up of VOD business, specifically comprises:
Step S201, client device obtain the initial URI of program from EPG, wherein comprise the IP address information of dispatch server;
Step S202, client device send the RTSP message of the initial URI that comprises program, to dispatch server request VOD business, the message that sends can be any message that the RTSP agreement allows initialization, for example option (OPTIONS) message, description (DESCRIBE) message etc. also can send in the DESCRIBE back and set up (SETUP) message;
In the embodiment of the invention, client device uses the URI of following form to initiate the RTSP session interaction to dispatch server by DESCRIBE message, is called URI_RRS:
RTSP://<SERVER_IP>:port/Asset_Path_Name?Other_Parameters=<Value>&...
Wherein: the unified IP address information that fills into dispatch server of the SERVER_IP among the URI_RRS;
Asset_Path_Name be the film that will play deposit path and filename; Other_Parameters comprises required information such as authentification of user.
Step S203, dispatch server are available VOD server of VOD service selection of client device request, and for example the VOD server 101;
When can not find available server in this locality, the URI of pre-configured IP address information of usefulness or host name structure can also be provided, the IP address information that IP address information that this is pre-configured or host name are back-up system, in the VOD of distributed deployment system, usually the VOD subsystem of subordinate higher level VOD subsystem as back-up system;
Step S204, dispatch server are redirected indication, the IP address information of wherein carrying available VOD server 101 to client device;
Specifically, the message of receiving (OPTIONS or DESCRIBE) is provided response, conditional code in the response message can (expression be with 3 figure places of 3 beginnings for 3XX, for example: 300,301,302, Deng), can directly use 3XX for DESCRIBE, also can respond 200OK earlier, then SETUP be responded 3XX;
For example: redirected indication can realize by replying 300 (being defined as Multiple Choices among the RFC2326), dispatch server is the same with the VOD server, accept the RTSP request that client device is initiated, but do not provide the VOD business, but the indication client device is redirected on the available VOD server;
Request is set up in the RTSP session that step S205, client device are initiated to available VOD server;
In this course, client device sends OPTIONS (this message is optional), DESCRIBE, SETUP message successively, and available VOD server 101 responds 200OK one by one to client device;
In the embodiment of the invention, client device uses the URI of following form to initiate the RTSP session to available VOD server and sets up request, be called URI_VOD, the form of URI_VOD is consistent with the form of URI_RRS, and just the IP address information replaces with available VOD server ip address information: RTSP: //<VOD_IP 〉: port/Asset_ath_Name? Other_Parameters=<Other_Parameters_Value〉﹠amp; ...
Response is set up in step S206, RTSP session;
Available VOD server 101 carries session number in order to identify this session during finally to SETUP message response 200OK in the response message, the RTSP session is set up successfully, and the RTSP conversation request of client device is admitted in expression;
Step S207, client device use the VOD business;
Client device sends PLAY message control VOD server 101 and sends data, use the VOD business, during this time, can send out PLAY control fast-forward play, fast reverse play or speed broadcast often again, send out PAUSE (optional) and suspend broadcast, send out OPTIONS (optional) or GET_PARAMETER (optional) maintenance RTSP session.Session number in these message should equate with the session number of carrying in the response message of SETUP, show that these message belong to above-mentioned RTSP session.
Step S208-S214 is the disturbance switching process of VOD business, specifically comprises:
Step S208, client device detect the VOD business and interrupt;
Client device uses the VOD business from VOD server 101, and next directly plays to end normal condition.If VOD server 101 can not continue to provide media data to play for client device for a certain reason in the playing process, run into situations such as software fault, hardware fault, netting twine be loosening such as VOD server 101, client device will detect the VOD service disconnection.
Detecting method that whether the VOD business interrupt has multiplely, and the embodiment of the invention is not limited, and for example, does not receive that in 200 milliseconds data just think service disconnection.Here 200 milliseconds is an example, can be bigger or smaller during practical application.Because Network Transmission always has fluctuation, the too small meeting of value makes that detection is unreliable; Value is crossed the requirement of senior general's increase to the client device buffering area, and is also inadvisable, usually value in 10 milliseconds to 3 seconds scope.Duration of client device startup is 200 milliseconds a timer, receives that whenever a packet is just the timer zero clearing.Under the normal condition, can receive a lot of packets in 200 milliseconds, timer is cleared repeatedly, is can be not overtime therefore.For example, code stream is 1.5Mbps, and the packet size is 1500 bytes, every byte 8bit, per second has 5 200 milliseconds, then on average can receive 1500000 ÷, 1500 ÷, 8 a ÷ 5=25 packet in 200 milliseconds, if the packet of receiving in 200 milliseconds is 0 then thinks and detect the VOD service disconnection.Also can adopt other big or small timer, for example, adopt 10 milliseconds timer, and the expired times of timer are counted, count down to 20 and represented 200 milliseconds.
Step S209, client device send the RTSP message of the initial URI that comprises program, ask available VOD server ip address information again to dispatch server;
Client device sends OPTIONS or DESCRIBE, also can send SETUP message, the IP address information that wherein can carry fault VOD server in the DESCRIBE back.If first message that client device sends is OPTIONS, dispatch server can be redirected this message response 3XX, need not send out other message again.If first message that client device sends is DESCRIBE, dispatch server can be redirected this message response 3XX, need not send out other message again.The RTSP agreement also allows earlier DESCRIBE earlier with the 200OK response, more subsequently SETUP message response 3XX is redirected;
In the embodiment of the invention, when reasons such as the software of VOD server, hardware may cause the VOD service disconnection, client device obtains the URI of available VOD server again from dispatch server, client device uses the URI of following form to ask available VOD server ip address information again to dispatch server, the URI that carries fault VOD server info abbreviates URI_RRS_WithBadServerInfo as, form for example:
RTSP://<RRS_IP>:port/Asset_Path_Name?Bad_Server_IP=<IP1>&Other_Parameters=<Value>&...
Wherein RRS_IP is the IP of dispatch server, and spreading parameter Bad_SERVER_IP is the IP address information of VOD server that the VOD business can not be provided.The spreading parameter title is not defined as Bad_SERVER_IP, as long as implication is the IP address information that the server of business can not be provided.The effect of spreading parameter Bad_SERVER_IP is an IP address information of pointing out to provide professional server, i.e. the IP address information of VOD server 101 is in order to avoid choose on the VOD server that can not provide professional.
Step S210, dispatch server are that client device is reselected available VOD server;
Dispatch server is searched an available and VOD server ip address information inequality with the IP address information of VOD server 101, and for example the VOD server 102.
Alternatively, when can not find available server, can provide the URI of pre-configured IP address information of usefulness or host name structure, the IP address information that IP address information that this is pre-configured or host name are back-up system in this locality.In the VOD of distributed deployment system, usually the VOD subsystem of subordinate higher level VOD subsystem as back-up system;
Step S211, dispatch server return response message to client device, and conditional code is 3XX, and carry the IP address information of available VOD server 102;
Dispatch server is when selecting the VOD server, avoid the IP address information that this can not provide the VOD server 101 of business, in order to avoid choose fault VOD server when reselecting the VOD server, cause client device still to professional VOD server requests VOD business can not be provided.
The IP address information of the VOD server 102 that dispatch server usefulness is selected again replaces the IP address information among the former URI, generates new URI, is placed in the response message to DESCRIBE and returns to client device.
Step S212, client device send the RTSP message of the URI that comprises available VOD server 102IP address information, initiate the RTSP session to available VOD server 102 and set up request;
In the embodiment of the invention, client device is initiated the RTSP session by DESCRIBE, SETUP message to available VOD server 102 and is set up request.
Step S213, available VOD server 102 return the RTSP session to client device and set up response;
After step S214, client device and VOD server 102 are set up the RTSP session, continue the VOD business.
The time point that begins to play that will the Range parameter in the PLAY message that client device is sent out is set to time point that media stream data interrupts (in the VOD business, the Range form is the npt type, the Range form is the clock type in time-moving television), be used to indicate the time point that the VOD server interrupts from media stream data to begin to play rather than start anew broadcast.
Because client device has the certain VOD class service media flow data of buffer stores can continue to play, as long as before buffer data is depleted to the lower bound that stops to play, can receive media stream data from normal VOD server, just can continue to play, realize the experience of professional seamless disturbance switching.That is to say, the buffering area of client device must be enough big, the storage reproduction time is the data of t, if the minimum time of broadcast request is designated as t1, detecting the required time of VOD service disconnection is designated as t2, the mutual time of RTSP was designated as t3 before the VOD server sent data flow, and the Network Transmission of VOD server to client end equipment postpones to be designated as t4, then required: t>t1+t2+t3+t4.
When running into repeatedly the VOD service disconnection in the playing process, client device can be each time again to available VOD server ip address information that dispatch server please be looked for novelty the time, a plurality of fault VOD server ip address of business that can not provide are before all sent to dispatch server, this mode can be by increasing a plurality of spreading parameters, and the value of perhaps expanding the Bad_SERVER_IP parameter allows to comprise a plurality of IP address informations and realizes.
Certainly, because dispatch server itself can obtain the ruuning situation of each VOD server, client device is asked available VOD server ip address information again to dispatch server, also can not carry the IP address information of fault VOD server.
Second kind of execution mode that the embodiment of the invention provides mainly comprises as shown in Figure 3:
Step S301, client device obtain the initial URI of program from EPG, wherein comprise the IP address information of dispatch server;
Step S302, client device send the RTSP message of the initial URI that comprises program, to dispatch server request VOD business, the message that sends can be any message that the RTSP agreement allows initialization, for example option (OPTIONS) message, description (DESCRIBE) message etc. also can send in the DESCRIBE back and set up (SETUP) message;
Step S303, dispatch server receive the RTSP request message time, select at least two available VOD servers;
For example select available VOD server 101 and available VOD server 102;
Step S304, dispatch server send to client device with available VOD server 101 and available VOD server 102 in being redirected indication.
The subsidiary IP address information that standby VOD server of the back spreading parameter of the basic program request URI that client device obtains, as follows:
rtsp://192.168.1.10/yeyan.ts?Server_2=192.168.1.11&Server_3=192.168.1.12
After step S305, client device obtain this URI, preserve the subsidiary standby VOD service IP address information of spreading parameter, delete these spreading parameters, select one of them available VOD server ip address information then, the IP address information of for example available VOD server 101, first IP address (being exactly the 192.168.1.10 in the example) are included among the URI;
Step S306-S307, client device and VOD server 101 are set up the RTSP session.
Step S308, client device send PLAY message control VOD server 101 and send data, use the VOD business.
Step S309-S313, when this VOD server service is interrupted, client device takes out the IP address information of standby VOD service 102 and is used for substituting the IP address information of the VOD service 101 among the former URI, sets up the RTSP session with standby VOD server 102 again.
As shown in Figure 4, first kind of execution mode and second kind of execution mode can comprehensively use.Carry an available VOD service IP address information in the redirected indication among the step S404, perhaps at least two available VOD service IP address informations.In step S405, client device is according to being redirected the available VOD service IP address information number failure judgement handover mechanism that carries in the indication, if have only an available VOD service IP address information, the professional use of follow-up VOD and failover are identical with step S205-S214 among Fig. 2; If at least two available VOD service IP address informations are arranged, the professional use of follow-up VOD and failover are identical with step S305-S313 among Fig. 3, and, when running into repeatedly fault in the playing process and cause a plurality of available VOD service IP address information retries to finish, S209-S214 handles set by step.Concrete steps repeat no more here.
As shown in Figure 5, the embodiment of the invention also provides a kind of dispatch server, comprising:
Receiving element 501 is used to receive the VOD class service request of client device;
Transmitting element 503 is used for returning the available stream media server IP address information that described selected cell is selected to client device.
Further, dispatch server also comprises:
Acquiring unit 504 is used to obtain the content of being preserved, running status (fault, normal), the loading condition of each streaming media server, and described selected cell 502 is selected described available stream media server according to the information that acquiring unit 504 obtains.
Acquiring unit 504 by with regularly the communicate by letter information of the load size of obtaining each streaming media server of each streaming media server, and inferring its running status---normal result is returned in communication, and then the streaming media server operation is normal, and abnormal results or communication disruption n are returned in communication, and (1<=n) inferiorly then thinks the streaming media server fault.Here do not limit the method that acquiring unit 504 obtains the content information of being preserved of each streaming media server, when content is successfully injected streaming media server, notify acquiring unit 504 or all can by acquiring unit 504 and each streaming media server direct communication acquisition by being responsible for parts that content injects.
As shown in Figure 6, if carry failure flow media server IP address information in the available stream media server request of client device, then dispatch server also comprises:
If second kind of fail-over scheme provided by the invention, then selected cell 502 is for selecting the selected cell of at least two available stream media servers.
As shown in Figure 7, the embodiment of the invention also provides a kind of client device, comprising:
VOD class service request unit 703, VOD class Service Control Unit 704 and initial URI memory cell 705;
703 controls according to VOD class Service Control Unit 704 of described VOD class service request unit are obtained VOD class business initial URI and are saved in the described initial URI memory cell 705 from the EPG server;
Send VOD class service request to dispatch server, and receive the redirected indication that described dispatch server returns, comprising dispatch server in the described redirected indication is the available stream media server IP address information of described VOD class service selection; And
According to described available stream media server IP address information, set up the RTSP session with the available stream media server;
Receive buffer unit 706, be used for receiving and buffer memory VOD class business datum, and export to described decoding output unit 701 data cached from the available stream media server of setting up the RTSP session.
Client device further comprises:
Detecting unit 707, be used for when detecting each time that described VOD class is professional to take place to interrupt, trigger VOD class Service Control Unit 704, VOD class Service Control Unit 704 triggers the described VOD class service request unit described dispatch server of 703 requests and reselects the available stream media server, the available stream media server that described VOD class service request unit 703 and dispatch server are reselected is set up the RTSP session and is play VOD class business, its broadcast start time be before break period of described VOD class business.
Still consult shown in Figure 7ly, can also comprise in this client device:
In this client device, VOD class Service Control Unit 704 triggers VOD class service request unit 703 request scheduling servers each time when reselecting the available stream media server, failure flow media server IP address information can be sent to VOD class service request unit 703, VOD class service request unit 703 sends to dispatch server, indicates described dispatch server to reselect the available stream media server from other non-failure flow media server.
Perhaps, described VOD class service request unit is when asking described dispatch server to reselect the available stream media server each time, all failure flow media server IP address informations of each time interruption of described VOD class business are before sent to described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server.
As shown in Figure 8, if second kind of execution mode that the embodiment of the invention provides then comprises in the structure of client device:
Detecting unit 707 detects when described VOD class is professional to take place to interrupt, trigger described VOD class Service Control Unit 704 and reselect an available stream media server IP address information from second memory cell 709 again, and set up the RTSP session and play VOD class business by the available stream media server of VOD class service request unit 703 and the available stream media server IP address information correspondence reselected, its broadcast start time be break period of described VOD class business before.
Wherein, VOD class Service Control Unit 704 can also be judged the number of the available stream media server IP address information of receiving, if 1, then use first kind of fail-over scheme, if a plurality of, then use second kind of fail-over scheme.
Further, use first kind of fail-over scheme after the available stream media server IP address information retry in second memory cell 709 finishes.
Concrete: as from the response that user's Scheduling Flow media server returns, to carry 1 or n streaming media server IP address information.When single URI only is provided, only carry 1 streaming media server IP address information, VOD class Service Control Unit 704 control VOD class service request unit 703 use these URI to set up the RTSP session; When carrying one or more standby stream media servers IP address information among the URI in addition, VOD class Service Control Unit 704 control VOD class service request unit 703 use this URI to set up the RTSP session, if detect service disconnection in the playing process, use one or more standby stream media servers IP address information in the subsidiary parameter to replace IP address information retry among the URI at first successively, have only whole retries failures just additional fault IP address informations to carry out RTSP to user's Scheduling Flow media server once more mutual.Client device can carry 0,1 or n failure flow media server IP address information in RTSP that user's Scheduling Flow media server is sent out request.Client device does not carry failure flow media server IP address information for the first time when user's Scheduling Flow media server is sent out request message; Run into and carry 1 failure flow media server IP address information when 1 failure flow media server rear line Scheduling Flow media server is sent out request message; (1<n) individual failure flow media server rear line Scheduling Flow media server carries n failure flow media server IP address information when sending out request message to run into n;
In the embodiment of the invention, client device obtains the IP address information of dispatch server from the EPG server, obtain available VOD class server ip address information by being redirected flow process from dispatch server then, set up the RTSP session with available VOD class server again, thereby realize VOD class business, therefore the EPG server only need provide the IP address information of dispatch server to client device, thereby has alleviated the EPG load of server.Dispatch server is selected available VOD class server according to the loading condition of each VOD class server, balance the load of each VOD class server;
Further, when the VOD class server that VOD class business is provided broke down, the embodiment of the invention was obtained new available VOD class server ip address information once more and is switched from dispatch server by initiate being redirected flow process again; Perhaps, dispatch server sends at least one standby VOD class server ip address information to realize failover when client device sends available VOD class server ip address information.Thereby when having guaranteed VOD class server failure, client device can switch on other normal VOD server, and the fail-over scheme that the embodiment of the invention provides does not increase the EPG load of server, does not reduce systematic function yet;
Play data cached behind the video frequency requested program broadcasting-like services stream medium data that the client device buffer memory receives, by adjusting the data cached total amount of client device, the reproduction time of the data total amount that is buffered interrupts setting up the RTSP session and receiving the needed time of media data with an available stream media server again from video frequency requested program broadcasting-like services more than or equal to client device, can also realize seamless failover, make the imperceptible service disconnection of user, promoted user experience;
The measured RTSP agreement of the embodiment of the invention also is correspondingly processed to parameter expanding and value, and operation flow is simple, to client device require low.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (11)
1, a kind of implementation method of video frequency requested program broadcasting-like services is characterized in that, comprising:
During client device request video frequency requested program broadcasting-like services, carry out following steps:
To dispatch server request video frequency requested program broadcasting-like services; And
The redirected indication that the receiving scheduling server returns, comprising dispatch server in the described redirected indication is the address information of an available stream media server of described video frequency requested program broadcasting-like services selection; And
Set up session and carry out described video frequency requested program broadcasting-like services according to described available stream media server address information and available stream media server;
Client device detects described video frequency requested program broadcasting-like services each time when taking place to interrupt, and carries out following steps:
Again to an available stream media server of described dispatch server request address information, and failure flow media server address information sent to described dispatch server, indicate described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server;
The redirected indication that the receiving scheduling server returns, comprising dispatch server in the described redirected indication is the address information of an available stream media server of described video frequency requested program broadcasting-like services selection; And
Session is set up with corresponding available stream media server in available stream media server address according to request again; And
With break period of described video frequency requested program broadcasting-like services as the broadcast start time of the video frequency requested program broadcasting-like services of request again, and described broadcast start time sent to this new available stream media server to continue described video frequency requested program broadcasting-like services.
2, the method for claim 1 is characterized in that, also comprises: client device confirms that described available stream media server address information is one.
3, the method for claim 1, it is characterized in that, also comprise: client device is preserved the address information of each failure flow media server, and when asking video frequency requested program broadcasting-like services again each time, all failure flow media server address informations of preserving are before all sent to described dispatch server.
4, as claim 1,2 or 3 described methods, it is characterized in that, also comprise:
Play data cachedly behind the video frequency requested program broadcasting-like services stream medium data that described client device buffer memory receives, the reproduction time of the data total amount that is buffered interrupts setting up session and receiving the needed time of media data with an available stream media server again from video frequency requested program broadcasting-like services more than or equal to client device.
5, a kind of dispatch server is characterized in that, comprising:
Receiving element is used to receive the video frequency requested program broadcasting-like services request of client device;
Selected cell, the available stream media server is selected in the video frequency requested program broadcasting-like services request that is used to described receiving element to receive;
Transmitting element is used for returning the available stream media server address information that described selected cell is selected to client device;
Resolution unit, be used for from the available stream media server request resolve fault streaming media server address information of described receiving element reception, and the failure flow media server address information that parses sent to selected cell, described selected cell is selected the available stream media server in other non-failure flow media server.
6, dispatch server as claimed in claim 5 is characterized in that, also comprises:
Acquiring unit is used to obtain the loading condition of each streaming media server, and described selected cell is selected described available stream media server according to the loading condition of each streaming media server.
7, a kind of client device is characterized in that, comprising: video frequency requested program broadcasting-like services request unit, video frequency requested program broadcasting-like services control unit, initial URI memory cell, reception buffer unit, decoding output unit and display unit; Wherein:
Described video frequency requested program broadcasting-like services request unit is used for obtaining the VOD class business initial URI that comprises the dispatch server address information according to the control of video frequency requested program broadcasting-like services control unit from the EPG server, and described initial URI is saved in the described initial URI memory cell by the video frequency requested program broadcasting-like services control unit; Send the video frequency requested program broadcasting-like services request to dispatch server, and receive the redirected indication that described dispatch server returns, comprising dispatch server in the described redirected indication is the available stream media server address information that described video frequency requested program broadcasting-like services is selected; And set up session with corresponding available stream media server according to described available stream media server address information;
Receive buffer unit and be used for receiving and buffer memory video frequency requested program broadcasting-like services data, and export to described decoding output unit data cached from the available stream media server of setting up session;
Described decoding output unit decoded video program request class business datum is also exported to display unit with decoded signal and is shown.
8, client device as claimed in claim 7 is characterized in that, also comprises:
Detecting unit is used for triggering described VOD class Service Control Unit when detecting described video frequency requested program broadcasting-like services each time and take place to interrupt.
9, client device as claimed in claim 8, it is characterized in that, also comprise: described video frequency requested program broadcasting-like services request unit is according to the triggering of detecting unit, ask described dispatch server to reselect the available stream media server, the available stream media server that described video frequency requested program broadcasting-like services request unit and dispatch server are reselected is set up session and is asked video frequency requested program broadcasting-like services again, and Qing Qiu video frequency requested program broadcasting-like services broadcast start time is break period of described video frequency requested program broadcasting-like services before again.
10, client device as claimed in claim 8 is characterized in that, also comprises:
First memory cell, be used for storage failure streaming media server information, described video frequency requested program broadcasting-like services request unit is when asking described dispatch server to reselect the available stream media server each time, the failure flow media server address information of storing in described first memory cell is sent to described dispatch server, indicate described dispatch server from other non-failure flow media server, to reselect the available stream media server.
11, client device as claimed in claim 8 is characterized in that, also comprises:
Second memory cell, described video frequency requested program broadcasting-like services request unit obtains at least two available stream media server address informations from described redirected indication, described video frequency requested program broadcasting-like services control unit is saved in described two available stream media server address informations in second memory cell at least, and is used for and sets up session and carry out described video frequency requested program broadcasting-like services using streaming media server from an available stream media server of described memory cell selecting address information;
Described video frequency requested program broadcasting-like services control unit is according to the triggering of detecting unit, reselect an available stream media server address information from second memory cell, and triggering the video frequency requested program broadcasting-like services request unit and the available stream media server of the available stream media server address information correspondence reselected is set up session to ask video frequency requested program broadcasting-like services again, Qing Qiu video frequency requested program broadcasting-like services broadcast start time is break period of described video frequency requested program broadcasting-like services before again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101058917A CN100542276C (en) | 2007-06-01 | 2007-06-01 | A kind of implementation method of video frequency requested program broadcasting-like services, server and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101058917A CN100542276C (en) | 2007-06-01 | 2007-06-01 | A kind of implementation method of video frequency requested program broadcasting-like services, server and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101068339A CN101068339A (en) | 2007-11-07 |
CN100542276C true CN100542276C (en) | 2009-09-16 |
Family
ID=38880749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101058917A Active CN100542276C (en) | 2007-06-01 | 2007-06-01 | A kind of implementation method of video frequency requested program broadcasting-like services, server and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100542276C (en) |
Families Citing this family (36)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119475B (en) * | 2007-08-21 | 2010-06-02 | 中兴通讯股份有限公司 | System and method for implementing video on-demand request redirection in IPTV system |
CN101252546B (en) * | 2008-04-15 | 2012-02-29 | 中国科学技术大学 | Method and apparatus for migrating medium stream online service |
CN101668193A (en) * | 2008-09-02 | 2010-03-10 | 华为技术有限公司 | Play switching method and system |
CN101453494A (en) * | 2008-12-24 | 2009-06-10 | 深圳市同洲电子股份有限公司 | Server address obtaining method, server and digital television receiving terminal |
CN101540886B (en) * | 2009-04-15 | 2012-09-05 | 中兴通讯股份有限公司 | Realization method and system of video-on-demand business and home streaming server |
FR2949936A1 (en) * | 2009-09-04 | 2011-03-11 | Korea Electronics Telecomm | PARTICIPATING TERMINAL DEVICE, WIRELESS AND WIRELESS COUPLING SERVER FOR SUPPORTING PARTICIPATION IN A TRANSMISSION, AND METHOD FOR PROVIDING PARTICIPATION TRANSMITTING SERVICE |
CN102026035B (en) | 2009-09-10 | 2012-07-11 | 华为技术有限公司 | Method for allocating signal routing resources in video on-demand service, terminal and server |
CN102026024B (en) * | 2009-09-18 | 2013-03-20 | 中兴通讯股份有限公司 | Method, system and device for controlling pay per view (PPV) service in real time |
CN102238423B (en) * | 2010-04-21 | 2015-09-09 | 华为技术有限公司 | A kind of equipment scheduling method, Apparatus and system |
CN101883114A (en) * | 2010-06-25 | 2010-11-10 | 中兴通讯股份有限公司 | Method and system for providing media services |
CN102035671B (en) * | 2010-10-15 | 2016-05-25 | 中兴通讯股份有限公司 | A kind of method and system of Hot Spare |
CN102171995B (en) * | 2011-04-19 | 2013-09-11 | 华为技术有限公司 | Method for processing packet when server fails and router thereof |
CN102215375B (en) * | 2011-06-24 | 2018-04-27 | 中兴通讯股份有限公司 | The system of selection of the video source of the sprite of more pictures and device in multimedia conferencing |
CN102355448B (en) * | 2011-06-29 | 2015-07-01 | 北京原力创新科技有限公司 | Cloud streaming media data transmission method and system |
CN102438170B (en) * | 2011-09-28 | 2014-01-29 | 深圳市龙视传媒有限公司 | Audio and video service on demand method applied to broadcast television network, system thereof and apparatus |
CN103313093B (en) * | 2012-03-14 | 2016-09-07 | 腾讯科技(深圳)有限公司 | Carry out method and the directory system of distributed video on demand |
CN102695094B (en) * | 2012-05-15 | 2014-12-10 | 福建升腾资讯有限公司 | Method for carrying out software and hardware integrated audio/video redirection in VDI (Virtual Device Interface) environment |
CN102833591B (en) * | 2012-08-09 | 2015-08-12 | 中兴通讯股份有限公司 | The unbroken method of order program service and device in interactive Web TV system |
CN103024535A (en) * | 2012-12-25 | 2013-04-03 | 北京奇虎科技有限公司 | Video playing method, server and video playing system |
US9998354B2 (en) * | 2013-09-24 | 2018-06-12 | Netflix, Inc. | Server selection for content distribution |
CN103823727B (en) * | 2014-02-13 | 2016-04-13 | 深圳市同洲电子股份有限公司 | A kind of backup method of live recording and device |
CN105373429A (en) * | 2014-08-20 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Task scheduling method, device and system |
CN104902289B (en) * | 2015-06-29 | 2017-10-27 | 秦永红 | A kind of design method and its system of RTMP flow medium live systems Hot Spare |
CN105450675B (en) * | 2016-01-25 | 2021-07-30 | 杭州施强教育科技有限公司 | Method for selecting CDN service node by client in streaming media playing |
CN105847264A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and system of providing streaming media service |
CN106411585A (en) * | 2016-09-21 | 2017-02-15 | 深圳市智物联网络有限公司 | Server switching method, adapter, server and scheduling device |
CN108401163B (en) * | 2017-02-07 | 2021-11-19 | 中兴通讯股份有限公司 | Method and device for realizing VR live broadcast and OTT service system |
CN108737464A (en) * | 2017-04-18 | 2018-11-02 | 中兴通讯股份有限公司 | User terminal, media services realization method and system |
CN107331079B (en) * | 2017-06-06 | 2019-11-26 | 浪潮金融信息技术有限公司 | Method for processing business and device |
CN107566233B (en) * | 2017-09-30 | 2020-12-11 | 广东美的制冷设备有限公司 | Resource sharing method and device for household electrical appliance |
CN110022286B (en) * | 2018-01-08 | 2021-12-17 | 视联动力信息技术股份有限公司 | Method and device for requesting multimedia program |
CN111835549B (en) * | 2019-04-23 | 2023-09-05 | 腾讯美国有限责任公司 | Method, apparatus, computer device and medium for processing media content |
CN110347467A (en) * | 2019-07-08 | 2019-10-18 | 北京字节跳动网络技术有限公司 | A kind of data request processing method, apparatus, terminal device and storage medium |
CN112218131A (en) * | 2019-07-09 | 2021-01-12 | 中国移动通信集团吉林有限公司 | Set top box working method and device, electronic equipment and computer readable storage medium |
CN111225242A (en) * | 2020-01-17 | 2020-06-02 | 广州酷狗计算机科技有限公司 | Video playing disaster tolerance method and device and computer storage medium |
CN111479117B (en) * | 2020-04-03 | 2022-01-28 | 湖南快乐阳光互动娱乐传媒有限公司 | Live broadcast information source output method and device |
-
2007
- 2007-06-01 CN CNB2007101058917A patent/CN100542276C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101068339A (en) | 2007-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100542276C (en) | A kind of implementation method of video frequency requested program broadcasting-like services, server and client | |
US12021951B2 (en) | Method for resolving delivery path unavailability | |
EP2792123B1 (en) | Remote storage digital video recorder and related operating methods | |
US8176192B2 (en) | Networked transmission system and method for stream data | |
CN101355689B (en) | Method and system for controlling VOD of digital television as well as digital television receive terminal | |
KR100953584B1 (en) | Method, devices and system for implementing a time-shift television | |
US10368118B2 (en) | System and apparatus for managing video content recordings | |
US20090027495A1 (en) | Internet visual surveillance and management technology for telecommunications, Internet, cellular and other communications companies | |
US8005973B2 (en) | Method and system for playing video on a mobile device | |
CN101729273A (en) | Streaming media distribution system, method and device | |
JP2003506765A (en) | Method and apparatus for distributing data using a distributed storage system | |
CN101686228A (en) | Multimedia slicing switching method and system based on content slicing | |
US20100111504A1 (en) | System and method for recording and distributing media content | |
JP2005276079A (en) | Data distribution server and data distribution system | |
CN102932280A (en) | Method, device and system for realizing bandwidth control | |
US20140059121A1 (en) | Program Switching Method, Apparatus, and Media Server | |
WO2009012701A1 (en) | A notification method, apparatus and system of real time streaming protocol event | |
CN102238423B (en) | A kind of equipment scheduling method, Apparatus and system | |
CN102916828A (en) | Network switching method and device | |
CN102523485B (en) | Information distribution method and system | |
CN103051962B (en) | Program recording method and apparatus | |
CN101562626A (en) | Method, system and device for medium distribution | |
CN114650438A (en) | Video playing data processing method and device and electronic equipment | |
JP2007259469A (en) | Content distribution system, content distribution control apparatus, and content distribution method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |