CN101282348B - Method for implementing flow medium function using HTTP protocol - Google Patents
Method for implementing flow medium function using HTTP protocol Download PDFInfo
- Publication number
- CN101282348B CN101282348B CN2007100392313A CN200710039231A CN101282348B CN 101282348 B CN101282348 B CN 101282348B CN 2007100392313 A CN2007100392313 A CN 2007100392313A CN 200710039231 A CN200710039231 A CN 200710039231A CN 101282348 B CN101282348 B CN 101282348B
- Authority
- CN
- China
- Prior art keywords
- video
- file
- client
- rttp
- http protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
A method of applying HTTP protocol to implement the stream media function includes the following steps: S1, a server terminal dividing a video document into a plurality of small video segments; S2, the server terminal providing hyperlinks for the video document in a web page; S3, a client starting the visit website of a browser and obtaining the predetermined URL format document; S4, applying theHTTP protocol to transmit GET command to the server, and fetching the content-Length of the returned information protocol field; S5, the client beginning to receive download data, memorizing the received data on a terminal memory device, and playing by a terminal player; S6, the client going on downloading other video segments in turn while playing the first video segment till end. The invention has the advantages of resolving the defect of bad video transmission quality in the prior art and being capable of guaranteeing the final quality of video playing.
Description
Technical field
The present invention relates to a kind of stream media technology, particularly a kind of method that realizes flow medium function about the utilization http protocol.
Background technology
Traditional stream media technology needs special-purpose streaming media server and host-host protocol.Server moves real-time stream protocol (RTSP), with the required control information of exchange A/V transmission, after treating to connect with client, server uses the RTP/UDP agreement to give the A/V CLIENT PROGRAM with the A/V transfer of data, in case A/V data arrives client, the A/V CLIENT PROGRAM can be play output.The information of losing is left in the basket owing to make mistakes, make network congestion or when going wrong, it is very poor that video quality becomes, use http protocol to come the transport stream media data then because the packet of network loss can transmit until the user again receives, so can guarantee the final mass of video playback, therefore, it is used for being transmitted high-quality short-movie section.
Summary of the invention
In sum, how guaranteeing video transmission quality, is technical problem to be solved by this invention, for this reason, the object of the present invention is to provide a kind of method of using http protocol to realize flow medium function.
Technical scheme of the present invention is as follows:
According to a kind of method of using http protocol to realize flow medium function of the present invention, comprise step:
S
1, server end is cut into a plurality of little video segments that can play separately, S with video file
2, server end provides hyperlink to described video file in webpage, give a specific URL address, S
3, client terminal start-up browser access website, obtain the URL formatted file pre-define, S
4, client utilization http protocol sends the GET order to server, and according to the server end return information, the content-Length that extracts in the protocol fields judges whether the server end data download success, S
5, client begins to receive data download, and data that receive is kept on the terminal storage equipment, judges that according to file in download length first video segment downloads successfully, and by terminal player broadcast, S
6, client continues to download successively other video segment when playing first video segment, until end.
More specifically, described step S
1In, video file is the 3GP file, and it is cut into n little file, and the naming rule of filename is to add 1 successively according to first clip file name;
The described hyperlink that is implemented in the video file in the webpage by given URL address is meant that defining video file format earlier is URL, and it starts with RTTP, shape such as RTTP: // .../
* *01.3gp, by adding 1 rule successively, RTTP is replaced to HTTP, URL is become HTTP: // .../
* *01.3gp form.
Advantage of the present invention is, solved prior art in Network Transmission, lost packet owing to makeing mistakes, and causes the problem of video playing quality difference, the packet of losing can be transmitted up to the user again receive, thereby guaranteed the final mass of video playback.
Description of drawings
Fig. 1 is the server process schematic diagram of embodiment.
Fig. 2 is the client realization flow figure of embodiment.
Embodiment
Provide better embodiment of the present invention according to Fig. 1 and Fig. 2 below, and described in detail,, rather than be used for limiting scope of the present invention so that those skilled in the art can understand the inventive method feature and function characteristics better.
At first be that server end need be cut into video file the some little video clips that can play separately, as shown in Figure 1, a 3GP file is divided into n little file, the filename of each small documents need be according to certain rule, such as adding 1 successively in order, promptly the 3gp file shown in Fig. 1 add 1 arrangement title according to the order of sequence:
* *01.3gp,
* *02.3gp ...
* *(n-1) .3gp,
* *N.3gp, corresponding to a 3GP video file cutting n little file.The benefit of doing like this is to make things convenient for client can just know the filename of next segment according to the filename of first segment.In addition, server end also need be given hyperlink of video file in webpage, in order to distinguish the hyperlink in other webpage, need give its specific URL address, and such as with RTTP beginning, shape is as RTTP: // .../
* *01.3gp.Like this, client runs into the link of RTTP beginning just know how this does when surfing the web, and obviously, the video file of 1~N small fragment is by name: RTTP: // .../
* *01.3gp, RTTP: // .../
* *02.3gp ... RTTP: // .../
* *(n-1) .3gp, RTTP: // .../
* *N.3gp.
Be exactly the work that client need be done then, as shown in Figure 2, obtain the URL file (step 1001,1002) of the form that pre-defines when the client starts browser and surfs the web, such as with the RTTP beginning, shape is as RTTP: // .../
* *01.3gp.What at first need to do replaces with HTTP with RTTP exactly, and URL becomes HTTP: // .../
* *01.3gp, use http protocol to send GET order (step 1003) then to server, if this moment, server did not have out of order words will return HTTP1.1200OK (step 1004), and more subsidiary protocol fields, client need extract (step 1005) with the Content-Length in the protocol fields, because next the data that receive of client will judge whether to download and finish by length.Next client just begins to prepare to receive data, and be kept on the memory device of its terminal (step 1006), because the restriction of network packet, whole small pieces needs several packets transmission just can finish, client can write down downloaded files length altogether, before its value equals during the Content-Length of record, just think that first video clips downloads successfully, the player that can open terminal begins to play, and continues to download other video clips (step 1007,1008) when playing.
After first segment begins to play, will divide the URL address that the rule of small fragment is learnt next segment according to server end, if be HTTP such as the URL of first segment: // .../
* *01.3gp the URL of so ensuing segment is HTTP: // .../
* *02.3gp, the utilization http protocol sends the GET order, the action of the analysis protocol fields before repeating, second segment download finished, when finishing, first segment just can play second segment immediately, the sensation of giving the terminal use like this is exactly smooth playing while downloading, and deletes the shared memory space of first segment simultaneously with recycling.
Repeat said process step (1008~1004,1005,1006,1007), after sending the GET order, obtain HTTP1.1400notfound (step 1004, step 1009), showing that the whole video file has all been downloaded finishes, the thread of downloading just can stop, and waits for playing last video clips, has so just realized the function of Streaming Media.
Claims (4)
1. method of using http protocol to realize flow medium function comprises step:
S
1, server end is cut into a plurality of little video segments that can play separately, S with video file
2, server end provides hyperlink to described video file in webpage, give a specific URL address, S
3, client terminal start-up browser access website, obtain the URL formatted file pre-define, S
4, client utilization http protocol sends the GET order to server, and according to the server end return information, the content-Length that extracts in the protocol fields comes judgment data whether to download success, S
5, client begins to receive data download, and data that receive is kept on the terminal storage equipment, judges that according to file in download length first video segment downloads successfully, and by terminal player broadcast, S
6, client continues to download successively other video segment when playing first video segment, until end.
2. utilization http protocol according to claim 1 is realized the method for flow medium function, it is characterized in that described step S
1In, video file is the 3GP file, and it is cut into n little file, and the naming rule of filename is to add 1 successively according to first clip file name.
3. utilization http protocol according to claim 1 and 2 is realized the method for flow medium function, it is characterized in that, the described hyperlink that is implemented in the video file in the webpage by given URL address is meant that defining video file format earlier is URL, it starts with RTTP, then RTTP is replaced to HTTP.
4. utilization http protocol according to claim 3 is realized the method for flow medium function, it is characterized in that, described URL with the RTTP beginning is RTTP: // .../
* *01.3gp the described URL that RTTP is replaced with HTTP is HTTP: // .../
* *01.3gp.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100392313A CN101282348B (en) | 2007-04-06 | 2007-04-06 | Method for implementing flow medium function using HTTP protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100392313A CN101282348B (en) | 2007-04-06 | 2007-04-06 | Method for implementing flow medium function using HTTP protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101282348A CN101282348A (en) | 2008-10-08 |
CN101282348B true CN101282348B (en) | 2011-03-30 |
Family
ID=40014622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007100392313A Expired - Fee Related CN101282348B (en) | 2007-04-06 | 2007-04-06 | Method for implementing flow medium function using HTTP protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101282348B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107197363A (en) * | 2017-07-04 | 2017-09-22 | 武汉斗鱼网络科技有限公司 | A kind of video broadcasting method and device |
Families Citing this family (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101877861B (en) | 2009-04-30 | 2015-05-06 | 中兴通讯股份有限公司 | Node information acquisition method, client and server |
CN101702767B (en) * | 2009-10-28 | 2011-08-31 | 东方网力科技股份有限公司 | Time-based media playing method and system |
AU2010314582B2 (en) | 2009-11-09 | 2015-03-12 | Snaptrack, Inc. | Method, system and network equipment for implementing HTTP-based streaming media service |
CN102137130A (en) | 2010-01-22 | 2011-07-27 | 华为技术有限公司 | Synchronized method and device based on hypertext transport protocol (HTTP) |
CN102291373B (en) | 2010-06-15 | 2016-08-31 | 华为技术有限公司 | The update method of meta data file, device and system |
CN101873355A (en) * | 2010-06-28 | 2010-10-27 | 深圳市迅雷网络技术有限公司 | Method, device and system for downloading file |
US8930562B2 (en) * | 2010-07-20 | 2015-01-06 | Qualcomm Incorporated | Arranging sub-track fragments for streaming video data |
CN103190097B (en) * | 2010-08-31 | 2016-09-14 | 数码士有限公司 | The method sent and receive the media information file for HTTP streaming |
CN102469072A (en) | 2010-11-08 | 2012-05-23 | 华为技术有限公司 | Streaming media service method and system, and client |
CN103905915B (en) * | 2010-12-15 | 2017-06-16 | 北京小度互娱科技有限公司 | Online Video sniff method for down loading and device |
CN102111674B (en) * | 2010-12-22 | 2012-11-14 | 深圳市五巨科技有限公司 | System and method for playing on-line video by mobile terminal and mobile terminal |
CN102137278B (en) * | 2010-12-30 | 2013-08-07 | 广州市动景计算机科技有限公司 | System and method for broadcasting and distributing streaming media based on mobile terminal |
CN102130958A (en) * | 2011-03-22 | 2011-07-20 | 宋健 | Method and system for video live broadcasting in small file slice mode based on hypertext transport protocol (HTTP) |
CN105245975B (en) | 2011-03-22 | 2018-12-14 | 华为技术有限公司 | Media data processing method and its device |
CN102868938B (en) * | 2011-07-07 | 2018-06-05 | 上海聚力传媒技术有限公司 | A kind of method and apparatus for being used to obtain segmented video files in network |
US9112825B2 (en) | 2011-09-07 | 2015-08-18 | Dynatrace Llc | Performance monitoring of a media player launched by a web browser |
CN102497359B (en) * | 2011-12-02 | 2014-06-04 | 山东大学 | Thin client streaming media-based service system running method |
CN103188236B (en) | 2011-12-30 | 2015-12-16 | 华为技术有限公司 | The appraisal procedure of media transmission quality and device |
CN103297452B (en) * | 2012-02-24 | 2016-08-24 | 北京对角巷科技发展有限公司 | A kind of in the Internet issue and the method and system of live broadcast stream media |
CN102647634B (en) * | 2012-05-02 | 2014-07-02 | 合一网络技术(北京)有限公司 | Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video |
CN102694864A (en) * | 2012-05-30 | 2012-09-26 | 安科智慧城市技术(中国)有限公司 | Method for achieving streaming media function by utilizing HTTP, streaming media server and system |
CN103702176B (en) * | 2013-12-09 | 2017-02-15 | 乐视致新电子科技(天津)有限公司 | HLS (http live streaming) protocol-based video downloading method and device |
CN103763638B (en) * | 2014-01-23 | 2017-02-15 | 中国联合网络通信集团有限公司 | Video resource obtaining method and device |
CN105100172B (en) * | 2014-05-22 | 2018-03-27 | 华为技术有限公司 | The buffer status update method and equipment of a kind of http protocol, processor |
CN104581434B (en) * | 2015-01-09 | 2018-06-08 | 上海小蚁科技有限公司 | VOD method and device |
CN104581435A (en) * | 2015-01-20 | 2015-04-29 | 赵树乔 | Naming method of data stream |
CN106549916A (en) * | 2015-09-18 | 2017-03-29 | 中兴通讯股份有限公司 | Multicast transmission method, apparatus and system |
CN106484871A (en) * | 2016-10-12 | 2017-03-08 | 乐视控股(北京)有限公司 | The method of playing request, device and terminal |
CN111277869B (en) * | 2020-02-14 | 2021-12-14 | 腾讯科技(深圳)有限公司 | Video playing method, device, equipment and storage medium |
CN113079386B (en) * | 2021-03-19 | 2023-01-17 | 北京百度网讯科技有限公司 | Video online playing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1551643A (en) * | 2003-05-13 | 2004-12-01 | Lg������ʽ���� | Http based video streaming apparatus and method in mobile communication system |
CN1784737A (en) * | 2003-05-10 | 2006-06-07 | 三星电子株式会社 | Multimedia data reproducing apparatus,audio data receiving method and audio data structure therein |
CN1798097A (en) * | 2004-12-24 | 2006-07-05 | 腾讯科技(深圳)有限公司 | Method for buffering data in stream media |
-
2007
- 2007-04-06 CN CN2007100392313A patent/CN101282348B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1784737A (en) * | 2003-05-10 | 2006-06-07 | 三星电子株式会社 | Multimedia data reproducing apparatus,audio data receiving method and audio data structure therein |
CN1551643A (en) * | 2003-05-13 | 2004-12-01 | Lg������ʽ���� | Http based video streaming apparatus and method in mobile communication system |
CN1798097A (en) * | 2004-12-24 | 2006-07-05 | 腾讯科技(深圳)有限公司 | Method for buffering data in stream media |
Non-Patent Citations (1)
Title |
---|
李励立.基于HTTP协议的流媒体播放器***软件设计.《浙江大学硕士学位论文》.2006,全文. * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107197363A (en) * | 2017-07-04 | 2017-09-22 | 武汉斗鱼网络科技有限公司 | A kind of video broadcasting method and device |
CN107197363B (en) * | 2017-07-04 | 2020-07-10 | 武汉斗鱼网络科技有限公司 | Video playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101282348A (en) | 2008-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101282348B (en) | Method for implementing flow medium function using HTTP protocol | |
CN103826159B (en) | The local offline player method and terminal of a kind of M3U8 format videos | |
EP2383941B1 (en) | Client terminal, method and system for downloading streaming media | |
JP6308442B2 (en) | Method, device, and system for obtaining streaming media data | |
CN102694831B (en) | Mobile terminal streaming compensation data method and system, content distributing network | |
CN1897588B (en) | Mixed-mode network file transmitting method and system | |
WO2009143741A1 (en) | Method, system and apparatus for playing media files on demand | |
CN103929427A (en) | Dynamic multi-thread downloading device and method | |
US8817983B2 (en) | Streaming video to cellular phones | |
CN100584007C (en) | Method for using bookmark on flow media system | |
CN112104885B (en) | System and method for accelerating M3U8 initial playing speed in live broadcasting | |
CN100576906C (en) | A kind of Web content transmission control system and method | |
KR102460356B1 (en) | Reception device, transmission device, and data processing method | |
CN104641655A (en) | Terminal cache method, terminal and server | |
CN104469538A (en) | Picture-quality-smaller-loss-oriented RTP video streaming data package recombination method | |
JP6597604B2 (en) | Reception device, transmission device, data communication method, and data processing method | |
WO2009111982A1 (en) | Multimedia network application processing system and method | |
US10523409B2 (en) | Method of synchronization during the processing, by a multimedia player, of an item of multimedia content transmitted by an MBMS service | |
WO2015109842A1 (en) | Method for processing segmented programs, server and client device | |
WO2017014034A1 (en) | Reception device, transmission device, and data processing method | |
CN101917327A (en) | Streaming media recording method and player | |
Li et al. | A new fragmentation strategy for video of http live streaming | |
AU2015101273A4 (en) | A computer implemented system and method for transferring multimedia content | |
Smanchat et al. | Enabling parallel streaming of multiple video sections by segment scheduling | |
KR101527512B1 (en) | Method for Playing Contents Linkage Between Differential Media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110330 Termination date: 20180406 |