Cabin multimedia control method and device, electronic equipment and storage medium

By requesting script content from the cloud-based script management system within the cockpit system and acquiring and loading browser multimedia data, the problem of data interaction and control linkage between the cockpit system and the browser is solved. This enables the cockpit system to accurately identify and load browser multimedia content, optimizes the user interaction experience, and simplifies the operation process.

CN121940437APending Publication Date: 2026-04-28CHINA FAW CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA FAW CO LTD
Filing Date
2026-01-14
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

The lack of an effective data interaction and control linkage mechanism between the existing cockpit system's multimedia control components and the browser results in the inability to obtain detailed information about the multimedia content in the browser and to execute precise playback control operations. This leads to cumbersome user operation processes and reduces the richness and practicality of the interactive experience.

Method used

By sending model and version data requests to the cloud-based script management system when the cockpit website loads, requesting script content, obtaining browser multimedia data, loading browser multimedia based on this data, and responding to user interaction requests to call the corresponding script content, the cockpit system and browser can achieve data interaction and control linkage.

Benefits of technology

This solution addresses the issue of the cockpit system's inability to effectively acquire multimedia information from the browser, enabling the cockpit system to accurately identify and load multimedia content from the browser, optimizing interactivity, simplifying the operation process, and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121940437A_ABST
    Figure CN121940437A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle electronics, and discloses a cabin multimedia control method and device, electronic equipment and a storage medium. The method comprises the following steps: when a cockpit website is loaded, sending a script request to a cloud script management system according to model version data to obtain script content; acquiring browser multimedia data based on the script content, and loading browser multimedia according to the browser multimedia data; responding to an interaction request of a user for browser multimedia, calling the corresponding script content based on the interaction request, and completing the interaction request of the user. The method at least solves the problems that an existing cabin multimedia control method is poor in interactivity, tedious in interaction and the like, facilitates optimization of interactivity of a cabin system, guarantees user interaction experience, and simplifies an operation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle electronics technology, and in particular to a cockpit multimedia control method, device, electronic device, and storage medium. Background Technology

[0002] As in-vehicle cockpit systems become increasingly intelligent and connected, users' demand for in-cabin multimedia entertainment experiences is growing. Currently, most in-vehicle cockpit systems integrate browser functionality, allowing users to access various online audio and video platforms and obtain a wealth of multimedia content.

[0003] However, the lack of an effective data interaction and control linkage mechanism between the existing cockpit system's multimedia control components and the browser results in significant limitations in the cockpit multimedia control functions, making it difficult to meet users' needs for convenient operation. On the one hand, the existing cockpit system's multimedia control components cannot obtain detailed information about the multimedia content being played in the browser, including but not limited to key information such as multimedia title, cover image, and content author. This prevents the cockpit system's human-computer interaction interface from displaying this content information, making it impossible for users to intuitively understand the details of the currently playing multimedia, thus reducing the richness and practicality of the interactive experience.

[0004] On the other hand, the existing cockpit system's multimedia control components cannot perform precise playback control operations on multimedia content playing in the browser. Common control commands such as play, pause, switch to the previous track, and switch to the next track cannot be directly transmitted to the multimedia playback device in the browser. If users need to perform these operations, they must manually switch to the browser interface, which is cumbersome and disrupts the continuity of the integrated control of the cockpit system, contradicting the convenience requirements of an intelligent cockpit. Summary of the Invention

[0005] The purpose of this invention is to provide a cockpit multimedia control method, device, electronic device and storage medium to at least solve the problems of poor interactivity and cumbersome interaction in existing solutions, thereby optimizing the interactivity of the cockpit system, ensuring the user's interactive experience and simplifying the operation process.

[0006] To address the aforementioned technical problems, in a first aspect, the present invention provides a cockpit multimedia control method, comprising at least:

[0007] When the cockpit website loads, a script request is sent to the cloud-based script management system based on the model version data to obtain the script content;

[0008] Obtain browser multimedia data based on the script content, and load browser multimedia based on the browser multimedia data;

[0009] In response to a user's interactive request for multimedia in the browser, the corresponding script content is invoked based on the interactive request to complete the user's interactive request.

