WO2017012419A1 - 流媒体解密方法及装置 - Google Patents

流媒体解密方法及装置 Download PDF

Info

Publication number
WO2017012419A1
WO2017012419A1 PCT/CN2016/084280 CN2016084280W WO2017012419A1 WO 2017012419 A1 WO2017012419 A1 WO 2017012419A1 CN 2016084280 W CN2016084280 W CN 2016084280W WO 2017012419 A1 WO2017012419 A1 WO 2017012419A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
decryption
license
data
media data
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.)
Ceased
Application number
PCT/CN2016/084280
Other languages
English (en)
French (fr)
Inventor
徐坤鹏
刘锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Publication of WO2017012419A1 publication Critical patent/WO2017012419A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4405Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4408Processing 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 encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management 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/462Content 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/4627Rights management associated to the content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a streaming media decryption method and apparatus.
  • the DRM plugin After obtaining the license, the DRM plugin will correspondingly download the streaming media data subsequently downloaded by the player. After the decryption process is completed, the decrypted streaming media data is sent to the player for playback. Since the streaming media data needs to be streamed in the browser, the player, and the DRM plug-in from acquisition to decryption, the efficiency of decrypting the streaming media in the prior art is low.
  • the main object of the present invention is to provide a streaming media decryption method and apparatus, which aims to improve the efficiency of decrypting streaming media.
  • the present invention embeds a streaming media decryption device in a browser, and the streaming media decryption method includes the following steps:
  • the streaming media decryption device acquires corresponding streaming media data when the browser receives the play instruction
  • the streaming media decryption device analyzes whether the streaming media data is encrypted
  • the streaming media decryption device acquires a corresponding license and the built-in encryption and decryption algorithm when the streaming media data is encrypted;
  • the streaming media decryption device analyzes whether the acquired license is complete
  • the streaming media decryption device decrypts the streaming media data based on the acquired license and the encryption and decryption algorithm
  • the streaming media decryption device sends the decrypted streaming media data to the player for decoding processing, and loads and displays the decoded streaming media data through the browser.
  • the present invention also provides a streaming media decryption method, the streaming media decryption method comprising the following steps:
  • the streaming media decryption device acquires corresponding streaming media data when the browser receives the play instruction
  • the streaming media decryption device analyzes whether the streaming media data is encrypted
  • the streaming media decryption device acquires a corresponding license and the built-in encryption and decryption algorithm when the streaming media data is encrypted;
  • the streaming media decryption device decrypts the streaming media data based on the acquired license and the encryption and decryption algorithm, so that the browser plays the decrypted streaming media data.
  • the streaming media decryption device decrypts the streaming media data based on the acquired license and the encryption and decryption algorithm, after the step of playing the decrypted streaming media data by the browser, the streaming media decryption
  • the method also includes:
  • the streaming media decryption device sends the decrypted streaming media data to the player for decoding processing, and loads and displays the decoded streaming media data through the browser.
  • the streaming media decryption device decrypts the streaming media data based on the obtained license and the encryption and decryption algorithm, before the step of playing the decrypted streaming media data by the browser, the streaming media decryption
  • the method also includes:
  • the streaming media decryption device analyzes whether the acquired license is complete
  • the streaming media decryption device When the license is complete, the streaming media decryption device performs the step of decrypting the streaming media data for the browser to play the decrypted streaming media data based on the acquired license and the encryption and decryption algorithm.
  • the streaming media decryption method further includes:
  • the streaming media decryption device reacquires the corresponding license until a complete license is obtained.
  • the streaming media decryption device before the step of acquiring the corresponding streaming media data when the browser receives the play instruction, the streaming media decryption method further includes:
  • the streaming media decryption device divides a data buffer in a browser, and the data buffer is used to store streaming media data, a license, and decrypted streaming media data.
  • the present invention further provides a streaming media decryption device, which is embedded in a browser, and includes:
  • a streaming media obtaining module configured to acquire corresponding streaming media data when the browser receives the playing instruction
  • a first analysis module configured to analyze whether the streaming media data is encrypted
  • An encryption information obtaining module configured to acquire a corresponding license when the streaming media data is encrypted, and a built-in encryption and decryption algorithm
  • a decryption module configured to decrypt the streaming media data based on the acquired license and the encryption and decryption algorithm, so that the browser plays the decrypted streaming media data.
  • the streaming media decryption device further includes a playing module, configured to send the decrypted streaming media data to the player for decoding processing, and load and display the decoded streaming media data by using a browser.
  • a playing module configured to send the decrypted streaming media data to the player for decoding processing, and load and display the decoded streaming media data by using a browser.
  • the streaming media decryption device further includes a second analysis module, configured to analyze whether the acquired license is complete;
  • the decryption module is further configured to, when the license is complete, decrypt the streaming media data based on the acquired license and the encryption and decryption algorithm, so that the browser plays the decrypted streaming media data.
  • the encrypted information obtaining module is further configured to re-acquire the corresponding license when the license is incomplete, until a complete license is obtained.
  • the streaming media decryption device further includes a buffer partitioning module, configured to divide the data buffer area in the browser, and the data buffer area is configured to store the streaming media data, the license, and the decrypted streaming media data.
  • a buffer partitioning module configured to divide the data buffer area in the browser, and the data buffer area is configured to store the streaming media data, the license, and the decrypted streaming media data.
  • the streaming media obtaining module is further configured to parse the play instruction to obtain the streaming media content publishing server information, and generate a streaming media data obtaining request; and send the generated streaming media data obtaining request to the stream And the streaming media content publishing server corresponding to the media content publishing server information, so that the streaming media content publishing server returns the corresponding streaming media data according to the received streaming media data obtaining request.
  • the present invention embeds a streaming media decryption device in a browser, and the streaming media decryption device acquires corresponding streaming media data when the browser receives a playback instruction; and analyzes whether the streaming media data is encrypted; When the streaming media data is encrypted, acquiring a corresponding license, and a built-in encryption and decryption algorithm; decrypting the streaming media data based on the obtained license and the encryption and decryption algorithm, for the browser to play the decrypted Streaming data.
  • the browser does not need to call an additional DRM plug-in, and avoids repeated circulation of streaming media data between the browser and the DRM plug-in, so that the present invention can improve the efficiency of decrypting the streaming media.
  • FIG. 1 is a schematic flowchart of a first embodiment of a streaming media decryption method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a streaming media decryption method according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a streaming media decryption method according to the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a streaming media decryption apparatus according to the present invention
  • FIG. 5 is a schematic diagram of functional modules of a second embodiment of a streaming media decryption apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a third embodiment of a streaming media decryption apparatus according to the present invention.
  • the present invention provides a streaming media decryption method.
  • the streaming media decryption device is embedded in a browser.
  • the streaming media decryption method includes the following steps:
  • the streaming media decryption device acquires corresponding streaming media data when the browser receives the play instruction.
  • the purpose of the present invention is to embed the streaming media decryption device in the browser, and implement the functions of the existing DRM plug-in (such as encryption interpretation, license acquisition, decryption, etc.) through the streaming media decryption device.
  • the browser with built-in streaming media decryption device can complete the whole process from streaming media data acquisition to streaming media data decryption and playback without additional loading of the DRM plug-in.
  • the streaming media decryption device code is added to the browser kernel code to implement embedding of the streaming media decryption device.
  • the streaming media decryption device parses the play command to obtain the streaming media content publishing server information (for example, the IP address of the streaming media content publishing server), and generates And the streaming media data acquisition request is sent to the streaming media content publishing server corresponding to the streaming media content publishing server information, so that the streaming media content publishing server obtains the request according to the received streaming media data. Returning the corresponding streaming media data; after receiving the streaming media data returned by the streaming media content publishing server, storing the streaming media data into a data buffer of the browser.
  • the streaming media content publishing server information for example, the IP address of the streaming media content publishing server
  • the streaming media decryption device analyzes whether the streaming media data is encrypted.
  • the streaming media decryption device analyzes whether the streaming media data is encrypted, specifically, parses the header file of the streaming media data, and identifies when the header file carries the encrypted information.
  • the streaming media data is encrypted; when the header file does not carry the encrypted information, it is identified that the streaming media data is not encrypted.
  • the encrypted information includes an encryption and decryption algorithm used by the streaming media data, and information such as a license issuance server.
  • the streaming media decryption device acquires a corresponding license and the built-in encryption and decryption algorithm when the streaming media data is encrypted;
  • the streaming media decryption device parses out the encryption and decryption algorithm used by the streaming media data from the encrypted information, and the license issuing server information (for example, the IP of the license issuing server) Addressing; generating a license acquisition request according to the license issuance server information, and transmitting the generated license acquisition request to a license issuing server corresponding to the license issuance server information, for issuing the license
  • the server returns a corresponding license; after receiving the license returned by the license issuing server, the license is stored in a data buffer of the browser and associated with the aforementioned streaming media data.
  • the streaming media decryption device decrypts the streaming media data based on the obtained license and the encryption and decryption algorithm, so that the browser plays the decrypted streaming media data.
  • the encryption and decryption algorithm acquired by the streaming media decryption device is a DES algorithm
  • the streaming media data associated with the license is decrypted based on the acquired license and the DES algorithm.
  • the streaming media decryption device is embedded in the browser, and the streaming media decryption device acquires corresponding streaming media data when the browser receives the playback instruction; and analyzes the streaming media. Whether the data is encrypted; when the streaming media data is encrypted, acquiring a corresponding license, and a built-in encryption and decryption algorithm; decrypting the streaming media data based on the acquired license and the encryption and decryption algorithm to The browser plays the decrypted streaming media data.
  • the browser does not need to call an additional DRM plug-in, and avoids repeated circulation of streaming media data between the browser and the DRM plug-in, so that the present invention can improve the efficiency of decrypting the streaming media.
  • the streaming media decryption method further includes:
  • the streaming media decryption device sends the decrypted streaming media data to a player for decoding processing, and loads the decoded streaming media data by using a browser.
  • the browser does not have the ability to decode the streaming media data.
  • the local player needs to be called to decode, and then the decoded streaming media data is presented to the user through the browser.
  • the streaming media decryption device sends the decrypted streaming media data to a player local to the user terminal for decoding processing, and loads and displays the decoded streaming media through the browser. data. For example, when the user clicks on the audio and video link in the browser page, the browser directly presents the corresponding audio and video to the user in the page, such as playing music, movies, and the like.
  • the streaming media decryption method further includes:
  • the streaming media decryption device analyzes whether the obtained license is complete; if yes, proceeds to execute S40.
  • the network is a collection of dynamic network devices, including servers, routers, switches, and user terminals. It may cause a certain network line to be unreachable for some reason at a certain time; or During a period of time, a network device receives a large number of network packets exceeding the processing capacity, causing data processing timeouts and network packet loss.
  • the license is formed in the form of multiple network packets. If any network packet is lost, the final acquired license will be incomplete, and the corresponding streaming media data cannot be decrypted, resulting in the acquired stream. Media data cannot be played, resulting in a bad user experience.
  • the streaming media decryption device after obtaining the license, the streaming media decryption device first analyzes whether the obtained license is complete, and if so, based on the obtained license and the built-in encryption and decryption algorithm, Corresponding streaming media data is decrypted; otherwise the acquired license is discarded.
  • the streaming media decryption device determines that the size of the license should be 512 Kb by analyzing the header information of the license, and if the actual size of the obtained license is 512 Kb, the identification is performed. The acquired license is complete; if the actual size of the obtained license is not 512 Kb (network packet loss), the license obtained by the identification is incomplete.
  • the streaming media decryption method further includes:
  • the streaming media decryption device reacquires the corresponding license until a complete license is obtained.
  • the streaming media decryption device re-acquires the corresponding license when the license is incomplete, until the complete license is obtained, so that the acquired streaming media data can be normal. Play. That is, the streaming media decryption device performs the license integrity determination every time the license is acquired, and then performs the decryption operation, otherwise discards the acquired license and acquires the corresponding license again.
  • the streaming media decryption method before the S10, further includes:
  • the streaming media decryption device divides a data buffer in a browser, and the data buffer is used to store streaming media data, a license, and decrypted streaming media data.
  • the browser when the user plays the streaming audio and video through the browser, the browser only obtains the download address of the streaming media data, and then the player loads the streaming media data download address obtained by the browser to download the streaming media.
  • the downloaded streaming media data is sent to the DRM plug-in for decryption; after the DRM plug-in decrypts the streaming media data, the decrypted streaming media data is returned to the player; the player Decoding the streaming media data returned by the DRM plug-in, and returning the decoded streaming media data to the browser, so that the browser presents the decoded streaming media data to the user.
  • the embodiment further divides the data buffer by the browser, and the browser downloads and decrypts the streaming media data; then sends the decrypted streaming media data to the player for decoding, and receives the decoded decoder returned by the player.
  • Streaming media data presenting it to users, reducing the existing communication process and improving the playback efficiency of streaming media data; at the same time, users can directly play control through the browser page (for example, play, pause, stop, and volume adjustment) Etc.) for a better user experience.
  • the present invention further provides a streaming media decryption device, the streaming media decryption device is embedded in a browser, and referring to FIG. 4, in a first embodiment of the streaming media decryption device of the present invention, the present invention provides a streaming media
  • the decryption device includes:
  • the streaming media obtaining module 10 is configured to acquire corresponding streaming media data when the browser receives the playing instruction
  • the purpose of the present invention is to embed the streaming media decryption device in the browser, and implement the functions of the existing DRM plug-in (such as encryption interpretation, license acquisition, decryption, etc.) through the streaming media decryption device.
  • the browser with built-in streaming media decryption device can complete the whole process from streaming media data acquisition to streaming media data decryption and playback without additional loading of the DRM plug-in.
  • the streaming media decryption device code is added to the browser kernel code to implement embedding of the streaming media decryption device.
  • the streaming media obtaining module 10 parses the play command to obtain the streaming media content publishing server information (for example, the IP address of the streaming media content publishing server), and generates a stream.
  • the generated streaming media data acquisition request is sent to the streaming media content distribution server corresponding to the streaming media content distribution server information, so that the streaming media content publishing server returns according to the received streaming media data acquisition request.
  • Corresponding streaming media data after receiving the streaming media data returned by the streaming media content publishing server, storing the streaming media data into a data buffer of the browser.
  • the first analyzing module 20 is configured to analyze whether the streaming media data is encrypted
  • the first analyzing module 20 analyzes whether the streaming media data is encrypted. Specifically, the first analyzing module 20 parses the header file of the streaming media data in the header. When the file carries the encrypted information, the first analyzing module 20 identifies that the streaming media data is encrypted; when the header file does not carry the encrypted information, the first analyzing module 20 identifies that the streaming media data is not encrypted.
  • the encrypted information includes an encryption and decryption algorithm used by the streaming media data, and information such as a license issuance server.
  • the encryption information obtaining module 30 is configured to acquire a corresponding license and the built-in encryption and decryption algorithm when the streaming media data is encrypted;
  • the encrypted information obtaining module 30 parses the encryption and decryption algorithm used by the streaming media data from the encrypted information, and the license issuing server information (for example, the IP address of the license issuing server) Generating a license acquisition request according to the license issuance server information, and transmitting the generated license acquisition request to a license issuance server corresponding to the license issuance server information for the license issuance server Returning the corresponding license; after receiving the license returned by the license issuing server, storing the license into the data buffer of the browser and associating with the aforementioned streaming media data.
  • the license issuing server information for example, the IP address of the license issuing server
  • the decryption module 40 is configured to decrypt the streaming media data based on the acquired license and the encryption and decryption algorithm, so that the browser plays the decrypted streaming media data.
  • the decryption module 40 decrypts the streaming media associated with the license based on the license acquired by the encryption information acquisition module 30 and the encryption and decryption algorithm. Data for the browser to play the decrypted streaming media data.
  • the encryption and decryption algorithm acquired by the encryption information acquisition module 30 is a DES algorithm
  • the decryption module 40 decrypts the streaming media data associated with the license based on the license acquired by the encryption information acquisition module 30 and the DES algorithm.
  • the streaming media decryption device of the embodiment is embedded in the browser, and the streaming media decryption device acquires corresponding streaming media data when the browser receives the playback instruction; and analyzes whether the streaming media data is encrypted; Acquiring a corresponding license, and a built-in encryption and decryption algorithm when the streaming media data is encrypted; decrypting the streaming media data for playing and decrypting by the browser based on the acquired license and the encryption and decryption algorithm After streaming data.
  • the browser does not need to call an additional DRM plug-in, and avoids repeated circulation of streaming media data between the browser and the DRM plug-in, so that the present invention can improve the efficiency of decrypting the streaming media.
  • the streaming media decryption apparatus further includes a playing module 50 for decrypting the decrypted
  • the streaming media data is sent to the player for decoding processing, and the decoded streaming media data is uploaded by the browser.
  • the browser does not have the ability to decode the streaming media data.
  • the local player needs to be called to decode, and then the decoded streaming media data is presented to the user through the browser.
  • the playing module 50 sends the decrypted streaming media data to the player local to the user terminal for decoding processing, and loads and displays the decoded streaming media through the browser. data. For example, when the user clicks on the audio and video link in the browser page, the browser directly presents the corresponding audio and video to the user in the page, such as playing music, movies, and the like.
  • the streaming media decryption apparatus further includes a second analysis module 60 for analyzing Whether the obtained license is complete;
  • the decryption module 40 is further configured to decrypt the streaming media data for the browser to play the decrypted streaming media data based on the obtained license and the encryption and decryption algorithm when the license is complete.
  • the network is a collection of dynamic network devices, including servers, routers, switches, and user terminals. It may cause a certain network line to be unreachable for some reason at a certain time; or During a period of time, a network device receives a large number of network packets exceeding the processing capacity, causing data processing timeouts and network packet loss.
  • the license is formed in the form of multiple network packets. If any network packet is lost, the final acquired license will be incomplete, and the corresponding streaming media data cannot be decrypted, resulting in the acquired stream. Media data cannot be played, resulting in a bad user experience.
  • the second analysis module 60 first analyzes whether the license acquired by the encryption information acquisition module 30 is complete, and if so, the decryption module 40 is based on the acquisition. The license decrypts the corresponding streaming media data; otherwise the second analysis module 60 discards the acquired license.
  • the second analyzing module 60 determines that the size of the license should be 512 Kb by analyzing the header information of the license, if the license obtained by the encrypted information acquiring module 30 The actual size of the certificate is 512 Kb, the second analysis module 60 identifies that the obtained license is complete; if the actual size of the license acquired by the encrypted information obtaining module 30 is not 512 Kb (network packet loss), the second analysis Module 60 identifies that the obtained license is incomplete.
  • a fourth embodiment of the streaming media decryption apparatus of the present invention is proposed.
  • the encrypted information obtaining module 30 is further configured to reacquire the corresponding license when the license is incomplete. Certificate until you get a full license.
  • the encrypted information obtaining module 30 re-acquires the corresponding license until the complete license is obtained, so that the acquired stream is obtained.
  • Media data can be played normally. That is, each time the encryption information obtaining module 30 acquires the license, the second analysis module 60 performs the determination of the license integrity, and the decryption module 40 performs the decryption operation, otherwise the acquired license is discarded, and The encrypted information acquisition module 30 acquires the corresponding license again.
  • the streaming media decryption apparatus further includes a buffer partitioning module, configured to divide the data buffer area in the browser.
  • the data buffer is used to store streaming media data, licenses, and decrypted streaming media data.
  • the browser when the user plays the streaming audio and video through the browser, the browser only obtains the download address of the streaming media data, and then the player loads the streaming media data download address obtained by the browser to download the streaming media.
  • the downloaded streaming media data is sent to the DRM plug-in for decryption; after the DRM plug-in decrypts the streaming media data, the decrypted streaming media data is returned to the player; the player Decoding the streaming media data returned by the DRM plug-in, and returning the decoded streaming media data to the browser, so that the browser presents the decoded streaming media data to the user.
  • the buffer partitioning module further divides the data buffer area in the browser, and the browser downloads and decrypts the streaming media data; then sends the decrypted streaming media data to the player for decoding, and receives the player back.
  • the decoded streaming media data is presented to the user, which reduces the existing communication process and improves the playback efficiency of the streaming media data.
  • the user can directly play control through the browser page (for example, play, pause, Stop and volume adjustment, etc.) for a better user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Storage Device Security (AREA)

