Embodiment
Referring to Fig. 1, the method flow diagram of the RTSP session status control that provides for the embodiment of the invention one comprises step:
101, the RTSP session status Indication message that reception server sends;
Server can send RTSP session status Indication message to the RTSP command request that server sends to the terminal by response terminal, for example the PLAY operation requests of response terminal transmission; Server also can initiatively send RTSP session status Indication message to the terminal, when for example current program request stream has arrived afterbody at the terminal, to the terminal operation of giving notice.
A RTST Range field can be carried in the said RTSP session status Indication message, also a RTST Range field can be do not carried.
102, according to said Indication message the control of RTSP session status is carried out at the terminal.
In the RTSP/PSS session status, this step specifically can for:
Judge in the RTSP session status Indication message that server sends whether carry a RTSP Range field,, the control of RTSP session status is carried out at the terminal according to the time of RTSP Range field indication if carry a RTSP Range field; If do not carry a RTSP Range field, keep the current RTSP session status in terminal.
Referring to Fig. 2, the method flow diagram of the more detailed RTSP session status control that provides for the embodiment of the invention two comprises step:
201, send the RTSP command request to server;
A RTSP Range field can be used at Play, and Pause in the order such as Setup, also can omit a RTSP Range field certainly in the RTSP command request.
The terminal can know according to the SDP description of RTSP/PSS session that the current sessions state was live or program request before sending the RTSP command request to server, this moment, the user can operate the terminal accordingly.
202, the RTSP session status Indication message that reception server sends;
Specify with step 101.
203, judge whether carry a RTSP Range field in the said Indication message;
204, if do not carry a RTSP Range field, keep the current RTSP session status in terminal;
205, if carry a RTSP Range field, whether the time of judging entrained RTSP Range field indication is less than the current live TV point time;
206, if the time of the RTSP Range in the said Indication message field indication more than or equal to the current live TV point time, and the current RTSP session status in terminal is live state, then the RTSP session status at terminal remains live state;
This situation can be referring to shown in the accompanying drawing 3:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is a live state;
2, terminal to server is initiated RTSP command request such as Play or Pause operation;
If 3 servers need indicating terminal still to remain on live state, send corresponding RTSP session status Indication message to the terminal, in Indication message, can not carry Range field; If carried RTSPRange field, its indicated time is more than or equal to the current live TV point time;
4, the terminal is not according to carrying a RTSP Range field in the Indication message, or the indicated time of a RTSP Range field of carrying is judged more than or equal to the current live TV point time and still keeps current live state.
207, if the time of the RTSP Range in the said Indication message field indication more than or equal to the current live TV point time, and the current RTSP session status in terminal is the program request state, then the RTSP session status at terminal is a live state by the program request state exchange;
This situation can be referring to shown in accompanying drawing 4 and the accompanying drawing 5, and wherein, accompanying drawing 4 is at first initiated the situation of command request for the terminal; Accompanying drawing 5 is server is initiatively initiated a situation from notifying operation to the terminal.
For accompanying drawing 4, method step is following:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is the program request state;
2, terminal to server is initiated RTSP command request such as Play or Pause operation;
If it is live state by the program request state exchange that 3 servers need indicating terminal, then in corresponding RTSP session status Indication message, carry a RTSP Range field, the indicated time is more than or equal to the current live TV point time;
4, the terminal judges by the program request state exchange to be live state according to the time of RTSP Range in the Indication message field indication more than or equal to the current live TV point time.
For accompanying drawing 5, method step is following:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is the program request state;
2, arrived afterbody at current program request stream; Server is to the terminal Indication message of giving notice; If it is live state by the program request state exchange that server needs indicating terminal; Then in corresponding notice Indication message, carry a RTSP Range field, the indicated time is more than or equal to the current live TV point time;
3, the terminal judges by the program request state exchange to be live state according to the time of RTSP Range in the Indication message field indication more than or equal to the current live TV point time.
208, if the time of the RTSP Range in the said Indication message field indication less than the current live TV point time, and the current RTSP session status in terminal is live state, then the RTSP session status at terminal converts the program request state into by live state;
This situation can be referring to shown in the accompanying drawing 6:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is a live state;
2, terminal to server is initiated RTSP command request such as Play or Pause operation;
If 3 servers need indicating terminal to convert the program request state into by live state, then in corresponding Indication message, carry a RTSP Range field, the indicated time is less than the current live TV point time;
4, the terminal converts program request state less than the judgement of current live TV point time by live state according to the time of RTSP Range in the Indication message field indication.
209, if the time of the RTSP Range in the said Indication message field indication less than the current live TV point time, and the current RTSP session status in terminal is the program request state, then the RTSP session status at terminal remains the program request state.
This situation can be referring to shown in accompanying drawing 7 and the accompanying drawing 8, and wherein, accompanying drawing 7 is at first initiated the situation of command request for the terminal; Accompanying drawing 8 is server is initiatively initiated a situation from notifying operation to the terminal.
For accompanying drawing 7, method step is following:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is the program request state;
2, terminal to server is initiated RTSP command request such as Play or Pause operation;
If 3 servers need indicating terminal still to remain on the program request state, send corresponding Indication message to the terminal, in Indication message, can not carry Range field; If carried a RTSP Range field, its indicated time is less than the current live TV point time;
4, the terminal is not according to carrying a RTSP Range field in the Indication message, or the indicated time of a RTSP Range field of carrying is judged less than the current live TV point time and still keeps current program request state.
For accompanying drawing 8, method step is following:
1, the terminal knows that according to the SDP description of RTSP/PSS session the current sessions state is the program request state;
2, arrived afterbody at current program request stream, server if server needs indicating terminal still to remain on the program request state, can not carry Range field to the terminal Indication message of giving notice in Indication message; If carried a RTSP Range field, its indicated time is less than the current live TV point time;
3, the terminal is not according to carrying a RTSP Range field in the Indication message, or the indicated time of a RTSP Range field of carrying is judged less than the current live TV point time and still keeps current program request state.
To step 209, the time of RTSP Range field indication can use clock, npt or smpte to represent in above-mentioned steps 205, and wherein clock is that absolute time is represented mode, and npt or smpte are that relative time is represented mode.If RTSP Range field uses the npt/smpte relative time to represent,, npt/smpte representes that the time of Range field indication equals the current live TV point time when equaling the now value; The time of when npt/smpte equals 0 value, representing Range field indication is the reference point time.
In a RTSP Range field, can only specify the time started, not specify the concluding time, the terminal is to carry out the control of RTSP session status according to the time started of a RTSP Range field entrained in the Indication message.
The method of the embodiment of the invention two described RTSP session status controls; Through whether carrying a RTSP Range field in the RTSP session status Indication message that the server that receives is sent; And the time of entrained RTSP Range field indication and current live TV point time carry out size relatively after; RTSP session status control is carried out at the terminal, made the terminal carry out live broadcast service and demand (telecommunication) service when changing, can dynamically enabling or forbid location, F.F., fast reverse operation; Particularly, when the user gets into demand (telecommunication) service by live broadcast service, user location, F.F., fast reverse operation that the terminal can enable originally to forbid, the program request operation that the user can be correlated with; When the user turned back to live broadcast service by demand (telecommunication) service, the user location, F.F., the fast reverse operation that originally enabled can be forbidden in the terminal, avoided the unnecessary mutual signaling of RTSP, strengthened user experience.
Describe with the method for the practical implementation under the various scenes of PSS time-shift service below, to shown in Figure 13, use the practical implementation method flow diagram of clock express time for the embodiment of the invention three like Fig. 9 to the embodiment of the invention:
Shown in Figure 9 is manual time shift, suspends the scene that recover the back, and the practical implementation process is following:
Annotate: t1/t2/t3 is the time that command request is sent at the terminal, and T1/T2/T3 is that the time of replying is received at the terminal, and T1/T2/T3 is always greater than t1/t2/t3.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; If server needs indicating terminal still to remain on live state; In response message, can not carry Range field; If do not carry Range field, the terminal can know that according to the SDP description of PSS session current PSS session is a live session, and the terminal maintains the original state constant; If in response message, carry Range field; Server is through value more than or equal to current live time T 1 of clock indication; T1 for example; The terminal equals the T1 judgement according to the clock value of receiving and still keeps current live session state, and this moment, user's forward/backward operation was forbidden at the terminal;
3, t2 terminal to server initiation constantly Pause operation requests, will trigger time shift this moment, and server is initiated the Pause operation requests at the terminal t2 safeguards an interim time shift buffering area constantly, and the user can only carry out time shift operation after the Pause time point;
4, T2 receives the message of server response Pause request in the terminal constantly, in response message, carries Range field, and the clock value is designated as one than the little value of current terminal clock value T2, such as being t2.The terminal according to the clock value t 2 that receives less than the state of T2 judgement current sessions by the live program request state that transfers to; This moment, the forward/backward of terminal enables users was operated, and server is from the current live time shift buffering area that flows to the PSS session of t2 time point opening entry simultaneously;
5, t3 moment terminal to server is initiated play operation again;
If 6 t2 do not go out the time shift buffering area constantly, server will return the t2 time and give the terminal; If the t2 time exceeds the time shift buffering area; Server will return the time started of time shift buffering area and give the terminal; In the present embodiment scene, t2 does not go out the time shift buffering area constantly, and server returns the t2 time and gives the terminal; The terminal will begin broadcast program again constantly by t2, and the PSS session of this moment still remains the program request state.
Shown in Figure 10 is automatic time shift, suspends the scene that recover the back, and the practical implementation process is following:
Annotate: t1/t2/t3 is the time that command request is sent at the terminal, and T1/T2/T3 is that the time of replying is received at the terminal, and T1/T2/T3 is always greater than t1/t2/t3.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server provides automatic time shift, and t0 is the start time point of current time shift buffering area, promptly the user can the time move on to the content before the current live TV point; If server needs indicating terminal to convert the program request state into by live state; Need in response Play message, carry Range field, through one of the clock indication value littler, such as t1 than current live TV point time T 1; The terminal judges that less than T1 current sessions is a program request according to the clock value t1 that receives, the back operation that the terminal can enables users at this moment;
3, t2 terminal to server initiation constantly Pause operation requests;
4, T2 receives the message of server response Pause request in the terminal constantly, in response message, can carry Range field, also can not carry, and this moment, the SOT state of termination maintained the program request state;
5, t3 moment terminal to server is initiated play operation again;
If 6 t2 do not go out the time shift buffering area constantly, server will return the t2 time and give the terminal; If the t2 time exceeds the time shift buffering area; Server will return the time started of time shift buffering area and give the terminal; In the present embodiment scene, t2 does not go out the time shift buffering area constantly, and server returns the t2 time and gives the terminal; The terminal will begin broadcast program again constantly by t2, and the PSS session of this moment still remains the program request state.
Shown in Figure 11 is automatic time shift, and the back is to the scene of location (SEEK), and the practical implementation process is following:
Annotate: t1/t3 is the time that command request is sent at the terminal, and T1/T3 is that the time of replying is received at the terminal, and T1/T3 is always greater than t1/t3, and t2 is back to positioning time, and T2 is the time started of time shift buffering area.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server can provide automatic time shift, and t0 is the start time point of current time shift buffering area, promptly the user can the time move on to the content before the current live TV point; If server needs indicating terminal to convert the program request state into by live state; Need in response Play message, carry Range field, through one of the clock indication value littler, such as t1 than current live TV point time T 1; The terminal judges that less than T1 current sessions is a program request according to the clock value t1 that receives, the back operation that the terminal can enables users at this moment;
3, t3 terminal to server initiation constantly back is to the Seek operation requests, and the request position is to t2;
If 4 t2 do not go out the time shift buffering area constantly, server will return the t2 time and give the terminal; If the t2 time exceeds the time shift buffering area; Server will return the time started of time shift buffering area and give the terminal; In the present embodiment scene, t2 has gone out the time shift buffering area constantly, and the time started T2 that server returns the time shift buffering area gives the terminal; The terminal will begin broadcast program constantly by T2, and the PSS session of this moment still remains the program request state.
Shown in Figure 12 is automatic time shift, and forward location (SEEK) exceeds the scene of time shift buffering area, and the practical implementation process is following:
Annotate: t1/t3/t4 is the time that command request is sent at the terminal, and T1/T3/T4 is that the time of replying is received at the terminal, and T1/T3/T4 is always greater than t1/t3/t4.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server provides automatic time shift, and t0 is the start time point of current time shift buffering area, promptly the user can the time move on to the content before the current live TV point; If server needs indicating terminal to convert the program request state into by live state; Need in response Play message, carry Range field, through one of the clock indication value littler, such as t1 than current live TV point time T 1; The terminal judges that less than T1 current sessions is a program request according to the clock value t1 that receives, the back operation that the terminal can enables users at this moment;
3, t3 terminal to server initiation constantly back is to the Seek operation requests, and the request position is arrived from t2;
If 4 t2 times did not go out the time shift buffering area, the play position t2 that server returns request gives the terminal, and the terminal will begin broadcast program constantly by t2, and the PSS session of this moment still remains the program request state;
5, t4 terminal to server initiation constantly forward direction Seek operation requests, the request position is to t5, and the t5 position has surpassed current live position t4;
If 6 servers still require the terminal to remain on the program request state, then the reproduction time that returns to the terminal of server is less than terminal current live TV point time T 4, such as t4; If live state is transferred at the server requirement terminal, then the reproduction time that returns to the terminal of server should be more than or equal to the current live TV point time T 4 at terminal, such as T4.
Scene for forward direction F.F. arrival time shift buffering area afterbody shown in Figure 13, the practical implementation process is following:
Annotate: t1 is the time that command request is sent at the terminal, and T1/T2 is that the time of replying is received at the terminal, and T1 is always greater than t1.
1, forwarding operation of t1 terminal to server initiation constantly, request is with 2 times of speed broadcast program contents, and terminal initial is in the program request state;
2, the message of T1 terminal reception server response constantly forwarding operation request, the server indicating terminal is with 2 times of normal speed forward, and this moment, the terminal still remained on the program request state;
3, t2 constantly the server programme content that detects the time shift buffering area be played to afterbody; Also promptly play when having caught up with current live content; Server sends to the terminal and arrives time shift buffering area afterbody notice, for example can carry the indication of end of stream incident through using the Announce order; If server still requires the terminal to remain on the program request state; Then in Indication message, can not carry Range field; Or have in Range the field through value of clock indication less than current live time T 2 entrained; Such as t2, the terminal still keeps current on-demand session state according to the clock value judgement of receiving, this moment, the user still can carry out back operation; If the server requirement terminal is a live state by the program request state exchange; Need in Indication message, carry Range field; Through value of clock indication more than or equal to current live TV point time T 2; Such as T2, the terminal according to the clock value T2 that receives judge current sessions be one live, the terminal will forbid that user's forward/backward operates this moment.
To shown in Figure 180, be the practical implementation method flow diagram of the embodiment of the invention four use npt express times under the various scenes of PSS time shift like Figure 14.Because npt is a relative time, need a time reference; To manual time shift, time reference can be the time in the breakpoint first time; For automatic time shift; When the user inserts just can the time move on to the content before the current live TV point; Reference point needs to be specified to the terminal in the npt message in the first time by server, and time reference can be certain time point before the terminal is inserted, such as the start time point of current time shift buffering area.
Shown in Figure 14 is manual time shift, suspends the scene that recover the back, and the practical implementation process is following:
Annotate: t1/t2/t3 is the time that command request is sent at the terminal, and T1/T2/T3 is that the time of replying is received at the terminal, and T1/T2/T3 is always greater than t1/t2/t3.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; If server needs indicating terminal still to remain on live state; In response message, can not carry Range field; If do not carry Range field, the terminal can know that according to the SDP description of PSS session current PSS session is a live session, and the terminal maintains the original state constant; If in response message, carry Range field, server is designated as the now value through npt, and the terminal still keeps current live session state according to the npt value of receiving for the judgement of now value, and this moment, user's forward/backward operation was forbidden at the terminal;
3, t2 terminal to server initiation constantly Pause operation requests; To trigger time shift this moment; Server is initiated the Pause operation requests at the terminal t2 safeguards an interim time shift buffering area constantly; T2 is the initial time of time shift buffering area, and as time reference t2 npt=0 constantly, the user can only carry out time shift operation constantly at t2;
4, T2 constantly receives the message of server response Pause request in the terminal, in response message, carries Range field, and the npt value is designated as one than the little value of current terminal n ow value, such as can being 0.The terminal according to the npt value received be 0 judge current sessions state by the live program request state that transfers to, this moment the terminal enables users the forward/backward operation, the while, server was from the current live time shift buffering area that flows to the PSS session of t2 time point opening entry;
5, t3 moment terminal to server is initiated play operation again;
If 6 t2 do not go out the time shift buffering area constantly, server will return npt=0 and give the terminal; If 2 times of t exceed the time shift buffering area; Server will return the starting position of time shift buffering area and the relative time of time reference is given the terminal; In the present embodiment scene, t 2 has gone out the time shift buffering area constantly, and server returns npt=npt1 and gives the terminal; The terminal will begin broadcast program from the starting position of time shift buffering area, and the PSS session of this moment still remains the program request state.
Shown in Figure 15 is automatic time shift, suspends the scene that recover the back, and the practical implementation process is following:
Annotate: t1/t2/t3 is the time that command request is sent at the terminal, and T1/T2/T3 is that the time of replying is received at the terminal, and T1/T2/T3 is always greater than t1/t2/t3.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server provides automatic time shift; The time reference of present embodiment is the start time point t0 of current time shift buffering area, if server needs indicating terminal to convert the program request state into by live state, need in response Play message, carry Range field; Through value littler of npt indication than the current live TV point time; Such as npt1, the terminal judges that according to the npt=npt1 that receives current sessions is a program request, the back operation that this moment, the terminal can enables users;
3, t2 terminal to server initiation constantly Pause operation requests;
4, T2 receives the message of server response Pause request in the terminal constantly, in response message, can carry Range field, also can not carry, and this moment, the SOT state of termination maintained the program request state;
5, t3 moment terminal to server is initiated play operation again;
If 6 npt2 do not go out the time shift buffering area, server will return the npt2 time and give the terminal; If the npt2 time exceeds the time shift buffering area; Server will return the starting position of time shift buffering area and the relative time of time reference is given the terminal; In the present embodiment scene, npt2 does not go out the time shift buffering area, and server returns npt2 and gives the terminal; The terminal will begin broadcast program again from npt2, and the PSS session of this moment still remains the program request state.
Shown in Figure 16 is automatic time shift, and the back is to the scene of location (SEEK), and the practical implementation process is following:
Annotate: t1/t3 is the time that command request is sent at the terminal, and T1/T3 is that the time of replying is received at the terminal, and T1/T3 is always greater than t1/t3, and t2 is back to positioning time, and T2 is the time started of time shift buffering area.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server provides automatic time shift, and the time reference of present embodiment is the start time point t0 of current time shift buffering area, and server carries Range field in response Play message; Through value littler of npt indication than the now value; Such as npt1, the terminal judges that according to the npt=npt1 that receives current sessions is a program request, the back operation that this moment, the terminal can enables users;
3, t3 terminal to server initiation constantly back is to the Seek operation requests, and the request position is to npt2;
If 4 npt2 do not go out the time shift buffering area, server will return the npt2 time and give the terminal; If the npt2 time exceeds the time shift buffering area; Server will return the time started of time shift buffering area and the relative time of time reference is given the terminal; In the present embodiment scene, npt2 does not go out the time shift buffering area constantly, and server returns the npt2 time and gives the terminal; The terminal will begin broadcast program from the npt2 time, and the PSS session of this moment still remains the program request state.
Shown in Figure 17 is automatic time shift, and forward location (SEEK) exceeds the scene of time shift buffering area, and the practical implementation process is following:
Annotate: t1/t3/t4 is the time that command request is sent at the terminal, and T1/T3/T4 is that the time of replying is received at the terminal, and T1/T3/T4 is always greater than t1/t3/t4.
1, PSS programme televised live of t1 terminal initial access is constantly initiated a Play operation to server, and request begins to play programme televised live;
2, the message of T1 terminal reception server response constantly Play request; Server provides automatic time shift; The time reference of present embodiment is the start time point t0 of current time shift buffering area, and server is through value littler than the now value of npt indication, such as npt1; The terminal judges that according to the npt value npt1 that receives current sessions is a program request, the back operation that the terminal can enables users at this moment;
3, t3 terminal to server initiation constantly back is to the Seek operation requests, and the request position is to npt2;
If 4 npt2 do not go out the time shift buffering area, the play position npt2 that server returns request gives the terminal, and the terminal will begin broadcast program from npt2, and the PSS session of this moment still remains the program request state;
5, t4 terminal to server initiation constantly forward direction Seek operation requests, the request position is to npt5, and the npt5 position has surpassed current live position npt4;
If 6 servers still require the terminal to remain on the program request state, then the reproduction time that returns to the terminal of server is less than terminal current live TV point time now, such as npt4; If live state is transferred at the server requirement terminal, then server returns npt=now to the terminal.
Scene for forward direction F.F. arrival time shift buffering area afterbody shown in Figure 180, the practical implementation process is following:
Annotate: t1 is the time that command request is sent at the terminal, and T1/T2 is that the time of replying is received at the terminal, and T1 is always greater than t1.
1, forwarding operation of t1 terminal to server initiation constantly, request is with 2 times of speed broadcast program contents, and terminal initial is in the program request state;
2, the message of T1 terminal reception server response constantly forwarding operation request; The server indicating terminal is with 2 times of normal speed forward; This moment, the terminal still remained on the program request state; Can not carry Range field in the Indication message this moment, or have in Range the field through the value of npt=npt1 (less than the now value) entrained, and terminal judges still keeps current on-demand session state;
3, t2 constantly the server programme content that detects the time shift buffering area be played to afterbody; Also promptly play when having caught up with current live content; Server sends to the terminal and arrives time shift buffering area afterbody notice, for example can carry the indication of end of stream incident through using the Announce order; If server still requires the terminal to remain on the program request state; Then in Indication message, can not carry Range field; Or have in Range the field through value of npt indication less than the now value entrained; Such as npt2, the terminal still keeps current on-demand session state according to the npt=npt2 value judgement of receiving, this moment, the user still can carry out back operation; If the server requirement terminal is a live state by the program request state exchange, need in Indication message, carry Range field, through indication npt=now value, the terminal judges current sessions be one live, the terminal will forbid that user's forward/backward operates this moment.
More than be with the practical implementation process under the various scenes of PSS time shift; Use clock and npt to represent the time of a RTSP Range field respectively; Method to the control of embodiment of the invention RTSP session status is illustrated; It is understandable that the situation of shifting state when the method for the embodiment of the invention is not limited to PSS.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium, and said storage medium can be read-only memory, disk or CD etc.
Corresponding to the method for the embodiment of the invention, shown in figure 19, the structure chart of the device of the RTSP session status control that provides for the embodiment of the invention five comprises:
Receive indicating member 910, be used for the RTSP session status Indication message that reception server sends;
Session status control unit 920 is used for according to said Indication message real time streaming media protocol conversation state control being carried out at the terminal.
Said session status control unit 920 comprises:
Time range is judged comparison module 921; Be used for judging whether the Indication message that server sends carries a real-time stream media protocol time range field, and the time of entrained real-time stream media protocol time range field indication is carried out the size comparison with the current live TV point time;
Live state keeps module 922; Be used for not carrying a real-time stream media protocol time range field at the Indication message that server sends; The time of a perhaps entrained real-time stream media protocol time range field indication during time, keeps the current real-time stream media protocol live state in terminal more than or equal to current live TV point;
The program request state keeps module 923; Be used for not carrying a real-time stream media protocol time range field at the Indication message that server sends; The time of a perhaps entrained real-time stream media protocol time range field indication during time, keeps the current real-time stream media protocol program request state in terminal less than current live TV point;
Program request relay broadcasting/living broadcast module 924; The time that the entrained real-time stream media protocol time range field of Indication message that is used for sending at server is indicated, during the time, the current real-time stream media protocol program request state in conversion terminal was a live state more than or equal to current live TV point;
Live turning point broadcasting module 925; The time that the entrained real-time stream media protocol time range field of Indication message that is used for sending at server is indicated, during the time, the current real-time stream media protocol live state in conversion terminal was the program request state less than current live TV point.
The device of the embodiment of the invention five described RTSP session status controls; Can be integrated in the terminal; Also can separate independent existence with the terminal; Through receiving the RTSP session status Indication message that indicating member 910 reception servers send; Judge that by time range whether carrying a real-time stream media protocol time range field in the Indication message that 921 pairs of servers of comparison module send judges, and time and the current live TV point time size of an entrained real-time stream media protocol time range field indication compared, keep module 922, the maintenance of program request state module 923, program request relay broadcasting/living broadcast module 924 and live turning point broadcasting module 925 by live state respectively; RTSP session status to the terminal is dynamically controlled; When the user changed demand (telecommunication) service over to by live broadcast service, user location, F.F., fast reverse operation that the terminal can enable originally to forbid made the user can carry out corresponding time shift operation; When the user turned back to live broadcast service by demand (telecommunication) service, the user location, F.F., the fast reverse operation that originally enabled can be forbidden in the terminal, avoided unnecessary RTSP signaling exchange, strengthened user experience.
If above-mentioned RTSP session status control device is integrated in the terminal, and is shown in figure 20, the embodiment of the invention six provides a kind of terminal 200, comprises RTSP session status control device 900, is used for sending the RTSP command request to server; The RTSP session status Indication message that reception server sends; And carry out the RTSP session status according to said Indication message and control.
On the terminal-based that the embodiment of the invention six provides; Shown in figure 20; The frame diagram of the system of the RTSP session status control that provides for the embodiment of the invention seven; Comprise terminal 200 and server 300, said terminal 200 comprises RTSP session status control device 900, is used for sending the RTSP command request to server 300; The RTSP session status Indication message that reception server sends; And carry out the RTSP session status according to said Indication message and control; Said server 300 is used for sending RTSP session status Indication message to terminal 200.
If above-mentioned RTSP session status control device separates independent existence with the terminal; The embodiment of the invention eight provides the system of another kind of RTSP session status control; Shown in figure 21; Comprise terminal 100, server 300 and RTSP session status control device 900, said terminal 100 is used for sending the RTSP command request to server; Said server 300 is used for sending RTSP session status Indication message to RTSP session status control device; Said RTSP session status control device 900 is used for the RTSP session status Indication message that reception server sends; And according to said Indication message the RTSP session status is carried out at the terminal and control.
The embodiment of the invention is to realize the dynamic control of server to the SOT state of termination through the definition of expanding the time range that an existing RTSP Range field carries; Make the terminal when carrying out the conversion of live broadcast service and demand (telecommunication) service; Can dynamically enabling or forbid location, F.F., fast reverse operation; Avoid the unnecessary mutual signaling of RTSP, strengthened user experience.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Certainly; The embodiment of the invention also can have multiple; For example can realize the control of server through a field of other type of expansion RTSP to the SOT state of termination; Under the situation that does not deviate from embodiment of the invention spirit and essence thereof, those skilled in the art should make various corresponding changes and distortion according to the embodiment of the invention, but these corresponding changes and distortion all should belong to the protection range of embodiment of the invention accompanying claims.