Media application display method and device, vehicle terminal
By retrieving and displaying the name and icon of the media sub-application from the media application's configuration file in the Android Automotive in-vehicle system, the problem of users being unable to identify the currently playing audio source is solved, enabling convenient audio source selection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
In the Android Automotive in-vehicle system, when media applications aggregate multiple audio sources, users cannot distinguish the specific audio source currently being played, making it difficult to flexibly choose which audio source to play.
The media application name is obtained from the media application's configuration file, and the media application is divided into multiple sub-applications. The icons and names of each media sub-application are displayed in the interactive window, and the media information is parsed using MediaSession and MediaController.
Users can intuitively identify and select specific media sub-applications, solving the problem that users cannot distinguish the currently playing audio source and realizing convenient audio source selection.
Smart Images

Figure CN122308892A_ABST
Abstract
Description
Technical Field
[0001] This application relates to electronic technology, including but not limited to media application display methods and devices, and vehicle-mounted terminals. Background Technology
[0002] AndroidAutomotive is a powerful, open, and highly customizable in-vehicle operating system. It not only offers seamless compatibility with a vast number of Android applications but also provides a wealth of in-vehicle services and development toolchains, greatly benefiting automakers and developers.
[0003] In-vehicle terminals can display the app icon or app name of media applications in the interactive window via Android Automotive, but for some media applications, this display method may cause inconvenience to users. Summary of the Invention
[0004] In a first aspect, embodiments of this application provide a media application display method, the method being applied to an in-vehicle system, the method comprising: obtaining first data from a configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications; dividing the corresponding first media application into multiple media sub-applications according to the first data; and displaying the multiple media sub-applications of at least one first media application in an interactive window.
[0005] It is understood that, in this embodiment of the application, the application names of the media sub-applications contained in the configuration file of the first media application are predefined; in this way, the application names of the multiple media sub-applications contained in the first media application can be obtained from the configuration file of the first media application, and based on this, the first media application can be divided into multiple media sub-applications, so that the multiple media sub-applications contained in the first media application can be displayed in the interactive window; thereby, the user can intuitively see which media sub-applications are contained in the first media application through the interactive window, so as to flexibly and conveniently select which audio source / media sub-application to play.
[0006] Secondly, embodiments of this application provide a media application display device, which is applied to an in-vehicle system. The device includes: an acquisition module configured to acquire first data from a configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications; a segmentation module configured to segment the corresponding first media application into multiple media sub-applications according to the first data; and a display module configured to display the multiple media sub-applications of at least one first media application in an interactive window.
[0007] Thirdly, embodiments of this application provide an in-vehicle terminal, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the method described in the first aspect.
[0008] Fifthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor or an in-vehicle terminal, implements the method described in the first aspect.
[0009] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program or instructions, which, when executed by a processor or vehicle terminal, implement the method described in the first aspect of this application.
[0010] In a seventh aspect, embodiments of this application provide a computer program that causes a processor or vehicle terminal to perform the method described in the first aspect.
[0011] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0012] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0013] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0014] Figure 1 Schematic diagram of the implementation flow of the media application display method provided in the embodiments of this application Figure 1 ;
[0015] Figure 2 A schematic diagram illustrating a further implementation of step 102 provided in an embodiment of this application;
[0016] Figure 3 This application provides an illustration of displaying application icons for multiple media sub-applications on an interactive window. Figure 1 ;
[0017] Figure 4This is a schematic diagram of the steering wheel control buttons on a car provided in an embodiment of this application;
[0018] Figure 5 This application provides an illustration of displaying application icons for multiple media sub-applications on an interactive window. Figure 2 ;
[0019] Figure 6 A schematic diagram illustrating the display of relevant information of the currently playing first media application in an interactive window, as provided in an embodiment of this application;
[0020] Figure 7 Schematic diagram of the implementation flow of the media application display method provided in the embodiments of this application Figure 2 ;
[0021] Figure 8 A schematic diagram illustrating a further implementation of the display operation in step 702 provided in an embodiment of this application;
[0022] Figure 9 This is a schematic diagram of the structure of the media application display device provided in the embodiments of this application;
[0023] Figure 10 This is a schematic diagram of the structure of the vehicle-mounted terminal provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0026] In the following description, references to "some embodiments," "this embodiment," "this application embodiment," and examples, etc., describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subset of all possible embodiments and may be combined with each other without conflict.
[0027] The descriptions such as "first," "second," and "third" appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They do not indicate any order and do not represent a special limitation on the number of devices in the embodiments of this application. They cannot constitute any limitation on the embodiments of this application.
[0028] Before providing a further detailed description of the embodiments of this application, the nouns and terms that may be involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.
[0029] AndroidAutomotive: Android operating system for vehicles;
[0030] MediaBrowserService: Media browser service;
[0031] MediaSession: Media session;
[0032] MediaController: Media controller;
[0033] MediaSession.Token: Media session token;
[0034] MediaBrowser: Media browser;
[0035] Bundle: A class in Android used to save and transfer data, supporting cross-process communication;
[0036] PackageManager: A class in the Android system that manages application packages;
[0037] PackageName: The application package name, which is unique for each application;
[0038] AM: Amplitude Modulation Broadcasting, is a broadcasting method that uses amplitude modulation to transmit broadcast signals;
[0039] FM: Frequency Modulation Broadcasting is a broadcasting method that uses frequency modulation to transmit broadcast signals.
[0040] In the Android Automotive in-vehicle system, PackageManager and the condition "android.media.browse.MediaBrowserService" are used to scan the applications that provide media services (hereinafter referred to as media applications) throughout the system. When a media application exposes media information to the outside world through Android's MediaSession, the receiver obtains the package name of the media application through MediaController, and then distinguishes which application it is.
[0041] However, the inventors of this application discovered the following technical problems and user pain points during their research and analysis:
[0042] When a media application provides multiple media audio source services simultaneously, there are two scenarios:
[0043] 1. A media application contains a MediaBrowserService media service, but contains multiple audio sources, such as an application containing both AM and FM audio sources;
[0044] 2. A media application contains multiple MediaBrowserService media services. A common example is an aggregated multimedia application that includes three audio sources: a music application, USB music, and Bluetooth music.
[0045] The inventors of this application discovered during their research and analysis that this type of media application, which aggregates multiple audio sources into a single application icon, only displays the application icon in the interactive window, without showing the icons for each individual audio source within the media application. The problem with this is that when the media application exposes data externally via MediaSession, the receiver can only parse the application's package name and cannot distinguish which specific audio source is playing within the application. This causes a user pain point: the user does not know which audio source is currently playing, and because the interactive window only displays the application icon, even if the media application contains multiple audio sources and provides media services through multiple sub-applications, the user cannot flexibly select which audio source / sub-application to play because the interactive window only displays the application icon and not the icons for each individual audio source / sub-application.
[0046] In view of this, embodiments of this application provide the following media application display method, which is applied to an in-vehicle system. In these embodiments, the type of in-vehicle system is not limited; the in-vehicle system may be Android Automotive or other types of operating systems.
[0047] Figure 1 Schematic diagram of the implementation flow of the media application display method provided in the embodiments of this application Figure 1 ;like Figure 1 As shown, the method may include the following steps 101 to 103:
[0048] Step 101: Obtain first data from the configuration file of at least one first media application; wherein, the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications;
[0049] Step 102: Divide the corresponding first media application into multiple media sub-applications based on the first data;
[0050] Step 103: Display at least one of the multiple media sub-applications of the first media application in the interactive window.
[0051] It is understood that, in this embodiment of the application, the application names of the media sub-applications contained in the configuration file of the first media application are predefined. In this way, the application names of the multiple media sub-applications contained in the first media application can be obtained from the configuration file of the first media application. Based on this, the first media application can be divided into multiple media sub-applications, so that the multiple media sub-applications contained in the first media application can be displayed in the interactive window. This allows the user to see intuitively which media sub-applications are contained in the first media application through the interactive window, and thus flexibly and conveniently select which audio source / media sub-application to play.
[0052] The following sections will describe further optional implementation methods for each of the above steps, as well as related terms.
[0053] Step 101: Obtain first data from the configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications.
[0054] In this embodiment, there is no limitation on which specific applications the first media application is. In short, the first media application can provide media services from multiple media sub-applications, meaning it supports media playback from multiple audio sources, with different sub-applications corresponding to different audio sources. For example, the first media application may include AM and FM audio sources. Alternatively, the first media application may be an aggregated multimedia application, for instance, including XX Music, USB Music, and Bluetooth Music audio sources.
[0055] Furthermore, in the embodiments of this application, the at least one first media application may be some or all of the media services on the in-vehicle system that can provide multiple media sub-applications.
[0056] It is understandable that the application names of the multiple media sub-applications contained in the first media application can be obtained from the configuration file of the first media application because the application names of each media sub-application are predefined in the configuration file of the first media application. In this embodiment, there are no restrictions on the method of defining the application names of each media sub-application in the configuration file, that is, there are no restrictions on the representation of the first data in the configuration file. In short, the goal is to enable the in-vehicle system to divide the corresponding first media application into multiple media sub-applications based on the first data.
[0057] In one possible implementation, the first data is represented in the configuration file as a first key-value pair. The key of the first key-value pair is used to uniquely identify the corresponding value. The value of the first key-value pair includes the application name and segmentation identifier of multiple media sub-applications. The segmentation identifier is located between two adjacent application names to separate different application names.
[0058] For example, taking a first media application containing two audio sources, AM and FM, as an example, in the first data, the key of the first key-value pair is "media_func", and the value of the first key-value pair is "FM|AM"; where "FM" is the name of one audio source (i.e., the application name of one media sub-application), and "AM" is the name of another audio source (i.e., the application name of another media sub-application). Of course, this example does not impose any limitations on the first key-value pair. The key of the first key-value pair can be any character, as long as it can uniquely identify the corresponding value. The value of the first key-value pair includes the application names and separators of multiple media sub-applications within the first media application. Furthermore, the keys of the first key-value pairs corresponding to different first media applications can be the same or different.
[0059] In one possible implementation, the media service's internal structure is declared in the configuration file (such as AndroidManifest.xml) of the first media application to define meta-data (i.e., an example of the first data), for example, key="media_func" and its value is the set of audio sources for the current media service, such as "FM|AM". Based on this, for step 101, obtaining the first data from the configuration file of at least one first media application, exemplarily, in one possible implementation, step 101 can be implemented as follows:
[0060] When the interactive window starts, it scans the applications on the vehicle system to obtain a first dataset; it parses the first dataset and reads the value of the key "media_func" from the first dataset, thereby obtaining the value of all first media applications on the vehicle system.
[0061] Step 102: Divide the corresponding first media application into multiple media sub-applications based on the first data.
[0062] Regarding step 102, further, in some embodiments, such as Figure 2 As shown, it may include the following steps 201 to 203:
[0063] Step 201: Obtain the package name and media application service class name of the first media application;
[0064] Step 202: Extract the application names of multiple media sub-applications from the first data based on the segmentation identifier.
[0065] Step 203: Based on the application names of the multiple media sub-applications, the package name of the first media application, and the service class name of the media application, the first media application is divided into multiple media sub-applications.
[0066] For example, taking value="FM|AM" as an example, the in-vehicle system can separate the application names "FM" and "AM" using the separator "|", indicating that this media application contains both FM and AM audio sources. Combining ServiceInfo.packageName (the package name of the first media application) and ServiceInfo.name (the service class name of the media application), this single media audio source can be divided into two audio sources (that is, this first media application can be divided into two media sub-applications). Thus, the application icons of the multiple media sub-applications (i.e., specific audio sources) contained in the first media application can be displayed in the interactive window.
[0067] It should be noted that for primary media applications such as AM / FM, the multiple audio sources (i.e., media sub-applications, such as AM and FM) share a single media browser service (MediaBrowserService). Therefore, in one possible implementation, an empty MediaBrowserService can be defined in the implementation code, and its value can point to the actual MediaBrowserService.
[0068] Step 103: Display at least one of the multiple media sub-applications of the first media application in the interactive window.
[0069] In this embodiment, the type of interactive window is not limited; it can be a homepage widget, a back panel, a dashboard, etc. Multiple media sub-applications of the at least one first media application can be displayed in media interactive windows outside the multimedia application, such as homepage widgets, back panels, dashboards, etc., in user scenarios where the current audio source and media information need to be displayed.
[0070] In this embodiment of the application, there are no restrictions on the display method of multiple media sub-applications of at least one first media application on the interactive window, that is, there are no restrictions on the implementation method of step 103.
[0071] In some embodiments, the in-vehicle system may display application icons and / or application names of multiple media sub-applications of at least one first media application in an interactive window.
[0072] Figure 3This application provides an illustration of displaying application icons for multiple media sub-applications on an interactive window. Figure 1 ;like Figure 3 As shown, the application icons displayed on the interactive window 300 are the icons of various media sub-applications. This is based on the division of the first media application into multiple media sub-applications. Taking an aggregated multimedia application containing three media sub-applications—a music application, USB music, and Bluetooth music—as an example, ... Figure 3 As shown, icon 301 is the Bluetooth music icon in the aggregated multimedia, icon 302 is the USB music icon in the aggregated multimedia, and icon 303 is the music application icon in the aggregated multimedia.
[0073] In this application embodiment, there are no restrictions on the way to trigger the display of application icons and / or application names of multiple media sub-applications of at least one first media application.
[0074] In one possible implementation, displaying the application icons and / or application names of at least one first media application's multiple media sub-applications in the interactive window includes:
[0075] In response to a press operation received by the first control button, the application icons and / or application names of at least one first media application and multiple media sub-applications are displayed in the interactive window.
[0076] In some embodiments, the first control button is also used to select or switch the media sub-application to be played.
[0077] Figure 4 This is a schematic diagram of the steering wheel control buttons on a car provided in an embodiment of this application; as shown. Figure 4 As shown, users can press the "MODE" control button to bring up and display multiple media sub-applications of at least one primary media application. Figure 5 This application provides an illustration of displaying application icons for multiple media sub-applications on an interactive window. Figure 2 ;like Figure 5 As shown, the application names "FM" and "AM" are included in the same first media application. The applications "Bluetooth Music," "USB Music," and "XX Music" are also included in the same first media application. The in-vehicle system responds to a press operation received by "MODE" and displays... Figure 5 The interactive window shown is 500.
[0078] In another possible implementation, displaying application icons and / or application names of at least one first media application's multiple media sub-applications in the interactive window includes:
[0079] The interactive window displays relevant information about the currently playing first media application; wherein, the relevant information includes at least a first icon and / or a second icon; the first icon is used to represent the currently playing media sub-application; the second icon is used to control whether to display the application icons and / or application names of multiple media sub-applications of the currently playing first media application;
[0080] In response to a click operation received by the second icon, the application icons and / or application names of multiple media sub-applications of the currently playing first media application are displayed in the interactive window.
[0081] It is understood that in this embodiment of the application, the interactive window displays which specific media sub-application of the first media application is currently playing, that is, the interactive window displays the first icon; in this way, the user can directly see which audio source / media sub-application is currently playing audio.
[0082] It is understood that in this embodiment of the application, the user can click the second icon in the interactive window to bring up the application icons and / or application names of multiple media sub-applications of the currently playing first media application; thus, the user can quickly and flexibly select the media sub-application that they want to play.
[0083] In another possible implementation, displaying the application icons and / or application names of at least one of the multiple media sub-applications of the first media application in the interactive window includes:
[0084] The interactive window displays relevant information about the currently playing first media application; wherein, the relevant information includes at least a first icon and / or a second icon; the first icon is used to represent the currently playing media sub-application; the second icon is used to control whether to display the application icons and / or application names of at least one first media application's multiple media sub-applications;
[0085] In response to a click operation received by the second icon, the application icons and / or application names of at least one of the multiple media sub-applications of the first media application are displayed in the interactive window.
[0086] In this embodiment, relevant information about the currently playing first media application is displayed in an interactive window. In some embodiments, this relevant information includes not only the first icon and / or the second icon, but also the playback information of the first media application. In some embodiments, this relevant information includes, but is not limited to, one or more of the following: the name of the currently playing audio, the author information of the currently playing audio, the cover image of the currently playing audio, the currently playing text information, a third icon, a fourth icon, and a fifth icon; wherein the third icon is used to control switching to the previous audio track; the fourth icon is used to control the playback status (pause or play); and the fifth icon is used to control switching to the next track.
[0087] For example, Figure 6 This application provides an embodiment of a schematic diagram illustrating the display of relevant information of the currently playing first media application in an interactive window; for example... Figure 6 As shown, the interactive window 600 displays the cover image 601 of the currently playing audio, the name of the currently playing audio 602, the author information of the currently playing audio 603, a third icon 604, a fourth icon 605, a fifth icon 606, and a second icon 607. When the user clicks the second icon 607, the interactive window 600 will display the application icons and / or application names of multiple media sub-applications included in the currently playing first media application, or the application icons and / or application names of multiple media sub-applications of at least one first media application (e.g., some or all of the first media applications on an in-vehicle system).
[0088] It is understandable that in step 103, at least one first media application and multiple media sub-applications are displayed in the interactive window. Thus, users can intuitively, directly, and flexibly select which media sub-application within the first media application to play, and can also intuitively and directly switch between media sub-applications, through the multiple media sub-applications of the first media application displayed in the interactive window. This solves the pain point encountered by users when playing media applications using the in-vehicle system, namely, that users cannot distinguish which specific audio source (i.e., media sub-application) a media application containing multiple audio sources (i.e., media sub-applications) is currently playing, and cannot know the specific audio source types / media sub-applications supported within such media applications, through the interactive window.
[0089] The following describes how media playback is implemented.
[0090] Figure 7 Schematic diagram of the implementation flow of the media application display method provided in the embodiments of this application Figure 2 In some embodiments, such as Figure 7 As shown, the method further includes the following steps 701 and 702:
[0091] Step 701: Receive a selection instruction for a media sub-application displayed in the interactive window, the selection instruction being used to indicate the target media sub-application to be selected.
[0092] In this embodiment of the application, the selection instruction may be a voice instruction or a click operation on the application icon or application name of the displayed media sub-application.
[0093] Step 702: In response to the selection instruction, play the target media sub-application and display the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application.
[0094] It is understood that in this embodiment of the application, when a user selects a sub-application among multiple media sub-applications displayed in the interactive window, the vehicle system plays the selected media sub-application and displays the application name and / or application icon of the sub-application on the playback interface of the media sub-application; thus, for a first media application containing multiple media sub-applications, the user can intuitively know which specific media source is playing within this type of media application during playback.
[0095] Furthermore, in some embodiments, such as Figure 8 As shown, in step 702, in response to the selection instruction, displaying the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application may further include the following steps 801 to 803:
[0096] Step 801: In response to the selection instruction, start the media browser service and create a media session for the media browser service through the first media application to which the target media sub-application belongs.
[0097] In one possible implementation, in response to the selection instruction, the first media application to which the target media sub-application belongs starts the MediaBrowserService and creates the MediaSession corresponding to this service.
[0098] Step 802: Add a second key-value pair of the target media sub-application to the media session through the first media application to which the target media sub-application belongs; the key of the second key-value pair is the same as the key of the first key-value pair, and the value of the second key-value pair is the application name of the target media sub-application.
[0099] In one possible implementation, in response to the selection instruction, the first media application to which the target media sub-application belongs starts the MediaBrowserService and creates a MediaSession corresponding to this service. At this time, the first media application adds a specific key-value pair (i.e., a second key-value pair) to the MediaSession. The method for adding the specific key-value pair to the MediaSession can be setExtras(Bundleextras), indicating that this MediaSession is a specific audio source; that is, the second key-value pair is the extra parameter in the MediaSession. For example, when FM is playing, a new Bundle("media_func","FM") is added to the MediaSession; when AM is playing, a new Bundle("media_func","AM") is added to the MediaSession. The value in the Bundle needs to be consistent with the value in the configuration file of the corresponding media application.
[0100] Step 803: Based on the value of the second key-value pair in the media session, display the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application.
[0101] Furthermore, in some embodiments, step 803 may further include: listening to the media session token; constructing a media controller using the media session token when a change in the media session token is detected; obtaining the value of the second key-value pair from the media session using the key of the media controller and the second key-value pair; and displaying the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application according to the value of the second key-value pair.
[0102] In one possible implementation, during the initialization of the interactive window, the `MediaSessionManager.addOnMediaKeyEventSessionChangedListener` method listens for changes in the system's `MediaSession.Token`. When media playback is triggered, if a change in `MediaSession.Token` is detected in the callback, a `MediaController` is constructed using `MediaSession.token`. Then, based on the constructed `MediaController`, the `MediaController.getPackageName()` method is used to obtain the application (actually obtaining the package name of the media application). Furthermore, based on the constructed `MediaController`, the `MediaController.getExtras()` method and the key "media_func" are used to obtain the corresponding value. This value is the audio source information corresponding to the media application (i.e., the application name of the target media sub-application), which is the value of the second key-value pair added to the `MediaSession`, i.e., the specific audio source information currently being played.
[0103] In addition, media playback control and information retrieval can be achieved through the relevant APIs of MediaController.
[0104] It is understandable that, among the possible implementation methods mentioned above, the media audio source function is described through the extended parameters of AndroidManifext.xml, and the media audio source information is described through the extra parameters of MediaSession, thereby solving the aforementioned user pain point problem, namely, the inability to distinguish which specific media audio source is playing inside this media application, thus making it impossible to display which audio source is currently playing in the media interaction window.
[0105] It should be noted that although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps; or steps from different embodiments may be combined into a new technical solution.
[0106] Based on the foregoing embodiments, this application provides a media application display device applied to an in-vehicle system.
[0107] Figure 9This is a schematic diagram of the structure of the media application display device provided in the embodiments of this application; as shown below. Figure 9 As shown, the media application display device 900 includes an acquisition module 901, a segmentation module 902, and a display module 903, wherein:
[0108] The acquisition module 901 is configured to acquire first data from the configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications;
[0109] The segmentation module 902 is configured to segment the corresponding first media application into multiple media sub-applications based on the first data.
[0110] Display module 903 is configured to display multiple media sub-applications of at least one first media application in an interactive window.
[0111] In some embodiments, the first data is represented in the configuration file as a first key-value pair. The key of the first key-value pair is used to uniquely identify the corresponding value. The value of the key-value pair includes the application name and segmentation identifier of multiple media sub-applications. The segmentation identifier is located between two adjacent application names to separate different application names.
[0112] Furthermore, in some embodiments, the segmentation module 902 is configured to: obtain the package name and media application service class name of the first media application; segment the application names of multiple media sub-applications from the first data according to the segmentation identifier; and segment the first media application into multiple media sub-applications according to the application names of the multiple media sub-applications, the package name and media application service class name of the first media application.
[0113] In some embodiments, the display module 903 is configured to display application icons and / or application names of at least one first media application's multiple media sub-applications in an interactive window.
[0114] Furthermore, in some embodiments, the display module 903 is configured to: in response to a press operation received by the first control button, display application icons and / or application names of at least one first media application's multiple media sub-applications in the interactive window.
[0115] Furthermore, in some other embodiments, the display module 903 is configured to: display relevant information of the currently playing first media application in an interactive window; wherein the relevant information includes at least a first icon; the first icon is used to control whether to display application icons and / or application names of multiple media sub-applications of the currently playing first media application; or, the first icon is used to control whether to display application icons and / or application names of at least one first media application's multiple media sub-applications; in response to a click operation received by the first icon, display application icons and / or application names of multiple media sub-applications of the currently playing first media application in the interactive window, or display application icons and / or application names of at least one first media application's multiple media sub-applications in the interactive window.
[0116] In some embodiments, the media application display device 900 further includes a sensing module 904 and a playback module 905; wherein, the sensing module 904 is configured to: receive a selection instruction for a media sub-application displayed in an interactive window, the selection instruction being used to indicate the selected target media sub-application; the playback module 905 is configured to play the target media sub-application in response to the selection instruction; and the display module 903 is further configured to display the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application.
[0117] Furthermore, the display module 903 is configured to: respond to the selection instruction, start a media browser service and create a media session for the media browser service through the first media application to which the target media sub-application belongs; obtain the application name of the target media sub-application, and add a second key-value pair of the target media sub-application to the media session through the first media application to which the target media sub-application belongs; the key of the second key-value pair is the same as the key of the first key-value pair, and the value of the second key-value pair is the application name of the target media sub-application; and display the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application according to the value of the second key-value pair in the media session.
[0118] Furthermore, in some embodiments, the display module 903 is configured to: listen for media session tokens; construct a media controller using the media session tokens when a change in the media session tokens is detected; obtain the value of the second key-value pair from the media session using the key of the media controller and the second key-value pair; and display the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application according to the value of the second key-value pair.
[0119] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0120] It should be noted that the module division in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or have two or more units integrated into one unit. The integrated units can be implemented in hardware, as software functional units, or a combination of software and hardware.
[0121] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause the vehicle terminal to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0122] This application provides a vehicle-mounted terminal.
[0123] Figure 10 This is a schematic diagram of the structure of the vehicle-mounted terminal provided in the embodiments of this application; as shown below. Figure 10 As shown, the vehicle terminal 100 includes a memory 1001 and a processor 1002. The memory 1001 stores a computer program that can run on the processor 1002. When the processor 1002 executes the program, it implements the steps in the method provided in the above embodiments.
[0124] It should be noted that the memory 1001 is configured to store instructions and applications executable by the processor 1002, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 1002 and the various modules in the vehicle terminal 100. It can be implemented by flash memory or random access memory (RAM).
[0125] This application also provides a computer-readable storage medium for storing computer programs.
[0126] Optionally, the computer-readable storage medium can be applied to the vehicle terminal in the embodiments of this application, and the computer program causes the processor or vehicle terminal to execute the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.
[0127] This application also provides a computer program product, including computer program instructions.
[0128] Optionally, the computer program product can be applied to the vehicle terminal in the embodiments of this application, and the computer program instructions cause the processor or vehicle terminal to execute the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0129] This application also provides a computer program.
[0130] Optionally, the computer program can be applied to the vehicle terminal in the embodiments of this application. When the computer program runs on the processor or the vehicle terminal, it causes the processor or the vehicle terminal to execute the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0131] It should be noted that the descriptions of the vehicle-mounted terminal, storage medium, computer program product, and computer program embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the vehicle-mounted terminal, storage medium, computer program product, and computer program embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0132] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0133] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0134] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0135] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0136] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0137] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0138] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0139] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause the vehicle terminal to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0140] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0141] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0142] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0143] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A media application display method, characterized by, The method is applied to an in-vehicle system, and the method includes: First data is obtained from the configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications; Based on the first data, the corresponding first media application is divided into the multiple media sub-applications; Multiple media sub-applications of the at least one first media application are displayed in the interactive window.
2. The method of claim 1, wherein, The first data is represented in the configuration file as a first key-value pair. The key of the first key-value pair is used to uniquely identify the corresponding value. The value of the first key-value pair includes the application name and the segmentation identifier of the plurality of media sub-applications. The segmentation identifier is located between two adjacent application names and is used to separate different application names.
3. The method according to claim 2, characterized in that, The step of dividing the corresponding first media application into multiple media sub-applications based on the first data includes: Obtain the package name and media application service class name of the first media application; The application names of the multiple media sub-applications are segmented from the first data based on the segmentation identifier; Based on the application names of the multiple media sub-applications, the package name of the first media application, and the service class name of the media application, the first media application is divided into multiple media sub-applications.
4. The method according to any one of claims 1-3, characterized in that, The provision of multiple media sub-applications of the at least one first media application displayed in the interactive window includes: The interactive window displays the application icons and / or application names of multiple media sub-applications of the at least one first media application.
5. The method according to claim 4, characterized in that, The step of displaying application icons and / or application names of multiple media sub-applications of the at least one first media application in the interactive window includes: In response to a press operation received by the first control button, the application icons and / or application names of multiple media sub-applications of the at least one first media application are displayed in the interactive window.
6. The method according to claim 4, characterized in that, The step of displaying application icons and / or application names of multiple media sub-applications of the at least one first media application in the interactive window includes: The interactive window displays relevant information about the currently playing first media application; wherein, the relevant information includes at least a first icon and / or a second icon; the first icon is used to represent the currently playing media sub-application; the second icon is used to control whether to display the application icons and / or application names of multiple media sub-applications of the currently playing first media application; or, the second icon is used to control whether to display the application icons and / or application names of multiple media sub-applications of the at least one first media application. In response to a click operation received by the second icon, the application icons and / or application names of multiple media sub-applications of the currently playing first media application are displayed in the interactive window; or, the application icons and / or application names of multiple media sub-applications of the at least one first media application are displayed in the interactive window.
7. The method according to claim 2 or 3, characterized in that, The method further includes: Receive a selection instruction for a media sub-application displayed in the interactive window, the selection instruction indicating the target media sub-application to be selected; In response to the selection instruction, the target media sub-application is played, and the application name and / or application icon of the target media sub-application is displayed on the playback interface of the target media sub-application.
8. The method according to claim 7, characterized in that, The step of displaying the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application in response to the selection instruction includes: In response to the selection instruction, the media browser service is started through the first media application to which the target media sub-application belongs, and a media session of the media browser service is created; A second key-value pair of the target media sub-application is added to the media session through the first media application to which the target media sub-application belongs; the key of the second key-value pair is the same as the key of the first key-value pair, and the value of the second key-value pair is the application name of the target media sub-application; Based on the value of the second key-value pair in the media session, the application name and / or application icon of the target media sub-application are displayed on the playback interface of the target media sub-application.
9. The method according to claim 8, characterized in that, The step of displaying the application name and / or application icon of the target media sub-application on the playback interface of the target media sub-application based on the value of the second key-value pair in the media session includes: Listen for media session tokens, and construct a media controller based on the media session tokens when a change is detected. The value of the second key-value pair is obtained from the media session using the media controller and the key of the second key-value pair; Based on the value of the second key-value pair, the application name and / or application icon of the target media sub-application are displayed on the playback interface of the target media sub-application.
10. A media application display device, characterized in that, The device is used in a vehicle-mounted system, and the device includes: The acquisition module is configured to acquire first data from the configuration file of at least one first media application; wherein the first media application provides media services for multiple media sub-applications, and the first data includes the application names of the multiple media sub-applications; The segmentation module is configured to segment the corresponding first media application into the multiple media sub-applications based on the first data. The display module is configured to display multiple media sub-applications of the at least one first media application in an interactive window.
11. A vehicle-mounted terminal, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the method of any one of claims 1-9.