Abstract

本发明公开了一种流媒体解密方法,将流媒体解密装置内嵌于浏览器运行,所述流媒体解密方法包括:所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;所述流媒体解密装置分析所述流媒体数据是否被加密;所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。本发明还公开了一种流媒体解密装置。本发明能够提高解密流媒体的效率。

Description

流媒体解密方法及装置
技术领域
本发明涉及互联网技术领域,尤其涉及流媒体解密方法及装置。
背景技术
在互联网技术越来越普及的今天,数字化信息已成为主流传播载体,但数字化信息传播的特点,不利于版权人版权的保护。所以,必须要有一种技术,可以将数字化的文字、音视频文件进行加密处理,针对符合条件的用户,可以得到一个解密该文件的许可证。此种技术以目前微软提供的DRM技术为主流技术,但针对已加密媒体文件的解密方法有多种,各厂商有不同的方式,主要通过浏览器DRM插件状态存在。播放器请求流媒体数据后,解析头信息发现有加密,此时,浏览器会调用DRM插件发送请求以获取许可证,得到许可证后,DRM插件会对播放器后续下载的流媒体数据进行相应的解密处理,解密完成后,把解密后的流媒体数据发送给播放器进行播放。由于流媒体数据从获取到解密需要在浏览器、播放器以及DRM插件中流转,导致现有技术中解密流媒体的效率较低。
发明内容
本发明的主要目的在于提供一种流媒体解密方法及装置,旨在提高解密流媒体的效率。
为实现上述目的,本发明将流媒体解密装置内嵌于浏览器运行,所述流媒体解密方法包括以下步骤:
所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;
所述流媒体解密装置分析所述流媒体数据是否被加密;
所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
所述流媒体解密装置分析获取的所述许可证是否完整;
在所述许可证完整时,所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据;
所述流媒体解密装置将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
本发明还提供了一种流媒体解密方法,该流媒体解密方法包括以下步骤:
所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;
所述流媒体解密装置分析所述流媒体数据是否被加密;
所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
优选地,所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤之后,所述流媒体解密方法,还包括:
所述流媒体解密装置将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
优选地,所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
所述流媒体解密装置分析获取的所述许可证是否完整;
在所述许可证完整时,执行所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤。
优选地,所述流媒体解密装置分析获取的所述许可证是否完整的步骤之后,所述流媒体解密方法,还包括:
在所述许可证不完整时,所述流媒体解密装置重新获取相应的许可证,直至获取到完整的许可证。
优选地,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
此外,为实现上述目的,本发明还提供一种流媒体解密装置,所述流媒体解密装置内嵌于浏览器运行,包括:
流媒体获取模块,用于在所述浏览器接收到播放指令时,获取相应的流媒体数据;
第一分析模块,用于分析所述流媒体数据是否被加密;
加密信息获取模块,用于在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
解密模块,用于基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
优选地,所述流媒体解密装置还包括播放模块,用于将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
优选地,所述流媒体解密装置,还包括第二分析模块,用于分析获取的所述许可证是否完整;
所述解密模块还用于在所述许可证完整时,基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
优选地,所述加密信息获取模块,还用于在所述许可证不完整时,重新获取相应的许可证,直至获取到完整的许可证。
优选地,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
优选地,所述流媒体获取模块,还用于解析所述播放指令以获取流媒体内容发布服务器信息,并生成流媒体数据获取请求;将生成的所述流媒体数据获取请求发送至所述流媒体内容发布服务器信息对应的流媒体内容发布服务器,以供流媒体内容发布服务器根据接收到的流媒体数据获取请求返回相应的流媒体数据。
本发明通过将流媒体解密装置内嵌于浏览器,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;分析所述流媒体数据是否被加密;在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。相较于现有技术,浏览器无需调用额外的DRM插件,避免了流媒体数据在浏览器以及DRM插件之间的重复流转,从而本发明能够提高解密流媒体的效率。
附图说明
图1为本发明流媒体解密方法第一实施例的流程示意图;
图2为本发明流媒体解密方法第二实施例的流程示意图;
图3为本发明流媒体解密方法第三实施例的流程示意图;
图4为本发明流媒体解密装置第一实施例的功能模块示意图;
图5为本发明流媒体解密装置第二实施例的功能模块示意图;
图6为本发明流媒体解密装置第三实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种流媒体解密方法,流媒体解密装置内嵌于浏览器运行,参照图1,在本发明流媒体解密方法的第一实施例中,所述流媒体解密方法包括以下步骤:
S10,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;
需要说明的是,本发明目的的实现在于将流媒体解密装置内嵌于浏览器,并通过流媒体解密装置实现现有DRM插件的功能(如加密判读、许可证获取以及解密等)。内置有流媒体解密装置的浏览器无需额外加载DRM插件,自身即可完成从流媒体数据获取到流媒体数据解密播放的整个过程。具体地,在软件层面,将流媒体解密装置代码添加至浏览器内核代码中,以实现流媒体解密装置的内嵌。
本实施例中,所述流媒体解密装置在所述浏览器接收到播放指令时,解析所述播放指令以获取流媒体内容发布服务器信息(例如,流媒体内容发布服务器的IP地址),并生成流媒体数据获取请求;将生成的所述流媒体数据获取请求发送至所述流媒体内容发布服务器信息对应的流媒体内容发布服务器,以供流媒体内容发布服务器根据接收到的流媒体数据获取请求返回相应的流媒体数据;在接收到流媒体内容发布服务器返回的流媒体数据后,将所述流媒体数据存储至浏览器的数据缓存区中。
S20,所述流媒体解密装置分析所述流媒体数据是否被加密;
所述流媒体解密装置在获取到流媒体数据后,分析所述流媒体数据是否被加密,具体地,解析所述流媒体数据的头文件,在所述头文件中携带有加密信息时,识别所述流媒体数据被加密;在所述头文件中未携带有加密信息时,识别所述流媒体数据未被加密。其中,所述加密信息包括流媒体数据采用的加解密算法,以及许可证颁发服务器等信息。
S30,所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
若所述流媒体数据被加密,则所述流媒体解密装置从所述加密信息中解析出所述流媒体数据采用的加解密算法,以及许可证颁发服务器信息(例如,许可证颁发服务器的IP地址);根据所述许可证颁发服务器信息生成许可证获取请求,并将生成的所述许可证获取请求发送至所述许可证颁发服务器信息对应的许可证颁发服务器,以供所述许可证颁发服务器返回相应的许可证;在接收到所述许可证颁发服务器返回的许可证后,将所述许可证存储至浏览器的数据缓存区中,并与前述流媒体数据关联。
S40,所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
在获取到许可证以及内置的加解密算法后,基于获取的所述许可证以及所述加解密算法,解密与所述许可证关联的流媒体数据,以供浏览器播放解密后的流媒体数据。例如,所述流媒体解密装置获取到的加解密算法为DES算法,则基于获取的所述许可证以及DES算法,解密与所述许可证关联的流媒体数据。
本实施例提出的流媒体解密方法,将流媒体解密装置内嵌于浏览器,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;分析所述流媒体数据是否被加密;在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。相较于现有技术,浏览器无需调用额外的DRM插件,避免了流媒体数据在浏览器以及DRM插件之间的重复流转,从而本发明能够提高解密流媒体的效率。
进一步地,基于第一实施例,提出本发明流媒体解密方法的第二实施例,参照图2,在本实施例中,S40之后,所述流媒体解密方法,还包括:
S50,所述流媒体解密装置将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
需要说明的是,浏览器并不具备解码流媒体数据的能力,在播放时,需要调用本地播放器进行解码,然后通过浏览器将解码后的流媒体数据呈现给用户。本实施例中,所述流媒体解密装置在完成对流媒体数据的解密后,将解密后的流媒体数据发送至用户终端本地的播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。例如,当用户在浏览器页面中点击音视频链接后,浏览器直接在页面中为用户呈现相应的音视频,如播放音乐、电影等。
进一步地,基于第一实施例,提出本发明流媒体解密方法的第三实施例,参照图3,在本实施例中,S40之前,所述流媒体解密方法,还包括:
S60,所述流媒体解密装置分析获取的所述许可证是否完整;若是,则转入执行S40。
需要说明的是,网络是一个动态的网络设备的集合,包括服务器、路由器、交换机以及用户终端等,可能在某一时间段,由于某种原因造成了特定网络线路的不可达;或者是在某一时间段,某网络设备接收到超过处理能力的大量网络包,造成了数据处理的超时,网络包丢失。而在网络传输过程中,许可证是以多个网络包的形式构成的,任一网络包丢失都会造成最终获取的许可证不完整,从而造成相应的流媒体数据无法解密,进而导致获取的流媒体数据无法播放,带来不好的用户体验。有鉴于此,本实施例中,所述流媒体解密装置在获取到许可证后,首先分析获取的所述许可证是否完整,若是则基于获取的所述许可证以及内置的加解密算法,对相应的流媒体数据进行解密;否则丢弃获取的所述许可证。
例如,所述流媒体解密装置在获取到许可证后,通过分析所述许可证的头信息得出该许可证的大小应为512Kb,若获取的所述许可证的实际大小为512Kb,则识别获取的所述许可证完整;若获取的所述许可证的实际大小不为512Kb(网络包丢失),则识别获取的所述许可证不完整。
基于第三实施例,提出本发明流媒体解密方法的第四实施例,在本实施例中,S60之后,所述流媒体解密方法,还包括:
在所述许可证不完整时,所述流媒体解密装置重新获取相应的许可证,直至获取到完整的许可证。
容易理解的是,若所述流媒体解密装置获取的许可证不完整,将会导致流媒体数据不能正常解密,进而导致流媒体数据不能正常播放,影响用户体验。本实施例中,为避免前述问题,所述流媒体解密装置在识别所述许可证不完整时,重新获取相应的许可证,直至获取到完整的许可证,以使得获取的流媒体数据能够正常播放。即所述流媒体解密装置每获取一次许可证,进行许可证完整性的判别,是则进行解密操作,否则丢弃获取的许可证,并再次获取相应的许可证。
基于上述任一实施例,提出本发明流媒体解密方法的第五实施例,在本实施例中,S10之前,所述流媒体解密方法,还包括:
所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
需要说明的是,现有技术中,当用户通过浏览器播放流媒体音视频时,浏览器仅获取到流媒体数据的下载地址,然后播放器加载浏览器获取的流媒体数据下载地址下载流媒体数据;播放器在下载到流媒体数据后,将下载的流媒体数据发送至DRM插件进行解密;DRM插件在完成对流媒体数据的解密后,将解密后的流媒体数据返回至播放器;播放器对DRM插件返回的流媒体数据进行解码处理,并将解码后的流媒体数据返回至浏览器,以供浏览器将解码后的流媒体数据呈现给用户。
本实施例进一步通过在浏览器划分数据缓存区,并由浏览器完成流媒体数据的下载,以及解密;然后将解密后的流媒体数据发送至播放器解码,并接收播放器返回的解码后的流媒体数据,将之呈现给用户,减少了现有的通讯流程,提高了流媒体数据的播放效率;同时,用户能够直接通过浏览器页面进行播放控制(例如,播放、暂停、停止以及音量调整等),带来更好的用户体验。
本发明还提供一种流媒体解密装置,所述流媒体解密装置内嵌于浏览器运行,参照图4,在本发明流媒体解密装置的第一实施例中,本发明提供的一种流媒体解密装置包括:
流媒体获取模块10,用于在所述浏览器接收到播放指令时,获取相应的流媒体数据;
需要说明的是,本发明目的的实现在于将流媒体解密装置内嵌于浏览器,并通过流媒体解密装置实现现有DRM插件的功能(如加密判读、许可证获取以及解密等)。内置有流媒体解密装置的浏览器无需额外加载DRM插件,自身即可完成从流媒体数据获取到流媒体数据解密播放的整个过程。具体地,在软件层面,将流媒体解密装置代码添加至浏览器内核代码中,以实现流媒体解密装置的内嵌。
本实施例中,流媒体获取模块10在所述浏览器接收到播放指令时,解析所述播放指令以获取流媒体内容发布服务器信息(例如,流媒体内容发布服务器的IP地址),并生成流媒体数据获取请求;将生成的所述流媒体数据获取请求发送至所述流媒体内容发布服务器信息对应的流媒体内容发布服务器,以供流媒体内容发布服务器根据接收到的流媒体数据获取请求返回相应的流媒体数据;在接收到流媒体内容发布服务器返回的流媒体数据后,将所述流媒体数据存储至浏览器的数据缓存区中。
第一分析模块20,用于分析所述流媒体数据是否被加密;
在流媒体获取模块10获取到流媒体数据后,第一分析模块20分析所述流媒体数据是否被加密,具体地,第一分析模块20解析所述流媒体数据的头文件,在所述头文件中携带有加密信息时,第一分析模块20识别所述流媒体数据被加密;在所述头文件中未携带有加密信息时,第一分析模块20识别所述流媒体数据未被加密。其中,所述加密信息包括流媒体数据采用的加解密算法,以及许可证颁发服务器等信息。
加密信息获取模块30,用于在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
若所述流媒体数据被加密,则加密信息获取模块30从所述加密信息中解析出所述流媒体数据采用的加解密算法,以及许可证颁发服务器信息(例如,许可证颁发服务器的IP地址);根据所述许可证颁发服务器信息生成许可证获取请求,并将生成的所述许可证获取请求发送至所述许可证颁发服务器信息对应的许可证颁发服务器,以供所述许可证颁发服务器返回相应的许可证;在接收到所述许可证颁发服务器返回的许可证后,将所述许可证存储至浏览器的数据缓存区中,并与前述流媒体数据关联。
解密模块40,用于基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
在加密信息获取模块30获取到许可证以及内置的加解密算法后,解密模块40基于加密信息获取模块30获取的所述许可证以及所述加解密算法,解密与所述许可证关联的流媒体数据,以供浏览器播放解密后的流媒体数据。例如,所述加密信息获取模块30获取到的加解密算法为DES算法,解密模块40基于加密信息获取模块30获取的所述许可证以及DES算法,解密与所述许可证关联的流媒体数据。
本实施例提出的流媒体解密装置,内嵌于浏览器,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;分析所述流媒体数据是否被加密;在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。相较于现有技术,浏览器无需调用额外的DRM插件,避免了流媒体数据在浏览器以及DRM插件之间的重复流转,从而本发明能够提高解密流媒体的效率。
进一步地,基于第一实施例,提出本发明流媒体解密装置的第二实施例,参照图5,在本实施例中,所述流媒体解密装置还包括播放模块50,用于将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
需要说明的是,浏览器并不具备解码流媒体数据的能力,在播放时,需要调用本地播放器进行解码,然后通过浏览器将解码后的流媒体数据呈现给用户。本实施例中,在解密模块40完成对流媒体数据的解密后,播放模块50将解密后的流媒体数据发送至用户终端本地的播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。例如,当用户在浏览器页面中点击音视频链接后,浏览器直接在页面中为用户呈现相应的音视频,如播放音乐、电影等。
进一步地,基于第一实施例,提出本发明流媒体解密装置的第三实施例,参照图6,在本实施例中,所述流媒体解密装置,还包括第二分析模块60,用于分析获取的所述许可证是否完整;
所述解密模块40还用于在所述许可证完整时,基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
需要说明的是,网络是一个动态的网络设备的集合,包括服务器、路由器、交换机以及用户终端等,可能在某一时间段,由于某种原因造成了特定网络线路的不可达;或者是在某一时间段,某网络设备接收到超过处理能力的大量网络包,造成了数据处理的超时,网络包丢失。而在网络传输过程中,许可证是以多个网络包的形式构成的,任一网络包丢失都会造成最终获取的许可证不完整,从而造成相应的流媒体数据无法解密,进而导致获取的流媒体数据无法播放,带来不好的用户体验。有鉴于此,本实施例中,在加密信息获取模块30获取到许可证后,第二分析模块60首先分析加密信息获取模块30获取的所述许可证是否完整,若是,解密模块40则基于获取的所述许可证对相应的流媒体数据进行解密;否则第二分析模块60丢弃获取的所述许可证。
例如,在加密信息获取模块30获取到许可证后,第二分析模块60通过分析所述许可证的头信息得出该许可证的大小应为512Kb,若加密信息获取模块30获取的所述许可证的实际大小为512Kb,则第二分析模块60识别获取的所述许可证完整;若加密信息获取模块30获取的所述许可证的实际大小不为512Kb(网络包丢失),则第二分析模块60识别获取的所述许可证不完整。
基于第三实施例,提出本发明流媒体解密装置的第四实施例,在本实施例中,所述加密信息获取模块30,还用于在所述许可证不完整时,重新获取相应的许可证,直至获取到完整的许可证。
容易理解的是,若加密信息获取模块30获取的许可证不完整,将会导致流媒体数据不能正常解密,进而导致流媒体数据不能正常播放,影响用户体验。本实施例中,为避免前述问题,在第二分析模块60识别所述许可证不完整时,加密信息获取模块30重新获取相应的许可证,直至获取到完整的许可证,以使得获取的流媒体数据能够正常播放。即所述加密信息获取模块30每获取一次许可证,所述第二分析模块60进行许可证完整性的判别,是则供所述解密模块40进行解密操作,否则丢弃获取的许可证,并由所述加密信息获取模块30再次获取相应的许可证。
基于上述任一实施例,提出本发明流媒体解密装置的第五实施例,在本实施例中,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
需要说明的是,现有技术中,当用户通过浏览器播放流媒体音视频时,浏览器仅获取到流媒体数据的下载地址,然后播放器加载浏览器获取的流媒体数据下载地址下载流媒体数据;播放器在下载到流媒体数据后,将下载的流媒体数据发送至DRM插件进行解密;DRM插件在完成对流媒体数据的解密后,将解密后的流媒体数据返回至播放器;播放器对DRM插件返回的流媒体数据进行解码处理,并将解码后的流媒体数据返回至浏览器,以供浏览器将解码后的流媒体数据呈现给用户。
本实施例进一步通过缓存区划分模块在浏览器划分数据缓存区,并由浏览器完成流媒体数据的下载,以及解密;然后将解密后的流媒体数据发送至播放器解码,并接收播放器返回的解码后的流媒体数据,将之呈现给用户,减少了现有的通讯流程,提高了流媒体数据的播放效率;同时,用户能够直接通过浏览器页面进行播放控制(例如,播放、暂停、停止以及音量调整等),带来更好的用户体验。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种流媒体解密方法,其特征在于,流媒体解密装置内嵌于浏览器运行,所述流媒体解密方法包括:
    所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;
    所述流媒体解密装置分析所述流媒体数据是否被加密;
    所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
    所述流媒体解密装置分析获取的所述许可证是否完整;
    在所述许可证完整时,所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据;
    所述流媒体解密装置将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
  2. 一种流媒体解密方法,其特征在于,流媒体解密装置内嵌于浏览器运行,所述流媒体解密方法包括:
    所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据;
    所述流媒体解密装置分析所述流媒体数据是否被加密;
    所述流媒体解密装置在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
    所述流媒体解密装置基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
  3. 如权利要求2所述的流媒体解密方法,其特征在于,所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤之后,所述流媒体解密方法,还包括:
    所述流媒体解密装置将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
  4. 如权利要求2所述的流媒体解密方法,其特征在于,所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
    所述流媒体解密装置分析获取的所述许可证是否完整;
    在所述许可证完整时,执行所述流媒体解密装置基于获取的所述许可证和所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据的步骤。
  5. 如权利要求4所述的流媒体解密方法,其特征在于,所述流媒体解密装置分析获取的所述许可证是否完整的步骤之后,所述流媒体解密方法,还包括:
    在所述许可证不完整时,所述流媒体解密装置重新获取相应的许可证,直至获取到完整的许可证。
  6. 如权利要求2所述的流媒体解密方法,其特征在于,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
    所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  7. 如权利要求3所述的流媒体解密方法,其特征在于,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
    所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  8. 如权利要求4所述的流媒体解密方法,其特征在于,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
    所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  9. 如权利要求5所述的流媒体解密方法,其特征在于,所述流媒体解密装置在所述浏览器接收到播放指令时,获取相应的流媒体数据的步骤之前,所述流媒体解密方法,还包括:
    所述流媒体解密装置在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  10. 如权利要求8所述的流媒体解密方法,其特征在于,所述流媒体解密装置分析获取的所述许可证是否完整的步骤之后,所述流媒体解密方法,还包括:
    在所述许可证不完整时,所述流媒体解密装置重新获取相应的许可证,直至获取到完整的许可证。
  11. 一种流媒体解密装置,其特征在于,所述流媒体解密装置内嵌于浏览器运行,所述流媒体解密装置包括:
    流媒体获取模块,用于在所述浏览器接收到播放指令时,获取相应的流媒体数据;
    第一分析模块,用于分析所述流媒体数据是否被加密;
    加密信息获取模块,用于在所述流媒体数据被加密时,获取相应的许可证,以及内置的加解密算法;
    解密模块,用于基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
  12. 如权利要求11所述的流媒体解密装置,其特征在于,所述流媒体解密装置还包括播放模块,用于将解密后的流媒体数据发送至播放器进行解码处理,并通过浏览器加载呈现解码后的流媒体数据。
  13. 如权利要求11所述的流媒体解密装置,其特征在于,所述流媒体解密装置,还包括第二分析模块,用于分析获取的所述许可证是否完整;
    所述解密模块还用于在所述许可证完整时,基于获取的所述许可证以及所述加解密算法,解密所述流媒体数据,以供浏览器播放解密后的流媒体数据。
  14. 如权利要求13所述的流媒体解密装置,其特征在于,所述加密信息获取模块,还用于在所述许可证不完整时,重新获取相应的许可证,直至获取到完整的许可证。
  15. 如权利要求11所述的流媒体解密装置,其特征在于,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  16. 如权利要求12所述的流媒体解密装置,其特征在于,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  17. 如权利要求13所述的流媒体解密装置,其特征在于,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  18. 如权利要求14所述的流媒体解密装置,其特征在于,所述流媒体解密装置,还包括缓存区划分模块,用于在浏览器划分数据缓存区,所述数据缓存区用于储存流媒体数据、许可证以及解密后的流媒体数据。
  19. 如权利要求17所述的流媒体解密装置,其特征在于,所述加密信息获取模块,还用于在所述许可证不完整时,重新获取相应的许可证,直至获取到完整的许可证。
  20. 如权利要求11所述的流媒体解密装置,其特征在于,所述流媒体获取模块,还用于解析所述播放指令以获取流媒体内容发布服务器信息,并生成流媒体数据获取请求;将生成的所述流媒体数据获取请求发送至所述流媒体内容发布服务器信息对应的流媒体内容发布服务器,以供流媒体内容发布服务器根据接收到的流媒体数据获取请求返回相应的流媒体数据。