[0010] Optionally, before sending a script request to the cloud script management system based on the model version data to obtain the script content when loading on the cockpit website, the method further includes:

[0011] The playback detection script, information acquisition script, and playback status script are stored in the cloud-based script management system.

[0012] Optionally, the step of obtaining browser multimedia data based on the script content and loading browser multimedia according to the browser multimedia data specifically includes:

[0013] Based on the playback detection script, determine whether the current website is playing multimedia, and when it is confirmed that the current website is playing multimedia, obtain the multimedia playback data;

[0014] Based on the information acquisition script, multimedia information function data is acquired;

[0015] The playback status data is obtained based on the playback status script.

[0016] The browser loads multimedia based on the multimedia playback data, the multimedia information function data, and the playback status data.

[0017] Optionally, the step of determining whether the current website is playing multimedia based on the playback detection script, and obtaining multimedia playback data when it is confirmed that the current website is playing multimedia, specifically includes:

[0018] Set a detection timer and determine whether the page contains multimedia tags based on the detection timer;

[0019] If it exists, check whether the multimedia tag is in a playback state;

[0020] If so, the playback status is verified a second time according to the webpage audio interface;

[0021] If the secondary verification passes, the current website is confirmed to be playing the multimedia, and the multimedia playback data is obtained.

[0022] Optionally, after setting the detection timer and determining whether a multimedia tag exists on the page based on the detection timer, the method further includes:

[0023] If not, confirm that the current website is not playing multimedia, and re-determine whether the page has a multimedia tag based on the detection timer.

[0024] Optionally, the step of acquiring multimedia information function data based on the information acquisition script specifically includes:

[0025] Traverse the Document Object Model (DOM) of the current website document to obtain multimedia tags;

[0026] Identify the container features of the corresponding player based on each media tag;

[0027] Based on the container features, title data, author data, cover data, and duration data are extracted;

[0028] All the title data, author data, cover data, and duration data are encapsulated into multimedia information function data in a first preset format.

[0029] Optionally, obtaining playback status data based on the playback status script specifically includes:

[0030] Access the DOM of the current website document to obtain the multimedia tags;

[0031] Collect the playback progress, operation support, volume status, and playback speed status of each multimedia tag;

[0032] The playback progress, operation support, volume status, and playback rate status are encapsulated into playback status data in a second preset format.

[0033] In a second aspect, the present invention also provides a cockpit multimedia control device, comprising at least:

[0034] The script acquisition module is used to send a script request to the cloud script management system based on the model version data when the cockpit website is loaded, in order to obtain the script content.

[0035] The media loading module is used to obtain browser multimedia data based on the script content and load browser multimedia according to the browser multimedia data.

[0036] The interaction processing module is used to respond to the user's interaction request with the browser multimedia, and to call the corresponding script content based on the interaction request to complete the user's interaction request.

[0037] Thirdly, the present invention also provides an electronic device, including a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the steps of the cockpit multimedia control method of any one of the first aspects.

[0038] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the cockpit multimedia control method according to any one of the first aspects.

[0039] The technical solution provided by this invention firstly involves sending a script request to the cloud-based script management system based on the model version data when the cockpit website is loaded, in order to obtain script content; secondly, obtaining browser multimedia data based on the script content, and loading browser multimedia based on the browser multimedia data; and finally, responding to the user's interaction request for browser multimedia, calling the corresponding script content based on the interaction request to complete the user's interaction request.

[0040] Therefore, this invention, on the one hand, requests scripts from the cloud based on model and version data, enabling the targeted acquisition of script content adapted to the current cockpit system. This avoids multimedia function incompatibility issues caused by differences in cockpit models / versions, allowing cockpits with different configurations to stably load browser multimedia. On the other hand, this invention, by acquiring and loading browser multimedia data based on script content, solves the problem that traditional cockpits cannot effectively acquire browser multimedia information. This allows the cockpit system to accurately identify and load multimedia content from the browser, laying the foundation for subsequent interactive operations, optimizing the interactivity of the cockpit system, ensuring a better user experience, and simplifying the operation process. Attached Figure Description

[0041] Figure 1 This is a flowchart of a cockpit multimedia control method provided in an embodiment of the present invention;

