Search

CN-122001859-A - Vehicle-mounted multi-screen media synchronous control method, system, equipment and medium

CN122001859ACN 122001859 ACN122001859 ACN 122001859ACN-122001859-A

Abstract

The application discloses a vehicle-mounted multi-screen media synchronous control method based on a MediaSession framework, which enables each screen media application to register a MediaSession instance of the media session to a global media session manager by creating the manager as a control center in a system layer. The manager receives control instructions from multiple input sources and intelligently distributes them to specific target instances according to predefined routing policies, rather than simply broadcasting, which solves the control logic dispersion problem. Meanwhile, the manager aggregates the state changes reported by all the examples, generates a global state view and broadcasts and synchronizes, so that each application can update the local interface uniformly according to the global state view, and the consistency of the cross-screen display state is ensured. On the premise of being compatible with a standard framework, the synchronous control method effectively solves the technical problem of state non-synchronization and control conflict in the vehicle-mounted multi-screen media system through a centralized management and bidirectional synchronous mechanism.

Inventors

  • SU YIAN

Assignees

  • 东风汽车集团股份有限公司

Dates

Publication Date
20260508
Application Date
20260107

Claims (10)

  1. 1. The vehicle-mounted multi-screen media synchronous control method is characterized by comprising the following steps of: creating and maintaining a global media session manager at the system level; When media application clients on a plurality of screens are started, registering media session instances of the media application clients to the global media session manager respectively, and reporting associated screen identifiers of the media session manager; The global media session manager receives media control instructions from at least one input source and distributes the media control instructions to one or more target MediaSession instances according to a predefined routing policy; the global media session manager receives the reported state update information of any managed media session instance in response to the change of the playing state or metadata of the media session instance; the global media session manager generates or updates a global media state view based on the received state update information and broadcasts synchronization information related to the global media state view to all registered media application clients; And each media application client updates the local user interface according to the received synchronous information.
  2. 2. The synchronization control method according to claim 1, wherein the step of generating or updating the global media state view includes aggregating the play state and metadata reported by each MediaSession instance; the step of broadcasting the synchronization information includes transmitting the unified state view or the state difference information formed after aggregation to the media application client.
  3. 3. The synchronization control method according to claim 1, wherein the routing policy is formulated according to an input source type and/or a destination screen identification including an instruction; The input source type comprises at least one of physical keys, a touch interface and a voice assistant.
  4. 4. The synchronization control method according to claim 1, characterized by further comprising: When the global media session manager receives a plurality of logically conflicting media control instructions within a preset time window, one of the instructions is arbitrated and executed and the other conflicting instructions are discarded or ignored according to a predefined priority rule or instruction arrival time sequence.
  5. 5. The synchronization control method of claim 3, wherein the routing policy is configured to: default routing of media control instructions from a vehicle steering wheel to MediaSession instances associated with a primary driving location; An instruction marked global play control is broadcast to all registered MediaSession instances.
  6. 6. The synchronization control method of claim 1, wherein the media application client implements its media play and control functions based on a standard Android MediaSession framework and completes registration, status reporting and receiving broadcast by implementing an interface agreed with the global media session manager.
  7. 7. The synchronization control method of claim 1, wherein the global media session manager communicates with each media application client in a cross-process manner via an AIDL interface based on an Android Binder mechanism.
  8. 8. A system capable of implementing the synchronization control method of any one of claims 1 to 7, comprising: the system comprises a plurality of media application client modules, a plurality of media application client modules and a plurality of media application client modules, wherein the media application client modules are deployed on different display units of a vehicle-mounted system, and each media application client module comprises a media playing unit realized based on a media session framework; The input source adaptation interface modules are used for butting at least one of the steering wheel control unit, the touch interface and the voice recognition module and forwarding the generated standardized media control instruction to the instruction routing processing unit; and a global media session manager service module deployed in a system service layer, specifically comprising: the session registration management unit is used for recording and managing the MediaSession instance and the associated screen identifier of each media application client module; The instruction route processing unit is connected with the plurality of input source adaptation interfaces and is used for distributing a media control instruction to the target MediaSession instance according to the route policy; and the state aggregation and broadcasting unit is used for receiving the state update, generating a global state view and broadcasting synchronous information to all media application client modules.
  9. 9. An electronic device, comprising: One or more processors; a memory for storing one or more programs; The one or more programs, when executed by the one or more processors, enable the one or more processors to implement the steps in the synchronization control method of any one of claims 1 to 7.
  10. 10. A computer readable medium having a computer program stored thereon, which, when executed by a processor, is capable of implementing the steps in the synchronization control method according to any one of claims 1 to 7.

