CN102769611A - Method and system for achieving recording and playing - Google Patents

Method and system for achieving recording and playing Download PDF

Info

Publication number
CN102769611A
CN102769611A CN2012102103982A CN201210210398A CN102769611A CN 102769611 A CN102769611 A CN 102769611A CN 2012102103982 A CN2012102103982 A CN 2012102103982A CN 201210210398 A CN201210210398 A CN 201210210398A CN 102769611 A CN102769611 A CN 102769611A
Authority
CN
China
Prior art keywords
server
receiving terminal
medium data
stream medium
district
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
CN2012102103982A
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 CN2012102103982A priority Critical patent/CN102769611A/en
Publication of CN102769611A publication Critical patent/CN102769611A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a system for achieving recording and playing. The method comprises the following steps: firstly, a transmitting terminal and a receiving terminal are respectively connected with a server, and streaming media data is transmitted to the server from the transmitting terminal; secondly, the server caches the streaming media data, and makes and transmits a processing policy to the receiving terminal according to the sizes of the streaming media data and the buffer area of the server; and lastly, the receiving terminal executes corresponding process according to the received processing policy.

Description

A kind of method and system that realize recorded broadcast
Technical field
The invention belongs to the instant messaging field, relate in particular to a kind of method and system that realize recorded broadcast.
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 the individual used, the instant communication mode of some enterprise versions also was familiar with by popular gradually, such as video conference etc.In actual use, whether the smoothness of audio/video flow broadcast plays key effect to the Web conference quality.In existing video conference, during the client terminal playing audio frequency and video, usually occur playing slack phenomenon, had a strong impact on the quality of video conference.
Summary of the invention
The present invention provides a kind of method and system that realize recorded broadcast to address the above problem.
The present invention provides a kind of method that realizes recorded broadcast, may further comprise the steps.Transmitting terminal and receiving terminal connect with server respectively, and said transmitting terminal sends stream medium data to said server.The said stream medium data of said server buffer, and big or small according to the said stream medium data size and the said server buffers district of buffer memory, formulate and also send processing policy to receiving terminal.Said receiving terminal carries out handled according to the said processing policy that receives.
The present invention provides a kind of system that realizes recorded broadcast, comprises transmitting terminal, server and receiving terminal, and said transmitting terminal connects said server, and said server connects said receiving terminal.Said transmitting terminal after being used for connecting with server, sends stream medium data to said server.Said server is used for the said stream medium data of buffer memory, and big or small according to the said stream medium data size and the said server buffers district of buffer memory, formulates and also sends processing policy to receiving terminal.Said receiving terminal is used for carrying out handled according to the said processing policy that receives.
Compared to prior art; Method and system according to realization recorded broadcast provided by the invention; Transmitting terminal and receiving terminal connect with server respectively; Behind the stream medium data that server receives and the said transmitting terminal of buffer memory sends,, formulate and send processing policy to receiving terminal according to the said stream medium data size and the said server buffers district size of buffer memory.Said receiving terminal carries out handled according to the said processing policy that receives.So, receiving terminal is made handled respectively according to the Different Strategies that server sends behind the server buffer stream medium data, guaranteed the Streaming Media smooth playing under the different situations, has promoted the play quality of audio frequency and video.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
The flow chart of the method for the realization recorded broadcast that provides for preferred embodiment according to the present invention shown in Figure 1;
The sketch map of the system of the realization recorded broadcast that provides for preferred embodiment according to the present invention shown in Figure 2.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
The flow chart of the method for the realization recorded broadcast that provides for preferred embodiment according to the present invention shown in Figure 1.As shown in Figure 1, the method for the realization recorded broadcast that preferred embodiment of the present invention provides comprises step 101 ~ 103.
Step 101: transmitting terminal and receiving terminal connect with server respectively, and said transmitting terminal sends stream medium data to said server.
Particularly, transmitting terminal foundation is connected with server, and sends stream medium data to server.In addition, at least one receiving terminal foundation is connected with server, and receiving terminal is set self buffer limiting value and buffering area initial value and also notified said server, and said receiving terminal setting self buffer size is the buffering area initial value.Wherein, the time that said receiving terminal connects, can be before transmitting terminal and server connect, also can be after transmitting terminal and server connect or when transmitting terminal and server connect, this present invention is not limited.
Step 102: the said stream medium data of said server buffer, and big or small according to the said stream medium data size and the said server buffers district of buffer memory, formulate and also send processing policy to receiving terminal.
Particularly, behind the stream medium data that the server receiving end/sending end sends, be buffered in the buffering area of server.In this, the buffer size of said server is no more than the memory size of server self, and said buffer size accounts for the concrete ratio of server memory size, can be provided with voluntarily according to actual needs by server, and this present invention is not limited.Server is the stream medium data size and the server buffers district size of buffer memory relatively; According to said comparative result and above the stream medium data size in server buffers district and the comparative result of rx-side buffering district initial value and buffering area limiting value; Formulate four kinds of different processing policies, and send to receiving terminal.
As stated; When the stream medium data size of server buffer buffer size greater than server; And when the stream medium data size that surpasses the server buffers district was less than or equal to the buffering area initial value of receiving terminal, server sent first processing policy to receiving terminal, promptly; Server directly sends to receiving terminal and downloads notice, and the stream medium data in receiving terminal send server buffering area.
When the stream medium data size of server buffer buffer size greater than server; And the stream medium data size that surpasses the server buffers district is greater than the buffering area initial value of receiving terminal and when being less than or equal to the buffering area limiting value of receiving terminal; Server sends second processing policy to receiving terminal: after the server sets rx-side buffering district size; With the rx-side buffering district size information notice receiving terminal of setting, and the stream medium data in receiving terminal send server buffering area; Perhaps server will be notified receiving terminal above the stream medium data size information in server buffers district, and the stream medium data in receiving terminal send server buffering area.
When the stream medium data size of server buffer buffer size greater than server; And the stream medium data size that surpasses the server buffers district is during greater than the buffering area limiting value of receiving terminal; Server sends the 3rd processing policy to receiving terminal: server resets rx-side buffering district size and is the buffering area limiting value; And with the rx-side buffering district size information notice receiving terminal of setting, and the stream medium data in receiving terminal send server buffering area; Perhaps server will be notified receiving terminal above the stream medium data size information in server buffers district, and the stream medium data in receiving terminal send server buffering area.
If the stream medium data size of server buffer is less than or equal to the buffer size of server, server sends the reason strategy everywhere to receiving terminal: server directly sends to receiving terminal with the stream medium data in the server buffers district.In this, server can be set the broadcast value in server buffers district, and the broadcast value is less than or equal to the buffer size of server.When the stream medium data size of server buffer reached the broadcast value, server sent to receiving terminal with the stream medium data in the self buffer.
In the foregoing description; The method of said server sets rx-side buffering district size is: the streaming media data cache time of the preset receiving terminal of said server, said cache-time multiply by said streaming media data transmission speed and is the rx-side buffering district size that resets.In addition, said server also can directly be set rx-side buffering district size and notify said receiving terminal.Wherein, the buffering area of said server and receiving terminal can measure by memory space, also can measure by memory time, and this present invention is not limited.
Step 103: said receiving terminal carries out handled according to the said processing policy that receives.
Particularly, according to step 102, if receiving terminal receives first processing policy, said receiving terminal is notified server to download according to said download saidly to surpass the stream medium data in server buffers district and play the stream medium data in the said server buffers district.
If receiving terminal receives second processing policy; Said receiving terminal is according to the rx-side buffering district size information of the server sets that receives; Self buffer is adjusted into the rx-side buffering district size of said setting, and plays the stream medium data in the said server buffers district.Perhaps said receiving terminal is adjusted rx-side buffering district size voluntarily according to the said stream medium data size information that surpasses the server buffers district, and plays the stream medium data in the said server buffers district.
If receiving terminal receives the 3rd processing policy, said receiving terminal is adjusted into said buffering area limiting value with self buffer, and plays the stream medium data in the said server buffers district according to the rx-side buffering district limiting value of the server sets that receives.Perhaps said receiving terminal is adjusted into the buffering area limiting value according to the said stream medium data size information that surpasses the server buffers district from being about to rx-side buffering district size, and plays the stream medium data in the said server buffers district.
If receiving terminal receives the reason strategy everywhere, then play-over the stream medium data in the said server buffers district.
In this, the stream medium data that surpasses said server buffers district that above-mentioned receiving terminal is downloaded from server is meant: when receiving terminal begins the download stream media data to server, begin to download from the current part that surpasses said server buffers district of said stream medium data.In present embodiment, receiving terminal is downloaded the stream medium data that surpasses said server buffers district from server, and in other embodiment, server is after receiving terminal sends notice, and said server also can directly send said stream medium data to said receiving terminal.
In the foregoing description; If the stream medium data size that surpasses the server buffers district is less than or equal to the buffering area initial value of receiving terminal; Then when the stream medium data size of receiving terminal buffer memory reached the buffering area initial value of receiving terminal, receiving terminal began to play the stream medium data of buffer memory.If receiving terminal is adjusted into the rx-side buffering district size of said setting according to the big young pathbreaker's self buffer in the rx-side buffering district of server sets; Then when the stream medium data size of receiving terminal buffer memory reached the rx-side buffering district size of server sets, receiving terminal began to play the stream medium data of buffer memory.If receiving terminal is adjusted rx-side buffering district size voluntarily according to the stream medium data size information that surpasses the server buffers district; Then when the stream medium data size of receiving terminal buffer memory reached receiving terminal and adjusts rx-side buffering district size voluntarily, receiving terminal began to play the stream medium data of buffer memory.Said receiving terminal is downloaded said above behind the stream medium data in server buffers district, plays said stream medium data by the timestamp of said stream medium data.The API completion of Flash is called in above-mentioned each operation respectively by transmitting terminal and receiving terminal.
For example, transmitting terminal and receiving terminal call respectively Flash function C onnection.conn (url, port) set up with being connected of server after, transmitting terminal call function NetStream.publish (name) transmission stream medium data is to server.It is after 500M and buffering area initial value are 300M and announcement server that receiving terminal is set the self buffer limiting value respectively, and it is 300M that receiving terminal is set the self buffer size.If server memory is that 4G and said server sets 1G are the server buffers district, and the broadcast value in setting server buffers district is 1G.If A constantly, the stream medium data that server receives is 1.1G.In this; The stream medium data size that surpasses the server buffers district is 0.1G; Be no more than the buffering area initial value 300M of said receiving terminal; Then server directly sends to receiving terminal and downloads notice, and sends the said stream medium data in the said server buffers district to said receiving terminal, the stream medium data that receiving terminal receives and Play Server sends.After receiving terminal receives said download notice, call Flash function NetStream.play and download the stream medium data that surpasses the server buffers district from server.If transmission of flow media data speed is 10M/S; Is 0.1S from said server to the time that receiving terminal is given notice to receiving terminal to the server data download; Then receiving terminal begins to download from stream medium data 1G+ (10*0.1) M of said server reception; Promptly in the moment of A+0.1S, the stream medium data size that receiving terminal is downloaded from server is 1.1G-[1G+ (10*0.1) M]=0.1G-1M=102.4M-1M=101.4M.Receiving terminal is buffered in the stream medium data (101.4M) of said download in the local buffer, and the data in the rx-side buffering district reach said buffering area initial value, and (that is, in the time of 300M), receiving terminal begins to play the stream medium data in the self buffer.
The sketch map of the system of the realization recorded broadcast that provides for preferred embodiment according to the present invention shown in Figure 2.As shown in Figure 2, the system of the realization recorded broadcast that preferred embodiment of the present invention provides comprises transmitting terminal 201, server 202 and receiving terminal 203, and said transmitting terminal 201 connects said server 202, and said server 202 connects said receiving terminal 203.Said transmitting terminal 201 after being used for connecting with server 202, sends stream medium datas to said server 202.Said server 202 is used for the said stream medium data of buffer memory, and according to the said stream medium data size and said server 202 buffer size of buffer memory, formulates and also send processing policy to receiving terminal 203.Said receiving terminal 203 is used for carrying out handled according to the said processing policy that receives.Operating process about said system is said with above-mentioned method, so repeat no more in this.
In sum; The method and system of the realization recorded broadcast that preferred embodiment provides according to the present invention; Transmitting terminal and receiving terminal connect with server respectively; Behind the stream medium data that server receives and the said transmitting terminal of buffer memory sends,, formulate and send processing policy to receiving terminal according to the said stream medium data size and the said server buffers district size of buffer memory.Said receiving terminal carries out handled according to the said processing policy that receives.So, in the time of the server buffer stream medium data, carry out the monitoring of stream medium data size and receiving terminal is sent the different disposal strategy, guaranteed the Streaming Media smooth playing under the different situations, promoted the play quality of audio frequency and video.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a method that realizes recorded broadcast is characterized in that, may further comprise the steps:
Transmitting terminal and receiving terminal connect with server respectively, and said transmitting terminal sends stream medium data to said server;
The said stream medium data of said server buffer, and big or small according to the said stream medium data size and the said server buffers district of buffer memory, formulate and also send processing policy to receiving terminal;
Said receiving terminal carries out handled according to the said processing policy that receives.
2. method according to claim 1 is characterized in that, receiving terminal is set self buffer limiting value and buffering area initial value and notified said server, and said receiving terminal setting self buffer size is the buffering area initial value.
3. method according to claim 2; It is characterized in that; When the stream medium data size of said server buffer buffer size greater than said server; And when the stream medium data size that surpasses said server buffers district is less than or equal to the buffering area initial value of said receiving terminal; Said server to the processing policy that said receiving terminal sends is: said server directly sends to said receiving terminal and downloads notice, and sends the stream medium data in the said server buffers district to said receiving terminal.
4. method according to claim 2; It is characterized in that; When the stream medium data size of said server buffer buffer size greater than said server; And the stream medium data size that surpasses said server buffers district is greater than the buffering area initial value of said receiving terminal and when being less than or equal to the buffering area limiting value of said receiving terminal; Said server to the processing policy that said receiving terminal sends is: after the said rx-side buffering of the said server sets district size, notify said receiving terminal with the rx-side buffering district size information of said setting, and send the stream medium data in the said server buffers district to said receiving terminal; Perhaps said server is notified said receiving terminal with the said stream medium data size information that surpasses the server buffers district, and sends the stream medium data in the said server buffers district to said receiving terminal.
5. method according to claim 2; It is characterized in that; When the stream medium data size of said server buffer buffer size greater than said server; And the stream medium data size that surpasses said server buffers district is during greater than the buffering area limiting value of said receiving terminal; Said server to the processing policy that said receiving terminal sends is: said server resets said rx-side buffering district size and is said buffering area limiting value, and notifies said receiving terminal with the rx-side buffering district size information of said setting, and sends the stream medium data in the said server buffers district to said receiving terminal; Perhaps said server is notified said receiving terminal with the said stream medium data size information that surpasses the server buffers district, and sends the stream medium data in the said server buffers district to said receiving terminal.
6. method according to claim 1; It is characterized in that; If the stream medium data size of said server buffer is less than or equal to the buffer size of said server, said server to the processing policy that said receiving terminal sends is: said server directly sends to said receiving terminal with the stream medium data in the said server buffers district.
7. method according to claim 1; It is characterized in that; If said processing policy does; Said server directly sends to said receiving terminal and downloads notice, and sends the stream medium data in the said server buffers district to said receiving terminal, and then said receiving terminal is notified server to download according to said download saidly to surpass the stream medium data in server buffers district and play the stream medium data in the said server buffers district; If said processing policy does; The said rx-side buffering of server sets district size and with the rx-side buffering district size information notice receiving terminal of said setting; And the stream medium data in the said server buffers district sent to said receiving terminal; Perhaps server is notified said receiving terminal with the said stream medium data size information that surpasses the server buffers district; And the stream medium data in the said server buffers district sent to said receiving terminal, then said receiving terminal is adjusted said rx-side buffering district size and is play the stream medium data in the said server buffers district according to server notification; As if said processing policy do, server directly sends to said receiving terminal with the stream medium data in the said server buffers district, and said receiving terminal is play the stream medium data in the said server buffers district.
8. a system that realizes recorded broadcast is characterized in that, comprises transmitting terminal, server and receiving terminal, and said transmitting terminal connects said server, and said server connects said receiving terminal,
Said transmitting terminal after being used for connecting with server, sends stream medium data to said server;
Said server is used for the said stream medium data of buffer memory, and big or small according to the said stream medium data size and the said server buffers district of buffer memory, formulates and also sends processing policy to receiving terminal;
Said receiving terminal is used for carrying out handled according to the said processing policy that receives.
CN2012102103982A 2012-06-25 2012-06-25 Method and system for achieving recording and playing Pending CN102769611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102103982A CN102769611A (en) 2012-06-25 2012-06-25 Method and system for achieving recording and playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102103982A CN102769611A (en) 2012-06-25 2012-06-25 Method and system for achieving recording and playing