[0042] Figure 2 This is a flowchart of another cockpit multimedia control method provided in an embodiment of the present invention;

[0043] Figure 3 This is a schematic diagram of the structure of a cockpit multimedia control device provided in an embodiment of the present invention;

[0044] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0046] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.

[0047] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0048] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.

[0049] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”

[0050] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.

[0051] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.

[0052] Figure 1 This is a flowchart of a cockpit multimedia control method provided by an embodiment of the present invention. This embodiment is applicable to at least various vehicle cockpit browser multimedia usage scenarios. The cockpit multimedia control method can be, but is not limited to, executed by the cockpit multimedia control device in this embodiment of the invention. This execution entity can be implemented in software and / or hardware. Figure 1 As shown, the cockpit multimedia control method includes at least the following steps:

[0053] S1. When the cockpit website is loading, a script request is sent to the cloud script management system based on the model version data to obtain the script content.

[0054] The cockpit website can load when the cockpit browser app launches or loads a website. Model version data includes at least one of the following: vehicle model, browser version, website domain, and current script version. The script content primarily consists of JavaScript multimedia control scripts. Understandably, the cloud-based script management system will return the corresponding script content based on the script request. The cloud-based script management system supports script developers in creating or modifying JavaScript multimedia control scripts in the cloud, adding script version numbers, metadata (target domain, compatible vehicle model / firmware, minimum compatible browser API), and signing (e.g., signing script content with a private key). Furthermore, script content can be published within the cockpit app via the cloud API (Application Programming Interface), and can be configured with canary release and group distribution strategies (by vehicle model, region, user group).

[0055] S2. Obtain browser multimedia data based on script content, and load browser multimedia based on browser multimedia data.

[0056] Loading browser multimedia can be achieved by the browser app injecting scripts in a controlled manner into the target page context (via WebView injection, content-scripts, or extended injection), thereby loading the browser's multimedia-related states, such as content, text, and playback status.

[0057] S3. Responding to the user's multimedia interaction request to the browser, the corresponding script content is invoked based on the interaction request to complete the user's interaction request.

[0058] The interaction request can be a user clicking a function button on the browser's multimedia interface, such as the previous track or volume adjustment. In this embodiment, the interaction request is implemented based on the in-cabin message event bus, and the interaction data format can use JSON, XML, etc. This embodiment adopts a publish-subscribe (Pub / Sub) messaging pattern to achieve decoupled communication between the custom browser, multimedia control component, and script execution environment. The interaction process includes: 1. The multimedia control component subscribes to relevant topics. 2. The script is injected to publish multimedia information and status to the message bus. 3. The control component publishes control commands to the message bus. 4. The browser receives the commands and calls the script to execute the operation. It is understood that the script content can also be used to implement user interaction requests, such as updating the browser's multimedia playback based on the interaction request. Furthermore, the multimedia control component controls the browser's multimedia by acquiring multimedia information data. In a specific implementation scenario, the multimedia information data can be {

[0059] "mediaId": "track_20250918_001",

[0060] "title": "Shape of You",

[0061] "author": "Ed Sheeran",

[0062] "album": "Divide",

[0063] "cover": "https: / / cdn.example.com / media / cover / shape_of_you.jpg",

[0064] "duration": 233.5,

[0065] "currentTime": 87.3,

[0066] "playing": true,

[0067] "volume": 0.8,

[0068] "muted": false,

[0069] "playMode": "sequential",

[0070] "supportedActions":["play","pause","next","prev","seek","mute","unmute"],

[0071] "timestamp": "2025-09-18T15:28:30Z"

[0072] }

[0073] In the above data, `mediaId` can represent a unique media identifier, which can be generated by a script or provided by a website. `title / author / album` can represent basic multimedia information. `cover` can represent the cover image URL. `duration` can represent the total duration (seconds). `currentTime` can represent the current playback position (seconds). `playing` can indicate whether it is in playback mode. `volume / muted` can represent the volume and mute status. `playMode` can represent the playback mode (sequential / single / random). `supportedActions` can represent the set of operations supported by the current player. `timestamp` can represent the timestamp of the status generation, facilitating synchronization updates by the vehicle's infotainment system. Furthermore, the data format for controlling multimedia functions can be: {

[0074] "from": "host",

[0075] "commandId": "cmd_20250918_1001",

[0076] "type": "CONTROL",

[0077] "action": "SEEK",

[0078] "payload": {

[0079] "time": 120.5

[0080] },

[0081] "timestamp": "2025-09-18T15:35:20Z"

[0082] }

[0083] In the above data format, `from` can represent the message source (fixed to "host" indicating it comes from the cockpit control component). `commandId` can represent a unique identifier for the command, used to track execution results or timeout retries. `type` can represent the message type (`CONTROL` represents a control command, which can be expanded to `QUERY`, `CONFIG`, etc. in the future). `action` can represent a specific operation command, such as: `PLAY` for play, `PAUSE` for pause, `NEXT` for next track, `PREV` for previous track, `SEEK` for jump to a specified time point, `SET_VOLUME` for adjust volume, and `MUTE` / `UNMUTE` for mute / unmute. `payload` can represent additional parameters, such as `time` (in seconds), `volume` (a floating-point number from 0 to 1), and `timestamp` can represent the timestamp of command generation.

[0084] The technical solution provided in this embodiment firstly involves sending a script request to the cloud-based script management system based on the model version data when the cockpit website is loaded, in order to obtain the script content; secondly, obtaining browser multimedia data based on the script content, and loading browser multimedia based on the browser multimedia data; and finally, responding to the user's interaction request for browser multimedia, calling the corresponding script content based on the interaction request to complete the user's interaction request.

[0085] Therefore, this embodiment demonstrates two key advantages. First, by requesting scripts from the cloud based on model and version data, it can specifically obtain script content adapted to the current cockpit system, avoiding multimedia function incompatibility issues caused by differences in cockpit models / versions. This ensures that cockpits with different configurations can stably load browser multimedia. Second, by obtaining and loading browser multimedia data based on script content, this embodiment solves the problem that traditional cockpits cannot effectively obtain browser multimedia information. This allows the cockpit system to accurately identify and load multimedia content from the browser, laying the foundation for subsequent interactive operations, optimizing the cockpit system's interactivity, ensuring a better user experience, and simplifying the operation process.

[0086] Based on the above embodiments or implementation methods Figure 2 This is a flowchart of another cockpit multimedia control method provided by an embodiment of the present invention. This embodiment is based on the above embodiment with additions and refinements. Figure 2 As shown, the cockpit multimedia control method includes at least the following steps:

[0087] S4. Store the playback detection script, information acquisition script, and playback status script in the cloud script management system.

[0088] The playback detection script is used to detect the webpage status and determine whether multimedia (music, video) is playing. The information retrieval script is used to obtain multimedia information. The script obtains multimedia function data through webpage feature attributes. The playback status script is used to obtain multimedia playback status, whether it is playing, playback progress, whether the next track is supported, and whether the previous track is supported, etc.

[0089] S1. When the cockpit website is loading, a script request is sent to the cloud script management system based on the model version data to obtain the script content.

[0090] S21. Determine whether the current website is playing multimedia based on the playback detection script, and obtain multimedia playback data when it is confirmed that the current website is playing multimedia.

[0091] The multimedia data being played can be currently playing audio / video data. In another specific implementation, step S21 may optionally include:

[0092] (21-1) Set a detection timer and determine whether there is a multimedia tag on the page based on the detection timer.

[0093] The detection timer can be set to check every 200ms. When the detection timer is triggered, it can first listen for changes in the page's media elements. If no changes are found, the judgment result of the current website playing multimedia when the previous detection timer was triggered can be directly used, which can speed up the script's processing flow. The multimedia tag can be either a video tag or an audio tag.

[0094] (21-2) If not, confirm that the current website is not playing multimedia and re-determine whether the page has a multimedia tag based on the detection timer.

[0095] (21-3) If it exists, check if the multimedia tag is in a playback state.

[0096] The criterion for determining whether a program is in a playback state can be by listening to the play and pause events of each multimedia tag. If a play event is detected, the program is considered to be in a playback state.

[0097] (21-4) If it is, then the playback status is checked again according to the web page audio interface.

