WO2014036797A1 - 一种流媒体协议的扩展方法及装置 - Google Patents

一种流媒体协议的扩展方法及装置 Download PDF

Info

Publication number
WO2014036797A1
WO2014036797A1 PCT/CN2012/086011 CN2012086011W WO2014036797A1 WO 2014036797 A1 WO2014036797 A1 WO 2014036797A1 CN 2012086011 W CN2012086011 W CN 2012086011W WO 2014036797 A1 WO2014036797 A1 WO 2014036797A1
Authority
WO
WIPO (PCT)
Prior art keywords
primitive
streaming media
protocol
request address
private protocol
Prior art date
Application number
PCT/CN2012/086011
Other languages
English (en)
French (fr)
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 WO2014036797A1 publication Critical patent/WO2014036797A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • H04L65/104Signalling gateways in the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for expanding a streaming media protocol. Background technique
  • the existing streaming media protocol extension scheme has (1) extending the structure layer protocol of the set top box; (2) replacing the structural layer of the set top box, using its own hard decryption player; (3) using external soft solution playback.
  • Device There are a number of problems in these prior art solutions, in which the structural layer protocol of the extended set top box and the structural layer of the set top box replaced by the own hard disk player are solutions that can only be used by the manufacturer.
  • the solution is costly, Google's code refactoring speed is 4, the previous version of the solution may be outdated in the next version, and using its own player, the software and hardware player developed by itself is also in development cost. It will be much higher. If you use an external soft-release player, you will face problems such as inability to use hardware performance, low playback capability, and endurance. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method and apparatus for expanding a streaming media protocol. It can solve the problems of requiring manufacturer support, costly solution and battery life, low cost, no need for manufacturer intervention and the ability to use hardware.
  • an embodiment of the present invention provides a method for extending a streaming media protocol, including:
  • the processing function corresponding to the primitive is invoked to respond to the streaming media request in the form of the private protocol.
  • the method includes: parsing an existing popular streaming media communication protocol, parsing the streaming media communication protocol into multiple primitives, and forming a primitive protocol stack ;
  • the existing popular streaming communication protocol includes: at least one of: http, rtsp, rtmp, and ftp;
  • the plurality of primitives include: at least one of size, open, read, search, and close.
  • the request address of the primitive form includes: an existing protocol name: // local server: port / primitive operation? Parameter
  • the parameter is a general protocol parameter converted by a proprietary protocol parameter.
  • the replacing the streaming media request address in the form of the private protocol with the request address in the form of a primitive described by the standard primitive includes:
  • the streaming media request address in the form of the private protocol is modified to the request address in the form of a primitive.
  • the replacing the streaming media request address in the form of the private protocol with the request address in the form of a primitive described by the standard primitive includes:
  • an embodiment of the present invention provides an extension device of a streaming media protocol, including: a processing module, configured to: when receiving a streaming media request address in the form of a private protocol, according to a pre-stored primitive protocol stack, The streaming media request address in the form of the private protocol is replaced with a request address in the form of a primitive described by a standard primitive;
  • the response module is configured to invoke, according to the request address of the primitive form, a processing function corresponding to the primitive to respond to the streaming media request in the form of the private protocol.
  • the device includes:
  • a parsing module configured to parse an existing popular streaming communication protocol, and parse the streaming media communication protocol into a plurality of primitives to form a primitive protocol stack;
  • the existing popular streaming communication protocol includes: at least one of: http, rtsp, rtmp, and ftp;
  • the plurality of primitives include: at least one of size, open, read, search, and close.
  • the request address of the primitive form includes: an existing protocol name: // local server: port/primary operation? parameter;
  • the parameter is a general protocol parameter converted by a proprietary protocol parameter.
  • the processing module includes:
  • a modifying unit configured to modify the streaming media request address in the form of the private protocol to a request address in a primitive form.
  • the processing module includes
  • a replacement unit configured to reopen a request address in a preset primitive form, and replace the streaming request address in the form of the private protocol.
  • the present invention adopts a method for extending a streaming media protocol in a set top box, and by resolving the private protocol of the streaming media request into a plurality of primitives, replacing the streaming media request address in the form of a private protocol with the request address in the form of a primitive, and then according to the request Address, call the corresponding handler to respond to the streaming request.
  • the invention solves the problem that the extended streaming media protocol in the set top box often needs vendor support, the solution update is fast, the development cost is high, the hardware performance cannot be used, the playing ability of the external software player is low, and the battery life is affected, thereby reducing the cost. No vendor intervention is required, and hardware performance can be used.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for expanding a streaming media protocol according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for expanding a streaming media protocol according to the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for expanding a streaming media protocol according to the present invention.
  • FIG. 4 is a schematic flow chart of a fourth embodiment of a method for expanding a streaming media protocol according to the present invention.
  • FIG. 5 is a schematic structural diagram of a first embodiment of an extension device of a streaming media protocol according to the present invention.
  • FIG. 6 is a schematic structural diagram of a second embodiment of an extension device of a streaming media protocol according to the present invention.
  • Figure ⁇ is a schematic structural diagram of a third embodiment of an extension device of the streaming media protocol of the present invention. detailed description
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for expanding a streaming media protocol according to the present invention.
  • the method for expanding the streaming media protocol in this embodiment includes the following steps:
  • S102 Call, according to the request address of the primitive form, a processing function corresponding to the primitive to respond to the streaming media request in the form of the private protocol.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for expanding a streaming media protocol according to the present invention.
  • the method for expanding the streaming media protocol described in this embodiment includes the following steps:
  • S203 Call, according to the request address in the primitive form, a processing function corresponding to the primitive to respond to the streaming media request in the form of the private protocol.
  • the existing popular streaming media communication protocol described in the present invention includes at least one of: http, rtsp, rtmp, and ftp.
  • the plurality of primitives include: size, open, read, search, close, at least one of five primitives of size, open, read, seek, close. For example, when receiving a request to play a video in the form of a private protocol, the set-top box needs to complete the extension of the private protocol, and then the private protocol is first parsed.
  • the operation of the private protocol on the video play on the set-top box can be divided into five operations of acquiring the video size, opening the video stream, reading the video stream, and searching and closing the video stream in the video stream, corresponding to the five primitives,
  • This private protocol is extended in the solution of the invention.
  • 3 is a schematic flowchart of a third embodiment of a method for expanding a streaming media protocol according to the present invention.
  • the method for expanding the streaming media protocol in this embodiment includes the following steps: 5301. Parse an existing popular streaming communication protocol, and parse the streaming communication protocol into a plurality of primitives to form a primitive protocol stack.
  • S303 Call, according to the request address of the primitive form, a processing function corresponding to the primitive to respond to the streaming media request in the form of the private protocol.
  • the request address of the primitive form in the present invention includes: an existing protocol name: // local server: port/primitive operation? a parameter; wherein the parameter is a general protocol parameter converted by a proprietary protocol parameter.
  • the present invention modifies the request address of the primitive form by using the streaming media request address in the form of a private protocol, and invokes the processing function corresponding to the primitive according to the request address to respond to the streaming media request in the form of the private protocol.
  • the processing function corresponding to the open protocol in the private protocol is invoked, and the streaming media stream is opened, and is requested by the media player of the set top box.
  • the channel, which passes this stream to the media play service of the set-top box, the media play service plays the stream as a local media stream.
  • FIG. 4 it is a schematic flowchart of a fourth embodiment of a method for expanding a streaming media protocol according to the present invention.
  • the method for expanding the streaming media protocol described in this embodiment includes the following steps:
  • S401 Parsing an existing popular streaming communication protocol, and parsing the streaming communication protocol into a plurality of primitives to form a primitive protocol stack.
  • S403 Call, according to the request address of the primitive form, a processing function corresponding to the primitive to respond to a streaming media request in the form of a private protocol.
  • the method for extending the streaming media protocol of the present invention further includes: when the private protocol of the streaming media request is a protocol mainly based on streaming access, such as the rtsp protocol and the rtmp protocol, it is difficult to perform the token analysis to achieve the byte level, When the seek extension is performed on the protocol, a preset primitive form needs to be reopened. Request address. For example, if a request stream with an rts encapsulation is received, the request address in the form of a private protocol is: rtsp: ⁇ media.com/ts/welcome.ts, then when it is necessary to seek to 1 millisecond, it is necessary to reopen a preset original.
  • the request address in the form of a private protocol is replaced with a request address in the form of a private protocol. Then, according to the request address in the form of the primitive, the processing function corresponding to the primitive is called to respond to the streaming media request in the form of the private protocol.
  • the device for extending a streaming media protocol according to this embodiment includes:
  • the processing module 100 is configured to: when receiving the streaming media request address in the form of a private protocol, replace the streaming media request address in the form of the private protocol with the primitive form described by the standard primitive according to the pre-stored primitive protocol stack Request address.
  • the response module 200 is configured to invoke, according to the request address of the primitive form, a processing function corresponding to the primitive to respond to the streaming media request in the form of the private protocol.
  • FIG. 6 is a schematic structural diagram of a second embodiment of an apparatus for expanding a streaming media protocol according to the present disclosure.
  • the apparatus for expanding a streaming media protocol according to this embodiment includes:
  • the processing module 200 is responsive to the module 300.
  • the device includes:
  • the parsing module 100 is configured to parse an existing popular streaming communication protocol, and parse the streaming media communication protocol into a plurality of primitives to form a primitive protocol stack.
  • the existing popular streaming media communication protocol described in the present invention includes at least one of: http, rtsp, rtmp, and ftp.
  • the plurality of primitives include: size, open, read, search, close, ie, at least one of five primitives of size, open, read, seek, close. For example, when a request to play a video in the form of a private protocol is received, the set-top box has to complete the extension of the private protocol, and then the private protocol is first parsed.
  • the operation of the private protocol on the video play on the set-top box can be divided into five operations of acquiring the video size, opening the video stream, reading the video stream, and searching and closing the video stream in the video stream, corresponding to the five primitives,
  • This private protocol is extended in the solution of the invention.
  • FIG. 7 is a schematic flowchart diagram of a third embodiment of an apparatus for expanding a streaming media protocol according to the present invention.
  • the device for expanding the streaming media protocol according to this embodiment includes:
  • the parsing module 100 the processing module 200, and the response module 300.
  • the processing module 200 includes: The modifying unit 210 is configured to modify the streaming media request address in the form of the private protocol to a request address in a primitive form.
  • the replacing unit 220 reopens a request address in the form of a preset primitive for replacing the streaming request address in the form of the private protocol.
  • the request address of the primitive form in the present invention includes: an existing protocol name: // local server: port/primitive operation? a parameter; wherein the parameter is a general protocol parameter converted by a proprietary protocol parameter.
  • the present invention modifies the request address of the primitive form by using the streaming media request address in the form of a private protocol, and invokes the processing function corresponding to the primitive according to the request address to respond to the streaming media request in the form of the private protocol.
  • the request address is: priv: 110.123.1.2/tesUs
  • the processing function corresponding to the primitive is called to respond to the streaming media request in the form of a private protocol.
  • the processing function corresponding to the open protocol in the private protocol is invoked, and the streaming media stream is opened, and is requested by the media player of the set top box.
  • the channel, which passes this stream to the media play service of the set-top box, the media play service plays the stream as a local media stream.
  • the private protocol requested by the streaming media is a protocol based on streaming access, such as the rts protocol and the rtmp protocol, it is difficult to perform the token analysis in the byte level.
  • the seek extension is performed on the protocol, a re-opening is required.
  • the request address of the private ten-party negotiation form is: rtsp: ⁇ media.com/ts/welcome.ts
  • the replacement unit reopens a pre-open
  • the request address of the primitive form is set to replace the request address in the form of the private protocol, and the processing function corresponding to the primitive is invoked to respond to the streaming media request in the form of the private protocol according to the request address of the primitive form.
  • the embodiment of the present invention adopts a method for extending a streaming media protocol in a set top box, and by resolving the private protocol of the streaming media request into multiple primitives, replacing the streaming media request address in the form of a private protocol with the request address in the form of a primitive, and then The request address, the corresponding processing function is called to respond to the streaming request.
  • the invention solves the problem that the extended streaming media protocol in the set top box often needs vendor support, the solution update is fast, the development cost is high, the hardware performance cannot be used, the playing ability of the external software player is low, and the battery life is affected, thereby reducing the cost. No vendor intervention is required, and hardware performance can be used.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

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

