CN102012983A - Method and device for playing digital rights encryption protection technical file and mobile terminal - Google Patents
Method and device for playing digital rights encryption protection technical file and mobile terminal Download PDFInfo
- Publication number
- CN102012983A CN102012983A CN2010105524202A CN201010552420A CN102012983A CN 102012983 A CN102012983 A CN 102012983A CN 2010105524202 A CN2010105524202 A CN 2010105524202A CN 201010552420 A CN201010552420 A CN 201010552420A CN 102012983 A CN102012983 A CN 102012983A
- Authority
- CN
- China
- Prior art keywords
- file
- drm
- drm file
- play
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/913—Television signal processing therefor for scrambling ; for copy protection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4405—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management e.g. creating a master electronic programme guide from data received from the Internet and a Head-end or controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4627—Rights management associated to the content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8355—Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
- H04N5/772—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Storage Device Security (AREA)
Abstract
本发明公开了数字版权加密保护技术文件的播放方法、装置及移动终端,该方法包括:读取步骤,读取数字版权加密保护技术DRM文件中的一部分;解密步骤,对读取到的部分进行解密;播放步骤,对解密之后的部分进行解码并播放;循环执行读取步骤至播放步骤,直到停止播放DRM文件。通过本发明提高了用户体验。
The invention discloses a playing method, device and mobile terminal of digital copyright encryption protection technology files. The method includes: a reading step, reading a part of the digital copyright encryption protection technology DRM file; a decryption step, performing the reading on the read part Decryption; playing step, decoding and playing the decrypted part; looping from the reading step to the playing step, until the DRM file is stopped playing. The user experience is improved through the present invention.
Description
技术领域technical field
本发明涉及通信领域,具体而言,涉及数字版权加密保护技术文件的播放方法、装置及移动终端。The present invention relates to the communication field, in particular, to a playing method, device and mobile terminal for digital copyright encryption protection technology files.
背景技术Background technique
数字版权加密保护技术(Digital Rights Management,简称为DRM)有效的解决了如何对用户下载内容以及下载后用户对媒体的使用与传播进行控制和计费的问题。DRM技术的基本工作原理为:在数字节目授权中心利用密钥将媒体文件加锁,用户在点播时,从媒体文件获取授权中心的信息并连接获取授权,通过数字节目授权中心的验证授权后,送出相关的密钥解密后才允许播放。Digital rights encryption protection technology (Digital Rights Management, referred to as DRM) effectively solves the problem of how to control and charge users for downloading content and the use and dissemination of media after downloading. The basic working principle of DRM technology is as follows: the digital program authorization center uses a key to lock the media file. When the user orders, the user obtains the information of the authorization center from the media file and connects to obtain authorization. After passing the verification and authorization of the digital program authorization center, The playback is only allowed after the relevant key is sent for decryption.
OMA DRM是开放移动联盟(Open Mobile Alliance,简称为OMA)制定的可应用于移动通信终端的DRM协议。OMA DRM明确了在终端可用的三种DRM保护方式。OMA DRM is a DRM protocol developed by the Open Mobile Alliance (OMA) that can be applied to mobile communication terminals. OMA DRM specifies three DRM protection methods available on terminals.
第一,FL方式。该方式要求终端限制用户对于媒体文件的转发。当终端获得媒体文件后,可以自由无限制的在本终端使用,终端必须保护该文件不能通过通信设备或机制被转发到其他设备,包括使用红外、蓝牙、USB通用串行总线(Universal Serial Bus,简称USB)、外置存储卡等。在FL方式下,授权中心只负责媒体文件的发送,保护文件的职责在用户使用的具体终端。在FL文件获得的同时向授权中心缴纳版权费用。First, the FL way. This method requires the terminal to restrict the forwarding of media files by the user. After the terminal obtains the media file, it can be freely and unrestrictedly used in the terminal. The terminal must protect the file from being forwarded to other devices through communication devices or mechanisms, including using infrared, Bluetooth, USB Universal Serial Bus (Universal Serial Bus, USB for short), external memory card, etc. In the FL mode, the authorization center is only responsible for sending media files, and the responsibility for protecting files lies with the specific terminal used by the user. Pay the copyright fee to the authorization center at the same time as the FL file is obtained.
第二,合并发送(CD)方式。相比FL方式,CD方式会在授权中心进行媒体文件和权限文件的合并打包。用户在使用媒体文件的时候,终端软件会查询权限对象,如果符合权限,则正常播放,否则会提示用户权限已经失效。与FL方式相同,用户在获得CD对象的同时缴纳版权费用。但CD方式高于FL方式,即,终端必须保护CD方式的媒体文件也不能被用户转发。Second, combined delivery (CD) mode. Compared with the FL method, the CD method will combine and package the media files and rights files in the authorization center. When a user uses a media file, the terminal software will query the permission object, and if the permission is met, it will play normally, otherwise it will prompt the user that the permission has expired. Same as the FL method, the user pays the copyright fee while obtaining the CD object. However, the CD mode is higher than the FL mode, that is, the terminal must protect the media files in the CD mode and cannot be forwarded by the user.
第三,分离发送(SD)方式。SD方式是CD方式的一种改进。随着媒体内容的发展,媒体对象可能很大,单纯依赖移动通信网的下载可能很困难。SD方式首先将媒体文件加密并打包成特定的格式(例如,DCF格式),方便用户可以通过多种方式获得。用户获得媒体文件的过程并不需要缴纳费用。在使用过程中,终端软件会首先从DCF格式内容中获得授权中心的URL,启动浏览器下载包含解密密钥的明文xml权限文件,下载权限文件的过程中用户缴纳相应费用获得不同的使用权限限制。Third, separate transmission (SD) mode. The SD method is an improvement of the CD method. With the development of media content, the media object may be very large, and it may be very difficult to rely solely on the download of the mobile communication network. The SD method first encrypts the media file and packs it into a specific format (for example, DCF format), so that users can obtain it in various ways. The user does not need to pay for the process of obtaining media files. During use, the terminal software will first obtain the URL of the authorization center from the content in DCF format, start the browser to download the plaintext xml permission file containing the decryption key, and the user pays the corresponding fee to obtain different use permission restrictions during the download process of the permission file .
不管采用哪种保护方式,移动终端在播放DRM文件时,必须先进行保护方式的判断,然后进行解密,才能进行播放。目前,在移动终端上DRM文件的播放,采用如下播放方式:No matter which protection method is adopted, when the mobile terminal plays the DRM file, it must first judge the protection method, and then decrypt it before playing it. At present, the playback of DRM files on mobile terminals adopts the following playback methods:
一种是将DRM文件进行全部解密后,将明文文件单独存在一种普通用户看不到的目录,然后在普通用户能看到的目录仅存放文件名信息(其实只为给用户显示文件名称用),这样用户播放时,软件进行处理直接播放对应的已经解过密的明文文件,这种方式安全性比较差。One is to decrypt all the DRM files, store the plaintext files separately in a directory that ordinary users cannot see, and then store only the file name information in the directory that ordinary users can see (in fact, it is only for displaying file names to users. ), so that when the user plays, the software processes and directly plays the corresponding decrypted plaintext file, which is less secure.
另一种方式是保存加密后的DRM文件,在播放的时侯将文件全部解密出来后再进行播放,播放完后将明文文件删除,这样种方式安全性比较高。Another way is to save the encrypted DRM file, and then play it after decrypting all the files during playback, and delete the plaintext file after playback, which is more secure.
但是,随着DRM文件的变大,无论上述哪种播放方式,用户在播放之前均需要等待较长的解密时间,从而影响了用户体验。However, as the size of the DRM file becomes larger, the user needs to wait for a long decryption time before playing no matter which playing method is mentioned above, thus affecting the user experience.
发明内容Contents of the invention
本发明的主要目的在于提供一种数字版权加密保护技术文件的播放方法、装置及移动终端,以至少解决上述问题。The main purpose of the present invention is to provide a method, device and mobile terminal for playing digital copyright encryption technology files, so as to at least solve the above problems.
根据本发明的一个方面,提供了一种数字版权加密保护技术文件的播放方法,包括:读取步骤,读取所述数字版权加密保护技术DRM文件中的一部分;解密步骤,对读取到的部分进行解密;播放步骤,对解密之后的部分进行解码并播放;循环执行所述读取步骤至所述播放步骤,直到停止播放所述DRM文件。According to one aspect of the present invention, a kind of playing method of digital copyright encryption protection technology file is provided, comprising: reading step, reads a part in the described digital copyright encryption protection technology DRM file; Decryption step, to the read The part is decrypted; the playing step is to decode and play the decrypted part; the reading step to the playing step are executed in a loop until the playing of the DRM file is stopped.
优选地,读取所述DRM文件中的一部分包括:申请从需要播放的文件的N字节的位置读取M字节的数据,其中,所述N和M为大于等零的整数;判断所述需要播放的文件是否为DRM文件;在判断结果为是的情况,从所述DRM文件的N+L字节的位置读取M字节的数据,其中,所述L为所述DRM文件的文件头中存放DRM信息的字节长度。Preferably, reading a part of the DRM file includes: applying to read M bytes of data from the position of N bytes of the file to be played, wherein, the N and M are integers greater than or equal to zero; Describe whether the file that needs to be played is a DRM file; if the judgment result is yes, read the data of M bytes from the position of N+L bytes of the DRM file, wherein, the L is the data of the DRM file The byte length of the DRM information stored in the file header.
优选地,读取所述DRM文件中的一部分包括:判断所要播放的文件是否为DRM文件,并在判断结果为是的情况下读取所述DRM文件中的一部分。Preferably, reading a part of the DRM file includes: judging whether the file to be played is a DRM file, and reading a part of the DRM file if the judging result is yes.
优选地,判断所要播放的文件是否为DRM文件,并在判断结果为是的情况下读取所述DRM文件中的一部分包括:判断所要播放的文件是否为DRM文件,如果判断结果为是,则判断所述DRM文件的有效性,并在所述DRM文件有效的情况下读取所述DRM文件中的一部分。Preferably, judging whether the file to be played is a DRM file, and reading a part of the DRM file when the judgment result is yes includes: judging whether the file to be played is a DRM file, and if the judgment result is yes, then Judging the validity of the DRM file, and reading a part of the DRM file if the DRM file is valid.
优选地,上述方法还包括:在所述DRM文件失效的情况下,进行所述DRM文件失效的提示。Preferably, the above method further includes: when the DRM file is invalid, prompting that the DRM file is invalid.
根据本发明的另一方面,还提供了一种数字版权加密保护技术文件的播放装置,包括:读取模块,用于读取所述数字版权加密保护技术DRM文件中的一部分;解密模块,用于对读取到的部分进行解密;播放模块,用于对解密之后的部分进行解码并播放;调用模块,用于循环依次调用所述读取模块至所述播放模块,直到停止播放所述DRM文件。According to another aspect of the present invention, there is also provided a playback device for a digital copyright encryption protection technology file, including: a reading module for reading a part of the digital copyright encryption protection technology DRM file; a decryption module for For decrypting the read part; the playback module is used for decoding and playing the decrypted part; the calling module is used for circularly calling the reading module to the playing module until the DRM is stopped document.
优选地,所述读取模块包括:申请模块,用于申请从需要播放的文件的N字节的位置读取M字节的数据,其中,所述N和M为大于等零的整数;第一判断模块,用于判断所述需要播放的文件是否为DRM文件;字节读取模块,用于在判断结果为是的情况,从所述DRM文件的N+L字节的位置读取M字节的数据,其中,所述L为所述DRM文件的文件头中存放DRM信息的字节长度。Preferably, the reading module includes: an application module, which is used to apply for reading M bytes of data from the position of N bytes of the file to be played, wherein the N and M are integers greater than or equal to zero; A judging module, used to judge whether the file that needs to be played is a DRM file; a byte reading module, used to read M from the position of the N+L byte of the DRM file when the judgment result is yes bytes of data, wherein the L is the byte length of the DRM information stored in the file header of the DRM file.
优选地,所述读取模块,用于判断所要播放的文件是否为DRM文件,并在判断结果为是的情况下读取所述DRM文件中的一部分。Preferably, the reading module is configured to judge whether the file to be played is a DRM file, and read a part of the DRM file if the judgment result is yes.
优选地,所述读取模块,用于判断所要播放的文件是否为DRM文件,如果判断结果为是,则判断所述DRM文件的有效性,并在所述DRM文件有效的情况下读取所述DRM文件中的一部分。Preferably, the reading module is used to judge whether the file to be played is a DRM file, if the judgment result is yes, then judge the validity of the DRM file, and read the DRM file if the DRM file is valid. part of the DRM file described above.
根据本发明的再一方面,还提供了一种移动终端,包括上述的装置。According to still another aspect of the present invention, a mobile terminal is also provided, including the above-mentioned device.
通过本发明,解决了现有技术中用于播放DRM需要等待较长时间的问题,进而提高了用户体验。The present invention solves the problem of long waiting time for playing DRM in the prior art, thereby improving user experience.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据本发明实施例的DRM文件的播放方法的流程图;Fig. 1 is the flowchart of the playing method of DRM file according to the embodiment of the present invention;
图2是根据本发明实施例的DRM文件的播放装置的结构框图;Fig. 2 is a structural block diagram of a device for playing a DRM file according to an embodiment of the present invention;
图3是根据本发明实施例的读取模块22的结构框图;FIG. 3 is a structural block diagram of a reading module 22 according to an embodiment of the present invention;
图4是根据本发明实施例的移动终端的结构框图;Fig. 4 is a structural block diagram of a mobile terminal according to an embodiment of the present invention;
图5是根据本发明优选实施例的播放DRM文件的流程图。Fig. 5 is a flowchart of playing a DRM file according to a preferred embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
图1是根据本发明实施例的DRM文件的播放方法的流程图,如图1所示,该流程包括如下步骤:Fig. 1 is the flow chart of the playing method of DRM file according to the embodiment of the present invention, as shown in Fig. 1, this flow process comprises the following steps:
步骤S102,读取DRM文件中的一部分;Step S102, read a part of the DRM file;
步骤S104,对读取到的部分进行解密;Step S104, decrypting the read part;
步骤S106,对解密之后的部分进行解码并播放;Step S106, decoding and playing the decrypted part;
循环执行步骤S102至步骤S106,直到停止播放DRM文件。Steps S102 to S106 are executed in a loop until the DRM file is stopped playing.
相比现有技术中,将整个DRM文件解密完成之后再进行播放的方法,本实施例采用了解密一部分播放一部分的方式,从而避免了现有技术中在播放之前的需要等待较长的解密时间,提高了用户体验。Compared with the method in the prior art, where the entire DRM file is decrypted and then played, this embodiment adopts the method of decrypting a part and playing a part, thereby avoiding the need to wait for a long decryption time before playing in the prior art , improving the user experience.
上述步骤利用了如下原理:The above steps utilize the following principles:
任何移动终端的系统上都存在文件系统,并且所有媒体文件播放时最终都要读取文件,而且媒体文件播放时对文件的读取并不是一下把整个文件全部读到内存中,是读一部分,解码一部,播放一部分。其于上述原因,根据DRM的特点,实现分段解密的功能(就是给DRM文件的任何一部分数据,解密出相应的部分),然后再把这段加入到原文件系统中对文件系统的读取当中。There is a file system on any mobile terminal system, and all media files will eventually be read when they are played, and the reading of the file when the media file is played is not to read the entire file into the memory at once, but to read a part of it. Decode one part and play one part. For the above reasons, according to the characteristics of DRM, the function of segmented decryption is realized (that is, to decrypt any part of the data of the DRM file to obtain the corresponding part), and then add this segment to the original file system to read the file system among.
优选地,可以在文件系统的读取中进行判断,如果是DRM文件,则进行读取并解密(DRM文件的文件头会存放一些DRM相关的信息,假如它的长度为L,所以真正从N位置读M个数据时,需要把DRM头信息这一段考虑在内,最终从N+L处读取M个字节),如果不是DRM文件,则直接读取即可。然后进行解码,播放。Preferably, it can be judged in the reading of the file system, if it is a DRM file, then read and decrypt (the file header of the DRM file will store some DRM-related information, if its length is L, so it is really from N When reading M data at the location, you need to take the DRM header information into account, and finally read M bytes from N+L). If it is not a DRM file, just read it directly. Then decode and play.
优选地,还可以读取之前进行一次判断,即,判断所要播放的文件是否为DRM文件,并在判断结果为是的情况下读取DRM文件中的一部分。Preferably, a judgment can be made before reading, that is, to judge whether the file to be played is a DRM file, and read a part of the DRM file if the judgment result is yes.
如果DRM文件是具有有效性的,那么可以判断所要播放的文件是否为DRM文件,如果判断结果为是,则判断DRM文件的有效性,并在DRM文件有效的情况下读取DRM文件中的一部分。此时,优选地,在DRM文件失效的情况下,可以进行DRM文件失效的提示。If the DRM file is valid, it can be judged whether the file to be played is a DRM file, if the judgment result is yes, then judge the validity of the DRM file, and read a part of the DRM file if the DRM file is valid . At this time, preferably, when the DRM file is invalid, a reminder of the invalidation of the DRM file can be performed.
通过上述优选实施方式,上层软件(或应用)在实现时也不必考虑解密的问题,在针对DRM文件有效性判断完成后,真正播放时完全把DRM当作一个普通的媒体文件来播放,解密工作在文件系统中来完成。Through above-mentioned preferred embodiment mode, upper-level software (or application) also needn't consider the problem of deciphering when realizing, after finishing for DRM file validity judgment, fully regard DRM as a common media file to play when really playing, deciphering work done in the file system.
图2是根据本发明实施例的DRM文件的播放装置的结构框图,如图2所示,该装置包括:读取模块22、解密模块24、播放模块26、调用模块28,下面对该结构进行说明。Fig. 2 is the structural block diagram of the playing device of the DRM file according to the embodiment of the present invention, as shown in Fig. 2, this device comprises: reading module 22, deciphering module 24, playing module 26, calling
读取模块22,用于读取数字版权加密保护技术DRM文件中的一部分;解密模块24,用于对读取到的部分进行解密;播放模块26,用于对解密之后的部分进行解码并播放;调用模块28,用于循环依次调用读取模块至播放模块,直到停止播放DRM文件。The reading module 22 is used to read a part of the digital copyright encryption protection technology DRM file; the decryption module 24 is used to decrypt the read part; the playback module 26 is used to decode and play the part after the decryption ; The calling
图3是根据本发明实施例的读取模块22的结构框图,如图3所示,该模块包括:申请模块32、第一判断模块34、字节读取模块36,下面对该结构进行说明。Fig. 3 is the structural block diagram of reading module 22 according to the embodiment of the present invention, as shown in Fig. 3, this module comprises: application module 32, first judging module 34, byte reading module 36, this structure is carried out below illustrate.
申请模块32,用于申请从需要播放的文件的N字节的位置读取M字节的数据,其中,N和M为大于等零的整数;第一判断模块34,用于判断需要播放的文件是否为DRM文件;字节读取模块36,用于在判断结果为是的情况,从DRM文件的N+L字节的位置读取M字节的数据,其中,L为DRM文件的文件头中存放DRM信息的字节长度。Application module 32 is used to apply for reading the data of M bytes from the position of N bytes of the file that needs to be played, wherein N and M are integers greater than or equal to zero; the first judging module 34 is used to judge the files that need to be played. Whether the file is a DRM file; Byte reading module 36 is used to read the data of M bytes from the position of N+L bytes of the DRM file when the judgment result is yes, wherein, L is the file of the DRM file The byte length of the DRM information stored in the header.
优选地,读取模块22,用于判断所要播放的文件是否为DRM文件,并在判断结果为是的情况下读取DRM文件中的一部分。Preferably, the reading module 22 is configured to judge whether the file to be played is a DRM file, and read a part of the DRM file if the judgment result is yes.
优选地,读取模块22,用于判断所要播放的文件是否为DRM文件,如果判断结果为是,则判断DRM文件的有效性,并在DRM文件有效的情况下读取DRM文件中的一部分。Preferably, the reading module 22 is used to judge whether the file to be played is a DRM file, if the judgment result is yes, then judge the validity of the DRM file, and read a part of the DRM file if the DRM file is valid.
在本实施例中还提供了一种移动终端,该终端包括上述装置,图4是根据本发明实施例的移动终端的结构框图,如图4所示,该终端可以包括播放/显示模块、文件系统(读取模块22的功能在该系统中实现)、DRM解密模块(实现解密模块24的功能)、文件解码模块(该模块和播放/显示模块一起实现了播放模块26的功能),这些模块的功能在上述已经进行过说明,在此不再赘述。In this embodiment, a mobile terminal is also provided, which includes the above-mentioned device. FIG. 4 is a structural block diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 4, the terminal may include a playback/display module, a file System (the function of reading module 22 is realized in this system), DRM decryption module (realizes the function of decryption module 24), file decoding module (this module and playing/display module have realized the function of playing module 26 together), these modules The functions of have been described above, and will not be repeated here.
下面结合优选实施例进行说明。The following will be described in combination with preferred embodiments.
在本实施例中,可以在播放媒体文件时进行媒体文件格式的判断,如果是DRM文件,则进行有效性的判断,如播放次数是否小于允许的最大播放次数、播放时间是否未超过允许的播放时间等,如果这些条件都满足,然后进行播放,在播放的时侯先读一部分源文件,然后解密这部分源文件,然后进行解码这部分文件,再播放这部分,然后再读,再解密,再解码,再播放。In this embodiment, the judgment of the media file format can be carried out when the media file is played, and if it is a DRM file, then the judgment of validity is carried out, such as whether the number of times of playback is less than the maximum number of times of playback allowed, whether the playback time has not exceeded the allowed playback Time, etc., if these conditions are met, then play, first read a part of the source file during playback, then decrypt this part of the source file, then decode this part of the file, then play this part, then read, and then decrypt, Decode again and play again.
图5是根据本发明优选实施例的播放DRM文件的流程图,如图5所示,该流程包括以下步骤:Fig. 5 is the flowchart of playing DRM file according to the preferred embodiment of the present invention, as shown in Fig. 5, this flow process comprises the following steps:
步骤A.首先判断播放的是不是DRM媒体文件,如果是则到B,如果不是则直接到C;Step A. first judge whether the playback is a DRM media file, if so then go to B, if not then go directly to C;
步骤B.判断DRM文件的有效性(播放次数是否已达所允许的最大次数或允许播放的时间已过期等),如果有效,则运行C,否则运行J;Step B. Determine the validity of the DRM file (whether the number of times played has reached the maximum number of times allowed or the time allowed to play has expired, etc.), if valid, then run C, otherwise run J;
步骤C.申请从源文件N位置读取M个字节的数据;Step C. Apply to read data of M bytes from position N of the source file;
步骤D.判断是不是DRM文件,如果是运行E,否则直接运行I;Step D. judge whether it is a DRM file, if it is to run E, otherwise run I directly;
步骤E.从源文件的N+L处读取M个字节的数据,DRM文件的文件头会存放一些DRM相关的信息,假如它的长度为L,所以真正要从N位置读取M个数据时,需要把DRM头信息这一段计算上,最终从N+L处开始读取;Step E. Read M bytes of data from N+L of the source file. The header of the DRM file will store some DRM-related information. If its length is L, it is really necessary to read M bytes from N locations. For data, it is necessary to calculate the section of DRM header information, and finally start reading from N+L;
步骤F.对读取到的M个数据根据密钥进行解密,还原出M个字节源数据;Step F. Decrypt the read M data according to the key, and restore the M byte source data;
步骤G.对这个M个字节的源数据进行媒体解码;Step G. Perform media decoding on the source data of M bytes;
步骤H.解码后的数据进行播放;Step H. The decoded data is played;
步骤I.直接从文件中读取M个字节的数据,运行G;Step 1. directly read the data of M bytes from the file, and run G;
步骤J.进行DRM有效性失效的提示。Step J. Prompt that the validity of the DRM is invalid.
与现有技术相比较,本优选实施例在DRM文件的播放上,利用所有媒体文件播放操作最终都需要读文件这一步骤,实现了对DRM文件的分段解密,实现了边解密边播放,彻底解决了DRM文件播放时的安全性与效率的问题。Compared with the prior art, in the playing of the DRM file, this preferred embodiment utilizes the step of reading the file at last for all media file playing operations, realizes segmental decryption of the DRM file, realizes playing while decrypting, It completely solves the problem of safety and efficiency when playing DRM files.
通过上述实施例及其优选实施例方法,提供的高效地、安全地边解密边播放的DRM文件播放方法。相比于现有技术,忽略安全性(如在播放前就解密成明文文件),或者是安全性很高,忽略效率,影响用户体验的缺陷。提高了用户体验,并保证了DRM文件的安全性。另外,上述实施例还通过在原非DRM文件的读取中增加一些对DRM的判断和读取操作来达到对DRM文件的读取和解密,由于每次只解密一部分数据,对整个系统的文件读取性能几乎没有影响。Through the method of the above-mentioned embodiment and its preferred embodiment, a DRM file playback method that efficiently and safely plays while decrypting is provided. Compared with the existing technology, it ignores security (such as decrypting into a plaintext file before playing), or has high security, ignores efficiency, and affects user experience. Improve user experience and ensure the security of DRM files. In addition, the above-mentioned embodiment also achieves the reading and decryption of the DRM file by adding some judgments and reading operations to the DRM in the reading of the original non-DRM file. There is almost no impact on performance.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010105524202A CN102012983A (en) | 2010-11-19 | 2010-11-19 | Method and device for playing digital rights encryption protection technical file and mobile terminal |
| PCT/CN2011/071541 WO2012065385A1 (en) | 2010-11-19 | 2011-03-04 | Method, device and mobile terminal for playing digital rights management file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010105524202A CN102012983A (en) | 2010-11-19 | 2010-11-19 | Method and device for playing digital rights encryption protection technical file and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102012983A true CN102012983A (en) | 2011-04-13 |
Family
ID=43843156
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2010105524202A Pending CN102012983A (en) | 2010-11-19 | 2010-11-19 | Method and device for playing digital rights encryption protection technical file and mobile terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102012983A (en) |
| WO (1) | WO2012065385A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104104676A (en) * | 2014-07-09 | 2014-10-15 | 福建星网视易信息系统有限公司 | Audio/video playing method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1885223A (en) * | 2005-06-24 | 2006-12-27 | 北京振戎融通通信技术有限公司 | Digital copyright protection method for mobile information terminal |
| CN101169953A (en) * | 2007-11-29 | 2008-04-30 | 四川长虹电器股份有限公司 | MP3 content encryption method |
| US7383205B1 (en) * | 1999-03-27 | 2008-06-03 | Microsoft Corporation | Structure of a digital content package |
| CN101212633A (en) * | 2006-12-30 | 2008-07-02 | 英华达股份有限公司 | Digital video and audio data encryption and decryption method |
| CN101699819A (en) * | 2009-11-13 | 2010-04-28 | 中国电信股份有限公司 | Method and system for managing digital rights |
-
2010
- 2010-11-19 CN CN2010105524202A patent/CN102012983A/en active Pending
-
2011
- 2011-03-04 WO PCT/CN2011/071541 patent/WO2012065385A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7383205B1 (en) * | 1999-03-27 | 2008-06-03 | Microsoft Corporation | Structure of a digital content package |
| CN1885223A (en) * | 2005-06-24 | 2006-12-27 | 北京振戎融通通信技术有限公司 | Digital copyright protection method for mobile information terminal |
| CN101212633A (en) * | 2006-12-30 | 2008-07-02 | 英华达股份有限公司 | Digital video and audio data encryption and decryption method |
| CN101169953A (en) * | 2007-11-29 | 2008-04-30 | 四川长虹电器股份有限公司 | MP3 content encryption method |
| CN101699819A (en) * | 2009-11-13 | 2010-04-28 | 中国电信股份有限公司 | Method and system for managing digital rights |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104104676A (en) * | 2014-07-09 | 2014-10-15 | 福建星网视易信息系统有限公司 | Audio/video playing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2012065385A1 (en) | 2012-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8225097B2 (en) | Anchor point-based digital content protection | |
| CN100432953C (en) | Device for secure and convenient management of digital electronic content | |
| US7734917B2 (en) | Method for sharing rights objects between users | |
| US8516251B2 (en) | Device and method for digital right management | |
| CN100507931C (en) | Transferring content between digital rights management systems | |
| KR101881303B1 (en) | Apparatas and method of protecting for application data in a portable terminal | |
| KR101248790B1 (en) | Method of providing access to encrypted content to one of a plurality of consumer systems, device for providing access to encrypted content and method of generating a secure content package | |
| US20050076208A1 (en) | Data terminal capable of transferring ciphered content data and license acquired by software | |
| US7933838B2 (en) | Apparatus for secure digital content distribution and methods therefor | |
| JP2003529963A (en) | Method and apparatus for preventing piracy of digital content | |
| JPH10303880A (en) | Service provision system | |
| US20030009667A1 (en) | Data terminal device that can easily obtain content data again, a program executed in such terminal device, and recording medium recorded with such program | |
| US20050138400A1 (en) | Digital content protection method | |
| CN101496327A (en) | Rights management system for streaming multimedia content | |
| EP2325774A1 (en) | Method and device for imposing usage constraints of digital content | |
| JP5174113B2 (en) | Digital content management system, management program, and management method | |
| US20120290834A1 (en) | Key distribution device, terminal device, and content distribution system | |
| CN101375543A (en) | Apparatus and method for moving rights object from one device to another via server | |
| CN103442020A (en) | Method for sharing digital licensing rights certificate between terminal equipment | |
| CN101174941B (en) | Off-line digital copyright protection method and device for mobile terminal document | |
| CN102012983A (en) | Method and device for playing digital rights encryption protection technical file and mobile terminal | |
| JP4584995B2 (en) | Apparatus and method for processing digital rights objects | |
| CN101112040B (en) | Method for protection of a digital rights file | |
| TWI300663B (en) | ||
| CN1898625A (en) | License information management apparatus and license information management method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110413 |