Disclosure of Invention
In view of the above, the invention provides a multimedia sharing method and a vehicle machine, which can enable a multimedia scene played on the vehicle machine to be automatically synchronized with a playing scene of a mobile terminal before connection, and the user experience is improved without manual operation of a user.
The invention provides a multimedia sharing method, which is applied to a vehicle machine and comprises the following steps: receiving connection request information which is sent by a USB interface and corresponds to the mobile terminal; USB connection is carried out with the mobile terminal according to the connection request information, and whether the mobile terminal plays multimedia or not is judged; when the mobile terminal plays multimedia, scanning the mobile terminal to obtain media information corresponding to the mobile terminal; judging whether the multimedia corresponding to the media information exists in the shared storage space of the mobile terminal or not; when the shared storage space has the multimedia corresponding to the media information, automatically synchronizing the multimedia in the shared storage space to a playing scene of the mobile terminal before connection; and when the shared storage control does not have the multimedia corresponding to the media information, taking the mobile terminal as an external storage mounting space, and synchronizing to a playing scene of the mobile terminal before connection.
Specifically, after the step of connecting with the mobile terminal according to the connection request information and determining whether the mobile terminal is playing multimedia, the method further includes: when the mobile terminal does not play the multimedia, judging that a shared storage space corresponding to the mobile terminal exists; when the shared storage space corresponding to the mobile terminal exists, acquiring multimedia information stored in the mobile terminal; storing the multimedia information into the shared storage space; and when the shared storage space corresponding to the mobile terminal does not exist, the shared storage space corresponding to the mobile terminal is opened according to the equipment information of the mobile terminal.
Specifically, when the shared storage control does not have the multimedia corresponding to the media information, the step of taking the mobile terminal as an external storage mounting space and synchronizing to the play scene of the mobile terminal before connection further includes: automatically synchronizing the multimedia information in the external storage mounting space to the shared storage space; after the USB connection with the mobile terminal is disconnected, judging whether the currently played multimedia is completely synchronized into the shared storage space; when the currently played multimedia is completely synchronized to the shared storage space, automatically switching to play the multimedia in the shared storage space, and synchronizing to a playing scene corresponding to the current playing; and when the currently played multimedia is not completely synchronized to the shared storage space, popping up prompt information.
Specifically, the step of automatically synchronizing the multimedia information in the external storage mounting space into the shared storage space includes: receiving a synchronous setting instruction; acquiring multimedia information in the external storage mounting space according to the synchronous setting instruction; and synchronizing the multimedia information to the shared storage space one by one according to a preset rule.
Specifically, when the multimedia corresponding to the media information exists in the shared storage space, the step of automatically synchronizing the multimedia in the shared storage space to the playing scene of the mobile terminal before connection further includes: acquiring a media information list stored in the mobile terminal; and synchronizing the multimedia information which is not stored in the shared storage space in the media information list to the shared storage space.
The invention also provides a vehicle machine, which comprises: a memory for storing executable program code; and a processor for invoking the executable program code in the memory to effect the multimedia sharing method execution comprising: receiving connection request information which is sent by a USB interface and corresponds to the mobile terminal; USB connection is carried out with the mobile terminal according to the connection request information, and whether the mobile terminal plays multimedia or not is judged; when the mobile terminal plays multimedia, scanning the mobile terminal to obtain media information corresponding to the mobile terminal; judging whether the multimedia corresponding to the media information exists in the shared storage space of the mobile terminal or not; when the shared storage space has the multimedia corresponding to the media information, automatically synchronizing the multimedia in the shared storage space to a playing scene of the mobile terminal before connection; and when the shared storage control does not have the multimedia corresponding to the media information, taking the mobile terminal as an external storage mounting space, and synchronizing to a playing scene of the mobile terminal before connection.
Specifically, the step of executing the step of connecting with the mobile terminal according to the connection request information and determining whether the mobile terminal is playing multimedia further includes: when the mobile terminal does not play the multimedia, judging that a shared storage space corresponding to the mobile terminal exists; when the shared storage space corresponding to the mobile terminal exists, acquiring multimedia information stored in the mobile terminal; storing the multimedia information into the shared storage space; and when the shared storage space corresponding to the mobile terminal does not exist, the shared storage space corresponding to the mobile terminal is opened according to the equipment information of the mobile terminal.
Specifically, the step of executing the step of taking the mobile terminal as an external storage mounting space and synchronizing to a play scene of the mobile terminal before connection when the shared storage control does not have the multimedia corresponding to the media information includes: automatically synchronizing the multimedia information in the external storage mounting space to the shared storage space; after the USB connection with the mobile terminal is disconnected, judging whether the currently played multimedia is completely synchronized into the shared storage space; when the currently played multimedia is completely synchronized to the shared storage space, automatically switching to play the multimedia in the shared storage space, and synchronizing to a playing scene corresponding to the current playing; and when the currently played multimedia is not completely synchronized to the shared storage space, popping up prompt information.
Specifically, the step of executing the step of automatically synchronizing the multimedia information in the external storage mounting space to the shared storage space includes: receiving a synchronous setting instruction; acquiring multimedia information in the external storage mounting space according to the synchronous setting instruction; and synchronizing the multimedia information to the shared storage space one by one according to a preset rule.
Specifically, the step of executing the step of automatically synchronizing the multimedia in the shared storage space to the play scene of the mobile terminal before connection when the multimedia corresponding to the media information exists in the shared storage space includes: acquiring a media information list stored in the mobile terminal; and synchronizing the multimedia information which is not stored in the shared storage space in the media information list to the shared storage space.
Specifically, the multimedia sharing method and the vehicle machine provided in the embodiments receive connection request information corresponding to a mobile terminal sent by a USB interface, connect the mobile terminal with the USB according to the connection request information, and determine whether the mobile terminal is playing multimedia, so as to scan the mobile terminal to obtain media information corresponding to the mobile terminal when the mobile terminal is playing multimedia, and determine whether multimedia corresponding to the media information exists in a shared storage space of the mobile terminal, so that when the multimedia corresponding to the media information exists in the shared storage space, the multimedia in the shared storage space is automatically synchronized to a playing scene of the mobile terminal before connection, and when the multimedia corresponding to the media information does not exist in the shared storage control, the mobile terminal is used as an external storage mount space, and is synchronized to the playing scene of the mobile terminal before connection, thereby enabling the playing scene of the multimedia played on the vehicle machine to be automatically synchronized with the playing scene of the mobile terminal before connection, without manual operation of a user, and improving user experience.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention, as well as the preferred embodiments thereof, together with the following detailed description of the invention, given by way of illustration only, together with the accompanying drawings.
Detailed Description
In order to further describe the technical means and effects adopted by the present invention to achieve the preset purpose, the following detailed description of the present invention is given with reference to the accompanying drawings and preferred embodiments.
Fig. 1 is a flowchart of a multimedia sharing method according to a first embodiment of the present invention. The embodiment is a multimedia sharing method executed by a vehicle. As shown in fig. 1, the multimedia sharing method of the present embodiment may include the following steps:
step S11: and receiving connection request information which is sent by the USB interface and corresponds to the mobile terminal.
Specifically, in an embodiment, when a user connects a mobile terminal and a vehicle machine through USB, after a USB interface in the vehicle machine detects that the mobile terminal is inserted, connection request information corresponding to the mobile terminal is sent to the vehicle machine.
Step S12: and carrying out USB connection with the mobile terminal according to the connection request information, and judging whether the mobile terminal plays multimedia.
Specifically, in an embodiment, after the vehicle machine realizes the USB connection with the mobile terminal according to the connection request information, the vehicle machine scans the mobile terminal to obtain scan information, so as to determine whether the mobile terminal is playing multimedia according to the scan information, for example, whether music, pictures or videos are being played when the mobile terminal is connected with the vehicle machine in USB.
Step S13: and when the mobile terminal plays the multimedia, scanning the mobile terminal to obtain the media information corresponding to the mobile terminal.
Specifically, in an embodiment, multimedia is being played when the mobile terminal is connected to the vehicle, for example, music, pictures or videos are being played by the mobile terminal, and the vehicle scans the internal storage of the mobile terminal to obtain media information corresponding to the mobile terminal. Specifically, the media information includes name information, path information and playing progress information of a currently playing media of the mobile terminal.
Specifically, in an embodiment, when the mobile terminal retrieves that the mobile terminal is connected to the vehicle, the mobile terminal stores name information, path information and playing progress information of the multimedia being played by the user in association to an internal storage, so as to obtain corresponding media information. Specifically, when the currently played multimedia of the mobile terminal has audio information, the mobile terminal also stores the current volume information to the internal storage at the same time so as to obtain corresponding media information. Further, in an embodiment, the mobile terminal records all multimedia correspondences in the internal storage in a local media information list.
Step S14: and judging whether the multimedia corresponding to the media information exists in the shared storage space of the mobile terminal.
Specifically, in one embodiment, after the mobile terminal is connected with the vehicle machine through the USB interface, the vehicle machine opens up a shared storage space according to the device information of the mobile terminal, and prompts a user whether to establish media management of the mobile terminal, specifically, after receiving the media management confirmation information sent by the mobile terminal, the vehicle machine performs automatic synchronous management on the mobile terminal. Specifically, in one embodiment, when the vehicle detects that the shared storage space corresponding to the mobile terminal already exists, the vehicle directly uses the shared storage space.
Specifically, in an embodiment, the vehicle machine searches for corresponding multimedia from the shared storage space according to the media information, so as to determine whether the multimedia corresponding to the media information exists in the shared storage space of the mobile terminal.
Specifically, when the shared storage space has multimedia corresponding to the media information, step S15 is performed. When the shared storage control does not have the multimedia corresponding to the media information, step S16 is executed.
Step S15: and automatically synchronizing the multimedia in the shared storage space to a playing scene of the mobile terminal before connection.
Specifically, in an embodiment, when the multimedia corresponding to the media information exists in the shared storage space, for example, when the multimedia consistent with the multimedia currently played by the mobile terminal exists in the shared storage space, the vehicle automatically synchronizes the corresponding multimedia in the shared storage space to a playing scene before connection of the mobile terminal according to the media information, for example, the vehicle automatically plays the same name as the media played by the mobile terminal before connection, automatically synchronizes to the same playing progress, and plays the multimedia with the same volume, so that the scene of the multimedia played by the vehicle and the playing scene of the mobile terminal before connection can be automatically synchronized without manual operation of a user, and user experience is improved.
Step S16: taking the mobile terminal as an external storage mounting space, and synchronizing to a playing scene of the mobile terminal before connection.
Specifically, in an embodiment, when the multimedia corresponding to the media information does not exist in the shared storage control, for example, when the multimedia consistent with the currently played multimedia of the mobile terminal does not exist in the shared storage space, the vehicle machine uses the mobile terminal as the external storage mounting space, and the vehicle machine automatically synchronizes the corresponding multimedia in the external storage mounting space to a playing scene of the mobile terminal before connection according to the media information, for example, the vehicle machine automatically plays the same name of the media played by the mobile terminal before connection, automatically synchronizes to the same playing progress, and plays the multimedia with the same volume, so that the scene of the multimedia played by the vehicle machine and the playing scene of the mobile terminal before connection can be automatically synchronized, manual operation of a user is not needed, and user experience is improved.
Referring to fig. 2, fig. 2 is a flow chart of a multimedia sharing method according to a second embodiment of the invention. As shown in fig. 1 to 2, the multimedia sharing method provided in this embodiment connects with a mobile terminal according to connection request information, and further includes the following steps after the step of determining whether the mobile terminal is playing multimedia:
step S21: when the mobile terminal does not play the multimedia, the shared storage space corresponding to the mobile terminal exists.
Specifically, in an embodiment, when the mobile terminal does not play multimedia, for example, when the mobile terminal does not play music, pictures or videos, the vehicle determines whether a shared storage space corresponding to the mobile terminal exists in the vehicle.
Specifically, when there is a shared memory space corresponding to the mobile terminal, steps S22 to S23 are performed. When there is no shared memory space corresponding to the mobile terminal, step S24 is performed.
Step S22: and acquiring the multimedia information stored in the mobile terminal.
Specifically, in an embodiment, when a shared storage space corresponding to the mobile terminal exists in the vehicle, the vehicle scans the internal storage of the mobile terminal to obtain multimedia information corresponding to all multimedia in the internal storage of the mobile terminal, for example, all music, pictures, videos, and the like in the internal storage of the mobile terminal.
Step S23: and storing the multimedia information into the shared storage space.
Specifically, in an embodiment, the vehicle device stores multimedia information in the mobile terminal to the shared memory space, for example, synchronizes multimedia in the mobile terminal that is not synchronized to the shared memory space in the vehicle device.
Step S24: and opening a shared storage space corresponding to the mobile terminal according to the equipment information of the mobile terminal.
Specifically, in an embodiment, when a shared storage space corresponding to the mobile terminal does not exist in the vehicle, the vehicle sets up a shared storage space according to the device information of the mobile terminal. Specifically, the vehicle synchronizes all multimedia information in the mobile terminal to the shared storage space one by one.
Referring to fig. 3, fig. 3 is a flowchart illustrating a multimedia sharing method according to a third embodiment of the invention. As shown in fig. 1 to 3, in the multimedia sharing method provided in this embodiment, when the sharing storage control does not have the multimedia corresponding to the media information, the mobile terminal is used as an external storage mounting space, and the following steps are further included after the step of synchronizing to the playing scene of the mobile terminal before connection:
step S31: and automatically synchronizing the multimedia information in the external storage mounting space to the shared storage space.
Specifically, in an embodiment, the vehicle automatically synchronizes the multimedia information in the external storage mounting space to the shared storage space, for example, the vehicle synchronizes the multimedia being played from the external storage mounting space to the shared storage space, so that after the vehicle is disconnected from the mobile terminal, the vehicle can continue playing the corresponding multimedia.
Step S32: after the USB connection with the mobile terminal is disconnected, whether the currently played multimedia is completely synchronized to the shared storage space is judged.
Specifically, in an embodiment, after the vehicle and the mobile terminal exit from the USB connection, the vehicle determines whether the corresponding multimedia in the shared storage space has been completed synchronously, for example, whether the multimedia being played by the vehicle is already stored in the shared storage space corresponding to the mobile terminal.
Specifically, when the currently played multimedia has been completely synchronized into the shared memory space, step S33 is performed. When the currently played multimedia is not completely synchronized to the shared memory space, step S34 is performed.
Step S33: automatically switching to play the multimedia in the shared storage space, and synchronizing to the playing scene corresponding to the current playing.
Specifically, in an embodiment, when the currently played multimedia in the vehicle is completely synchronized to the shared storage space, for example, when the shared storage space corresponding to the mobile terminal in the vehicle has stored the currently played multimedia in the vehicle, the vehicle automatically switches the playing path of the currently played multimedia to the shared storage space corresponding to the mobile terminal, and synchronizes to the same progress and the same volume as those of the currently played multimedia, so that the scene of the multimedia played on the vehicle and the playing scene of the mobile terminal before connection can be automatically synchronized without manual operation of a user, and user experience is improved.
Step S34: and (5) popping up prompt information.
Specifically, in an embodiment, when the currently playing multimedia in the vehicle is not completely synchronized to the shared storage space, for example, when the shared storage space corresponding to the mobile terminal in the vehicle is not loaded with the currently playing multimedia in the vehicle, the vehicle generates a prompt message, for example, prompts the user that the currently playing multimedia is not synchronized, and the user will exit from playing the multimedia, etc.
Referring to fig. 4, fig. 4 is a flowchart illustrating a multimedia sharing method according to a fourth embodiment of the invention. As shown in fig. 1 to 4, the step of synchronizing multimedia information in an automatic external storage mounting space to a shared storage space in the multimedia sharing method provided in this embodiment specifically includes the following steps:
step S41: and receiving a synchronous setting instruction.
Specifically, in an embodiment, the vehicle machine transmits synchronization setting request information to the mobile terminal. Specifically, after receiving the synchronous setting request information, the mobile terminal judges whether a user-triggered determination button is received, and when the user triggers the determination button, the mobile terminal sends a synchronous setting instruction to the vehicle. And when the user-triggered determination button is not received, ending the multimedia synchronization setting in the vehicle machine and the mobile terminal.
Step S42: and acquiring the multimedia information in the external storage mounting space according to the synchronous setting instruction.
Specifically, in an embodiment, after the vehicle machine receives a synchronization setting instruction sent by the mobile terminal, or a user triggers a synchronization setting button on a display screen of the vehicle machine, the vehicle machine scans all multimedia information in an external storage mounting space according to the synchronization setting instruction, and acquires a storage path corresponding to the multimedia information.
Step S43: and synchronizing the multimedia information to the shared storage space one by one according to a preset rule.
Specifically, in an embodiment, the vehicle synchronizes all multimedia in the multimedia information to the shared storage space one by one according to a preset rule, for example, after the vehicle acquires the multimedia according to a storage path corresponding to each multimedia, the vehicle stores the acquired multimedia in the shared storage space.
Specifically, in an embodiment, the preset rule may, but is not limited to, be that the priority of the multimedia being played in the mobile terminal is higher than the priority of the pictures in the camera folder in the mobile terminal, which is higher than the priority of the music in the local download music folder, which is higher than the priority of the video in the local download video folder.
Referring to fig. 5, fig. 5 is a flowchart illustrating a multimedia sharing method according to a fifth embodiment of the invention. As shown in fig. 1 to 5, in the multimedia sharing method provided in this embodiment, when there is multimedia corresponding to media information in the shared storage space, the step of automatically synchronizing the multimedia in the shared storage space to a play scene of the mobile terminal before connection further includes the following steps:
step S51: and acquiring a media information list stored in the mobile terminal.
Specifically, in an embodiment, the vehicle obtains a media information list of internal dimensions in the mobile terminal. Specifically, in an embodiment, when the mobile terminal retrieves that the mobile terminal is connected to the vehicle, the mobile terminal stores name information, path information and playing progress information of the multimedia being played by the user in association to an internal storage, so as to obtain corresponding media information. Specifically, when the currently played multimedia of the mobile terminal has audio information, the mobile terminal also stores the current volume information to the internal storage at the same time so as to obtain corresponding media information. Further, in an embodiment, the mobile terminal records all multimedia correspondences in the internal storage in a local media information list.
Step S52: and synchronizing the multimedia information which is not stored in the shared storage space in the media information list to the shared storage space.
Specifically, in an embodiment, the vehicle compares all multimedia in the shared storage space with multimedia in the media information list to obtain a first multimedia in the internal storage of the mobile terminal, which is not synchronized in the shared storage space. Specifically, the vehicle can synchronize the first multimedia stored in the internal storage of the mobile terminal to the shared storage space, and after the vehicle and the mobile terminal are connected through the USB, the vehicle can play the corresponding multimedia according to the preset playing rule of the mobile terminal, for example, when the mobile terminal plays music, the preset playing rule is set to be sequential playing, and after the vehicle and the mobile terminal are connected through the USB, the vehicle automatically jumps to the next song in sequence after the song being played is finished, so that the user experience is improved.
Fig. 6 is a block diagram of a vehicle 100 according to a sixth embodiment of the present invention. As shown in fig. 6, the vehicle machine 100 provided in the present embodiment includes a memory 110 and a processor 120.
Specifically, in one embodiment, the memory 110 is used to store executable program code. The processor 120 is configured to invoke the executable program code in the memory 110 to implement the steps performed by the multimedia sharing method, including: receiving connection request information which is sent by a USB interface and corresponds to the mobile terminal; USB connection is carried out with the mobile terminal according to the connection request information, and whether the mobile terminal plays multimedia or not is judged; when the mobile terminal plays multimedia, scanning the mobile terminal to obtain media information corresponding to the mobile terminal; judging whether the multimedia corresponding to the media information exists in the shared storage space of the mobile terminal; when the shared storage space has the multimedia corresponding to the media information, automatically synchronizing the multimedia in the shared storage space to a playing scene of the mobile terminal before connection; and when the shared storage control does not have the multimedia corresponding to the media information, taking the mobile terminal as an external storage mounting space, and synchronizing to a playing scene of the mobile terminal before connection.
Specifically, in one embodiment, the step of executing the step of connecting to the mobile terminal according to the connection request information and determining whether the mobile terminal is playing multimedia further includes: when the mobile terminal does not play the multimedia, judging that a shared storage space corresponding to the mobile terminal exists; when the shared storage space corresponding to the mobile terminal exists, acquiring multimedia information in internal storage in the mobile terminal; storing the multimedia information into a shared storage space; and when the shared storage space corresponding to the mobile terminal does not exist, the shared storage space corresponding to the mobile terminal is opened according to the equipment information of the mobile terminal.
Specifically, in an embodiment, when the shared storage control does not have the multimedia corresponding to the media information, the processor 120 uses the mobile terminal as the external storage mounting space, and synchronizes to the mobile terminal and further performs the following steps after the step of playing the scene before connection, where the steps include: synchronizing the multimedia information in the automatic external storage mounting space to the shared storage space; after the USB connection with the mobile terminal is disconnected, judging whether the currently played multimedia is completely synchronized into the shared storage space; when the currently played multimedia is completely synchronized to the shared storage space, automatically switching to play the multimedia in the shared storage space, and synchronizing to a playing scene corresponding to the current playing; and when the currently played multimedia is not completely synchronized to the shared storage space, popping up prompt information.
Specifically, in one embodiment, the step of executing the step of automatically synchronizing the multimedia information in the external storage mounting space to the shared storage space by the processor 120 includes: receiving a synchronous setting instruction; acquiring multimedia information in an external storage mounting space according to the synchronous setting instruction; and synchronizing the multimedia information to the shared storage space one by one according to a preset rule.
Specifically, in an embodiment, when the shared memory space has multimedia corresponding to media information, the step of automatically synchronizing the multimedia in the shared memory space to a play scene of the mobile terminal before connection is further performed by the processor 120 includes: acquiring a media information list stored in the mobile terminal; and synchronizing the multimedia information which is not stored in the shared storage space in the media information list to the shared storage space.
In this embodiment, for the specific process of implementing the respective functions of the functional units of the vehicle 100, please refer to the specific contents described in the embodiments shown in fig. 1 to 5, which are not described herein again.
Specifically, the multimedia sharing method and the vehicle machine provided in the embodiments receive connection request information corresponding to a mobile terminal sent by a USB interface, connect the mobile terminal with the USB according to the connection request information, and determine whether the mobile terminal is playing multimedia, so as to scan the mobile terminal to obtain media information corresponding to the mobile terminal when the mobile terminal is playing multimedia, and determine whether multimedia corresponding to the media information exists in a shared storage space of the mobile terminal, so that when the multimedia corresponding to the media information exists in the shared storage space, the multimedia in the shared storage space is automatically synchronized to a playing scene of the mobile terminal before connection, and when the multimedia corresponding to the media information does not exist in the shared storage control, the mobile terminal is used as an external storage mount space, and is synchronized to the playing scene of the mobile terminal before connection, thereby enabling the playing scene of the multimedia played on the vehicle machine to be automatically synchronized with the playing scene of the mobile terminal before connection, without manual operation of a user, and improving user experience.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, where the computer-readable storage medium is, for example, a nonvolatile memory, such as an optical disc, a hard disk, or a flash memory. The computer-executable instructions are for causing a computer or similar computing device to perform various operations in the multimedia sharing method described above.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the vehicle-machine embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant points will be referred to in the description of the method embodiment.