CN102916950A - Method and system for transmitting streaming media - Google Patents

Method and system for transmitting streaming media Download PDF

Info

Publication number
CN102916950A
CN102916950A CN2012103851177A CN201210385117A CN102916950A CN 102916950 A CN102916950 A CN 102916950A CN 2012103851177 A CN2012103851177 A CN 2012103851177A CN 201210385117 A CN201210385117 A CN 201210385117A CN 102916950 A CN102916950 A CN 102916950A
Authority
CN
China
Prior art keywords
server
time
delay
transport stream
stream 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.)
Pending
Application number
CN2012103851177A
Other languages
Chinese (zh)
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2012103851177A priority Critical patent/CN102916950A/en
Publication of CN102916950A publication Critical patent/CN102916950A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for transmitting a streaming media. The method comprises the following steps: establishing connection between a first server and a second server, wherein at least one transit server is respectively connected with the first server and the second server; respectively obtaining the delay times, which are respectively consumed by directly transmitting the streaming media to the second server and by transmitting the streaming media to the second server through the transit server, by using the first server; and finally comparing the delay times, and performing corresponding processing according to the result.

Description

A kind of flow-medium transmission method and system
Technical field
The invention belongs to the instant messaging field, relate in particular to a kind of flow-medium transmission method and system.
Background technology
Along with the develop rapidly of informationized society, various meanss of communication such as Fetion, QQ etc. are generally used by people, and except individual application, the instant communication mode of some enterprise versions also is familiar with by popular gradually, such as video conference etc.In the video conference practical application, whether smooth playing plays key effect to the Web conference quality to audio frequency and video.Yet in Streaming Media actual transmissions process, because a variety of causes the audio, video data propagation delay time usually occurs long, thereby has had a strong impact on the instantaneity of video conference middle pitch video render.
Summary of the invention
The invention provides a kind of flow-medium transmission method and system to address the above problem.
The invention provides a kind of flow-medium transmission method, may further comprise the steps.First server is set up and being connected of second server, and at least one transfer server is set up respectively and being connected of described first server and second server.Described first server is obtained respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media.The more described direct transport stream media of described first server reach the time of delay that arrives described second server by described transfer server transport stream media to the time of delay of described second server, and handle accordingly according to comparative result.
The invention provides a kind of stream media transmission system, comprise first server, at least one transfer server and second server, described first server connects described second server, and described at least one transfer server connects respectively described first server and second server.Described first server, be used for obtaining respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media, also be used for the time of delay that more described direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media, and handle accordingly according to comparative result.Described transfer server is used for setting up respectively and being connected of described first server and second server.Described second server is used for being connected of respectively foundation and first server and transfer server.
Compared to prior art, according to flow-medium transmission method provided by the invention and system, first server is set up and being connected of second server, and at least one transfer server being connected of foundation and first server and second server respectively.By setting up different streaming media paths, increased the diversity of transmission means.First server is obtained respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media, and more direct transport stream media handle accordingly according to comparative result to time of delay of second server and by the time of delay of transfer server transport stream media to second server.So, according to selecting optimal path transport stream media data different time of delays, effectively guaranteed the instantaneity of audio, video data transmission.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the flow-medium transmission method that the first preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of the stream media transmission system that the first preferred embodiment according to the present invention provides;
Figure 3 shows that the flow chart of the flow-medium transmission method that the second preferred embodiment according to the present invention provides;
Figure 4 shows that the schematic diagram of the stream media transmission system that the second preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the flow-medium transmission method that the first preferred embodiment according to the present invention provides.As shown in Figure 1, the flow chart of the flow-medium transmission method that provides of the first preferred embodiment of the present invention comprises step 101 ~ 103.
Step 101: first server is set up and being connected of second server, and transfer server is set up respectively and being connected of described first server and second server.
Particularly, the first client is connected with described first server, and sends stream medium data to described first server, and the second client is connected with described second server, and sends the described stream medium data of request receiving to described second server.
Step 102: described first server is obtained respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media.
Particularly, if the direct transport stream media of first server to second server, self all can obtain described first server and second server time of delay.Similarly, if first server is passed through transfer server transport stream media to second server, then the propagation delay time from the first server to the transfer server can directly be obtained by first server or transfer server, and the propagation delay time from the transfer server to the second server can directly be obtained by transfer server or second server.
In this, first server obtain by transfer server transport stream media to the method for second server time of delay can for, after transfer server is notified first server with the self transmission Streaming Media to the time of delay of second server, first server is calculated the time of delay sum of transport stream media to time of delay of transfer server and transfer server transport stream media to second server, or transfer server calculate the time of delay of first server transport stream media to time of delay of transfer server and transfer server transport stream media to second server be worth and notify first server.
Step 103: the more described direct transport stream media of described first server reach the time of delay that arrives described second server by described transfer server transport stream media to the time of delay of described second server, and handle accordingly according to comparative result.
Particularly, the more direct transport stream media of first server arrive the time of delay of described second server and arrive the time of delay of described second server by transfer server transport stream media, if the former is less than or equal to the latter, first server directly sends stream medium data to described second server.If the former is greater than the latter, first server arrives described second server by described transfer server transport stream media.
For example, if first server obtain direct transport stream media to time of delay of second server be 100ms.First server obtain self transport stream media to time of delay of transfer server be 40ms, transfer server obtains self transport stream media and is 30ms and notifies first server to time of delay of described second server, then first server calculate self by transfer server transport stream media to time of delay of second server be 40ms+30ms=70ms.The more direct transport stream media of first server to time of delay of second server greater than by the time of delay of transfer server transport stream media to second server, then first server selects to pass through transfer server transport stream media to second server.
Figure 2 shows that the schematic diagram of the stream media transmission system that the first preferred embodiment according to the present invention provides.As shown in Figure 2, the stream media transmission system that the first preferred embodiment of the present invention provides comprises first server 201, transfer server 202 and second server 203, described first server 201 connects described second server 203, and described transfer server 202 connects respectively described first server 201 and second server 203.Described first server 201, be used for obtaining respectively the time of delay that direct transport stream media arrive the time of delay of described second server 203 and arrive described second server 203 by described transfer server 202 transport stream media, also be used for the time of delay that more described direct transport stream media arrive the time of delay of described second server 203 and arrive described second server 203 by described transfer server 202 transport stream media, and handle accordingly according to comparative result.Described transfer server 202 is used for setting up respectively and being connected of described first server 201 and second server 203.Described second server 203 is used for setting up respectively and being connected of first server 201 and transfer server 202.Operating process about said system is described with above-mentioned method, therefore repeat no more in this.
Figure 3 shows that the flow chart of the flow-medium transmission method that the second preferred embodiment according to the present invention provides.As shown in Figure 3, the flow-medium transmission method that provides of the second preferred embodiment of the present invention comprises step 301 ~ 303.
Figure 4 shows that the schematic diagram of the stream media transmission system that the second preferred embodiment according to the present invention provides.As shown in Figure 4, the stream media transmission system that the second preferred embodiment of the present invention provides comprises first server 401, the first transfer server 402, the second transfer server 403 and second server 404, described first server 401 connects described second server 404, described the first transfer server 402 connects respectively described first server 401, second server 404 and the second transfer server 403, and described the second transfer server 403 connects respectively described first server 401, second server 404 and the first transfer server 402.
Below in conjunction with Fig. 3 and Fig. 4 explanation when there being at least two transfer servers, and first server by described at least two transfer server transport stream media to the second server computational methods of time of delay.
Step 301: first server is set up and being connected of second server, and at least two transfer servers are set up respectively and being connected of described first server and second server.
Particularly, the annexation between the described transfer server can be distinguished separately and is connected with first server and second server, when also can be connected with first server and second server, interconnects between the described transfer server.In the present embodiment, interconnect between each transfer server.In the practical application, can select as required arbitrary connected mode, to this present invention and be not construed as limiting.
Step 302: described first server is obtained respectively direct transport stream media to the time of delay of described second server and is passed through each transfer server transport stream media to the different time of delays of described second server.
Particularly, when first server 401 by the first transfer server 402 and the second transfer server 403 transport stream media during to second server 404, if first server 401 transport stream media to the time of delay of the first transfer server 402 be T1, the first transfer server 402 transport stream media are T2 to the time of delay of the second transfer server 403, the second transfer server 403 transport stream media to the time of delay of second server 404 be T3.The mode that first server 401 is calculated T1+T2+T3 is, the second transfer server 403 is notified T2+T3 first server 401 or is notified respectively first server 401 with T2 and T3, also can notify respectively first server 401 with T2, the second transfer server 403 with T3 by the first transfer server 402.When first server 401 is only passed through the first transfer server 402 transport stream media to second server 404, perhaps only pass through the second transfer server 403 transport stream media to second server 404, and direct transport stream media are to the second server account form of 404 time of delays, similar with method described in Fig. 1 embodiment, therefore repeat no more in this.In the present embodiment, to describe as example by two transfer server transport stream media, in other embodiment, when by two above transfer server transport stream media, the method of the account form of time of delay and the present embodiment explanation is similar, therefore repeat no more in this.
Step 303: the more described direct transport stream media of described first server reach the different time of delays that arrive described second server by described each transfer server transport stream media to the time of delay of described second server, and handle accordingly according to comparative result.
Particularly, the more described direct transport stream media of first server arrive the time of delay of described second server and arrive the different time of delays of described second server by described each transfer server transport stream media, obtain wherein minimum value, the respective path that described first server is chosen minimum delay time is transmitted described stream medium data.In this, if described minimum delay time is a plurality of, described first server is chosen the described stream medium data of arbitrary path transmission corresponding to described a plurality of minimum delay time at random.
For example, if first server is calculated by the first transfer server and the second transfer server transport stream media, the first transfer server is with the time of delay T2=60ms notice first server of self transmission Streaming Media to the second transfer server, the second transfer server is with the time of delay T3=80ms notice first server of self transmission Streaming Media to second server, first server is obtained self transport stream media to T1=20ms time of delay of the first transfer server, and then first server computing relay time A is T1+T2+T3=160ms.In addition, it is 210ms to B time of delay of second server that first server is also obtained self direct transport stream media, and only calculates by the first transfer server transport stream media and be 120ms, only be 180ms by the second transfer server transport stream media to D time of delay of second server to C time of delay of second server.First server is A time of delay, B, C and the D of different transmission path relatively, chooses path corresponding to minimum value C, namely only passes through the first transfer server transport stream media to second server.
In sum, the flow-medium transmission method that preferred embodiment provides according to the present invention and system, first server set up and being connected of second server, and at least one transfer server being connected of foundation and first server and second server respectively.By setting up different streaming media paths, increased the diversity of transmission means.First server is obtained respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media, and more direct transport stream media handle accordingly according to comparative result to time of delay of second server and by the time of delay of transfer server transport stream media to second server.So, according to selecting optimal path transport stream media data different time of delays, effectively guaranteed the instantaneity of audio, video data transmission.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a flow-medium transmission method is characterized in that, may further comprise the steps:
First server is set up and being connected of second server, and at least one transfer server is set up respectively and being connected of described first server and second server;
Described first server is obtained respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media;
The more described direct transport stream media of described first server reach the time of delay that arrives described second server by described transfer server transport stream media to the time of delay of described second server, and handle accordingly according to comparative result.
2. method according to claim 1, it is characterized in that, if described transfer server is at least two, described first server is obtained direct transport stream media to the time of delay of described second server and is passed through each transfer server transport stream media to the different time of delays of described second server, and obtain the direct transport stream media of described first server to time of delay of described second server and by the minimum value of each transfer server transport stream media to the different time of delays of described second server, the respective path that described first server is chosen minimum delay time is transmitted described stream medium data.
3. method according to claim 2 is characterized in that, if described minimum delay time is at least two, described first server is chosen the described stream medium data of path transmission corresponding to described minimum delay time at random.
4. method according to claim 1, it is characterized in that, if described transfer server is one, the more described direct transport stream media of described first server are to time of delay and the described time of delay that arrives described second server by transfer server transport stream media of described second server, if the former is less than or equal to the latter, described first server directly sends stream medium data to described second server.
5. method according to claim 1, it is characterized in that, if described transfer server is one, the more described direct transport stream media of described first server passed through the time of delay that transfer server transport stream media arrive described second server greater than described to the time of delay of described second server, and first server arrives described second server by described transfer server transport stream media.
6. method according to claim 1, it is characterized in that, described first server obtain by transfer server transport stream media to the method for second server time of delay can for, after described transfer server is notified first server with the self transmission Streaming Media to the time of delay of described second server, described first server is calculated the time of delay sum of transport stream media to time of delay of described transfer server and described transfer server transport stream media to second server, or transfer server calculate the time of delay of described first server transport stream media to time of delay of described transfer server and described transfer server transport stream media to second server with value and notify described first server.
7. method according to claim 1, it is characterized in that, the first client is connected with described first server, and sends stream medium data to described first server, the second client is connected with described second server, and sends the described stream medium data of request receiving to described second server.
8. stream media transmission system, it is characterized in that, comprise first server, at least one transfer server and second server, described first server connects described second server, described at least one transfer server connects respectively described first server and second server
Described first server is used for obtaining respectively the time of delay that direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media,
Also be used for the time of delay that more described direct transport stream media arrive the time of delay of described second server and arrive described second server by described transfer server transport stream media, and handle accordingly according to comparative result;
Described transfer server is used for setting up respectively and being connected of described first server and second server;
Described second server is used for being connected of respectively foundation and first server and transfer server.
CN2012103851177A 2012-10-12 2012-10-12 Method and system for transmitting streaming media Pending CN102916950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103851177A CN102916950A (en) 2012-10-12 2012-10-12 Method and system for transmitting streaming media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103851177A CN102916950A (en) 2012-10-12 2012-10-12 Method and system for transmitting streaming media

