CN102740125B - System and method for playing streaming media - Google Patents

System and method for playing streaming media Download PDF

Info

Publication number
CN102740125B
CN102740125B CN201210194086.7A CN201210194086A CN102740125B CN 102740125 B CN102740125 B CN 102740125B CN 201210194086 A CN201210194086 A CN 201210194086A CN 102740125 B CN102740125 B CN 102740125B
Authority
CN
China
Prior art keywords
streaming media
request
file
client
processes unit
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
CN201210194086.7A
Other languages
Chinese (zh)
Other versions
CN102740125A (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 CN201210194086.7A priority Critical patent/CN102740125B/en
Publication of CN102740125A publication Critical patent/CN102740125A/en
Priority to PCT/CN2013/075336 priority patent/WO2013185514A1/en
Application granted granted Critical
Publication of CN102740125B publication Critical patent/CN102740125B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a system and method for playing streaming media. According to the method, a database stores an m3u8 display list file and a corresponding TS file; a client transmits a request of playing the streaming media to a program processing unit through a Flash player; the program processing unit transmits the corresponding request receipt of the request of playing the streaming media; after receiving the request receipt, the client sends a quest of playing the streaming media to an FMS streaming media server through the Flash player; the FMS streaming media server transmits the streaming media corresponding to the request of playing the streaming media to the Flash player through an RTMP protocol (Real Time Messaging Protocol); and then the Flash player plays the streaming media. With the adoption of the system and method disclosed by the invention, the problem of synchronously supporting an Apple terminal and the Flash player through a set of database systems and a media streaming content can be solved; and the cost of operation of a website is reduced in the field of internet video play application required for synchronously supporting the Apple terminal and the Flash player.

Description

A kind of system and method for playing stream media
Technical field
The present invention relates to internet video and play field, relate in particular to a kind of system and method for playing stream media.
Background technology
HTTP Live Streaming agreement is that a kind of Streaming Media broadcasts agreement, the product such as iPhone, iPad, Mac of Apple is all realized Streaming Media based on this agreement and is broadcasted, the feature of HTTP Live Streaming agreement maximum is to use stream cutting techniques, files in stream media is cut into multiple TS fragment files, then set up a m3u8 index file.In Internet Transmission, use HTTP Live Streaming agreement can realize the fragmentation transmission of file, be conducive to make full use of network performance, improve the reliability of system.The Flash player of Adobe company is the streaming media playing terminal that on current the Internet, user is maximum, but it supports RTMP agreement, do not support HTTP Live Streaming agreement, make like this to use the user of Apple's Product Terminal can not watch Flash streaming medium content, use the user of Flash player can not watch the streaming medium content of following HTTP Live Streaming agreement.
How to utilize advantage and the Flash player advantage on user use amount of HTTP Live Streaming agreement on database, Internet Transmission simultaneously, realizing the optimization utilization of streaming media resource, is that current internet video is play the problem that needs solution in application industry.
Summary of the invention
The object of the invention is to propose a kind of system and method for playing stream media, can utilize advantage and the Flash player advantage on user use amount of HTTP Live Streaming agreement on database, Internet Transmission simultaneously, realize Flash player plays and follow the streaming medium content of HTTP Live Streaming agreement.Solve and use a set of data base set a streaming medium content of unifying to support the problem of apple terminal and Flash player simultaneously, in the internet video that need to simultaneously support apple terminal and Flash player is play application, greatly reduce Web Hosting cost and operation cost.
The invention provides a kind of system of playing stream media, comprise database, routine processes unit, FMS streaming media server and client, described database, routine processes unit, FMS streaming media server are connected successively with client, and routine processes unit is connected with client, wherein
Described database is for storing the m3u8 play list file and TS file corresponding to described m3u8 play list file that meet HTTP Live Streaming protocol specification;
Described routine processes unit is for resolving m3u8 playlist, receive TS file, TS file being converted to the Streaming Media of flv or f4v form and described Streaming Media is sent to FMS streaming media server by RTMP agreement;
Described FMS streaming media server is for storing the Streaming Media of flv or f4v form and being sent to client by RTMP agreement;
Described client is for sending the request of playing stream media by Flash player to FMS streaming media server, and plays packaged flv that FMS streaming media server sends or the Streaming Media of f4v form.
Another aspect of the present invention, also provides a kind of method of playing stream media, comprises the following steps:
A, database storage meet m3u8 play list file and the TS file corresponding to described m3u8 play list file of HTTP Live Streaming protocol specification;
B, client send the request of playing stream media to routine processes unit by Flash player, routine processes unit sends the request receipt of request correspondence of described playing stream media to client;
C, client are received the request that sends described playing stream media after described request receipt by Flash player to FMS streaming media server;
D, FMS streaming media server are sent to Flash player by RTMP agreement by the Streaming Media of the request correspondence of described playing stream media, and Flash player is play.
Further, in step B, routine processes unit sends the request receipt of request correspondence of described playing stream media to client, further comprising the steps of:
Whether routine processes unit is checked has the Streaming Media of the request of described playing stream media correspondence to send record, to send described request receipt to client if having;
If there is no the TS file of the request correspondence of described playing stream media to be converted to the Streaming Media of flv or f4v form, and described Streaming Media is sent to FMS streaming media server by RTMP agreement stores, described request receipt is sent to client.
Further, routine processes unit is converted to described TS file the Streaming Media of flv or f4v form, further comprising the steps of:
Routine processes unit converts the request of described playing stream media the request of m3u8 play list file is sent to database to, the described m3u8 play list file that routine processes unit receives and send in resolution data storehouse, obtains corresponding TS listed files and TS file address;
Routine processes unit by described TS file address to database request TS file, and after receiving the TS file that database sends and buffer memory;
The TS file that the decapsulation of routine processes unit receives, obtains raw audio streams and video flowing after splicing, described raw audio streams and video flowing are encapsulated as to the Streaming Media of flv or f4v form.
Technique effect of the present invention is: utilize advantage and the Flash player advantage on user use amount of HTTP Live Streaming agreement on database, Internet Transmission simultaneously, realize Flash player plays and follow the streaming medium content of HTTP Live Streaming agreement.Use a set of data base set a streaming medium content of unifying to support apple terminal and Flash player simultaneously, in the internet video that need to simultaneously support apple terminal and Flash player is play application, reduce Web Hosting cost and operation cost.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in write specification, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Brief description of the drawings
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, for explaining the present invention, is not construed as limiting the invention together with embodiments of the present invention.In the accompanying 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 the method for playing stream media in the specific embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
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 database 101, routine processes unit 102, FMS streaming media server 103 and client 104, database, routine processes unit, FMS streaming media server are connected successively with client, and client is connected with routine processes unit.
Database is for storing m3u8 play list file and TS file corresponding to described m3u8 play list file.
Routine processes unit is for resolving m3u8 playlist, receive TS file, TS file being converted to the Streaming Media of flv or f4v form and described Streaming Media is sent to FMS streaming media server by RTMP agreement.
FMS streaming media server is for storing the Streaming Media of flv or f4v form and being sent to client by RTMP agreement.
Client is for sending the request of playing stream media by Flash player to FMS streaming media server, and plays packaged flv that FMS streaming media server sends or the Streaming Media of f4v form.
Fig. 2 is the flow chart of the method for playing stream media in the specific embodiment of the invention.As shown in Figure 2, the flow process of the method for playing stream media, specifically comprises the following steps:
Step 201, database storage meet m3u8 play list file and the TS file corresponding to described m3u8 play list file of HTTP Live Streaming protocol specification.
Step 202, client send the request of playing stream media to routine processes unit by Flash player to client by Flash player.
Whether step 203, routine processes unit are checked has the Streaming Media of the request of described playing stream media correspondence to send record, to go to step 207, if do not go to step 204 if having;
Step 204, routine processes unit convert the request of described playing stream media the request of m3u8 play list file is sent to database to, the described m3u8 play list file that routine processes unit receives and send in resolution data storehouse, obtains corresponding TS listed files and TS file address.
Step 205, routine processes unit, and are received after the TS file that database sends and are stored to and process buffering area to database request TS file by described TS file address.
The TS file that step 206, the decapsulation of routine processes unit receive, after splicing, obtain raw audio streams and video flowing, described raw audio streams and video flowing are encapsulated as to the Streaming Media of flv or f4v form, and described Streaming Media is sent to the storage of FMS streaming media server by RTMP agreement.
Step 207, routine processes unit send request receipt to client, and client is received the request that sends described playing stream media after described request receipt by Flash player to FMS streaming media server.
Step 208, FMS streaming media server are sent to Flash player by RTMP agreement by the Streaming Media of the request correspondence of described playing stream media, and Flash player is play.
Finally it should be noted that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (3)

1. the system of a playing stream media, it is characterized in that, comprise database, routine processes unit, FMS streaming media server and client, database, routine processes unit, FMS streaming media server are connected successively with client, routine processes unit is connected with client, wherein
Described database is for storing the m3u8 play list file and TS file corresponding to described m3u8 play list file that meet HTTP Live Streaming protocol specification;
Described routine processes unit is for resolving m3u8 playlist, receive TS file, TS file being converted to the Streaming Media of flv or f4v form and described Streaming Media is sent to FMS streaming media server by RTMP agreement;
Described routine processes unit also for the request receipt of request correspondence that sends playing stream media to client, check and whether have the Streaming Media of the request of described playing stream media correspondence to send record, to send described request receipt to client if having;
If there is no the TS file of the request correspondence of described playing stream media to be converted to the Streaming Media of flv or f4v form, and described Streaming Media is sent to FMS streaming media server by RTMP agreement stores, described request receipt is sent to client;
Described FMS streaming media server is for storing the Streaming Media of flv or f4v form and being sent to client by RTMP agreement;
Described client is for sending the request of playing stream media to routine processes unit by Flash player, and send the request of playing stream media to FMS streaming media server by Flash player receiving after described request receipt, and play packaged flv that FMS streaming media server sends or the Streaming Media of f4v form.
2. a method for playing stream media, is characterized in that, comprises the following steps;
A, database storage meet m3u8 play list file and the TS file corresponding to described m3u8 play list file of HTTP Live Streaming protocol specification;
B, client send the request of playing stream media to routine processes unit by Flash player, routine processes unit sends the request receipt of request correspondence of described playing stream media to client;
Whether routine processes unit is checked has the Streaming Media of the request of described playing stream media correspondence to send record, to send described request receipt to client if having;
If there is no the TS file of the request correspondence of described playing stream media to be converted to the Streaming Media of flv or f4v form, and described Streaming Media is sent to FMS streaming media server by RTMP agreement stores, described request receipt is sent to client;
C, client are received the request that sends described playing stream media after described request receipt by Flash player to FMS streaming media server;
D, FMS streaming media server are sent to Flash player by RTMP agreement by the Streaming Media of the request correspondence of described playing stream media, and Flash player is play.
3. a kind of method of playing stream media according to claim 2, is characterized in that, routine processes unit is converted to described TS file the Streaming Media of flv or f4v form, further comprising the steps:
Routine processes unit converts the request of described playing stream media the request of m3u8 play list file is sent to database to, the described m3u8 play list file that routine processes unit receives and send in resolution data storehouse, obtains corresponding TS listed files and TS file address;
Routine processes unit by described TS file address to database request TS file, and after receiving the TS file that database sends and buffer memory;
The TS file that the decapsulation of routine processes unit receives, obtains raw audio streams and video flowing after splicing, described raw audio streams and video flowing are encapsulated as to the Streaming Media of flv or f4v form.
CN201210194086.7A 2012-06-13 2012-06-13 System and method for playing streaming media Expired - Fee Related CN102740125B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210194086.7A CN102740125B (en) 2012-06-13 2012-06-13 System and method for playing streaming media
PCT/CN2013/075336 WO2013185514A1 (en) 2012-06-13 2013-05-08 System and method for playing streaming media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210194086.7A CN102740125B (en) 2012-06-13 2012-06-13 System and method for playing streaming media

Publications (2)

Publication Number Publication Date
CN102740125A CN102740125A (en) 2012-10-17
CN102740125B true CN102740125B (en) 2014-11-26

Family

ID=46994782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210194086.7A Expired - Fee Related CN102740125B (en) 2012-06-13 2012-06-13 System and method for playing streaming media

Country Status (2)

Country Link
CN (1) CN102740125B (en)
WO (1) WO2013185514A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102740125B (en) * 2012-06-13 2014-11-26 天脉聚源(北京)传媒科技有限公司 System and method for playing streaming media
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
CN104751866A (en) * 2013-12-25 2015-07-01 上海那里信息科技有限公司 Out-station playing method of web flash on the basis of audio and player system
CN104394443A (en) * 2014-09-16 2015-03-04 东方有线网络有限公司 Method for dynamically inserting and broadcasting program in HLS live broadcast streaming medium
CN104410901A (en) * 2014-11-18 2015-03-11 上海天脉聚源文化传媒有限公司 Play method and play device of M3U8 format live stream
CN104753923A (en) * 2015-03-10 2015-07-01 中国联合网络通信集团有限公司 Streaming based Flash protocol conversion method and system
CN104883614A (en) * 2015-05-19 2015-09-02 福建宏天信息产业有限公司 WEB video playing method based on Adobe FlashPlayer and Jquery frame
CN114531499B (en) * 2020-11-06 2024-03-26 网宿科技股份有限公司 Port sharing method, system and server based on QUIC protocol
CN114051161B (en) * 2021-11-09 2022-11-29 腾讯科技(深圳)有限公司 Webpage video playing method and device
CN116055765B (en) * 2023-01-09 2024-08-16 湖南快乐阳光互动娱乐传媒有限公司 Media playing method, system and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media
CN102377694A (en) * 2010-08-06 2012-03-14 鸿富锦精密工业(深圳)有限公司 Streaming media gateway and method for providing streaming media service by using streaming media gateway

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239800B2 (en) * 2001-05-02 2007-07-03 David H. Sitrick Portable player for personal video recorders
CN101697549B (en) * 2009-10-23 2013-12-04 中兴通讯股份有限公司 Method and system for displaying stream media and stream media management server
CN102740125B (en) * 2012-06-13 2014-11-26 天脉聚源(北京)传媒科技有限公司 System and method for playing streaming media

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377694A (en) * 2010-08-06 2012-03-14 鸿富锦精密工业(深圳)有限公司 Streaming media gateway and method for providing streaming media service by using streaming media gateway
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media

Also Published As

Publication number Publication date
CN102740125A (en) 2012-10-17
WO2013185514A1 (en) 2013-12-19

Similar Documents

Publication Publication Date Title
CN102740125B (en) System and method for playing streaming media
CN102118428B (en) Method and system for playing streaming media
CN103036889B (en) A kind of adaptive flow media playing method and Play System thereof
CN103036888B (en) Adaptive flow media playing method and adaptive identifying unit thereof
CN102256162B (en) Method and system for optimizing media-on-demand based on real-time file format conversion
US20150281800A1 (en) Broadcast content to http client conversion
WO2016058411A1 (en) Splicing method and splicing system for http live streaming media fragmentation
US9584577B2 (en) Method for enabling use of HLS as a common intermediate format
CN102710966A (en) Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN102055718B (en) Method, device and system for layering request content in http streaming system
KR20120114016A (en) Method and apparatus for network adaptive streaming user data in a outer terminal
CN104168453A (en) Method for implementing video monitoring stream media application system
CN103024491B (en) The video broadcasting method of mobile terminal and system
JPWO2016174960A1 (en) Reception device, transmission device, and data processing method
JP6728246B2 (en) Method and apparatus for transmitting and receiving signals in multimedia system
JP2019071680A (en) Terminal device and receiving device
CN108174284B (en) Android system-based video decoding method
KR102137858B1 (en) Transmission device, transmission method, reception device, reception method, and program
US20220038789A1 (en) Video content processing systems and methods
WO2014203745A1 (en) Content provision device, content provision method, program, terminal device, and content provision system
CN106303754A (en) A kind of audio data play method and device
US9705836B2 (en) Method, server and SNS system for message interaction
JP2017525270A (en) Method and apparatus for receiving media packets in a multimedia system
KR20220116162A (en) Techniques for Alternative Content Signaling in ATSC 3.0 TV
CA2944985C (en) Receiver, transmitter, data communication method, and data processing method

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: System and method for playing streaming media

Effective date of registration: 20160520

Granted publication date: 20141126

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: TVMining (Beijing) Media Technology Co., Ltd.

Registration number: 2016990000415

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
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20180509

Granted publication date: 20141126

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: TVMining (Beijing) Media Technology Co., Ltd.

Registration number: 2016990000415

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

Denomination of invention: System and method for playing streaming media

Effective date of registration: 20180509

Granted publication date: 20141126

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: Yimin source (Beijing) Technology Co., Ltd.|TVMining (Beijing) Media Technology Co., Ltd.

Registration number: 2018990000351

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: 20141126

Termination date: 20210613