CN101534326A - An access method, a device and a system for an RTSP terminal - Google Patents

An access method, a device and a system for an RTSP terminal Download PDF

Info

Publication number
CN101534326A
CN101534326A CN200910130993.3A CN200910130993A CN101534326A CN 101534326 A CN101534326 A CN 101534326A CN 200910130993 A CN200910130993 A CN 200910130993A CN 101534326 A CN101534326 A CN 101534326A
Authority
CN
China
Prior art keywords
media file
request
media
network
burst
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
Application number
CN200910130993.3A
Other languages
Chinese (zh)
Other versions
CN101534326B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200910130993.3A priority Critical patent/CN101534326B/en
Publication of CN101534326A publication Critical patent/CN101534326A/en
Priority to PCT/CN2010/071817 priority patent/WO2010121525A1/en
Application granted granted Critical
Publication of CN101534326B publication Critical patent/CN101534326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/613Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination

Abstract

The invention provides an access method, a device and a system for an RTSP terminal, the embodiment mode of which is applied to the network communications filed; wherein the method comprises: receiving the media play request sent by the RTSP terminal, wherein the media play request carries the media file needed to be played and the requested play time point; calculating the media file segment corresponding to the play time point based on the seed file in the P2P network in which the play time point and the media file are positioned; constructing a conversation with the P2P network, requesting the media file segment corresponding to the play time point from the P2P network; sending the media file segment corresponding to the play time point to the RTSP terminal; requesting the subsequent media file segments of the media file segment corresponding to the play time point from the P2P network; and sending the subsequent media file segments to the RTSP terminal. The method, the device and the system have the advantage of ensuring the RTSP terminal to acquire the resources in the P2P network.

Description