PCT/CN2016/084280 2015-07-20 2016-06-01 流媒体解密方法及装置 Ceased WO2017012419A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510428361.0A CN105072488A (zh) 2015-07-20 2015-07-20 流媒体解密方法及装置
CN201510428361.0 2015-07-20

Publications (1)

Publication Number Publication Date
WO2017012419A1 true WO2017012419A1 (zh) 2017-01-26

Family

ID=54501748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084280 Ceased WO2017012419A1 (zh) 2015-07-20 2016-06-01 流媒体解密方法及装置

Country Status (2)

Country Link
CN (1) CN105072488A (zh)
WO (1) WO2017012419A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072488A (zh) * 2015-07-20 2015-11-18 深圳Tcl数字技术有限公司 流媒体解密方法及装置
CN106101866A (zh) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 一种hls流媒体drm的方法
CN109743170B (zh) * 2018-11-30 2021-12-10 视联动力信息技术股份有限公司 一种流媒体登录以及数据传输加密的方法和装置
CN109660866A (zh) * 2018-12-28 2019-04-19 杭州当虹科技股份有限公司 一种基于h5的视频解密方法
CN111757176B (zh) 2020-06-11 2021-11-30 青岛海信传媒网络技术有限公司 流媒体文件安全播放方法及显示设备
CN113613044B (zh) * 2021-07-20 2023-08-01 深圳Tcl新技术有限公司 视频播放方法、装置、存储介质及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462940A (zh) * 2002-05-29 2003-12-24 明日工作室股份有限公司 一种浏览器解密系统及方法
US7991156B1 (en) * 2003-07-23 2011-08-02 Sprint Communications Company L.P. Digital rights management negotiation for streaming media over a network
CN102255886A (zh) * 2011-04-02 2011-11-23 南京邮电大学 一种流媒体点播系统的加密和解密方法
CN102685592A (zh) * 2012-02-17 2012-09-19 南京邮电大学 一种支持数字版权保护的流媒体播放器方法
CN104427358A (zh) * 2013-09-10 2015-03-18 奈飞公司 用于推测性地授权对流媒体内容的访问的快速到期许可证
CN105072488A (zh) * 2015-07-20 2015-11-18 深圳Tcl数字技术有限公司 流媒体解密方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462940A (zh) * 2002-05-29 2003-12-24 明日工作室股份有限公司 一种浏览器解密系统及方法
US7991156B1 (en) * 2003-07-23 2011-08-02 Sprint Communications Company L.P. Digital rights management negotiation for streaming media over a network
CN102255886A (zh) * 2011-04-02 2011-11-23 南京邮电大学 一种流媒体点播系统的加密和解密方法
CN102685592A (zh) * 2012-02-17 2012-09-19 南京邮电大学 一种支持数字版权保护的流媒体播放器方法
CN104427358A (zh) * 2013-09-10 2015-03-18 奈飞公司 用于推测性地授权对流媒体内容的访问的快速到期许可证
CN105072488A (zh) * 2015-07-20 2015-11-18 深圳Tcl数字技术有限公司 流媒体解密方法及装置