Publications (1)

Publication Number Publication Date
CN102769611A true CN102769611A (en) 2012-11-07

Family

ID=47096861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102103982A Pending CN102769611A (en) 2012-06-25 2012-06-25 Method and system for achieving recording and playing

Country Status (1)

Country Link
CN (1) CN102769611A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984078A (en) * 2012-12-06 2013-03-20 苏州阔地网络科技有限公司 Method and system for realizing flow control on web pages
CN103001857A (en) * 2012-12-06 2013-03-27 苏州阔地网络科技有限公司 Flow control method and system
CN103023794A (en) * 2012-12-06 2013-04-03 苏州阔地网络科技有限公司 Method and system for data stream control
CN103023754A (en) * 2012-12-06 2013-04-03 苏州阔地网络科技有限公司 Method and system of data flow control on web page
CN106059906A (en) * 2016-08-01 2016-10-26 腾讯科技(深圳)有限公司 Message processing system, message processing method and message processing apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595905A (en) * 2004-07-04 2005-03-16 华中科技大学 Streaming media buffering proxy server system based on cluster
CN101702728A (en) * 2009-09-02 2010-05-05 优视动景(北京)技术服务有限公司 Streaming media transmission system for mobile communication equipment terminal and application method thereof
CN101827251A (en) * 2010-05-07 2010-09-08 深圳创维-Rgb电子有限公司 Method and device for playing network streaming media

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595905A (en) * 2004-07-04 2005-03-16 华中科技大学 Streaming media buffering proxy server system based on cluster
CN101702728A (en) * 2009-09-02 2010-05-05 优视动景(北京)技术服务有限公司 Streaming media transmission system for mobile communication equipment terminal and application method thereof
CN101827251A (en) * 2010-05-07 2010-09-08 深圳创维-Rgb电子有限公司 Method and device for playing network streaming media

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984078A (en) * 2012-12-06 2013-03-20 苏州阔地网络科技有限公司 Method and system for realizing flow control on web pages
CN103001857A (en) * 2012-12-06 2013-03-27 苏州阔地网络科技有限公司 Flow control method and system
CN103023794A (en) * 2012-12-06 2013-04-03 苏州阔地网络科技有限公司 Method and system for data stream control
CN103023754A (en) * 2012-12-06 2013-04-03 苏州阔地网络科技有限公司 Method and system of data flow control on web page
CN106059906A (en) * 2016-08-01 2016-10-26 腾讯科技(深圳)有限公司 Message processing system, message processing method and message processing apparatus