Abstract

本发明公开了一种流媒体协议扩展的方法,包括:当接收到私有协议形式的流媒体请求地址时,根据预先存储的原语协议栈,将所述私有协议形式的流媒体请求地址替换成以标准原语描述的原语形式的请求地址;根据所述原语形式的请求地址,调用所述原语对应的处理函数响应所述私有协议形式的流媒体请求。本发明还公开了一种流媒体协议的扩展装置。采用本发明,具有降低成本,独立扩展无需厂商干预以及可使用硬件性能等优点。

Description

一种流媒体协议的扩展方法及装置 技术领域
本发明涉及一种通信领域, 尤其涉及一种流媒体协议的扩展方法及装置。 背景技术
网络流媒体的兴起, 使得多种可以作为流媒体传输的协议, 如 http, rtsp, rtmp, ftp等随之出现, 同时还有一些私有协议, 这些协议有的不被机顶盒所支 持, 有的不支持其扩展。 然而产品的多样化决定了机顶盒对这些协议, 尤其是 私有协议的支持是必要的, 流媒体协议的扩展也显得更为必要了。
现有技术中对现有流媒体协议扩展的方案有( 1 )扩展机顶盒的结构层协议; ( 2 )替换机顶盒的结构层, 使用自己的硬解播放器; (3 )使用外部的软解播放 器。 这些现有技术方案中存在着多个问题, 其中扩展机顶盒的结构层协议和使 用自己的硬解播放器替换机顶盒的结构层, 都是只能产商才能使用的解决方案。 此外, 解决方案代价大, 谷歌的代码重构速度 4艮快, 上一个版本的解决方案可 能在下一个版本就过时了, 而且使用自己的播放器, 自己开发的软硬件播放器 在开发成本上也会高很多, 使用外部的软解播放器, 则会面临着无法使用硬件 性能, 播放能力比较低, 续航受影响等问题。 发明内容
本发明所要解决的技术问题在于, 提供一种流媒体协议的扩展方法及装置。 可解决需要产商支持, 解决方案代价大、 续航等问题, 起到低成本, 无需厂商 干预和可使用硬件能力的作用。
为了解决上述技术问题, 一方面, 本发明的实施例提供了一种流媒体协议 的扩展方法, 包括:
当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描述的原语形式的请 求地址;
根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应所述私 有协议形式的流媒体请求。 其中, 所述接收到私有协议形式的流媒体请求地址之前, 包括: 对现有的流行的流媒体通信协议进行解析, 将所述流媒体通信协议解析为 多个原语, 组成原语协议栈;
其中, 所述的现有的流行的流媒体通信协议, 包括: http , rtsp, rtmp , ftp 中的至少一个;
所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭中至少一个。
其中, 所述原语形式的请求地址包括: 现有协议名: //本地服务器: 端口 / 原语操作? 参数;
其中, 所述参数是由私有协议参数转换后的通用协议参数。
其中, 所述将所述私有协议形式的流媒体请求地址替换成以标准原语描述 的原语形式的请求地址, 包括:
将所述私有协议形式的流媒体请求地址修改为原语形式的请求地址。
其中, 所述将所述私有协议形式的流媒体请求地址替换成以标准原语描述 的原语形式的请求地址, 包括:
重新打开一条预先设置的原语形式的请求地址, 用于替换所述私有协议形 式的流媒体请求地址。
另一方面, 本发明的实施例提供了一种流媒体协议的扩展装置, 包括: 处理模块, 用于当接收到私有协议形式的流媒体请求地址时, 根据预先存 储的原语协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描 述的原语形式的请求地址;
响应模块, 用于根据所述原语形式的请求地址, 调用所述原语对应的处理 函数响应所述私有协议形式的流媒体请求。
其中, 所述装置, 包括:
解析模块, 用于对现有的流行的流媒体通信协议进行解析, 将所述流媒体 通信协议解析为多个原语, 组成原语协议栈;
其中, 所述的现有的流行的流媒体通信协议, 包括: http , rtsp, rtmp , ftp 中的至少一个;
所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭中至少一个。
其中, 所述原语形式的请求地址包括: 现有协议名: //本地服务器: 端口 / 原语操作? 参数; 其中, 所述参数是由私有协议参数转换后的通用协议参数。
其中, 所述处理模块, 包括:
修改单元, 用于将所述私有协议形式的流媒体请求地址修改为原语形式的 请求地址。
其中, 所述处理模块, 包括
替换单元, 用于重新打开一条预先设置的原语形式的请求地址, 用于替换 所述私有协议形式的流媒体请求地址。
本发明实施例具有如下优点或有益效果:
本发明采用在机顶盒中扩展流媒体协议的方法, 通过将流媒体请求的私有 协议解析为多个原语, 将私有协议形式的流媒体请求地址替换成原语形式的请 求地址, 再根据该请求地址, 调用相应处理函数响应流媒体请求。 本发明解决 了在机顶盒中扩展流媒体协议往往需要厂商支持, 解决方案更新快, 开发成本 高, 无法使用硬件性能, 使用外部软件播放器播放能力低以及续航受影响等问 题, 起到了降低成本, 无需厂商干预, 以及可使用硬件性能等作用。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明流媒体协议的扩展方法的第一实施例流程示意图;
图 2是本发明流媒体协议的扩展方法的第二实施例流程示意图;
图 3是本发明流媒体协议的扩展方法的第三实施例流程示意图;
图 4是本发明流媒体协议的扩展方法的第四实施例流程示意图;
图 5是本发明流媒体协议的扩展装置的第一实施例结构示意图;
图 6是本发明流媒体协议的扩展装置的第二实施例结构示意图;
图 Ί是本发明流媒体协议的扩展装置的第三实施例结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
下面参考附图对本发明的实施例进行描述。 参见图 1 , 为本发明流媒体协议 的扩展方法的第一实施例流程示意图。 本实施例所述的流媒体协议的扩展方法 包括步骤:
5101 , 当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语 协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描述的原语 形式的请求地址。
5102, 根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应 所述私有协议形式的流媒体请求。
参见图 2, 为本发明流媒体协议扩展的方法的第二实施例的流程示意图。 本 实施例所述的流媒体协议扩展的方法包括步骤:
5201 , 对现有的流行的流媒体通信协议进行解析, 将所述流媒体通信协议 解析为多个原语, 组成原语协议栈。
5202, 当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语 协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描述的原语 形式的请求地址。
5203 , 根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应 所述私有协议形式的流媒体请求。
具体实现中, 本发明中所述的现有的流行的流媒体通信协议, 包括: http, rtsp, rtmp, ftp中的至少一个。 所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭, 即 size, open, read, seek, close五个原语中至少一个。 例如, 当接收到 一个私有的协议形式的播放视频的请求时, 机顶盒要完成对这个私有协议的扩 展, 则首先要对私有协议进行解析。 私有协议对机顶盒上视频播放的操作可以 分为获取视频大小, 打开视频流, 读取视频流, 在视频流中搜索和关闭视频流 这五个操作, 对应上五个原语, 则可在本发明所述方案中扩展这个私有协议。 参见图 3 , 为本发明流媒体协议扩展的方法的第三实施例的流程示意图。 本 实施例所述的流媒体协议扩展的方法包括步骤: 5301 , 对现有的流行的流媒体通信协议进行解析, 将所述流媒体通信协议 解析为多个原语, 组成原语协议栈。
5302, 当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语 协议栈, 将所述私有协议形式的流媒体请求地址修改为原语形式的请求地址。
5303 , 根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应 所述私有协议形式的流媒体请求。
本发明中所述原语形式的请求地址包括: 现有协议名: //本地服务器: 端口 /原语操作? 参数; 其中, 所述参数是由私有协议参数转换后的通用协议参数。
具体实现中, 本发明通过将私有协议形式的流媒体请求地址修改原语形式 的请求地址, 根据该请求地址调用所述原语对应的处理函数响应所述私有协议 形式的流媒体请求。 例如, 当接收到私有协议形式的流媒体请求时, 其请求地 址为: priv: 110.123.1.2/test.ts, 则将所述请求地址修改成原语形式的请求地址, 如: http:〃127.0..0.1 :5010/open?url=priv%3A%2F%2Fl 10.123.1.2%2Ftest.ts, 根据 所述原语形式的请求地址中的参数, 调用所述原语对应的处理函数响应私有协 议形式的流媒体请求。 例如, 当以 open原语进行流媒体协议的扩展时, 根据参 数 priv: 110.123.1.2/test.ts,调用私有协议中 open对应的处理函数,打开流媒体流, 通过机顶盒的媒体播放器请求的通道, 将这个流传给机顶盒的媒体播放服务, 媒体播放服务将这个流当做一路本地的媒体流进行播放。
参见图 4, 为本发明流媒体协议扩展的方法的第四实施例的流程示意图。 本 实施例所述的流媒体协议扩展的方法包括步骤:
5401 , 对现有的流行的流媒体通信协议进行解析, 将所述流媒体通信协议 解析为多个原语, 组成原语协议栈。
5402, 当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语 协议栈, 重新打开一条预先设置的原语形式的请求地址, 用于替换所述私有协 议形式的流媒体请求地址。
5403 , 根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应 所述私有协议形式的流媒体请求。
本发明所述流媒体协议的扩展方法, 还包括当流媒体请求的私有协议为以 流式访问为主的协议, 例如 rtsp协议和 rtmp协议时, 进行 seek解析难以做到字 节级, 则在所述协议上进行 seek扩展时, 需重新打开一条预先设置的原语形式 的请求地址。 例如, 接收到一路 rts 封装的请求流, 其私有协议形式的请求地 址为: rtsp:〃 media.com/ts/welcome.ts, 则当需要 seek到 1毫秒时, 需要重新打开 一条预先设置的原语形式的请求地址, 替换所述私有协议形式的请求地址, 例 再根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应所述私有 协议形式的流媒体请求。
参照图 5 , 为本发明流媒体协议扩展的装置的第一实施例结构示意图, 本实 施例所述的流媒体协议扩展的装置, 包括:
处理模块 100, 用于当接收到私有协议形式的流媒体请求地址时,根据预先 存储的原语协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语 描述的原语形式的请求地址。
响应模块 200, 用于根据所述原语形式的请求地址, 调用所述原语对应的 处理函数响应所述私有协议形式的流媒体请求。
参照图 6, 为本发明流媒体协议扩展的装置的第二实施例结构示意图, 本实 施例所述的流媒体协议扩展的装置, 包括:
处理模块 200, 响应模块 300。
其中, 所述装置, 包括:
解析模块 100, 用于对现有的流行的流媒体通信协议进行解析, 将所述流媒 体通信协议解析为多个原语, 组成原语协议栈。
具体实现中, 本发明中所述的现有的流行的流媒体通信协议, 包括: http, rtsp, rtmp, ftp中的至少一个。 所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭, 即 size, open, read, seek, close五个原语中至少一个。 例如, 当接收到 一个私有的协议形式的播放视频的请求时, 机顶盒要完成对这个私有协议的扩 展, 则首先要对私有协议进行解析。 私有协议对机顶盒上视频播放的操作可以 分为获取视频大小, 打开视频流, 读取视频流, 在视频流中搜索和关闭视频流 这五个操作, 对应上五个原语, 则可在本发明所述方案中扩展这个私有协议。
参照图 7, 为本发明流媒体协议扩展的装置的第三实施例流程示意图。 本实 施例所述的流媒体协议扩展的装置, 包括:
解析模块 100, 处理模块 200, 响应模块 300。
其中, 所述处理模块 200, 包括: 修改单元 210,用于将所述私有协议形式的流媒体请求地址修改为原语形式 的请求地址。
替换单元 220, 重新打开一条预先设置的原语形式的请求地址, 用于替换所 述私有协议形式的流媒体请求地址。
本发明中所述原语形式的请求地址包括: 现有协议名: //本地服务器: 端口 /原语操作? 参数; 其中, 所述参数是由私有协议参数转换后的通用协议参数。
具体实现中, 本发明通过将私有协议形式的流媒体请求地址修改原语形式 的请求地址, 根据该请求地址调用所述原语对应的处理函数响应所述私有协议 形式的流媒体请求。 例如, 当接收到私有协议形式的流媒体请求时, 其请求地 址为: priv: 110.123.1.2/tesUs, 修改单元将所述请求地址修改成原语形式的请求 地址,如: http:〃127.0..0.1 :5010/open?url=priv%3A%2F%2Fl 10.123.1.2%2Ftest.ts。 根据所述原语形式的请求地址中的参数, 调用所述原语对应的处理函数响应私 有协议形式的流媒体请求。 例如, 当以 open原语进行流媒体协议的扩展时, 根 据参数 priv: 110.123.1.2/test.ts,调用私有协议中 open对应的处理函数,打开流媒 体流, 通过机顶盒的媒体播放器请求的通道, 将这个流传给机顶盒的媒体播放 服务, 媒体播放服务将这个流当做一路本地的媒体流进行播放。
当流媒体请求的私有协议为以流式访问为主的协议, 例如 rts 协议和 rtmp 协议时, 进行 seek解析难以做到字节级, 则在所述协议上进行 seek扩展时, 需 重新打开一条预先设置的原语形式的请求地址。 例如, 接收到一路 rtsp封装的 请求流, 其私有十办议形式的请求地址为: rtsp:〃 media.com/ts/welcome.ts, 则当需 要 seek到 1毫秒时, 替换单元重新打开一条预先设置的原语形式的请求地址, 替换所述私有协议形式的请求地址, 再根据所述原语形式的请求地址, 调用所 述原语对应的处理函数响应所述私有协议形式的流媒体请求。
本发明实施例采用在机顶盒中扩展流媒体协议的方法, 通过将流媒体请求 的私有协议解析为多个原语, 将私有协议形式的流媒体请求地址替换成原语形 式的请求地址, 再根据该请求地址, 调用相应处理函数响应流媒体请求。 本发 明解决了在机顶盒中扩展流媒体协议往往需要厂商支持, 解决方案更新快, 开 发成本高, 无法使用硬件性能, 使用外部软件播放器播放能力低以及续航受影 响等问题, 起到了降低成本, 无需厂商干预, 以及可使用硬件性能等作用。 以上所描述的装置实施例仅仅是示意性的, 其中所述作为分离部件说明的 单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也 可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目 的。 本领域普通技术人员在不付出创造性的劳动的情况下, 即可以理解并实施。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各实施 方式可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件。 基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡献的部分可以 以软件产品的形式体现出来, 该计算机软件产品可以存储在计算机可读存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行各个实施例或者实施例 的某些部分所述的方法。
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何在上 述实施方式的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在该 技术方案的保护范围之内。