Publications (1)

Publication Number Publication Date
CN102916950A true CN102916950A (en) 2013-02-06

Family

ID=47615184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103851177A Pending CN102916950A (en) 2012-10-12 2012-10-12 Method and system for transmitting streaming media

Country Status (1)

Country Link
CN (1) CN102916950A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796794A (en) * 2015-04-29 2015-07-22 无锡天脉聚源传媒科技有限公司 Video transmission path determination method and device
CN104954321A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Connection switching method, device and system
CN104954320A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Method, device and system for establishing connection
CN107070953A (en) * 2017-06-09 2017-08-18 武汉虹旭信息技术有限责任公司 Link guard system and its method based on Dynamic Programming
CN113595894A (en) * 2021-07-28 2021-11-02 海尔数字科技(青岛)有限公司 Communication method, device, equipment and medium between service nodes and client nodes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731768A (en) * 2004-08-05 2006-02-08 阿尔卡特公司 Method for forwarding traffic in a connectionless communications network
CN101924678A (en) * 2009-06-09 2010-12-22 华为技术有限公司 Flow localizing method and device in P2P (Point-to-Point) direct broadcasting system
CN102017714A (en) * 2008-01-22 2011-04-13 北电网络有限公司 Path selection for a wireless system with relays
CN102405624A (en) * 2011-04-29 2012-04-04 华为技术有限公司 Real-time data transmission method and device
CN102651701A (en) * 2011-02-28 2012-08-29 腾讯科技(深圳)有限公司 Method and device for building audio and video communication connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731768A (en) * 2004-08-05 2006-02-08 阿尔卡特公司 Method for forwarding traffic in a connectionless communications network
CN102017714A (en) * 2008-01-22 2011-04-13 北电网络有限公司 Path selection for a wireless system with relays
CN101924678A (en) * 2009-06-09 2010-12-22 华为技术有限公司 Flow localizing method and device in P2P (Point-to-Point) direct broadcasting system
CN102651701A (en) * 2011-02-28 2012-08-29 腾讯科技(深圳)有限公司 Method and device for building audio and video communication connection
CN102405624A (en) * 2011-04-29 2012-04-04 华为技术有限公司 Real-time data transmission method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954321A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Connection switching method, device and system
CN104954320A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Method, device and system for establishing connection
CN104954320B (en) * 2014-03-25 2019-12-06 北京奇虎科技有限公司 method, device and system for establishing connection
CN104796794A (en) * 2015-04-29 2015-07-22 无锡天脉聚源传媒科技有限公司 Video transmission path determination method and device
CN107070953A (en) * 2017-06-09 2017-08-18 武汉虹旭信息技术有限责任公司 Link guard system and its method based on Dynamic Programming
CN107070953B (en) * 2017-06-09 2019-11-01 武汉虹旭信息技术有限责任公司 Link guard system and its method based on Dynamic Programming
CN113595894A (en) * 2021-07-28 2021-11-02 海尔数字科技(青岛)有限公司 Communication method, device, equipment and medium between service nodes and client nodes

