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

System and method for playing streaming media Download PDF

Info

Publication number
WO2013185514A1
WO2013185514A1 PCT/CN2013/075336 CN2013075336W WO2013185514A1 WO 2013185514 A1 WO2013185514 A1 WO 2013185514A1 CN 2013075336 W CN2013075336 W CN 2013075336W WO 2013185514 A1 WO2013185514 A1 WO 2013185514A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
request
processing unit
program processing
client
Prior art date
Application number
PCT/CN2013/075336
Other languages
French (fr)
Chinese (zh)
Inventor
赵百泉
Original Assignee
天脉聚源(北京)传媒科技有限公司
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 天脉聚源(北京)传媒科技有限公司 filed Critical 天脉聚源(北京)传媒科技有限公司
Publication of WO2013185514A1 publication Critical patent/WO2013185514A1/en

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

Definitions

  • the present invention relates to the field of Internet video playback, and in particular, to a system and method for playing streaming media. Background technique
  • the HTTP Live Streaming protocol is a streaming media broadcast protocol. Apple's iPhone, iPad, Mac and other products are based on the protocol to achieve streaming media broadcast. The biggest feature of the HTTP Live Streaming protocol is the use of stream segmentation technology to stream media files. Cut into multiple TS fragment files and create an m3u8 cable I file. The use of the HTTP Live Streaming protocol in network transmission can achieve fragmented transmission of files, which is beneficial to make full use of network performance and improve system reliability. Adobe's Flash player is currently the most popular streaming media player on the Internet, but it supports the RTMP protocol and does not support the HTTP Live Streaming protocol. This allows users who use Apple's product terminals to not view Flash streaming content, using Flash. Users of the player cannot watch streaming content that follows the HTTP Live Streaming protocol.
  • the object of the present invention is to provide a system and method for playing streaming media, which can simultaneously utilize the advantages of the HTTP Live Streaming protocol in database and network transmission, and the advantages of the Flash player in user usage, so that the Flash player plays according to HTTP.
  • Stream of Live Streaming protocol Media content Solve the use of a database system and a stream of media content while supporting Apple terminals and
  • the present invention provides a system for playing streaming media, including a database, a program processing unit, an FMS streaming server, and a client.
  • the database, the program processing unit, the FMS streaming server, and the client are sequentially connected, and the program processing unit and the client are connected. End connection, where
  • the database is configured to store an m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and a TS file corresponding to the m3u8 playlist file;
  • the program processing unit is configured to parse the m3u8 playlist, receive the TS file, convert the TS file into a flv or f4v format streaming media, and send the streaming media to the FMS streaming media server through the RTMP protocol;
  • the FMS streaming server is configured to store streaming media in flv or f4v format, and send the data to the client through the RTMP protocol;
  • the client is configured to send a request to play the streaming media to the FMS streaming server through the Flash player, and play the encapsulated flv or f4v format streaming media sent by the FMS streaming server.
  • a method for playing a streaming media including the following steps:
  • the database stores the m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and the TS file corresponding to the m3u8 playlist file;
  • the client sends a request for playing the streaming media to the program processing unit through the Flash player, and the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client;
  • the client After receiving the request receipt, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
  • the FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same.
  • step B the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client, and further includes the following steps: The program processing unit checks whether there is a streaming media transmission record corresponding to the request for playing the streaming media, and if yes, sends the request receipt to the client;
  • the TS file corresponding to the request for playing the streaming media is converted into a streaming media of the flv or f4v format, and the streaming media is sent to the FMS streaming media server for storage by using the RTMP protocol, and the request receipt is sent to the Client.
  • the program processing unit converts the TS file into a streaming media in the flv or f4v format, and further includes the following steps:
  • the program processing unit converts the request for playing the streaming media into a request for the m3u8 playlist file, and the program processing unit receives and parses the m3u8 playlist file sent by the database to obtain a corresponding TS file list and a TS file.
  • the program processing unit requests the TS file from the database through the TS file address, and receives the TS file sent by the database and caches the TS file;
  • the program processing unit decapsulates the received TS file, and obtains the original audio stream and the video stream after splicing, and encapsulates the original audio stream and the video stream into a streaming media in flv or f4v format.
  • the technical effects of the present invention are: Simultaneously utilizing the advantages of the HTTP Live Streaming protocol in the database, the network transmission, and the advantages of the Flash player in the user usage, the Flash player plays the streaming media content following the HTTP Live Streaming protocol.
  • Using a database system and a streaming media content to support both Apple's terminal and Flash player reducing website construction costs and operating costs in Internet video playback applications that require both Apple and Flash players.
  • Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention will be realized and attained by the ⁇ RTI
  • FIG. 1 is a schematic structural diagram of a system for playing a streaming medium in a specific embodiment of the present invention.
  • FIG. 2A is a main flowchart of a method for playing a streaming media in a specific embodiment of the present invention.
  • 2B is a detailed flowchart of a method of playing a streaming medium in an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of a system for playing a streaming media according to an embodiment of the present invention.
  • the system for playing streaming media includes a database 101, a program processing unit 102, an FMS streaming server 103, and a client 104.
  • the database, the program processing unit, the FMS streaming server, and the client are sequentially connected, and the client and the client The program processing unit is connected.
  • the database is used to store the m3u8 playlist file and the TS file corresponding to the m3u8 playlist file.
  • the program processing unit is configured to parse the m3u8 playlist, receive the TS file, convert the TS file into a streaming media of flv or f4v format, and send the streaming media to the FMS streaming server through the RTMP protocol.
  • the FMS streaming server is used to store streaming media in flv or f4v format and send it to the client through the RTMP protocol.
  • the client is configured to send a request for playing streaming media to the FMS streaming server through the Flash player, and play the packaged flv or f4v format streaming media sent by the FMS streaming server.
  • FIG. 2A is a main flowchart of a method for playing a streaming media in an embodiment of the present invention. As shown in FIG. 2A, the flow of the method for playing a streaming media includes the following steps:
  • the database stores the m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and the TS file corresponding to the m3u8 playlist file;
  • the client sends a request for playing the streaming media to the program processing unit through the Flash player, and the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client;
  • the client After receiving the request receipt, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
  • the FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same.
  • FIG. 2B is a detailed flowchart of a method of playing a streaming medium in a specific embodiment of the present invention. As shown in FIG. 2B, the flow of the method for playing a streaming media specifically includes the following steps:
  • Step 201 The database stores an m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and a TS file corresponding to the m3u8 playlist file.
  • Step 202 The client sends a request for playing the streaming media to the program processing unit through the Flash player to the client through the Flash player.
  • Step 203 the program processing unit checks whether there is a streaming media transmission record corresponding to the request to play the streaming media, if yes, then proceeds to step 207, if not, then proceeds to step 204;
  • Step 204 The program processing unit converts the request for playing the streaming media into a request for the m3u8 playlist file, and the program processing unit receives and parses the m3u8 playlist file sent by the database to obtain a corresponding TS file list. And TS file address.
  • Step 205 The program processing unit requests the TS file from the database by using the TS file address, and receives the TS file sent by the database and stores the TS file in the processing buffer.
  • Step 206 The program processing unit decapsulates the received TS file, and obtains the original audio stream and the video stream after splicing, and encapsulates the original audio stream and the video stream into a streaming media in a flv or f4v format, and passes the streaming media.
  • the RTMP protocol is sent to the FMS streaming server for storage.
  • Step 207 The program processing unit sends a request receipt to the client, and after receiving the request, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
  • Step 208 The FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same.
  • the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

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