A kind of access method of RTSP terminal, Apparatus and system
Technical field
The present invention relates to network communication field, relate in particular to a kind of access method, Apparatus and system of RTSP terminal.
Background technology
Real-time streaming protocol (Real Time Streaming Protocol, RTSP) be the agreement that is exclusively used in media-on-demand control, based on server/customer end constitution, client, server can initiatively send message to the other side, in RTSP, the method that RTSP terminal (RTSP Client) is obtained media resource is, after RTSP Client successfully sets up session by RTSP agreement and RTSP Server, adopt the RTSP agreement between RTSP Server and RTSP Client, to obtain media resource as the control protocol of media delivery.
When realizing the scheme of prior art, the inventor finds that prior art has following technical problem:
Because the RTSP Client in the technical scheme that prior art provides only can obtain media resource from RTSP Server, its can not with peer-to-peer network (Peer-to-Peer, P2P) set up communication, so RTSP Client can not obtain Internet resources by visit P2P network from the P2P network.
Summary of the invention
Embodiment of the present invention provides a kind of access method, Apparatus and system of RTSP terminal, and described method, Apparatus and system can be visited the P2P network, obtain Internet resources from the P2P network.
The specific embodiment of the present invention provides a kind of access method of RTSP terminal, and this method comprises:
Receive the media play request that the RTSP terminal sends, described media play request is carried the media file of needs broadcast and the play time of request;
Seed file in the P2P network calculates the media file burst of described play time correspondence according to play time in the described media play request and described media file;
After setting up the session with described P2P network,, and the media file burst of described play time correspondence sent to described RTSP terminal to the media file burst of the described play time correspondence of described P2P network requests;
Subsequent media file burst to the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
The specific embodiment of the invention also provides a kind of access means of RTSP terminal, and this device comprises:
Receiving element is used to receive the media play request that the RTSP terminal sends, and described media play request is carried the media file of needs broadcast and the play time of request;
Computing unit is used for the media file burst that play time and the seed file of described media file in the P2P network according to described media play request calculate described play time correspondence;
Request unit, be used to set up the session with described P2P network after, to the media file burst of the described play time correspondence of described P2P network requests, and the media file burst of described play time correspondence sent to described RTSP terminal;
The described request unit also is used for the subsequent media file burst to the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
The specific embodiment of the invention also provides a kind of access system of RTSP terminal, comprising: RTSP terminal and reciprocity P2P network, this system also comprises: the signaling media gateway
Described signaling media gateway is used to receive the media play request that described RTSP terminal sends, and described media play request is carried the media file of needs broadcast and the play time of request; And according to play time in the described media play request and described media file the seed file in described P2P network calculates the media file burst of described play time correspondence;
Described signaling media gateway also is used for after the session of setting up with described P2P network, to the media file burst of the described play time correspondence of described P2P network requests, and the media file burst of described play time correspondence is sent to described RTSP terminal; And to the subsequent media file burst of the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
By the above-mentioned technical scheme that provides as can be seen, the media file burst that play time in the media play request that the technical scheme of the embodiment of the invention sends according to the RTSP terminal and seed file are confirmed this play time correspondence, thereby to this media file burst of P2P network requests, and ask the subsequent media file burst of this media file burst, and this media file burst and subsequent media file burst all sent to the RTSP terminal, thereby make the RTSP terminal can obtain the purpose of P2P network of network resource.
Description of drawings
The flow chart of the access method of a kind of RTSP terminal that Fig. 1 provides for one embodiment of the invention.
The flow chart of the access method of a kind of RTSP terminal that Fig. 2 provides for another embodiment of the present invention.
The flow chart of the access method of a kind of RTSP terminal that Fig. 3 provides for further embodiment of this invention.
Fig. 4 goes back the flow chart that an embodiment provides a kind of access method of RTSP terminal for invention.
The structure chart of the access means of a kind of RTSP terminal that Fig. 5 provides for the specific embodiment of the invention.
The structure chart of the access system of a kind of RTSP terminal that Fig. 6 provides for the specific embodiment of the invention.
Embodiment
The specific embodiment of the invention provides a kind of access method of RTSP terminal, and this method comprises: receive the media play request that the RTSP terminal sends, this media play request is carried the media file of needs broadcast and the play time of request; Calculate the media file burst of this play time correspondence according to play time in this media play request and the seed file of this media file in the P2P network; After setting up the session with the P2P network,, and the media file burst of this play time correspondence sent to this RTSP terminal to the media file burst of this play time correspondence of P2P network requests; Subsequent media file burst to the media file burst of this this play time correspondence of P2P network requests; And this subsequent media file burst sent to this RTSP terminal.The method that the specific embodiment of the invention provides is confirmed the media file burst of this time correspondence according to reproduction time in the media play request of RTSP terminal transmission and the seed file of this media file in the P2P network, thereby to this media file burst of P2P network requests, and ask the subsequent media file burst of this media file burst, and this media file burst and subsequent media file burst all sent to the RTSP terminal, thereby make the RTSP terminal can obtain the resource of P2P network.
The invention provides an embodiment, present embodiment provides a kind of access method of RTSP terminal, and this method comprises the steps: as shown in Figure 1
After the Media Inquiries request that step 11, reception RTSP terminal send, when the seed file that inquires this medium correspondence is present in the P2P network, receive this seed file, and generate Session Description Protocol (Session Description Protocol, SDP) information according to this seed file; And this SDP information is carried at Media Inquiries request responding message sends to the RTSP terminal;
After request Setup message is set up in the session that step 12, reception RTSP terminal send according to this SDP information, set up the RTSP session;
Step 13, receive the media play request that the RTSP terminal sends, and calculate the media file burst of this time correspondence according to the play time in this media play request and this seed file;
Above-mentioned media play request can be carried media file and the play time that needs broadcast.
Above-mentioned playing request can for, initial media play request or positioning media playing request, when being initial media play request, play time in this initial media play request can for, the initial play time of initial playing request, when being the positioning media playing request, the play time in this positioning media playing request can be, the positioning playing time point of positioning playing request.
Above-mentioned according to the play time in this media play request and this seed file calculate concrete grammar that the media file burst of this time correspondence realizes can for:
Here suppose that media play request is initial media play request, this initial play time of carrying is 0; The medium of supposing the RTSP terminal request are 0-100 minute media file, the media file burst of this media file correspondence is 10 in the seed file of supposing to exist in the P2P network, be respectively burst 1, burst 2...... burst 10, and its time corresponding is respectively 0-10 minute, 10-20 minute ... 90-100 minute; The media file burst that then calculates this initial play time correspondence is a burst 1.
Here suppose that playing request is the positioning media playing request, the positioning playing time point that this carries is 20; The medium of supposing the RTSP terminal request are 0-100 minute media file, the media file burst of this media file correspondence is 10 in the seed file of supposing to exist in the P2P network, be respectively burst 1, burst 2...... burst 10, and its time corresponding is respectively 0-10 minute, 10-20 minute ... 90-100 minute; The media file burst that then calculates this positioning playing time point correspondence is a burst 3.
After the session of step 14, foundation and P2P network,, and the media file burst of this play time correspondence sent to the RTSP terminal to the media file burst of this play time correspondence of P2P network requests;
Step 15, to the subsequent media file burst of the media file burst of this play time correspondence of P2P network requests; And this subsequent media file burst sent to the RTSP terminal.
Optionally, said method can also comprise: after this subsequent media file burst transmission finishes or receives ending request, close the session with the P2P network.
Above-mentioned ending request can for, stop request or suspend request.
Above-mentioned steps all can be finished by the signaling media gateway.
Optionally, said method when ending request when suspending request, after the session of closing with the P2P network, can also comprise:
Step 16, receive the positioning media playing request that the RTSP terminal sends, and the media file burst that calculates this positioning playing time point correspondence according to the positioning playing time point and the seed file of this positioning media playing request; The concrete grammar of its calculating can be referring to the associated description in the step 13.
Step 17, rebulid the session with the P2P network, and to the media file burst of this positioning playing time point correspondence of P2P network requests, and the media file burst of this positioning playing time point correspondence is sent to the RTSP terminal;
Step 18, to the subsequent media file burst of the media file burst of this positioning playing time point correspondence of P2P network requests; And the subsequent media file burst of the media file burst of this positioning playing time point correspondence sent to the RTSP terminal; After transmission finishes or receives the time-out request, close session once more with the P2P network.
Time-out request in the above-mentioned steps 18 also can replace to and stop request.
Above-mentioned steps 11~12 is optional step.
The method that the specific embodiment of the invention provides is after setting up the RTSP session with the RTSP terminal, the media file burst that play time in the media play request that sends according to the RTSP terminal and seed file are confirmed this play time correspondence, thereby to this media file burst of P2P network requests, and ask the subsequent media file burst of this media file burst, and this media file burst and subsequent media file burst all sent to the RTSP terminal, thereby make the RTSP terminal can obtain the resource of P2P network.
The invention provides another embodiment, present embodiment provides a kind of access method of RTSP terminal, the technology scene of present embodiment can for, the method that present embodiment provides is that example describes with the media play flow process, this method is finished between RTSP Client, signaling media gateway and P2P network, supposes that here there is corresponding seed file in the media file of RTSPClient request in the P2P network.This method comprises the steps: as shown in Figure 2
Step 21, RTSP Client send Media Inquiries request Describe; Can carry the media file that needs inquiry among this Describe;
Whether step 22, signaling media gateway exist to the seed file of this media file correspondence of P2P network inquiry;
Step 23, P2P network return seed file and exist, and this seed file is returned to the signaling media gateway;
Step 24, signaling media gateway generate SDP information according to this seed file, and the response message 200OK of this SDP information by Describe sent to RTSP Client;
The above-mentioned concrete grammar that generates SDP information according to seed file can go out the relevant parameter of medium according to the information extraction of seed file for, signaling media gateway, and relevant parameter is combined into SDP information.Above-mentioned relevant parameter can for, the code/decode format of medium, sampling frequency parameter and media transmission protocol etc.
Step 25, RTSP Client set up the RTSP session according to this SDP information and signaling media gateway;
The above-mentioned concrete grammar of setting up the RTSP session can for, RTSPClient sends session to the signaling media gateway and sets up request Setup message; The signaling media gateway is confirmed the address of the medium of RTSP Client request, and this address is sent to RTSP Client by acknowledge message 200ok; Show that simultaneously session sets up successfully.
Step 26, RTSP Client send initial media play request PLAY;
The media file that above-mentioned PLAY carries the initial play time of request and needs to play;
Step 27, signaling media gateway calculate the media file burst of this initial play time correspondence according to this initial play time and seed file, and set up session with the P2P network, and after session is set up successfully, send acknowledge message 200ok to RTSP Client;
Step 28, signaling media gateway are transmitted to RTSP Client to the media file burst of this initial play time correspondence of P2P network requests after receiving the media file burst;
Step 29, signaling media gateway also send to RTSPClient with this next media file burst to next media file burst of the media file burst of this initial play time correspondence of P2P network requests;
When step 30, repeating step 29 all send to RTSP Client or receive the ending request of RTSP Client transmission until all follow-up media file bursts of the media file burst of this initial play time correspondence, close session with the P2P network.
Optionally, the function that the signaling media gateway in the present embodiment is born also can be divided and is arranged, and when branch was arranged, SGW was responsible for the mutual of signaling, and media gateway is responsible for the transmission of Media Stream.
Another embodiment provided by the invention connects RTSP Client and P2P network by the signaling media gateway is provided, thereby make the signaling media gateway when the PLAY request that receives RTSP Client transmission, the media file burst that calculates this initial play time correspondence according to the initial play time in this PLAY request and seed file, and to this media file burst of P2P network requests and follow-up media file burst, and this media file burst and follow-up media file burst sent to RTSP Client, thereby make RTSP Client can visit the P2P network, and to obtain Internet resources from the P2P network be media file.
The specific embodiment of the invention provides another embodiment, present embodiment also provides a kind of access method of RTSP terminal, the technology scene that present embodiment provides can for, the method that present embodiment provides is finished between RTSPClient, signaling media gateway and P2P network, supposes that here there is corresponding seed file in the media file of RTSP Client request at the P2P network; Present embodiment is that example describes with initial media play request and time-out request.The method that present embodiment provides comprises the steps: as shown in Figure 3
Step 31~38 are identical with above-mentioned steps 21~28;
Step 39, RTSP Client send to the signaling media gateway and suspend request Pause;
Step 391, signaling media gateway are closed the session with the P2P network, and represent to close successfully with the session of P2P network to RTSP Client transmission acknowledge message 200ok.
Optionally, said method continues the request media file as wanting behind time-out, and then the concrete grammar of Shi Xianing can be above-mentioned steps 21~30; Different places be that the play time of the request that PLAY carries in the step 26 is for continuing play time.
Another embodiment provided by the invention connects RTSP Client and P2P network by the signaling media gateway is provided, thereby make RTSP Client can visit the P2P network, from the P2P network, obtain Internet resources, the RTSP Client of present embodiment can ask to make the signaling media gateway to suspend the transmission of media file burst by sending to suspend, and has made things convenient for the user.
The invention provides an also embodiment, present embodiment also provides a kind of access method of RTSP terminal, the technology scene of present embodiment can for, the method that present embodiment provides is finished between RTSP Client, signaling media gateway and P2P network, supposes that here there is corresponding seed file in the media file of RTSP Client request at the P2P network; Present embodiment is that example describes with broadcast and positioning playing request.The method that present embodiment provides comprises the steps: as shown in Figure 4
Step 41~48 are identical with above-mentioned steps 21~28;
Step 49, RTSP Client send positioning media playing request PLAY to the signaling media gateway, carry the positioning playing time point of positioning playing in this positioning media playing request;
Step 50, signaling media gateway stop behind P2P network requests media file burst, calculate the media file burst of this positioning playing time point correspondence according to this positioning playing time point and seed file; And rebulid session with the P2P network, and after RTSP Client transmission 200ok represents to set up successfully with the session of P2P network, to the media file burst of this positioning playing time point correspondence of P2P network requests, the media file burst of this positioning playing time point correspondence is sent to RTSP Client;
Step 501, signaling media gateway are to the subsequent media file burst of the media file burst of this positioning playing time point correspondence of P2P network requests, and this subsequent media file burst sent to RTSPClient, after all media file bursts transmissions finish, close session with the P2P network.
When if the memory location of the follow-up media file burst media file burst corresponding with the positioning playing time point is in the different terminals of P2P network in above-mentioned steps, after the signaling media gateway also needs to set up the P2P BlueDrama once more, at the follow-up media file burst of request.
Certainly in actual conditions, when receive suspend or cease and desist order after, also can close session with the P2P network.
An also embodiment provided by the invention connects RTSP Client and P2P network by the signaling media gateway is provided, thereby make RTSP Client can visit the P2P network, from the P2P network, obtain Internet resources, present embodiment can make RTSP Client determine the positioning playing time point according to actual needs by the positioning media playing request, and this positioning playing time point is carried in the request of positioning playing medium the pairing media file of its needed positioning playing time point of request, further facilitated the user.
The specific embodiment of the invention also provides a kind of access means of RTSP terminal, this device comprises as shown in Figure 5: receiving element 51, be used to receive the media play request that the RTSP terminal sends, this media play request is carried the media file of needs broadcast and the play time of request; Computing unit 52 is used for calculating according to the play time of this media play request and the seed file of this media file in the P2P network media file burst of this play time correspondence; Request unit 53, be used to set up the session with this P2P network after, to the media file burst of this this play time correspondence of P2P network requests, and the media file burst of this play time correspondence sent to this RTSP terminal; This request unit 53 also is used for the subsequent media file burst to the media file burst of this this play time correspondence of P2P network requests; And this subsequent media file burst sent to described RTSP terminal.Aforementioned calculation unit 52 specifically can just repeat no more referring to the associated description among the method embodiment here according to the method that this play time and this seed file calculate the media file burst of this play time correspondence.
Optionally, this device can also comprise:
Closing unit 54 is used for closing the session with the P2P network after all subsequent media file burst transmissions finish or receive ending request.
Optionally, receiving element 51 also is used to receive the Media Inquiries request that the RTSP terminal sends, and the media file that needs inquiry is carried in this request;
This device can also comprise: query unit 55 is used for obtaining from reciprocity P2P network according to this Media Inquiries request the seed file of this media file correspondence;
Generation unit 56 is used for generating Session Description Protocol SDP information according to this seed file, and this SDP information is sent to this RTSP terminal;
Set up unit 57, be used for after this receiving element 51 receives the session foundation request Setup message of this RTSP terminal according to this SDP information transmission, setting up the RTSP session with this RTSP terminal.
Optionally, request unit 53 specifically can comprise:
Set up request module 531, be used for after the session of foundation and P2P network, to the media file burst of this play time correspondence of P2P network requests;
Forwarding module 532 is used for the media file burst of this play time correspondence is transmitted to the RTSP terminal;
Order request module 533 is used for all the media file bursts after the P2P network is asked the media file burst of this play time correspondence in order;
Or the positioning media playing request of reception RTSP terminal transmission, and calculate the media file burst of this positioning playing time point correspondence according to the positioning playing time point in this positioning media playing request, after sending to the RTSP terminal to the media file burst of this positioning playing time point correspondence of P2P network requests and with the media file burst of this positioning playing time point correspondence, ask the subsequent media file burst of the media file burst of this positioning playing time point correspondence in order to the P2P network;
Forwarding module 532 also is used for this subsequent media file burst is transmitted to the RTSP terminal.
Optionally, said apparatus can be positioned at the signaling media gateway.
After the device that the specific embodiment of the invention provides receives media play request by receiving element 51, computing unit 52 is confirmed the media file burst of this play time correspondence according to play time in the media play request of RTSP terminal transmission and the seed file of this media file in the P2P network, thereby by request unit 53 to this media file burst of P2P network requests, and ask the subsequent media file burst of this media file burst, and this media file burst and subsequent media file burst all sent to the RTSP terminal, thereby make the RTSP terminal can obtain the resource of P2P network.
The specific embodiment of the invention also provides a kind of access system of RTSP terminal, and this system comprises as shown in Figure 6: RTSP terminal 61 and P2P network 62, and this system also comprises: signaling media gateway 63; Signaling media gateway 63 specifically can be used to receive the media play request that the RTSP terminal sends, and this media play request is carried the media file of needs broadcast and the play time of request; And calculate the media file burst of this play time correspondence according to the play time in this media play request and the seed file of this media file in the P2P network; After this signaling media gateway 63 also is used to set up session with this P2P network,, the media file burst of this play time correspondence is sent to this RTSP terminal to the media file burst of this this play time correspondence of P2P network requests; And to the subsequent media file burst of the media file burst of this this play time correspondence of P2P network requests; And this subsequent media file burst sent to described RTSP terminal.The above-mentioned method that calculates the media file burst of this play time correspondence according to this play time and this seed file specifically can just not given unnecessary details here referring to the associated description among the method embodiment.
Optional, this signaling media gateway 63 can also be used for closing the session with the P2P network after all subsequent media file burst transmissions finish or receive ending request.
Optionally, after this signaling media gateway 63 can also be used to receive the Media Inquiries request of RTSP terminal transmission, the media file that needs inquiry was carried in this request; From the P2P network, obtain the seed file of this media file correspondence according to this Media Inquiries request; And, this SDP information is sent to this RTSP terminal according to this seed file generation Session Description Protocol SDP information; And after this receiving element 631 receives the session foundation request Setup message of this RTSP terminal according to this SDP information transmission, set up the RTSP session with this RTSP terminal.
In the signaling media gateway in the system that the specific embodiment of the invention provides receive media play request after, confirm the media file burst of this play time correspondence according to play time in the media play request of RTSP terminal 61 transmissions and the seed file of this media file in P2P network 62, thereby to P2P network 62 these media file bursts of request, and ask the subsequent media file burst of this media file burst, and this media file burst and subsequent media file burst all sent to RTSP terminal 61, thereby make the RTSP terminal can obtain the resource of P2P network.
" reception " speech in the embodiment of the invention can be understood as and initiatively obtains from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
In sum, the technical scheme that the specific embodiment of the invention provides has the RTSP of making Client visit P2P network, and obtains the advantage of Internet resources from the P2P network.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (15)