Similar Documents

Publication Publication Date Title
KR101636842B1 (en) Techniques for improved multicast content delivery
CN102916950A (en) Method and system for transmitting streaming media
US9246973B2 (en) Identifying and transitioning to an improved VoIP session
CN104883618B (en) Programme televised live tries method, apparatus and system
CN105765925B (en) In the progress run by the network equipment between service conversation the available bandwidth of distributed network method and relevant device
CN106416149A (en) Method and systems for optimizing bandwidth utilization in a multi-participant full mesh peer-to-peer video session
US20120324122A1 (en) Method and apparatus for server-side adaptive streaming
WO2014186757A3 (en) Multi-tier push hybrid service control architecture for large scale conferencing over information centric network, icn
KR101231208B1 (en) Method for providing peering suggestion list, method for establishing p2p network, p2p application apparatus, terminal for establishing p2p network and network apparatus
US9332224B2 (en) Adaptive video streaming for communication sessions
CN104333728B (en) Audio video transmission regulates and controls method, apparatus, system and computer readable storage medium
WO2012134150A3 (en) Method and system for providing multimedia content sharing service while conducting communication service
CN104902111A (en) Web RTC-based method, equipment and system for establishing multi party call
CN111617466A (en) Method and device for determining coding format and method for realizing cloud game
Afzal et al. Multipath MMT-based approach for streaming high quality video over multiple wireless access networks
CN113038064B (en) Mobile terminal conference system
KR20150026405A (en) Method for transmitting and receiving voice packet and electronic device implementing the same
JP7420796B2 (en) Increase video bitrate while maintaining video quality
KR20160029498A (en) Method and System for Providing Video Stream, and Relaying Apparatus
JP5532045B2 (en) Communications system
US20120203903A1 (en) Content distribution system
EP2654311A1 (en) Synchronization method and synchronization apparatus for multicast group quick access, and terminal
Kim et al. Supporting seamless mobility for P2P live streaming
US10805044B2 (en) Optimizing delay-sensitive network-based communications with latency guidance
CN104205765A (en) HOLD announcement configuration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130206