CN102752643A - Method and system for stream media live broadcast - Google Patents
Method and system for stream media live broadcast Download PDFInfo
- Publication number
- CN102752643A CN102752643A CN2012101893743A CN201210189374A CN102752643A CN 102752643 A CN102752643 A CN 102752643A CN 2012101893743 A CN2012101893743 A CN 2012101893743A CN 201210189374 A CN201210189374 A CN 201210189374A CN 102752643 A CN102752643 A CN 102752643A
- Authority
- CN
- China
- Prior art keywords
- data
- server
- receiving terminal
- content
- attribute data
- 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
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a method and a system for stream media live broadcast. The method includes that a transmitting and a receiving end respectively build connection with a server, and the transmitting end transmits stream media data subjected analysis and package to the server. The server analyzes the received stream media data to obtain attribute data and content data of the stream media data and store the attribute data. The server transmits the attribute data to the receiving end and then transmits the content data to the receiving end, and the receiving end conducts decoding according to the attribute data and plays the content data.
Description
Technical field
The invention belongs to the instant messaging field, relate in particular to a kind of stream media live broadcasting method and system.
Background technology
Along with the develop rapidly of information-intensive 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, the live effect of audio frequency and video plays key effect to the Web conference quality.In present web page audio/video direct seeding technique; Mainly be the audio-video document that transmitting terminal sends to be sent to receiving terminal by server; Comprised corresponding attribute data in the audio-video document that sends; Receiving terminal receives and need parse behind the attribute data decodes and plays again behind the audio-video document, makes the waits for too long of client terminal playing file, has reduced the efficient of video conference middle pitch net cast.
Summary of the invention
The present invention provides a kind of stream media live broadcasting method and system to address the above problem.
The present invention provides a kind of stream media live broadcasting method, may further comprise the steps.Transmitting terminal and receiving terminal are set up respectively and being connected of server, and said transmitting terminal sends the stream medium data after resolving encapsulation to said server.Behind the said stream medium data that said server parses receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data.Said server sends said content-data to said receiving terminal after said attribute data is sent to receiving terminal, and said receiving terminal is according to said attribute data decoding and play said content-data.
The present invention provides a kind of flow medium live system, comprises transmitting terminal, server and receiving terminal, and said transmitting terminal connects said server, and said server connects said receiving terminal.Said transmitting terminal is used for sending the stream medium data after resolving encapsulation to said server.Said server; After being used to resolve the said stream medium data that receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data; After also being used for said attribute data is sent to receiving terminal, send said content-data to said receiving terminal.Said receiving terminal is used for according to the decoding of said attribute data and plays said content-data.
Compared to prior art; According to stream media live broadcasting method provided by the invention and system; Transmitting terminal and receiving terminal are set up respectively and being connected of server; Transmitting terminal sends the stream medium data after resolving encapsulation to server, obtains attribute data and content-data behind the stream medium data that said server parses receives, and preserves said attribute data.Server sends said content-data to receiving terminal after attribute data is sent to receiving terminal, and receiving terminal is according to attribute data decoding and play content data.So, receiving terminal has reduced the stand-by period of live streaming media according to the attribute data play content data that server sends, and the redundant data of having avoided transmission to produce.
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 stream media live broadcasting method that provides for preferred embodiment according to the present invention shown in Figure 1;
The sketch map of the flow medium live system 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 stream media live broadcasting method that provides for preferred embodiment according to the present invention shown in Figure 1.As shown in Figure 1, the stream media live broadcasting method that preferred embodiment of the present invention provides comprises step 101 ~ 103.
Step 101: transmitting terminal and receiving terminal are set up respectively and being connected of server, and said transmitting terminal sends the stream medium data after resolving encapsulation to said server.
Particularly, transmitting terminal set up with being connected of server after, said transmitting terminal is resolved local stream medium data to be sent, acquisition multiframe data.Wherein, first frame is the attribute data of said stream medium data, and other frame is the content-data of said stream medium data.Transmitting terminal encapsulates the said first Frame Properties data and other content frame data with real-time messages transportation protocol RTMP, and packaged stream medium data is sent to server.Wherein, said stream medium data comprises voice data and video data.In this, when transmitting terminal set up with being connected of server after, being connected of one or more receiving terminals foundation and server can be arranged.
Certainly, in other embodiment, the connect hours of one or more receiving terminals foundation and server, can set up with the connect hours of server with transmitting terminal and perhaps set up before simultaneously.
Step 102: behind the said stream medium data that said server parses receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data.
Particularly, behind the stream medium data that the server receiving end/sending end sends, resolving and obtaining first frame data behind the said stream medium data is attribute data, and other frame data are content-data.Server carries out resolving in real time or regularly to the stream medium data that receives, and obtains the attribute data and the content-data of said stream medium data, and preserves said attribute data in this locality.Said server can be preserved said content-data in this locality, also can in buffer memory, keep in said content-data, and this present invention is not limited.Wherein, the attribute data of said stream medium data comprises frame per second, bit rate, code stream, pixel and form.
Step 103: said server sends said content-data to said receiving terminal after said attribute data is sent to receiving terminal, and said receiving terminal is according to said attribute data decoding and play said content-data.
Particularly, one or more receiving terminals set up with being connected of server after, server is sent to said receiving terminal with the attribute data of this locality preservation.The content-data that said server draws parsing in real time or timed sending give receiving terminal, receiving terminal is also play said content-data according to the attribute data decoding that has received.In this; If rebulid behind the receiving terminal off-line and being connected of server; Said receiving terminal can be set up the content-data that newly connects the back reception according to connecting the attribute data broadcast that receives before the disconnection, and server does not need to send attribute data once more to said receiving terminal again.
For example; Transmitting terminal A obtains the audio file File startFile=newFile to be sent (filePath) that local store path is filePath; And this audio file parsing back acquisition voice data, i.e. FlvFileProvider provider=newFlvFileProvider (startFile) to having obtained.Transmitting terminal A obtains the first Frame Properties data and other content frame data after resolving above-mentioned voice data, and with each frame data of RTMP protocol encapsulation, for example action statement is: IMessage message=provider.pullMessage ().
Transmitting terminal A set up with being connected of server after; The voice data that said parsing is packaged sends to server; Concrete operations are StreamingProxy flvStream=new StreamingProxy (), and flvStream.pushMessage (null, message).After server receives and resolves said voice data; After obtaining the first Frame Properties data (IAudioStreamCodec audioStreamCodec=AudioCodecFactory.getAudioCodec (aacData)) and other content frame data of said voice data, said attribute data is kept in the server.
If begin after server sends said voice data at transmitting terminal A; Receiving terminal B foundation is connected with server; Then server calls getAudioCodec () and getDecoderConfiguration (); After the attribute data that from internal memory, obtains said voice data sends to receiving terminal B, call content-data that pushMessage () sends said voice data again to receiving terminal B.Receiving terminal B receives after the said content-data, calls the play () function of Flash, decodes and plays said content-data.
The sketch map of the flow medium live system that provides for preferred embodiment according to the present invention shown in Figure 2.As shown in Figure 2, the flow medium live system 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 is used for the stream medium data that sends after resolving encapsulation to said server 202.Said server 202; After being used to resolve the said stream medium data that receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data; After also being used for said attribute data is sent to receiving terminal 203, send said content-data to said receiving terminal 203.Said receiving terminal 203 is used for according to the decoding of said attribute data and plays said content-data.Concrete operations flow process about said system is said with above-mentioned method, so repeat no more in this.
In sum; Stream media live broadcasting method that preferred embodiment provides according to the present invention and system; Transmitting terminal and receiving terminal are set up respectively and being connected of server; Transmitting terminal sends the stream medium data after resolving encapsulation to server, obtains attribute data and content-data behind the stream medium data that server parses receives and preserves said attribute data.Server sends said content-data to receiving terminal after attribute data is sent to receiving terminal, and receiving terminal is according to attribute data decoding and play content data.So, server earlier sends to the content-data of redispatching behind the receiving terminal with attribute data, and different receiving terminals can carry out audio, video data at any time in real time to be play, thereby has reduced the stand-by period of live streaming media.
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 (7)
1. a stream media live broadcasting method is characterized in that, may further comprise the steps:
Transmitting terminal and receiving terminal are set up respectively and being connected of server, and said transmitting terminal sends the stream medium data after resolving encapsulation to said server;
Behind the said stream medium data that said server parses receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data;
Said server sends said content-data to said receiving terminal after said attribute data is sent to receiving terminal, and said receiving terminal is according to said attribute data decoding and play said content-data.
2. method according to claim 1; It is characterized in that; After said transmitting terminal is resolved local stream medium data to be sent; Obtain the first Frame Properties data and other content frame data, and after encapsulating the said first Frame Properties data and other content frame data with specified protocol, be sent to said server.
3. method according to claim 2 is characterized in that, said specified protocol comprises real-time messages transportation protocol RTMP.
4. method according to claim 1 is characterized in that said stream medium data comprises voice data and video data.
5. method according to claim 1 is characterized in that, said receiving terminal is one or more.
6. method according to claim 1 is characterized in that, said attribute data comprises frame per second, bit rate, code stream, pixel and form.
7. a flow medium live system 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 is used for sending the stream medium data after resolving encapsulation to said server;
Said server; After being used to resolve the said stream medium data that receives, obtain the attribute data and the content-data of said stream medium data, and preserve said attribute data; After also being used for said attribute data is sent to receiving terminal, send said content-data to said receiving terminal;
Said receiving terminal is used for according to the decoding of said attribute data and plays said content-data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101893743A CN102752643A (en) | 2012-06-11 | 2012-06-11 | Method and system for stream media live broadcast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101893743A CN102752643A (en) | 2012-06-11 | 2012-06-11 | Method and system for stream media live broadcast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102752643A true CN102752643A (en) | 2012-10-24 |
Family
ID=47032510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101893743A Pending CN102752643A (en) | 2012-06-11 | 2012-06-11 | Method and system for stream media live broadcast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102752643A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107666619A (en) * | 2017-06-15 | 2018-02-06 | 北京金山云网络技术有限公司 | Live data transmission method, device, electronic equipment, server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098470A (en) * | 2006-06-28 | 2008-01-02 | 腾讯科技(深圳)有限公司 | P2P technique based stream media program broadcasting/receiving method and apparatus |
CN101188734A (en) * | 2006-11-15 | 2008-05-28 | 中兴通讯股份有限公司 | A stream media quick playing method |
CN102082794A (en) * | 2011-01-04 | 2011-06-01 | 深圳市新超亮特种显示设备有限公司 | Real-time play method and equipment |
CN102131106A (en) * | 2010-12-22 | 2011-07-20 | 华为技术有限公司 | Method, device and system for playing streaming media contents |
-
2012
- 2012-06-11 CN CN2012101893743A patent/CN102752643A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098470A (en) * | 2006-06-28 | 2008-01-02 | 腾讯科技(深圳)有限公司 | P2P technique based stream media program broadcasting/receiving method and apparatus |
CN101188734A (en) * | 2006-11-15 | 2008-05-28 | 中兴通讯股份有限公司 | A stream media quick playing method |
CN102131106A (en) * | 2010-12-22 | 2011-07-20 | 华为技术有限公司 | Method, device and system for playing streaming media contents |
CN102082794A (en) * | 2011-01-04 | 2011-06-01 | 深圳市新超亮特种显示设备有限公司 | Real-time play method and equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107666619A (en) * | 2017-06-15 | 2018-02-06 | 北京金山云网络技术有限公司 | Live data transmission method, device, electronic equipment, server and storage medium |
CN107666619B (en) * | 2017-06-15 | 2019-11-08 | 北京金山云网络技术有限公司 | Live data transmission method, device, electronic equipment, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10129308B2 (en) | Session description information for over-the-air broadcast media data | |
CN102447893B (en) | The method and system of mobile video Real-time Collection and issue | |
US20160337424A1 (en) | Transferring media data using a websocket subprotocol | |
US20210314676A1 (en) | Apparatus for transmitting broadcast signals, apparatus for receiving broadcast signals, method of transmitting broadcast signals and method of receiving broadcast signals | |
CN110267064B (en) | Audio playing state processing method, device, equipment and storage medium | |
KR20180019580A (en) | Middleware delivery of DASH client QOE metrics | |
CN105900445B (en) | The method and apparatus of steady live operation for dynamic self-adapting stream transmission | |
CN101465996B (en) | Method, equipment and system for displaying network television time | |
KR20160067126A (en) | Method and apparatus for content delivery | |
CN110266912A (en) | Sending device, reception device and display device | |
CN102447956A (en) | Method for sharing video of mobile phone and system | |
CN104902343A (en) | Methods for transmitting and playing audio/video and message, server and terminal | |
US20220377018A1 (en) | Transmission device, transmission method, reception device, and reception method | |
WO2018118710A1 (en) | Detecting and signaling new initialization segments during manifest-file-free media streaming | |
CN102404646A (en) | Wireless television live broadcasting system and live broadcasting method thereof | |
CN101646074B (en) | Real-time transmission method for video data | |
CN109640162A (en) | Code stream conversion method and system | |
KR101792519B1 (en) | Broadcasting signal transmitting device, broadcasting signal receiving device, broadcasting signal transmitting method, and broadcasting signal receiving method | |
KR102241085B1 (en) | Device and method for transmitting and receiving broadcast signal | |
CN111010593A (en) | Method and device for packaging H.265 video data based on FLV format | |
CN103826084A (en) | Audio encoding method | |
CN104092666A (en) | File transmission method and device | |
CN102752643A (en) | Method and system for stream media live broadcast | |
CN101515934A (en) | Method, device and communication system for forwarding scalable video coded data message | |
CN100579080C (en) | The method and system of information playback in a kind of instant messaging |
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: 20121024 |