CN103533395A - Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel - Google Patents

Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel Download PDF

Info

Publication number
CN103533395A
CN103533395A CN201310450166.9A CN201310450166A CN103533395A CN 103533395 A CN103533395 A CN 103533395A CN 201310450166 A CN201310450166 A CN 201310450166A CN 103533395 A CN103533395 A CN 103533395A
Authority
CN
China
Prior art keywords
client
file
request
server
hls
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
CN201310450166.9A
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.)
WUHAN FONSVIEW TECHNOLOGY Co Ltd
Original Assignee
WUHAN FONSVIEW 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 WUHAN FONSVIEW TECHNOLOGY Co Ltd filed Critical WUHAN FONSVIEW TECHNOLOGY Co Ltd
Priority to CN201310450166.9A priority Critical patent/CN103533395A/en
Publication of CN103533395A publication Critical patent/CN103533395A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a system for realizing playback of a hyper text transfer protocol (HTTP) live streaming (HLS) channel and relates to the field of internet multimedia. The method comprises the following steps that a server retains all fragments in a playback range; after receiving a playback request sent by a client, the server checks fragment contents retained on the server and generates an m3u8 file according to the start time and end time of playback, wherein the format of the m3u8 file is the same as that of a video on demand (VOD) m3u8 file; when a certain program needs to be played back, the client sends a uniform resource locator (URL) corresponding to the program to the server and requests to play back the m3u8 file of the program; after receiving the request, the server sends the m3u8 file corresponding to the URL to the client; after receiving the m3u8 file, the client sequentially plays each fragment so as to realize playback. Under the condition that an HLS specification is not corrected, the playback of the HLS channel can be realized, and the experience of a user is improved.

Description