1, a kind of access method of RTSP terminal is characterized in that, described method comprises:
Receive the media play request that the RTSP terminal sends, described media play request is carried the media file of needs broadcast and the play time of request;
Seed file in the P2P network calculates the media file burst of described play time correspondence according to play time in the described media play request and described media file;
After setting up the session with described P2P network,, and the media file burst of described play time correspondence sent to described RTSP terminal to the media file burst of the described play time correspondence of described P2P network requests;
Subsequent media file burst to the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
2, method according to claim 1 is characterized in that, described media play request is initial playing request or positioning playing request;
When described playing request was initial playing request, the time in the described playing request was the initial play time of described initial playing request;
When described playing request was the positioning playing request, the time in the described playing request was the positioning playing time point of described positioning playing request.
3, method according to claim 1 is characterized in that, described method also comprised before the media play request that receives the transmission of RTSP terminal:
Receive the Media Inquiries request that the RTSP terminal sends, described request is carried the media file that needs inquiry;
From reciprocity P2P network, obtain the seed file of described media file correspondence according to described Media Inquiries request;
Generate Session Description Protocol SDP information according to described seed file, and described SDP information is sent to described RTSP terminal;
After receiving the session foundation request Setup message of described RTSP terminal, set up the RTSP session with described RTSP terminal according to described SDP information transmission.
According to any described method among the claim 1-3, it is characterized in that 4, described method also comprises after described subsequent media file burst is sent to described RTSP terminal:
After all subsequent media file bursts transmissions finish or receive ending request, close session with the P2P network.
5, method according to claim 4 is characterized in that, described ending request comprises: suspend request or stop request.
6, method according to claim 5 is characterized in that, ending request is for suspending request as described, and then described method also comprises after the session of closing with described P2P network:
Receive the positioning playing request that described RTSP terminal sends, and the media file burst that calculates described positioning playing time point correspondence according to the positioning playing time point and the described seed file of described positioning playing request;
Rebulid the session with described P2P network, and to the media file burst of the described positioning playing time point of described P2P network requests correspondence, and the media file burst of described positioning playing time point correspondence is sent to described RTSP terminal;
Subsequent media file burst to the media file burst of the described positioning playing time point of described P2P network requests correspondence; And the subsequent media file burst of the media file burst of institute's rheme play time correspondence sent to described RTSP terminal; After all subsequent media file transmissions finish or receive the time-out request or stop request, close session once more with described P2P network.
7, method according to claim 4 is characterized in that, the subsequent media file burst of described media file burst to the described play time correspondence of described P2P network requests specifically comprises:
Ask all the media file bursts behind the media file burst of described play time correspondence in order to described P2P network;
Or the positioning playing request of reception RTSP terminal transmission, and calculate the media file burst of described positioning playing time point correspondence according to the positioning playing time point in the described positioning playing request, after sending to described RTSP terminal, ask the subsequent media file burst of the media file burst of described positioning playing time point correspondence in order to described P2P network to the media file burst of the described positioning playing time point of described P2P network requests correspondence and with the media file burst of described positioning playing time point correspondence.
8, a kind of access means of RTSP terminal is characterized in that, described device comprises:
Receiving element is used to receive the media play request that the RTSP terminal sends, and described media play request is carried the media file of needs broadcast and the play time of request;
Computing unit is used for the media file burst that play time and the seed file of described media file in the P2P network according to described media play request calculate described play time correspondence;
Request unit, be used to set up the session with described P2P network after, to the media file burst of the described play time correspondence of described P2P network requests, and the media file burst of described play time correspondence sent to described RTSP terminal;
The described request unit also is used for the subsequent media file burst to the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
9, device according to claim 8 is characterized in that,
Described receiving element also is used to receive the Media Inquiries request that the RTSP terminal sends, and described request is carried the media file that needs inquiry;
Described device also comprises:
Query unit is used for obtaining from reciprocity P2P network according to described Media Inquiries request the seed file of described media file correspondence;
Generation unit is used for generating Session Description Protocol SDP information according to described seed file, and described SDP information is sent to described RTSP terminal;
Set up the unit, be used for after described receiving element receives the session foundation request Setup message of described RTSP terminal according to described SDP information transmission, setting up the RTSP session with described RTSP terminal.
10, device according to claim 8 is characterized in that, the described request unit specifically comprises:
Set up request module, be used for after the session of foundation and P2P network, to the media file burst of the described play time correspondence of P2P network requests;
Forwarding module is used for the media file burst of described play time correspondence is transmitted to the RTSP terminal;
The order request module is used for all the media file bursts after the P2P network is asked the media file burst of described play time correspondence in order;
Or the positioning media playing request of reception RTSP terminal transmission, and calculate the media file burst of described positioning playing time point according to the positioning playing time point in the described positioning media playing request, after sending to the RTSP terminal to the media file burst of the described positioning playing time point of P2P network requests correspondence and with the media file burst of described positioning playing time point correspondence, ask the subsequent media file burst of the media file burst of described positioning playing time point correspondence in order to the P2P network;
Described forwarding module also is used for described subsequent media file burst is transmitted to the RTSP terminal.
11, according to Claim 8 any described device-10 is characterized in that described device also comprises:
Closing unit is used for closing the session with the P2P network after all subsequent media file burst transmissions finish or receive ending request.
12, according to Claim 8 any described device is characterized in that described device is positioned at the signaling media gateway-10.
13, a kind of access system of RTSP terminal comprises: RTSP terminal and reciprocity P2P network is characterized in that described system also comprises: the signaling media gateway;
Described signaling media gateway is used to receive the media play request that described RTSP terminal sends, and described media play request is carried the media file of needs broadcast and the play time of request; And according to play time in the described media play request and described media file the seed file in described P2P network calculates the media file burst of described play time correspondence;
Described signaling media gateway also is used for after the session of setting up with described P2P network, to the media file burst of the described play time correspondence of described P2P network requests, and the media file burst of described play time correspondence is sent to described RTSP terminal; And to the subsequent media file burst of the media file burst of the described play time correspondence of described P2P network requests; And described subsequent media file burst sent to described RTSP terminal.
14, system according to claim 13 is characterized in that, described signaling media gateway also is used for closing the session with the P2P network after all subsequent media file burst transmissions finish or receive ending request.
15, system according to claim 13 is characterized in that, described signaling media gateway also is used to receive the Media Inquiries request that described RTSP terminal sends, and described request is carried the media file that needs inquiry; And after from the P2P network, obtaining the seed file of described media file correspondence according to described Media Inquiries request; Generate Session Description Protocol SDP information according to described seed file, and described SDP information is sent to described RTSP terminal;
Described signaling media gateway also is used for setting up the RTSP session with described RTSP terminal after receiving the session foundation request Setup message of described RTSP terminal according to described SDP information transmission.
CN200910130993.3A 2009-04-21 2009-04-21 An access method, a device and a system for an RTSP terminal Active CN101534326B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200910130993.3A CN101534326B (en) 2009-04-21 2009-04-21 An access method, a device and a system for an RTSP terminal
PCT/CN2010/071817 WO2010121525A1 (en) 2009-04-21 2010-04-16 Method, apparatus and system for a real time streaming protocol terminal to obtain media resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910130993.3A CN101534326B (en) 2009-04-21 2009-04-21 An access method, a device and a system for an RTSP terminal