Description

Vehicle-mounted multi-screen media synchronous control method, system, equipment and medium Technical Field The application relates to the technical field of vehicle-mounted information entertainment systems, in particular to a vehicle-mounted multi-screen media synchronous control method, system, equipment and media based on Android MediaSession frames. Background With the development of intelligent network-connected automobiles, high-end automobile models are commonly provided with a plurality of display screens, such as a central control screen, a secondary driving entertainment screen, a rear entertainment screen and the like, so as to provide independent media experience for passengers of different seats. However, the current vehicle-mounted multi-screen media system has some remarkable problems that firstly, media playing states (such as playing/pausing icons, song information and playing progress) displayed by each screen cannot be synchronized in real time, so that user experience is split, secondly, a unified control center is lacking, a user can operate from a plurality of input sources such as a steering wheel key, a central control screen and a rear-row screen, and the operations are easy to conflict, so that system behavior is abnormal, and furthermore, an application developer needs to independently realize media control logic and complex cross-process communication for each screen, so that development efficiency is low and cost is high. The MediaSession framework provided by the Android system provides good support for standard media play control, but the original design of the MediaSession framework mainly faces to single-device single-screen scenes. Under the vehicle-mounted multi-screen heterogeneous environment, whether the standard MediaSession is directly applied to each screen or the problem of conflict between the cross-screen state synchronization and the instruction cannot be solved. Some existing multi-screen control schemes either rely on specific hardware architecture or control logic is too simple (e.g., simple broadcast), lacking intelligent instruction routing and conflict handling mechanisms for on-board environmental characteristics. Therefore, a technical scheme capable of effectively solving the state synchronization and control conflict of the vehicle-mounted multi-screen media on the basis of being compatible with the existing standard framework is urgently needed. Disclosure of Invention The application aims to solve the technical problems of asynchronous state, confusing control logic, high development complexity, difficult integration with physical keys and the like of a vehicle-mounted multi-screen media system in the prior art. In order to achieve the above purpose, the present application adopts the following technical scheme. In a first aspect, an embodiment of the present application provides a vehicle-mounted multi-screen media synchronization control method, including: creating and maintaining a global media session manager at the system level; When media application clients on a plurality of screens are started, registering media session instances of the media application clients to the global media session manager respectively, and reporting associated screen identifiers of the media session manager; The global media session manager receives media control instructions from at least one input source and distributes the media control instructions to one or more target MediaSession instances according to a predefined routing policy; the global media session manager receives the reported state update information of any managed media session instance in response to the change of the playing state or metadata of the media session instance; the global media session manager generates or updates a global media state view based on the received state update information and broadcasts synchronization information related to the global media state view to all registered media application clients; And each media application client updates the local user interface according to the received synchronous information. Further, the step of generating or updating the global media state view comprises aggregating the playing state and metadata reported by each MediaSession instance; the step of broadcasting the synchronization information includes transmitting the unified state view or the state difference information formed after aggregation to the media application client. Further, the establishment of the routing strategy is based on an input source type and/or a target screen identification comprising instructions; The input source type comprises at least one of physical keys, a touch interface and a voice assistant. Further, the method further comprises the following steps: When the global media session manager receives a plurality of logically conflicting media control instructions within a preset time window, one of the instructions is arbitrated and executed and the other c