Realize HLS channel and review the method and system of broadcasting
Technical field
The present invention relates to internet multimedia field, particularly relate to a kind of HLS(HTTPLive of realization Streaming, the stream media network host-host protocol based on HTTP that Apple realizes) channel reviews the method and system of broadcasting.
Background technology
The application of internet multimedia is day by day prosperous, and the standard of HLS is more and more extensive in internet multimedia application.The application of HLS in the Internet is mainly VOD(Video On Demand, video request program) play and channel broadcasting.Simply describe HLS and realize the method that VOD plays, first client asks the m3u8(play list file of this VOD) file, server is received after this request, generate a m3u8 file, the information that this m3u8 file the inside comprises a plurality of bursts, each burst has fixing unique sequence number in m3u8 file, and client asks to play burst successively.When needs drag, client calculates the burst that needs broadcasting, directly asks this burst, and request burst is thereafter play successively.
Simply describe HLS below and realize the flow process that channel is play: first client asks the m3u8 file of certain channel, server is received after request, generate a m3u8 file, this m3u8 file the inside comprises several bursts before current time, and comprise TAG(label) a #EXT-X-MEDIA-SEQUENCE(media sequence number), the sequence number that shows first burst of this m3u8 file, client is asked the broadcasting of each burst successively according to the content in m3u8 file, while playing all bursts soon, identical URL(Uniform/Universal Resource Locator for client, URL(uniform resource locator)) arrive again the m3u8 file that server request is new, client is according to the TAG item #EXT-X-MEDIA-SEQUENCE in new m3u8 file, the burst that decides back to ask, and then request is play this burst, periodic cycle like this, to realize the broadcasting of channel live.
Current HLS channel is play can only realize live broadcasting, cannot realize the broadcasting that channel is reviewed, and user experiences and is restricted.
Summary of the invention
The object of the invention is in order to overcome the deficiency of above-mentioned background technology, provide a kind of HLS of realization channel to review the method and system of broadcasting, in the situation that not revising HLS standard, can realize the broadcasting that HLS channel is reviewed, promote user and experience.
The invention provides a kind of HLS of realization channel and review the method for broadcasting, comprise the following steps:
The stream media network host-host protocol HLS standard based on HTTP that S1, client and server are realized according to Apple realizes the service of channel live stream, and server retains all bursts in reviewing scope;
S2, server are received reviewing after request that client sends, the upper burst content retaining of the service of checking, according to the time started of reviewing and end time, generate a play list file m3u8 file, the form of the m3u8 of this m3u8 file and video on demand is the same;
S3, when client need to review certain program, client sends to server by uniform resource position mark URL corresponding to this program, the m3u8 file of this program is reviewed in request;
S4, server receive after request, and the m3u8 file that this URL is corresponding sends to client;
S5, client are received after m3u8 file, play successively each burst, realize the broadcasting of reviewing.
On the basis of technique scheme, further comprising the steps of after step S5: when needing to suspend, playing after time-out again, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, and then request is play successively.
On the basis of technique scheme, further comprising the steps of after step S5: need to drag while playing, client calculates the sequence number of the burst that needs broadcasting according to the m3u8 file of initial request, and then request is play successively.
The present invention also provides a kind of HLS of realization channel to review the system of broadcasting, comprises client and server, and described client and server is realized channel live stream service according to HLS standard, described server also for: retain all bursts in reviewing scope; Receive reviewing after request that client sends, the upper burst content retaining of the service of checking, according to the time started of reviewing and end time, generates a m3u8 file, and the form of the m3u8 of this m3u8 file and VOD is the same; Described client also for: when client need to review certain program, client sends to server by URL corresponding to this program, and the m3u8 file of this program is reviewed in request; Server receives after request, and the m3u8 file that this URL is corresponding sends to client; Client is received after m3u8 file, plays successively each burst, realizes the broadcasting of reviewing.
On the basis of technique scheme, when described client also needs to suspend, plays after time-out again for: client, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, and then request is play successively.
On the basis of technique scheme, described client also need to drag while playing for: client, and client calculates the sequence number that needs the burst play according to the m3u8 file of initial request, and then request is play successively.
Compared with prior art, advantage of the present invention is as follows:
The present invention, in the situation that not revising HLS standard, can realize the broadcasting that HLS channel is reviewed, and promotes user and experiences.
Accompanying drawing explanation
Fig. 1 realizes the flow chart that HLS channel is reviewed the method for broadcasting in the embodiment of the present invention.
Fig. 2 is the schematic diagram of the current reservation burst of server.
Fig. 3 is the schematic diagram of reviewing program.
Fig. 4 is the schematic diagram that client terminal playing is reviewed.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of HLS of realization channel to review the method for broadcasting, comprises the following steps:
S1, client and server are realized the service of channel live stream according to HLS standard, and shown in Figure 2, server retains all bursts in reviewing scope.Suppose that each little burst is 10 seconds, the sequence number of the burst of current positive generation is 1140, supposes that the ID that reviews channel is 1001.
S2, shown in Figure 3, server is received the request of reviewing that client is sent: reviewing the time started is 2013-06-0615:27:30, and reviewing the end time is 2013-06-0615:29:30, and the channel ID reviewing is 1001, and the ID reviewing is tvod3301; Server receives that after this request, the burst content of checking the upper reservation of service, according to the time started of reviewing and end time, generates a m3u8 file, and the form of the m3u8 of this m3u8 file and VOD is the same; Whois lookup is in this is reviewed to the burst in sequence number 1125 to 1136, according to these bursts, generates a m3u8 file;
S3, when client need to review certain program, client sends to server by URL corresponding to this program, the m3u8 file of this program is reviewed in request; Shown in Figure 4, the URL of client-requested is http://ip/hls/tvod/tvod3301.m3u8;
S4, server receive after request, and the m3u8 file that this URL is corresponding sends to client;
S5, client are received after m3u8 file, play successively each burst, realize the broadcasting of reviewing;
S6, when needing to suspend, playing again after time-out, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, then request is play successively;
S7, need to drag while playing, client calculates the sequence number that needs the burst play according to the m3u8 file of initial request, and then request is play successively.
The embodiment of the present invention also provides a kind of HLS of realization channel to review the system of broadcasting, comprises client and server, and client and server is realized channel live stream service according to HLS standard, server also for: retain all bursts in reviewing scope; Receive reviewing after request that client sends, the upper burst content retaining of the service of checking, according to the time started of reviewing and end time, generates a m3u8 file, and the form of the m3u8 of this m3u8 file and VOD is the same; Client also for: when client need to review certain program, client sends to server by URL corresponding to this program, and the m3u8 file of this program is reviewed in request; Server receives after request, and the m3u8 file that this URL is corresponding sends to client; Client is received after m3u8 file, plays successively each burst, realizes the broadcasting of reviewing.
When client needs to suspend, plays after time-out again, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, and then request is play successively.
Client need to drag while playing, and client calculates the sequence number of the burst that needs broadcasting according to the m3u8 file of initial request, and then request is play successively.
Those skilled in the art can carry out various modifications and variations to the embodiment of the present invention, if these are revised and modification belongs within the scope of the claims in the present invention and equivalent technologies thereof, these modifications and modification are also within protection scope of the present invention.
The prior art that the content of not describing in detail in specification is known to the skilled person.