A system and method for playing streaming media are disclosed in the application. First, a database stores m3u8 playlist files and corresponding TS files; a client sends a request of playing streaming media to a program processing unit by a Flash player, and the program processing unit sends corresponding request receipt of the request of playing the streaming media to the client; after receiving the request receipt, the client sends the request of playing the streaming media to an FMS streaming media server by the Flash player; the FMS streaming media server sends the streaming media corresponding to the request of playing the streaming media to the Flash player according to the RTMP protocol, and the Flash player plays the streaming media. The invention can realize that both an Apple terminal and a Flash player are supported by one set of database system and one media streaming content, and the cost of website operations is reduced in the application field of internet video playing which requires supporting both the Apple terminal and the Flash player.

Description

一种播放流媒体的系统和方法 本申请要求在 2012年 6月 13日提交中国专利局、申请号为 201210194086.7、 发明名称为"一种播放流媒体的系统和方法"的中国专利申请的优先权,其全部 内容通过引用结合在本申请中。 技术领域  System and method for playing streaming media This application claims priority to Chinese patent application filed on June 13, 2012, the Chinese Patent Office, Application No. 201210194086.7, entitled "A System and Method for Playing Streaming Media" The entire content of which is incorporated herein by reference. Technical field
本发明涉及互联网视频播放领域, 尤其涉及一种播放流媒体的系统和方 法。 背景技术  The present invention relates to the field of Internet video playback, and in particular, to a system and method for playing streaming media. Background technique
HTTP Live Streaming协议是一种流媒体播出协议 , 苹果公司的 iPhone、 iPad、 Mac等产品都基于该协议实现流媒体播出, HTTP Live Streaming协议最 大的特点是使用流分割技术, 将流媒体文件切割成多个 TS碎片文件, 然后建 立一个 m3u8索弓 I文件。 在网络传输中使用 HTTP Live Streaming协议可以实现 文件的碎片化传输, 有利于充分利用网络性能, 提高系统的可靠性。 Adobe 公司的 Flash播放器是目前互联网上使用用户最多的流媒体播放终端, 但其支 持 RTMP协议, 不支持 HTTP Live Streaming协议, 这样使得使用苹果公司产品 终端的用户不能观看 Flash流媒体内容, 使用 Flash播放器的用户不能观看遵循 HTTP Live Streaming协议的流媒体内容。  The HTTP Live Streaming protocol is a streaming media broadcast protocol. Apple's iPhone, iPad, Mac and other products are based on the protocol to achieve streaming media broadcast. The biggest feature of the HTTP Live Streaming protocol is the use of stream segmentation technology to stream media files. Cut into multiple TS fragment files and create an m3u8 cable I file. The use of the HTTP Live Streaming protocol in network transmission can achieve fragmented transmission of files, which is beneficial to make full use of network performance and improve system reliability. Adobe's Flash player is currently the most popular streaming media player on the Internet, but it supports the RTMP protocol and does not support the HTTP Live Streaming protocol. This allows users who use Apple's product terminals to not view Flash streaming content, using Flash. Users of the player cannot watch streaming content that follows the HTTP Live Streaming protocol.
如何同时利用 HTTP Live Streaming协议在数据库、 网络传输上的优势和 Flash播放器在用户使用量上的优势, 实现流媒体资源的优化利用, 是目前互 联网视频播放应用行业中需要解决的问题。 发明内容  How to utilize the advantages of HTTP Live Streaming protocol in database and network transmission and the advantages of Flash player in user usage to realize optimal utilization of streaming media resources is a problem that needs to be solved in the Internet video playback application industry. Summary of the invention
本发明的目的在于提出一种播放流媒体的系统和方法, 能够同时利用 HTTP Live Streaming协议在数据库、网络传输上的优势和 Flash播放器在用户 使用量上的优势, 实现 Flash播放器播放遵循 HTTP Live Streaming协议的流 媒体内容。 解决使用一套数据库系统和一份流媒体内容同时支持苹果终端和The object of the present invention is to provide a system and method for playing streaming media, which can simultaneously utilize the advantages of the HTTP Live Streaming protocol in database and network transmission, and the advantages of the Flash player in user usage, so that the Flash player plays according to HTTP. Stream of Live Streaming protocol Media content. Solve the use of a database system and a stream of media content while supporting Apple terminals and
Flash播放器的问题, 在需要同时支持苹果终端和 Flash播放器的互联网视频 播放应用领域中大大降低网站建设成本和运营成本。 The problem with the Flash player is greatly reduced in terms of website construction costs and operating costs in the field of Internet video playback applications that require both Apple terminals and Flash players.
本发明提供了一种播放流媒体的系统, 包括数据库、程序处理单元、 FMS 流媒体服务器和客户端, 所述数据库、 程序处理单元、 FMS流媒体服务器和 客户端依次连接, 程序处理单元与客户端连接, 其中  The present invention provides a system for playing streaming media, including a database, a program processing unit, an FMS streaming server, and a client. The database, the program processing unit, the FMS streaming server, and the client are sequentially connected, and the program processing unit and the client are connected. End connection, where
所述数据库用于存储符合 HTTP Live Streaming协议规范的 m3u8播放列 表文件和所述 m3u8播放列表文件对应的 TS文件;  The database is configured to store an m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and a TS file corresponding to the m3u8 playlist file;
所述程序处理单元用于解析 m3u8播放列表、 接收 TS文件、 将 TS文件 转换为 flv或者 f4v格式的流媒体、 并将所述流媒体通过 RTMP协议发送至 FMS流媒体服务器;  The program processing unit is configured to parse the m3u8 playlist, receive the TS file, convert the TS file into a flv or f4v format streaming media, and send the streaming media to the FMS streaming media server through the RTMP protocol;
所述 FMS 流媒体服务器用于存储 flv或者 f4v格式的流媒体、 并通过 RTMP协议发送至客户端;  The FMS streaming server is configured to store streaming media in flv or f4v format, and send the data to the client through the RTMP protocol;
所述客户端用于通过 Flash播放器向 FMS流媒体服务器发送播放流媒体 的请求, 并播放 FMS流媒体服务器发来的封装好的 flv或者 f4v格式的流媒 体。  The client is configured to send a request to play the streaming media to the FMS streaming server through the Flash player, and play the encapsulated flv or f4v format streaming media sent by the FMS streaming server.
本发明的另一方面, 还提供了一种播放流媒体的方法, 包括以下步骤: In another aspect of the present invention, a method for playing a streaming media is provided, including the following steps:
A、数据库存储符合 HTTP Live Streaming协议规范的 m3u8播放列表文件 和所述 m3u8播放列表文件对应的 TS文件; A. The database stores the m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and the TS file corresponding to the m3u8 playlist file;
B、 客户端通过 Flash播放器向程序处理单元发送播放流媒体的请求, 程 序处理单元发送所述播放流媒体的请求对应的请求回执至客户端;  B. The client sends a request for playing the streaming media to the program processing unit through the Flash player, and the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client;
C、客户端收到所述请求回执后通过 Flash播放器向 FMS流媒体服务器发 送所述播放流媒体的请求;  C. After receiving the request receipt, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
D、 FMS流媒体服务器通过 RTMP协议将所述播放流媒体的请求对应的 流媒体发送至 Flash播放器, Flash播放器进行播放。  D. The FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same.
进一步地, 步骤 B 中, 程序处理单元发送所述播放流媒体的请求对应的 请求回执至客户端, 还包括以下步骤: 程序处理单元查看是否有所述播放流媒体的请求对应的流媒体发送记录, 若有则发送所述请求回执至客户端; Further, in step B, the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client, and further includes the following steps: The program processing unit checks whether there is a streaming media transmission record corresponding to the request for playing the streaming media, and if yes, sends the request receipt to the client;
若没有则将所述播放流媒体的请求对应的 TS文件转换为 flv或者 f4v格 式的流媒体,并将所述流媒体通过 RTMP协议发送至 FMS流媒体服务器进行 存储, 将所述请求回执发送至客户端。  If not, the TS file corresponding to the request for playing the streaming media is converted into a streaming media of the flv or f4v format, and the streaming media is sent to the FMS streaming media server for storage by using the RTMP protocol, and the request receipt is sent to the Client.
进一步地, 程序处理单元将所述 TS文件转换为 flv或者 f4v格式的流媒 体, 还包括以下步骤:  Further, the program processing unit converts the TS file into a streaming media in the flv or f4v format, and further includes the following steps:
程序处理单元将所述播放流媒体的请求转换成对 m3u8播放列表文件的 请求发送至数据库,程序处理单元接收并解析数据库发来的所述 m3u8播放列 表文件, 获得对应的 TS文件列表和 TS文件地址;  The program processing unit converts the request for playing the streaming media into a request for the m3u8 playlist file, and the program processing unit receives and parses the m3u8 playlist file sent by the database to obtain a corresponding TS file list and a TS file. Address
程序处理单元通过所述 TS文件地址向数据库请求 TS文件, 并接收数据 库发来的 TS文件后并緩存;  The program processing unit requests the TS file from the database through the TS file address, and receives the TS file sent by the database and caches the TS file;
程序处理单元解封装接收到的 TS文件,拼接后获得原始音频流和视频流, 将所述原始音频流和视频流封装为 flv或者 f4v格式的流媒体。 本发明的技术效果在于: 同时利用 HTTP Live Streaming协议在数据库、 网络传输上的优势和 Flash播放器在用户使用量上的优势, 实现 Flash播放器 播放遵循 HTTP Live Streaming协议的流媒体内容。 使用一套数据库系统和一 份流媒体内容同时支持苹果终端和 Flash播放器,在需要同时支持苹果终端和 Flash播放器的互联网视频播放应用领域中降低网站建设成本和运营成本。 本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。  The program processing unit decapsulates the received TS file, and obtains the original audio stream and the video stream after splicing, and encapsulates the original audio stream and the video stream into a streaming media in flv or f4v format. The technical effects of the present invention are: Simultaneously utilizing the advantages of the HTTP Live Streaming protocol in the database, the network transmission, and the advantages of the Flash player in the user usage, the Flash player plays the streaming media content following the HTTP Live Streaming protocol. Using a database system and a streaming media content to support both Apple's terminal and Flash player, reducing website construction costs and operating costs in Internet video playback applications that require both Apple and Flash players. Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention will be realized and attained by the <RTI
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 附图说明 The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments. DRAWINGS
附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1是本发明具体实施方式中播放流媒体的系统的结构示意图。  The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawings: FIG. 1 is a schematic structural diagram of a system for playing a streaming medium in a specific embodiment of the present invention.
图 2 A是本发明具体实施方式中播放流媒体的方法的主要流程图。  2A is a main flowchart of a method for playing a streaming media in a specific embodiment of the present invention.
图 2B是本发明具体实施方式中播放流媒体的方法的详细流程图。 具体实施方式  2B is a detailed flowchart of a method of playing a streaming medium in an embodiment of the present invention. detailed description
以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described with reference to the accompanying drawings, and the preferred embodiments of the present invention are intended to illustrate and explain the invention.
图 1 是本发明具体实施方式中播放流媒体的系统的结构示意图。 如图 1 所示, 该播放流媒体的系统包括数据库 101、 程序处理单元 102、 FMS流媒体 服务器 103和客户端 104, 数据库、 程序处理单元、 FMS流媒体服务器和客 户端依次连接, 客户端与程序处理单元连接。  FIG. 1 is a schematic structural diagram of a system for playing a streaming media according to an embodiment of the present invention. As shown in FIG. 1, the system for playing streaming media includes a database 101, a program processing unit 102, an FMS streaming server 103, and a client 104. The database, the program processing unit, the FMS streaming server, and the client are sequentially connected, and the client and the client The program processing unit is connected.
数据库用于存储 m3u8播放列表文件和所述 m3u8播放列表文件对应的 TS文件。  The database is used to store the m3u8 playlist file and the TS file corresponding to the m3u8 playlist file.
程序处理单元用于解析 m3u8播放列表, 接收 TS文件, 将 TS文件转换 为 flv或者 f4v格式的流媒体, 并将所述流媒体通过 RTMP协议发送至 FMS 流媒体服务器。  The program processing unit is configured to parse the m3u8 playlist, receive the TS file, convert the TS file into a streaming media of flv or f4v format, and send the streaming media to the FMS streaming server through the RTMP protocol.
FMS流媒体服务器用于存储 flv或者 f4v格式的流媒体, 并通过 RTMP 协议发送至客户端。  The FMS streaming server is used to store streaming media in flv or f4v format and send it to the client through the RTMP protocol.
客户端用于通过 Flash播放器向 FMS流媒体服务器发送播放流媒体的请 求, 并播放 FMS流媒体服务器发来的封装好的 flv或者 f4v格式的流媒体。  The client is configured to send a request for playing streaming media to the FMS streaming server through the Flash player, and play the packaged flv or f4v format streaming media sent by the FMS streaming server.
图 2A是本发明具体实施方式中播放流媒体的方法的主要流程图。 如图 2A 所示, 播放流媒体的方法的流程, 具体包括以下步骤:  2A is a main flowchart of a method for playing a streaming media in an embodiment of the present invention. As shown in FIG. 2A, the flow of the method for playing a streaming media includes the following steps:
A、 数据库存储符合 HTTP Live Streaming协议规范的 m3u8播放列表文件 和所述 m3u8播放列表文件对应的 TS文件; B、客户端通过 Flash播放器向程序处理单元发送播放流媒体的请求,程序 处理单元发送所述播放流媒体的请求对应的请求回执至客户端; A. The database stores the m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and the TS file corresponding to the m3u8 playlist file; B. The client sends a request for playing the streaming media to the program processing unit through the Flash player, and the program processing unit sends the request receipt corresponding to the request for playing the streaming media to the client;
C、客户端收到所述请求回执后通过 Flash播放器向 FMS流媒体服务器发送 所述播放流媒体的请求;  C. After receiving the request receipt, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
D、 FMS流媒体服务器通过 RTMP协议将所述播放流媒体的请求对应的流 媒体发送至 Flash播放器, Flash播放器进行播放。  D. The FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same.
图 2B 是本发明具体实施方式中播放流媒体的方法的详细流程图。 如图 2B所示, 播放流媒体的方法的流程, 具体包括以下步骤:  2B is a detailed flowchart of a method of playing a streaming medium in a specific embodiment of the present invention. As shown in FIG. 2B, the flow of the method for playing a streaming media specifically includes the following steps:
步骤 201、 数据库存储符合 HTTP Live Streaming协议规范的 m3u8播放 列表文件和所述 m3u8播放列表文件对应的 TS文件。  Step 201: The database stores an m3u8 playlist file conforming to the HTTP Live Streaming protocol specification and a TS file corresponding to the m3u8 playlist file.
步骤 202、 客户端通过 Flash播放器向客户端通过 Flash播放器向程序处 理单元发送播放流媒体的请求。  Step 202: The client sends a request for playing the streaming media to the program processing unit through the Flash player to the client through the Flash player.
步骤 203、程序处理单元查看是否有所述播放流媒体的请求对应的流媒体 发送记录, 若有则转至步骤 207, 若没有则转至步骤 204;  Step 203, the program processing unit checks whether there is a streaming media transmission record corresponding to the request to play the streaming media, if yes, then proceeds to step 207, if not, then proceeds to step 204;
步骤 204、 程序处理单元将所述播放流媒体的请求转换成对 m3u8播放列 表文件的请求发送至数据库, 程序处理单元接收并解析数据库发来的所述 m3u8播放列表文件, 获得对应的 TS文件列表和 TS文件地址。  Step 204: The program processing unit converts the request for playing the streaming media into a request for the m3u8 playlist file, and the program processing unit receives and parses the m3u8 playlist file sent by the database to obtain a corresponding TS file list. And TS file address.
步骤 205、 程序处理单元通过所述 TS文件地址向数据库请求 TS文件, 并接收数据库发来的 TS文件后储存至处理緩冲区。  Step 205: The program processing unit requests the TS file from the database by using the TS file address, and receives the TS file sent by the database and stores the TS file in the processing buffer.
步骤 206、 程序处理单元解封装接收到的 TS文件, 拼接后获得原始音频 流和视频流, 将所述原始音频流和视频流封装为 flv或者 f4v格式的流媒体, 并将所述流媒体通过 RTMP协议发送至 FMS流媒体服务器储存。  Step 206: The program processing unit decapsulates the received TS file, and obtains the original audio stream and the video stream after splicing, and encapsulates the original audio stream and the video stream into a streaming media in a flv or f4v format, and passes the streaming media. The RTMP protocol is sent to the FMS streaming server for storage.
步骤 207、程序处理单元发送请求回执至客户端,客户端收到所述请求回 执后通过 Flash播放器向 FMS流媒体服务器发送所述播放流媒体的请求。  Step 207: The program processing unit sends a request receipt to the client, and after receiving the request, the client sends the request for playing the streaming media to the FMS streaming server through the Flash player.
步骤 208、 FMS流媒体服务器通过 RTMP协议将所述播放流媒体的请求 对应的流媒体发送至 Flash播放器, Flash播放器进行播放。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的形式。 Step 208: The FMS streaming media server sends the streaming media corresponding to the request for playing the streaming media to the Flash player through the RTMP protocol, and the Flash player plays the same. Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流程 和 /或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通 过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 脱离本发明实施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变 型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些 改动和变型在内。 Although the preferred embodiment of the invention has been described, it will be apparent to those skilled in the art that, Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and The spirit and scope of the embodiments of the present invention are departed. Thus, if the modifications and variations of the embodiments of the invention are within the scope of the claims and the equivalents thereof, the invention Changes and variants.

