Multimedia file playing method and device and display equipment
By reading and parsing the encapsulated information and encrypted files of local encrypted multimedia files, determining the encoding method and parsing it, the problem that Android Mediaplayer cannot play local encrypted files is solved, and effective playback of these files is achieved.
Patent Information
- Application Number
- CN202510018443.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-23
AI Technical Summary
Android Mediaplayer cannot play locally encrypted multimedia files, resulting in the currently selected multimedia file being unable to play.
By reading the encapsulated information of the target multimedia file and the encrypted file in the same folder, the encoding method of the multimedia file is determined, and the file is parsed and played according to the encoding method.
It realizes the playback of local encrypted multimedia files, solving the problem that Android Mediaplayer cannot play local encrypted files.
Smart Images

Figure CN120034682A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia technology, and in particular to a method, device and display device for playing multimedia files. Background Art
[0002] Currently, when Android Mediaplayer plays a multimedia file, if the multimedia file selected by the user is a locally encrypted multimedia file, Android Mediaplayer cannot parse the locally encrypted multimedia file, so Android Mediaplayer prompts the user that the currently selected multimedia file cannot be played.
[0003] Therefore, how to solve the problem that Android Mediaplayer cannot play locally encrypted multimedia files has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a method, an apparatus and a display device for playing multimedia files.
[0005] The technical solution of the present disclosure is as follows:
[0006] In a first aspect, the present disclosure provides a display device, comprising: a display, configured to display a display interface of a target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file; a controller, configured to: in response to a playback operation on the target multimedia file, read encapsulation information of the target multimedia file, and an encrypted file in the same folder as the target multimedia file; determine an encoding method of the target multimedia file based on target data; wherein the target data includes one or more items of the encapsulation information and the encrypted file; parse the target multimedia file according to the encoding method, and play the parsed target multimedia file.
[0007] In a second aspect, the present disclosure provides a method for playing multimedia files, comprising: in response to a playback operation on a target multimedia file, reading encapsulation information of the target multimedia file and an encrypted file in the same folder as the target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file; based on target data, determining an encoding method for the target multimedia file; wherein the target data includes one or more items in the encapsulation information and the encrypted file; parsing the target multimedia file according to the encoding method, and playing the parsed target multimedia file.
[0008] In a third aspect, the present invention provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and the computer program is executed by a controller to perform any method for playing a multimedia file provided in the second aspect.
[0009] In a fourth aspect, the present invention provides a computer program product. When the computer program product is run on a computer, the computer executes any method for playing a multimedia file provided in the second aspect.
[0010] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium, wherein the first computer-readable storage medium may be packaged together with the controller of the display device, or may be packaged separately from the controller of the display device, which is not limited in the present disclosure.
[0011] The description of the second, third and fourth aspects in the present disclosure can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third and fourth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0012] In the present disclosure, the names of the above display devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0013] These and other aspects of the present disclosure will become more apparent from the following description.
[0014] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0015] The multimedia file playback method provided by the present disclosure is that when a display device plays a locally encrypted multimedia file selected by a user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; the first application determines the encoding method of the target multimedia file based on the target data; in this way, the display device can parse the target multimedia file according to the encoding method and play the parsed target multimedia file, so that the display device can play the locally encrypted multimedia file, solving the problem of how to solve the problem that Android Mediaplayer cannot play locally encrypted multimedia files. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A schematic diagram of a scenario of a method for playing multimedia files provided in an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of the structure of a display device provided in an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of the structure of a television set provided by an embodiment of the present disclosure;
[0021] Figure 4 One of the flowcharts of the method for playing multimedia files provided in the embodiment of the present disclosure;
[0022] Figure 5 A second flowchart of a method for playing multimedia files provided in an embodiment of the present disclosure;
[0023] Figure 6 A schematic diagram of the structure of a player for the multimedia file playback method provided by an embodiment of the present disclosure;
[0024] Figure 7 A third flowchart of a method for playing multimedia files provided in an embodiment of the present disclosure;
[0025] Figure 8 A fourth flowchart of a method for playing multimedia files provided in an embodiment of the present disclosure;
[0026] Fig. 9 A schematic diagram of the structure of a display device provided in an embodiment of the present disclosure;
[0027] Fig.10 A schematic diagram of a chip system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0029] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0030] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] In some examples, Mediacodec in the embodiments of the present disclosure is a component on the Android platform, which is mainly used to process decryption operations of encrypted media content.
[0032] In some examples, MediaCrypto in the disclosed embodiments is a component on the Android platform, which is mainly used to handle decryption operations of encrypted media content.
[0033] Figure 1 is a schematic diagram of an operation scenario between a household appliance and a control device according to one or more embodiments of the present disclosure, such as Figure 1 As shown, the user can operate the display device 200 through the terminal device 300 and / or the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, mobile terminals, tablet computers, computers, laptops, and other smart devices can also be used to control the display device 200.
[0034] In some embodiments, the display device provided by the embodiments of the present disclosure may be the above-mentioned display device 200. A first application is installed in the display device 200, and the first application can play multimedia files. When a user needs to play a multimedia file, the user can select the target multimedia file to be played in the application interface of the first application displayed on the display device 200. The target multimedia file is a locally encrypted multimedia file. At this time, the first application responds to the playback operation of the target multimedia file, reads the encapsulation information of the target multimedia file, and the encrypted file in the same folder as the target multimedia file; the first application determines the encoding method of the target multimedia file based on the target data; the target data includes one or more items of the encapsulation information and the encrypted file; the first application parses the target multimedia file according to the encoding method, and plays the parsed target multimedia file.
[0035] In this way, when the display device 200 plays the locally encrypted multimedia file selected by the user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; the first application determines the encoding method of the target multimedia file based on the target data; in this way, the display device 200 can parse the target multimedia file according to the encoding method and play the parsed target multimedia file, so that the display device 200 can play the locally encrypted multimedia file.
[0036] Figure 2 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 2 The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be a display with a touch function, such as a touch display. The detector 230 is used to collect signals of the external environment or interaction with the outside.
[0037] In some examples, the external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0038] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0039] In some examples, the display device 200 of one or more embodiments is a TV set 1, and the operating system of the TV set 1 is an Android system. Figure 3 As shown, the television 1 can be logically divided into an application layer (Applications) (referred to as "application layer") 21, an application framework layer (Application Framework) (referred to as "framework layer") 22, an Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 29.
[0040] The application layer 21 includes one or more applications. The application may be a system application or a third-party application. For example, the application layer 21 includes a first application, which is used to play non-Blu-ray multimedia files and Blu-ray multimedia files, wherein the first application creates a Blu-ray download plug-in when playing Blu-ray multimedia files.
[0041] The framework layer 22 provides an application programming interface (API) and a programming framework for the applications of the application layer 21. The system runtime layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system will run the C / C++ library contained in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 29 is used as a software middleware between the hardware layer and the application layer 21 to manage and control hardware and software resources.
[0042] In some examples, the display device provided by the embodiments of the present disclosure may be the above-mentioned TV 1. A first application is installed in the TV 1, and the first application can play multimedia files. A first application is installed in the TV 1, and the first application can play multimedia files. When a user needs to play a multimedia file, the user can select the target multimedia file to be played in the application interface of the first application displayed on the TV 1. The target multimedia file is a locally encrypted multimedia file. At this time, the processing unit 201 of the first application responds to the playback operation of the target multimedia file, reads the encapsulation information of the target multimedia file, and the encrypted file in the same folder as the target multimedia file; the processing unit 201 determines the encoding method of the target multimedia file based on the target data; wherein the target data includes one or more items of the encapsulation information and the encrypted file; the processing unit 201 parses the target multimedia file according to the encoding method, and controls the display unit 202 to play the parsed target multimedia file.
[0043] Specifically, when the executing subject of the multimedia file playback method provided by the embodiment of the present disclosure is the television 1, the storage unit 203 of the television 1 is used to store data such as program codes of the multimedia file playback method provided by the embodiment of the present disclosure.
[0044] In the following embodiments, the method of the embodiment of the present disclosure is described by taking the television 1 as an example of an execution subject of the multimedia file playback method provided by the embodiment of the present disclosure.
[0045] The present disclosure provides a method for playing multimedia files, which is applied to a television set 1. Figure 4 As shown, the multimedia file playing method may include S11-S13.
[0046] S11. In response to a play operation on a target multimedia file, read encapsulation information of the target multimedia file and an encrypted file in the same folder as the target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file.
[0047] In some examples, the encryption method of the locally encrypted multimedia file includes any one of China Digital Rights Management (ChinaDRM) and DRM digital rights management function Widevine.
[0048] S12: Determine the encoding method of the target multimedia file based on the target data, wherein the target data includes one or more items of the encapsulation information and the encrypted file.
[0049] In some examples, when determining the encoding method of the target multimedia file based on the target data, if the target data includes encapsulation information, and the encapsulation information includes encoding information, the encoding method of the target multimedia file is determined to be the encoding method corresponding to the encoding information. Alternatively, if the target data includes an encrypted file, the encapsulation information does not include encoding information, and the encrypted file contains encoding information, the encoding method of the target multimedia file is determined to be the encoding method corresponding to the encoding information.
[0050] In some examples, when determining the encoding method of the target multimedia file based on the target data, the target multimedia file can be input into the analysis model for data analysis to determine the encoding method of the target multimedia file. The training process of the analysis model includes:
[0051] The training sample data and the marking result of the training sample data are obtained, wherein the training sample data includes historical locally encrypted multimedia files, and the marking result includes the encoding method corresponding to the historical locally encrypted multimedia files.
[0052] The training sample data is input into the neural network model for learning, and the prediction results of the neural network model for the training sample data are obtained.
[0053] Based on the prediction results and labeling results, the network parameters of the neural network model are adjusted until the neural network model converges to obtain the analysis model.
[0054] S13, parsing the target multimedia file according to the encoding method, and playing the parsed target multimedia file.
[0055] From the above, it can be seen that in the multimedia file playback method provided by the embodiment of the present disclosure, when the TV 1 plays the locally encrypted multimedia file selected by the user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; the first application determines the encoding method of the target multimedia file based on the target data; in this way, the TV 1 can parse the target multimedia file according to the encoding method, and play the parsed target multimedia file, so that the TV 1 can play the locally encrypted multimedia file.
[0056] In some examples, the target data includes packaging information; Figure 4 ,like Figure 5 As shown, the above S12 can be specifically implemented through the following S120.
[0057] S120: When the encapsulation information includes coding information, determine that the coding method of the target multimedia file is the coding method corresponding to the coding information.
[0058] For example, Figure 6As shown, when the player corresponding to the first application is hsplayer pipeline, after Avdemux (mp4) parses the encapsulation information, if there is encoding information (pssh information) in the encapsulation information, the pssh information is notified to the decoder plug-in through the message mechanism of the plug-in framework. If there is no pssh information in the Avdemux encapsulation information, the result and the source path are notified to the decoder plug-in through the message mechanism of the plug-in framework.
[0059] From the above, it can be seen that in the multimedia file playback method provided by the embodiment of the present disclosure, when the TV 1 plays the locally encrypted multimedia file selected by the user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; when the first application includes encoding information in the encapsulation information, it determines that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information; in this way, the TV 1 can parse the target multimedia file according to the encoding method, and play the parsed target multimedia file, so that the TV 1 can play the locally encrypted multimedia file.
[0060] In some possible implementation examples, the target data includes an encrypted file; Figure 5 ,like Figure 7 As shown, the multimedia file playing method provided by the embodiment of the present disclosure further includes S14.
[0061] S14: When the encapsulation information does not include the encoding information and the encrypted file contains the encoding information, determine that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information.
[0062] In some examples, if pssh information does not exist in the encapsulation information after Avdemux (mp4) parses the encapsulation information, the decoder plug-in is notified through the message mechanism of the plug-in framework. The decoder plug-in reads the encryption information file (i.e., the encrypted file in the same folder as the target multimedia file) according to the source path. After that, the decoder plug-in parses the encrypted file, and if pssh information is obtained, the encoding method corresponding to the pssh information is used as the encoding method of the target multimedia file. If pssh information is not obtained, an indication information is generated to indicate that the target multimedia file cannot be played.
[0063] In some examples, if the decoder plug-in does not obtain the pssh information in the encrypted file, the decoder plug-in can obtain the historical playback information of the current user account.
[0064] The decoder plug-in determines the historical encoding method based on the historical playback information.
[0065] The decoder plug-in decodes the target multimedia file using each encoding method in the history, and uses the encoding method of the decodable target multimedia file as the encoding method of the target multimedia file.
[0066] From the above, it can be seen that in the multimedia file playback method provided by the embodiment of the present disclosure, when the TV 1 plays the locally encrypted multimedia file selected by the user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; when the first application does not include encoding information in the encapsulation information and there is encoding information in the encrypted file, it determines that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information; in this way, the TV 1 can parse the target multimedia file according to the encoding method, and play the parsed target multimedia file, so that the TV 1 can play the locally encrypted multimedia file.
[0067] In some examples, the target data includes packaging information; Figure 4 ,like Figure 8 As shown, the above S13 can be specifically implemented through the following S130-S133.
[0068] S130, before creating a decoder, obtaining a license interaction request;
[0069] S131, sending a license interaction request via a target network protocol;
[0070] S132: After receiving the response information in response to the license interaction request, create a decoder and set the decoder in the audio and video codec framework.
[0071] In some examples, the decoder can be MediaCrypto.
[0072] In some examples, the audio and video codec framework can be Mediacodec.
[0073] S133: Parse the target multimedia file through the audio and video codec framework, and play the parsed target multimedia file.
[0074] In some examples, the interaction flow of a license interaction request includes:
[0075] 1. The first application sends program information in response to the user's selection operation, including DRM information (ContentID, encryption mode, authorization uniform resource locator (URL)) and playback URL.
[0076] 2. The first application starts playback and passes in the DRM information and URL.
[0077] 3. The player control (calling Android DRM) sends New MediaDRM, MediaDRM.opensession, New MediaCrypto to Android DRM (MediaDRM, MediaCrypto).
[0078] 4. The player control creates a player based on the URL, passes MediaCrypto, starts playback, and notifies the player kernel (obtains video data, decapsulates, decrypts DRM, decodes, and renders).
[0079] 5. The player kernel sends a request for video data to CDN (media delivery service).
[0080] 6. CDN sends the video index file and video data (optionally carrying DRM information) to the player kernel.
[0081] 7. The player core decapsulates the video data. Optionally, the player core pushes the DRM information obtained from the video index file or the video data.
[0082] 8. The player controls the on-demand content to be encrypted, and obtains a license interaction request (MediaDRM.GetKeyRequest) from Android DRM based on the DRM information.
[0083] 9. Android DRM sends a license interaction request to the player control.
[0084] 10. After receiving the license interaction request sent by the player control, the player control sends a license interaction request to the DRM content authorization service.
[0085] 11. When the DRM content authorization service receives the license interaction request sent by the player control, it sends a license interaction response (MediaDRM.provideKeyResponse) to the player control.
[0086] 12. When the player control receives the license interaction response sent by the DRM content authorization service, it sends the license interaction response to Android DRM.
[0087] 13. The player kernel sends Config Secure Code (MediaCrypto) to Android DRM.
[0088] 14. The Secure Codec of the player kernel calls Android DRM's MediaCrypto.decrypt(ES) to decrypt the content.
[0089] 15. The player core decodes and renders the video data, and controls the player core to display the rendered video data.
[0090] 16. The player controls sending MediaDRM.closeSession to Android DRM.
[0091] 17. The player controls the first application to end playing the video data.
[0092] As can be seen from the above, the multimedia file playback method provided by the embodiment of the present disclosure is that when the TV 1 plays the locally encrypted multimedia file selected by the user, it reads the encapsulation information of the target multimedia file and the encrypted file in the same folder as the target multimedia file; the first application determines the encoding method of the target multimedia file based on the target data; in this way, the TV 1 can obtain a license interaction request before creating a decoder; send the license interaction request through the target network protocol; after receiving the response information in response to the license interaction request, create a decoder and set the decoder in the audio and video codec framework; parse the target multimedia file through the audio and video codec framework, and play the parsed target multimedia file, so that the TV 1 can play the locally encrypted multimedia file.
[0093] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0094] The embodiment of the present disclosure can divide the functional modules of the display device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0095] like Fig. 9 As shown, an embodiment of the present disclosure provides a structural schematic diagram of a display device, which includes a display 101 and a controller 102 .
[0096] The display 101 is configured to display a display interface of a target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file;
[0097] The controller 102 is configured to:
[0098] In response to a play operation on a target multimedia file, reading encapsulation information of the target multimedia file and an encrypted file in the same folder as the target multimedia file;
[0099] Determine the encoding method of the target multimedia file based on the target data; wherein the target data includes one or more items of the encapsulation information and the encrypted file;
[0100] Parse the target multimedia file according to the encoding method, and play the parsed target multimedia file.
[0101] In some implementable examples, the target data includes encapsulation information; when the controller determines the encoding method of the target multimedia file based on the target data, it is configured to: when the encapsulation information includes encoding information, determine that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information.
[0102] In some feasible examples, the target data includes an encrypted file; the controller is further configured to: when the encapsulation information does not include the encoding information and the encoding information exists in the encrypted file, determine that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information.
[0103] In some implementable examples, the controller, when parsing the target multimedia file according to the encoding method and playing the parsed target multimedia file, is configured to: obtain a license interaction request before creating a decoder; send the license interaction request through the target network protocol; after receiving the response information in response to the license interaction request, create a decoder and set the decoder in the audio and video codec framework; parse the target multimedia file through the audio and video codec framework, and play the parsed target multimedia file.
[0104] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0105] Of course, the display device provided by the embodiment of the present disclosure includes but is not limited to the above modules, for example, the display device may also include a memory 103. The memory 103 may be used to store program codes of the display device, and may also be used to store data generated by the display device during operation, such as data in a write request.
[0106] As an example, combining Figure 3 The function implemented by the processing unit 201 in the TV set 1 is the same as that of the controller 102 , the function implemented by the display unit 202 in the TV set 1 is the same as that of the display 101 , and the function implemented by the storage unit 203 is the same as that of the memory 103 .
[0107] like Fig.10 As shown, the embodiment of the present disclosure also provides a chip system, which can be applied to the display device in the aforementioned embodiment. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the above-mentioned display device. The processor 1501 and the interface circuit 1502 can be interconnected through a line. The processor 1501 can receive and execute computer instructions from the memory of the above-mentioned display device through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device can execute the various steps executed by the display device in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present disclosure.
[0108] The embodiment of the present disclosure also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned display device.
[0109] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A display device, characterized in that: include: A display configured to display a display interface of a target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file; The controller is configured as: In response to a play operation on the target multimedia file, reading encapsulation information of the target multimedia file and an encrypted file in the same folder as the target multimedia file; Determining an encoding method of the target multimedia file based on the target data; wherein the target data includes one or more items of encapsulation information and an encrypted file; The target multimedia file is parsed according to the encoding method, and the parsed target multimedia file is played.
2. The display device according to claim 1, characterized in that The target data includes packaging information; When determining the encoding method of the target multimedia file based on the target data, the controller is configured to: In the case where the encapsulation information includes encoding information, the encoding method of the target multimedia file is determined to be the encoding method corresponding to the encoding information.
3. The display device according to claim 2, characterized in that The target data includes encrypted files; The controller is further configured to: In the case that the encapsulation information does not include encoding information, and the encrypted file contains encoding information, it is determined that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information.
4. The display device according to claim 1, characterized in that The controller, when parsing the target multimedia file according to the encoding method and playing the parsed target multimedia file, is configured to: Before creating a decoder, obtain a license interaction request; Sending the license interaction request via a target network protocol; After receiving the response information in response to the license interaction request, creating a decoder and setting the decoder in the audio and video codec framework; The target multimedia file is parsed through the audio and video codec framework, and the parsed target multimedia file is played.
5. A method for playing multimedia files, characterized in that: include: In response to a play operation on a target multimedia file, read encapsulation information of the target multimedia file and an encrypted file in the same folder as the target multimedia file; wherein the target multimedia file is a locally encrypted multimedia file; Determining an encoding method of the target multimedia file based on the target data; wherein the target data includes one or more items of encapsulation information and an encrypted file; The target multimedia file is parsed according to the encoding method, and the parsed target multimedia file is played.
6. The method for playing multimedia files according to claim 5, characterized in that: The target data includes packaging information; The step of determining the encoding method of the target multimedia file based on the target data includes: In the case where the encapsulation information includes encoding information, the encoding method of the target multimedia file is determined to be the encoding method corresponding to the encoding information.
7. The method for playing multimedia files according to claim 6, characterized in that: The target data includes encrypted files; In the case that the encapsulation information does not include encoding information, and the encrypted file contains encoding information, it is determined that the encoding method of the target multimedia file is the encoding method corresponding to the encoding information.
8. The method for playing multimedia files according to claim 5, characterized in that: The step of parsing the target multimedia file according to the encoding method and playing the parsed target multimedia file comprises: Before creating a decoder, obtain a license interaction request; Sending the license interaction request via a target network protocol; After receiving the response information in response to the license interaction request, creating a decoder and setting the decoder in the audio and video codec framework; The target multimedia file is parsed through the audio and video codec framework, and the parsed target multimedia file is played.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the multimedia file playing method according to any one of claims 5 to 8.
10. A computer program product, characterized in that When the computer program product runs on a computer, the computer implements the method for playing a multimedia file according to any one of claims 5 to 8.