Multimedia file playback processing methods, devices, electronic devices and storage media

By loading encrypted multimedia files and obtaining authorization files in parallel, the problem of long playback times for multimedia files is solved, achieving more efficient playback processing.

CN116137663BActive Publication Date: 2025-10-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111367309.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2025-10-31
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

The existing multimedia file playback suffers from long waiting times, resulting in low playback processing efficiency.

Method used

By loading encrypted multimedia files and obtaining authorization files in parallel, the waiting time for the initial buffer data loading is reduced, and the encrypted multimedia files are decrypted using the key in the authorization file.

Benefits of technology

While protecting the legitimate interests of copyright holders, it reduces unnecessary waiting time during multimedia file playback and improves playback processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116137663B_ABST
    Figure CN116137663B_ABST
Patent Text Reader

Abstract

This application relates to a multimedia file playback processing method, apparatus, electronic device, and storage medium. The method relates to cloud computing and includes: in response to a playback operation, sending a playback request for a multimedia file to a multimedia server; receiving the playback address of the multimedia file from the multimedia server in response to the playback request, and an authorization request tag issued by a digital rights management (DRM) license server. The method loads an encrypted multimedia file based on the playback address, and simultaneously requests an authorization file from the DRM license server based on the authorization request tag; parses the authorization file to obtain a key; decrypts the encrypted multimedia file using the key; and then plays the decrypted multimedia file. This method can obtain the authorization file while loading the encrypted multimedia file, thus protecting the legitimate interests of the copyright holder and avoiding unnecessary waiting time during playback, further improving the efficiency of multimedia file playback processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a multimedia file playback processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of data processing technology and the widespread use of various electronic devices, a large number of multimedia files have emerged as information transmission media. More and more people access multimedia files through electronic devices. In order to protect the legitimate interests of the copyright owners of multimedia files, the requirements for copyright management of various multimedia files are increasing day by day.

[0003] Traditionally, multimedia files are pre-encrypted before being sent to users requesting playback, preventing unauthorized access. If the requesting user has the necessary playback permissions, the encrypted file can be decrypted and played using the current player, thus enabling copyright management for various multimedia files. However, current methods still suffer from long playback times, resulting in relatively low playback efficiency. Summary of the Invention

[0004] Therefore, it is necessary to provide a multimedia file playback processing method, apparatus, electronic device, and storage medium that can reduce the waiting time for multimedia file playback and improve playback processing efficiency in response to the above-mentioned technical problems.

[0005] A multimedia file playback processing method, the method comprising:

[0006] In response to a playback operation, a playback request for the multimedia file is sent to the multimedia server;

[0007] The system receives the playback address of the multimedia file as a response from the multimedia server to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file.

[0008] The encrypted multimedia file is loaded according to the playback address, and an authorization file is requested from the digital rights management license server according to the authorization request tag.

[0009] The key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file and play it.

[0010] A multimedia file playback processing method, the method comprising:

[0011] Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request;

[0012] When it is detected that the current device corresponding to the playback request has digital rights management capabilities, the encrypted multimedia file information is queried based on the multimedia file number;

[0013] When the encrypted multimedia file information is successfully retrieved, the playback address of the corresponding multimedia file is obtained, and the authorization request tag issued by the digital rights management license server is obtained.

[0014] The playback address of the multimedia file and the authorization request tag are fed back to the player; wherein, the playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain an authorization file according to the authorization request tag, so as to parse the authorization file to obtain a key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0015] A multimedia file playback processing device, the device comprising:

[0016] The playback request sending module is used to send a playback request for a multimedia file to the multimedia server in response to a playback operation.

[0017] The receiving module is used to receive the playback address of the multimedia file fed back by the multimedia server in response to the playback request, and the authorization request tag issued by the digital rights management license server; wherein, the multimedia file is a digital rights encrypted file;

[0018] The file loading module is used to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain the authorization file according to the authorization request tag;

[0019] The multimedia file playback module is used to parse the authorized file to obtain a key, decrypt the encrypted multimedia file according to the key, and play the decrypted multimedia file.

[0020] Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request;

[0021] A multimedia file playback processing device, the device comprising:

[0022] The playback request response module is used to receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request.

[0023] The information query module is used to query encrypted multimedia file information based on the multimedia file number when it is detected that the current device corresponding to the playback request has digital rights management capability.

[0024] The acquisition module is used to obtain the playback address of the corresponding multimedia file and the authorization request tag issued by the digital rights management license server when the encrypted multimedia file information is successfully retrieved.

[0025] The feedback module is used to send the playback address of the multimedia file and the authorization request tag back to the player; wherein, the playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain an authorization file according to the authorization request tag, so as to parse the authorization file to obtain a key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0026] An electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0027] In response to a playback operation, a playback request for the multimedia file is sent to the multimedia server;

[0028] The system receives the playback address of the multimedia file as a response from the multimedia server to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file.

[0029] The encrypted multimedia file is loaded according to the playback address, and an authorization file is requested from the digital rights management license server according to the authorization request tag.

[0030] The key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file and play it.

[0031] An electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0032] Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request;

[0033] When it is detected that the current device corresponding to the playback request has digital rights management capabilities, the encrypted multimedia file information is queried based on the multimedia file number;

[0034] When the encrypted multimedia file information is successfully retrieved, the playback address of the corresponding multimedia file is obtained, and the authorization request tag issued by the digital rights management license server is obtained.

[0035] The playback address of the multimedia file and the authorization request tag are fed back to the player; wherein, the playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain an authorization file according to the authorization request tag, so as to parse the authorization file to obtain a key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0036] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0037] In response to a playback operation, a playback request for the multimedia file is sent to the multimedia server;

[0038] The system receives the playback address of the multimedia file as a response from the multimedia server to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file.

[0039] The encrypted multimedia file is loaded according to the playback address, and an authorization file is requested from the digital rights management license server according to the authorization request tag.

[0040] The key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file and play it.

[0041] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0042] Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request;

[0043] When it is detected that the current device corresponding to the playback request has digital rights management capabilities, the encrypted multimedia file information is queried based on the multimedia file number;

[0044] When the encrypted multimedia file information is successfully retrieved, the playback address of the corresponding multimedia file is obtained, and the authorization request tag issued by the digital rights management license server is obtained.