Publications (2)

Publication Number Publication Date
CN101534326A true CN101534326A (en) 2009-09-16
CN101534326B CN101534326B (en) 2011-12-07

Family

ID=41104713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910130993.3A Active CN101534326B (en) 2009-04-21 2009-04-21 An access method, a device and a system for an RTSP terminal

Country Status (2)

Country Link
CN (1) CN101534326B (en)
WO (1) WO2010121525A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010121525A1 (en) * 2009-04-21 2010-10-28 华为技术有限公司 Method, apparatus and system for a real time streaming protocol terminal to obtain media resources
CN102761550A (en) * 2012-07-04 2012-10-31 青岛海信传媒网络技术有限公司 Method, device and system for implementing streaming media
CN103024289A (en) * 2012-12-28 2013-04-03 天脉聚源(北京)传媒科技有限公司 Method and device for editing live stream on basis of M3U8 listing protocol
CN103634616A (en) * 2012-08-27 2014-03-12 中兴通讯股份有限公司 Cloud storage-based streaming media video-on-demand method and apparatus
CN108270845A (en) * 2017-12-13 2018-07-10 武汉市烽视威科技有限公司 A kind of P2P VOD systems and method based on RTSP
CN112153457A (en) * 2020-09-10 2020-12-29 Oppo(重庆)智能科技有限公司 Wireless screen projection connection method and device, computer storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1738583A4 (en) * 2004-03-03 2009-08-19 Packetvideo Network Solutions System and method for retrieving digital multimedia content from a network node
US20060159068A1 (en) * 2005-01-20 2006-07-20 Nokia Corporation Supporting service requests during media data transfer
KR20080004503A (en) * 2005-03-23 2008-01-09 알까뗄 루슨트 System and method for effectuating playlist seeking with respect to digital multimedia content from a network node
CN101094107A (en) * 2006-06-21 2007-12-26 北京网视天元信息技术有限公司 System and method for accurate measuring transmission effect of P2P stream media netwrok for video / audio programs
CN101534326B (en) * 2009-04-21 2011-12-07 华为技术有限公司 An access method, a device and a system for an RTSP terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010121525A1 (en) * 2009-04-21 2010-10-28 华为技术有限公司 Method, apparatus and system for a real time streaming protocol terminal to obtain media resources
CN102761550A (en) * 2012-07-04 2012-10-31 青岛海信传媒网络技术有限公司 Method, device and system for implementing streaming media
CN102761550B (en) * 2012-07-04 2015-09-23 青岛海信传媒网络技术有限公司 Realize the method for streaming media service, Apparatus and system
CN103634616A (en) * 2012-08-27 2014-03-12 中兴通讯股份有限公司 Cloud storage-based streaming media video-on-demand method and apparatus
CN103634616B (en) * 2012-08-27 2018-04-17 中兴通讯股份有限公司 A kind of stream media ordering method and device based on cloud storage
CN103024289A (en) * 2012-12-28 2013-04-03 天脉聚源(北京)传媒科技有限公司 Method and device for editing live stream on basis of M3U8 listing protocol
CN103024289B (en) * 2012-12-28 2016-06-15 天脉聚源(北京)传媒科技有限公司 A kind of edit methods based on M3U8 list protocol live TV stream and device
CN108270845A (en) * 2017-12-13 2018-07-10 武汉市烽视威科技有限公司 A kind of P2P VOD systems and method based on RTSP
CN112153457A (en) * 2020-09-10 2020-12-29 Oppo(重庆)智能科技有限公司 Wireless screen projection connection method and device, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2010121525A1 (en) 2010-10-28
CN101534326B (en) 2011-12-07