[0098] The webpage audio playback interface can be a Web Audio API. The purpose of setting up a secondary check is to avoid situations where the tag exists but no audio is actually played. Understandably, if it's not present, it confirms that the current website is not playing multimedia.

[0099] (21-5) If the second verification passes, confirm that the current website is playing multimedia and obtain the multimedia playback data.

[0100] Understandably, if the secondary verification fails, it is confirmed that the current website is not playing multimedia.

[0101] S22. Obtain multimedia information function data based on the information acquisition script.

[0102] In another specific implementation, step S22 may optionally include:

[0103] (22-1) Traverse the Document Object Model (DOM) of the current website document to obtain multimedia tags.

[0104] (22-2) Identify the container features of the corresponding player based on each media tag.

[0105] The container feature can be an element on the page containing the multimedia tag. It can also be used to determine the scope of data extraction.

[0106] (22-3) Extract title data, author data, cover data and duration data based on container features.

[0107] Title data can be extracted from page meta tags, media element attributes, DOM content, or page titles. Author data can be extracted from meta tags, the player's DOM structure, or JSON-LD (structured data). Cover data can be extracted from meta tags, image elements within the container, or poster attributes. Duration data can be extracted from the media element's duration attribute, progress bar information, or API data.

[0108] (22-4) Encapsulate all title data, author data, cover data and duration data into multimedia information function data in the first preset format.

[0109] The first preset format can be JSON format.

[0110] S23. Obtain playback status data based on the playback status script.

[0111] The playback status data can be obtained through webpage feature extraction, including multimedia playback status, whether playback is active, playback progress, whether the next track is supported, and whether the previous track is supported. In another specific implementation, step S23 may optionally include:

[0112] (23-1) Access the DOM of the current website document to obtain the multimedia tags.

[0113] (23-2) Collect the playback progress, operation support, volume status and playback speed status of each multimedia tag.