[0045] The playback address of the multimedia file and the authorization request tag are fed back to the player; wherein, the playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain an authorization file according to the authorization request tag, so as to parse the authorization file to obtain a key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0046] A computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0047] In response to a playback operation, a playback request for the multimedia file is sent to the multimedia server;

[0048] The system receives the playback address of the multimedia file as a response from the multimedia server to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file.

[0049] The encrypted multimedia file is loaded according to the playback address, and an authorization file is requested from the digital rights management license server according to the authorization request tag.

[0050] The key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file and play it.

[0051] A computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0052] Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request;

[0053] When it is detected that the current device corresponding to the playback request has digital rights management capabilities, the encrypted multimedia file information is queried based on the multimedia file number;

[0054] When the encrypted multimedia file information is successfully retrieved, the playback address of the corresponding multimedia file is obtained, and the authorization request tag issued by the digital rights management license server is obtained.

[0055] The playback address of the multimedia file and the authorization request tag are fed back to the player; wherein, the playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain an authorization file according to the authorization request tag, so as to parse the authorization file to obtain a key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0056] In the aforementioned multimedia file playback processing method, apparatus, electronic device, and storage medium, in response to a playback operation, a playback request for a multimedia file is sent to a multimedia server. This involves receiving the playback address of the multimedia file from the multimedia server in response to the playback request, and an authorization request tag issued by a digital rights management (DRM) license server. The encrypted multimedia file is then loaded based on the playback address, and in parallel, an authorization file is requested from the DRM license server based on the authorization request tag. This differs from the traditional method of first acquiring and loading the encrypted multimedia file, and then acquiring the authorization file to decrypt the loaded encrypted multimedia file. The encrypted multimedia file can be acquired in advance for loading, reducing the waiting time for the initial buffering data loading during playback. Furthermore, the key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted using the key, resulting in the decrypted multimedia file, which is then played. By reducing the waiting time for the initial buffering data loading of the encrypted multimedia file, the legitimate interests of the copyright holder are protected, while unnecessary waiting time during multimedia file playback is avoided, further improving the efficiency of multimedia file playback processing. Attached Figure Description

[0057] Figure 1 This is an application environment diagram of a multimedia file playback processing method in one embodiment;

[0058] Figure 2 This is a flowchart illustrating a multimedia file playback processing method in one embodiment;

[0059] Figure 3 This is a comparative schematic diagram of the execution flow of a multimedia file playback processing method in one embodiment;

[0060] Figure 4 This is a flowchart illustrating a multimedia file playback processing method in another embodiment;

[0061] Figure 5 This is a timing diagram of a multimedia file playback processing method in one embodiment;

[0062] Figure 6 This is a structural block diagram of a multimedia file playback processing device in one embodiment;

[0063] Figure 7 This is a structural block diagram of a multimedia file playback processing device in another embodiment;

[0064] Figure 8 This is a schematic diagram of the architecture of a multimedia file playback processing system in one embodiment.

[0065] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0066] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0067] The multimedia file playback processing method provided in this application relates to cloud computing. Cloud computing is a computing model that distributes computing tasks across a resource pool composed of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, the resources in the "cloud" are infinitely scalable, readily available, on-demand, expandable, and pay-as-you-go. As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed within this pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices. Logically, a PaaS (Platform as a Service) layer can be deployed on top of the IaaS layer, and a SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. Alternatively, SaaS can be directly deployed on top of IaaS. PaaS is a platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally, SaaS and PaaS are upper layers compared to IaaS.

[0068] The multimedia file playback processing method provided in this application can be applied to, for example... Figure 1In the application environment shown, player 102 communicates with multimedia server 104 and digital rights management (DRM) license server 106 via a network. A data storage system can store the data that multimedia server 104 needs to process; this system can be integrated into multimedia server 104 or located in the cloud or on another network server. Player 102, in response to a user-triggered playback operation, sends a playback request for a multimedia file to multimedia server 104 and receives the playback address of the multimedia file from multimedia server 104 in response to the playback request, as well as an authorization request tag issued by DRM license server 106. The multimedia file is a digital rights encrypted file. Player 102 then loads the encrypted multimedia file according to the playback address, and simultaneously requests an authorization file from DRM license server 106 based on the authorization request tag. It further parses the authorization file to obtain a key, decrypts the encrypted multimedia file using the key, and plays the decrypted multimedia file. Player 102 can be a playback device installed on a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, in-vehicle terminal, or smart TV, but is not limited to these. The multimedia server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The digital rights management (DRM) license server 106 is used to send authorization request tags and authorization files back to the player 102. The player 102, multimedia server 104, and DRM license server 106 can be directly or indirectly connected via wired or wireless communication; this application does not impose any restrictions on this connection.

[0069] In one embodiment, such as Figure 2 As shown, a multimedia file playback processing method is provided, which is applied to... Figure 1 Taking the media player in the image as an example, the steps are as follows:

[0070] Step S202: In response to the playback operation, a playback request for the multimedia file is sent to the multimedia server.

[0071] Specifically, the player detects playback operations triggered by the user based on electronic devices, such as smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, in-vehicle terminals, or smart TVs, and responds to the detected playback operations by sending a playback request for the multimedia file to the multimedia server with which a communication connection has been established.

[0072] Furthermore, the playback request instructs the multimedia server to respond to the received playback request, obtain the multimedia file number carried in the playback request, and, upon detecting that the current device corresponding to the playback request possesses digital rights management (DRM) capabilities, query the encrypted multimedia file information based on the multimedia file number. When the multimedia server successfully retrieves the encrypted multimedia file information, it obtains the playback address of the corresponding multimedia file and the authorization request tag issued by the DRM license server. Specifically, when it is determined that the current device possesses DRM capabilities, and when both encrypted and unencrypted multimedia files are detected in the database, the encrypted multimedia file in the DRM encrypted format is prioritized for scheduling.

[0073] The multimedia server sends the playback address of the multimedia file it obtained, as well as the authorization request tag obtained from the digital rights management license server, back to the player corresponding to the playback request.

[0074] In one embodiment, the multimedia file number carried in the playback request is obtained in the following way:

[0075] The system determines the current category page visited by the user, such as the specific category page for short videos, long videos, movies, TV series, and variety shows. It then retrieves the pre-stored sorting of multimedia files within the corresponding category from the backend. Based on this sorting, it sequentially retrieves and displays the pre-stored backend data for the corresponding category page. The requested backend data includes the multimedia VID (video ID). Specifically, once the user selects a video, the system directly retrieves the video VID and uses it to query for the existence of a digital rights management (DRM) format multimedia file.

