CN101026732A - Method for keeping flow media session survival under pause state - Google Patents
Method for keeping flow media session survival under pause state Download PDFInfo
- Publication number
- CN101026732A CN101026732A CN 200710048340 CN200710048340A CN101026732A CN 101026732 A CN101026732 A CN 101026732A CN 200710048340 CN200710048340 CN 200710048340 CN 200710048340 A CN200710048340 A CN 200710048340A CN 101026732 A CN101026732 A CN 101026732A
- Authority
- CN
- China
- Prior art keywords
- server
- media session
- flow media
- message
- surviving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000004083 survival effect Effects 0.000 title claims description 31
- 230000007246 mechanism Effects 0.000 claims abstract description 38
- 230000004044 response Effects 0.000 claims abstract description 10
- 239000000523 sample Substances 0.000 claims description 5
- 230000003993 interaction Effects 0.000 claims description 3
- 230000008901 benefit Effects 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Abstract
Concretely, the invention is related to method for maintaining session surviving in different session surviving mechanisms of stream media. The method includes steps: (1) after sending request message of description to server, terminal receives response message from server; (2) parsing the response message, and taking out type of server, and saving it in global variable; (3) in condition of pause, the method reads out global variable, and starts up different session surviving mechanism of stream media based on different types of server. Advantages are: terminal can be adapted to office end of different stream media server automatically; terminal can start up different session surviving mechanisms of stream media in order to maintain session surviving sostenuto so that stream media session keeps surviving sostenuto when playing is paused so as to be able to recover playing operation after pause for a period of time.
Description
Technical field
The present invention relates to the streaming media playing technology, be specifically related in different flow media session survival mechanism, keep the method for session survival.
Background technology
In recent years, IPTV (broadband network TV) technology has become focus, compares with the mode of traditional broadcasting and television network, and it has the strong significant advantage of interactivity, and this advantage meets the strong day by day interactive demand of people just.
One of core technology that IP-based streaming media playing technology is the IPTV technology.
In the streaming media playing technology, comprised a lot of user oriented functional units, for example play, time-out, F.F., rewind down, withdraw from etc.Wherein, pause function still can recover to play after requiring to play a period of time suspending (may be a few minutes, also may be tens, hundreds of minute and even more), promptly continues to play from the time point that suspends.Because when the user selected to suspend, terminal and server end did not know all how long the user will suspend, therefore want still can recover to play, just must continue to keep the survival of this flow media session.
On the other hand, in stream media play system, owing to there is not unified streaming media communication consensus standard, the streaming media communication agreement that different streaming media server manufacturers is adopted all there are differences.Terminal for the streaming media server intercommunication of different vendor, just must carry out an innings end-on job, revise the stream media protocol stack of terminal, comprise signaling, flow process etc.
Keep in the survival at the flow media session behind the time-out at present, the mechanism that the streaming media server of different vendor adopts is different, terminal is connected the situation of interruption suspending when playing and may occurring with streaming media server because do not know server to adopt which kind of survival mechanisms.
Summary of the invention
Technical scheme to be solved by this invention is to provide a kind of in stream media play system, in the method for suspending maintenance flow media session survival under the state of playing.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, is suspending the method that keeps flow media session survival under the state of playing, and may further comprise the steps:
After a, terminal to server send and describe request message, receive the response message of server;
B, resolution response message are taken out type of server, and it is existed in the global variable;
C, under halted state, read global variable, start different flow media session survival mechanism according to the different server type.
Described flow media session survival mechanism comprises: the mechanism of the mechanism of regular interaction options request message, regularly mutual RTCP (real time control protocol) message, the mechanism of regularly mutual zero window probe message.
Described flow media session survival mechanism is reserved with expansion interface.
The invention has the beneficial effects as follows, terminal can be automatically and various flows media server local side carry out adaptive, and start different flow media session survival mechanism, continue survival to keep flow media session, allow flow media session suspend the lasting maintenance survival in broadcast back, so that after the time-out some time, recover broadcast once more.
The present invention is described in further detail below in conjunction with drawings and Examples.
Description of drawings
Fig. 1 is the session survival mechanism of automatic adaptive different server;
Fig. 2 is for judging whether to continue selected survival mechanisms according to the current sessions state.
Embodiment
As shown in Figure 1, terminal is after streaming media server sends the description request message, and server can respond, and this response message is divided into two parts:
Part 1 is RTSP (real-time streaming protocol) message header, comprises whether success of request, type of server etc.;
Part 2 is SDP (Session Description Protocol) content, comprises by audio/video coding type of on-demand media file etc.
Terminal can be read type of server from " Server: " field of part 1.In this field, Server: after the character string that follows closely be type of server.The type of server of general different local side manufacturer is all different.
" HwSrv " represents server A;
" UestcSrv " represents server B;
" Darwin Srv " expression Darwin server.
After taking out type of server, just can carry out different processing, start different flow media session survival mechanism according to type of server.Consider based on module thought, can adopt an integer global variable g_SrvType, the mark type of server.After taking out type of server, the value of this global variable is set.When specifically starting survival mechanisms, the value of reading this global variable, according to the difference of value, determine to start different mechanisms:
unsigned?int?g_SrvType;
#define HwSrv 1/* server A */
#define UestcSrv 2/* server B */
#define DarwinSrv 3/* Darwin server */
As shown in Figure 2, judge whether to continue selected survival mechanisms: when still being in halted state (PAUSED==GetSessionState ()), continue this mechanism of operation according to the current sessions state; When not being halted state (as broadcast state etc.), stop this mechanism.
In the present embodiment, terminal is preserved server A, server B, three kinds of flow media session survival mechanism commonly used of Darwin's server.
Server A adopts the mechanism of regular interaction options request message:
N1. terminal is sent options request message (RTSP OPTION) to streaming media server A;
N2. streaming media server A returns response message (RTSP Reply:200 OK) to terminal;
N3. terminal is returned TCP (transmission control protocol) acknowledge message (TCPACK) to streaming media server A again.
This mechanism is in case startup will periodically (be generally every 60 seconds) this process above-mentioned steps that circulates.
Server B adopts the mechanism (RTCP Receiver Report) of regularly mutual RTCP message:
N1. terminal is sent RTCP message (RTCP Receiver Report) to streaming media server B;
N2. streaming media server B returns TCP acknowledgment message (TCP ACK) to terminal.
This mechanism is in case startup will periodically (be generally every 60 seconds) this process that circulates, and promptly step N1 and N2 carry out alternately.
Darwin's server adopts the mechanism of regularly mutual zero window probe message:
N1. terminal is initiatively sent zero window notice message (TCP ZeroWindow) to Darwin's server, and this message is generally as the affirmation message of server response message, the stream media pause control messages that this response is sent at terminal;
N2. behind the notice message in receiving N1, Darwin's server sends zero window probe message (TCP ZeroWindowProbe) to terminal;
N3. behind the notice message in receiving N1, terminal is sent zero window to Darwin's server and is surveyed acknowledge message (TCP ZeroWindowProbeAck), and the tcp window size of this message terminal is set to 0.
This mechanism is in case startup will periodically (be generally every 60 seconds) reciprocal process that circulation zero window probe message and zero window are surveyed acknowledge message, and promptly step N2 and N3 carry out alternately.
In fact, except above-mentioned 3 kinds of flow media session survival mechanism, according to the difference of streaming media server manufacturer, its used survival mechanisms is also different, need ask for this information to the streaming media server manufacturer of butt joint.Flow media session survival mechanism is reserved with expansion interface, the survival mechanisms of being convenient to expand.
Claims (3)
1, suspending the method that keeps flow media session survival under the state of playing, it is characterized in that, may further comprise the steps:
After a, terminal to server send and describe request message, receive the response message of server;
B, resolution response message are taken out type of server, and it is existed in the global variable;
C, under halted state, read global variable, start different flow media session survival mechanism according to the different server type.
2, suspending the method that keeps flow media session survival under the state of playing according to claim 1, it is characterized in that described flow media session survival mechanism comprises: the mechanism of the mechanism of regular interaction options request message, regularly mutual RTCP message, the mechanism of regularly mutual zero window probe message.
3, according to claim 1 suspending the method that keeps flow media session survival under the state of playing, it is characterized in that described flow media session survival mechanism is reserved with expansion interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100483401A CN100542264C (en) | 2007-01-26 | 2007-01-26 | Suspending the method that keeps flow media session survival under the state of playing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100483401A CN100542264C (en) | 2007-01-26 | 2007-01-26 | Suspending the method that keeps flow media session survival under the state of playing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101026732A true CN101026732A (en) | 2007-08-29 |
CN100542264C CN100542264C (en) | 2009-09-16 |
Family
ID=38744574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007100483401A Expired - Fee Related CN100542264C (en) | 2007-01-26 | 2007-01-26 | Suspending the method that keeps flow media session survival under the state of playing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100542264C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658224A (en) * | 2016-12-21 | 2017-05-10 | 厦门普杰信息科技有限公司 | Method for transferring audio and video data streams based on TCP mode of DSS time sharing system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5453779A (en) * | 1994-03-15 | 1995-09-26 | International Business Machines Corporation | Scheduling policies with grouping for providing VCR control functions in a video server |
WO1997004584A2 (en) * | 1995-07-21 | 1997-02-06 | Philips Electronics N.V. | Method of receiving compressed video signals |
-
2007
- 2007-01-26 CN CNB2007100483401A patent/CN100542264C/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658224A (en) * | 2016-12-21 | 2017-05-10 | 厦门普杰信息科技有限公司 | Method for transferring audio and video data streams based on TCP mode of DSS time sharing system |
CN106658224B (en) * | 2016-12-21 | 2019-10-11 | 厦门普杰信息科技有限公司 | A method of the TCP mode transfer audio and video data streams based on DSS time-sharing system |
Also Published As
Publication number | Publication date |
---|---|
CN100542264C (en) | 2009-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107135417B (en) | A kind of throwing screen method and system of HLS protocol | |
CN102118653B (en) | Method and device for ensuring service quality of live broadcast of web television | |
CN103581712B (en) | Multi-protocol video playing method and system based on mobile terminal | |
US20140139735A1 (en) | Online Media Data Conversion Method, Online Video Playing Method and Corresponding Device | |
US20070220577A1 (en) | Method and media manager client unit for optimising network resources usage | |
US8214708B2 (en) | Video transmitting apparatus, video receiving apparatus, and video transmission system | |
CN101998174B (en) | Quick access method, server, client and system of multicast RTP (real time protocol) session | |
EP2400692A1 (en) | Method, terminal device and channel switching server for processing abnormality in channel switching | |
US20120030707A1 (en) | Methods and Arrangements for Channel Change in an IPTV Network | |
CN102075795A (en) | Method and system for releasing focus television programs | |
KR20100106383A (en) | Apparatus and method for simulcast over a variable bandwidth channel | |
CN103210642A (en) | Method for transmitting a scalable http stream for natural reproduction upon the occurrence of expression-switching during http streaming | |
US9432725B2 (en) | Method and apparatus for transmitting content to plurality of devices | |
JP2008060960A (en) | Apparatus and method for creating program guide | |
CN1939060B (en) | Method and device for promoting flow type transmission of video frequency information | |
CN101175095A (en) | Family network multimedia access apparatus and method | |
CN102523487B (en) | Breakpoint connection play method for digital televisions | |
KR101416311B1 (en) | Method for recovering a video-on-demand session | |
CN101616168A (en) | The processing method of streaming media interactive information, Apparatus and system | |
CN100542264C (en) | Suspending the method that keeps flow media session survival under the state of playing | |
EP2479984A1 (en) | Device and method for synchronizing content received from different sources | |
CN101188733A (en) | A home network multimedia access system | |
CN108235062B (en) | System and method for introducing Internet video into cable television network for playing | |
CN102523485B (en) | Information distribution method and system | |
US20150049208A1 (en) | Method, device and system for video monitoring based on universal plug and play (UPnP) |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090916 |