WO2010127583A1 - 流媒体播放方法及终端 - Google Patents

流媒体播放方法及终端 Download PDF

Info

Publication number
WO2010127583A1
WO2010127583A1 PCT/CN2010/071672 CN2010071672W WO2010127583A1 WO 2010127583 A1 WO2010127583 A1 WO 2010127583A1 CN 2010071672 W CN2010071672 W CN 2010071672W WO 2010127583 A1 WO2010127583 A1 WO 2010127583A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
dimensional barcode
text string
streaming media
streaming
Prior art date
Application number
PCT/CN2010/071672
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 WO2010127583A1 publication Critical patent/WO2010127583A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes

Definitions

  • the present invention relates to the field of computer and computer network technologies, and in particular to a streaming media playing method and terminal.
  • BACKGROUND Bar code recognition technology is currently the most widely used automatic identification technology.
  • the bar code is composed of a set of bar and space symbols arranged according to certain coding rules. The principle is to use the thickness of the bar code and the lines of black and white to represent the numbers.
  • the most common one-dimensional bar code, the one-dimensional bar code information capacity is small, generally only a few dozen bytes.
  • 2-dimensional bar code is a bar code for recording data symbol information on a black and white graphic distributed in a plane (two-dimensional direction) by a certain geometric pattern; In addition, it cleverly utilizes the concept of the "0", "1" bit stream that forms the basis of the computer's internal logic, using thousands of geometric shapes corresponding to binary to represent literal value information, automatically through image input devices or photoelectric scanning devices. Identify reads for automatic processing of information.
  • Two-dimensional bar codes have some commonalities of bar code technology: Each code system has its own specific character set; each character occupies a certain width; has a certain check function. At the same time, the two-dimensional code also has the function of automatically recognizing information of different lines, and processing characteristics such as changes in pattern rotation.
  • the 2D barcode has the advantages of large information capacity, good fault tolerance, etc.
  • the 2D barcode can store thousands of Chinese characters, and can be linked with the database when connected, realizing unlimited expansion.
  • mobile terminals are the most popular and convenient mobile communication tools, and are also the most practical identification terminals.
  • the identification of mainstream mobile terminals can fully meet the needs of two-dimensional bar code recognition, thereby making it possible to identify applications based on two-dimensional bar code technology by mobile terminals.
  • a variety of mobile value-added services can be brought about by identifying a two-dimensional barcode using a mobile terminal.
  • the 2D barcode Due to the large capacity of the 2D barcode, it can contain a very rich text information, and can also represent more and more types, thus forming a series of standards internationally, including in the terminal handheld devices. Web type barcode.
  • the commonly used barcode recognition system can decode barcode image information and finally decode the barcode image into an identifiable text string.
  • Streaming media technology originated from the narrowband network period. Because the network speed was slow at the time, the video service must first download the audio and video files to the local storage before they can be played. Therefore, the download time and hard disk space are wasted, and the consumers cannot be satisfied. Easy to use and demand for continuous playback. Based on this, at present, streaming media technology is gradually developing in the direction of downloading, buffering, and playing, in order to achieve continuous playback.
  • the Third Generation Mobile Communications (referred to as
  • 3G service is the key technology of current wireless technology, and is another important application field of streaming media technology.
  • Streaming media application will become the key content of 3G data service.
  • the terminal For users using streaming media technology, the terminal only needs to acquire one.
  • the streaming media link network address can be played through the streaming media player. Since the two-dimensional barcode has a large capacity, the streaming media link network address can be stored by the two-dimensional barcode.
  • SUMMARY OF THE INVENTION The present invention has been made in view of the problem that the terminal lacks the implementation technology of the terminal to start the streaming media playing service by scanning the two-dimensional barcode.
  • a streaming media playing method including: decoding, by a terminal, a scanned two-dimensional barcode to obtain a text string corresponding to a two-dimensional barcode; and the terminal calling the streaming media player to the text string Streaming media playback as a streaming link address.
  • a terminal comprising: a decoding module and a streaming media player.
  • the decoding module is configured to: obtain a text string corresponding to the two-dimensional barcode by decoding the input two-dimensional barcode; and the streaming media player is configured to perform streaming media playback by using the text string as the streaming link address.
  • the terminal parses the text string corresponding to the two-dimensional barcode, if the text string is determined to be the streaming link address, the streaming media player is called to perform streaming audio and video playback according to the text string, thereby solving the problem.
  • the terminal cannot scan the two-dimensional barcode to start the streaming media playback service, and the terminal identification two-dimensional barcode technology and the streaming media playback technology can be effectively integrated, which broadens the market demand and satisfies the user's more. Demand, improved user experience.
  • FIG. 1 is a flowchart of a streaming media playing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an example of a streaming media link address type two-dimensional barcode
  • FIG. 3 is a streaming media playing method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a streaming media playing method according to an embodiment of the present invention. As shown in FIG. 1 , the streaming media playing method according to the embodiment of the present invention includes the following steps: step 4: S 4 Step 4 4 S S: Step 4: S101: The terminal performs scanning on the 2D barcode.
  • step S101 the processing of step S101 may include the following steps: (1) the terminal scans the original image including the two-dimensional barcode, and obtains the image of the original image. Information; (2) decoding the picture information according to a preset decoding function. Specifically, the terminal should have a camera that can scan and a decoding library that parses the two-dimensional barcode.
  • the 2D barcode image can be placed in front of the camera, the camera is started to scan, and the bottom layer of the terminal continuously returns and displays the original image extracted by the camera (can be RAW) Formatted image) Frame
  • the application layer of the terminal can take the original image information and other library function information (such as the International Mobile Equipment Identity (IMEI) number, etc. after the frame is captured in the background or the bottom layer.
  • IMEI International Mobile Equipment Identity
  • Sending to the decoding function provided by the terminal decoding library if the decoding fails, re-executing the next round of decoding process (ie decoding the next frame image scanned); if the decoding is successful, the decoding function parses the decoded information into a string of text characters string.
  • Step S103 The terminal determines that the text string is a streaming media link address, and invokes the streaming media player to perform streaming media playback according to the text string.
  • the terminal can use the camera on it to directly play the streaming media by scanning the original image (which can be an image on a paper) containing a two-dimensional barcode (the two-dimensional barcode is a streaming link address type two-dimensional barcode). , avoiding the need to manually enter the link address, reducing the trouble of manual operations.
  • the terminal may determine whether the decoded text string is a streaming link address by using the following two steps: Step 1: The terminal parses the text string, and determines that the 2D barcode is a web link type 2D barcode.
  • the analytic function can be provided by the existing barcode recognition module. Therefore, in the embodiment of the present invention, only a certain type of barcode (for example, a web type) needs to be identified, and most of the current barcode recognition modules include the above functions, Easy to implement. Specifically, in determining whether the two-dimensional barcode is a two-dimensional barcode of a web link type, the terminal may search whether the text string includes a preset first keyword, and if yes, determine the two-dimensional barcode as a web. The 2D barcode of the link type. In the specific implementation process, the above judgment can be realized by the support of the browser.
  • the first keyword is a text string containing web link type information.
  • Step 2 The terminal parses the text string to determine that the text string is a streaming media link address.
  • the terminal may perform a secondary identification on the text string of the web link type to determine whether the text string is a streaming media link address. Specifically, the terminal may search whether the text string includes a preset number. The second keyword, if yes, determines that the text string is the streaming link address.
  • the second keyword is a text that includes streaming media link address information. This string.
  • the two-dimensional barcode By determining whether there is a keyword containing the streaming media link address information in the text string corresponding to the two-dimensional barcode, it is relatively easy to identify whether the two-dimensional barcode is a two-dimensional barcode of the streaming link address (ie, the corresponding text character thereof) Whether the string is a streaming link address ;).
  • the function of secondary recognition of the content of the recognized text string ie, identifying the string of the streaming media link address
  • a common module or interface that is, by extending the common module or interface to the two-dimensional barcode recognition module.
  • the terminal may implement, by using an interface, whether the text string is a streaming link address, and the interface may be according to a specific keyword (ie, the second keyword, for example, a streaming link address)
  • the protocol specification field "RTSP://" performs secondary parsing (recognition;) of the recognized text string. If the streamed link address is resolved (the address content conforms to the streaming protocol specification), the streaming media player is called.
  • Stream playback based on text strings For an example of the streaming media link address type 2D barcode, see FIG. 2 .
  • the terminal cannot directly start the streaming media playback service by scanning the two-dimensional barcode.
  • This embodiment provides an improved streaming media playback solution.
  • the terminal parses the input two-dimensional barcode to obtain the second. After the text string corresponding to the barcode is identified, the text string is identified, and the text string is determined to be a streaming link address, and the terminal invokes the streaming media player to perform streaming media playback according to the text string.
  • 2 is a schematic diagram of an example of a streaming media link address type two-dimensional barcode. As shown in FIG.
  • the text string content recognized by the terminal is: rtsp: ⁇ 192.168.10.59/TV1.3gp
  • the address is a streaming media link address conforming to the streaming protocol specification.
  • the streaming media player invoked by the terminal is a player having a function of streaming media link playing, and the terminal invokes the streaming media player to parse and play the address of the two-dimensional barcode of the streaming media link type. If the above text string is the correct streaming address, the streaming audio and video is successfully played. Otherwise, the player gives a playback error message. However, whether the playback succeeds or fails, the next round of decoding process is performed after the execution.
  • the existing two-dimensional barcode recognition module can be improved to realize the analysis and recognition of the two-dimensional barcode.
  • the two-dimensional barcode recognition module it can be determined whether the two-dimensional barcode scanned by the terminal is a two-dimensional barcode of a streaming link type (ie, whether the scanned two-dimensional barcode contains a streaming link address;), and the streaming media of the terminal is called.
  • the player performs streaming media playback according to the parsed streaming media link address.
  • Step S301 The terminal starts the two-dimensional barcode recognition module;
  • Step S303 Starts the 4N image header Start scanning, the bottom layer of the terminal continuously returns and displays the original image frame extracted by the 4th image header;
  • the 2D barcode image containing the text content of the web link can be included (for example, the newspaper or magazine or the article contains short
  • the 2D barcode image of the message text content is placed before the camera;
  • the bottom layer of the terminal returns the image frame information collected in the callback of the video image frame, mainly in the form of the original image (image file in RAW format), wherein
  • the image in RAW format refers to the original signal file that is sensitive to the photosensitive element of the camera, and the image information of the format is included when the camera extracts the image
  • Step S305 After acquiring the image frame, the two-dimensional barcode recognition module sends the original image information and information required by other library functions (for example, the terminal IMEI number, etc.) to the decoding function provided by the decoding library. If the decoding library is successfully decoded, Step S307 is performed, otherwise, the process returns to step S301; Step S307: The decoding function decodes the original picture information into a string of text strings; the above steps S301 to S307 correspond to step S101 in FIG.
  • other library functions for example, the terminal IMEI number, etc.
  • Step S309 Identifying the text string according to the keyword (ie, the first keyword mentioned above), determining whether the scanned two-dimensional barcode image is a two-dimensional barcode of a web link type, and if yes, executing S311; otherwise, extracting the camera One frame, returning to step S305;
  • Step S311 according to the specific keyword (ie, the above-mentioned second keyword, for example, the protocol specification field of the streaming link address "RTSP: ⁇ ,,)) will identify the recognized web type string Perform secondary analysis;
  • Step S313 determining whether the web type two-dimensional barcode is a streaming link address type.
  • step l S315 is performed; otherwise, the camera extracts the next frame. Going back to step S305; Step S315: Invoking the streaming media player to parse the address of the 2D barcode of the streaming media link type, if the correct streaming media address, successfully playing the streaming audio and video, otherwise, the player gives a playback error. information. If the playback succeeds or fails, the process returns to step S305 to start the next round of decoding process.
  • the above steps S309 to S315 correspond to the above-described step S103 in Fig. 1 .
  • the above method provided by the embodiment of the present invention may identify a text string corresponding to the decoded two-dimensional barcode, determine whether the two-dimensional barcode is a two-dimensional barcode of a streaming link type, and invoke a streaming media player.
  • Streaming media for the 2D barcode of the streaming link address According to an embodiment of the present invention, a terminal is also provided. The terminal can be used to implement the foregoing streaming media player provided by the embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG.
  • the terminal includes: a decoding module 40 and a streaming media player 44, wherein the decoding module 40 obtains the corresponding two-dimensional barcode by decoding the input two-dimensional barcode. a text string; a streaming media player 44, configured to use the text string as a streaming link address for streaming media playback.
  • the terminal in this embodiment can perform streaming media playback by using the text string corresponding to the scanned two-dimensional barcode as the streaming link address.
  • the terminal further includes: an identifying module 42, configured to identify the text string, and determine that the text string is a streaming link address.
  • FIG. 5 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention. As shown in FIG.
  • the identification module 42 of the terminal may further include: a first identification unit 420 and a second identification unit 422, wherein the first identification unit 420 is configured to parse the text string And determining whether the two-dimensional barcode is a two-dimensional barcode of a web link type; the second identification unit 422 is connected to the first identification unit 420, and configured to: when the determination result of the first identification unit is yes, the text string Parse and determine if the text string is a streaming link address.
  • the method for determining whether the two-dimensional barcode is a two-dimensional barcode of the web link type is to find whether the text string includes a preset first keyword, and if yes, determining the two-dimensional barcode.
  • the terminal further includes: a scanning module 50, wherein the scanning module 50 is connected to the decoding module 40, and is configured to scan an original image including a two-dimensional barcode, obtain a two-dimensional barcode, and scan the two-dimensional barcode The barcode is input to the decoding module 40.
  • the decoding module 40 and the identification module 42 of the foregoing terminal provided by the embodiment of the present invention may be a physical module, that is, a two-dimensional barcode identification module.
  • the scanned two-dimensional barcode can be parsed to obtain a text string corresponding to the two-dimensional barcode, and the streaming media player is called to play the two-dimensional barcode of the streaming media link type.
  • the terminal after the terminal recognizes the bar code of the web type, the terminal performs secondary analysis on the identified bar code content (ie, the text string) according to the keyword, if the streaming media link protocol specification is met.
  • the streaming media player is directly called for playing, so that the terminal scans the two-dimensional barcode to directly start streaming media playback.
  • the invention solves the problem that the terminal does not realize the scanning of the two-dimensional barcode to start the streaming media playing service, and effectively integrates the terminal identification two-dimensional barcode technology and the streaming media playing technology, thereby broadening the market demand and improving the user experience.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Description

流媒体播放方法及终端 技术领域 本发明涉及计算机及计算机网络技术领域, 具体而言, 涉及一种流媒体 播放方法及终端。 背景技术 条码识别技术是目前应用最广泛的自动识别技术。条码是由一组按一定 编码规则排列的条、 空符号组成, 其原理是利用条形码的粗细及黑白的线条 来代表数字。 常见的多为一维条码, 一维条码信息容量较小, 一般只有几十 个字节。 二维条码 /二维码 (2-dimensional bar code ) 是用某种特定的几何图形 按一定规律在平面 (二维方向上) 分布的黑白相间的图形上记录数据符号信 息的条码; 在代码编制上, 其巧妙利用了构成计算机内部逻辑基础的 "0"、 " 1" 比特流的概念,使用若千个与二进制相对应的几何形体来表示文字数值信息, 通过图像输入设备或光电扫描设备自动识别读取以实现信息自动处理。 二维 条码具有条码技术的一些共性: 每种码制有其特定的字符集; 每个字符占有 一定的宽度; 具有一定的校验功能等。 同时, 二维码还具有对不同行的信息 进行自动识别的功能、 以及处理图形旋转变化等特性。 另外, 二维条码具有 较大的信息容量, 良好的容错能力等优点, 在离线时二维条码可以存储上千 个汉字, 联线时可与数据库相链接, 真正实现无限扩容。 目前, 移动终端为最普及、 最方便的移动通信工具, 并且, 也是最实用 的识别终端。 当前, 主流移动终端的识别性完全能够满足二维条码识别的需 要, 从而使得基于移动终端识别二维条码技术的应用变为可能。 目前, 通过 使用移动终端识别二维条码可以带来多种移动增值业务。 由于二维条码容量大, 因此, 能够包含十分丰富的文本信息, 也能够表 示越来越多的类型, 从而在国际上形成了一系列标准, 在这些标准中也包括 在终端手持设备中适用的 web类型条码。 目前, 常用的条码识别系统可实现条码图片信息的解码, 将条码图片最 终解码为可识别的文本字符串。 流媒体技术起源于窄带网络时期, 由于当时网速较慢, 使用视频服务必 须首先将影音档案下载至本地储存后, 才可以播放, 因此, 浪费了下载时间、 硬盘空间, 同时也无法满足消费者使用方便及要求连续播放的需求。基于此, 目前, 流媒体技术正逐渐向一边下载、 緩冲、 一边播放的方向发展, 以达到 播放连续的目的。 第 3代移动通信 ( The Third Generation Mobile Communications, 简称为
3G )业务为目前无线技术的重点技术,是流媒体技术的另一个重要应用领域, 流媒体应用将可能成为 3G数据服务的重点内容, 对于使用流媒体技术的用 户来说, 终端只需要获取一个流媒体链接网络地址, 即可通过流媒体播放器 进行播放。 由于二维条码容量大, 因此, 可以通过二维条码来存储流媒体链 接网络地址, 但是, 目前尚未存在终端通过扫描二维条码启动流媒体播放的 实现技术。 发明内容 针对相关技术中缺乏终端通过扫描二维条码启动流媒体播放业务的实 现技术的问题而提出本发明, 为此, 本发明的主要目的在于提供一种实现终 端扫描二维条码以直接启动流媒体播放业务的技术方案, 以解决上述问题至 少之一。 根据本发明的一个方面, 提供了一种流媒体播放方法, 包括: 终端对扫 描到的二维条码进行解码, 得到二维条码对应的文本字符串; 终端调用流媒 体播放器以该文本字符串作为流媒体链接地址, 进行流媒体播放。 根据本发明的另一个方面, 提供了一种终端, 包括: 解码模块和流媒体 播放器。 其中, 解码模块, 用于通过对输入的二维条码进行解码, 得到该二 维条码对应的文本字符串; 流媒体播放器, 用于以上述文本字符串作为流媒 体链接地址进行流媒体播放。 通过本发明, 终端在解析得到二维条码对应的文本字符串时, 如果确定 该文本字符串为流媒体链接地址, 则调用流媒体播放器根据该文本字符串进 行流媒体音视频播放, 从而解决了相关技术中终端无法通过扫描二维条码以 启动流媒体播放业务的问题, 可以将终端识别二维条码技术和流媒体播放技 术有效地融合在一起, 拓宽了市场需求, 满足了用户的更多需求, 提高了用 户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1为根据本发明实施例的流媒体播放方法的流程图; 图 2为流媒体链接地址类型二维条码的实例示意图; 图 3为根据本发明实施例的流媒体播放方法的具体实现流程图; 图 4为才艮据本发明实施例的终端的结构示意图; 图 5为 居本发明优选实施例的终端的结构示意图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 根据本发明的实施例, 提供了一种流媒体播放方法。 图 1为根据本发明实施例的流媒体播放方法的流程图。 如图 1所示, 根 据本发明实施例的流媒体播放方法包括以下步 4聚 (步 4聚 S 101-步 4聚 S 103 ): 步 4聚 S 101 : 终端对扫描到的二维条码进行解码, 得到二维条码对应的 文本字符串; 在具体实施过程中, 步 4聚 S 101的处理可以包括以下步 4聚: ( 1 ) 终端扫描包含二维条码的原始图像, 获取原始图像的图片信息; ( 2 )根据预设的解码函数对上述图片信息进行解码。 具体地,上述终端应具有可以进行扫描的摄像头以及解析二维条码的解 码库。 在具体实施过程中, 可以将二维条码图片置于摄像头前, 启动摄像头进 行扫描,终端的底层不断返回并显示摄像头提取出的原始图像(可以为 RAW 格式的图像) 帧, 终端的应用层可以在后台或底层取帧后, 将原始图像信息 以及其他库函数需要的信息 (比如终端国际移动设备识别码 (International Mobile Equipment Identity, 简称为 IMEI )号等)发送至终端解码库提供的解 码函数, 如果解码失败, 则重新执行下一轮解码过程 (即解码扫描到的下一 帧图像); 如果解码成功, 则解码函数将解码信息解析成一串文本字符串。 步骤 S 103 : 终端确定上述文本字符串为流媒体链接地址, 调用流媒体 播放器根据该文本字符串进行流媒体播放。 这样, 终端就可以利用其上的摄 像头,通过扫描包含二维条码 (该二维条码为流媒体链接地址类型二维条码) 的原始图像 (可以是位于纸张上的图像等) 来直接播放流媒体, 避免了需要 手工输入链接地址, 减少了人工操作的麻烦。 在具体实施过程中,终端可以通过以下两个步骤判断解码得到的文本字 符串是否为流媒体链接地址: 步骤 1 , 终端对文本字符串进行解析, 判断二维条码为 web链接类型的 二维条码; 解析函数可以由现有条码识别模块提供, 因此, 在本发明实施例中仅需 要鉴别是某一类型的条码 (例如, web类型), 而目前大多数的条码识别模块 都包含上述功能, 因此易于实现。 具体地, 终端在判断二维条码是否为 web链接类型的二维条码的过程 中, 可以通过查找该文本字符串中是否包含预设的第一关键字, 如果是, 则 确定二维条码为 web链接类型的二维条码。 在具体实施过程中, 可以通过浏 览器的支持实现上述判断。 其中, 上述第一关键字为包含 web链接类型信息 的文本字符串。 通过判断二维条码对应的文本字符串中是否有包含 web链接 类型信息的关键字, 可以较容易地识别出该二维条码是否为 web链接类型的 二维条码。 步骤 2, 终端对上述文本字符串进行解析, 确定该文本字符串为流媒体 链接地址。 在具体实施过程中, 终端可以通过对 web链接类型的文本字符串进行 二次识别, 从而确定文本字符串是否为流媒体链接地址, 具体地, 终端可以 查找文本字符串中是否包含预设的第二关键字, 如果是, 则确定文本字符串 为流媒体链接地址。 其中, 上述第二关键字为包含流媒体链接地址信息的文 本字符串。 通过判断二维条码对应的文本字符串中是否有包含流媒体链接地 址信息的关键字, 可以较容易地识别出该二维条码是否为流媒体链接地址的 二维条码 (即其对应的文本字符串是否为流媒体链接地址;)。 对识别出来的文本字符串内容进行二次识别的功能(即识别出是流媒体 链接地址的字符串) 由通用的模块或接口实现, 即通过对二维条码识别模块 扩展通用的模块或接口来实现, 并且, 该功能可以完全独立于任何应用, 因 此, 模块之间耦合度不强, 可以独立实现; 并且, 目前大多数包含媒体播放 器模块的终端都具有进行流媒体链接播放的功能, 因此, 在上述终端识别出 流媒体链接的地址后, 可以方便调用流媒体播放器。 在具体实施过程中,终端可以通过一个接口来实现对该文本字符串是否 为流媒体链接地址的判断, 该接口可以按照特定的关键字 (即上述第二关键 字, 例如, 流媒体链接地址的协议规范字段 "RTSP://" ) 将识别出的文本字 符串进行二次解析(识别;), 如果解析出来是流媒体链接地址(地址内容符合 流媒体协议规范), 则调用流媒体播放器根据文本字符串进行流媒体播放。其 中, 流媒体链接地址类型二维条码的实例可以参见图 2。 相关技术中终端无法通过扫描二维条码直接启动流媒体播放业务,本实 施例提供了一种改进的流媒体播放方案, 在本实施例中, 终端对输入的二维 条码进行解析, 得到该二维条码对应的文本字符串后, 对该文本字符串进行 识别, 确定该文本字符串为流媒体链接地址, 则终端调用流媒体播放器根据 该文本字符串进行流媒体播放。 图 2为流媒体链接地址类型二维条码的实例示意图。 如图 2所示, 对于 该二维条码, 终端识别出的文本字符串内容为: rtsp:〃192.168.10.59/TV1.3gp, 该地址为符合流媒体协议规范的流媒体链接地址。 在具体实施过程中,终端调用的流媒体播放器为具有流媒体链接播放的 功能的播放器, 终端调用该流媒体播放器对上述流媒体链接类型的二维条码 的地址进行解析、 播放。 如果上述文本字符串为正确的流媒体地址, 则成功 播放流媒体音视频, 否则, 播放器给出播放出错信息。 但无论播放成功或失 败, 执行完均执行下一轮解码过程。 在具体实施过程中, 本发明实施例提供的上述流媒体播放方法中, 可以 通过对现有的二维条码识别模块进行改进来实现对二维条码的解析和识别, 通过二维条码识别模块, 可以判断出终端扫描到的二维条码是否为流媒体链 接类型的二维条码 (即扫描到的二维条码是否包含流媒体链接地址;), 并调用 终端的流媒体播放器根据解析得到的流媒体链接地址进行流媒体播放, 以下 以二维条码识别模块为例, 对本发明实施例提供的上述流媒体播放方法进行 描述。 图 3为根据本发明实施例的流媒体播放方法的具体实现流程图。 如图 3 所示,根据本发明实施例的流媒体播放方法的具体实现主要包括以下步骤(步 骤 S301-步骤 S315 ): 步骤 S301 : 终端启动二维条码识别模块; 步骤 S303 : 启动 4聂像头开始扫描, 终端底层不断返回并显示 4聂像头提 取出的原始图像帧; 在具体实施过程中, 可以将包含有 web链接文本内容的二维条码图片 (例如, 报刊杂志或者物品上面的包含短消息文本内容的二维条码图片) 置 于摄像头之前; 终端的底层返回视频图像帧的回调中釆集的图像帧信息, 主 要是以原始图像( RAW格式的图像文件)形式釆集, 其中, 上述 RAW格式 的图像指的是摄像头感光元件感光的原始信号文件, 摄像头提取图像时均包 含该格式图片信息。 步骤 S305 : 在获取上述图像帧后, 二维条码识别模块将原始图片信息 以及其他库函数需要的信息 (例如, 终端 IMEI号等)发送至解码库提供的 解码函数, 如果解码库解码成功, 则执行步 4聚 S307 , 否则, 返回执行步骤 S301 ; 步骤 S307: 解码函数将上述原始图片信息解码成一串文本字符串; 上述步骤 S301至步骤 S307相当于图 1中的步骤 S 101。 步骤 S309: 艮据关键字 (即上述的第一关键字)识别上述文本字符串, 判断扫描二维条码图片是否为 web 链接类型的二维条码, 如果是, 则执行 S311 ; 否则, 摄像头提取下一帧, 返回执行步骤 S305; 步骤 S311 : 按照特定的关键字 (即上述的第二关键字, 例如, 流媒体 链接地址的协议规范字段 "RTSP:〃,,) 将识别出的 web类型字符串进行二次 解析; 步骤 S313 : 判断上述 web类型二维条码是否为流媒体链接地址类型, 如果解析出来是流媒体链接地址(即地址内容符合流媒体协议规范),执行步 l S315; 否则, 摄像头提取下一帧, 返回执行步骤 S305; 步骤 S315 : 调用流媒体播放器对流媒体链接类型的二维条码的地址进 行解析, 如果是正确的流媒体地址, 则成功播放流媒体音视频, 否则, 播放 器给出播放出错信息。 播放成功或失败, 均返回执行步骤 S305 , 开始下一轮 解码过程。 上述步骤 S309至步骤 S315相当于上述图 1中的步骤 S 103。 通过本发明实施例提供的上述方法,可以通过对解码得到的二维条码对 应的文本字符串进行识别, 判断该二维条码是否为流媒体链接类型的二维条 码, 并调用流媒体播放器对为流媒体链接地址的二维条码进行流媒体播放。 才艮据本发明的实施例, 还提供了一种终端。 该终端可以用于实现本发明 实施例提供的上述流媒体播放器。 图 4为才艮据本发明实施例的终端的结构示意图。 如图 4所示, 才艮据本发 明实施例的终端包括: 解码模块 40和流媒体播放器 44 , 其中, 解码模块 40, 通过对输入的二维条码进行解码, 得到该二维条码对应的文本字符串; 流媒 体播放器 44 , 用于以该文本字符串作为流媒体链接地址进行流媒体播放。 本实施例的终端可以以扫描得到的二维条码所对应的文本字符串作为 流媒体链接地址进行流媒体播放。 该终端还包括: 识别模块 42 , 用于对该文本字符串进行识别, 确定文 本字符串为流媒体链接地址。 这样, 终端在确定二维条码对应的文本字符串 是流媒体链接地址时, 可以直接自动地调用流媒体播放器进行播放, 无需人 工输入操作, 用户使用更加方便, 增强了用户体 -险。 图 5为根据本发明优选实施例的终端的结构示意图。 如图 5所示,根据 本发明优选实施例的终端的识别模块 42可以进一步包括: 第一识别单元 420 以及第二识别单元 422 , 其中, 第一识别单元 420, 用于对文本字符串进行 解析, 判断二维条码是否为 web链接类型的二维条码; 第二识别单元 422 , 与第一识别单元 420相连接,用于在第一识别单元的判断结果为是的情况下, 对文本字符串进行解析, 判断文本字符串是否为流媒体链接地址。 其中, 第一识别单元 420判断二维条码是否为 web链接类型的二维条 码的方式为查找所述文本字符串中是否包含预设的第一关键字, 如果是, 则 确定所述二维条码为 web链接类型的二维条码。 上述第一关键字为包含 web 链接类型信息的文本字符串。 第二识别单元 422 判断文本字符串是否为流媒体链接地址的方式为查 找所述文本字符串中是否包含预设的第二关键字, 如果是, 则确定所述文本 字符串为流媒体链接地址。 上述第二关键字为包含流媒体链接地址信息的文 本字符串。 优选地, 上述终端还可以包括: 扫描模块 50 , 其中, 扫描模块 50, 与 上述解码模块 40 相连接, 用于扫描包含二维条码的原始图像, 获取二维条 码, 并将扫描到的二维条码输入到解码模块 40。 在具体实施过程中, 本发明实施例提供的上述终端的解码模块 40和识 别模块 42可以为一个实体模块, 即二维条码识别模块。 通过上述实施例提供的上述终端, 可以对扫描到的二维条码进行解析, 从而获取二维条码对应的文本字符串, 并调用流媒体播放器对流媒体链接类 型的二维条码进行播放。 如上所述, 借助本发明实施例提供的技术方案, 终端识别出 web 类型 的条码后, 对识别出的条码内容(即文本字符串)按照关键字进行二次解析, 如果符合流媒体链接协议规范, 则直接调用流媒体播放器进行播放, 从而实 现终端扫描二维条码直接启动流媒体播放的功能。 解决了相关技术中缺乏实 现终端扫描二维条码以启动流媒体播放业务的问题, 将终端识别二维条码技 术以及流媒体播放技术有效地融合在一起, 进而拓宽了市场需求, 提高了用 户体验。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种流媒体播放方法, 其特征在于, 所述方法包括:
终端对扫描到的二维条码进行解码 ,得到所述二维条码对应的文本 字符串;
所述终端调用流媒体播放器以所述文本字符串作为流媒体链接地 址, 进行流媒体播放。
2. 根据权利要求 1所述的方法, 其特征在于, 在所述终端调用流媒体播放 器以所述文本字符串作为流媒体链接地址,进行流媒体播放之前还包括: 所述终端确定所述文本字符串为流媒体链接地址。
3. 根据权利要求 2所述的方法, 其特征在于, 所述终端确定该文本字符串 为流媒体链接地址包括:
所述终端对所述文本字符串进行解析, 判断所述二维条码为 web 链接类型的二维条码;
所述终端对所述文本字符串进行解析 ,确定所述文本字符串为流媒 体链接地址。
4. 居权利要求 3所述的方法 ,其特征在于 ,所述判断所述二维条码为 web 链接类型的二维条码包括:
所述终端查找所述文本字符串中是否包含第一关键字, 如果是, 则 确定所述二维条码为 web链接类型的二维条码。
5. 根据权利要求 3所述的方法, 其特征在于, 确定所述文本字符串为流媒 体链接地址包括:
所述终端查找所述文本字符串中是否包含第二关键字, 如果是, 则 确定所述文本字符串为流媒体链接地址。
6. 根据权利要求 1所述的方法, 其特征在于, 所述终端对扫描到的二维条 码进行解码包括:
所述终端扫描包含所述二维条码的原始图像,获取所述原始图像的 图片信息; 根据预设的解码函数对所述图片信息进行解码。
7. —种终端, 其特征在于, 包括:
解码模块, 用于通过对输入的二维条码进行解码, 得到所述二维条 码对应的文本字符串;
流媒体播放器,用于以所述文本字符串作为流媒体链接地址进行流 媒体播放。
8. 根据权利要求 7所述的终端, 其特征在于, 还包括: 识别模块, 用于对 所述文本字符串进行识别, 确定所述文本字符串为流媒体链接地址。
9. 根据权利要求 8所述的终端, 其特征在于, 所述识别模块包括:
第一识别单元, 用于对所述文本字符串进行解析, 判断所述二维条 码是否为 web链接类型的二维条码;
第二识别单元, 用于在所述第一识别单元的判断结果为是的情况 下, 对所述文本字符串进行解析, 判断所述文本字符串是否为流媒体链 接地址。
10. 根据权利要求 7所述的终端, 其特征在于, 所述终端还包括:
扫描模块, 用于扫描包含所述二维条码的原始图像, 获取所述二维 条码, 并将所述二维条码输入到所述解码模块。
PCT/CN2010/071672 2009-05-07 2010-04-09 流媒体播放方法及终端 WO2010127583A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910136419.9 2009-05-07
CNA2009101364199A CN101556618A (zh) 2009-05-07 2009-05-07 流媒体播放方法及终端

Publications (1)

Publication Number Publication Date
WO2010127583A1 true WO2010127583A1 (zh) 2010-11-11

Family

ID=41174730

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071672 WO2010127583A1 (zh) 2009-05-07 2010-04-09 流媒体播放方法及终端

Country Status (2)

Country Link
CN (1) CN101556618A (zh)
WO (1) WO2010127583A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556618A (zh) * 2009-05-07 2009-10-14 中兴通讯股份有限公司 流媒体播放方法及终端
CN102045662A (zh) * 2010-10-11 2011-05-04 深圳市仙童传奇科技有限公司 一种基于媒体编码的快速彩信识别方法
CN103578306B (zh) * 2012-07-31 2015-07-22 上海景格科技股份有限公司 课程中多媒体资源播放方法及系统
CN102902761B (zh) * 2012-09-25 2015-07-15 腾讯科技(深圳)有限公司 一种跨终端的云浏览方法及系统
CN105279466B (zh) * 2014-07-16 2019-08-23 腾讯科技(深圳)有限公司 图形码识别方法及装置、图形码生成方法及装置
CN111274841B (zh) * 2016-10-24 2023-05-12 创新先进技术有限公司 一种条形码的识别方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838596A (zh) * 2005-03-22 2006-09-27 北京博雅爱信科技有限公司 一种获取信息的方法及装置
JP2009027577A (ja) * 2007-07-23 2009-02-05 Yoshiro Nakamatsu モノクロ活字印刷だけでもカラー、動画、音声を得られる媒体
US20090088202A1 (en) * 2007-09-28 2009-04-02 First Data Corporation Service Discovery Via Mobile Imaging Systems And Methods
CN101556618A (zh) * 2009-05-07 2009-10-14 中兴通讯股份有限公司 流媒体播放方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838596A (zh) * 2005-03-22 2006-09-27 北京博雅爱信科技有限公司 一种获取信息的方法及装置
JP2009027577A (ja) * 2007-07-23 2009-02-05 Yoshiro Nakamatsu モノクロ活字印刷だけでもカラー、動画、音声を得られる媒体
US20090088202A1 (en) * 2007-09-28 2009-04-02 First Data Corporation Service Discovery Via Mobile Imaging Systems And Methods
CN101556618A (zh) * 2009-05-07 2009-10-14 中兴通讯股份有限公司 流媒体播放方法及终端

Also Published As

Publication number Publication date
CN101556618A (zh) 2009-10-14

Similar Documents

Publication Publication Date Title
CN101873467B (zh) 多媒体终端处理手机电视信息的方法及多媒体终端
WO2010127583A1 (zh) 流媒体播放方法及终端
US7613443B2 (en) Contents and information providing service system for using a code, user terminal, communication agency platform, operating agency platform, on-line relation member module, and the method from the same
EP2463805A1 (en) Mobile terminal and method for providing augmented reality using an augmented reality database
CN1691631A (zh) 用于对电子名片进行管理的方法
CN101296441B (zh) 一种扫描二维条码发送消息的方法及装置
JP2010239360A (ja) 連携受信システム及びプログラム
CN101026788A (zh) 用以处理多媒体短信的方法与系统、及移动电话
CN101322408A (zh) 无触发信号的交互式电视
CN101350870A (zh) 一种图文转换的方法、移动终端和ocr服务器
CN100589544C (zh) 在终端视频业务中获取条码信息的方法
CN104168517A (zh) 进入直播频道的方法及系统
CN101534414A (zh) 一种流媒体播放的方法及终端
US20070232286A1 (en) Apparatus and method for storing/calling telephone number in mobile terminal
EP2466925B1 (en) Mms (multimedia messaging service) decoding method, mms decoder and mobile terminal
CN101479717B (zh) 动态内容播放控制
WO2007068197A1 (fr) Procédé et système permettant une transmission directionnelle de contenu et un accès distribué dans un terminal de télécommunication
WO2011080639A1 (en) An image recognition system
WO2013178126A1 (zh) 一种编码方法、解码方法及编码系统、解码系统
CN102457556A (zh) 用于在移动终端上发布博客的方法、装置和系统
KR20100072113A (ko) 무선 네트워크를 통한 플래시 컨텐츠 제공 방법 및 그 시스템과 플래시 컨텐츠 변환 방법 및 그 장치
WO2012130002A1 (zh) 彩信发送、接收方法及装置
JP2007306075A (ja) コンテンツ・ダウンロード方法及びコンテンツ・ダウンロード装置並びにコンテンツ配信方法及びコンテンツ配信装置
WO2011116554A1 (zh) 一种处理移动多媒体广播中文本信息的方法、系统及终端
Wei et al. MediaAlert-a broadcast video monitoring and alerting system for mobile users

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

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

Country of ref document: EP

Kind code of ref document: A1