[0076] Step S204: Receive the playback address of the multimedia file returned by the multimedia server in response to the playback request, and the authorization request tag issued by the digital rights management license server.

[0077] Specifically, after the player sends a playback request to the multimedia server, the multimedia server responds to the received playback request, obtains the multimedia file number carried in the playback request, and checks whether the current device initiating the playback request has digital rights management (DRM) capabilities. The DRM capability attribute can be understood as a property used to determine whether the current device can implement DRM, that is, whether the current device can play multimedia files in DRM-encrypted formats, such as audio files and video files.

[0078] Digital Rights Management (DRM) works by encrypting multimedia files in the background and storing the encryption key in a database. The encrypted multimedia files are then distributed to the player via the HLS (High-Speed ​​Streaming Media Server) protocol. If the player detects the presence of the #EXT-X-KEY tag (a license request tag) in the multimedia file, it determines that the file is encrypted using DRM.

[0079] Furthermore, when the multimedia server determines that the current device possesses digital rights management (DRM) capabilities, it queries the multimedia file information based on the obtained multimedia file number to determine whether the database stores a multimedia file in DRM-encrypted format corresponding to that multimedia file number. If the corresponding multimedia file information is successfully found, the server obtains the playback address of the corresponding multimedia file and the authorization request tag issued by the DRM license server, and then sends the playback address and authorization request tag back to the player.

[0080] In one embodiment, when the multimedia server detects that the current device does not have digital rights management capabilities, it obtains and plays the unencrypted multimedia file corresponding to the playback request, or generates and displays a playback error message corresponding to the playback request.

[0081] Step S206: Load the encrypted multimedia file according to the playback address, and in parallel request the digital rights management license server to obtain the license file according to the license request tag.

[0082] Specifically, the player triggers a multimedia file loading request based on the playback address and calls the first thread corresponding to the multimedia file loading request to load the acquired encrypted multimedia file. Similarly, the player triggers an authorization file retrieval request based on the authorization request tag and calls the second thread corresponding to the authorization file retrieval request to request the authorization file from the digital rights management license server.

[0083] Furthermore, the first and second threads process in parallel to obtain the license file while loading the encrypted multimedia file. This achieves advance acquisition of the license file, instead of waiting for the encrypted multimedia file to be loaded and parsed, then parsing the license request tag from the encrypted multimedia file, and finally requesting the license file from the digital rights management license server based on the license request tag, so as to decrypt the encrypted multimedia file according to the key carried in the license file.

[0084] Understandably, by processing the first and second threads in parallel, the waiting time for encrypted multimedia files during playback can be reduced. That is, since there is no need to wait for the encrypted multimedia file to be loaded and parsed before obtaining the corresponding authorization file and key, the initial buffer data loading time is reduced, thereby reducing the time that users need to wait during the playback of encrypted multimedia files. This allows for timely video playback and provides users with a better experience.

[0085] The Digital Rights Management (DRM) License Server is used to send the license file corresponding to the license request tag back to the player.

[0086] Step S208: Parse the authorization file to obtain the key, decrypt the encrypted multimedia file according to the key, and play the decrypted multimedia file.

[0087] Specifically, when the initial buffer data for the encrypted multimedia file is loaded, the player parses the license file to obtain the key it carries, and decrypts the encrypted multimedia file using the key to obtain the decrypted multimedia file. Then, it generates a playback notification based on the decrypted multimedia file and decodes and plays the multimedia file according to the playback notification.

[0088] Once the player has completed the initial buffer data loading and the parsing of the authorization file, and has successfully obtained the key, it uses the key to parse the encrypted multimedia file. After obtaining the decrypted multimedia file, it indicates that the player has completed its preparation work and can truly enter the multimedia decoding and playback stage. Then, after obtaining the decrypted multimedia file, it needs to generate a corresponding playback notification, and then decode and play the multimedia file according to the playback notification.

[0089] In one embodiment, such as Figure 3 As shown, a comparative diagram illustrating the execution flow of a multimedia file playback processing method is provided. Figure 3As shown in Figure (a), the existing playback process for digital rights management (DRM) encrypted multimedia files is executed serially. After the player application layer creates a player instance, it initializes the player instance using a DRM-formatted playback URL (i.e., a playback Uniform Resource Locator). Then, it calls the player's prepareAsync interface (i.e., the pre-playback interface) to begin playback. The player first requests and parses the master.m3u8 file to obtain the download URLs (i.e., download Uniform Resource Locators) for the audio and video m3u8 files. It then requests and parses the audio or video m3u8 files to obtain the download address for the mp4 media file. After parsing the audio and video mp4 files to obtain a sufficient number of audio and video frames for playback, the player checks if the audio and video m3u8 files contain the #EXT-X-KEY tag (i.e., a license request tag). If the license request tag exists, it indicates that the current audio and video file is a DRM encrypted file. The player then opens a DRM service session and requests authorization from the DRM License server for this audio and video file playback. Upon successful authorization, the DRM License server returns a License (i.e., an authorization file). Finally, the player parses the authorization file to obtain the key for the encrypted audio and video file. The encrypted audio and video files are then decrypted using a key, and the decrypted audio and video files are played.

[0090] The execution flow of the multimedia file playback processing method in this application is parallel execution, as described above. Figure 3 As shown in Figure (b), after the player application layer creates a player instance, it initializes the player instance using the DRM-formatted playback URL and the #EXT-X-KEY of the DRM video as parameters. The player uses multi-threading concurrency, executing two threads simultaneously. The first thread loads the encrypted multimedia file (i.e., encrypted audio and video file), and the second thread handles the digital rights management service session flow, i.e., requesting and obtaining the license file from the digital rights management license server. Once the encrypted multimedia file is successfully loaded and the key is parsed from the license file, the key is used to decrypt the encrypted multimedia file, resulting in the decrypted multimedia file. The player can then truly begin decoding and playing the multimedia file.

[0091] Understandably, by Figure 3Comparing Figures (a) and (b), it can be seen that the parallel execution process corresponding to Figure (b), compared to the serial execution process corresponding to Figure (a), eliminates the need to wait for the encrypted multimedia file to load and be parsed before obtaining the corresponding authorization file and key. This means that, for ordinary multimedia file playback, even with the added decryption process for encrypted multimedia files, playback can proceed without waiting for the decryption operation to complete. Parallel processing reduces the initial buffering time of the multimedia file on the player, thereby reducing the waiting time for the user during playback of encrypted multimedia files. This allows for timely video playback, providing a better user experience.