Claims

1、 一种流媒体协议的扩展方法, 其特征在于, 包括:
当接收到私有协议形式的流媒体请求地址时, 根据预先存储的原语协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描述的原语形式的请 求地址;
根据所述原语形式的请求地址, 调用所述原语对应的处理函数响应所述私 有协议形式的流媒体请求。
2、 如权利要求 1所述的方法, 其特征在于, 所述接收到私有协议形式的流 媒体请求地址之前, 包括:
对现有的流行的流媒体通信协议进行解析, 将所述流媒体通信协议解析为 多个原语, 组成原语协议栈;
其中, 所述的现有的流行的流媒体通信协议, 包括: http, rtsp, rtmp, ftp 中的至少一个;
所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭中至少一个。
3、如权利要求 2所述的方法, 其特征在于, 所述原语形式的请求地址包括: 协议名: //本地服务器: 端口 /原语操作? 参数;
其中, 所述参数是由私有协议参数转换后的通用协议参数。
4、 如权利要求 1所述的方法, 其特征在于, 所述将所述私有协议形式的流 媒体请求地址替换成以标准原语描述的原语形式的请求地址, 包括:
将所述私有协议形式的流媒体请求地址修改为原语形式的请求地址。
5、 如权利要求 1所述的方法, 其特征在于, 所述将所述私有协议形式的流 媒体请求地址替换成以标准原语描述的原语形式的请求地址, 包括:
重新打开一条预先设置的原语形式的请求地址, 用于替换所述私有协议形 式的流媒体请求地址。
6、 一种流媒体协议的扩展装置, 其特征在于, 包括:
处理模块, 用于当接收到私有协议形式的流媒体请求地址时, 根据预先存 储的原语协议栈, 将所述私有协议形式的流媒体请求地址替换成以标准原语描 述的原语形式的请求地址;
响应模块, 用于根据所述原语形式的请求地址, 调用所述原语对应的处理 函数响应所述私有协议形式的流媒体请求。
7、 如权利要求 6所述的装置, 其特征在于, 所述装置, 包括:
解析模块, 用于对现有的流行的流媒体通信协议进行解析, 将所述流媒体 通信协议解析为多个原语, 组成原语协议栈;
其中, 所述的现有的流行的流媒体通信协议, 包括: http, rtsp, rtmp, ftp 中的至少一个;
所述多个原语, 包括: 尺寸, 打开, 读取, 搜索, 关闭中至少一个。
8、如权利要求 7所述的装置, 其特征在于, 所述原语形式的请求地址包括: 现有协议名: //本地服务器: 端口 /原语操作? 参数;
其中, 所述参数是由私有协议参数转换后的通用协议参数。
9、 如权利要求 6所述的装置, 其特征在于, 所述处理模块, 包括: 修改单元, 用于将所述私有协议形式的流媒体请求地址修改为原语形式的 请求地址。
10、 如权利要求 6所述的装置, 其特征在于, 所述处理模块, 包括 替换单元, 用于重新打开一条预先设置的原语形式的请求地址, 用于替换 所述私有协议形式的流媒体请求地址。
PCT/CN2012/086011 2012-09-10 2012-12-06 一种流媒体协议的扩展方法及装置 WO2014036797A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210331362.X 2012-09-10
CN201210331362.XA CN102892047B (zh) 2012-09-10 2012-09-10 一种流媒体协议的扩展方法及装置

