Method and device for controlling multimedia function
By setting up multimedia management components in the intervention layer and providing a dedicated interface to call the multimedia function of the middleware layer, the problem of high coupling between the application layer and the middleware layer in the prior art is solved, and the decoupling between the application layer and the middleware layer and the reduction of the cost of multimedia software is achieved.
Patent Information
- Application Number
- CN202411864635.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
The existing multimedia function control method has high coupling between the application layer and the middleware layer, which requires the application layer to be updated synchronously when the middleware layer is updated, which increases development and maintenance costs.
Introduce an intervention layer and set up a multimedia management component in the intervention layer. The intervention layer is located between the application layer and the middleware layer, providing a dedicated interface to call the multimedia functions of the middleware layer, and realizing the decoupling between the application layer and the middleware layer.
Through the multimedia management components of the intervention layer, the application layer and the middleware layer are decoupled, which avoids the problem of synchronous update of the application layer when the middleware layer is updated, and reduces the development and maintenance costs of multimedia software.
Smart Images

Figure CN119806772A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for controlling multimedia functions. Background Art
[0002] With the development of technology, multimedia technology is also constantly improving. In the process of managing and controlling media functions, the existing control process generally needs to rely on the application layer, middleware layer and hardware driver layer. Among them, the application layer is responsible for the display, control and interaction of the media, the middleware layer is responsible for providing basic services for various media, and the hardware driver layer provides the control and drive of hardware devices when the functions are specifically executed. In other words, in the process of controlling multimedia functions, the control instructions are issued through the application layer, and then transmitted to the middleware layer to obtain the corresponding basic services and functions based on the control instructions, and finally based on the services and functions, the corresponding hardware is driven to execute at the hardware driver layer.
[0003] At present, based on the above-mentioned "application layer-middleware layer-hardware driver layer" control method, it can be seen that in the control process of existing multimedia functions, close cooperation between the application layer and the middleware layer is required to achieve it. However, in actual applications, due to the high degree of coupling between the application layer and the middleware layer, that is, once the basic services and functions of the middleware layer are updated, the corresponding application layer needs to be updated synchronously, which leads to the problem of high development and dimensional costs in the existing multimedia control method. Summary of the invention
[0004] The embodiments of the present application provide a method and device for controlling multimedia functions. The main purpose is to implement a method for controlling multimedia functions to achieve decoupling of the application layer and the middleware layer, thereby avoiding the problem of synchronously updating the application layer when the middleware layer is updated, thereby reducing the overall development and maintenance costs of the multimedia software.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a method for controlling multimedia functions, which is applied to a multimedia management component, wherein the multimedia management component is arranged in an intervention layer, wherein the intervention layer is arranged between an application layer and a middleware layer, and wherein the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, wherein the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains a control instruction from the application layer; the method comprises:
[0007] Detecting whether a control instruction sent from the application layer is received, wherein the control instruction is used to control the multimedia function in the middleware layer;
[0008] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface;
[0009] Based on the target interface, the multimedia function corresponding to the target interface in the middleware layer is called so as to control the multimedia function according to the control instruction.
[0010] Optionally, the instruction type includes an instruction type that is an authentication type, and the authentication type is used to characterize that the control instruction is used to obtain an operation token of a multimedia function;
[0011] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0012] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain an operation token for a multimedia function, determining that the instruction type of the control instruction is the authentication type;
[0013] A dedicated interface corresponding to the authentication type is determined as the target interface.
[0014] Optionally, the instruction type further includes a multimedia task control type, and the multimedia task control type is used to characterize that the control instruction is used to manage a task of multimedia function processing;
[0015] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0016] After detecting the existence of the control instruction, when it is determined that the control instruction is used to manage the task of multimedia function processing, determining that the instruction type of the control instruction is the multimedia task control type;
[0017] A dedicated interface corresponding to the multimedia task control type is determined as the target interface.
[0018] Optionally, the instruction type further includes a multimedia device control type, and the multimedia device control type is used to indicate that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function;
[0019] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0020] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function, determining that the instruction type of the control instruction is the multimedia device control type;
[0021] A dedicated interface corresponding to the multimedia device control type is determined as the target interface.
[0022] Optionally, calling the multimedia function corresponding to the target interface in the middleware layer based on the target interface so as to control the multimedia function according to the control instruction includes:
[0023] Based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer through request information, wherein the request information includes a query request and an operation request;
[0024] Among them, the query request is used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request is used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of the creation operation, modification operation and deletion operation of the multimedia task; the second target operation is used to adjust the configuration of the multimedia task.
[0025] Optionally, before detecting whether a control instruction sent from the application layer is received, the method further includes:
[0026] The command generation protocol of the control instruction is set, and the command generation protocol is stored in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the command generation protocol is used to set the command format of the control instruction; the command format at least includes a command name, command description information and command content; the command description information is used to characterize the function of the control instruction, and the command content is used to describe the specific control method of the multimedia function in the middleware layer to be called by the control instruction;
[0027] The detecting whether a control instruction sent from the application layer is received includes:
[0028] Initiating a confirmation request of the instruction generation protocol to the application layer to determine whether the instruction generation protocol is stored in the application layer storage area;
[0029] When it is determined that the instruction generation protocol is stored in the application layer storage area, parsing the operation information sent by the application layer based on the instruction generation protocol stored in the intervention layer storage area to determine whether the control instruction exists in the operation information;
[0030] When it is determined that the instruction generation protocol is not saved in the application layer storage area, the instruction generation protocol saved in the intervention layer storage area is backed up after receiving the operation information sent by the application layer, and the backed-up instruction generation protocol is fed back to the application layer, so that the application layer generates the control instruction according to the backup instruction generation protocol based on the operation information.
[0031] Optionally, the detecting whether a control instruction sent from the application layer is received includes:
[0032] An information transmission service is used to detect whether there is a control instruction issued from the application layer according to a first transmission protocol, wherein the communication transmission service is an information response service dedicated to docking with the application layer; the first transmission protocol includes a hypertext transfer protocol and a secure hypertext transfer protocol.
[0033] In a second aspect, the present application further provides a control device for multimedia functions, which is applied to a multimedia management component, wherein the multimedia management component is arranged in an intervention layer, wherein the intervention layer is arranged between an application layer and a middleware layer, and wherein the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, wherein the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains a control instruction from the application layer; the device comprises:
[0034] a detection unit, configured to detect whether a control instruction sent from the application layer is received, wherein the control instruction is used to control a multimedia function in the middleware layer;
[0035] a determining unit, configured to determine, when detecting the presence of the control instruction, an instruction type of the control instruction, and determine, based on the instruction type, the corresponding dedicated interface as a target interface;
[0036] The control unit is used to call the multimedia function corresponding to the target interface in the middleware layer based on the target interface, so as to control the multimedia function according to the control instruction.
[0037] Optionally, the instruction type includes an instruction type that is an authentication type, and the authentication type is used to characterize that the control instruction is used to obtain an operation token of a multimedia function;
[0038] The determination unit is specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the authentication type when it is determined that the control instruction is used to obtain an operation token for a multimedia function; and determine the dedicated interface corresponding to the authentication type as the target interface.
[0039] Optionally, the instruction type further includes a multimedia task control type, and the multimedia task control type is used to characterize that the control instruction is used to manage a task of multimedia function processing;
[0040] The determination unit is also specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the multimedia task control type when it is determined that the control instruction is used to manage the task of multimedia function processing; and determine the dedicated interface corresponding to the multimedia task control type as the target interface.
[0041] Optionally, the instruction type further includes a multimedia device control type, and the multimedia device control type is used to indicate that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function;
[0042] The determination unit is further specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the multimedia device control type when it is determined that the control instruction is used to obtain setting information of the subsystem device corresponding to the multimedia function; and determine the dedicated interface corresponding to the multimedia device control type as the target interface.
[0043] Optionally, the control unit is specifically used to call the multimedia function corresponding to the target interface in the middleware layer through request information based on the target interface, wherein the request information includes a query request and an operation request; wherein the query request is used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request is used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of a creation operation, a modification operation and a deletion operation of the multimedia task; and the second target operation is used to adjust the configuration of the multimedia task.
[0044] Optionally, the device further comprises:
[0045] A setting unit, used for setting the instruction generation protocol of the control instruction, and storing the instruction generation protocol in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the instruction generation protocol is used for setting the instruction format of the control instruction; the instruction format at least includes an instruction name, instruction description information and instruction content; the instruction description information is used for characterizing the function of the control instruction, and the instruction content is used for describing the specific control method of the multimedia function in the middleware layer to be called by the control instruction;
[0046] The detection unit is specifically used to initiate a confirmation request of the instruction generation protocol to the application layer, so as to determine whether the instruction generation protocol is stored in the application layer storage area; and, when it is determined that the instruction generation protocol is stored in the application layer storage area, parse the operation information issued by the application layer based on the instruction generation protocol stored in the intervening layer storage area to determine whether the control instruction exists in the operation information; and, when it is determined that the instruction generation protocol is not stored in the application layer storage area, back up the instruction generation protocol stored in the intervening layer storage area after receiving the operation information issued by the application layer, and feed back the backed-up instruction generation protocol to the application layer, so that the application layer generates the control instruction from the operation information according to the backed-up instruction generation protocol.
[0047] Optionally, the detection unit is specifically used to detect whether there are control instructions issued from the application layer in accordance with the first transmission protocol through an information transmission service, wherein the communication transmission service is an information response service dedicated to docking with the application layer; the first transmission protocol includes Hypertext Transfer Protocol and Secure Hypertext Transfer Protocol.
[0048] In a third aspect, the present application further provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the control method of the multimedia function described in the first aspect.
[0049] In a fourth aspect, the present application also provides a testing device, comprising a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the control method of the multimedia function described in any one of the first aspects is executed.
[0050] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0051] The present application provides a method and device for controlling multimedia functions, which are applied to a multimedia management component, wherein the multimedia management component is arranged in an intervention layer, wherein the intervention layer is arranged between an application layer and a middleware layer, and wherein the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, wherein the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains a control instruction from the application layer; the present application first detects whether a control instruction issued from the application layer is received, wherein the control instruction is used to control the multimedia function in the middleware layer; then, when the existence of the control instruction is detected, the instruction type of the control instruction is determined, and the corresponding dedicated interface is determined based on the instruction type as a target interface; finally, based on the target interface, the multimedia function corresponding to the target interface in the middleware layer is called so as to control the multimedia function according to the control instruction, thereby realizing a control device for multimedia functions. Compared with the prior art, the method in the present application is applied to a multimedia management component, and the multimedia management component is arranged in an intervention layer. Since the intervention layer is arranged between the application layer and the middleware layer, and the multimedia management component is provided with a dedicated interface capable of calling the multimedia functions of the middleware layer, this ensures that after the application layer issues a control instruction, the dedicated interface of the corresponding instruction can be selected as the target interface based on the multimedia management component in the intervention layer, and the corresponding multimedia function in the middleware layer can be called and controlled with the target interface, thereby realizing the decoupling between the application layer and the middleware layer. In this way, even if the multimedia functions in the subsequent middleware layer are adjusted and updated, the application layer does not need to be updated accordingly, but the multimedia management component in the intervention layer can be directly updated. In this way, for enterprises on one end of the application layer, the update of the middleware layer no longer requires such enterprises to update the software or programs on the application layer side, thereby avoiding the problem of synchronously updating the application layer when the middleware layer is updated, and reducing the development and maintenance costs of the enterprise for the software or programs of the application layer.
[0052] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0054] Figure 1A flowchart of a method for controlling a multimedia function provided by an embodiment of the present application is shown;
[0055] Figure 2 A block diagram showing a control device for multimedia functions provided by an embodiment of the present application is shown;
[0056] Figure 3 A block diagram showing the composition of another multimedia function control device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0057] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0058] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0059] The present application embodiment provides a flowchart of a method for controlling multimedia functions, such as Figure 1 As shown, the method includes:
[0060] 101. Detect whether a control instruction sent from the application layer is received.
[0061] The control instruction is used to control the multimedia function in the middleware layer.
[0062] Generally speaking, the architecture of existing multimedia software is based on the "application layer-middleware layer-hardware driver layer" approach, that is, when operators start to use multimedia functions, they issue instructions from the software or program at the application layer, and then the instructions call the multimedia functions of the middleware layer through the interface between the application layer and the middleware layer, and finally drive the relevant hardware to perform specific operations of the multimedia functions based on the hardware driver layer. Due to the rise of cloud platform services, today's application layer, middleware layer and other architectures can be understood as being deployed in the cloud, and multiple enterprises or companies share the underlying multimedia functions of the middleware layer. In this process, the application layer may deploy multimedia software or programs from multiple different companies or enterprises, so that when each software or program needs to execute a certain multimedia function, it will call and control the relevant multimedia functions of the middleware layer through the interface in the application layer. In this process, once the middleware layer needs to update or adjust a multimedia function, the adjusted related parameters will change. At this time, the software or program in the application layer that has a usage relationship with the multimedia function also needs to be updated and adjusted based on the changes in the middleware layer. This leads to the need for developers of multimedia software to promptly understand the related parameters of the multimedia function that the middleware layer connects to. Not only do they need to understand the related parameters during the development process to ensure that the software or program developed in the application layer can accurately call the related multimedia functions of the middleware layer, but they also need to pay attention to the changes in the related parameters when the multimedia function is updated in the middleware layer, and then update the software or program in the application layer. This leads to the current multimedia control method requiring large development costs and subsequent maintenance costs due to the high coupling between the application layer and the middleware layer.
[0063] In this embodiment, the control method of the multimedia function described in this embodiment is mainly applied to a multimedia management component, which is arranged in an intervention layer, which is arranged between the application layer and the middleware layer. At the same time, the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, and the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer. That is to say, in this embodiment, unlike the previous direct docking method of "application layer-middleware layer", an intervention layer is opened between the two, thereby realizing the architecture of "application layer-intervention layer-middleware layer". In this architecture, when a control instruction is issued in the application layer, the multimedia management component deployed in the intervention layer performs detection, and after detecting the instruction, executes the subsequent execution steps including the beginning of this step.
[0064] In this way, based on the method of this embodiment, after the application layer issues a control instruction, the intervention layer can then detect the instruction to determine whether it is necessary to control and manage multimedia functions based on the instruction. Of course, in this embodiment, the control instruction can be directly issued by the application layer, or the intervention layer can receive the information issued by the application layer and parse it to obtain the information. In this regard, there is no limitation on the generation method of the control instruction, and it can be selected based on actual user needs.
[0065] 102. When the control instruction is detected, determine the instruction type of the control instruction, and determine the corresponding dedicated interface based on the instruction type as the target interface.
[0066] When the existence of a control instruction is detected, it means that an instruction to control a certain multimedia function has been issued in the application layer. In this step, it is necessary to identify what kind of instruction the instruction is, that is, to determine the instruction type of the control instruction, and match it based on the multiple professional interfaces set by the multimedia management component, so as to determine the dedicated interface corresponding to the instruction type as the target interface. In this way, the selection operation from the control instruction to the subsequent interface that can call the relevant multimedia function is realized, thereby ensuring that no matter what kind of instruction is issued in the application layer, it is not necessary to directly issue the function itself, but directly issue the instruction that the intervention layer can recognize and determine the interface, thereby simplifying the content of the control instruction and improving the efficiency of the multimedia function control process.
[0067] 103. Based on the target interface, call the multimedia function corresponding to the target interface in the middleware layer, so as to control the multimedia function according to the control instruction.
[0068] The multimedia management component deployed by the method of this embodiment is equipped with dedicated interfaces for different multimedia functions of the middleware layer. Therefore, after selecting the corresponding dedicated interface, i.e., the target interface, based on the control instruction in the aforementioned step, the relevant multimedia functions in the middleware layer can be directly called through the target interface according to the method of this step. In this way, in the control process of this embodiment, a multimedia control method of application layer-intervention layer-middleware layer is implemented, so that the application layer no longer needs to be directly connected to the middleware layer. When the middleware layer is updated, it is no longer necessary to update the application layer, but only to update the intervention layer. In this way, for enterprises that provide software or programs at the application layer, they no longer need to worry about the problem of the update of the middleware layer of the service platform affecting their application layer. They only need to provide the service platform of the intervention layer and the middleware layer for updating and maintenance.
[0069] Based on this, the present embodiment provides a method for controlling multimedia functions, which is applied to a multimedia management component, wherein the multimedia management component is arranged in an intervention layer, wherein the intervention layer is arranged between the application layer and the middleware layer, and the multimedia management component is provided with a dedicated interface for docking with various multimedia functions in the middleware layer, and the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer; compared with the prior art, in the embodiment of the present application, the method is applied to the multimedia management component, and the multimedia management component is arranged in the intervention layer, because the intervention layer is arranged between the application layer and the middleware layer, and the multimedia management component is provided with a dedicated interface capable of calling the multimedia function of the middleware layer, this ensures This ensures that after a control instruction is issued at the application layer, the dedicated interface of the corresponding instruction can be selected as the target interface based on the multimedia management component in the intervention layer, and the corresponding multimedia function in the middleware layer can be called and controlled with the target interface, thereby realizing the decoupling between the application layer and the middleware layer. In this way, even if the multimedia functions in the subsequent middleware layer are adjusted and updated, the application layer does not need to be updated accordingly, but the multimedia management component in the intervention layer can be directly updated. In this way, for enterprises on one end of the application layer, the update of the middleware layer no longer requires such enterprises to update the software or programs on the application layer side, avoiding the problem of needing to update the application layer synchronously when the middleware layer is updated, and reducing the development and maintenance costs of the enterprise for the software or programs of the application layer.
[0070] Further, in some embodiments, the instruction type includes an instruction type that is an authentication type, and the authentication type is used to characterize that the control instruction is used to obtain an operation token of a multimedia function;
[0071] Based on this, step 102 in the aforementioned embodiment, “when detecting the existence of the control instruction, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface”, when executed, may include:
[0072] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain an operation token for a multimedia function, determining that the instruction type of the control instruction is the authentication type;
[0073] A dedicated interface corresponding to the authentication type is determined as the target interface.
[0074] In some cases, control instructions can be used to control and manage permissions for certain operations related to multimedia functions. In this case, it is necessary to determine the specific interface for this type of instruction. That is, after determining the existence of a detection instruction, if it is determined that the control instruction is used to obtain an operation token for the multimedia function, it means that the control instruction wants to control and manage certain permissions for the multimedia function. Then, it can be determined that the instruction type is an authentication type. Next, based on the authentication type, an interface specifically for authentication is obtained from multiple professional interfaces as the target interface.
[0075] This ensures that when a control instruction wants to manage and control the permissions of multimedia functions, the corresponding dedicated interface can be obtained as the target interface based on the authentication type to which the control instruction belongs, thereby ensuring the accuracy of subsequent calls to related functions based on the target interface, and also ensuring the realization of management and control of the permissions of multimedia functions.
[0076] Furthermore, in some embodiments, the instruction type further includes a multimedia task control type, and the multimedia task control type is used to characterize that the control instruction is used to manage a task of multimedia function processing;
[0077] Based on this, step 102 in the aforementioned embodiment, “when detecting the existence of the control instruction, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface”, when executed, may include:
[0078] After detecting the existence of the control instruction, when it is determined that the control instruction is used to manage the task of multimedia function processing, determining that the instruction type of the control instruction is the multimedia task control type;
[0079] A dedicated interface corresponding to the multimedia task control type is determined as the target interface.
[0080] In this embodiment, since the control instruction itself can also be an instruction for managing the tasks processed by the multimedia function, then in this case, when the control instruction is detected, it is necessary to determine that the instruction type is a multimedia task control type based on the fact that the purpose of the control instruction is to manage the tasks processed by the multimedia function, and select the corresponding dedicated interface based on its type as the target interface. This ensures that when the application layer wants to manage the tasks processed by the multimedia function in the middleware layer, the function can be smoothly implemented.
[0081] Further, in some embodiments, the instruction type further includes a multimedia device control type, and the multimedia device control type is used to characterize that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function;
[0082] Based on this, step 102 in the aforementioned embodiment, “when detecting the existence of the control instruction, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface”, when executed, may include:
[0083] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function, determining that the instruction type of the control instruction is the multimedia device control type;
[0084] A dedicated interface corresponding to the multimedia device control type is determined as the target interface.
[0085] In this embodiment, the control instruction can also be used to manage the setting information of the hardware or system involved in the multimedia function. In this process, it is necessary to select an adapted dedicated interface as the target interface. That is to say, when it is determined that the control instruction is to be used for the setting information of the subsystem device corresponding to the multimedia function, it means that the instruction is to manage and control the relevant setting information of the hardware device involved in the multimedia function. At this time, the instruction type of the control instruction can be determined as the multimedia device control type, and the corresponding dedicated interface can be matched based on the type as the target interface. In this way, it is ensured that when the application layer wants to adjust the settings of the hardware involved in the multimedia function, it can also select an adapted interface based on the method of this embodiment, thereby ensuring that the relevant functions in the middleware layer can be called based on the interface to ensure the smooth implementation of the management and control functions of the setting information of the hardware device.
[0086] Further, in some embodiments, the aforementioned step 103 of the embodiment "based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer so as to control the multimedia function according to the control instruction" can be specifically performed in the following manner during execution:
[0087] Based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer through request information, wherein the request information includes a query request and an operation request;
[0088] Among them, the query request is used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request is used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of the creation operation, modification operation and deletion operation of the multimedia task; the second target operation is used to adjust the configuration of the multimedia task.
[0089] In this embodiment, in the process of interaction between the intervention layer and the middleware layer, the multimedia management component mainly implements the call and control of the relevant multimedia functions of the middleware layer by the target interface based on the request method. Specifically, the multimedia function corresponding to the target interface in the middleware layer is called through the request information. The request information is divided into query request and operation request, wherein the query request, such as GET request, can realize the function of querying the data information related to the multimedia function in the middleware layer; and the other request information is an operation request, such as POST request, which can realize some operations on the tasks managed by the multimedia function of the corresponding target interface in the middleware layer, wherein the first target operation and the second target operation are respectively, the first target operation is mainly to "add, delete and modify" each task, that is, at least one of the creation operation, modification operation and deletion operation, and the second target operation is used to adjust the configuration content of the multimedia task.
[0090] In this way, the interaction between the intervention layer and the middleware layer is realized through two different request methods, ensuring the realization of related behaviors of query and operation. At the same time, the specific operation process can also manage multimedia tasks, ensuring that the intervention layer where the multimedia component is located can realize specific multimedia functions based on the interface by request method based on the control instructions when the interface is determined.
[0091] Furthermore, in some embodiments, before executing step 101 of the aforementioned embodiment "detecting whether a control instruction sent from the application layer is received", the generation process of the control instruction may also be controlled, specifically including:
[0092] An instruction generation protocol for the control instruction is set, and the instruction generation protocol is saved in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the instruction generation protocol is used to set the instruction format of the control instruction; the instruction format at least includes an instruction name, instruction description information, and instruction content; the instruction description information is used to characterize the function of the control instruction, and the instruction content is used to describe the specific control method of the multimedia function in the middleware layer that the control instruction needs to call.
[0093] Since the command generation protocol is used to define and standardize control commands, it ensures that the command can be effectively identified when the application layer subsequently identifies whether to send commands to the intervention layer, thereby avoiding affecting the realization of the control function of the entire multimedia function due to the failure to identify the command.
[0094] Based on this, the step 101 of the above embodiment, “detecting whether a control instruction sent from the application layer is received”, is specifically performed as follows:
[0095] Initiating a confirmation request of the instruction generation protocol to the application layer to determine whether the instruction generation protocol is stored in the application layer storage area;
[0096] There may be two situations in the application layer. One is that it stores the instruction generation protocol, then the control instruction issued at this time is in accordance with the instruction generation protocol, and the other is that the application layer does not store the instruction generation protocol, then the information issued may not be in accordance with the instruction generation protocol. In view of this, the following two situations can be followed:
[0097] On the one hand, when it is determined that the instruction generation protocol is stored in the application layer storage area, the operation information sent by the application layer is parsed based on the instruction generation protocol stored in the intervention layer storage area to determine whether the control instruction exists in the operation information.
[0098] At this time, when it is determined that the application layer stores the instruction generation protocol, it means that the operation information received by the intervention layer from the application layer contains control instructions that comply with the instruction control protocol. Therefore, the intervention layer only needs to parse the control instructions from the operation information according to the instruction generation protocol.
[0099] On the other hand, when it is determined that the instruction generation protocol is not saved in the application layer storage area, the instruction generation protocol saved in the intervention layer storage area is backed up after receiving the operation information sent by the application layer, and the backed-up instruction generation protocol is fed back to the application layer, so that the application layer generates the control instruction according to the backup instruction generation protocol based on the operation information.
[0100] When it is determined that the instruction generation protocol is not saved in the application layer, it means that the received operation information does not involve specific control instructions. Then the intervention layer needs to back up the instruction generation protocol and send the backup to the application layer. In this way, the application layer can generate standardized control instructions based on the instruction generation protocol, which is conducive to the smooth implementation of subsequent multimedia function control.
[0101] Furthermore, in some embodiments, since the application layer is generally the level at which each enterprise's applications and software are deployed, and the intervention layer may need to be deployed on a cloud service platform, in order to separate the application layer and the intervention layer, some transmission protocols between devices can also be used to ensure that the control method of the multimedia functions of the aforementioned embodiments is implemented between different devices.
[0102] In view of this, in the aforementioned embodiment, step 101 of the aforementioned embodiment “detecting whether a control instruction sent from the application layer is received” may also be specifically performed as follows:
[0103] The information transmission service is used to detect whether there is a control instruction issued from the application layer according to the first transmission protocol, wherein the communication transmission service is an information response service dedicated to docking with the application layer; the first transmission protocol includes the Hypertext Transfer Protocol and the Secure Hypertext Transfer Protocol. The Hypertext Transfer Protocol and the Secure Hypertext Transfer Protocol can ensure that the intervention layer and the application layer can be deployed on two different devices respectively, achieving the effect of separating the two, which is conducive to the implementation of the method described in this embodiment in more scenarios and has better practicality. In addition, in this embodiment, the information transmission service can be specifically an HTTP Server, that is, a hypertext transfer service. Based on this service, the function of collecting and detecting information on the application layer at the intervention layer can be realized, and the instructions of each software or program in the application layer can be responded to in real time, ensuring the timely detection effect of the control instructions.
[0104] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, another embodiment of the present application also provides a control device for multimedia functions. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. In order to realize a control method for multimedia functions, the device is specifically as follows Figure 2 As shown, the device is applied to a multimedia management component, the multimedia management component is arranged in an intervention layer, the intervention layer is arranged between the application layer and the middleware layer, the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, and the dedicated interface can be used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer; the device includes:
[0105] A detection unit 21, which may be used to detect whether a control instruction sent from the application layer is received, wherein the control instruction may be used to control a multimedia function in the middleware layer;
[0106] The determining unit 22 may be configured to determine the instruction type of the control instruction when the detecting unit 21 detects the existence of the control instruction, and determine the corresponding dedicated interface as the target interface based on the instruction type;
[0107] The control unit 23 may be configured to call the multimedia function corresponding to the target interface in the middleware layer based on the target interface determined by the determination unit 22, so as to control the multimedia function according to the control instruction.
[0108] Further, such as Figure 3As shown, the instruction type includes an instruction type that is an authentication type, and the authentication type can be used to characterize that the control instruction can be used to obtain an operation token of a multimedia function;
[0109] The determination unit 22 can be specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the authentication type when it is determined that the control instruction can be used to obtain an operation token for a multimedia function; and determine the dedicated interface corresponding to the authentication type as the target interface.
[0110] Further, such as Figure 3 As shown, the instruction type also includes a multimedia task control type, and the multimedia task control type can be used to characterize that the control instruction can be used to manage the task of multimedia function processing;
[0111] The determination unit 22 can also be specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the multimedia task control type when it is determined that the control instruction can be used to manage the task of multimedia function processing; and determine the dedicated interface corresponding to the multimedia task control type as the target interface.
[0112] Further, such as Figure 3 As shown, the instruction type also includes a multimedia device control type, and the multimedia device control type can be used to indicate that the control instruction can be used to obtain setting information of a subsystem device corresponding to a multimedia function;
[0113] The determination unit 22 can also be specifically used to, after detecting the existence of the control instruction, determine that the instruction type of the control instruction is the multimedia device control type when it is determined that the control instruction can be used to obtain setting information of the subsystem device corresponding to the multimedia function; and determine the dedicated interface corresponding to the multimedia device control type as the target interface.
[0114] Further, such as Figure 3 As shown, the control unit 23 can be specifically used to call the multimedia function corresponding to the target interface in the middleware layer through request information based on the target interface, wherein the request information includes a query request and an operation request; wherein the query request can be used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request can be used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of a creation operation, a modification operation and a deletion operation of the multimedia task; the second target operation can be used to adjust the configuration of the multimedia task.
[0115] Further, such as Figure 3 As shown, the device also includes:
[0116] The setting unit 24 can be used to set the instruction generation protocol of the control instruction and save the instruction generation protocol in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the instruction generation protocol can be used to set the instruction format of the control instruction; the instruction format at least includes an instruction name, instruction description information and instruction content; the instruction description information can be used to characterize the function of the control instruction, and the instruction content can be used to describe the specific control method of the multimedia function in the middleware layer to be called by the control instruction;
[0117] The detection unit 21 can be specifically used to initiate a confirmation request for the instruction generation protocol to the application layer, so as to determine whether the instruction generation protocol is stored in the application layer storage area; and, when it is determined that the instruction generation protocol is stored in the application layer storage area, the operation information issued by the application layer is parsed based on the instruction generation protocol set by the setting unit 24 stored in the intervening layer storage area, to determine whether the control instruction exists in the operation information; and, when it is determined that the instruction generation protocol is not stored in the application layer storage area, the instruction generation protocol stored in the intervening layer storage area is backed up after receiving the operation information issued by the application layer, and the backed-up instruction generation protocol is fed back to the application layer, so that the application layer generates the control instruction from the operation information according to the backed-up instruction generation protocol.
[0118] Further, such as Figure 3 As shown, the detection unit 21 can be specifically used to detect whether there is a control instruction issued from the application layer according to the first transmission protocol through an information transmission service, wherein the communication transmission service is an information response service specifically used to connect to the application layer; the first transmission protocol includes the Hypertext Transfer Protocol and the Secure Hypertext Transfer Protocol.
[0119] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application further provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, a control method for controlling the device where the storage medium is located to execute the multimedia function described above.
[0120] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a control device for multimedia functions, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the control method of the multimedia functions described above is executed.
[0121] The embodiment of the present application provides a method and device for controlling multimedia functions, which are applied to a multimedia management component, wherein the multimedia management component is arranged in an intervention layer, wherein the intervention layer is arranged between an application layer and a middleware layer, and the multimedia management component is provided with a dedicated interface for connecting to various multimedia functions in the middleware layer, and the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer; the embodiment of the present application first detects whether a control instruction issued from the application layer is received, and the control instruction is used to control the multimedia function in the middleware layer; then, when the existence of the control instruction is detected, the instruction type of the control instruction is determined, and the corresponding dedicated interface is determined based on the instruction type as the target interface; finally, based on the target interface, the multimedia function corresponding to the target interface in the middleware layer is called so as to control the multimedia function according to the control instruction, thereby realizing a control device for multimedia functions. Compared with the prior art, the method in the embodiment of the present application is applied to a multimedia management component, and the multimedia management component is arranged in the intervention layer. Since the intervention layer is arranged between the application layer and the middleware layer, and the multimedia management component is provided with a dedicated interface capable of calling the multimedia functions of the middleware layer, this ensures that after the application layer issues a control instruction, the dedicated interface corresponding to the instruction can be selected as the target interface based on the multimedia management component in the intervention layer, and the corresponding multimedia function in the middleware layer can be called and controlled with the target interface, thereby realizing the decoupling between the application layer and the middleware layer. In this way, even if the multimedia functions in the subsequent middleware layer are adjusted and updated, the application layer does not need to be updated accordingly, but the multimedia management component in the intervention layer can be directly updated. In this way, for enterprises on one end of the application layer, the update of the middleware layer no longer requires such enterprises to update the software or programs on the application layer side, thereby avoiding the problem of synchronously updating the application layer when the middleware layer is updated, and reducing the development and maintenance costs of the enterprise for the software or programs of the application layer.
[0122] The control device for the multimedia function includes a processor and a memory. The above-mentioned detection unit, determination unit, and control unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0123] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and a control method for multimedia functions is implemented by adjusting kernel parameters to achieve decoupling of the application layer and the middleware layer, avoiding the problem of synchronously updating the application layer when the middleware layer is updated, thereby reducing the overall development and maintenance costs of multimedia software.
[0124] An embodiment of the present application provides a testing device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the control method of the multimedia function described in any one of the above is executed.
[0125] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is executed, a device where the storage medium is located is controlled to execute the control method of the multimedia function described above.
[0126] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0127] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: detecting whether a control instruction issued from the application layer is received, the control instruction being used to control the multimedia function in the middleware layer; when the existence of the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface; based on the target interface, calling the multimedia function of the corresponding target interface in the middleware layer so as to control the multimedia function according to the control instruction.
[0128] Further, the instruction type includes an instruction type that is an authentication type, and the authentication type is used to characterize that the control instruction is used to obtain an operation token of a multimedia function;
[0129] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0130] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain an operation token for a multimedia function, determining that the instruction type of the control instruction is the authentication type;
[0131] A dedicated interface corresponding to the authentication type is determined as the target interface.
[0132] Furthermore, the instruction type also includes a multimedia task control type, and the multimedia task control type is used to characterize that the control instruction is used to manage the task of multimedia function processing;
[0133] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0134] After detecting the existence of the control instruction, when it is determined that the control instruction is used to manage the task of multimedia function processing, determining that the instruction type of the control instruction is the multimedia task control type;
[0135] A dedicated interface corresponding to the multimedia task control type is determined as the target interface.
[0136] Furthermore, the instruction type also includes a multimedia device control type, and the multimedia device control type is used to indicate that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function;
[0137] When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes:
[0138] After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function, determining that the instruction type of the control instruction is the multimedia device control type;
[0139] A dedicated interface corresponding to the multimedia device control type is determined as the target interface.
[0140] Further, based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer so as to control the multimedia function according to the control instruction includes:
[0141] Based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer through request information, wherein the request information includes a query request and an operation request;
[0142] Among them, the query request is used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request is used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of the creation operation, modification operation and deletion operation of the multimedia task; the second target operation is used to adjust the configuration of the multimedia task.
[0143] Furthermore, before detecting whether a control instruction sent from the application layer is received, the method further includes:
[0144] The command generation protocol of the control instruction is set, and the command generation protocol is stored in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the command generation protocol is used to set the command format of the control instruction; the command format at least includes a command name, command description information and command content; the command description information is used to characterize the function of the control instruction, and the command content is used to describe the specific control method of the multimedia function in the middleware layer to be called by the control instruction;
[0145] The detecting whether a control instruction sent from the application layer is received includes:
[0146] Initiating a confirmation request of the instruction generation protocol to the application layer to determine whether the instruction generation protocol is stored in the application layer storage area;
[0147] When it is determined that the instruction generation protocol is stored in the application layer storage area, parsing the operation information sent by the application layer based on the instruction generation protocol stored in the intervention layer storage area to determine whether the control instruction exists in the operation information;
[0148] When it is determined that the instruction generation protocol is not saved in the application layer storage area, the instruction generation protocol saved in the intervention layer storage area is backed up after receiving the operation information sent by the application layer, and the backed-up instruction generation protocol is fed back to the application layer, so that the application layer generates the control instruction according to the backup instruction generation protocol based on the operation information.
[0149] Further, the detecting whether a control instruction sent from the application layer is received includes:
[0150] An information transmission service is used to detect whether there is a control instruction issued from the application layer according to a first transmission protocol, wherein the communication transmission service is an information response service dedicated to docking with the application layer; the first transmission protocol includes a hypertext transfer protocol and a secure hypertext transfer protocol.
[0151] The present application also provides a computer program product that can execute corresponding functions, including: detecting whether a control instruction issued from the application layer is received, the control instruction being used to control the multimedia function in the middleware layer; when the existence of the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface; based on the target interface, calling the multimedia function of the corresponding target interface in the middleware layer so as to control the multimedia function according to the control instruction.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0156] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0157] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0160] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0161] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for controlling multimedia functions, characterized in that: Applied to a multimedia management component, the multimedia management component is arranged in an intervention layer, the intervention layer is arranged between an application layer and a middleware layer, the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer; the method comprises: Detecting whether a control instruction sent from the application layer is received, wherein the control instruction is used to control the multimedia function in the middleware layer; When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface based on the instruction type as the target interface; Based on the target interface, the multimedia function corresponding to the target interface in the middleware layer is called so as to control the multimedia function according to the control instruction.
2. The method according to claim 1, characterized in that The instruction type includes an instruction type that is an authentication type, and the authentication type is used to characterize that the control instruction is used to obtain an operation token of a multimedia function; When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes: After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain an operation token for a multimedia function, determining that the instruction type of the control instruction is the authentication type; A dedicated interface corresponding to the authentication type is determined as the target interface.
3. The method according to claim 1, characterized in that The instruction type also includes a multimedia task control type, and the multimedia task control type is used to indicate that the control instruction is used to manage the task of multimedia function processing; When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes: After detecting the existence of the control instruction, when it is determined that the control instruction is used to manage the task of multimedia function processing, determining that the instruction type of the control instruction is the multimedia task control type; A dedicated interface corresponding to the multimedia task control type is determined as the target interface.
4. The method according to claim 1, characterized in that: The instruction type also includes a multimedia device control type, and the multimedia device control type is used to indicate that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function; When the control instruction is detected, determining the instruction type of the control instruction, and determining the corresponding dedicated interface as the target interface based on the instruction type, includes: After detecting the existence of the control instruction, when it is determined that the control instruction is used to obtain setting information of a subsystem device corresponding to a multimedia function, determining that the instruction type of the control instruction is the multimedia device control type; A dedicated interface corresponding to the multimedia device control type is determined as the target interface.
5. The method according to claim 1, characterized in that: The calling of the multimedia function corresponding to the target interface in the middleware layer based on the target interface so as to control the multimedia function according to the control instruction includes: Based on the target interface, calling the multimedia function corresponding to the target interface in the middleware layer through request information, wherein the request information includes a query request and an operation request; Among them, the query request is used to perform data query on the multimedia function of the middleware layer corresponding to the target interface; the operation request is used to perform a first target operation or a second target operation on the task managed by the multimedia function of the middle layer corresponding to the target interface; the first target operation includes at least one of the creation operation, modification operation and deletion operation of the multimedia task; the second target operation is used to adjust the configuration of the multimedia task.
6. The method according to any one of claims 1 to 5, characterized in that Before detecting whether a control instruction sent from the application layer is received, the method further includes: The command generation protocol of the control instruction is set, and the command generation protocol is stored in a preset storage area, wherein the preset storage area includes the application layer storage area and the intervention layer storage area; the command generation protocol is used to set the command format of the control instruction; the command format at least includes a command name, command description information and command content; the command description information is used to characterize the function of the control instruction, and the command content is used to describe the specific control method of the multimedia function in the middleware layer to be called by the control instruction; The detecting whether a control instruction sent from the application layer is received includes: Initiating a confirmation request of the instruction generation protocol to the application layer to determine whether the instruction generation protocol is stored in the application layer storage area; When it is determined that the instruction generation protocol is stored in the application layer storage area, parsing the operation information sent by the application layer based on the instruction generation protocol stored in the intervention layer storage area to determine whether the control instruction exists in the operation information; When it is determined that the instruction generation protocol is not saved in the application layer storage area, the instruction generation protocol saved in the intervention layer storage area is backed up after receiving the operation information sent by the application layer, and the backed-up instruction generation protocol is fed back to the application layer, so that the application layer generates the control instruction according to the backup instruction generation protocol based on the operation information.
7. The method according to any one of claims 1 to 5, characterized in that The detecting whether a control instruction sent from the application layer is received includes: An information transmission service is used to detect whether there is a control instruction issued from the application layer according to a first transmission protocol, wherein the communication transmission service is an information response service dedicated to docking with the application layer; the first transmission protocol includes a hypertext transfer protocol and a secure hypertext transfer protocol.
8. A control device for multimedia functions, characterized in that: Applied to a multimedia management component, the multimedia management component is arranged in an intervention layer, the intervention layer is arranged between the application layer and the middleware layer, the multimedia management component is provided with a dedicated interface for docking various multimedia functions in the middleware layer, the dedicated interface is used to call the multimedia function corresponding to the control instruction in the middleware layer when the multimedia management component obtains the control instruction from the application layer; the device comprises: a detection unit, configured to detect whether a control instruction sent from the application layer is received, wherein the control instruction is used to control a multimedia function in the middleware layer; a determining unit, configured to determine, when detecting the presence of the control instruction, an instruction type of the control instruction, and determine, based on the instruction type, the corresponding dedicated interface as a target interface; The control unit is used to call the multimedia function corresponding to the target interface in the middleware layer based on the target interface, so as to control the multimedia function according to the control instruction.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the control method of the multimedia function described in any one of claims 1 to 7.
10. A testing device, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the control method of the multimedia function described in any one of claims 1-7 is executed.