Media data management method and device, equipment and storage medium

By enabling the reception function in the media player to determine and manage the interaction between media services and session data, the problem of playback status conflicts and data inconsistencies caused by multiple access methods of the media player is solved, and the user experience and system stability are improved.

CN118632080APending Publication Date: 2024-09-10ECARX TECHNOLOGY PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410686760.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The media player uses two access methods in the smart cockpit (native media session framework and media service access in the Android open source project), which leads to playback status conflicts and inconsistent media data display, affecting user experience and system stability.

Method used

By turning on the media data reception function, if the media service data is received first, the target session data is determined and sent to the media session framework. If it is determined that the media service data and the media session data are output by the same media player, then the target session data is stopped. , so that the media session framework only interacts with the first control device.

Benefits of technology

It effectively solves the problem of media data playback status conflicts and inconsistent data display, and improves user experience and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632080A
    Figure CN118632080A
Patent Text Reader

Abstract

The invention discloses a media data management method and device, equipment and a storage medium. The method is applied to a media service and comprises the following steps: starting a media data receiving function, wherein media data comprises media service data output to the media service by a media player and media session data output to the media service by a media session framework; if the media service data is received firstly, target session data is determined based on the media service data, and the target session data is sent to a media session framework, so that the media session framework interacts with the first control device based on the target session data; and after receiving the media session data, if it is determined that the media service data and the media session data are output by the same media player, stopping sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the media session data. The problems of playing state conflict and data display inconsistency of the media data are effectively solved, and the user experience and the system stability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a media data management method, apparatus, device and storage medium. Background Art

[0002] Media players, such as audio / video players, play a core role in the software ecosystem of smart cockpits. Smart cockpits are often equipped with a variety of media players, some of which are connected to the smart cockpit through the native MediaSession framework in the Android Open Source Project (AOSP), some of which are connected to the smart cockpit through media services developed by car manufacturers, and some of which are connected to the smart cockpit through both the native MediaSession framework in the Android Open Source Project and media services.

[0003] For a media player that can access the smart cockpit through the native media session framework in the Android open source project and through media services, since the media player uses two access methods, it will cause playback status conflicts and inconsistent media data display, which will lead to poor user experience and system stability. Summary of the invention

[0004] The present invention provides a media data management method, device, equipment and storage medium to solve the problem that a media player adopts two access modes, which causes a playback state conflict and inconsistent media data display, resulting in poor user experience and system stability.

[0005] According to one aspect of the present invention, a media data management method is provided, which is applied to a media service, and the method includes:

[0006] Enable a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework;

[0007] If the media service data is received first, determining the target session data based on the media service data, and sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data;

[0008] After receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stop sending the target session data to the media session framework so that the media session framework interacts with the first control device based on the media session data.

[0009] According to another aspect of the present invention, there is provided a media data management device, which is applied to a media service, and the device comprises:

[0010] A receiving function activation module, used to activate a receiving function of media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework;

[0011] a target data sending module, configured to determine target session data based on the media service data if the media service data is received first, and send the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data;

[0012] The target data stopping sending module is used to stop sending the target session data to the media session framework after receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, so that the media session framework interacts with the first control device based on the media session data.

[0013] According to another aspect of the present invention, a media data management device is provided, the media data management device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the media data management method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the media data management method described in any embodiment of the present invention when executed.

[0018] The technical solution provided by an embodiment of the present invention is applied to a media service, and the method includes: enabling a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework; if the media service data is received first, determining target session data based on the media service data, and sending the target session data to the media session framework, so that the media session framework interacts with a first control device based on the target session data; after receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stopping sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the media session data. Through the above technical solution, if media service data is received first, the media service data is determined as target session data and sent to the media session framework, so that the media session framework interacts with the first control device based on the target session data. When it is determined that the media service data received first and the media session data received subsequently are the same media player, the target session data is stopped from being sent to the media service framework, so that the media session framework interacts with the first control device only based on the media session data, effectively solving the problems of media data playback status conflict and data display inconsistency, and further improving the user experience and system stability.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a media data management method provided by Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a media data management method provided by Embodiment 2 of the present invention;

[0023] Figure 3 is a schematic diagram of media data management provided by an embodiment of the present invention;