Publications (1)

Publication Number Publication Date
WO2014036797A1 true WO2014036797A1 (zh) 2014-03-13

Family

ID=47535381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086011 WO2014036797A1 (zh) 2012-09-10 2012-12-06 一种流媒体协议的扩展方法及装置

Country Status (2)

Country Link
CN (1) CN102892047B (zh)
WO (1) WO2014036797A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9828896B2 (en) 2014-08-12 2017-11-28 Johnson Matthey Public Limited Company Exhaust system with a modified lean NOx trap
CN112118458A (zh) * 2020-08-21 2020-12-22 烽火通信科技股份有限公司 一种基于融合终端的视频分发方法和系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473098B (zh) * 2021-08-20 2023-03-24 Vidaa(荷兰)国际控股有限公司 显示设备及显示方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282354A (zh) * 2008-05-27 2008-10-08 中山大学 一种改进的机顶盒终端网络传输协议自适应机制
CN101924758A (zh) * 2010-07-28 2010-12-22 中兴通讯股份有限公司 一种媒体服务器及其提供服务的方法
CN101951508A (zh) * 2010-09-27 2011-01-19 深圳市同洲电子股份有限公司 数字电视终端访问互联网视频的方法及相关设备和系统
CN102025749A (zh) * 2011-01-18 2011-04-20 中国联合网络通信集团有限公司 移动流媒体业务防盗用方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1239002C (zh) * 2002-07-10 2006-01-25 华为技术有限公司 为媒体网关控制协议扩展提供透明传输通道的方法
CN1773968A (zh) * 2004-11-08 2006-05-17 佛山市顺德区顺达电脑厂有限公司 封包于异步路径下转换其通信协议地址与端口的方法
CN101197832B (zh) * 2007-12-13 2012-01-25 华为技术有限公司 一种实现iptv业务的方法、系统、装置
CN102377694A (zh) * 2010-08-06 2012-03-14 鸿富锦精密工业(深圳)有限公司 流媒体网关及其提供流媒体服务的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282354A (zh) * 2008-05-27 2008-10-08 中山大学 一种改进的机顶盒终端网络传输协议自适应机制
CN101924758A (zh) * 2010-07-28 2010-12-22 中兴通讯股份有限公司 一种媒体服务器及其提供服务的方法
CN101951508A (zh) * 2010-09-27 2011-01-19 深圳市同洲电子股份有限公司 数字电视终端访问互联网视频的方法及相关设备和系统
CN102025749A (zh) * 2011-01-18 2011-04-20 中国联合网络通信集团有限公司 移动流媒体业务防盗用方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9828896B2 (en) 2014-08-12 2017-11-28 Johnson Matthey Public Limited Company Exhaust system with a modified lean NOx trap
CN112118458A (zh) * 2020-08-21 2020-12-22 烽火通信科技股份有限公司 一种基于融合终端的视频分发方法和系统
CN112118458B (zh) * 2020-08-21 2022-08-12 烽火通信科技股份有限公司 一种基于融合终端的视频分发方法和系统

Also Published As

Publication number Publication date
CN102892047B (zh) 2016-12-21
CN102892047A (zh) 2013-01-23

Similar Documents

Publication Publication Date Title
JP5288710B2 (ja) マルチメディアデータを記録した情報保存媒体、その再生方法及び再生装置
WO2016058411A1 (zh) 一种http实时流媒体分片的拼接方法及拼接系统
WO2018090918A1 (zh) 一种视频文件的处理方法、装置和系统
TWI742131B (zh) 虛擬交換機的升級方法和裝置
TW201123795A (en) System, method and apparatus for dynamic media file streaming
US11588875B2 (en) Multi-media redirection for media applications
US20180098151A1 (en) Enhanced multichannel audio interception and redirection for multimedia devices
CN107592551A (zh) 用于云流服务的方法和设备
WO2021136161A1 (zh) 播放方式确定方法及装置
CN105187896A (zh) 多分段的媒体文件播放方法和系统
CN110446114A (zh) 多媒体数据的处理装置、方法、电子设备及存储介质
JP2017519406A (ja) ネットワークビデオ再生方法及び装置
CN105049904B (zh) 一种多媒体文件的播放方法和装置
CN105141973A (zh) 多分段的媒体文件拼接方法和系统
WO2014036797A1 (zh) 一种流媒体协议的扩展方法及装置
CN103165151A (zh) 多媒体文件播放方法和装置
US9237363B2 (en) Dynamic injection of metadata into flash video
JP2016072858A (ja) メディアデータ生成方法、メディアデータ再生方法、メディアデータ生成装置、メディアデータ再生装置、コンピュータ読み取り可能な記録媒体、及びプログラム
JP2011511973A (ja) OSGiライフサイクルコマンドの実行制限のための方法及びシステム
EP2130119A1 (en) Method of updating additional data and apparatus for reproducing the same
CN106254961A (zh) 电视中的视频播放方法及电视
US9237178B2 (en) Combined binary string for signaling byte range of media fragments in adaptive streaming
JP2022058789A (ja) Mp4オンライン再生方法、装置、電子機器、記憶媒体およびコンピュータプログラム
WO2023010402A1 (zh) 一种媒体文件播放方法、装置、计算机设备及存储介质
CN105142015A (zh) 一种基于dlna共享播放bhd文件的方法

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/08/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 12884163

Country of ref document: EP

Kind code of ref document: A1