Claims (6)

1. realize HLS channel and review a method for broadcasting, it is characterized in that, comprise the following steps:
The stream media network host-host protocol HLS standard based on HTTP that S1, client and server are realized according to Apple realizes the service of channel live stream, and server retains all bursts in reviewing scope;
S2, server are received reviewing after request that client sends, the upper burst content retaining of the service of checking, according to the time started of reviewing and end time, generate a play list file m3u8 file, the form of the m3u8 of this m3u8 file and video on demand is the same;
S3, when client need to review certain program, client sends to server by uniform resource position mark URL corresponding to this program, the m3u8 file of this program is reviewed in request;
S4, server receive after request, and the m3u8 file that this URL is corresponding sends to client;
S5, client are received after m3u8 file, play successively each burst, realize the broadcasting of reviewing.
2. the HLS of realization channel as claimed in claim 1 is reviewed the method for broadcasting, it is characterized in that: further comprising the steps of after step S5: when needing to suspend, playing again after time-out, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, then request is play successively.
3. the HLS of realization channel as claimed in claim 1 or 2 is reviewed the method for broadcasting, it is characterized in that: further comprising the steps of after step S5: need to drag while playing, client calculates the sequence number of the burst that needs broadcasting according to the m3u8 file of initial request, then request is play successively.
4. realize HLS channel and review a system for broadcasting, comprise client and server, described client and server is realized channel live stream service according to HLS standard, it is characterized in that: described server also for: retain all bursts in reviewing scope; Receive reviewing after request that client sends, the upper burst content retaining of the service of checking, according to the time started of reviewing and end time, generates a m3u8 file, and the form of the m3u8 of this m3u8 file and VOD is the same; Described client also for: when client need to review certain program, client sends to server by URL corresponding to this program, and the m3u8 file of this program is reviewed in request; Server receives after request, and the m3u8 file that this URL is corresponding sends to client; Client is received after m3u8 file, plays successively each burst, realizes the broadcasting of reviewing.
5. the HLS of realization channel as claimed in claim 4 is reviewed the system of broadcasting, it is characterized in that: when described client also needs to suspend, plays after time-out again for: client, client is calculated the sequence number of the burst that play according to the m3u8 file of initial request, then request is play successively.
6. as described in claim 4 or 5, realize the system that HLS channel is reviewed broadcasting, it is characterized in that: described client also need to drag while playing for: client, client calculates the sequence number of the burst that needs broadcasting according to the m3u8 file of initial request, then request is play successively.
CN201310450166.9A 2013-09-27 2013-09-27 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel Pending CN103533395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310450166.9A CN103533395A (en) 2013-09-27 2013-09-27 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310450166.9A CN103533395A (en) 2013-09-27 2013-09-27 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel

Publications (1)

Publication Number Publication Date
CN103533395A true CN103533395A (en) 2014-01-22

Family

ID=49935004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310450166.9A Pending CN103533395A (en) 2013-09-27 2013-09-27 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel

Country Status (1)