[0092] The aforementioned multimedia file playback processing method, in response to a playback operation, sends a playback request for the multimedia file to a multimedia server. It receives the playback address of the multimedia file from the multimedia server in response to the playback request, and an authorization request tag issued by a digital rights management (DRM) license server. Then, based on the playback address, it loads the encrypted multimedia file and simultaneously requests the license file from the DRM license server based on the authorization request tag. This differs from the traditional method of first obtaining and loading the encrypted multimedia file, and then obtaining the license file to decrypt the already loaded encrypted multimedia file. The encrypted multimedia file can be obtained in advance for loading, reducing the waiting time for the initial buffering data loading during playback. Furthermore, the key is obtained by parsing the license file, and the encrypted multimedia file is decrypted using the key, resulting in the decrypted multimedia file, which is then played. By reducing the waiting time for the initial buffering data loading of the encrypted multimedia file, the method can protect the legitimate interests of the copyright holder while avoiding unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0093] In one embodiment, the steps of loading an encrypted multimedia file based on a playback address and simultaneously requesting an authorization file from a digital rights management license server based on an authorization request tag specifically include:

[0094] The multimedia file loading request is triggered based on the playback address, and the first thread corresponding to the multimedia file loading request is called to load the obtained encrypted multimedia file.

[0095] The authorization request tag triggers an authorization file retrieval request, which in turn calls the second thread corresponding to the authorization file retrieval request to request the authorization file from the digital rights management license server; the first thread and the second thread process in parallel.

[0096] Specifically, a multimedia file loading request is triggered based on the playback address, the first thread corresponding to the multimedia file retrieval request is called and executed, the encrypted multimedia file is retrieved from the playback address, and the initial buffer data is loaded based on the encrypted multimedia file. In parallel, an authorization file retrieval request is triggered based on the authorization request tag, the second thread corresponding to the authorization file retrieval request is called and executed, the authorization result is retrieved from the digital rights management license server, and when the authorization result is determined to be authorized, the authorization file corresponding to the multimedia file is requested from the digital rights management license server.

[0097] Furthermore, since the license file contains a key corresponding to the multimedia file, when the initial buffer data loading is detected to be complete, the license file is parsed to obtain the key carried in the license file. The encrypted multimedia file is then decrypted based on the key to obtain the decrypted multimedia file. A playback notification is generated based on the decrypted multimedia file, and then the multimedia is decoded and played based on the playback notification.

[0098] In this embodiment, a multimedia file loading request is triggered based on the playback address. The first thread corresponding to this request loads the acquired encrypted multimedia file. Simultaneously, an authorization file retrieval request is triggered based on the authorization request tag. The second thread corresponding to this request then requests the authorization file from the digital rights management (DRM) license server. This achieves the effect of obtaining the authorization file in advance while loading the encrypted multimedia file, reducing the waiting time for the initial buffer data loading. This not only protects the legitimate interests of the copyright holder but also avoids unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0099] In one embodiment, such as Figure 4 As shown, a multimedia file playback processing method is provided, which is applied to... Figure 1 Taking a multimedia server as an example, this method specifically includes the following steps:

[0100] Step S402: Receive the playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request.

[0101] Specifically, when the player detects a playback operation triggered by a user's electronic device, it responds to the detected playback operation by generating a corresponding playback request and sending the playback request to the multimedia server. The multimedia server then receives the playback request from the player, responds to the playback request, and obtains the multimedia file number carried in the playback request.

[0102] In this embodiment, the multimedia file can be an audio or video file, and the corresponding multimedia file number can be an audio or video file number. The audio or video file number can be used to query the database to determine whether the database stores an audio or video file with the corresponding number.

[0103] Step S404: When it is detected that the current device corresponding to the playback request has the digital rights management capability attribute, the encrypted multimedia file information is queried based on the multimedia file number.

[0104] Specifically, the multimedia server checks the digital rights management (DRM) capability attribute of the current device that initiated the player request to determine whether the device possesses DRM capability. The DRM capability attribute can be understood as the ability to determine whether the current device can implement DRM, that is, whether the current device can play multimedia files in DRM-encrypted formats, such as audio files and video files.

[0105] Furthermore, when it is determined that the current device has the attribute of digital rights management, the encrypted multimedia file information is queried based on the multimedia file number, that is, whether the database stores encrypted multimedia files in digital rights encryption format.

[0106] In one embodiment, when the multimedia server detects that the current device does not have digital rights management capabilities, it obtains and plays the unencrypted multimedia file corresponding to the playback request, or generates and displays a playback error message corresponding to the playback request.

[0107] Step S406: When the encrypted multimedia file information is successfully retrieved, obtain the playback address of the corresponding multimedia file and obtain the authorization request tag issued by the digital rights management license server.

[0108] Specifically, when the multimedia server successfully queries the encrypted multimedia file information, that is, when it determines that the database stores an encrypted multimedia file in digital rights management encryption format, it obtains the playback address of the corresponding encrypted multimedia file and obtains the authorization request tag issued by the digital rights management license server.

[0109] Specifically, when it is determined that the current device has the attribute of digital rights management, if it is detected that there are both encrypted and unencrypted multimedia files in the database, the encrypted multimedia files in the digital rights management encryption format will be scheduled first.

[0110] In step S408, the playback address of the multimedia file and the authorization request tag are fed back to the player. The playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel, to request the authorization file from the digital rights management license server according to the authorization request tag, so as to parse the authorization file to obtain the key, and decrypt the encrypted multimedia file according to the key to obtain the decrypted multimedia file and play it.

[0111] Specifically, the multimedia service sends the playback address of the multimedia file and the authorization request tag back to the player. When the player receives the playback address and authorization request tag, it loads the encrypted multimedia file based on the playback address and simultaneously requests the authorization file from the digital rights management license server based on the authorization request tag. This achieves simultaneous loading of the encrypted multimedia file and obtaining the authorization file, thus enabling the authorization file to be obtained in advance, instead of waiting for the encrypted multimedia file to be loaded and parsed, then parsing the authorization request tag from the encrypted multimedia file, and finally requesting the authorization file from the digital rights management license server based on the authorization request tag, and then decrypting the encrypted multimedia file using the key carried in the authorization file.

