CN110392288B - Multimedia file playing method, terminal device and terminal equipment - Google Patents

Multimedia file playing method, terminal device and terminal equipment Download PDF

Info

Publication number
CN110392288B
CN110392288B CN201910605423.9A CN201910605423A CN110392288B CN 110392288 B CN110392288 B CN 110392288B CN 201910605423 A CN201910605423 A CN 201910605423A CN 110392288 B CN110392288 B CN 110392288B
Authority
CN
China
Prior art keywords
file
terminal
playing
key
multimedia file
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.)
Active
Application number
CN201910605423.9A
Other languages
Chinese (zh)
Other versions
CN110392288A (en
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 Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201910605423.9A priority Critical patent/CN110392288B/en
Publication of CN110392288A publication Critical patent/CN110392288A/en
Application granted granted Critical
Publication of CN110392288B publication Critical patent/CN110392288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0863Generation of secret information including derivation or calculation of cryptographic keys or passwords involving passwords or one-time passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request

Abstract

The invention discloses a multimedia file playing method, a terminal device and terminal equipment, wherein the playing method comprises the following steps: when a pause instruction is received, extracting a timestamp of the current playing time point of the multimedia file; encrypting the timestamp and the license key to obtain an encrypted file; and sending the encrypted file to a security server so that the second terminal requests the security server for the encrypted file to continue playing the multimedia file. The playing method further comprises the following steps: sending a query request for resuming playing of the multimedia file to a security server; receiving an encrypted file returned by the security server according to the query request; decrypting the encrypted file to obtain a license key and a timestamp; and decrypting the multimedia file according to the license key, and skipping to a corresponding playing time point according to the timestamp to continue playing the decrypted multimedia file. The continuous playing function from the first terminal to the second terminal can be realized, the login does not need to be switched, and the user experience is improved.

Description

Multimedia file playing method, terminal device and terminal equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a multimedia file playing method, a terminal device, and a terminal device.
Background
Since the rise of internet technology, digital content can be copied and distributed at nearly zero cost due to its peculiarities. If this continues, no more people are willing to pay for the acquisition of digital content, which undermines the development of the whole internet industry.
Digital Rights management (drm) has been developed, which is a unique technology that can protect the copyright of digital contents such as enhanced digitized audio/video program contents, documents or electronic books, and only the authorized digital contents can be opened/played.
However, in the prior art, the digital content is bound with the purchase account of the user. For example, when a user purchases a digital movie via an account, the user must log in the account for purchasing the digital movie to have the right to view the movie. In view of the fact that the love of a user on a handheld mobile terminal such as a mobile phone and the like and the duration of a movie are usually very long, if the user finds a movie that the user wants to watch, the user often chooses to watch the movie in front of a large-screen television or computer display screen in order to obtain a better viewing experience. At this time, the user must log in the account in the television mall or the computer website to purchase or play the digital movie before buying or not, the process is complicated, and the user needs to switch back and forth to use different devices, which causes great inconvenience to the user.
Disclosure of Invention
The embodiment of the invention provides a multimedia file playing method, a terminal device and terminal equipment, which can realize the pause and continuous playing function of multimedia files among different terminals, do not need to switch login and improve the user experience.
In view of this, a first aspect of an embodiment of the present invention provides a multimedia file playing method, including:
when a pause instruction is received, extracting a timestamp of the current playing time point of the multimedia file;
encrypting the timestamp and the license key to obtain an encrypted file;
and sending the encrypted file to a security server so that the second terminal requests the security server for the encrypted file to continue playing the multimedia file.
Further, before encrypting the timestamp and the license key to obtain the encrypted file, the method further includes:
generating a pair of a public key and a private key according to the license key, wherein the public key is used for encryption, the private key is used for decryption, and the private key is stored locally;
the encrypting the timestamp and the license key to obtain an encrypted file comprises:
and encrypting the time stamp and the license key through the public key to obtain the encrypted file.
Further, the encrypting the timestamp and the license key to obtain the encrypted file further includes:
encrypting the timestamp, the license key and the first identifier of the first terminal through the public key to obtain the encrypted file;
wherein the encrypted file comprises a packet header and a packet body, the first identifier and the timestamp are encapsulated in the packet header, and the license key is encapsulated in the packet body;
the time stamp includes a file encoding of the multimedia file.
The second aspect of the embodiments of the present invention further provides a multimedia file playing method, including:
sending a query request for resuming playing of the multimedia file to a security server;
receiving an encrypted file returned by the security server according to the query request;
decrypting the encrypted file to obtain a license key and a timestamp;
and decrypting the multimedia file according to the license key, and skipping to a corresponding playing time point according to the timestamp to continue playing the decrypted multimedia file.
Further, before sending the query request for resuming playing the multimedia file to the secure server, the method includes:
receiving a playing request for playing the multimedia file;
acquiring a file code of the multimedia file according to the playing request, and acquiring a target identifier set of a target terminal set in a target range, wherein the target identifier set comprises a first identifier of a first terminal;
and generating the query request according to the file code and the target identification set.
Further, the encrypted file includes a packet header and a packet body, the packet header encapsulates the first identifier and the timestamp, the packet body encapsulates the license key, and the timestamp includes the file code;
the receiving the encrypted file returned by the security server according to the query request comprises:
and receiving an encrypted file which is determined by the security server according to the query request and is returned, wherein the file code and the first identifier are encapsulated in the packet header.
Further, the encrypted file is encrypted by a public key generated by the first terminal, wherein the public key is paired with a private key, the public key and the private key are generated by the first terminal according to the license key, and the private key is stored locally in the first terminal in association with the file code;
the decrypting the encrypted file to obtain the license key and the timestamp includes:
analyzing the packet header of the encrypted file and determining the first identifier;
initiating a continuous playing request to the first terminal according to the first identifier, wherein the continuous playing request comprises the file code;
receiving the private key which is determined and returned by the first terminal according to the file code;
and decrypting the encrypted file according to the private key to obtain the license key and the timestamp.
A third aspect of embodiments of the present invention provides a terminal apparatus, including:
the extracting module is used for extracting the time stamp of the current playing time point of the multimedia file when a pause instruction is received;
the encryption module is used for encrypting the timestamp and the permission key to obtain an encrypted file;
and the sending module is used for sending the encrypted file to a security server so that the second terminal requests the security server for the encrypted file to continue playing the multimedia file.
Further, the terminal device further includes:
the generation module is used for generating a pair of public key and private key according to the license key, wherein the public key is used for encryption, the private key is used for decryption, and the private key is stored locally;
the encryption module is specifically configured to:
and encrypting the time stamp and the license key through the public key to obtain the encrypted file.
Further, the encryption module is specifically further configured to:
encrypting the timestamp, the license key and the first identifier of the first terminal through the public key to obtain the encrypted file;
wherein the encrypted file comprises a packet header and a packet body, the first identifier and the timestamp are encapsulated in the packet header, and the license key is encapsulated in the packet body;
the time stamp includes a file encoding of the multimedia file.
The fourth aspect of the embodiments of the present invention also provides a terminal apparatus, including:
the query module is used for sending a query request for continuously playing the multimedia file to a security server;
the receiving module is used for receiving the encrypted file returned by the security server according to the query request;
the decryption module is used for decrypting the encrypted file to obtain an authorization key and a timestamp;
and the continuous playing module is used for decrypting the multimedia file according to the license key and skipping to the corresponding playing time point according to the timestamp to continuously play the decrypted multimedia file.
Further, the terminal device further includes:
the response module is used for receiving a playing request for playing the multimedia file;
an obtaining module, configured to obtain a file code of the multimedia file according to the play request, and obtain a target identifier set of a target terminal set in a target range, where the target identifier set includes a first identifier of a first terminal;
and the generating module is used for generating the query request according to the file code and the target identification set.
Further, the encrypted file includes a packet header and a packet body, the packet header encapsulates the first identifier and the timestamp, the packet body encapsulates the license key, and the timestamp includes the file code;
the receiving module is specifically configured to:
and receiving an encrypted file which is determined by the security server according to the query request and is returned, wherein the file code and the first identifier are encapsulated in the packet header.
Further, the encrypted file is encrypted by a public key generated by the first terminal, wherein the public key is paired with a private key, the public key and the private key are generated by the first terminal according to the license key, and the private key is stored locally in the first terminal in association with the file code;
the decryption module includes:
the analysis unit is used for analyzing the packet header of the encrypted file and determining the first identifier;
a sending unit, configured to initiate a resume request to the first terminal according to the first identifier, where the resume request includes the file code;
the receiving unit is used for receiving the private key which is determined and returned by the first terminal according to the file code;
and the decryption unit is used for decrypting the encrypted file according to the private key to obtain the license key and the timestamp.
A fifth aspect of an embodiment of the present invention provides a terminal device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of playing a multimedia file as described in any of the second aspects above.
The sixth aspect of the embodiments of the present invention further provides a terminal device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of playing a multimedia file as defined in any one of the above first aspects.
A seventh aspect of the present invention provides a non-transitory computer-readable storage medium storing computer-executable instructions for causing a terminal device to execute the multimedia file playing method according to any one of the first aspect and the second aspect.
An eighth aspect of embodiments of the present invention provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, the computer program including program instructions that, when executed by a terminal device, cause the terminal device to execute the multimedia file playing method according to any one of the first aspect and the second aspect.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the multimedia file which is decrypted by the license key is played through the first terminal, when a pause instruction is received, the time stamp of the current playing time point of the multimedia file is extracted, the time stamp and the license key are encrypted to obtain the corresponding encrypted file, and then the encrypted file is sent to the security server, so that the second terminal can request the encrypted file from the security server to continue playing the multimedia file. Therefore, in the embodiment of the invention, the timestamp of the multimedia file during the pause is extracted by the first terminal, the timestamp and the permission key for decrypting the multimedia file are encrypted and sent to the security server, and the encrypted timestamp and the permission key are obtained from the security server by the second terminal, so that the continuous playing function at the second terminal is realized directly without switching login at different terminals, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram illustrating the operation of DRM technology in the prior art;
FIG. 2 is a schematic diagram of an embodiment of a multimedia file playing system according to the present invention;
fig. 3 is a schematic diagram of an embodiment of a playing method for playing a multimedia file by a first terminal according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an encrypted file structure according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an embodiment of a playing method for resuming playing of a multimedia file by a second terminal according to the present invention;
fig. 6a is a schematic diagram of an embodiment of a terminal device 600 of a first terminal according to the embodiment of the present invention;
fig. 6b is a schematic diagram of another embodiment of a terminal device 600 of the first terminal according to the embodiment of the present invention;
fig. 7a is a schematic diagram of an embodiment of a terminal device 700 of a second terminal according to the embodiment of the present invention;
fig. 7b is a schematic diagram of another embodiment of a terminal device 700 of a second terminal according to the embodiment of the present invention;
fig. 7c is a schematic diagram of another embodiment of a terminal device 700 of a second terminal according to the embodiment of the present invention;
fig. 8 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to clearly understand the technical features, objects and effects of the present invention, the technical solutions in the embodiments of the present invention will be described in more detail below with reference to the drawings in the embodiments of the present invention, and it is apparent that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in the description and claims of the present invention and the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," "includes," "including," "has," "having," and any variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The working principle of the DRM technology in the prior art is that a digital content rights issuer is first established as shown in fig. 1. The digital content after the compression is encoded can be encrypted and protected (lock) by a license Key (Key), and a Key id and a URL (Uniform Resource Locator) of a digital content authorization center are stored in the header of the encrypted digital content. When the user plays at the terminal, the user is linked to the digital content authorization center according to the URL information of the digital content header, and the license Key (Key) can be found correspondingly according to the KeyID, that is, the user can obtain the related license Key (Key) for decryption (unlock) after the authentication and authorization of the digital content authorization center, and then can play.
Currently, in order to strictly protect the copyright of the digital content, the account of the user is bound and registered in the digital content authorization center, the license key is only sent to the account bound and registered, and the license key cannot be played or needs to be purchased again to be played without the bound account. The user experience between different terminals is extremely inconvenient, the user needs to switch back and forth to log in accounts at different terminals, and the network environments of the open-source Android system and the computer website adopted by most of television malls are very complicated, so that potential safety hazards exist.
In the embodiment of the invention, digital content, such as a multimedia file, is purchased at a first terminal, and a license key of the multimedia file is obtained from a digital content authorization center; the user may click to pause or exit, provided that the user does not want to see at the first terminal or simply purchases to go home to see; the first terminal extracts the time stamp of the current playing time point, and can encrypt and send the time stamp and the license key together to the security server for storage. Then, the user can use the second terminal to obtain the saved time stamp and the permission key from the security server, use the permission key to play the multimedia file, and can jump to the time point of pausing the playing according to the time stamp to continue playing. Therefore, the multimedia file playing can be switched from the first terminal to the second terminal without logging in an account, so that the user experience can be better given, and a good product ecological chain can be constructed. Meanwhile, the timestamp and the license key are encrypted and sent to the security service, so that the security of the data can be guaranteed.
For understanding, the embodiments of the present invention are described in detail below with reference to the drawings, and it should be noted that the digital content in the embodiments of the present invention is described in a multimedia file, but should not be construed as limiting the embodiments of the present invention.
As shown in fig. 2, an embodiment of a multimedia file playing system according to an embodiment of the present invention includes:
a digital content rights issuer 100, a first terminal 200, a security server 300, and a second terminal 400.
The digital content rights issuer 100, among other things, may be used to encode compressed digital content and distribute the encrypted digital content, having a unique address URL on the internet. The types of the digital content include, but are not limited to, multimedia files, documents, electronic books, electronic games, and the like.
A first terminal 200, which is used to purchase a multimedia file from the digital content rights issuer 100 according to the URL address of the digital content rights issuer 100, obtain a license key for the purchased multimedia file from the digital content rights issuer 100, and decrypt the multimedia file for playing through the license key; the second aspect may be configured to extract a time stamp of a current playing time point of the multimedia file when a pause instruction of pause or exit is received by a user click input, and encrypt and transmit the time stamp and the license key to the security server 300.
The security server 300 may be configured to receive the encrypted timestamp and the license key transmitted from the first terminal 200 and may transmit the encrypted timestamp and the license key to the second terminal 400 in response to an inquiry request for resuming the multimedia file from the second terminal 400.
The second terminal 400 may be configured to request the security server 300 to obtain the encrypted timestamp and the license key, decrypt the encrypted timestamp and the license key through the first terminal 200, play the multimedia file using the decrypted license key, and skip to the corresponding play time point according to the timestamp to continue playing the multimedia file.
It should be noted that the first terminal 200 and the second terminal 400 include, but are not limited to, a mobile phone, a tablet computer, a personal computer, a wearable smart device, and the like.
In some embodiments, the security server 300 may also be used as a verification server, in which another license key of the multimedia file is stored, and when the first terminal 200 purchases the license key of the multimedia file from the digital content authority 100, the security server 300 may be further requested to obtain another license key of the multimedia file, and the multimedia file can be played after the multimedia file is decrypted by using the two license keys.
As shown in fig. 3, a method for playing a multimedia file by a first terminal in an embodiment of the present invention includes:
s301, playing a multimedia file;
in this embodiment, the first terminal may respond to the operation of the user, and when determining that the user wants to play the multimedia file, the first terminal may purchase a license key for obtaining the multimedia file from the digital content authorization center, where the first terminal reads the header data of the encrypted multimedia file, obtains a URL address of the digital content authorization center and a license key ID (i.e., KeyID) for decrypting the multimedia file, links to the digital content authorization center through the URL, and sends the license key ID to the digital content authorization center to purchase the corresponding license key.
The first terminal receives the license key from the digital content authority center and can decrypt and play the multimedia file through the license key.
S302, extracting a time stamp of the current playing time point of the multimedia file when a pause instruction is received;
in this embodiment, when the first terminal receives the pause instruction, it may be determined that the user does not want to watch the content temporarily. The first terminal may extract a time stamp of the multimedia file at the current play time point, and the extracted time stamp may include at least information of a file encoding and a play time point when the multimedia file is paused.
It should be understood that the pause command may be a play pause command input by a user click, or may be a play push-out command. The paused playing time point contained in the extracted timestamp may be the playing time point of the multimedia file when the user clicks and inputs the playing pause instruction, or the playing time point of the multimedia file when the user clicks and inputs the playing push-out instruction.
The file code of the multimedia file is the only file code corresponding to the multimedia file, which can be issued by the digital content authorization center for each multimedia file.
S303, encrypting the timestamp and the license key to obtain an encrypted file;
in this embodiment, to implement the function of continuously playing at the second terminal and ensure data security, the first terminal may encrypt the extracted timestamp and the license key, which may specifically be:
a pair of a Public Key and a Private Key is generated according to the license Key, and may be encrypted and decrypted by using an asymmetric encryption algorithm to obtain two keys, namely, a Public Key (Public Key) for encryption and a Private Key (Private Key) for decryption. The asymmetric encryption algorithm includes, but is not limited to, RSA, Elgamal, knapsack algorithm, Rabin, D-H (Diffie-Hellman), ECC (Elliptic Curve encryption algorithm), and other algorithms;
and encrypting the extracted time stamp and the license key by using the public key to obtain an encrypted file.
Since the public key is obtained by an asymmetric encryption algorithm, that is, after the encrypted file is encrypted by the public key, the encrypted file can be decrypted only by the private key paired with the public key. By the encryption mode, even if an attacker intercepts the encrypted file and obtains the public key of the first terminal, the attacker cannot crack the encrypted file in the transmission process, because only the private key of the first terminal can decrypt the encrypted file.
It should be noted that the first terminal may also encrypt its first identifier together with the timestamp and the license key in an encrypted file using a public key. The first identifier of the first terminal may be a unique identifier that the first terminal has, such as a Media Access Control (MAC) address.
Also, as shown in fig. 4, the first identifier of the first terminal and the timestamp may be encapsulated in the header portion of the encrypted file, and the license key may be encapsulated in the body portion of the encrypted file. It is to be understood that the header portion of the encrypted file may be read so that the security server and the second terminal may recognize the type, length, encryption algorithm, and the first identifier, time stamp, etc. therein of the encrypted file.
And the private key paired with encrypting the encrypted file may be stored locally at the first terminal in association with the file encoding of the corresponding multimedia file. Of course, the private key may also be stored in a local memory in an encrypted manner, and may also be provided with a read right to prevent theft or tampering.
S304, the encrypted file is sent to a security server, so that the second terminal requests the security server for the encrypted file to continue playing the multimedia file.
In this embodiment, the first terminal may send the encrypted file to the security server, and the security server may store and manage the received encrypted file, which is not limited herein.
If the user uses the second terminal to play the multimedia file, the second terminal can request the security server for the encrypted file corresponding to the multimedia file to be played, and the encrypted file is decrypted to obtain the timestamp and the permission key of the multimedia file, so that the multimedia file can be continuously played.
The second terminal decrypts the encrypted file by identifying a first identifier and a timestamp in the encrypted file, wherein the timestamp contains a file code of the multimedia file; and a request can be sent to the first terminal through the first identifier to request a private key corresponding to the file code, so that the second terminal can decrypt the encrypted file.
In the embodiment of the invention, the multimedia file which is decrypted by the license key is played through the first terminal, when a pause instruction is received, the time stamp of the current playing time point of the multimedia file is extracted, the time stamp and the license key are encrypted to obtain the corresponding encrypted file, and then the encrypted file is sent to the security server, so that the second terminal can request the encrypted file from the security server to continue playing the multimedia file. The time stamp of the multimedia file during pause is extracted through the first terminal, the time stamp and the permission key for decrypting the multimedia file are encrypted and sent to the security server, and the second terminal acquires the encrypted time stamp and the permission key from the security server, so that the function of continuously playing the multimedia file at the second terminal can be realized directly, the login does not need to be switched at different terminals, and the user experience is effectively improved.
The above describes in detail the playing method of the first terminal playing the multimedia file from the perspective of the first terminal, and the following introduces the method of the second terminal requesting to continue playing the multimedia file from the perspective of the second terminal.
As shown in fig. 5, the method for playing the multimedia file continuously played by the second terminal in the embodiment of the present invention includes:
s501, sending a query request for continuously playing the multimedia file to a security server;
in this embodiment, if the user wants to play the multimedia file, the second terminal may receive the play request for playing the multimedia file, and extract the file code of the multimedia file to be played.
The second terminal obtains a target identifier set of a target terminal set in a target range in the target range, for example, searching MAC addresses of all terminals in the same network; or sending a request to a network management device (such as a router) of the network where the second terminal is located, and requesting the network management device to feed back the MAC addresses of all terminals connected under the network to the second terminal; or the second terminal broadcasts a search signal, receives information returned by other terminals in the search signal, and acquires the MAC address and the like of other terminals from the information.
It is understood that after the first terminal (e.g., a mobile phone) has operated to purchase the multimedia file for playing, the user usually chooses to go back to home for watching due to time limitation or for better sense, and then the second terminal (e.g., a set-top box) in the home can take over the first terminal (e.g., the mobile phone) to play the purchased multimedia file on the large-screen television. In a home of a user, a first terminal (a mobile phone) and a second terminal (a set top box) are often located in the same Wi-Fi network, so that a target identifier set of a target terminal set searched and acquired by the second terminal (the set top box) contains a first identifier (a MAC address) of the first terminal (the mobile phone).
The second terminal may combine the target identifier set including the first identifier with the file code of the multimedia file to be played to generate an inquiry request, so as to send the inquiry request to the security server for inquiring and obtaining the encrypted file corresponding to the inquiry request.
S502, receiving an encrypted file returned by the security server according to the query request;
in this embodiment, after sending the query request to the security server, the second terminal may receive an encrypted file returned from the security server, where the encrypted file corresponds to a multimedia file to be played.
It can be understood that, after receiving the query request sent by the second terminal, the security server may compare the encrypted file to be matched with the query request according to the first identifier and the file code in the query request, where a header portion of the encrypted file also includes the first identifier and the file code.
S503, decrypting the encrypted file to obtain a license key and a timestamp;
in this embodiment, the second terminal may obtain the first terminal associated with the encrypted file from the header portion of the encrypted file returned by the security server, where the first identifier in the header portion of the encrypted file is the unique identifier of the first terminal.
The second terminal and the first terminal can construct an encrypted data transmission channel, no other equipment relay exists in the encrypted data transmission channel, or only one router for constructing the same Wi-Fi network relays, and the data transmission channel can be used for realizing the safe data transmission between the second terminal and the first terminal.
Through the data transmission channel, the second terminal initiates a continuous playing request to the first terminal, and sends the file code read from the head part of the encrypted file packet to the first terminal, so that the first terminal searches the private key in the local storage according to the file code, finds the corresponding associated private key and feeds back the private key to the second terminal.
The second terminal can then decrypt the encrypted file obtained from the secure server to obtain the license key and timestamp of the multimedia file to be played.
It should be noted that, the second terminal and the first terminal may independently complete the encrypted data transmission channel in the background according to the program, and the second terminal initiates a resume request to the first terminal, which may pop up a window on a display screen of the first terminal, and only after the user confirms that the first terminal sends the private key to the second terminal. It is understood that the user confirmation may be performed by clicking the first terminal, inputting a fingerprint or a password, or performing face recognition. It can also be understood that the private key is stored locally by the first terminal through fingerprint, password or face password encryption.
S504, decrypting the multimedia file according to the license key, and skipping to the corresponding playing time point according to the timestamp to continue playing the decrypted multimedia file.
In this embodiment, the second terminal may decrypt the multimedia file to be played by using the private key, and may jump to the paused playing time point according to the timestamp to continue playing, so as to implement continuous playing between different terminals.
It should be noted that, in the embodiment of the present invention, if the multimedia file requested to be played by the second terminal does not find the corresponding encrypted file in the security server, the second terminal may link to the digital content authorization center to request to purchase the multimedia file.
In the embodiment of the invention, when a second terminal requests to continue playing the encrypted multimedia file, the second terminal sends a query request for continuing playing the multimedia file to a security server, correspondingly receives the encrypted file searched and returned by the security server according to the query request, decrypts the encrypted file by the second terminal to obtain the permission key and the timestamp, decrypts the multimedia file to be played according to the permission key, and jumps to the corresponding playing time point according to the timestamp to continue playing the decrypted multimedia file. The second terminal can inquire the corresponding encrypted file from the security server when playing the encrypted multimedia file, so that the second terminal can decrypt and play the multimedia file according to the encrypted file, thereby realizing continuous playing at the second terminal, reducing the operation of logging in an account by a user and improving the security.
Referring to fig. 6a, a terminal device 600 of a first terminal according to an embodiment of the present invention includes:
the extracting module 610 is configured to extract a timestamp of a current playing time point of the multimedia file when a pause instruction is received;
the encryption module 620 is configured to encrypt the timestamp and the license key to obtain an encrypted file;
a sending module 630, configured to send the encrypted file to a security server, so that the second terminal requests the security server to continue playing the multimedia file with the encrypted file.
Further, as shown in fig. 6b, the terminal device 600 may further include:
a generating module 640, configured to generate a pair of a public key and a private key according to the license key, where the public key is used for encryption, the private key is used for decryption, and the private key is stored locally;
further, the encryption module 620 may be specifically configured to:
and encrypting the time stamp and the license key through the public key to obtain the encrypted file.
Further, the encryption module 620 may be specifically configured to:
encrypting the timestamp, the license key and the first identifier of the first terminal through the public key to obtain the encrypted file;
wherein the encrypted file comprises a packet header and a packet body, the first identifier and the timestamp are encapsulated in the packet header, and the license key is encapsulated in the packet body;
the time stamp includes a file encoding of the multimedia file.
It should be noted that the terminal device 600 can execute the playing method for playing the multimedia file by the first terminal according to the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the executing method. For details of the technology that are not described in detail in the embodiment of the terminal device 600, reference may be made to the playing method for the first terminal to play the multimedia file according to the embodiment of the present invention.
Referring to fig. 7a, a terminal device 700 of a second terminal according to an embodiment of the present invention includes:
a query module 710, configured to send a query request for resuming playing the multimedia file to a security server;
a receiving module 720, configured to receive an encrypted file returned by the security server according to the query request;
a decryption module 730, configured to decrypt the encrypted file to obtain a license key and a timestamp;
and the resuming module 740 is configured to decrypt the multimedia file according to the license key, and resume playing the decrypted multimedia file by jumping to a corresponding playing time point according to the timestamp.
Further, as shown in fig. 7b, the terminal device 700 further includes:
a response module 750, configured to receive a play request for playing the multimedia file;
an obtaining module 760, configured to obtain a file code of the multimedia file according to the play request, and obtain a target identifier set of a target terminal set in a target range, where the target identifier set includes a first identifier of a first terminal;
a generating module 770, configured to generate the query request according to the file encoding and the target identifier set.
Further, the encrypted file includes a packet header and a packet body, the packet header encapsulates the first identifier and the timestamp, the packet body encapsulates the license key, and the timestamp includes the file code;
the receiving module 720 is specifically configured to:
and receiving an encrypted file which is determined by the security server according to the query request and is returned, wherein the file code and the first identifier are encapsulated in the packet header.
Further, the encrypted file is encrypted by a public key generated by the first terminal, wherein the public key is paired with a private key, the public key and the private key are generated by the first terminal according to the license key, and the private key is stored locally in the first terminal in association with the file code;
as shown in fig. 7c, the decryption module 730 includes:
an analyzing unit 731, configured to analyze a packet header of the encrypted file and determine the first identifier;
a sending unit 732, configured to initiate a resume request to the first terminal according to the first identifier, where the resume request includes the file code;
a receiving unit 733, configured to receive the private key determined and returned by the first terminal according to the file code;
the decryption unit 734 is configured to decrypt the encrypted file according to the private key to obtain the license key and the timestamp.
It should be noted that the terminal device 700 can execute the playing method for continuing playing the multimedia file by the second terminal according to the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the executing method. For details of the technology that is not described in detail in the embodiment of the terminal device 700, reference may be made to the playing method for continuing playing the multimedia file by the second terminal provided in the embodiment of the present invention.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides a terminal device, which is suitable for a first terminal and a second terminal. As shown in fig. 8, the terminal apparatus 800 includes: one or more processors 81 and memory 82. In fig. 8, one processor 81 is taken as an example.
The processor 81 and the memory 82 may be connected by a bus or other means, and fig. 8 illustrates the connection by a bus as an example.
The memory 82, which is a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the multimedia file playing method in any of the embodiments of the present invention. The processor 81 executes various functional applications and data processing of the terminal device based on the multimedia file playing method by running the nonvolatile software program, instructions and modules stored in the memory 82, that is, the functions of the multimedia file playing method provided by the above method embodiment and the various modules of the above device embodiment are realized.
The memory 82 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 82 may optionally include memory located remotely from the processor 81, which may be connected to the processor 81 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 82 and, when executed by the one or more processors 81, perform the multimedia file playing method of any of the method embodiments described above.
Embodiments of the present invention further provide a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, which are executed by one or more processors, for example, one processor 81 in fig. 8, and enable the one or more processors to execute the multimedia file playing method in any of the method embodiments.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a terminal device, the terminal device is caused to execute any one of the multimedia file playing methods.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A multimedia file playing method is suitable for a first terminal to play a multimedia file decrypted by an authorization key, and is characterized by comprising the following steps:
when a pause instruction is received, extracting a timestamp of the current playing time point of the multimedia file;
generating a pair of a public key and a private key according to the license key, wherein the public key is used for encryption, the private key is used for decryption, and the private key is stored locally;
encrypting the timestamp, the license key and the first identifier of the first terminal through the public key to obtain an encrypted file;
sending the encrypted file to a security server, so that a second terminal requests the encrypted file to continue playing the multimedia file to the security server, the second terminal decrypts the encrypted file to obtain a first identifier of a first terminal, a continuous playing request is sent to the first terminal according to the first identifier, the continuous playing request comprises a file code, a private key determined and returned by the first terminal according to the file code is received, the encrypted file is decrypted according to the private key to obtain a permission key and a timestamp, the multimedia file is decrypted according to the permission key, and the decrypted multimedia file is played continuously according to the timestamp jumping to a corresponding playing time point.
2. The method for playing multimedia files according to claim 1, wherein the encrypted file comprises a packet header and a packet body, the first identifier and the timestamp are encapsulated in the packet header, and the license key is encapsulated in the packet body;
the time stamp includes a file encoding of the multimedia file.
3. A multimedia file playing method is suitable for a second terminal to request to continue playing encrypted multimedia files, and is characterized by comprising the following steps:
sending a query request for resuming playing of the multimedia file to a security server;
receiving an encrypted file returned by the security server according to the query request, wherein the encrypted file is encrypted by a public key generated by a first terminal, the public key is paired with a private key, the public key and the private key are generated by the first terminal according to a license key, and the private key associated file code is stored locally in the first terminal;
decrypting the encrypted file to obtain a first identifier of the first terminal;
initiating a continuous playing request to the first terminal according to the first identifier, wherein the continuous playing request comprises the file code;
receiving the private key which is determined and returned by the first terminal according to the file code;
decrypting the encrypted file according to the private key to obtain the license key and the timestamp;
and decrypting the multimedia file according to the license key, and skipping to a corresponding playing time point according to the timestamp to continue playing the decrypted multimedia file.
4. The method of claim 3, wherein before sending the query request for resuming playing the multimedia file to the secure server, the method comprises:
receiving a playing request for playing the multimedia file;
acquiring a file code of the multimedia file according to the playing request, and acquiring a target identifier set of a target terminal set in a target range, wherein the target identifier set comprises the first identifier;
and generating the query request according to the file code and the target identification set.
5. The method for playing multimedia files according to claim 4, wherein the encrypted file comprises a packet header and a packet body, the packet header encapsulates the first identifier and the timestamp, the packet body encapsulates the license key, and the timestamp comprises the file code;
the receiving the encrypted file returned by the security server according to the query request comprises:
and receiving an encrypted file which is determined by the security server according to the query request and is returned, wherein the file code and the first identifier are encapsulated in the packet header.
6. The multimedia file playing method according to claim 5,
the decrypting the encrypted file to obtain the license key and the timestamp includes:
and analyzing the packet header of the encrypted file to determine the first identifier.
7. A terminal device adapted to play a multimedia file decrypted by a license key, comprising:
the extracting module is used for extracting the time stamp of the current playing time point of the multimedia file when a pause instruction is received;
the encryption module is used for generating a pair of public key and private key according to the license key, wherein the public key is used for encryption, the private key is used for decryption, and the private key is stored locally;
encrypting the timestamp, the license key and the first identifier of the first terminal through the public key to obtain an encrypted file;
the sending module is used for sending the encrypted file to a security server so that a second terminal requests the security server to continue playing the multimedia file with the encrypted file, the second terminal decrypts the encrypted file to obtain a first identifier of a first terminal, a continuous playing request is sent to the first terminal according to the first identifier, the continuous playing request comprises a file code, the private key which is determined and returned by the first terminal according to the file code is received, the encrypted file is decrypted according to the private key to obtain the permission key and the timestamp, the multimedia file is decrypted according to the permission key, and the multimedia file which is continuously decrypted is skipped to a corresponding playing time point according to the timestamp.
8. A terminal device adapted to request playback of an encrypted multimedia file, comprising:
the query module is used for sending a query request for continuously playing the multimedia file to a security server;
a receiving module, configured to receive an encrypted file returned by the security server according to the query request, where the encrypted file is encrypted by a public key generated by a first terminal, the public key is paired with a private key, the public key and the private key are generated by the first terminal according to a license key, and a private key-associated file code is stored locally in the first terminal;
the decryption module is used for decrypting the encrypted file to obtain a first identifier of the first terminal; initiating a continuous playing request to the first terminal according to the first identifier, wherein the continuous playing request comprises the file code; receiving the private key which is determined and returned by the first terminal according to the file code; decrypting the encrypted file according to the private key to obtain the license key and the timestamp;
and the continuous playing module is used for decrypting the multimedia file according to the license key and skipping to the corresponding playing time point according to the timestamp to continuously play the decrypted multimedia file.
9. A terminal device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a multimedia file playback method as claimed in any one of claims 3 to 6.
CN201910605423.9A 2019-07-05 2019-07-05 Multimedia file playing method, terminal device and terminal equipment Active CN110392288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910605423.9A CN110392288B (en) 2019-07-05 2019-07-05 Multimedia file playing method, terminal device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910605423.9A CN110392288B (en) 2019-07-05 2019-07-05 Multimedia file playing method, terminal device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110392288A CN110392288A (en) 2019-10-29
CN110392288B true CN110392288B (en) 2022-01-04

Family

ID=68286354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910605423.9A Active CN110392288B (en) 2019-07-05 2019-07-05 Multimedia file playing method, terminal device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110392288B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767529A (en) * 2020-05-18 2020-10-13 广州视源电子科技股份有限公司 File encryption method, file decryption method, storage medium and electronic device
CN111698537B (en) * 2020-06-12 2022-05-20 阿波罗智联(北京)科技有限公司 Multimedia data processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639985A (en) * 2013-11-14 2015-05-20 深圳市快播科技有限公司 Multimedia playing control method and system
CN105554557A (en) * 2015-07-24 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Method for sharing of multimedia content, and user terminal
CN109819323A (en) * 2019-01-24 2019-05-28 中国电影科学技术研究所 A kind of video content access method in mixing cloud system
CN109885988A (en) * 2019-02-18 2019-06-14 四川迪佳通电子有限公司 Method for broadcasting multimedia file, multimedia equipment based on credible performing environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639985A (en) * 2013-11-14 2015-05-20 深圳市快播科技有限公司 Multimedia playing control method and system
CN105554557A (en) * 2015-07-24 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Method for sharing of multimedia content, and user terminal
CN109819323A (en) * 2019-01-24 2019-05-28 中国电影科学技术研究所 A kind of video content access method in mixing cloud system
CN109885988A (en) * 2019-02-18 2019-06-14 四川迪佳通电子有限公司 Method for broadcasting multimedia file, multimedia equipment based on credible performing environment

Also Published As

Publication number Publication date
CN110392288A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
US11055429B2 (en) Key providing method, video playing method, server and client
US9026782B2 (en) Token-based entitlement verification for streaming media decryption
KR101172093B1 (en) Digital audio/video data processing unit and method for controlling access to said data
CN107707504B (en) Streaming media playing method and system, server and client
CN101977190B (en) Digital content encryption transmission method and server side
JP5626816B2 (en) Method and apparatus for partial encryption of digital content
US20080216177A1 (en) Contents Distribution System
CA2977970C (en) Pc secure video path
CN101350918B (en) Method for protecting copyright of video content
US20100208890A1 (en) Content distribution apparatus, content use apparatus, content distribution system, content distribution method and program
WO2018064955A1 (en) Method and system for recording and playing back program
WO2017054620A1 (en) Dvb-based multi-terminal program playing method and system, set top box and mobile terminal
CN103237010B (en) The server end of digital content is cryptographically provided
EP3231182A1 (en) Secure media player
US20110113443A1 (en) IP TV With DRM
CN110392288B (en) Multimedia file playing method, terminal device and terminal equipment
JP4791425B2 (en) Method and system for performing DRM function and additional function using DRM (Digital Rights Management) device
Wang et al. CS-DRM: a cloud-based SIM DRM scheme for mobile internet
CN103237011B (en) Digital content encryption transmission method and server end
WO2018086566A1 (en) Pvr protection method and system
CN110290097B (en) Data processing method and device, storage medium and electronic device
CN111602380A (en) Method and system for identifying a user terminal for receiving streaming protected multimedia content
KR100849639B1 (en) Method for encoding and decoding moving picture file and recording medium having the method embodied program
CN103402129B (en) The method of a kind of condition reception, equipment and system
WO2006036654A2 (en) Method and system for providing secure codecs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant