A method, device, equipment and medium for calling multimedia data
By implementing multimedia data call in the on-board system, and using the source SDK and player interface to parse and control the multimedia data, the problem that the on-board system cannot play different multimedia data is solved, and the user experience and development efficiency are improved.
Patent Information
- Application Number
- CN202211390390.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2042-11-04
AI Technical Summary
The existing on-board system cannot play different multimedia audio and video data through one player, resulting in single functions and poor user experience.
Provide a method of multimedia data calling, by receiving a multimedia data calling request, determining the media service component that executes the request, obtaining the corresponding source SDK, analyzing and sending multimedia data calling instructions, receiving the data of the source response, and through The player interface controls the playback mode of audio and video data to realize the display and playback of multimedia data.
It realizes the playback of media data from multiple third-party platforms through one player, reduces attention to multiple decoders, improves development and iteration efficiency, and provides a better user interface and interactive experience.
Smart Images

Figure CN115766883B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of vehicle-mounted terminal systems, and in particular relates to a method, device, equipment and storage medium for calling multimedia data. Background Art
[0002] Media player usually refers to the playback software used to play multimedia in the computer, which gathers decoders together to produce the playback function. In the existing in-vehicle media applications, there is no separate player, and all use the playback function of existing applications. For example, if you want to play: online music, online radio, local music and Bluetooth music and other media, you need to use a separate player. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method, device, equipment and medium for calling multimedia data to solve the problem that the existing vehicle-mounted system application cannot play different multimedia audio and video data through one player.
[0004] To achieve the above-mentioned purpose and other related purposes, the present invention provides a method for calling multimedia data, which is applied to a vehicle-mounted terminal and includes the following steps:
[0005] Receiving multimedia data call request;
[0006] According to the multimedia data call request, determine the media service component that executes the multimedia data call request, and obtain the corresponding information source SDK and information source;
[0007] Parsing the multimedia data call request through the information source SDK corresponding to the media service component, and sending the multimedia data call instruction obtained by the parsing to the information source;
[0008] receiving multimedia data sent by the information source in response to the multimedia data calling instruction;
[0009] Throws out the media data display page.
[0010] In an optional embodiment of the present invention, the step of receiving the multimedia data sent by the information source in response to the multimedia data calling instruction further includes the following steps:
[0011] The multimedia data received from multiple sources are fused and processed.
[0012] In an optional embodiment of the present invention, the step of throwing out the media data display page includes:
[0013] In response to a user's operation on the data display page, generating a playback control instruction;
[0014] Calling a player interface corresponding to the multimedia data according to the playback control instruction;
[0015] Obtaining audio and video data from a source through the player interface;
[0016] Identify the audio and video data, and control the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data;
[0017] A playback status display page of the audio and video data is thrown.
[0018] In an optional embodiment of the present invention, the step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data includes:
[0019] When the type of audio and video data is streaming media data, the streaming media playback mode is adopted.
[0020] In an optional embodiment of the present invention, the step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data includes:
[0021] When the parameter format of the audio and video data is a string starting with Bluetooth, the Bluetooth playback mode is used.
[0022] In an optional embodiment of the present invention, the step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data includes:
[0023] When the parameter format of the audio and video data is a local relative path URI, the local playback mode is used.
[0024] In an optional embodiment of the present invention, the step of receiving a media data call request includes:
[0025] Initialize the media service component.
[0026] In an optional embodiment of the present invention, the device comprises:
[0027] The data parsing module is used to receive a multimedia data call request; determine a media service component that can execute the multimedia data call request according to the multimedia data call request; send the multimedia data call request to the media service component; and obtain a source SDK corresponding to the media service component;
[0028] Data acquisition module: parses the media data call request into a data call instruction recognizable by the source through the source SDK, and establishes a link with the source; receives the media data sent by the source in response to the data call instruction; and throws out a media data display page.
[0029] In an optional embodiment of the present invention, an electronic device includes:
[0030] one or more processors;
[0031] A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method for calling multimedia data as described in any one of claims 1 to 7.
[0032] In an optional embodiment of the present invention, a computer-readable storage medium stores a computer program, which, when executed by a processor of a computer, enables the computer to execute the method for calling multimedia data as described in any one of claims 1 to 7.
[0033] Beneficial effects of the present invention: The multimedia data calling method of the present application can integrate multiple audio decoders, and the multimedia data calling method of the present application can play media from multiple third-party platforms. When it is necessary to use the control and status of the player, only the abstract interface provided by the player is needed, instead of the interface of the specific decoder. This provides us with a solution for expanding the integration of multiple decoders, so that the product can focus more on providing users with interface and interactive experience, reducing the focus on multiple decoder functions, and greatly improving the development efficiency and product iteration efficiency.
[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0036] Figure 1 is a schematic diagram of a scenario of multimedia data calling provided by an embodiment of the present invention;
[0037] Figure 2 It is a flowchart of the steps of the multimedia data calling method provided by an embodiment of the present invention;
[0038] Figure 3 is a flowchart of the steps of playing multimedia data provided by an embodiment of the present invention
[0039] Figure 4 It is a block diagram of obtaining multimedia data provided by an embodiment of the present invention;
[0040] Figure 5 is a block diagram of playing multimedia data provided by an embodiment of the present invention;
[0041] Figure 6 is a block diagram of a fusion player provided by an embodiment of the present invention;
[0042] Figure 7 It is a functional module block diagram of a multimedia data calling device provided by an embodiment of the present invention;
[0043] Figure 8 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0045] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0046] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0047] First of all, it should be noted that SDK[1] is the abbreviation of Software Development Kit, which means " Software Development Kit This is a term with a very broad coverage, which can be said as follows: Assistance The collection of documents, examples, and tools related to the development of a certain type of software can be called an "SDK". Specifically for this series of tutorials, we will only discuss a subset of the broad SDK - the SDK used to develop applications under the Windows platform. In order to use API functions, we need to have .H and .LIB files corresponding to the API, and the SDK provides a complete set of related files, examples, and tools needed to develop Windows applications. "Toolkit". So far, we have really explained the meaning of SDK. Because the SDK contains the necessary information for using the API, people often call the development method of using only the API to write Windows applications "SDK". programming ". API and SDK are necessary for developing Windows applications, so other programming Frameworks and class libraries are built on them, such as VCL and MFC. Although they have a higher level of abstraction than "SDK programming", this does not prevent them from directly calling API functions whenever needed.
[0048] An interface is a protocol that defines Reference Types It is a special form of code used to implement data interaction between different modules in the software system. To ensure normal data interaction between upstream and downstream modules, the name and specific implementation of the output interface of the upstream module must be consistent with the name and specific implementation of the output interface of the downstream module.
[0049] Figure 1 A scenario diagram of multimedia call data provided by an embodiment of the present invention is an architecture for multimedia data call. This framework is divided into an interface layer and a business group layer. The interface layer provides an abstract interface for external applications to provide capabilities, including a data acquisition class interface and a playback control interface. The business component layer includes all components that specifically implement the functions of the fusion player, including an online music component, an online radio component, a local music component, a Bluetooth music component, and a fusion player component. Among them, the online music component includes an online music component SDK, and the online radio component includes an online radio component SDK; the local music component includes a local music scanning USB, hard disk and other storage media media media scanning, and the Bluetooth music component includes a Bluetooth stack protocol. The fusion player business component is mainly the implementation of the control interface. When an external application calls the player's play / pause, up and down song and other interfaces, the player will use the playback state machine to obtain what service the currently playing media is using. If it is currently online music, the player will route the method call to the online music playback agent held by the player. The online music playback agent follows up the incoming parameters, finds the specific player that is playing music, and calls the API corresponding to the decoder to control it, so as to achieve the purpose of controlling media playback.
[0050] Figure 2 The method for calling multimedia data provided by an embodiment of the present invention is a flowchart of steps; it is applied to a vehicle terminal to play audio and video data of different multimedia through only one player, and its specific steps include:
[0051] S210 receives a multimedia data calling request;
[0052] S211 determines, according to the multimedia data call request, a media service component that executes the multimedia data call request, and obtains a corresponding information source SDK and information source;
[0053] S212 parses the multimedia data call request through the information source SDK corresponding to the media service component, and sends the multimedia data call instruction obtained by parsing to the information source;
[0054] S213 receives the multimedia data sent by the information source in response to the multimedia data calling instruction;
[0055] S214 throws out a media data display page.
[0056] The user sends a multimedia data call request, the vehicle-mounted end receives the multimedia data call request, determines the media service component that executes the multimedia data call request based on the multimedia data call request, and obtains the source SDK and source corresponding to the service component; parses the multimedia data call request through the source SDK corresponding to the media service component, sends the multimedia data call instruction obtained by the analysis to the source, and receives the multimedia data sent by the source in response to the multimedia data call instruction; throws the multimedia data to the multimedia data display page. This is the detailed step of multimedia data retrieval. At this time, the multimedia data cannot be played. When the user sends a call request to play multimedia data, the vehicle-mounted fusion player will decode and process the multimedia data according to the service component to which the multimedia data belongs.
[0057] In addition, before the step of receiving the media data call request, the following steps are included:
[0058] Initialize the media service component.
[0059] Figure 3 is a flowchart of the steps of playing multimedia data provided by an embodiment of the present invention; the step of playing multimedia data is after the step of throwing the media data display page;
[0060] S310 generates a playback control instruction in response to the user's operation on the data display page;
[0061] S311 calls a player interface corresponding to the multimedia data according to the playback control instruction;
[0062] S312 obtains the audio and video data sent by the source through the player interface;
[0063] S313 identifies the audio and video data, and controls the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data;
[0064] S314 throws out the playing status display page of the audio and video data.
[0065] The detailed steps of playing multimedia data include: the user issues an instruction to play multimedia data, the vehicle-mounted terminal responds to the user's operation on the data display page and generates a playback control instruction; the player interface corresponding to the multimedia data is called according to the playback control instruction; the audio and video data sent by the source is obtained through the player interface; the fusion player identifies the audio and video data, and controls the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data; and the playback status display page of the audio and video data is thrown. In the actual application display interface, the music with the same name may come from different media service components. The fusion player will return all the music data from different media, and the user can choose his or her own preferences to selectively play the music with the same name but from different sources according to his or her needs.
[0066] Figure 4This is a block diagram for obtaining multimedia data provided by an embodiment of the present invention. The user issues a multimedia data call request, and the vehicle-mounted terminal receives the multimedia data call request. According to the multimedia data call request, the media service component that executes the multimedia data call request is determined, and the source SDK and the source corresponding to the service component are obtained; the multimedia data call request is parsed by the source SDK corresponding to the media service component, and the multimedia data call instruction obtained by the parsing is sent to the source, and the multimedia data sent by the source in response to the multimedia data call instruction is received; the multimedia data is thrown out of the multimedia data display page. The incoming parameter protocol of the multimedia data call request is URL and Parameter, url is the first parameter, the String type structure is host / domain / service / action, host is the running process specified by the framework, domain is the component running in the process, service is the service running in the component, action is the method provided to the outside in the service, and Parameter is the second parameter String type json string, which is determined by the method of the specific service in the component, and the two parameters determine which method of the service component is accessed. It should be noted that the method provided by this solution can also obtain video data in other application scenarios.
[0067] After the step of receiving the multimedia data sent by the information source in response to the multimedia data call instruction, the step also includes: fusing the multimedia data sent by the received multiple information sources, and the fusing strategy can be configured according to the local strategy, including but not limited to priority comparison, singer name score comparison, etc. Then the fused multimedia data is returned to the page through the SDK for display.
[0068] Figure 5 It is a block diagram of playing multimedia data provided by an embodiment of the present invention; the specific process is that a user issues an instruction to play multimedia data, and the vehicle-mounted terminal responds to the user's operation on the data display page to generate a playback control instruction; the player interface corresponding to the multimedia data is called according to the playback control instruction; the audio and video data sent by the source is obtained through the player interface; the fusion player recognizes the audio and video data, and controls the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data; and the playback status display page of the audio and video data is thrown.
[0069] The fusion player identifies the audio and video data, and controls the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data. In this step, the playback mode of the audio and video data is controlled according to the playback control instruction and the type of the audio and video data as follows:
[0070] When the player determines that the type of audio data is streaming media data, it adopts the streaming media playback mode;
[0071] When the player determines that the parameter format of the audio data is a string beginning with Bluetooth, it uses the Bluetooth playback mode;
[0072] When the parameter format of the player's audio and video data is the URI of a local relative path, the local playback mode is used.
[0073] Figure 6 This is a block diagram of a fusion player provided by an embodiment of the present invention. When a user calls the player's play / pause, download and upload interfaces, the player uses the playback state machine to obtain what service the currently playing media uses. If the current media is online music, the player routes the method call to the online music playback agent held by the player. The online music playback agent follows up on the passed parameters, finds the specific player that is playing the music, and calls the API corresponding to the decoder to control it, thereby achieving the purpose of controlling media playback.
[0074] Figure 7 This is a functional module block diagram of a multimedia data calling device provided by an embodiment of the present invention. The specific functional modules are described as follows:
[0075] The data parsing module is used to receive a multimedia data call request; determine a media service component that can execute the multimedia data call request according to the multimedia data call request; send the multimedia data call request to the media service component; and obtain a source SDK corresponding to the media service component;
[0076] Data acquisition module: parses the media data call request into a data call instruction recognizable by the source through the source SDK, and establishes a link with the source; receives the media data sent by the source in response to the data call instruction; and throws out a media data display page.
[0077] In an optional embodiment of the present invention, an electronic device includes:
[0078] one or more processors;
[0079] A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method for calling multimedia data as described in any one of claims 1 to 7.
[0080] In an optional embodiment of the present invention, a computer-readable storage medium stores a computer program, which, when executed by a processor of a computer, enables the computer to execute the method for calling multimedia data as described in any one of claims 1 to 7.
[0081] To achieve the above-mentioned purpose and other related purposes, a computer-readable storage medium is provided, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer executes the method for calling multimedia data as described in any one of claims 1 to 7.
[0082] It should be noted that the multimedia data calling device provided in the above embodiment and the multimedia data calling method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the road condition refreshing device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0083] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the method for multimedia data calling provided in the above-mentioned embodiments.
[0084] Figure 8 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0085] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method described in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0086] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 808 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 808 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0087] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 808, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0088] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0089] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0090] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0091] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the method for calling multimedia data as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0092] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for calling multimedia data provided in each of the above embodiments.
[0093] In summary, the method for calling multimedia data in this application can integrate multiple audio decoders and can decode media from multiple third-party platforms. The multimedia data calling framework of this application is divided into an interface layer and a business group layer. The interface layer provides an abstract interface for external applications to provide capabilities, including a data acquisition class interface and a playback control interface. The business component layer contains all components that specifically implement the functions of the fusion player, including online music components, online radio components, local music components, Bluetooth music components, and fusion player components. Among them, the online music component includes an online music component SDK, and the online radio component includes an online radio component SDK; the local music component includes a local music scanning USB, hard disk and other storage media media media scanning, and the Bluetooth music component includes a Bluetooth stack protocol. The fusion player business component is mainly the implementation of the control interface. When an external application calls the player's play / pause, up and down song and other interfaces, the player will use the playback state machine to obtain what service is used by the currently playing media. If it is currently online music, the player will route the method call to the online music playback agent held by the player. The online music playback agent follows up the incoming parameters, finds the specific player that is playing music, and calls the API corresponding to the decoder to control it, so as to achieve the purpose of controlling media playback. When you need to control the player and get its status, you only need to use the abstract interface provided by the player instead of the specific decoder interface. This provides us with a solution for expanding multi-decoder integration, allowing the product to focus more on providing users with interface and interactive experience and reduce the focus on multi-decoder functions, greatly improving development efficiency and product iteration efficiency.
[0094] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for calling multimedia data, characterized in that: Applied to vehicle terminals, including the following steps: Receiving multimedia data call request; According to the multimedia data call request, determine the media service component that executes the multimedia data call request, and obtain the corresponding information source SDK and information source; Parsing the multimedia data call request through the information source SDK corresponding to the media service component, and sending the multimedia data call instruction obtained by the parsing to the information source; receiving multimedia data sent by the information source in response to the multimedia data calling instruction; The multimedia data received from multiple sources are fused according to a preset fusion strategy, and the fused multimedia data are returned to the page through the media service SDK, wherein the preset fusion strategy includes priority comparison and singer name score comparison; Throw out a multimedia data display page; A multimedia data playback request from a user is received, and a fusion player service component decodes and processes the multimedia data according to the multimedia data playback request, wherein the fusion player service component includes decoders of multiple signal sources.
2. A method for calling multimedia data according to claim 1, characterized in that: The receiving of the multimedia data playing request from the user, and the fusion player component decoding the multimedia data according to the multimedia data playing request, comprises: In response to a user's operation on the data display page, generating a playback control instruction; Calling a player interface corresponding to the multimedia data according to the playback control instruction; Obtaining audio and video data from a source through the player interface; Identify the audio and video data, and control the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data; A playback status display page of the audio and video data is thrown.
3. The method for calling multimedia data according to claim 2, characterized in that: The step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data comprises: When the type of audio and video data is streaming media data, the streaming media playback mode is adopted.
4. The method for calling multimedia data according to claim 2, characterized in that: The step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data comprises: When the parameter format of the audio and video data is a string starting with Bluetooth, the Bluetooth playback mode is used.
5. The method for calling multimedia data according to claim 2, characterized in that: The step of controlling the playback mode of the audio and video data according to the playback control instruction and the type of the audio and video data comprises: When the parameter format of the audio and video data is a local relative path URI, the local playback mode is used.
6. The method for calling multimedia data according to claim 1, characterized in that: The step of receiving a multimedia data call request includes: Initialize the media service component.
7. A multimedia data calling device, characterized in that: The device comprises: The data parsing module is used to receive a multimedia data call request; determine a media service component that can execute the multimedia data call request according to the multimedia data call request; send the multimedia data call request to the media service component; and obtain a source SDK corresponding to the media service component; Data acquisition module: parsing the multimedia data call request into a data call instruction recognizable by the source through the source SDK, and establishing a link with the source; receiving the media data sent by the source in response to the data call instruction; fusing the multimedia data received from multiple sources according to a preset fusion strategy, and returning the fused multimedia data to the page through the media service SDK, wherein the preset fusion strategy includes priority comparison and singer name score comparison; throwing out a multimedia data display page; receiving a multimedia data playback request sent by a user, and the fusion player component decodes the multimedia data according to the multimedia data playback request, wherein the fusion player service component includes decoders for multiple sources.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method for calling multimedia data as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method for calling multimedia data as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle-mounted multimedia resources acquisition method and device, vehicle and storage medium
CN114065026A