[0112] Furthermore, the player obtains the key by parsing the authorization file, and then decrypts the encrypted multimedia file according to the key to obtain the decrypted multimedia file and plays it.

[0113] In the aforementioned multimedia file playback processing method, a playback request is received from the player, and a response is taken. The multimedia file number carried in the playback request is obtained. When the device corresponding to the playback request is detected to have digital rights management (DRM) capabilities, the encrypted multimedia file information is queried based on the multimedia file number. When the encrypted multimedia file information is successfully found, the playback address of the corresponding multimedia file is obtained, along with the authorization request tag issued by the DRM license server. The playback address and authorization request tag are then fed back to the player. Based on the playback address and authorization request tag, the player is instructed to load the encrypted multimedia file according to the playback address, and simultaneously request the authorization file from the DRM license server based on the authorization request tag. The authorization file is then parsed to obtain the key, and the encrypted multimedia file is decrypted using the key, resulting in the decrypted multimedia file, which is then played. This method enables the player to load the encrypted multimedia file and obtain the authorization file in parallel based on the playback address and authorization request tag, reducing the waiting time for the initial buffering of encrypted multimedia. This not only protects the legitimate interests of the copyright holder but also avoids unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0114] In one embodiment, a multimedia file playback processing method is provided, the method comprising:

[0115] Obtain the initial multimedia file and its corresponding preset digital rights management (DRM) encryption format; configure DRM attributes according to the preset DRM encryption format; trigger the encryption task corresponding to the initial multimedia file based on the configured DRM attributes; execute the encryption task, encrypt the initial multimedia file according to the preset DRM encryption format, generate an encrypted multimedia file and store it; synchronize and store the key corresponding to the encryption task.

[0116] Specifically, before playing multimedia files, to protect the legitimate rights and interests of the copyright holders, multimedia files are often encrypted before being decrypted for playback, preventing unauthorized access and distribution by unauthorized users. In this embodiment, digital rights management (DRM) encryption is used to encrypt the initial multimedia file. Specifically, a preset DRM format needs to be obtained, and the initial multimedia file is encrypted according to the preset DRM format.

[0117] Specifically, after obtaining the preset digital rights management (DRM) encryption format corresponding to the initial multimedia file, a DRM attribute configuration operation is triggered based on the preset DRM encryption format. This configures the ability to encrypt the initial multimedia file and generate a multimedia file with the DRM encryption format. Then, based on the configured DRM attributes, an encryption task corresponding to the initial multimedia file is triggered.

[0118] Furthermore, by executing the triggered encryption task, the initial multimedia file is encrypted according to a preset digital rights management (DRM) encryption format, generating and storing an encrypted multimedia file. The key corresponding to the encryption task is also stored synchronously. By synchronously storing the key and the encrypted multimedia file, a valid key can be obtained during subsequent decryption of the encrypted multimedia file, avoiding repeated key acquisition or decryption processes and improving playback efficiency during multimedia file playback.

[0119] In the aforementioned multimedia file playback processing method, an initial multimedia file and its corresponding preset digital rights management (DRM) encryption format are obtained. Based on this format, DRM attributes are configured, and then an encryption task corresponding to the initial multimedia file is triggered. By executing the encryption task, the initial multimedia file is encrypted according to the DRM encryption format, resulting in an encrypted multimedia file which is then stored. The key corresponding to the encryption task is also stored synchronously. This method achieves the encryption of multimedia files using a preset DRM encryption format, thereby ensuring the legitimate rights and interests of the copyright holders and preventing unauthorized access and distribution.

[0120] In one embodiment, such as Figure 5 As shown, a multimedia file playback processing method is provided, referring to... Figure 5 It can be seen that the method specifically includes the following steps:

[0121] In step S501, the multimedia server obtains the initial multimedia file and the corresponding preset digital rights management encryption format, and configures the digital rights management attributes according to the preset digital rights management encryption format.

[0122] In step S502, the multimedia server triggers an encryption task corresponding to the initial multimedia file based on the configured digital rights management attributes.

[0123] In step S503, the multimedia server performs an encryption task, encrypts the initial multimedia file according to the preset digital rights management encryption format, generates and stores an encrypted multimedia file, and synchronously stores the key corresponding to the encryption task.

[0124] In step S504, the player responds to the playback operation by sending a playback request for the multimedia file to the multimedia server.

[0125] In step S505, the multimedia server receives the playback request sent by the player, responds to the playback request, and obtains the multimedia file number carried in the playback request.

[0126] In step S506, when the multimedia server detects that the current device corresponding to the playback request has digital rights management capabilities, it queries the encrypted multimedia file information based on the multimedia file number.

[0127] Step S507: When the multimedia server successfully retrieves the encrypted multimedia file information, it obtains the playback address of the corresponding multimedia file.

[0128] Step S508: The multimedia server obtains the authorization request tag issued by the digital rights management license server.

[0129] Step S509: The player receives the playback address of the multimedia file from the multimedia server in response to the playback request.

[0130] In step S510, the player receives an authorization request tag issued by the digital rights management license server.

[0131] In step S511, the player triggers a multimedia loading request based on the playback address, calls the first thread corresponding to the multimedia file loading request, and loads the acquired encrypted multimedia file.

[0132] While executing step S511, step S512 is executed in parallel. Step S512: The player triggers an authorization file retrieval request based on the authorization request tag, calls the second thread corresponding to the authorization file retrieval request, and requests the authorization file from the digital rights management license server.

[0133] In step S513, the player parses the license file to obtain the key, decrypts the encrypted multimedia file according to the key, and plays the decrypted multimedia file.

[0134] The aforementioned multimedia file playback processing method loads the encrypted multimedia file according to the playback address and requests the license file from the digital rights management license server in parallel according to the license request tag. Instead of the traditional method of first obtaining and loading the encrypted multimedia file and then obtaining the license file to decrypt the loaded encrypted multimedia file, this method can obtain the encrypted multimedia file in advance to load it, thereby reducing the waiting time for the initial buffer data loading during multimedia file playback. This can protect the legitimate interests of the copyright owner and avoid unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0135] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0136] In one embodiment, such as Figure 6As shown, a multimedia file playback processing device is provided. This device can be a software module, a hardware module, or a combination of both, integrated into a computer device. Specifically, the device includes: a playback request sending module 602, a receiving module 604, a file loading module 606, and a multimedia file playback module 608, wherein:

[0137] The playback request sending module 602 is used to send a playback request for a multimedia file to the multimedia server in response to a playback operation.

[0138] The receiving module 604 is used to receive the playback address of the multimedia file returned by the multimedia server in response to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file.

[0139] The file loading module 606 is used to load encrypted multimedia files according to the playback address and, in parallel, request authorization files from the digital rights management license server according to the authorization request tag.

[0140] The multimedia file playback module 608 is used to parse the license file to obtain the key, decrypt the encrypted multimedia file according to the key, and play the decrypted multimedia file.

[0141] In the aforementioned multimedia file playback processing device, in response to a playback operation, a playback request for a multimedia file is sent to a multimedia server. The device receives the playback address of the multimedia file from the multimedia server in response to the playback request, and an authorization request tag issued by a digital rights management (DRM) license server. Then, based on the playback address, the encrypted multimedia file is loaded. Simultaneously, based on the authorization request tag, an authorization file is requested from the DRM license server. This differs from the traditional method of first obtaining and loading the encrypted multimedia file, and then obtaining the authorization file to decrypt the loaded encrypted multimedia file. The encrypted multimedia file can be obtained in advance for loading, reducing the waiting time for the initial buffering data loading during multimedia file playback. Furthermore, the key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted using the key, resulting in the decrypted multimedia file, which is then played. By reducing the waiting time for the initial buffering data loading of the encrypted multimedia file, the legitimate interests of the copyright holder are protected, while unnecessary waiting time during multimedia file playback is avoided, further improving the efficiency of multimedia file playback processing.

[0142] In one embodiment, the file loading module includes:

[0143] The encrypted multimedia file loading module is used to trigger a multimedia file loading request based on the playback address, call the first thread corresponding to the multimedia file loading request, and load the obtained encrypted multimedia file.

[0144] The authorization file retrieval module is used to trigger an authorization file retrieval request based on the authorization request tag, and call the second thread corresponding to the authorization file retrieval request to request the authorization file from the digital rights management license server; wherein, the first thread and the second thread process in parallel.

[0145] In one embodiment, the encrypted multimedia file loading module is further configured to:

[0146] The multimedia file loading request is triggered based on the playback address. The first thread corresponding to the multimedia file retrieval request is called and executed to retrieve the encrypted multimedia file from the playback address, so as to perform the initial buffer data loading based on the encrypted multimedia file.

[0147] In one embodiment, the authorization file acquisition module is further configured to:

[0148] The authorization request tag triggers an authorization file retrieval request, which calls and executes the second thread corresponding to the authorization file retrieval request to obtain the authorization result from the digital rights management license server. When the authorization result is determined to be authorized, the authorization file corresponding to the multimedia file is requested from the digital rights management license server. The authorization file contains the key corresponding to the multimedia file.

[0149] In one embodiment, the multimedia file playback module is further configured to:

[0150] When the initial buffer data loading is detected to be complete, the license file is parsed to obtain the key carried in the license file; the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file; a playback notification is generated according to the decrypted multimedia file, and the multimedia is decoded and played according to the playback notification.

[0151] In one embodiment, such as Figure 7 As shown, a multimedia file playback processing device is provided. This device can be a software module, a hardware module, or a combination of both, integrated into a computer device. Specifically, the device includes:

[0152] The playback request response module 702 is used to receive playback requests sent by the player, respond to the playback requests, and obtain the multimedia file number carried in the playback request.

[0153] The information query module 704 is used to query encrypted multimedia file information based on the multimedia file number when it is detected that the current device corresponding to the playback request has digital rights management capabilities.

[0154] The acquisition module 706 is used to obtain the playback address of the corresponding multimedia file and the authorization request tag issued by the digital rights management license server when the encrypted multimedia file information is successfully retrieved.

[0155] Feedback module 708 is used to send the playback address of the multimedia file and the authorization request tag back to the player. The playback address and the authorization request tag are used to instruct the player to load the encrypted multimedia file according to the playback address, and in parallel to request the authorization file from the digital rights management license server according to the authorization request tag, so as to parse the authorization file to obtain the key, decrypt the encrypted multimedia file according to the key, and obtain the decrypted multimedia file for playback.

[0156] In the aforementioned multimedia file playback processing device, the system receives and responds to playback requests sent by the player, obtains the multimedia file number carried in the playback request, and, upon detecting that the current device corresponding to the playback request possesses digital rights management (DRM) capabilities, queries the encrypted multimedia file information based on the multimedia file number. When the encrypted multimedia file information is successfully retrieved, the system obtains the playback address of the corresponding multimedia file and the authorization request tag issued by the DRM license server, and sends the playback address and authorization request tag back to the player. The playback address and authorization request tag instruct the player to load the encrypted multimedia file according to the playback address, and simultaneously request the authorization file from the DRM license server based on the authorization request tag. The authorization file is then parsed to obtain a key, which is used to decrypt the encrypted multimedia file, resulting in the decrypted multimedia file, which is then played. This allows the player to load the encrypted multimedia file and obtain the authorization file in parallel based on the playback address and authorization request tag, reducing the waiting time for the initial buffering of encrypted multimedia. This not only protects the legitimate interests of the copyright holder but also avoids unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0157] In one embodiment, a multimedia file playback processing apparatus is provided, further comprising:

[0158] The initial multimedia file acquisition module is used to acquire the initial multimedia file and its corresponding preset digital rights management encryption format;

[0159] The digital rights management attribute configuration module is used to configure digital rights management attributes according to the preset digital rights encryption format;

[0160] The encryption task triggering module is used to trigger an encryption task corresponding to the initial multimedia file based on the configured digital rights management attributes.

[0161] The encrypted multimedia file generation module is used to perform encryption tasks. It encrypts the initial multimedia file according to the preset digital rights management encryption format, generates and stores the encrypted multimedia file, and synchronously stores the key corresponding to the encryption task.

[0162] For specific limitations regarding the multimedia file playback processing device, please refer to the limitations on the multimedia file playback processing method above, which will not be repeated here. Each module in the aforementioned multimedia file playback processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the operations corresponding to each module.

[0163] In one embodiment, such as Figure 8 As shown, a multimedia file playback processing system is provided, referring to... Figure 8 It is understood that the multimedia file playback processing system specifically includes: a multimedia server 80, a player 82, a digital rights management license server 84, a database 86, and a content delivery network 88. The multimedia server 80 includes a resource operator 802, a media asset information database 804, a media resource scheduling center 806, and a playback scheduler 808.

[0164] 1) For multimedia server 80:

[0165] Resource operator 802 refers to the background media resource operator, which is used to trigger digital rights management configuration on the media asset information database 804. The media asset information database 804 contains the digital rights encryption format of multimedia files, and the media asset information database 804 also stores all formats of the corresponding multimedia files (including encrypted format and normal mode) and the tag content of the #EXT-X-KEY of the multimedia file, that is, the authorization request tag content.

[0166] The media resource scheduling center 806 is used to perform data transcoding and data storage operations. When it is determined that the media asset information database 804 stores a digital rights management (DRM) encrypted format, an encryption notification is generated. The media resource scheduling center 806 then triggers an encryption task based on the encryption notification and calls the transcoding and encryption service to execute the encryption task. During the encryption task, the multimedia file is encrypted using the DRM encrypted format to obtain a DRM encrypted multimedia file, which is then stored in the database 86. Simultaneously, the encryption key and the multimedia file are stored synchronously, with the key stored in a pre-set key repository within the database 86.

[0167] The playback scheduler 808 is used to parse playback requests, query and match media resource libraries, and distribute information on playable encrypted multimedia files. Specifically, the player 82 initiates a playback request to the playback scheduler 808. The playback request may carry the digital rights management (DRM) capability attribute data of the user's current device. When the playback scheduler 808 parses and obtains the DRM capability attribute data from the playback request, it determines that the current device has the ability to play multimedia files in DRM-encrypted format and then sends the encrypted multimedia file information back to the player 82.

[0168] The encrypted multimedia file information includes the playback URL and the #EXT-X-KEY tag (authorization request tag) content. The #EXT-X-KEY content is only fed back when it is determined that the multimedia file is a digital rights management encrypted multimedia file.

[0169] 2) For Player 82:

[0170] Player 82 represents a program or software library used to play multimedia files using the HLS protocol. In response to a playback operation, it sends a playback request for the multimedia file to the multimedia server 80 and receives the playback address of the multimedia file from the multimedia server 80 in response to the playback request, as well as an authorization request tag issued by the digital rights management license server 84.

[0171] In this process, player 82 obtains an encrypted multimedia file from content delivery network 88 based on the playback address, loads the obtained encrypted multimedia file, and requests an authorization file from digital rights management license server 84 based on the authorization request tag. Then, it parses the authorization file to obtain a key, decrypts the encrypted multimedia file based on the key, and plays the decrypted multimedia file.

[0172] Furthermore, player 82 triggers a multimedia file loading request based on the playback address, and calls the first thread corresponding to the multimedia file loading request to load the acquired encrypted multimedia file. Player 82 triggers an authorization file retrieval request based on the authorization request tag, and calls the second thread corresponding to the authorization file retrieval request to request the authorization file from the digital rights management license server 84. The first thread and the second thread process in parallel.

[0173] 3) For Digital Rights Management License Server 84:

[0174] The digital rights management (DRM) license server 84 is used to send license files for multimedia files in the DRM-encrypted format back to the player 82. Specifically, when the DRM license server 84 receives a license request from the player 82, it generates an authorization result corresponding to the request. If the authorization result is deemed acceptable, the server 84 retrieves the key corresponding to the encrypted multimedia file from the key store set in the database 86, encapsulates the key into the license file, and then sends the license file containing the key back to the player 82.

[0175] The aforementioned multimedia file playback processing system loads encrypted multimedia files based on the playback address while simultaneously requesting and obtaining an authorization file from the Digital Rights Management (DRM) license server based on the authorization request tag. This differs from the traditional method of first obtaining and loading the encrypted multimedia file, and then obtaining the authorization file to decrypt the already loaded encrypted multimedia file. By obtaining the encrypted multimedia file in advance, the system reduces the waiting time for the initial buffering data loading during multimedia file playback. This approach not only protects the legitimate interests of copyright holders but also avoids unnecessary waiting time during multimedia file playback, further improving the efficiency of multimedia file playback processing.

[0176] In one embodiment, an electronic device is provided, which may be a player, and its internal structure diagram may be as follows: Figure 9 As shown, the electronic device includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a multimedia file playback processing method. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the device's casing, or an external keyboard, touchpad, or mouse.

[0177] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0178] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0179] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0180] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the electronic device to perform the steps in the above-described method embodiments.

[0181] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0182] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0183] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A multimedia file playback processing method, characterized in that, The method includes: In response to a playback operation, a playback request for a multimedia file is sent to the multimedia server. The playback request is used to instruct the multimedia server to respond to the playback request. When it is detected that the current device corresponding to the playback request has digital rights management capability attributes, and the encrypted multimedia file information is successfully queried according to the multimedia file number carried in the playback request, the playback address of the corresponding multimedia file is obtained, and an authorization request tag is obtained from the digital rights management license server. The system receives the playback address of the multimedia file as a response from the multimedia server to the playback request, and the authorization request tag issued by the digital rights management license server; wherein the multimedia file is a digital rights encrypted file. A multimedia file loading request is triggered based on the playback address, and the first thread corresponding to the multimedia file loading request is invoked to load the acquired encrypted multimedia file. The authorization request tag triggers an authorization file retrieval request, and the second thread corresponding to the authorization file retrieval request is invoked to obtain the authorization result from the digital rights management license server. When the authorization result is determined to be an authorized authorization, the authorization file is requested from the digital rights management license server; wherein, the first thread and the second thread process in parallel. The key is obtained by parsing the authorization file, and the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file and play it.

2. The method according to claim 1, characterized in that, The step of triggering a multimedia file loading request based on the playback address, and invoking the first thread corresponding to the multimedia file loading request to load the acquired encrypted multimedia file includes: A multimedia file loading request is triggered based on the playback address. The first thread corresponding to the multimedia file acquisition request is called and executed to obtain the encrypted multimedia file from the playback address, so as to perform the initial buffer data loading based on the encrypted multimedia file.

3. The method according to claim 1, characterized in that, The step of triggering an authorization file retrieval request based on the authorization request tag, and invoking the second thread corresponding to the authorization file retrieval request to request the authorization file from the digital rights management license server, includes: Trigger an authorization file retrieval request based on the authorization request tag, call and execute the second thread corresponding to the authorization file retrieval request, and obtain the authorization result from the digital rights management license server; When the authorization result is determined to be an authorized authorization, an authorization file corresponding to the multimedia file is requested from the digital rights management license server; the authorization file contains a key corresponding to the multimedia file.