Country Link
CN (1) CN103533395A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986978A (en) * 2014-04-14 2014-08-13 曦威胜科技开发(深圳)有限公司 Method for achieving functions of fast forward, fast backward and accurate Seek in HLS protocol in expanding mode
CN104092690A (en) * 2014-07-15 2014-10-08 金亚科技股份有限公司 System and method for controlling media stream replaying bandwidth of streaming media
CN104168516A (en) * 2014-09-01 2014-11-26 上海下一代广播电视网应用实验室有限公司 System and method for achieving program replay on stream media live broadcast platform
CN104185037A (en) * 2014-02-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Method, device and system for transmitting and playing video
CN105407412A (en) * 2014-09-15 2016-03-16 上海天脉聚源文化传媒有限公司 Method and device for playing streaming media supporting M3U8 format
WO2016062081A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 System, device and method for implementing hls channel playback service, and storage medium
WO2016090912A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Method, device, terminal and system for generating and playing live video
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN111356028A (en) * 2020-03-16 2020-06-30 南京巨鲨显示科技有限公司 Method and device for realizing file sequence on demand by streaming media service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917590A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network live broadcasting system with playback function and player
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
US20120278497A1 (en) * 2011-04-29 2012-11-01 Cbs Interactive, Inc. Reduced Video Player Start-Up Latency In HTTP Live Streaming And Similar Protocols
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917590A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network live broadcasting system with playback function and player
US20120278497A1 (en) * 2011-04-29 2012-11-01 Cbs Interactive, Inc. Reduced Video Player Start-Up Latency In HTTP Live Streaming And Similar Protocols
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185037A (en) * 2014-02-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Method, device and system for transmitting and playing video
CN103986978A (en) * 2014-04-14 2014-08-13 曦威胜科技开发(深圳)有限公司 Method for achieving functions of fast forward, fast backward and accurate Seek in HLS protocol in expanding mode
CN104092690A (en) * 2014-07-15 2014-10-08 金亚科技股份有限公司 System and method for controlling media stream replaying bandwidth of streaming media
CN104092690B (en) * 2014-07-15 2017-03-01 金亚科技股份有限公司 Streaming Media review Media Stream bandwidth control system and method
CN104168516A (en) * 2014-09-01 2014-11-26 上海下一代广播电视网应用实验室有限公司 System and method for achieving program replay on stream media live broadcast platform
CN105407412A (en) * 2014-09-15 2016-03-16 上海天脉聚源文化传媒有限公司 Method and device for playing streaming media supporting M3U8 format
WO2016062081A1 (en) * 2014-10-21 2016-04-28 中兴通讯股份有限公司 System, device and method for implementing hls channel playback service, and storage medium
WO2016090912A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Method, device, terminal and system for generating and playing live video
CN105744309A (en) * 2014-12-12 2016-07-06 中兴通讯股份有限公司 Method, device and system for generating and playing, and terminal
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN111356028A (en) * 2020-03-16 2020-06-30 南京巨鲨显示科技有限公司 Method and device for realizing file sequence on demand by streaming media service

Similar Documents

Publication Publication Date Title
CN103533395A (en) Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel
CN103517157B (en) Realize the method and system that HLS channel time-shifting is play
EP2391086B1 (en) Method and apparatus for playing live content
CN102572555B (en) Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN102118428B (en) Method and system for playing streaming media
US20110320287A1 (en) Method and apparatus for providing streaming media programs and targeted advertisements compatibly with http live streaming
CN108092973A (en) Synchronous multiple OTT steaming transfer clients
CN103581699A (en) Video playing method, streaming media server and streaming media playing system
WO2013178010A1 (en) Multimedia content distribution method, device and system
CN102055718B (en) Method, device and system for layering request content in http streaming system
EP2120457A1 (en) A method, related service device and system for providing video content
CN103957469A (en) Internet video on demand method and system based on real-time packaging switching
CN105049931B (en) The method and system that the video of format non-supporting in mobile terminal is converted
CN113141522B (en) Resource transmission method, device, computer equipment and storage medium
WO2015042962A1 (en) System and method of a link surfed http live streaming broadcasting system
CN107124668A (en) Transmit device and method, streaming services system and recording medium as a stream
EP2891323B1 (en) Rendering time control
JP6728246B2 (en) Method and apparatus for transmitting and receiving signals in multimedia system
CN104469401A (en) HLS based on-demand playing system and method
CN102047681A (en) Method and apparatus for using internet protocol television service based on application received in multicast session
EP3285455A1 (en) Content item aggregation method and related device and communication system
CN107925798A (en) receiving device, sending device and data processing method
CN104093045B (en) OTT TV playing requests processing methods and system based on Hui Yuan
CN105376657A (en) Media content supplying method, media content playing method, media content supplying device and media content service system
CN105578216B (en) A method of realizing HLS program request fast forwarding and fast rewindings

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140122