[0114] Step (23-2) uses the `mediaElement.paused` property to determine whether the music is playing / paused, and uses this as a starting point to collect data in four dimensions: 1. Playback progress: Obtain the current playback time (`currentTime`) and total duration (`duration`), and then calculate the playback progress percentage. 2. Operation support: Check if the next track is supported (find the button, check the `disabled` / `hidden` attributes), and check if the previous track is supported (find the button, check if it's the first track / `hidden` attribute). 3. Volume status: Obtain the volume (`volume`), and obtain the muted status (`muted`). 4. Playback rate status: Obtain the playback rate (`playbackRate`).

[0115] (23-3) Encapsulate the playback progress, operation support, volume status and playback speed status into playback status data in a second preset format.

[0116] The second preset format can be the same as the first preset format, i.e., JSON format.

[0117] S24. Load browser multimedia based on multimedia playback data, multimedia information function data, and playback status data.

[0118] S3. Responding to the user's multimedia interaction request to the browser, the corresponding script content is invoked based on the interaction request to complete the user's interaction request.

[0119] The technical solution provided in this embodiment first stores the playback detection script, information acquisition script, and playback status script in a cloud-based script management system. Further, when the cockpit website loads, a script request is sent to the cloud-based script management system based on the model / version data to obtain script content. Further, based on the playback detection script, it is determined whether the current website is playing multimedia, and if it is confirmed that the current website is playing multimedia, multimedia playback data is obtained. Further, multimedia information function data is obtained based on the information acquisition script. Further, playback status data is obtained based on the playback status script. Further, browser multimedia is loaded based on the multimedia playback data, multimedia information function data, and playback status data. Finally, in response to the user's interaction request for browser multimedia, the corresponding script content is invoked based on the interaction request to complete the user's interaction request.

[0120] Therefore, this embodiment demonstrates two key advantages. First, by requesting scripts from the cloud based on model and version data, it can specifically obtain script content adapted to the current cockpit system, avoiding multimedia function incompatibility issues caused by differences in cockpit models / versions. This ensures that cockpits with different configurations can stably load browser multimedia. Second, by obtaining and loading browser multimedia data based on script content, this embodiment solves the problem that traditional cockpits cannot effectively obtain browser multimedia information. This allows the cockpit system to accurately identify and load multimedia content from the browser, laying the foundation for subsequent interactive operations, optimizing the cockpit system's interactivity, ensuring a better user experience, and simplifying the operation process.

[0121] Figure 3 This is a schematic diagram of a cockpit multimedia control device provided in an embodiment of the present invention. This embodiment is applicable to at least various vehicle cockpit browser multimedia usage scenarios. The cockpit multimedia control device can be implemented using software and / or hardware. Figure 3 As shown, the cockpit multimedia control unit includes at least:

[0122] The script acquisition module 110 is used to send a script request to the cloud-based script management system based on the model version data to obtain the script content when the cockpit website is loaded.

[0123] The media loading module 120 is used to obtain browser multimedia data based on script content and load browser multimedia based on the browser multimedia data.

[0124] The interaction processing module 130 is used to respond to the user's interaction request for browser multimedia, and to call the corresponding script content based on the interaction request to complete the user's interaction request.

[0125] Optionally, it also includes:

[0126] The script management module 140 is used to store playback detection scripts, information acquisition scripts, and playback status scripts in the cloud-based script management system.

[0127] Optionally, the media loading module 120 is specifically used for:

[0128] The system uses a playback detection script to determine whether the current website is playing multimedia, and when it confirms that the current website is playing multimedia, it acquires multimedia playback data; it also acquires multimedia information function data based on an information acquisition script; it acquires playback status data based on a playback status script; and it loads browser multimedia based on the multimedia playback data, multimedia information function data, and playback status data.

[0129] Optionally, the media loading module 120 is also specifically used for:

[0130] Set a detection timer and determine whether a multimedia tag exists on the page based on the detection timer; and, if a multimedia tag exists, check whether the multimedia tag is in a playback state; and, if the multimedia tag is in a playback state, perform a secondary verification of the playback state based on the webpage audio interface; and, if the secondary verification passes, confirm that the current website is playing multimedia and obtain the multimedia playback data.

[0131] Optionally, the media loading module 120 is also specifically used for:

[0132] If no multimedia tag exists, confirm that the current website is not playing any multimedia, and re-determine whether the page has a multimedia tag based on the detection timer.

[0133] Optionally, the media loading module 120 is also specifically used for:

[0134] Traverse the Document Object Model (DOM) of the current website document to obtain multimedia tags; identify the container features of the corresponding player based on each media tag; extract title data, author data, cover data, and duration data based on the container features; and encapsulate all title data, author data, cover data, and duration data into multimedia information function data in a first preset format.

[0135] Optionally, the media loading module 120 is also specifically used for:

[0136] Access the DOM of the current website document to obtain multimedia tags; and collect the playback progress, operation support, volume status, and playback speed status of each multimedia tag; and encapsulate the playback progress, operation support, volume status, and playback speed status into playback status data in a second preset format.

[0137] The technical solution provided in this embodiment firstly involves the script acquisition module sending a script request to the cloud-based script management system based on the model and version data during the loading of the cockpit website, in order to obtain the script content; furthermore, the media loading module obtains browser multimedia data based on the script content and loads browser multimedia based on the browser multimedia data; finally, in response to the user's interactive request for browser multimedia, the interaction processing module calls the corresponding script content based on the interactive request to complete the user's interactive request.

[0138] Therefore, this embodiment demonstrates two key advantages. First, by requesting scripts from the cloud based on model and version data, it can specifically obtain script content adapted to the current cockpit system, avoiding multimedia function incompatibility issues caused by differences in cockpit models / versions. This ensures that cockpits with different configurations can stably load browser multimedia. Second, by obtaining and loading browser multimedia data based on script content, this embodiment solves the problem that traditional cockpits cannot effectively obtain browser multimedia information. This allows the cockpit system to accurately identify and load multimedia content from the browser, laying the foundation for subsequent interactive operations, optimizing the cockpit system's interactivity, ensuring a better user experience, and simplifying the operation process.

[0139] This embodiment provides an electronic device. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. See also: Figure 4 The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any of the above-described cockpit multimedia control methods are performed. Through the above technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other via a communication bus and / or other forms of connection mechanisms (not shown). The memory 1002 stores a processor-executable computer program. When the electronic device 1000 is running, the processor 1001 executes the computer program to perform the cockpit multimedia control method in any optional implementation of the above embodiments, to at least achieve the following functions: when the cockpit website is loaded, sending a script request to the cloud script management system according to the model version data to obtain script content; obtaining browser multimedia data based on the script content and loading browser multimedia according to the browser multimedia data; responding to the user's interaction request for browser multimedia, calling the corresponding script content based on the interaction request to complete the user's interaction request.

[0140] This embodiment provides a computer-readable storage medium storing a computer program. When executed by a processor, the program implements the cockpit multimedia control method provided in all embodiments of this application: when the cockpit website is loaded, a script request is sent to the cloud script management system based on the model version data to obtain script content; browser multimedia data is obtained based on the script content, and browser multimedia is loaded based on the browser multimedia data; in response to the user's interaction request for browser multimedia, the corresponding script content is called based on the interaction request to complete the user's interaction request.

[0141] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0142] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0143] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0144] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cockpit multimedia control method, characterized in that, At least including: When the cockpit website loads, a script request is sent to the cloud-based script management system based on the model version data to obtain the script content; Obtain browser multimedia data based on the script content, and load browser multimedia based on the browser multimedia data; In response to a user's interactive request for multimedia in the browser, the corresponding script content is invoked based on the interactive request to complete the user's interactive request.