Claims

权 利 要 求 Rights request
1、 一种播放流媒体的系统, 其特征在于, 包括数据库、 程序处理单元、 FMS流媒体服务器和客户端, 数据库、 程序处理单元、 FMS流媒体服务器和 客户端依次连接, 程序处理单元与客户端连接, 其中 1. A system for playing streaming media, characterized in that it includes a database, a program processing unit, an FMS streaming media server and a client. The database, program processing unit, FMS streaming media server and client are connected in sequence, and the program processing unit is connected to the client. end connection, where
所述数据库用于存储符合 HTTP Live Streaming协议规范的 m3u8播放列表 文件和所述 m3u8播放列表文件对应的 TS文件; The database is used to store m3u8 playlist files that comply with HTTP Live Streaming protocol specifications and TS files corresponding to the m3u8 playlist files;
所述程序处理单元用于解析 m3u8播放列表、 接收 TS文件、 将 TS文件转换 为 flv或者 f4v格式的流媒体、 并将所述流媒体通过 RTMP协议发送至 FMS流媒 体服务器; The program processing unit is used to parse the m3u8 playlist, receive TS files, convert the TS files into streaming media in flv or f4v format, and send the streaming media to the FMS streaming media server through the RTMP protocol;
所述 FMS流媒体服务器用于存储 flv或者 f4v格式的流媒体、 并通过 RTMP 协议发送至客户端; The FMS streaming media server is used to store streaming media in flv or f4v format and send it to the client through the RTMP protocol;
所述客户端用于通过 Flash播放器向 FMS流媒体服务器发送播放流媒体的 请求, 并播放 FMS流媒体服务器发来的封装好的 flv或者 f4v格式的流媒体。 The client is used to send a request to play streaming media to the FMS streaming media server through the Flash player, and play the encapsulated streaming media in flv or f4v format sent by the FMS streaming media server.
2、 一种播放流媒体的方法, 其特征在于, 包括以下步骤: 2. A method of playing streaming media, characterized by including the following steps:
A、 数据库存储符合 HTTP Live Streaming协议规范的 m3u8播放列表文件 和所述 m3u8播放列表文件对应的 TS文件; A. The database stores m3u8 playlist files that comply with the HTTP Live Streaming protocol specification and the TS files corresponding to the m3u8 playlist files;
B、客户端通过 Flash播放器向程序处理单元发送播放流媒体的请求,程序 处理单元发送所述播放流媒体的请求对应的请求回执至客户端; B. The client sends a request to play streaming media to the program processing unit through the Flash player, and the program processing unit sends a request receipt corresponding to the request to play streaming media to the client;
C、客户端收到所述请求回执后通过 Flash播放器向 FMS流媒体服务器发送 所述播放流媒体的请求; C. After receiving the request receipt, the client sends the request to play the streaming media to the FMS streaming media server through the Flash player;
D、 FMS流媒体服务器通过 RTMP协议将所述播放流媒体的请求对应的流 媒体发送至 Flash播放器, Flash播放器进行播放。 D. The FMS streaming media server sends the streaming media corresponding to the request to play streaming media to the Flash player through the RTMP protocol, and the Flash player plays it.
3、 根据权利要求 2所述一种播放流媒体的方法, 其特征在于, 步骤 B中, 程序处理单元发送所述播放流媒体的请求对应的请求回执至客户端, 进一步 包括以下步骤: 3. A method of playing streaming media according to claim 2, characterized in that, in step B, the program processing unit sends a request receipt corresponding to the request to play streaming media to the client, further comprising the following steps:
程序处理单元查看是否有所述播放流媒体的请求对应的流媒体发送记录, 若有则发送所述请求回执至客户端; The program processing unit checks whether there is a streaming media transmission record corresponding to the request to play streaming media, If there is one, send the request receipt to the client;
若没有则将所述播放流媒体的请求对应的 TS文件转换为 flv或者 f4v格式 的流媒体,并将所述流媒体通过 RTMP协议发送至 FMS流媒体服务器进行存储, 将所述请求回执发送至客户端。 If not, convert the TS file corresponding to the request to play streaming media into streaming media in flv or f4v format, and send the streaming media to the FMS streaming media server through the RTMP protocol for storage, and send the request receipt to client.
4、 根据权利要求 3所述一种播放流媒体的方法, 其特征在于, 程序处理 单元将所述 TS文件转换为 flv或者 f4v格式的流媒体, 进一步包括以下步骤: 程序处理单元将所述播放流媒体的请求转换成对 m3u8播放列表文件的请 求发送至数据库, 程序处理单元接收并解析数据库发来的所述 m3u8播放列表 文件, 获得对应的 TS文件列表和 TS文件地址; 4. A method of playing streaming media according to claim 3, characterized in that the program processing unit converts the TS file into streaming media in flv or f4v format, further comprising the following steps: the program processing unit converts the playing The streaming media request is converted into a request for the m3u8 playlist file and sent to the database. The program processing unit receives and parses the m3u8 playlist file sent from the database to obtain the corresponding TS file list and TS file address;
程序处理单元通过所述 TS文件地址向数据库请求 TS文件, 并接收数据库 发来的 TS文件后并緩存; The program processing unit requests the TS file from the database through the TS file address, and receives and caches the TS file sent from the database;
程序处理单元解封装接收到的 TS文件,拼接后获得原始音频流和视频流, 将所述原始音频流和视频流封装为 flv或者 f4v格式的流媒体。 The program processing unit decapsulates the received TS file, obtains the original audio stream and video stream after splicing, and encapsulates the original audio stream and video stream into streaming media in flv or f4v format.
PCT/CN2013/075336 2012-06-13 2013-05-08 System and method for playing streaming media WO2013185514A1 (en)