[0024] Figure 4 is a structural diagram of a media data management device provided in Embodiment 3 of the present invention;

[0025] Figure 5 It is a structural diagram of a media data management device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 This is a flowchart of a media data management method provided in the first embodiment of the present invention. This embodiment is applicable to the case where media data is simultaneously accessed to the smart cockpit for playback through the media service and the media session framework. The method can be executed by a media data management device, which can be implemented in the form of hardware and / or software. The media data management device can be configured in the media service, which can be configured in the media data management device, which can be a smart cockpit of a vehicle, ship or other means of transportation. Figure 1 As shown, the method includes:

[0030] S110. Enable a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework.

[0031] In this embodiment, media data can be understood as digital information used to store, transmit and display various media contents. For example, media data can include media playback data related to media content playback generated during media playback. Media data can include media service data output by a media player to a media service and media session data output by a media session framework to a media service. Among them, media session data is output by a media player to a media service framework. Media service data and media session data can have different media formats. Media service can be understood as a system service used to manage a media player. It can provide functions such as playback control and content management, and support access to third-party media platforms through open interfaces. The media session framework is an application programming interface provided by an operating system (such as an Android platform) for managing and controlling media session data. It allows applications to define and process media data playback operations, such as play, pause, stop, skip and replay, and can also transmit and update media metadata, such as song titles, artists, album covers, etc. A media player can be understood as a playback software used to play multimedia, such as a music player, a video player, etc. A media player can be accessed to a media service and / or a media session framework.

[0032] Specifically, when the user needs to play media, the corresponding media player will be turned on, and after receiving the instruction to start the media player, the function of receiving media data will be turned on. If the media player is only connected to the media service, it will receive the media service data output by the media player; if the media player is only connected to the media session framework, it will receive the media session data output by the media session framework, which is the media data sent by the media player to the media session framework; if the media player is connected to both the media service and the media session framework, it will receive the media service data output by the media player and the media session data output by the media session framework, which may easily lead to the problem of conflict in playback status and inconsistent display of media data.

[0033] S120: If the media service data is received first, determine target session data based on the media service data, and send the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data.

[0034] In this embodiment, the target session data can be understood as media data that can be recognized and processed by the media session framework. The first control device can be understood as a device that can control the media player and display the media data based on the media data through interaction with the user. For example, the first control device may include a party control and a cockpit display. The first control device is connected to the media session framework.

[0035] Specifically, if the media service data output by the media player is received first, the media service data will be sent to the control device connected to the media service for display and control, and then the media service data will be converted into target session data, and the target session data will be sent to the media session framework, so that the media session framework interacts with the first control device based on the target session data.

[0036] S130. After receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stop sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the media session data.

[0037] Specifically, when media service data is received first and then media session data is received, it is determined whether the received media service data and media session data are both output by the same media player. If it is determined that the two media data originate from the same media player, it is determined that the media player is connected to both the media service and the media session framework. At this time, the target session data is stopped from being sent to the media session framework, so that the media session framework interacts with the first control device based on the media session data output by the media player, thereby effectively avoiding the problems of media data control conflicts and display errors when the media session framework interacts with the first control device.

[0038] At this time, the media service will interact with the corresponding control device by receiving the media service data, so as to avoid the problems of media data control conflict and playback error when the media service interacts with the corresponding control device.

[0039] Optionally, when determining whether the received media service data and media session data are output by the same media player, if the media service data and the media session data themselves carry the identifier of the corresponding media player, it can be determined whether the two data are from the same media player based on the media service data and the media session data themselves; if the media service data and the media session data themselves do not carry the corresponding media player identifier, the corresponding media player identifier can be added when receiving the media service data and the media session data, and it can be determined whether the two data are from the same media player based on the added identifier.

[0040] The technical solution provided in the first embodiment of the present invention is applied to a media service, and the method includes: starting a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework; if the media service data is received first, determining target session data based on the media service data, and sending the target session data to the media session framework, so that the media session framework interacts with a first control device based on the target session data; after receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stopping sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the media session data. Through the above technical solution, if media service data is received first, the media service data is determined as target session data and sent to the media session framework, so that the media session framework interacts with the first control device based on the target session data. When it is determined that the media service data received first and the media session data received subsequently are the same media player, the target session data is stopped from being sent to the media service framework, so that the media session framework interacts with the first control device only based on the media session data, effectively solving the problems of media data playback status conflict and data display inconsistency, and further improving the user experience and system stability.

[0041] In some embodiments, after receiving the media service data, it also includes: adding a first tag to the media service data, wherein the first tag is used to identify the media player corresponding to the media service data; after receiving the media session data, it also includes: adding a second tag to the media session data, wherein the second tag is used to identify the media player corresponding to the media session data; wherein, determining that the received media service data and the media session data are output by the same media player includes: if the first tag and the second tag identify the same media player, then determining that the received media service data and the media session data are output by the same media player. Through the above technical solution, the recognition accuracy of the media player can be effectively improved, laying a good foundation for further improving the user experience and system stability.

[0042] In this embodiment, the first tag is used to identify the media player corresponding to the media service data. The second tag is used to identify the media player corresponding to the media session data. For example, both the first tag and the second tag can be the package name corresponding to the media player.

[0043] Specifically, if the media service data does not include an identifier of a corresponding media player and the media session data does not include an identifier of a media player, then after receiving the media service data, a first tag is added to the media service data so as to be able to determine the media player corresponding to the media service data, and after receiving the media session data, a second tag is added to the media session data so as to determine the media player corresponding to the media session data. Furthermore, when the media service data is received first and the media session data is received later, it is determined whether the media players identified by the first tag and the second tag are the same media player, and if they are the same, it is determined that the received media service data and the media session data are output by the same media player.

[0044] In some embodiments, the media data management method further includes: if the media service data and the media session data are received at the same time, and it is determined that the media service data and the media session data are output by the same media player, then stop receiving the media session data, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data. Through the above technical solution, media data can be managed more efficiently, and playback status conflicts and media playback data display errors can be effectively avoided.

[0045] In this embodiment, the second control device can be understood as a device that can control the media player based on media data, play sound or display media data through interaction with the user. For example, the second control device may include a voice control device on the central control screen. The second control device is connected to the media service.

[0046] Specifically, if media service data and media session data are received at the same time, and it is determined that the media service data and the media session data are output by the same media player, it indicates that the media player corresponding to the media service data has output the media session data to the media session framework. At this time, the reception of media session data will be stopped, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data, thereby effectively avoiding playback status conflicts and media playback data display errors that may occur when media service data and media session data output by the same media player are received at the same time, further improving user experience and system stability.

[0047] Optionally, if media service data and media session data are received simultaneously, and the media service data and the media session data are output by different media players, alarm prompt data can be generated and sent to the second control device for display or voice prompt. At the same time, the alarm prompt data is converted into alarm prompt session data that can be recognized and processed by the media session framework, and the alarm prompt session data is sent to the media session framework, and then sent to the first control device through the media session framework for display to remind the user that a playback error has occurred.

[0048] In some embodiments, the media data includes music playback data and / or video playback data.

[0049] In this embodiment, media playback data can be understood as data related to media content playback generated during media playback, such as media metadata, playback status, playback progress, playlist, subtitles, etc. Media playback data may include music playback data and / or video playback data. Among them, audio playback data can be understood as data related to music playback generated during music playback, such as track information, audio format, track length, playback history, lyrics information, etc.; video playback data can be understood as data related to video playback generated during video playback, such as video title, video format, subtitle information, etc.

[0050] In some embodiments, in the case where the media service data is received first, after the media session data is received, it also includes: if the media service data and the media session data are not output by the same media player, stopping sending the target session data to the media session framework, and determining second target service data based on the media session data, so that the media service interacts with the second control device based on the second target service data.

[0051] In this embodiment, the target service data may be understood as media data that can be identified and processed by the media service.

[0052] Specifically, when media service data is received first and then media session data is received, if it is determined that the media service data and the media session data are not output by the same media player, this means that the user has started another media player. At this time, the target session data is stopped from being sent to the media session framework, and the second target service data is determined based on the media session data, that is, the media session data sent by the media player restarted by the current user is converted into the second target service data, so that the media service interacts with the second control device based on the second target service data, thereby realizing the switching between media players. The above technical solution can not only adapt to the user's new operations, but also maintain the orderliness of media playback and the clarity of control, thereby providing a richer and more personalized media playback experience.

[0053] In some embodiments, the media data management method is applied to a smart cockpit of a vehicle.

[0054] Specifically, vehicles have become an indispensable part of people's lives today. The media data management method is applied in the smart cockpit of the vehicle, which can effectively promote the intelligence of the vehicle and enhance the user experience.

[0055] Embodiment 2

[0056] Figure 2 : is a flow chart of a media data management method provided in Embodiment 2 of the present invention. This embodiment is optimized and expanded on the basis of the above-mentioned optional embodiments. Optionally, the media data management method further includes:

[0057] If the media session data is received first, determining first target service data based on the media session data, and interacting with the second control device based on the first target service data;

[0058] After receiving the media service data, if it is determined that the media session data and the media service data are output by the same media player, stop receiving the media session data so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

[0059] like Figure 2 As shown, the method includes:

[0060] S210: Enable a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework. If the media service data is received first, execute S220-S230; if the media session data is received first, execute S240-S250.

[0061] S220: Determine target session data based on the media service data, and send the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data.

[0062] S230. After receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stop sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the media session data.

[0063] S240: Determine first target service data based on the media session data, and interact with a second control device based on the first target service data.

[0064] Specifically, after receiving the media session data, since there is no media service data in the media service at this time, the received media session data is converted into the first target service data, and the second control device is interacted with based on the first target service data.

[0065] S250. After receiving the media service data, if it is determined that the media session data and the media service data are output by the same media player, stop receiving the media session data so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

[0066] Specifically, after first receiving the media session data and then receiving the media service data, if it is determined that the media session data and the media service data are output by the same media player, the reception of the media session data is stopped, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

[0067] The technical solution provided in the second embodiment of the present invention, after the media data receiving function is turned on, determines the management of media data sending and receiving by determining the order of receiving media session data and media service data, comprehensively considers various situations, effectively avoids playback status conflicts and inconsistent media data display problems, and further improves user experience and system stability.

[0068] Exemplarily, if media player A is only connected to the media session framework, media player A will output media session data to the media session framework, the media session framework will interact with the first control device based on the media session data, the media session framework will send the media session data to the media service, receive the media session data sent by the media session framework, convert the media session data into target service data, and interact with the second control device based on the target service data. If media player B is only connected to the media service, it will receive the media service data output by media player B, interact with the second control device based on the media service data, and convert the media service data into target session data, and send it to the media session framework, so that the media session framework interacts with the first control device based on the target session data.

[0069] If media player C is connected to the media session framework, it is also connected to the media service. Figure 3 FIG. 1 is a schematic diagram of a media data management provided by an embodiment of the present invention. Figure 3 As shown, if the media service data sent by the media player C is received first, the second control device is interacted with based on the media service data, and the media service data is converted into target session data, and the target session data is sent to the media session framework, so that the media session framework interacts with the first control device based on the target session data; if the media session data sent by the media session framework is received later, and it is determined that the media session data and the media service data are both output by the media player C, the target session data is stopped from being sent to the media session framework, so that the media session framework interacts with the first control device based on the media session data. If the media session data sent by the media session framework is received first, the media session data is converted into the first target service data, and the second control device is interacted with based on the first target service data; if the media service data is received later, and it is determined that the media session data and the media service data are output by the same media player, the media session data is stopped from being received, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data. The problem of conflicting playback status of media data and inconsistent data display when the media player simultaneously accesses the media session framework and the media service is effectively solved, further improving the user experience and system stability.

[0070] Embodiment 3

[0071] Figure 4 Schematic diagram of the structure of a media data management device provided in Embodiment 3 of the present invention. The media data management device is applied to media services, such as Figure 4 As shown, the device comprises:

[0072] A receiving function enabling module 31 is used to enable a receiving function of media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework;

[0073] a target data sending module 32, configured to determine target session data based on the media service data if the media service data is received first, and send the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data;

[0074] The target data stopping sending module 33 is used to stop sending the target session data to the media session framework after receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, so that the media session framework interacts with the first control device based on the media session data.

[0075] The technical solution provided by the third embodiment of the present invention effectively solves the problems of playback status conflicts of media data and inconsistent data display, and further improves the user experience and system stability.

[0076] Optionally, the media data management device further includes:

[0077] a session data receiving module, configured to determine first target service data based on the media session data if the media session data is received first, and interact with the second control device based on the first target service data;

[0078] A session data stopping receiving module is used to stop receiving the media session data after receiving the media service data, if it is determined that the media session data and the media service data are output by the same media player, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

[0079] Optionally, the media data management device further includes:

[0080] A first tag adding module, configured to add a first tag to the media service data, wherein the first tag is used to identify a media player corresponding to the media service data;

[0081] Optionally, the media data management device further includes:

[0082] A second tag adding module, configured to add a second tag to the media session data, wherein the second tag is used to identify a media player corresponding to the media session data;

[0083] Optionally, the target data stopping sending module 33 is specifically configured to determine that the received media service data and the received media session data are output by the same media player if the first tag and the second tag identify the same media player.

[0084] Optionally, the media data management device further includes:

[0085] A data simultaneous receiving module is used to stop receiving the media session data if the media service data and the media session data are received simultaneously and it is determined that the media service data and the media session data are output by the same media player, so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

[0086] Optionally, the media data includes music playback data and / or video playback data.

[0087] Optionally, the media data management device further includes:

[0088] A second data determination module is used to stop sending the target session data to the media session framework if the media service data and the media session data are not output by the same media player, and to determine the second target service data according to the media session data, so that the media service interacts with the second control device based on the second target service data.

[0089] Optionally, the media data management device is used in the smart cockpit of the vehicle.

[0090] The media data management device provided in the embodiment of the present invention can execute the media data management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] Embodiment 4

[0092] Figure 5: is a structural diagram of a media data management device provided by Embodiment 4 of the present invention. The media data management device may be an electronic device, intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0093] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0094] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the media data management method.

[0096] In some embodiments, the media data management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the media data management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the media data management method in any other appropriate manner (e.g., by means of firmware).

[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0099] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0104] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A media data management method, characterized in that: Applied in media services, the method includes: Enable a function of receiving media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework; If the media service data is received first, determining the target session data based on the media service data, and sending the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data; After receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, stop sending the target session data to the media session framework so that the media session framework interacts with the first control device based on the media session data.

2. The method according to claim 1, characterized in that Also includes: If the media session data is received first, determining first target service data based on the media session data, and interacting with the second control device based on the first target service data; After receiving the media service data, if it is determined that the media session data and the media service data are output by the same media player, stop receiving the media session data so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

3. The method according to claim 1, characterized in that After receiving the media service data, the method further includes: adding a first tag to the media service data, wherein the first tag is used to identify a media player corresponding to the media service data; After receiving the media session data, the method further includes: adding a second tag to the media session data, wherein the second tag is used to identify a media player corresponding to the media session data; The step of determining that the received media service data and the received media session data are output by the same media player includes: If the first tag and the second tag identify the same media player, it is determined that the received media service data and the received media session data are output by the same media player.

4. The method according to claim 1, characterized in that Also includes: If the media service data and the media session data are received at the same time, and it is determined that the media service data and the media session data are output by the same media player, stop receiving the media session data so that the media service interacts with the second control device based on the media service data, and the media session framework interacts with the first control device based on the media session data.

5. The method according to claim 1, characterized in that The media data includes music playing data and / or video playing data.

6. The method according to claim 1, characterized in that In the case where the media service data is received first, after receiving the media session data, the method further includes: If the media service data and the media session data are not output by the same media player, stop sending the target session data to the media session framework, and determine the second target service data based on the media session data, so that the media service interacts with the second control device based on the second target service data.

7. The method according to claim 1, characterized in that Applied to the vehicle's smart cockpit.

8. A media data management device, characterized in that: Applied in media services, the device comprises: A receiving function activation module, used to activate a receiving function of media data, wherein the media data includes media service data output by a media player to a media service and media session data output by a media session framework to the media service, and the media session data is output by the media player to the media session framework; a target data sending module, configured to determine target session data based on the media service data if the media service data is received first, and send the target session data to the media session framework, so that the media session framework interacts with the first control device based on the target session data; The target data stopping sending module is used to stop sending the target session data to the media session framework after receiving the media session data, if it is determined that the received media service data and the media session data are output by the same media player, so that the media session framework interacts with the first control device based on the media session data.

9. A media data management device, characterized in that: The media data management device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the media data management method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the media data management method as described in any one of claims 1 to 7 is implemented.