Playing and displaying method of playing data and related device
By aggregating multimedia services to scan and register the controller of media applications in the vehicle multimedia system, write to the target framework and send data, the problem of excessive memory usage during display of multimedia applications is solved, and performance optimization and stability improvement is achieved.
Patent Information
- Application Number
- CN202311460465.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-06
AI Technical Summary
When displaying the playback data of multiple multimedia applications, vehicle multimedia systems need to cross-process links and transit layers to process, resulting in excessive memory usage and degradation of performance.
By aggregating multimedia services, scanning media applications within the target system, registering monitoring media controllers, writing to the target framework, sending data to the multimedia playback data display, reducing the memory usage and cross-process times of multiple multimedia services.
It effectively reduces the system memory space occupied by multiple multimedia services, optimizes performance, and improves system stability.
Smart Images

Figure CN119946359A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data playback, and in particular to a playback and display method of playback data and a related device. Background Art
[0002] If the playback data of a multimedia application in a vehicle is to be displayed in another application in the vehicle, a cross-process solution is required. At the same time, as more and more applications display playback data, each vehicle playback application needs to link to multiple media services. At this time, a transfer layer is needed to link multiple media services and then link the vehicle playback application. This display and playback method will occupy a large amount of memory space in the vehicle multimedia system, resulting in problems such as performance degradation of the vehicle multimedia system. Summary of the invention
[0003] In view of this, an embodiment of the present application provides a method and related device for playing and displaying playback data to reduce the system memory space occupied by multiple multimedia services, thereby avoiding problems such as performance degradation of the vehicle multimedia system.
[0004] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0005] A method for displaying playback data is applied to an aggregated multimedia service, wherein the aggregated multimedia service is used to perform the duties of each multimedia service and a multimedia playback data transfer layer, and the method comprises:
[0006] Scan each media application in the target system to obtain a target media application, wherein each media application is a media application using a target framework;
[0007] Registering and monitoring the media controller of the target media application to obtain media information of the target media application;
[0008] Writing the media information of the target media application into the target framework to obtain target data;
[0009] The target data is sent to the multimedia playback data display terminal for playback and display.
[0010] In a possible implementation, the method further includes:
[0011] Get the vehicle power-on status;
[0012] When the vehicle is powered on in the preset power-on state, the scanning of each media application in the target system to obtain the target media application and subsequent steps are performed.
[0013] In a possible implementation manner, the media information of the target media application includes: play data and play status.
[0014] In a possible implementation, sending the target data to a multimedia playback data display terminal for playback and display includes:
[0015] A cross-process link is established with the multimedia playback data display terminal, so that the playback data is sent to the multimedia playback data display terminal through the cross-process link for playback and display.
[0016] In a possible implementation, the method further includes:
[0017] When the target media application is not obtained by scanning various media applications in the target system, a connection failure prompt and a reconnection inquiry are generated.
[0018] In a possible implementation, the method further includes:
[0019] Obtaining a response to the reconnection query;
[0020] When the inquiry response matches the preset response, the various media applications in the target system are scanned again until the target media application is obtained.
[0021] A device for playing and displaying playing data, the device comprising:
[0022] A scanning unit, configured to scan various media applications in a target system to obtain target media applications, wherein the various media applications are media applications using a target framework;
[0023] A registration monitoring unit, used for registering and monitoring the media controller of the target media application to obtain the media information of the target media application;
[0024] A writing unit, used for writing the media information of the target media application into the target framework to obtain target data;
[0025] The sending unit is used to send the target data to the multimedia playback data display terminal for playback and display.
[0026] In a possible implementation manner, the device further includes:
[0027] A first acquisition unit, used to acquire a power-on state of the vehicle;
[0028] An execution unit, when the vehicle is powered on in a preset state, is used to execute the scanning of various media applications in the target system to obtain a target media application and subsequent steps.
[0029] An electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the memory, wherein when the processor executes the computer program, the method for playing and displaying the playing data as described above is implemented.
[0030] A vehicle comprises an aggregate multimedia service, wherein the aggregate multimedia service is used to execute the playback and display method of playback data as described above.
[0031] Compared with the prior art, this application has the following beneficial effects:
[0032] The present application provides a method and related device for playing and displaying playback data. In the present application, the aggregated multimedia service can perform the duties of each multimedia service, that is, multimedia resources can be shared by aggregating multimedia services. Therefore, by aggregating multimedia services to send the target data to the multimedia playback data display terminal for playback and display, it is avoided that each multimedia service is independently loaded and occupies memory. Compared with each service running independently, the aggregated service can manage media resources more efficiently, reducing repeated loading and resource redundancy. In addition, the aggregated multimedia service of the present application also assumes the responsibility of the media playback data transfer layer to send the target data to the multimedia playback data display terminal for playback and display, reducing the number of cross-process times and optimizing performance. While reducing the system memory space occupied by multiple multimedia services, it also improves system stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A method flow chart of a method for playing and displaying playback data provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of a playback and display device for playback data provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0038] If the playback data of a multimedia application (e.g., Kuwo music software, NetEase Cloud music software, QQ music software, etc.) of a vehicle is to be displayed in another application (e.g., the vehicle instrument panel) of the vehicle, a cross-process solution is required. For example, if the "multimedia application" is Kuwo music software and the "other application" that displays multimedia data is the vehicle instrument panel, Kuwo music software can interact with the Android system if it wants to display the playback data on the vehicle instrument panel. Of course, the premise is that Kuwo music software will interact with the Android system for the playback data, and then the vehicle instrument panel will interact with the Android system, and the vehicle instrument panel can then display the playback data of Kuwo music software. This interaction process is the cross-process solution.
[0039] At the same time, as more and more applications are used to display and play data, each vehicle's playback application (that is, another application in the vehicle (for example, the vehicle instrument panel)) needs to link to multiple media services. At this time, a transit layer is needed to link multiple media services, and then link the vehicle's playback application. In other words, the vehicle's playback application needs to be linked using the media service and the transit layer to receive the playback data of the multimedia application. This display and playback method will take up a large amount of memory space in the vehicle's multimedia system, leading to problems such as performance degradation of the vehicle's multimedia system. Therefore, how to reduce the system memory space occupied by multiple multimedia services, thereby avoiding problems such as performance degradation of the vehicle's multimedia system, is a technical problem that technicians in this field urgently need to solve.
[0040] In order to solve this problem, an embodiment of the present application provides a method and related device for playing and displaying playback data. The aggregated multimedia service first obtains the target media application by scanning each media application in the target system, wherein each media application is a media application using the target framework, and registers and monitors the media controller of the target media application to obtain the media information of the target media application. The media information of the target media application is then written into the target framework to obtain the target data, and then the target data is sent to the multimedia playback data display terminal for playback and display. The present application sends the target data to the multimedia playback data display terminal for playback and display by aggregated multimedia services, thereby reducing the system memory space occupied by multiple multimedia services. In addition, the aggregated multimedia service of the present application also assumes the responsibility of the media playback data transfer layer to send the target data to the multimedia playback data display terminal for playback and display, thereby reducing the number of cross-process times and optimizing performance.
[0041] In order to facilitate understanding of the playback display method of playback data provided in the embodiment of the present application. The playback display method of playback data provided in the embodiment of the present application is applied to aggregated multimedia services. Aggregated multimedia services can be understood as integrating multiple different media services together to provide a unified platform to access and manage these media contents. The following is an explanation with reference to scenario examples:
[0042] First, the target media application is obtained by scanning various media applications using the target framework in the target system. The target framework can be understood as a multimedia session MediaSession framework. Then, the media controller of the target media application is registered and monitored to obtain the media information of the target media application. The media controller can be understood as a multimedia controller MediaController. The media information of the target media application includes playback data and playback status. Then, the media information of the target media application is written into the target framework to obtain the target data, and the target data is sent to the multimedia playback data display terminal for playback and display. The present application aggregates multimedia services to send the target data to the multimedia playback data display terminal for playback and display, reducing the system memory space occupied by multiple multimedia services. In addition, the aggregated multimedia service of the present application also assumes the responsibility of the media playback data transfer layer to send the target data to the multimedia playback data display terminal for playback and display, reducing the number of cross-process times and optimizing performance.
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] See also Figure 1 , which is a method flow chart of a method for playing and displaying playing data provided by an embodiment of the present application, such as Figure 1 As shown, the method for playing and displaying the playing data may include steps S101-S104:
[0045] S101: Scan each media application in the target system to obtain a target media application, wherein each media application is a media application using a target framework.
[0046] Aggregate multimedia service is a service that combines the responsibilities of individual multimedia services and multimedia playback data transfer layers to improve system resource utilization and performance. Aggregate multimedia service can do the following:
[0047] Centralized management of multimedia resources: Aggregated multimedia services can centrally manage multimedia resources, including audio, video, and images, to avoid each multimedia service from loading and occupying memory independently. Aggregated services can manage media resources more efficiently, reducing repeated loading and resource redundancy.
[0048] Conversion and adaptation of multimedia data: Aggregate multimedia services can achieve conversion and adaptation of multimedia data, converting multimedia data in different formats into a unified format for easy system call and processing. In addition, the aggregate service can also adapt to the specific needs of different devices or platforms to improve the compatibility and reliability of multimedia playback.
[0049] Resource sharing and scheduling: Aggregate multimedia services can realize resource sharing and scheduling among multiple multimedia services to reduce memory usage and improve overall system efficiency. Aggregate services can coordinate the operation of multiple services, allocate resources reasonably, and avoid the problem of excessive memory usage caused by multiple services running at the same time and competing for resources.
[0050] Realize the playback and display of multimedia data: Aggregate multimedia services can realize the playback and display of multimedia playback data, including audio, video, etc. By uniformly managing and processing multimedia resources, aggregate services can more efficiently realize the playback and display of multimedia data and improve the user experience of the system.
[0051] This platform that aggregates multimedia services usually provides a unified user interface that allows users to easily browse, search, and play various types of media content. Users can access different media service providers (such as Kuwo Music Media Service Provider, QQ Music Media Service Provider, video on demand platform, etc.) through the platform and enjoy diverse media content in one application.
[0052] In order to realize the playback display of the playback data, the aggregate multimedia service first needs to scan various media applications in the target system to obtain the target media application, wherein each media application is a media application using the target framework.
[0053] In a possible implementation, the target framework may be a multimedia session framework MediaSession framework: this framework enables a multimedia application to expose its transmission control and playback information to other processes, so that other processes can implement playback control operations on the multimedia application and obtain playback information of the multimedia application.
[0054] MediaBrowserService: Media browser service, which belongs to the server side of the MediaSession framework and is used to provide media data. This means that it needs to be implemented within multimedia software.
[0055] In a possible implementation, the method further includes A1-A2:
[0056] A1: Get the vehicle power-on status.
[0057] The vehicle power-on status indicates that the vehicle media system has completed the startup and initialization process, and the various hardware and software resources of the vehicle system are in normal working condition. Only when the vehicle system is ready can the aggregate multimedia service perform effective media application scanning operations. Therefore, before scanning various media applications in the target system to obtain the target media application, the aggregate multimedia service needs to obtain the vehicle power-on status.
[0058] In a possible implementation, the vehicle power-on state may be, but is not limited to, the current startup state of the vehicle, and the driving state includes startup and non-startup.
[0059] A2: When the vehicle is powered on in the preset state, the scanning of various media applications in the target system to obtain the target media application and subsequent steps are performed.
[0060] When the vehicle is powered on in the preset state, it indicates that the various hardware and software resources of the vehicle system are in normal working condition. At this time, the aggregated multimedia service can execute steps such as scanning various media applications in the target system to obtain the target media application.
[0061] In a possible implementation, the preset power-on state may be, but is not limited to, the vehicle being in a startup state.
[0062] In a possible implementation, the method further includes:
[0063] When the target media application is not obtained by scanning various media applications in the target system, a connection failure prompt and a reconnection inquiry are generated.
[0064] When scanning various media applications in the target system and failing to obtain the target media application, the aggregated multimedia service can provide friendly feedback to the user by generating a connection failure prompt and a reconnection inquiry, letting the user know that the target media application cannot be connected at present, and giving the user a chance to try again. This can effectively reduce user confusion and dissatisfaction and improve user satisfaction with the application.
[0065] At the same time, the connection failure prompt can make users aware of possible system or network problems, such as the target media application not being installed, abnormal device network connection, etc. This helps users troubleshoot and solve problems and improve system stability and reliability.
[0066] In a possible implementation, the method further includes B1-B2:
[0067] B1: Obtaining a response to the reconnection inquiry.
[0068] To increase the success rate of finding the target media application, the aggregated multimedia service may obtain a query response to the reconnection query.
[0069] In a possible implementation manner, the inquiry reply refers to a reply of the user to the reconnection inquiry issued by the converged multimedia service.
[0070] B2: When the inquiry response matches a preset response, rescan each media application in the target system until the target media application is obtained.
[0071] When the query response matches the preset response, the converged multimedia service can rescan each media application in the target system until the target media application is obtained.
[0072] In a possible implementation, the preset response refers to a response such as continuing to connect or reconnecting. The present application does not impose any specific restrictions on the preset response, and the user can adjust the preset response according to actual needs.
[0073] Obtaining a response to a reconnection inquiry and rescanning various media applications within the target system until the target media application is found brings advantages such as automated processing, improved success rate, enhanced adaptability and flexibility, etc., provides a better experience for users, and improves the stability and reliability of the system.
[0074] S102: Register and monitor the media controller of the target media application to obtain media information of the target media application.
[0075] After scanning various media applications using the target framework in the target system to obtain the target media application, the aggregate multimedia service can register and monitor the media controller of the target media application to obtain the media information of the target media application.
[0076] In a possible implementation, the media controller may be a media controller MediaController, which belongs to the client of the MediaSession framework and is used to obtain media data. Correspondingly, the music media service needs to implement it internally.
[0077] In one possible implementation, the media information of the target media application includes: playback data and playback status. Playback data refers to the specific media content that the media application is processing or about to play, such as audio files, video files, images, etc. These data may include file path, file format, media length, media title, artist information, etc. By obtaining the playback data, the in-vehicle media system can accurately read and process the target media content. The playback status describes the current playback status of the target media application, including play, pause, stop, etc. These status information can help the in-vehicle media system monitor the running status of the target media application in real time, and perform corresponding control operations as needed, such as switching the playback status, adjusting the volume, selecting the next song, etc.
[0078] S103: Writing the media information of the target media application into the target framework to obtain target data.
[0079] After registering and monitoring the media controller of the target media application to obtain the media information of the target media application, the aggregate multimedia service also needs to write the media information of the target media application into the target framework to obtain the playback data.
[0080] In a possible implementation, writing the media information of the target media application into the target framework to obtain target data may be performed according to the following steps:
[0081] First, get the MediaSessionCompat object in your application. You can use the MediaSessionCompat.Builder() constructor to create a new MediaSessionCompat object.
[0082] Configure MediaSession: After creating a MediaSessionCompat object, you need to configure it accordingly. This mainly includes setting the metadata information and playback status of the media. You can use the MediaMetadataCompat class to set media metadata, such as the title, artist, album cover, etc. of the media. Use the PlaybackStateCompat class to set the playback status of the media, such as play, pause, stop, etc.
[0083] Update the playback data and playback status of the target media application to MediaSession: When the playback data and playback status of the target media application need to be updated, write them to MediaSession to obtain the target data.
[0084] In a possible implementation, sending the target data to a multimedia playback data display terminal for playback and display includes:
[0085] A cross-process link is established with the multimedia playback data display terminal, so that the playback data is sent to the multimedia playback data display terminal through the cross-process link for playback and display.
[0086] Establishing a cross-process link with the multimedia playback data display terminal can make the media playback service and the multimedia playback data display terminal run in different processes, thereby achieving better system resource utilization and separation, and improving the overall reliability and stability of the system. The cross-process link method can decouple the data transmission and processing between the media playback service and the multimedia playback data display terminal, thereby reducing the difficulty of system development and maintenance.
[0087] The multimedia aggregation service can establish a communication channel (i.e., cross-process link) with the multimedia playback data display terminal through AIDL (Android Interface Definition Language). To achieve communication between the multimedia aggregation service and the multimedia playback data display terminal through AIDL, follow the steps below:
[0088] Create an AIDL interface file: First, create an AIDL interface file in the application where the multimedia aggregation service is located to define multimedia-related methods and data types.
[0089] Implement the AIDL interface: Secondly, in the multimedia aggregation service application, create a class to implement the methods defined by the AIDL interface.
[0090] Register the AIDL interface in the service: Then, in the application of the multimedia aggregation service, register the class that implements the AIDL interface with the Android system so that other applications can access the service.
[0091] Connect to the service on the multimedia playback data display end: Next, in the multimedia playback data display end application, connect to the multimedia aggregation service through the AIDL interface.
[0092] Calling multimedia aggregation service methods: Once a connection is established with the multimedia aggregation service, multimedia-related methods can be called through the AIDL interface.
[0093] S104: Send the target data to the multimedia playback data display terminal for playback and display.
[0094] After the media information of the target media application is written into the target framework, the aggregate multimedia service has the target data of the target media application. At the same time, because the multimedia aggregation service is a service, it is invisible to the user (no interface), so if the target data needs to be displayed and played, the multimedia playback data display end is needed to carry the UI (UserInterface) effect.
[0095] At this time, the aggregated multimedia service also assumes the responsibility of the media playback data transfer layer, reducing the number of cross-process times and optimizing performance.
[0096] Based on the contents of S101-S104, it can be known that, first, the aggregated multimedia service obtains the target media application by scanning each media application in the target system, wherein each media application is a media application that uses the target framework. Next, the media controller of the target media application is registered and monitored to obtain the media information of the target media application. Finally, the media information of the target media application is written into the target framework to obtain the target data, and the target data is sent to the multimedia playback data display terminal for playback and display. The present application sends the target data to the multimedia playback data display terminal for playback and display by aggregated multimedia services, thereby reducing the system memory space occupied by multiple multimedia services. In addition, the aggregated multimedia service of the present application also assumes the responsibility of the media playback data transfer layer, reduces the number of cross-process times, and optimizes performance.
[0097] The above are some specific implementations of the method for playing and displaying playback data provided in the embodiment of the present application. Based on this, the present application also provides a corresponding playback and display device for playing data. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization.
[0098] See also Figure 2 , which is a schematic diagram of the structure of a playback and display device for playing data provided by an embodiment of the present application. Figure 2 As shown, the aggregated multimedia service includes:
[0099] The scanning unit 201 is used to scan various media applications in the target system to obtain target media applications, wherein the various media applications are media applications using a target framework.
[0100] The registration monitoring unit 202 is used to register and monitor the media controller of the target media application to obtain the media information of the target media application.
[0101] The writing unit 203 is used to write the media information of the target media application into the target framework to obtain target data.
[0102] The sending unit 204 is used to send the target data to the multimedia playback data display terminal for playback and display.
[0103] At this time, the aggregated multimedia service also assumes the responsibility of the media playback data transfer layer, reducing the number of cross-process times and optimizing performance.
[0104] In a possible implementation manner, the aggregated multimedia service further includes:
[0105] The first acquisition unit is used to acquire the power-on status of the vehicle.
[0106] An execution unit, when the vehicle is powered on in a preset state, is used to execute the scanning of various media applications in the target system to obtain a target media application and subsequent steps.
[0107] In a possible implementation manner, the device further includes:
[0108] The establishing unit is used to establish a cross-process link with the multimedia playback data display terminal, so that the playback data is sent to the multimedia playback data display terminal through the cross-process link for playback and display.
[0109] In a possible implementation manner, the device further includes:
[0110] The generating unit is used to generate a connection failure prompt and a reconnection inquiry when the target media application is not obtained by scanning various media applications in the target system.
[0111] In a possible implementation manner, the device further includes:
[0112] The second obtaining unit is used to obtain a query reply to the reconnection query.
[0113] A rescanning unit is used to rescan the various media applications in the target system until the target media application is obtained when the inquiry response matches a preset response.
[0114] In addition, an embodiment of the present application also provides a playback and display device for playback data, the device including a memory and a processor, the memory is used to store programs or codes, and the processor is used to run the programs or codes stored in the memory to implement the above-mentioned playback and display method for playback data.
[0115] In addition, an embodiment of the present application further provides a vehicle, the vehicle comprising a control module, the control module being used to execute the playback and display method of playback data as described above.
[0116] An embodiment of the present application provides a playback and display device for playback data. After the scanning unit 201 scans the various media applications using the target framework in the target system to obtain the target media application, the registration monitoring unit 202 registers and monitors the media controller of the target media application to obtain the media information of the target media application. Finally, the writing unit 203 writes the media information of the target media application into the target framework to obtain the target data, so that the sending unit 204 sends the target data to the multimedia playback data display terminal for playback and display. The present application aggregates multimedia services to send the target data to the multimedia playback data display terminal for playback and display, reducing the system memory space occupied by multiple multimedia services. In addition, the aggregated multimedia services of the present application also assume the responsibility of the media playback data transfer layer to send the target data to the multimedia playback data display terminal for playback and display, reducing the number of cross-process times and optimizing performance.
[0117] The above is a detailed introduction to a playback and display method, system, device and storage medium for playback data provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0118] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0119] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0121] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for playing and displaying playing data, characterized in that: Applied to an aggregated multimedia service, the aggregated multimedia service is used to perform the duties of each multimedia service and the multimedia playback data transfer layer, the method comprising: Scan each media application in the target system to obtain a target media application, wherein each media application is a media application using a target framework; Registering and monitoring the media controller of the target media application to obtain media information of the target media application; Writing the media information of the target media application into the target framework to obtain target data; The target data is sent to the multimedia playback data display terminal for playback and display.
2. The method according to claim 1, characterized in that: The method further comprises: Get the vehicle power-on status; When the vehicle is powered on in the preset power-on state, the scanning of each media application in the target system to obtain the target media application and subsequent steps are performed.
3. The method according to claim 1, characterized in that The media information of the target media application includes: play data and play status.
4. The method according to claim 1, characterized in that: The sending of the target data to the multimedia playback data display terminal for playback and display comprises: A cross-process link is established with the multimedia playback data display terminal, so that the playback data is sent to the multimedia playback data display terminal through the cross-process link for playback and display.
5. The method according to claim 1, characterized in that The method further comprises: When the target media application is not obtained by scanning various media applications in the target system, a connection failure prompt and a reconnection inquiry are generated.
6. The method according to claim 5, characterized in that The method further comprises: Obtaining a response to the reconnection query; When the inquiry response matches the preset response, the various media applications in the target system are scanned again until the target media application is obtained.
7. A playback and display device for playing data, characterized in that: The device comprises: A scanning unit, configured to scan various media applications in a target system to obtain target media applications, wherein the various media applications are media applications using a target framework; A registration monitoring unit, used for registering and monitoring the media controller of the target media application to obtain the media information of the target media application; A writing unit, used for writing the media information of the target media application into the target framework to obtain target data; The sending unit is used to send the target data to the multimedia playback data display terminal for playback and display.
8. The device according to claim 7, characterized in that The device also includes: A first acquisition unit, used to acquire a power-on state of the vehicle; An execution unit, when the vehicle is powered on in a preset state, is used to execute the scanning of various media applications in the target system to obtain a target media application and subsequent steps.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the memory, wherein when the processor executes the computer program, the method for playing and displaying the playing data as described in any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: The vehicle includes an aggregate multimedia service, and the aggregate multimedia service is used to execute the playback and display method of playback data according to any one of claims 1-6.