Also Published As

Publication number Publication date
CN105072488A (zh) 2015-11-18

Similar Documents

Publication Publication Date Title
WO2016192270A1 (zh) 媒体文件的快速启播方法及装置
US8813246B2 (en) Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system
CN101040526B (zh) 数字装置的数字版权管理方法和设备
US9213809B2 (en) System and method for protecting digital contents with digital rights management (DRM)
WO2017084311A1 (zh) 单分片视频播放加速方法及装置
WO2019227557A1 (zh) 密钥管理方法、设备、存储介质及装置
US20140075582A1 (en) Method for playing digital contents protected with a drm (digital rights management) scheme and corresponding system
US20120284802A1 (en) Method for playing digital contents protected with a drm (digital right management) scheme and corresponding system
WO2019153433A1 (zh) 一种密钥的提供、视频播放方法、服务器及客户端
WO2016192254A1 (zh) 网络视频在线播放的方法和装置
WO2017215514A1 (zh) 音视频的加密播放方法及其系统
JP6612899B2 (ja) ブロードキャストチャネルを介したコンテンツ保護を可能にするための方法及び装置
WO2012009917A1 (zh) 数字版权管理的应用方法及终端设备
WO2018038579A1 (en) Apparatus and method for providing security service in communication system
CN105049941B (zh) 一种多媒体文件的处理方法及装置
WO2017036209A1 (zh) 基于智能电视的音频数据播放方法、智能电视及系统
WO2013075613A1 (zh) 网络服务提供方法及装置
CN105072488A (zh) 流媒体解密方法及装置
CA2601809A1 (en) Rights management system for streamed multimedia content
CA2600444A1 (en) Rights management system for streamed multimedia content
CN100401769C (zh) 一种对直播流媒体数据进行加密和解密的方法
WO2016101687A1 (zh) 数字电视终端条件接收方法、终端及系统
WO2017113610A1 (zh) 流媒体加密方法、装置和系统
WO2017181500A1 (zh) 电视节目的播放方法及装置
CN1863041A (zh) 实现网络电视节目预览的方法

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

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 07.06.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16827110

Country of ref document: EP

Kind code of ref document: A1