CN100542264C - Suspending the method that keeps flow media session survival under the state of playing - Google Patents

Suspending the method that keeps flow media session survival under the state of playing Download PDF

Info

Publication number
CN100542264C
CN100542264C CNB2007100483401A CN200710048340A CN100542264C CN 100542264 C CN100542264 C CN 100542264C CN B2007100483401 A CNB2007100483401 A CN B2007100483401A CN 200710048340 A CN200710048340 A CN 200710048340A CN 100542264 C CN100542264 C CN 100542264C
Authority
CN
China
Prior art keywords
server
message
terminal
media session
flow media
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.)
Expired - Fee Related
Application number
CNB2007100483401A
Other languages
Chinese (zh)
Other versions
CN101026732A (en
Inventor
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNB2007100483401A priority Critical patent/CN100542264C/en
Publication of CN101026732A publication Critical patent/CN101026732A/en
Application granted granted Critical
Publication of CN100542264C publication Critical patent/CN100542264C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

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.Technical scheme to be solved by this invention is to be provided at and to suspend the method that the state of playing keeps flow media session survival down.The technical scheme that adopts may further comprise the steps: after a. terminal to server sends and describes request message, receive the response message of server; B. resolution response message is 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.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.

Description

Suspending the method that keeps flow media session survival under the state of playing
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 IRTV 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:200OK) 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;
Adopt the mechanism of regular interaction options request message as server, then carry out following steps:
C1-1. terminal to server sends options request message, enters step c1-2;
C1-2. server returns response message to terminal, enters step c1-3;
C1-3. terminal is returned the transmission control protocol acknowledge message to server again, returns step c1-1;
Adopt regularly the mechanism of RTCP message alternately as server, then carry out following steps:
C2-1. terminal to server sends RTCP message, enters step c2-2;
C2-2. server returns the transmission control protocol acknowledge message to terminal, returns step c2-1;
Adopt regularly the mechanism of zero window probe message alternately as server, then carry out following steps:
C3-1. terminal is initiatively sent the zero window notice message to server, enters step c3-2;
C3-2. server sends the zero window probe message to terminal after receiving the zero window notice message, enters step c3-3;
C3-3. terminal to server sends zero window and surveys acknowledge message, and returns step c3-2.
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, described expansion interface is used to expand survival mechanisms.
CNB2007100483401A 2007-01-26 2007-01-26 Suspending the method that keeps flow media session survival under the state of playing Expired - Fee Related CN100542264C (en)

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 CN101026732A (en) 2007-08-29
CN100542264C true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1144436A (en) * 1994-03-15 1997-03-05 国际商业机器公司 Scheduling policies with grouping for providing VCR control functions in video server
CN1191652A (en) * 1995-07-21 1998-08-26 菲利浦电子有限公司 Method of sending and receiving compressed video signals

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1144436A (en) * 1994-03-15 1997-03-05 国际商业机器公司 Scheduling policies with grouping for providing VCR control functions in video server
CN1191652A (en) * 1995-07-21 1998-08-26 菲利浦电子有限公司 Method of sending and receiving compressed video signals

Also Published As

Publication number Publication date
CN101026732A (en) 2007-08-29

Similar Documents

Publication Publication Date Title
US10368111B2 (en) Digital television channel trending
CN103581712B (en) Multi-protocol video playing method and system based on mobile terminal
CN107135417B (en) A kind of throwing screen method and system of HLS protocol
US20140139735A1 (en) Online Media Data Conversion Method, Online Video Playing Method and Corresponding Device
US20080310496A1 (en) Real-Time Key Frame Generation
AU2013346022A1 (en) Information processing device, information processing method, and program
CN101998174B (en) Quick access method, server, client and system of multicast RTP (real time protocol) session
CN101827251B (en) Method and device for playing network streaming media
CN102075795A (en) Method and system for releasing focus television programs
US20120030707A1 (en) Methods and Arrangements for Channel Change in an IPTV Network
CN108574877B (en) Live broadcast method, anchor terminal, audience terminal, equipment, system and storage medium
US9485331B2 (en) Program switching method, apparatus, and media server
CN110418189A (en) A kind of low latency can be used for transmitting game, high frame per second audio/video transmission method
CN101287095B (en) Implementing method and system for recorded broadcast service of stream media of meeting television
EP2564551B1 (en) Method and apparatus for transmitting content to plurality of devices
CN103404158A (en) Methods and apparatuses for resuming paused media
CN102523487B (en) Breakpoint connection play method for digital televisions
CN100542264C (en) Suspending the method that keeps flow media session survival under the state of playing
CN1874230A (en) System and method for playing advertisement based on remote control of stream media in broadband Internet
US20100107202A1 (en) Method of transmission of a digital content stream and corresponding method of reception
KR20060113766A (en) Storage of advanced video coding(avc) parameter sets in avc file format
EP2914011A1 (en) Media playing method and device
EP2479984A1 (en) Device and method for synchronizing content received from different sources
CN101616168A (en) The processing method of streaming media interactive information, Apparatus and system
CN102740131B (en) Based on the IPTV method and system of RTP

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