Media status management method, device, electronic device and storage medium
By installing a monitoring server and a monitoring client on the on-board controller of the on-board terminal, monitoring the running status of the media source and synchronizing the playback status information, the problem of disordered playback status of the media source on the on-board terminal is solved, and the orderly switching and management of the media source is realized.
Patent Information
- Application Number
- CN202211687575.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-12-27
AI Technical Summary
The playback status of media sources on the on-board terminal is prone to disorder. After the user clicks the play button, multiple media sources simultaneously seize the playback focus and cannot switch to the program or music that the user wants.
By installing a monitoring server and a monitoring client on the on-board controller, the operating status of the media source is monitored. When the media source switches, determine the current and previous media source, close the monitoring client of the previous media source and start the monitoring client of the current media source, and play the status information in real time to the display device.
The orderly switching of media sources is realized, the playback status disorder is avoided, and the orderly management of media sources is improved.
Smart Images

Figure CN116017007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle-mounted technology, and in particular to a media status management method, device, electronic device, and storage medium. Background Art
[0002] With the rise of new energy vehicles, the development of in-vehicle intelligent terminals has accelerated rapidly. In-vehicle central control screens not only display status information such as vehicle speed, fuel level, and gear position, but are also used to play various media sources, such as music apps. A large number of online music and video apps have been developed and ported to in-vehicle terminals. With the advancement of voice recognition technology, voice control and screen control have become standard features of in-vehicle terminals.
[0003] For the control of media sources, three methods are usually integrated: media hard button control, voice control and screen clicks to achieve diversified control. However, the diversification of control methods is also prone to the following problems: (1) When the user clicks the play button, multiple media sources simultaneously grab the playback focus; (2) It is impossible to switch to the program or music that the user wants. This makes the playback status of the media sources on the in-vehicle terminal disordered. Therefore, a method that can orderly manage the media status on the in-vehicle terminal is urgently needed. Summary of the Invention
[0004] In view of this, an object of the present invention is to provide a media status management method, device, electronic device and storage medium, which can improve the problem that the playback status of the media source on the current vehicle-mounted terminal is easily disordered.
[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:
[0006] In a first aspect, an embodiment of the present invention provides a media status management method, which is applied to an onboard controller of a vehicle, wherein the onboard controller is equipped with multiple media sources, a monitoring server, a monitoring client for each media source, and a callback interface, and each display device of the vehicle is connected to the callback interface. The method includes:
[0007] The monitoring server monitors the running status of each media source, and when a media source switch is detected, determines the current media source running after the switch and the previous media source running before the switch, closes the monitoring client of the previous media source, and starts the monitoring client of the current media source; wherein the running status includes running or closed;
[0008] The current media source is monitored by the monitoring client of the current media source to obtain the playback status information of the current media source, and the playback status information is sent to the callback interface in real time to synchronize the playback status information to each display device; wherein, the playback status information includes media information, playback progress and playback status.
[0009] Furthermore, the vehicle-mounted controller is also equipped with a control interface, and each input device of the vehicle is connected to the control interface;
[0010] After the step of determining the current media source running after the switching and the last media source running before the switching, the method further includes:
[0011] The control mode of the control interface is switched to a mode corresponding to the current media source, so that when the control interface receives a media source control instruction sent by any of the input devices, only the current media source is controlled.
[0012] Furthermore, the method further comprises:
[0013] When a media source switching instruction is received from any input device through the control interface, a target media source is determined, and current playback information of the current media source is obtained through the monitoring client;
[0014] The current playback information is stored in the playback record library of the current media source, the switching association relationship between the target media source and the current media source is stored in a state machine, and the target media source is switched to run.
[0015] Furthermore, the step of switching to run the target media source includes:
[0016] closing the current media source and operating the target media source as the current media source, so that each of the display devices displays a user interface of the target media source;
[0017] The playback information of the last shutdown is retrieved from the playback record library of the target media source, and the playback information is synchronized to each of the display devices to display the playback information on the user interface.
[0018] Furthermore, the method further comprises:
[0019] When a control instruction for returning to the previous media source is received from the control interface by any of the input devices, the previous media source is determined from the state machine, and playback information when the media source is closed is retrieved from the playback record library of the previous media source;
[0020] The current media source is switched to the previous media source, and the playback information is synchronized to each of the display devices, so that the user interface of the previous media source and the playback information are displayed on the display device.
[0021] Furthermore, when the control interface receives a media source control instruction sent by any of the input devices, the step of performing corresponding control processing only on the current media source includes:
[0022] When a media key value sent by any of the input devices is received from the control interface, determining whether a media switching interface of the current media source is stored; wherein the media key value is triggered when a user presses a hard key on the input device or clicks a media control on the input device;
[0023] If so, the media switching interface is called to process the media key value; if not, the media key value is transparently transmitted to the current media source.
[0024] Furthermore, the method further comprises:
[0025] When the startup broadcast of the operating system on the vehicle controller is monitored, the set default media source or the media source running when the vehicle was last shut down is started.
[0026] In a second aspect, an embodiment of the present invention provides a media status management device, which is applied to an onboard controller of a vehicle. The onboard controller is equipped with multiple media sources, a monitoring server, a monitoring client for each media source, and a callback interface. Each display device of the vehicle is connected to the callback interface. The media status management device includes a media source switching module and a first control module.
[0027] The media source switching module is configured to monitor the operating status of each media source through the monitoring server, and when a media source switching is detected, determine the current media source running after the switching and the previous media source running before the switching, close the monitoring client of the previous media source, and start the monitoring client of the current media source; wherein the operating status includes running or closed;
[0028] The first control module is used to monitor the current media source through the monitoring client of the current media source, obtain the playback status information of the current media source, and send the playback status information to the callback interface in real time to synchronize the playback status information to each of the display devices; wherein, the playback status information includes media information, playback progress and playback status.
[0029] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the media status management method as described in the first aspect.
[0030] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the media status management method as described in the first aspect.
[0031] The embodiments of the present invention provide a media status management method, device, electronic device and storage medium. The on-board controller monitors whether each media source is running or shut down through a monitoring server. When it is monitored that the media source has switched, the current media source running after the switch and the previous media source running before the switch are determined, the monitoring client of the previous media source is closed, and the monitoring client corresponding to the current media source is started. The current media source is monitored through the monitoring client of the current media source, and the playback status information of the current media source obtained through real-time monitoring is sent to the callback interface to synchronize the playback status information to each display device for display, so that the playback switching of the media source is managed uniformly by the monitoring server, and orderly switching of the media source is realized. When the media source is switched, the monitoring server is switched at the same time, so that the monitoring server only focuses on the playback status information of the media source corresponding to itself, which can effectively avoid disorder in the playback status of the media source and make media source management more orderly.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A block diagram of a media status management system provided by an embodiment of the present invention is shown.
[0035] Figure 2 FIG1 shows one of the flow charts of the media status management method provided by an embodiment of the present invention.
[0036] Figure 3 The second flowchart of the media status management method provided by the embodiment of the present invention is shown.
[0037] Figure 4Shown Figure 3 Schematic diagram of the flow of some sub-steps of step S18.
[0038] Figure 5 FIG3 shows a third flow chart of the media status management method provided by an embodiment of the present invention.
[0039] Figure 6 A block diagram of a media status management device provided by an embodiment of the present invention is shown.
[0040] Figure 7 A block diagram of an electronic device provided by an embodiment of the present invention is shown.
[0041] Figure numerals: 100 - media status management system; 110 - vehicle-mounted controller; 120 - central control display screen; 130 - vehicle-mounted instrument; 140 - steering wheel; 150 - media status management device; 160 - media source switching module; 170 - first control module; 180 - second control module; 190 - electronic equipment. DETAILED DESCRIPTION
[0042] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0043] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely intended to represent selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0044] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0045] With the development of new energy vehicles, in-vehicle terminals can no longer only play local media sources such as radio, Bluetooth music, and local music. Audio and video software such as Kugou Music, Tencent Video, and Volcano Car Entertainment have also been developed and ported to in-vehicle terminals. With the diversification of media sources installed on in-vehicle terminals, controlling these media sources has also become a challenge.
[0046] Media source control typically involves hardware buttons, voice control, and screen clicks, enabling diverse control. Current media source control often encounters the following issues: (1) When a user clicks the play button, multiple media sources simultaneously seize the playback focus; (2) the user is unable to switch to the desired program or music.
[0047] For example, after pressing the play button, multiple media sources simultaneously seize the playback focus, causing the playback status of the media sources to be chaotic. Or, we want to play the most recently played program, such as switching to the last program played, but the switch is wrong.
[0048] Based on the above considerations, an embodiment of the present invention provides a media status management method, which can improve the problem that the playback status of the media source on the current vehicle-mounted terminal is easily disordered.
[0049] The media status management method provided by the embodiment of the present invention can be applied to Figure 1 In the illustrated media status management system 100, the media status management system 100 includes a vehicle-mounted controller 110, various display devices, and various input devices. The vehicle-mounted controller 110, various display devices, and various input devices can all be connected via a CAN bus.
[0050] The vehicle controller 110 is equipped with multiple media sources, a monitoring server, monitoring clients of each media source, a control interface and a callback interface. Each display device of the vehicle is connected to the callback interface, and each input device of the vehicle is connected to the control interface.
[0051] It should be noted that when the vehicle controller 110 downloads a new media source, it will also register the monitoring client of the media source.
[0052] Display devices include, but are not limited to, the in-vehicle instrument panel 130 and the central control display screen 120. Input devices include, but are not limited to, a mobile terminal connected to the in-vehicle terminal, the vehicle's steering wheel 140, the central control display screen 120, and the vehicle's voice receiver. Both the monitoring server and the monitoring client are monitoring applications or processes that implement monitoring. Media sources include, but are not limited to, receivers, Bluetooth music, local music, Kugou Music, Tencent Video, and Volcano Car Entertainment, among other audio and video software.
[0053] A media control center process (MediaCenterService) may also be created on the vehicle terminal, and the process is used to manage the status and control interfaces of all media in the vehicle computer, that is, to implement the media status management method provided in the embodiment of the present invention.
[0054] Both the monitoring server and media control center processes can be added to the vehicle terminal's system process group, listening for the startup broadcast and automatically starting when the system boots up. Alternatively, only the media control center process can be added to the vehicle terminal's system process group. After listening to the startup broadcast and automatically starting, the media control center process will control the startup of the monitoring server.
[0055] In a possible implementation manner, the embodiment of the present invention provides a media status management method, referring to Figure 2 , may include the following steps. In this embodiment, the media state management method can be applied to Figure 1 The vehicle terminal in the vehicle.
[0056] S12: Monitor the running status of each media source through the monitoring server. When it is monitored that the media source is switched, determine the current media source running after the switch and the previous media source running before the switch.
[0057] S14: Close the monitoring client of the previous media source and start the monitoring client of the current media.
[0058] S16, monitoring the current media source through the monitoring client of the current media source, obtaining the playback status information of the current media source, and sending the playback status information to the callback interface in real time to synchronize the playback status information to each display device.
[0059] It should be noted that the running status may include running or closed, and the playback status information may include media information, playback progress, and playback status. When the media source is music software, the media information includes, but is not limited to, lyrics and cover component images. When the media source is video software, the media information includes, but is not limited to, video images and video lines.
[0060] It should be understood that a vehicle terminal can only run one audio or video application at a time that requires the vehicle's audio system, central control display, and instrument cluster. In this embodiment, media source operation refers to the use of the vehicle's audio system and at least one vehicle display device. Media sources running in the background but not using the vehicle's audio system and display devices are not considered active media sources.
[0061] When the vehicle terminal is turned on and running, the vehicle terminal monitors the operating status of each media source through the monitoring server. When it is monitored that the media source has switched, that is, the previous media source is closed and the next media source (that is, the current media source after the switch) starts to run, the current media source running after the switch and the previous media source running before the switch are determined, the monitoring client of the previous media source is closed, and the monitoring client of the current media is started.
[0062] It should be noted that if there is no previous media source, only the monitoring client of the current media source needs to be started. When the current media source is started, at least one display device on the vehicle displays the user interface of the current media source, and other display devices can only display part of the media information of the current media source.
[0063] The monitoring client of the current media source monitors the current media source in real time, obtains the playback status information of the current media source, and sends the playback status information to the callback interface in real time. When the callback interface is triggered, the playback status information is synchronized to each display device. The display device receives the playback status information and updates the user interface or displayed media information.
[0064] Compared with traditional media playback control, the media status management method provided by the embodiment of the present invention enables the playback switching of media sources to be uniformly managed by the monitoring server, realizing orderly switching of media sources, and switching the monitoring server at the same time when the media source is switched, so that the monitoring server only focuses on the playback status information of the media source corresponding to itself, which can effectively avoid the disorder of the media source playback status and make media source management more orderly.
[0065] In order to improve the playback disorder caused by multiple media sources simultaneously grabbing the playback focus when the user clicks the play button or controls to trigger the media source control instruction, and to further improve the control and management of the media status, the mode concept is introduced in the control interface installed on the vehicle terminal. Specifically, refer to Figure 3 After the above step S14, that is, after determining the current media source running after the switch and the previous media source running before the switch, the embodiment of the present invention further includes the following steps.
[0066] S18, switching the control mode of the control interface to the mode corresponding to the current media source, so that when the control interface receives a media source control instruction sent by any input device, only the current media source is controlled.
[0067] Each media source corresponds to a control mode of the control interface. When switching from the previous media source to the current media source or starting the current media source, the on-board terminal control will switch the control mode of the control interface to the control mode corresponding to the current media source, so that all subsequent media source control instructions received will only be effective for the current media source until the current media source is switched to the next media source and the control mode of the control interface is switched to the control mode corresponding to the next media source.
[0068] Through the above step S18, focus management of the media source control instruction is achieved, which can effectively avoid focus confusion (the control instruction is effective for two or more media sources).
[0069] The media source control instruction in step S18 includes but is not limited to: a play instruction, a pause instruction, and an information acquisition request.
[0070] Furthermore, a media switching interface is introduced in the processing of media source control instructions. Each media source can have its own media switching interface, which is installed or stored in the vehicle controller. The media switching interface of each media source implements control processing for the corresponding media source according to the media source control instructions.
[0071] Specifically, in the above step S18, refer to Figure 4 When the control interface receives a media source control instruction sent by any input device, the method of performing corresponding control processing only on the current media source can be implemented as the following steps.
[0072] S181: Receive a media key value sent by any input device from the control interface.
[0073] It should be noted that the media key value is triggered when the user presses a hard key on the input device or clicks a media control on the input device.
[0074] For example, when the user presses the "Next Song" button on the steering wheel 140, the steering wheel 140 triggers the media key value corresponding to the "Next Song" button and transmits the media key value to the control interface of the vehicle controller 110. Similarly, when the user clicks the "Next Song" control on the central control display screen 120, the central control display screen 120 triggers the media key value corresponding to the "Next Song" button and transmits the media key value to the control interface of the vehicle controller 110.
[0075] S182: Determine whether the media switching interface of the current media source is stored. If yes, execute step S153; if not, execute step S154.
[0076] S183: Call the media switching interface to process the media key value.
[0077] S184: Transparently transmit the media key value to the current media source.
[0078] When the vehicle controller receives a media key value from the control interface, it first determines whether the media switching interface (i.e., media switching class function) of the current running media source is stored or installed. If so, the media key value is parsed and the media switching interface is called to perform corresponding control processing to achieve control of the current media source. If not, the media key value is directly passed to the current media source (the application of the current media source), and the current media source itself responds to the control processing corresponding to the media key value.
[0079] Similarly, when performing voice control, when the vehicle controller receives a voice control command sent by any display device from the control interface, if the current media source has a media switching interface, the media switching interface is called to process the voice control command to perform corresponding control processing on the current media source. If it does not exist, it is directly passed through to the current media source, and the current media source itself responds to the control processing corresponding to the voice control command.
[0080] Through the above steps S181 to S184, the vehicle controller always sends the media source control instruction only to the current running media source for response, which can effectively avoid the problem of multimedia sources responding at the same time because they comply with the same protocol.
[0081] In the current media source control method, there is no record between the current media source being played and the last media source played, which results in the user being unable to quickly switch back to the previous media source, affecting the user experience and the expansion of intelligent control (such as voice control). In order to make the switching between media sources faster and more orderly, media source switching instructions and a state machine are introduced, and the return switching between media sources is performed based on the state machine. The state machine user records the switching association information of the media source. For example, when media source A switches to media source B, it is recorded that media source A was played before media source B.
[0082] In order to make the switching between media sources faster and more orderly, when performing media switching, the switching information is recorded. Specifically, refer to Figure 5 , which can be implemented as the following steps.
[0083] S11 , when a media source switching instruction sent by any input device is received from the control interface, a target media source is determined, and current playback information of the current media source is obtained by monitoring the client.
[0084] The media source switching instruction may be a media source switching instruction received by any voice receiving device, for example, please return to the previous media source, please close media source A and open media source B, please open media source B.
[0085] S13: Store the current playback information in the playback record library of the current media source, store the switching association relationship between the target media source and the current media source in the state machine, and switch to run the target media source.
[0086] In one possible embodiment, the method of switching to run the target media source can be further implemented as follows: closing the current media source, running the target media source as the current media source, so that each display device displays the user interface of the target media source, retrieving the playback information when it was last closed from the playback record library of the target media source, and synchronizing the playback information to each display device to display the playback information on the user interface.
[0087] The playback information includes the audio information or video information played when the target media source was last closed.
[0088] In one possible implementation, please refer to Figure 5 , the return switching between media sources can be implemented as the following steps.
[0089] S15, when a control instruction to return to the previous media source is received from any input device from the control interface, the previous media source is determined from the state machine, and the playback information when the media source is closed is retrieved from the playback record library of the previous media source.
[0090] S17: Switch the current media source to the previous media source, and synchronize the playback information to each display device, so as to display the user interface and playback information of the previous media source on the display device.
[0091] Through the above steps S11-S17, when the media source is switched, the switching association information is stored in the state machine, so that when it is necessary to return to the previous media source or return to the next media source between media sources, it can be determined from the state machine and the corresponding switching can be performed.
[0092] In order to further enhance the user experience, in a possible implementation, the user can customize the running media source according to needs.
[0093] For example, you can set a default media source so that it runs every time the operating system is started. You can also set it to restore the media source that was running when the system was last shut down.
[0094] In one possible implementation, the media control center process (MediaCenterService) added to the system process group can monitor the operating system's startup broadcast. When the operating system's startup broadcast on the vehicle controller is monitored, the set default media source is started or the media source that was running at the last shutdown is started.
[0095] In this embodiment, when the operating system is an Android system, the media information of the media source can be stored in an Android general storage method or a system attribute value method. For example, the playback information of each media source can be recorded in a playback record library using an Android general storage method or a system attribute value method.
[0096] The media status management method provided by the embodiment of the present invention registers monitoring clients for various media sources. When the media source is running, the monitoring client of the media source monitors the current media status changes (playback status information) of the media source and performs real-time callback, so as to timely update the playback status information on the display. At the same time, the on-board controller provides a unified control interface and callback interface to the outside world. By switching the mode of the control interface, voice control, screen media card control and hard key control can accurately control the current media source, such as program switching, progress information and media information. In addition, the introduction of a state machine to store the switching association status of the media source can quickly switch back to the previous media source.
[0097] Based on the same inventive concept of the above-mentioned media status management method, in a possible implementation manner, the embodiment of the present invention further provides a media status management device 150, which can be applied to Figure 1 The vehicle controller 110 in FIG. Figure 6 The media state management device 150 may include a media source switching module 160 and a first control module 170 .
[0098] The media source switching module 160 is configured to monitor the operating status of each media source through the monitoring server. When a media source switch is detected, the module determines the current media source running after the switch and the previous media source running before the switch, closes the monitoring client for the previous media source, and starts the monitoring client for the current media source. The operating status can be running or closed.
[0099] The first control module 170 is configured to monitor the current media source through the current media source's monitoring client, obtain playback status information of the current media source, and send the playback status information to the callback interface in real time to synchronize the playback status information to each display device. The playback status information includes media information, playback progress, and playback status.
[0100] Furthermore, a second control module 180 may be included.
[0101] The second control module 180 is configured to switch the control mode of the control interface to a mode corresponding to the current media source, so that when the control interface receives a media source control instruction sent by any input device, only the current media source is controlled.
[0102] The first control module 170 is further configured to implement steps S11 , S13 , S15 and S17 provided in the above embodiment.
[0103] In the above-mentioned media status management device 150, the synergistic effect of the media source switching module 160 and the first control module 170 enables the playback switching of the media source to be uniformly managed by the monitoring server, thereby realizing orderly switching of the media source, and switching the monitoring server at the same time when the media source is switched, so that the monitoring server only focuses on the playback status information of the media source corresponding to itself, which can effectively avoid the disorder of the media source playback status and make the media source management more orderly.
[0104] The specific definition of the media state management device 150 can be found in the definition of the media state management method described above and will not be further elaborated here. The various modules in the media state management device 150 can be implemented in whole or in part via software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in an electronic device in hardware form, or stored in a memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of the modules.
[0105] In one embodiment, an electronic device 190 is provided, whose internal structure diagram can be as follows: Figure 7 As shown. The electronic device 190 includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device 190 is used to provide computing and control capabilities. The memory of the electronic device 190 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the electronic device 190 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, it implements the media status management method provided in the above embodiment.
[0106] Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 190 to which the solution of the present invention is applied. The specific electronic device 190 may include Figure 7 More or fewer components may be shown, or some components may be combined, or the components may be arranged differently.
[0107] In one embodiment, the media status management device 150 provided by the present invention can be implemented in the form of a computer program. The computer program can be used in Figure 7The memory of the electronic device 190 may store various program modules constituting the media state management device 150, such as: Figure 6 The media source switching module 160, the first control module 170 and the second control module 180 in the embodiment of the present invention are shown in FIG. The computer program composed of each program module enables the processor to execute the steps of the media state management method described in this specification.
[0108] For example, Figure 7 The electronic device 190 shown can be Figure 6 The media source switching module 160 in the embodiment of the present invention performs steps S12 and S14. The electronic device 190 may perform step S16 through the first control module 170. The electronic device 190 may perform steps S11, S13, S15 and S17 through the second control module 180.
[0109] In one embodiment, an electronic device 190 is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: monitoring the running status of each media source through a monitoring server, and when it is monitored that the media source switches, determining the current media source running after the switch and the previous media source running before the switch; closing the monitoring client of the previous media source, and starting the monitoring client of the current media; monitoring the current media source through the monitoring client of the current media source, obtaining the playback status information of the current media source, and sending the playback status information to the callback interface in real time to synchronize the playback status information to each display device.
[0110] In one embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: monitoring the operating status of each media source through a monitoring server, and when it is monitored that the media source switches, determining the current media source running after the switch and the previous media source running before the switch; closing the monitoring client of the previous media source, and starting the monitoring client of the current media; monitoring the current media source through the monitoring client of the current media source, obtaining the playback status information of the current media source, and sending the playback status information to the callback interface in real time to synchronize the playback status information to each display device.
[0111] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a portion of code, and the module, program segment or a portion of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0112] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0113] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0114] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A media status management method, characterized in that: An on-board controller applied to a vehicle, wherein the on-board controller is equipped with a plurality of media sources, a monitoring server, a monitoring client of each media source, and a callback interface, and each display device of the vehicle is connected to the callback interface, and the method comprises: The monitoring server monitors the running status of each of the media sources, and when it is monitored that the media source is switched, determines the current media source running after the switch and the previous media source running before the switch, closes the monitoring client of the previous media source, and starts the monitoring client of the current media; wherein the running status includes running or closed; The current media source is monitored by the monitoring client of the current media source to obtain the playback status information of the current media source, and the playback status information is sent to the callback interface in real time to synchronize the playback status information to each of the display devices; wherein the playback status information includes media information, playback progress and playback status; The vehicle-mounted controller is also provided with a control interface, and each input device of the vehicle is connected to the control interface; After the step of determining the current media source running after the switching and the last media source running before the switching, the method further includes: Switching the control mode of the control interface to the mode corresponding to the current media source, so that when the control interface receives a media source control instruction sent by any of the input devices, only the current media source is controlled; The method further comprises: When a media source switching instruction sent by any input device is received from the control interface, a target media source is determined, and current playback information of the current media source is obtained through the monitoring client; The current playback information is stored in the playback record library of the current media source, the switching association relationship between the target media source and the current media source is stored in the state machine, and the target media source is switched to run.
2. The media status management method according to claim 1, characterized in that: The step of switching to run the target media source comprises: Closing the current media source, and running the target media source as the current media source, so that each of the display devices displays a user interface of the target media source; The playback information at the time of last closing is retrieved from the playback record library of the target media source, and the playback information is synchronized to each of the display devices to display the playback information on the user interface.
3. The media status management method according to claim 1, characterized in that: The method further comprises: When a control instruction to return to the previous media source sent by any of the input devices is received from the control interface, the previous media source is determined from the state machine, and the playback information when the media source is closed is retrieved from the playback record library of the previous media source; The current media source is switched to the previous media source, and the playback information is synchronized to each of the display devices, so that the user interface of the previous media source and the playback information are displayed on the display device.
4. The media status management method according to any one of claims 1 to 3, characterized in that: The step of performing corresponding control processing only on the current media source when the control interface receives a media source control instruction sent by any of the input devices comprises: When a media key value sent by any of the input devices is received from the control interface, determining whether a media switching interface of the current media source is stored; wherein the media key value is triggered when a user presses a hard key on the input device or clicks a media control on the input device; If yes, the media switching interface is called to process the media key value; if no, the media key value is transparently transmitted to the current media source.
5. The media status management method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the startup broadcast of the operating system on the vehicle controller is monitored, the set default media source or the media source running when the vehicle was shut down last time is started.
6. A media status management device, characterized in that: An on-board controller applied to a vehicle, wherein a plurality of media sources, a monitoring server, a monitoring client of each media source and a callback interface are installed on the on-board controller, each display device of the vehicle is connected to the callback interface, and the media state management device comprises a media source switching module, a first control module and a second control module; The media source switching module is used to monitor the running status of each media source through the monitoring server, and when it is monitored that the media source is switched, determine the current media source running after the switch and the previous media source running before the switch, close the monitoring client of the previous media source, and start the monitoring client of the current media; wherein the running status includes running or closed; The first control module is used to monitor the current media source through the monitoring client of the current media source, obtain the playback status information of the current media source, and send the playback status information to the callback interface in real time to synchronize the playback status information to each of the display devices; wherein the playback status information includes media information, playback progress and playback status; The vehicle-mounted controller is also provided with a control interface, and each input device of the vehicle is connected to the control interface; The second control module is used to: Switching the control mode of the control interface to the mode corresponding to the current media source, so that when the control interface receives a media source control instruction sent by any of the input devices, only the current media source is controlled; When a media source switching instruction sent by any input device is received from the control interface, a target media source is determined, and current playback information of the current media source is obtained through the monitoring client; The current playback information is stored in the playback record library of the current media source, the switching association relationship between the target media source and the current media source is stored in the state machine, and the target media source is switched to run.
7. An electronic device, characterized in that: The device comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the media state management method according to any one of claims 1 to 5.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the media status management method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Display device and browser multi-label page media resource playing method
CN113507646A