Similar Documents

Publication Publication Date Title
CN101534326B (en) An access method, a device and a system for an RTSP terminal
US10728601B2 (en) Enhanced streaming source change
US9282448B2 (en) Method, system and apparatus for providing streaming media service
CN102325182B (en) Audio-video sharing method and system
CN108877804B (en) Voice service method, system, electronic device and storage medium
CN103002069A (en) Domain name resolution method, device and system
CN104160676B (en) For the method and apparatus of the QoS support of machine to machine application
WO2016191516A1 (en) Audio data buffering
WO2019200631A1 (en) Methods for uploading and downloading streaming media resource, distribution system, and streaming media server
CN110198478B (en) Interactive recording and broadcasting method, system, client, device, equipment and storage medium
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN105791093B (en) Virtual objects presentation method and device
CN106416149A (en) Method and systems for optimizing bandwidth utilization in a multi-participant full mesh peer-to-peer video session
CN109963171A (en) Transmitting of Multi-media Information method, transmission device and storage medium
CN103826139A (en) CDN system, watching server and streaming media data transmission method
CN104735400A (en) Method and gateway equipment for SIP client side in video monitoring system to have access to RTSP media equipment
WO2013127163A1 (en) Call terminal enrollment method and device
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN104283681A (en) Method, device and system for verifying legality of user
CN104125145A (en) Web browser based communication method, web browser based communication equipment and web browser based communication system
WO2015027721A1 (en) Terminal status subscription method, apparatus and system
CN104022845A (en) Method, apparatus and system for adjusting bit rate of data block
CN102571409B (en) Service request management system and method for realizing service across-terminal application
CN101656947B (en) Establishing method, device and system of cross-heterogeneous-network service sharing

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