CN102118428B - Method and system for playing streaming media - Google Patents

Method and system for playing streaming media Download PDF

Info

Publication number
CN102118428B
CN102118428B CN 201010610140 CN201010610140A CN102118428B CN 102118428 B CN102118428 B CN 102118428B CN 201010610140 CN201010610140 CN 201010610140 CN 201010610140 A CN201010610140 A CN 201010610140A CN 102118428 B CN102118428 B CN 102118428B
Authority
CN
China
Prior art keywords
file
agent unit
http server
flash player
request
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
Application number
CN 201010610140
Other languages
Chinese (zh)
Other versions
CN102118428A (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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN 201010610140 priority Critical patent/CN102118428B/en
Publication of CN102118428A publication Critical patent/CN102118428A/en
Application granted granted Critical
Publication of CN102118428B publication Critical patent/CN102118428B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method and system for playing streaming media. The method is characterized in that a hypertext transport protocol (HTTP) server stores an m3u8 playlist file and a transport stream (TS) file corresponding to the m3u8 playlist file; sending a play request by a Flash player to an agent unit; converting the play request into a request of the m3u8 playlist file by the agent unit and sending the request of the m3u8 playlist file to the HTTP server; returning the m3u8 playlist file by the HTTP server; analyzing the m3u8 playlist file by the agent unit to acquire a uniform resource identifier (URI) corresponding to the TS file; requesting the TS file for the HTTP server by the agent unit, and receiving the TS file from the HTTP server; demultiplexing the TS file by the agent unit, and carrying out splicing to generate audio streams and video streams; encapsulating the audio streams and the video streams into the streaming media in the format of flv or f4v by the agent unit; and sending the streaming media in the format of flv or f4v to the Flash player by the HTTP, and playing the streaming media in the format of flv or f4v by the Flash player. By using the technical scheme, a server system and a share of streaming contents can be used to support apple terminals and the Flash player simultaneously.

Description

A kind of method and system of playing stream media
Technical field
The present invention relates to internet video play-back technology field, relate in particular to a kind of method and system of playing stream media.
Background technology
HTTP Live Streaming agreement is that a kind of Streaming Media broadcasts agreement; Products such as the iPhone of apple, iPad, Mac all realize that based on this agreement Streaming Media broadcasts; The Flash player of Adobe is a most popular video playing terminal on the Internet, but it does not support HTTP Live Streaming agreement.How utilizing advantage and Flash player the advantage on user experience of HTTP Live Streaming agreement on head end, Network Transmission simultaneously, is the problem that needs solution at present.
Summary of the invention
The objective of the invention is to propose a kind of method and system of playing stream media; Can use a cover server system and a streaming medium content to support apple terminal and Flash player simultaneously, can support the internet video of apple terminal and Flash player to play in the application simultaneously at needs and cut operating costs greatly.
For reaching this purpose, the present invention adopts following technical scheme:
A kind of method of playing stream media may further comprise the steps:
A, http server storage meet the m3u8 play list file and the corresponding TS file of said m3u8 play list file of HTTP Live Streaming standard;
The request that B, Flash player send playing stream media to agent unit, agent unit converts the request of said playing stream media to the m3u8 play list file request, and issues http server;
C, http server are to agent unit transmission m3u8 play list file;
D, agent unit are resolved the m3u8 play list file that receives, and obtain the URI of corresponding TS file;
E, agent unit to http server request TS file, and receive the TS file from http server through said URI;
The TS file that F, agent unit demultiplexing receive, the splicing back produces audio stream and video flowing;
G, agent unit are encapsulated as said audio stream and video flowing the Streaming Media of flv or f4v form;
H, agent unit are sent to the Flash player with packaged flv or f4v format stream media through http protocol, and the Flash player is play.
A kind of system of playing stream media comprises http server, agent unit and Flash player, and http server, agent unit and flash player are connected successively,
Http server is used to store m3u8 play list file and the corresponding TS file of said m3u8 play list file that meets HTTP Live Streaming standard, and sends to agent unit;
The request of the playing stream media that agent unit is used for the Flash player is sent converts to issues http server to the request of m3u8 play list file; The m3u8 play list file that parsing receives from http server; Obtain the URI of corresponding TS file, to http server request TS file, receive the TS file from http server through URI; The TS file that demultiplexing receives; Splicing back produces audio stream and video flowing, and audio stream and video flowing are encapsulated as the Streaming Media of flv or f4v form, and is sent to the Flash player through http protocol;
The Flash player is used for sending to agent unit the request of playing stream media, and plays packaged flv or f4v format stream media that agent unit is sent.
Agent unit is positioned at the http server place.
Agent unit is positioned at Flash player place.
Adopt technical scheme of the present invention, can use existing server to substitute the expensive FMS that Flash player plays Streaming Media need be disposed, and used HTTP Live Streaming agreement to substitute the RTMP agreement that the Flash player needs; Can make a cover server system and a streaming medium content support apple terminal and Flash player simultaneously, practice thrift the construction cost and the operation cost of network greatly; In Network Transmission, use HTTP Live Streaming agreement to realize the fragmentation transmission of file, help making full use of network performance, improve system reliability; The Flash player is supported at the terminal, has improved the user experience of client, has expanded user scope.
Description of drawings
Fig. 1 is the structural representation of the system of playing stream media in the specific embodiment of the invention.
Fig. 2 is the flow chart of playing stream media in the specific embodiment of the invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and through embodiment.
Fig. 1 is the structural representation of the system of playing stream media in the specific embodiment of the invention.As shown in Figure 1, the system of this playing stream media comprises http server 101, agent unit 102 and Flash player 103, and http server, agent unit and flash player are connected successively.
The http server storage meets the m3u8 play list file TS file corresponding with this m3u8 play list file of HTTP Live Streaming standard, and sends to agent unit.
Agent unit can be positioned at http server place or Flash player place; The request of the playing stream media that can the Flash player be sent converts to issues http server to the request of m3u8 play list file, resolves the m3u8 play list file that receives from http server, obtains the URI of corresponding TS file; Through URI to http server request TS file content; Receive the TS file from http server, the TS file that demultiplexing receives, the splicing back produces audio stream and video flowing; Audio stream and video flowing are encapsulated as the Streaming Media of flv or f4v form, and are sent to the Flash player through http protocol.
The request that the Flash player sends playing stream media to agent unit, and play packaged flv or the f4v format stream media that agent unit is sent.
Fig. 2 is the flow chart of playing stream media in the specific embodiment of the invention.As shown in Figure 2, the flow process of this playing stream media may further comprise the steps:
Step 201, http server storage meet the m3u8 play list file and the corresponding TS file of this m3u8 play list file of HTTP Live Streaming standard, and wherein the TS file is the fragment file, and is corresponding with the tabulation in the m3u8 play list file.
The request that step 202, Flash player send playing stream media to agent unit, agent unit converts the request of playing stream media to the m3u8 play list file request, and issues http server.
Step 203, http server are to agent unit transmission m3u8 play list file.
Step 204, agent unit are resolved the m3u8 play list file that receives, and obtain the URI of corresponding TS file.
Step 205, agent unit pass through this URI to http server request TS file, and receive this TS file from http server.
The TS file that step 206, agent unit demultiplexing receive produces separate audio stream and video flowing with these fragment file splicing backs.
Step 207, agent unit are encapsulated as audio stream and video flowing the Streaming Media of flv or f4v form.
Step 208, agent unit are sent to the Flash player with packaged flv or f4v format stream media through http protocol, Flash player plays flv or f4v format stream media.
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with this technological people in the technical scope that the present invention disclosed; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (4)

1. the method for a playing stream media is characterized in that, may further comprise the steps:
A, http server storage meet the m3u8 play list file and the corresponding TS file of said m3u8 play list file of HTTP Live Streaming standard;
The request that B, Flash player send playing stream media to agent unit, agent unit converts the request of said playing stream media to the m3u8 play list file request, and issues http server;
C, http server are to agent unit transmission m3u8 play list file;
D, agent unit are resolved the m3u8 play list file that receives, and obtain the Uniform Resource Identifier of corresponding TS file;
E, agent unit to http server request TS file, and receive the TS file from http server through said URI;
The TS file that F, agent unit demultiplexing receive, the splicing back produces audio stream and video flowing;
G, agent unit are encapsulated as said audio stream and video flowing the Streaming Media of flv or f4v form;
H, agent unit are sent to the Flash player with packaged flv or f4v format stream media through http protocol, and the Flash player is play.
2. the system of a playing stream media is characterized in that, comprises http server, agent unit and Flash player, and http server, agent unit and flash player are connected successively,
Http server is used to store m3u8 play list file and the corresponding TS file of said m3u8 play list file that meets HTTP Live Streaming standard, and sends to agent unit;
The request of the playing stream media that agent unit is used for the Flash player is sent converts to issues http server to the request of m3u8 play list file; The m3u8 play list file that parsing receives from http server; Obtain the Uniform Resource Identifier of corresponding TS file, to http server request TS file, receive the TS file from http server through said Uniform Resource Identifier; The TS file that demultiplexing receives; Splicing back produces audio stream and video flowing, and audio stream and video flowing are encapsulated as the Streaming Media of flv or f4v form, and is sent to the Flash player through http protocol;
The Flash player is used for sending to agent unit the request of playing stream media, and plays packaged flv or f4v format stream media that agent unit is sent.
3. the system of a kind of playing stream media according to claim 2 is characterized in that, agent unit is positioned at the http server place.
4. the system of a kind of playing stream media according to claim 2 is characterized in that, agent unit is positioned at Flash player place.
CN 201010610140 2010-12-29 2010-12-29 Method and system for playing streaming media Expired - Fee Related CN102118428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010610140 CN102118428B (en) 2010-12-29 2010-12-29 Method and system for playing streaming media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010610140 CN102118428B (en) 2010-12-29 2010-12-29 Method and system for playing streaming media

Publications (2)

Publication Number Publication Date
CN102118428A CN102118428A (en) 2011-07-06
CN102118428B true CN102118428B (en) 2012-12-26

Family

ID=44217018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010610140 Expired - Fee Related CN102118428B (en) 2010-12-29 2010-12-29 Method and system for playing streaming media

Country Status (1)

Country Link
CN (1) CN102118428B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11777906B2 (en) 2013-07-23 2023-10-03 Ericsson Ab Media distribution system with manifest-based entitlement enforcement

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685088B (en) * 2011-09-06 2015-03-18 天脉聚源(北京)传媒科技有限公司 Method for playing M3U8 stream media
CN102630059B (en) * 2012-03-23 2015-09-30 深圳创维数字技术有限公司 A kind of method and device realizing FLV video playback
CN102857797B (en) * 2012-04-12 2014-03-19 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing
CN102740125B (en) * 2012-06-13 2014-11-26 天脉聚源(北京)传媒科技有限公司 System and method for playing streaming media
CN102843614A (en) * 2012-07-27 2012-12-26 优视科技有限公司 Streaming media display method and equipment and system
CN102882865B (en) * 2012-09-19 2015-10-28 上海美琦浦悦通讯科技有限公司 The method of multimedia agency service control is realized based on socks5 agency agreement
CN103313111A (en) * 2012-10-29 2013-09-18 中兴通讯股份有限公司 Media playing method and device
CN103024289B (en) * 2012-12-28 2016-06-15 天脉聚源(北京)传媒科技有限公司 A kind of edit methods based on M3U8 list protocol live TV stream and device
CN104244079B (en) * 2013-06-07 2019-07-16 腾讯科技(深圳)有限公司 A kind of method for downloading video and device
CN104243430A (en) * 2013-06-20 2014-12-24 腾讯科技(深圳)有限公司 Streaming media playing method and device
CN103414733B (en) * 2013-09-03 2016-10-26 百视通网络电视技术发展有限责任公司 The player method of HLS Streaming Media and system
CN103491427A (en) * 2013-09-11 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for processing video
CN103561337A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Live web casting method and device based on intelligent television
CN103702171B (en) * 2013-12-12 2017-02-08 乐视网信息技术(北京)股份有限公司 Method for downloading video stream and electronic equipment
CN103796035B (en) * 2014-01-27 2019-11-05 南京中兴软件有限责任公司 A kind of method, server and client device handling segment programs
CN104125229B (en) * 2014-07-31 2016-09-21 合一网络技术(北京)有限公司 The player method of Streaming Media and playing device
CN104363511B (en) * 2014-11-28 2017-06-23 北京奇艺世纪科技有限公司 A kind of method and system of broadcasting F4v videos online in a mobile device
CN104811749A (en) * 2015-03-18 2015-07-29 天脉聚源(北京)传媒科技有限公司 Multimedia data transmission method and device
CN105120324B (en) * 2015-08-31 2018-08-10 暴风集团股份有限公司 A kind of distribution player realization method and system
CN105577645A (en) * 2015-12-11 2016-05-11 中国科学院声学研究所 Agent-based HLS client-end device and realization method thereof
CN106254548A (en) * 2016-09-29 2016-12-21 天脉聚源(北京)科技有限公司 A kind of method and device downloading stream medium data
CN109874028A (en) * 2017-12-01 2019-06-11 深圳市雷鸟信息科技有限公司 A kind of playback method, system and the storage medium of HLS Streaming Media
CN108683945B (en) * 2018-05-22 2021-03-26 上海聚力传媒技术有限公司 Video playing method and device based on HLS protocol
CN112243136B (en) * 2019-07-16 2023-06-30 中国移动通信集团浙江有限公司 Content playing method, video storage method and device
CN112243158B (en) * 2019-07-18 2023-07-14 腾讯科技(深圳)有限公司 Media file processing method and device, computer readable medium and electronic equipment
CN110730376A (en) * 2019-10-24 2020-01-24 上海二三四五网络科技有限公司 Control method and device for realizing video preloading through interface agent
CN114071241A (en) * 2020-08-06 2022-02-18 成都鼎桥通信技术有限公司 Video playing method, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809827A (en) * 2000-11-21 2006-07-26 汤姆森许可公司 System and process for network site fragmented search
CN101682512A (en) * 2007-05-31 2010-03-24 真实网络公司 Web media asset identification system and method
CN101848156A (en) * 2010-05-19 2010-09-29 苏州迈科网络安全技术有限公司 Method of FLV (Flash Video) flow localization

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010108053A1 (en) * 2009-03-19 2010-09-23 Azuki Systems, Inc. Method for scalable live streaming delivery for mobile audiences

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809827A (en) * 2000-11-21 2006-07-26 汤姆森许可公司 System and process for network site fragmented search
CN101682512A (en) * 2007-05-31 2010-03-24 真实网络公司 Web media asset identification system and method
CN101848156A (en) * 2010-05-19 2010-09-29 苏州迈科网络安全技术有限公司 Method of FLV (Flash Video) flow localization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
N.Zong.Survey and Gap Analysis for HTTP Streaming Standards and Implementations.《Network Working Group Internet-Draft》.2010,1-23. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11777906B2 (en) 2013-07-23 2023-10-03 Ericsson Ab Media distribution system with manifest-based entitlement enforcement

Also Published As

Publication number Publication date
CN102118428A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
CN102118428B (en) Method and system for playing streaming media
US9094737B2 (en) Network video streaming with trick play based on separate trick play files
Sodagar The mpeg-dash standard for multimedia streaming over the internet
JP6170920B2 (en) Method and apparatus for adaptive transcoding of multimedia streams
CN103036889B (en) A kind of adaptive flow media playing method and Play System thereof
US9247317B2 (en) Content streaming with client device trick play index
US20140359678A1 (en) Device video streaming with trick play based on separate trick play files
WO2017103856A1 (en) Media distribution with sample variants for normalized encryption
US9888047B2 (en) Efficient on-demand generation of ABR manifests
US20140297804A1 (en) Control of multimedia content streaming through client-server interactions
JP6329964B2 (en) Transmission device, transmission method, reception device, and reception method
CN102740125B (en) System and method for playing streaming media
JP2016526349A (en) Synchronizing multiple over-the-top streaming clients
EP2822274A1 (en) Method for converting online media data or playing video and apparatus thereof
WO2014201883A1 (en) Method and device for playing streaming media, and non-transitory storage medium
WO2013053326A1 (en) Method, server, client and system for recording and playing replay program
KR102499231B1 (en) Receiving device, sending device and data processing method
KR20120114016A (en) Method and apparatus for network adaptive streaming user data in a outer terminal
WO2014193996A2 (en) Network video streaming with trick play based on separate trick play files
WO2015192683A1 (en) Content distribution method, device and system based on adaptive streaming technology
CN105208440A (en) Online playing method and system for MP4-format video
KR102085192B1 (en) Rendering time control
KR20130005873A (en) Method and apparatus for receiving contents in broadcast system
CN105228001A (en) The method and system that a kind of FLV format video is play online
CN105049931B (en) The method and system that the video of format non-supporting in mobile terminal is converted

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and system for playing streaming media

Effective date of registration: 20140402

Granted publication date: 20121226

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd.

Registration number: 2014990000223

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20151126

Granted publication date: 20121226

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd.

Registration number: 2014990000223

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and system for playing streaming media

Effective date of registration: 20151130

Granted publication date: 20121226

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd.

Registration number: 2015990001068

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
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: 20121226

Termination date: 20211229