CN101282348A - Method for implementing flow medium function using HTTP protocol - Google Patents

Method for implementing flow medium function using HTTP protocol Download PDF

Info

Publication number
CN101282348A
CN101282348A CNA2007100392313A CN200710039231A CN101282348A CN 101282348 A CN101282348 A CN 101282348A CN A2007100392313 A CNA2007100392313 A CN A2007100392313A CN 200710039231 A CN200710039231 A CN 200710039231A CN 101282348 A CN101282348 A CN 101282348A
Authority
CN
China
Prior art keywords
video
file
client
http protocol
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100392313A
Other languages
Chinese (zh)
Other versions
CN101282348B (en
Inventor
向荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chenxing Electronics Science and Technology Co Ltd
Original Assignee
Shanghai Chenxing Electronics Science and 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 Shanghai Chenxing Electronics Science and Technology Co Ltd filed Critical Shanghai Chenxing Electronics Science and Technology Co Ltd
Priority to CN2007100392313A priority Critical patent/CN101282348B/en
Publication of CN101282348A publication Critical patent/CN101282348A/en
Application granted granted Critical
Publication of CN101282348B publication Critical patent/CN101282348B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (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 the HTTP 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

The utilization http protocol is realized the method for flow medium function
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 HTTP 1.1 200OK (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 HTTP 1.1 400not found (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 (3)

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, 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.
CN2007100392313A 2007-04-06 2007-04-06 Method for implementing flow medium function using HTTP protocol Expired - Fee Related CN101282348B (en)

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 true CN101282348A (en) 2008-10-08
CN101282348B 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 (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873355A (en) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 Method, device and system for downloading file
CN101877861A (en) * 2009-04-30 2010-11-03 中兴通讯股份有限公司 Node information acquisition method, client and server
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and 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)
CN102137278A (en) * 2010-12-30 2011-07-27 广州市动景计算机科技有限公司 System and method for broadcasting and distributing streaming media based on mobile terminal
CN101702767B (en) * 2009-10-28 2011-08-31 东方网力科技股份有限公司 Time-based media playing method and system
CN102497359A (en) * 2011-12-02 2012-06-13 山东大学 Thin client streaming media-based service system running method
CN102647634A (en) * 2012-05-02 2012-08-22 合一网络技术(北京)有限公司 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
WO2013033863A1 (en) * 2011-09-07 2013-03-14 Compuware Corporation Performance monitoring of a media player launched by a web browser
CN103190097A (en) * 2010-08-31 2013-07-03 数码士有限公司 Methods of transmitting and receiving a media information file for http streaming
CN103297452A (en) * 2012-02-24 2013-09-11 北京对角巷科技发展有限公司 Method and system for publishing and broadcasting streaming media on Internet in live mode
CN103702176A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 HLS (http live streaming) protocol-based video downloading method and device
CN103763638A (en) * 2014-01-23 2014-04-30 中国联合网络通信集团有限公司 Video resource obtaining method and device
CN103905915A (en) * 2010-12-15 2014-07-02 百度在线网络技术(北京)有限公司 Online video sniffing downloading method and device
RU2541155C2 (en) * 2010-07-20 2015-02-10 Квэлкомм Инкорпорейтед Arranging sub-track fragments for streaming video data
US8990429B2 (en) 2010-01-22 2015-03-24 Huawei Technologies Co., Ltd. HTTP-based synchronization method and apparatus
CN104581435A (en) * 2015-01-20 2015-04-29 赵树乔 Naming method of data stream
CN104581434A (en) * 2015-01-09 2015-04-29 上海小蚁科技有限公司 Video-on-demand method and device
US9131027B2 (en) 2010-11-08 2015-09-08 Huawei Technologies Co., Ltd. Method, system, and client for streaming media service
CN105100172A (en) * 2014-05-22 2015-11-25 华为技术有限公司 Cache state updating method based on HTTP protocol, cache state updating equipment and cache state processor
US9338216B2 (en) 2009-11-09 2016-05-10 Snaptrack, Inc. Method, system and network device for implementing HTTP-based streaming service
US9372863B2 (en) 2010-06-15 2016-06-21 Huawei Technologies Co., Ltd. Method, apparatus and system for updating metadata file
US9390274B2 (en) 2011-03-22 2016-07-12 Huawei Technologies Co., Ltd. Media data processing method and apparatus
CN106484871A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 The method of playing request, device and terminal
WO2017045528A1 (en) * 2015-09-18 2017-03-23 中兴通讯股份有限公司 Method, device and system for multicast transmission
US9774910B2 (en) 2011-12-30 2017-09-26 Huawei Technologies Co., Ltd. Method and apparatus for evaluating media delivery quality
CN102868938B (en) * 2011-07-07 2018-06-05 上海聚力传媒技术有限公司 A kind of method and apparatus for being used to obtain segmented video files in network
CN111277869A (en) * 2020-02-14 2020-06-12 腾讯科技(深圳)有限公司 Video playing method, device, equipment and storage medium
CN113079386A (en) * 2021-03-19 2021-07-06 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197363B (en) * 2017-07-04 2020-07-10 武汉斗鱼网络科技有限公司 Video playing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040096718A (en) * 2003-05-10 2004-11-17 삼성전자주식회사 Multimedia data decoding apparatus, audio data receiving method and audio data structure therein
KR100492567B1 (en) * 2003-05-13 2005-06-03 엘지전자 주식회사 Http-based video streaming apparatus and method for a mobile communication system
CN100393068C (en) * 2004-12-24 2008-06-04 腾讯科技(深圳)有限公司 Method for buffering data in stream media

Cited By (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877861A (en) * 2009-04-30 2010-11-03 中兴通讯股份有限公司 Node information acquisition method, client and server
CN101877861B (en) * 2009-04-30 2015-05-06 中兴通讯股份有限公司 Node information acquisition method, client and server
US8892711B2 (en) 2009-04-30 2014-11-18 Zte Corporation Method for acquiring node information, and client and server
CN101702767B (en) * 2009-10-28 2011-08-31 东方网力科技股份有限公司 Time-based media playing method and system
US9338216B2 (en) 2009-11-09 2016-05-10 Snaptrack, Inc. Method, system and network device for implementing HTTP-based streaming service
US9313015B2 (en) 2010-01-22 2016-04-12 Huawei Technologies Co., Ltd. HTTP-based synchronization method and apparatus
US8990429B2 (en) 2010-01-22 2015-03-24 Huawei Technologies Co., Ltd. HTTP-based synchronization method and apparatus
US9372863B2 (en) 2010-06-15 2016-06-21 Huawei Technologies Co., Ltd. Method, apparatus and system for updating metadata file
US9582530B2 (en) 2010-06-15 2017-02-28 Huawei Technologies Co., Ltd. Method, apparatus and system for updating metadata file
CN101873355A (en) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 Method, device and system for downloading file
RU2541155C2 (en) * 2010-07-20 2015-02-10 Квэлкомм Инкорпорейтед 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
US9608748B2 (en) 2010-08-31 2017-03-28 Humax Co., Ltd. Methods of transmitting and receiving a media information file for HTTP streaming
CN103190097A (en) * 2010-08-31 2013-07-03 数码士有限公司 Methods of transmitting and receiving a media information file for http streaming
US9131027B2 (en) 2010-11-08 2015-09-08 Huawei Technologies Co., Ltd. Method, system, and client for streaming media service
CN103905915B (en) * 2010-12-15 2017-06-16 北京小度互娱科技有限公司 Online Video sniff method for down loading and device
CN103905915A (en) * 2010-12-15 2014-07-02 百度在线网络技术(北京)有限公司 Online video sniffing downloading method and device
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal
CN102111674B (en) * 2010-12-22 2012-11-14 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal
CN102137278A (en) * 2010-12-30 2011-07-27 广州市动景计算机科技有限公司 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)
US9390274B2 (en) 2011-03-22 2016-07-12 Huawei Technologies Co., Ltd. Media data processing method and apparatus
CN102868938B (en) * 2011-07-07 2018-06-05 上海聚力传媒技术有限公司 A kind of method and apparatus for being used to obtain segmented video files in network
WO2013033863A1 (en) * 2011-09-07 2013-03-14 Compuware Corporation Performance monitoring of a media player launched by a web browser
US9112825B2 (en) 2011-09-07 2015-08-18 Dynatrace Llc Performance monitoring of a media player launched by a web browser
CN102497359A (en) * 2011-12-02 2012-06-13 山东大学 Thin client streaming media-based service system running method
CN102497359B (en) * 2011-12-02 2014-06-04 山东大学 Thin client streaming media-based service system running method
US9774910B2 (en) 2011-12-30 2017-09-26 Huawei Technologies Co., Ltd. Method and apparatus for evaluating media delivery quality
CN103297452A (en) * 2012-02-24 2013-09-11 北京对角巷科技发展有限公司 Method and system for publishing and broadcasting streaming media on Internet in live mode
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
CN102647634A (en) * 2012-05-02 2012-08-22 合一网络技术(北京)有限公司 Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video
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
CN103702176A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 HLS (http live streaming) protocol-based video downloading method and device
CN103763638A (en) * 2014-01-23 2014-04-30 中国联合网络通信集团有限公司 Video resource obtaining method and device
CN103763638B (en) * 2014-01-23 2017-02-15 中国联合网络通信集团有限公司 Video resource obtaining method and device
US10003999B2 (en) 2014-05-22 2018-06-19 Huawei Technologies Co., Ltd. HTTP-based buffer status updating method and device, and buffer status processor
CN105100172B (en) * 2014-05-22 2018-03-27 华为技术有限公司 The buffer status update method and equipment of a kind of http protocol, processor
CN105100172A (en) * 2014-05-22 2015-11-25 华为技术有限公司 Cache state updating method based on HTTP protocol, cache state updating equipment and cache state processor
CN104581434A (en) * 2015-01-09 2015-04-29 上海小蚁科技有限公司 Video-on-demand method and device
CN104581435A (en) * 2015-01-20 2015-04-29 赵树乔 Naming method of data stream
WO2017045528A1 (en) * 2015-09-18 2017-03-23 中兴通讯股份有限公司 Method, device and system for multicast transmission
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
CN111277869A (en) * 2020-02-14 2020-06-12 腾讯科技(深圳)有限公司 Video playing method, device, equipment and storage medium
WO2021159770A1 (en) * 2020-02-14 2021-08-19 腾讯科技(深圳)有限公司 Video playback method, device, apparatus, and storage medium
CN111277869B (en) * 2020-02-14 2021-12-14 腾讯科技(深圳)有限公司 Video playing method, device, equipment and storage medium
CN113079386A (en) * 2021-03-19 2021-07-06 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101282348B (en) 2011-03-30

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
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
CN103648019A (en) Video downloading method and device based on HLS protocol
CN103813185B (en) A kind of method that segment programs are quickly distributed, server and client
US9648394B2 (en) Video encoding and serving architecture
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
CN105635753B (en) The method for down loading and device of media data
CN104641655A (en) Terminal cache method, terminal and server
JP6597604B2 (en) Reception device, transmission device, data communication method, and data processing method
CN104469538A (en) Picture-quality-smaller-loss-oriented RTP video streaming data package recombination method
US20070100833A1 (en) E-bookmark
WO2009111982A1 (en) Multimedia network application processing system and method
CN101420420A (en) Method and device for data stream type transmission
WO2015109842A1 (en) Method for processing segmented programs, server and client device
US10523409B2 (en) Method of synchronization during the processing, by a multimedia player, of an item of multimedia content transmitted by an MBMS service
CN101917327A (en) Streaming media recording method and player
CN104080013A (en) Special-effect playing method and device

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

Granted publication date: 20110330

Termination date: 20180406

CF01 Termination of patent right due to non-payment of annual fee