Applications Claiming Priority (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
CN201210194086.7 2012-06-13

Publications (1)

Publication Number Publication Date
WO2013185514A1 true WO2013185514A1 (en) 2013-12-19

Family

ID=46994782

Family Applications (1)

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

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051161A (en) * 2021-11-09 2022-02-15 腾讯科技(深圳)有限公司 Webpage video playing method and device
CN114531499A (en) * 2020-11-06 2022-05-24 网宿科技股份有限公司 Port sharing method, system and server based on QUIC protocol
CN116055765A (en) * 2023-01-09 2023-05-02 湖南快乐阳光互动娱乐传媒有限公司 Media playing method, system and related equipment

Families Citing this family (8)

* 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020164156A1 (en) * 2001-05-02 2002-11-07 Brett Bilbrey Portable player for personal video recorders
CN101697549A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Method and system for displaying stream media and stream media management server
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media
CN102740125A (en) * 2012-06-13 2012-10-17 天脉聚源(北京)传媒科技有限公司 System and method for playing streaming media

Family Cites Families (1)

* 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020164156A1 (en) * 2001-05-02 2002-11-07 Brett Bilbrey Portable player for personal video recorders
CN101697549A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Method and system for displaying stream media and stream media management server
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media
CN102740125A (en) * 2012-06-13 2012-10-17 天脉聚源(北京)传媒科技有限公司 System and method for playing streaming media

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531499A (en) * 2020-11-06 2022-05-24 网宿科技股份有限公司 Port sharing method, system and server based on QUIC protocol
CN114531499B (en) * 2020-11-06 2024-03-26 网宿科技股份有限公司 Port sharing method, system and server based on QUIC protocol
CN114051161A (en) * 2021-11-09 2022-02-15 腾讯科技(深圳)有限公司 Webpage video playing method and device
CN114051161B (en) * 2021-11-09 2022-11-29 腾讯科技(深圳)有限公司 Webpage video playing method and device
CN116055765A (en) * 2023-01-09 2023-05-02 湖南快乐阳光互动娱乐传媒有限公司 Media playing method, system and related equipment

Also Published As

Publication number Publication date
CN102740125A (en) 2012-10-17
CN102740125B (en) 2014-11-26

Similar Documents

Publication Publication Date Title
WO2013185514A1 (en) System and method for playing streaming media
US10250949B2 (en) Broadcast content to HTTP client conversion
CN102118428B (en) Method and system for playing streaming media
US8843596B2 (en) Conversion between streaming media communication protocols
WO2013152689A1 (en) Background control method and system for video playing
TWI623226B (en) Directory limit based system and method for storing media segments
US8745256B2 (en) Method and system for multimedia audio video transfer
WO2013152580A1 (en) Method for converting online media data or playing video and apparatus thereof
WO2012089014A1 (en) Method, device and system for generating media file
US20210021655A1 (en) System and method for streaming music on mobile devices
WO2011110065A1 (en) Method and apparatus for cross-platform replay from pause point, method and apparatus for replay from pause point
CN102055718B (en) Method, device and system for layering request content in http streaming system
WO2017092327A1 (en) Playing method and apparatus
WO2016015419A1 (en) Streaming media playing method and playing device
WO2015192683A1 (en) Content distribution method, device and system based on adaptive streaming technology
US20170104550A1 (en) System for media rebroadcasting for synchronized rendering across multiple devices
WO2015169172A1 (en) Network video playing method and device
WO2017071604A1 (en) Playback method, device and storage medium
KR20120114016A (en) Method and apparatus for network adaptive streaming user data in a outer terminal
WO2018103696A1 (en) Media file playback method, server, client, and system
WO2017080427A1 (en) Media playing method, terminal, system and computer storage medium
WO2014161310A1 (en) Method and apparatus for playing multimedia resource
WO2013139146A1 (en) Device and apparatus for playing flv video
KR20150047459A (en) Multi-media file emulation device
JPWO2016174960A1 (en) Reception device, transmission device, and data processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13803576

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13803576

Country of ref document: EP

Kind code of ref document: A1