4. The method according to claim 3, characterized in that, The process of parsing the authorization file to obtain a key, decrypting the encrypted multimedia file using the key, and then playing the decrypted multimedia file includes: When the initial buffered data loading is detected to be complete, the authorization file is parsed to obtain the key carried in the authorization file; The encrypted multimedia file is decrypted using the key to obtain the decrypted multimedia file; A playback notification is generated based on the decrypted multimedia file, and the multimedia file is decoded and played according to the playback notification.

5. A multimedia file playback processing method, characterized in that, The method includes: Receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request; When it is detected that the current device corresponding to the playback request has digital rights management capabilities, the encrypted multimedia file information is queried based on the multimedia file number; When the encrypted multimedia file information is successfully retrieved, the playback address of the corresponding multimedia file is obtained, and an authorization request tag is obtained from the digital rights management license server; The playback address of the multimedia file and the authorization request tag are fed back to the player; wherein, the playback address is used to instruct the player to trigger a multimedia file loading request based on the playback address, and to call the first thread corresponding to the multimedia file loading request to load the acquired encrypted multimedia file; the authorization request tag is used to instruct the player to trigger an authorization file acquisition request based on the authorization request tag, and to call the second thread corresponding to the authorization file acquisition request to obtain the authorization result from the digital rights management license server. When it is determined that the authorization result is authorized, the player requests the authorization file from the digital rights management license server to parse the authorization file to obtain the key, and to decrypt the encrypted multimedia file based on the key to obtain the decrypted multimedia file and play it; wherein, the first thread and the second thread process in parallel.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the initial multimedia file and its corresponding preset digital rights management encryption format; Configure digital rights management attributes according to the preset digital rights encryption format; Based on the configured digital rights management attributes, an encryption task corresponding to the initial multimedia file is triggered. The encryption task is executed, and the initial multimedia file is encrypted according to the preset digital rights management encryption format to generate and store an encrypted multimedia file. The key corresponding to the encryption task is stored synchronously.

7. A multimedia file playback processing device, characterized in that, The device includes: The playback request sending module is used to send a playback request for a multimedia file to the multimedia server in response to a playback operation. The playback request is used to instruct the multimedia server to respond to the playback request. When it is detected that the current device corresponding to the playback request has digital rights management capability attributes, and the encrypted multimedia file information is successfully queried according to the multimedia file number carried in the playback request, the playback address of the corresponding multimedia file is obtained, and an authorization request tag is obtained from the digital rights management license server. The receiving module is used to receive the playback address of the multimedia file fed back by the multimedia server in response to the playback request, and the authorization request tag issued by the digital rights management license server; wherein, the multimedia file is a digital rights encrypted file; The file loading module includes: an encrypted multimedia file loading module, used to trigger a multimedia file loading request based on the playback address, call a first thread corresponding to the multimedia file loading request, and load the acquired encrypted multimedia file; and an authorized file acquisition module, used to trigger an authorized file acquisition request based on the authorized request tag, call a second thread corresponding to the authorized file acquisition request, obtain an authorization result from the digital rights management license server, and when the authorization result is determined to be an authorized license, request the authorized file from the digital rights management license server; wherein the first thread and the second thread process in parallel. The multimedia file playback module is used to parse the authorized file to obtain a key, decrypt the encrypted multimedia file according to the key, and play the decrypted multimedia file.

8. The apparatus according to claim 7, characterized in that, The encrypted multimedia file loading module is also used for: A multimedia file loading request is triggered based on the playback address. The first thread corresponding to the multimedia file acquisition request is called and executed to obtain the encrypted multimedia file from the playback address, so as to perform the initial buffer data loading based on the encrypted multimedia file.

9. The apparatus according to claim 7, characterized in that, The authorization file acquisition module is also used for: The authorization request tag triggers an authorization file retrieval request, the second thread corresponding to the authorization file retrieval request is invoked and executed, and the authorization result is obtained from the digital rights management license server; when the authorization result is determined to be an authorized authorization, the authorization file corresponding to the multimedia file is requested from the digital rights management license server. The authorization file contains a key corresponding to the multimedia file.

10. The apparatus according to claim 9, characterized in that, The multimedia file playback module is also used for: When the initial buffer data loading is detected to be complete, the authorization file is parsed to obtain the key carried in the authorization file; the encrypted multimedia file is decrypted according to the key to obtain the decrypted multimedia file; A playback notification is generated based on the decrypted multimedia file, and the multimedia file is decoded and played according to the playback notification.

11. A multimedia file playback processing device, characterized in that, The device includes: The playback request response module is used to receive a playback request sent by the player, respond to the playback request, and obtain the multimedia file number carried in the playback request. The information query module is used to query encrypted multimedia file information based on the multimedia file number when it is detected that the current device corresponding to the playback request has digital rights management capability. The acquisition module is used to obtain the playback address of the corresponding multimedia file when the encrypted multimedia file information is successfully retrieved, and to obtain the authorization request tag from the digital rights management license server. The feedback module is used to send the playback address of the multimedia file and the authorization request tag back to the player. The playback address instructs the player to trigger a multimedia file loading request, calling a first thread corresponding to the multimedia file loading request to load the acquired encrypted multimedia file. The authorization request tag instructs the player to trigger an authorization file retrieval request, calling a second thread corresponding to the authorization file retrieval request to obtain an authorization result from the digital rights management (DRM) license server. When the authorization result is determined to be authorized, the player requests the authorization file from the DRM license server to parse the authorization file to obtain a key, decrypts the encrypted multimedia file using the key, and plays the decrypted multimedia file. The first thread and the second thread process in parallel.

12. The apparatus according to claim 11, characterized in that, The device further includes: The initial multimedia file acquisition module is used to acquire the initial multimedia file and its corresponding preset digital rights management encryption format; The digital rights management attribute configuration module is used to configure digital rights management attributes according to the preset digital rights encryption format; The encryption task triggering module is used to trigger an encryption task corresponding to the initial multimedia file based on the configured digital rights management attributes. An encrypted multimedia file generation module is used to perform the encryption task, encrypt the initial multimedia file according to the preset digital rights management encryption format, generate an encrypted multimedia file and store it; and synchronously store the key corresponding to the encryption task.

13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

14. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Video playing method and terminal

    CN104837035A

  • Method for realizing fast playing of DRM streams

    CN106792138A

  • Video encryption method

    CN108337536A