2. The cockpit multimedia control method according to claim 1, characterized in that, Before sending a script request to the cloud script management system to obtain the script content based on the model version data during loading on the cockpit website, the process also includes: The playback detection script, information acquisition script, and playback status script are stored in the cloud-based script management system.

3. The cockpit multimedia control method according to claim 2, characterized in that, The step of obtaining browser multimedia data based on the script content and loading browser multimedia according to the browser multimedia data specifically includes: Based on the playback detection script, determine whether the current website is playing multimedia, and when it is confirmed that the current website is playing multimedia, obtain the multimedia playback data; Based on the information acquisition script, multimedia information function data is acquired; The playback status data is obtained based on the playback status script. The browser loads multimedia based on the multimedia playback data, the multimedia information function data, and the playback status data.

4. The cockpit multimedia control method according to claim 3, characterized in that, The step of determining whether the current website is playing multimedia based on the playback detection script, and obtaining multimedia playback data when it is confirmed that the current website is playing multimedia, specifically includes: Set a detection timer and determine whether the page contains multimedia tags based on the detection timer; If present, check whether the multimedia tag is in a playback state; If so, the playback status is verified a second time according to the webpage audio interface; If the secondary verification passes, the current website is confirmed to be playing the multimedia, and the multimedia playback data is obtained.

5. The cockpit multimedia control method according to claim 4, characterized in that, After setting the detection timer and determining whether a multimedia tag exists on the page based on the detection timer, the method further includes: If not, confirm that the current website is not playing multimedia, and re-determine whether the page has a multimedia tag based on the detection timer.

6. The cockpit multimedia control method according to claim 3, characterized in that, The process of acquiring multimedia information function data based on the information acquisition script specifically includes: Traverse the Document Object Model (DOM) of the current website document to obtain multimedia tags; Identify the container features of the corresponding player based on each media tag; Based on the container features, title data, author data, cover data, and duration data are extracted; All the title data, author data, cover data, and duration data are encapsulated into multimedia information function data in a first preset format.

7. The cockpit multimedia control method according to claim 6, characterized in that, The process of obtaining playback status data based on the playback status script specifically includes: Access the DOM of the current website document to obtain the multimedia tags; Collect the playback progress, operation support, volume status, and playback speed status of each multimedia tag; The playback progress, operation support, volume status, and playback rate status are encapsulated into playback status data in a second preset format.

8. A cockpit multimedia control device, characterized in that, At least including: The script acquisition module is used to send a script request to the cloud script management system based on the model version data when the cockpit website is loaded, in order to obtain the script content. The media loading module is used to obtain browser multimedia data based on the script content and load browser multimedia according to the browser multimedia data. The interaction processing module is used to respond to the user's interaction request with the browser multimedia, and to call the corresponding script content based on the interaction request to complete the user's interaction request.

9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the cockpit multimedia control 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 computer program is executed by the processor, it implements the steps of the cockpit multimedia control method according to any one of claims 1 to 7.