Similar Documents

Publication Publication Date Title
CN101909196B (en) Channel-switching handling method, system and related equipment
CN102769611A (en) Method and system for achieving recording and playing
CN102487490B (en) Method and system for automatically deleting instant messaging information
CN101877604B (en) Method and system for transmitting files
CN102752212A (en) Method and system for controlling transmission rate
CN104468395A (en) Direct-broadcasting-room channel access method and system
KR20160067126A (en) Method and apparatus for content delivery
CN102739548B (en) A kind of method of rate control of transfer of data
CN101647231A (en) Wireless multicast proxy
RU2003127066A (en) METHOD AND SYSTEM OF BUFFERIZATION OF A STREAM INFORMATION MEDIA
CN101577672A (en) Method, system and devices for transmitting data in streaming media service
TW201225608A (en) Method and apparatus for updating http content descriptions
CN104320699B (en) The dynamic adjusting method of bluetooth sound-producing device
CN101098470A (en) P2P technique based stream media program broadcasting/receiving method and apparatus
CN203387627U (en) Live broadcast and order system of mobile streaming media
CN101345882B (en) Playing device and method for inter-cutting audio files
CN102739666B (en) Method and system for recording and broadcasting streaming media
EP2506544B1 (en) Mobile terminal and multimedia messaging service notification message processing method
CN101296110B (en) Real-time monitoring apparatus and method
CN101005387A (en) Method for providing user state information and presenting server and customer end
CN101090480A (en) Video request method, server and network added storage server
CN101904152B (en) communication method, equipment and apparatus
CN102217278A (en) Method and apparatus for online adapting of media content
CN104702973A (en) Android system based real-time video playing method and system
JP6166445B1 (en) Application layer multicast delivery method

Legal Events

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

Application publication date: 20121107