CN112527737B - Vehicle-mounted media file scanning method, transmission method and system - Google Patents

Vehicle-mounted media file scanning method, transmission method and system Download PDF

Info

Publication number
CN112527737B
CN112527737B CN202011520878.XA CN202011520878A CN112527737B CN 112527737 B CN112527737 B CN 112527737B CN 202011520878 A CN202011520878 A CN 202011520878A CN 112527737 B CN112527737 B CN 112527737B
Authority
CN
China
Prior art keywords
vehicle
scanning
file
files
scanned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011520878.XA
Other languages
Chinese (zh)
Other versions
CN112527737A (en
Inventor
程德心
匡浩
刘兴华
苏俊杰
云晓会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Kotei Informatics Co Ltd
Original Assignee
Wuhan Kotei Informatics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Kotei Informatics Co Ltd filed Critical Wuhan Kotei Informatics Co Ltd
Priority to CN202011520878.XA priority Critical patent/CN112527737B/en
Publication of CN112527737A publication Critical patent/CN112527737A/en
Application granted granted Critical
Publication of CN112527737B publication Critical patent/CN112527737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists

Abstract

The invention provides a vehicle-mounted multimedia file scanning method, a vehicle-mounted multimedia file transmission method and a vehicle-mounted multimedia file transmission system, wherein the method comprises the following steps: searching the position of a recently played vehicle-mounted media file from a magnetic disc; finding a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently; starting with the vehicle-mounted media file played recently, scanning each vehicle-mounted media file of the same hierarchy leftwards and rightwards simultaneously; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the disk are scanned completely. The embodiment of the invention firstly finds the vehicle-mounted multimedia file played recently, and starts scanning from the vicinity of the vehicle-mounted multimedia file played recently, namely the vehicle-mounted multimedia file played recently is scanned firstly, and after starting up is finished, a play list near the vehicle-mounted multimedia file played recently is conveniently positioned.

Description

Vehicle-mounted media file scanning method, transmission method and system
Technical Field
The invention relates to the field of vehicle-mounted media, in particular to a vehicle-mounted media file scanning method, a vehicle-mounted media file transmission method and a vehicle-mounted media file scanning system.
Background
With the continuous upgrading of the automobile industry, the expected value of a consumer to an automobile is higher and higher, and a simple, convenient and efficient set of vehicle-mounted central control system also becomes an important weight for the consumer to select the automobile. Due to the characteristics of the Android such as source opening, expandability and rich application, a plurality of car machines are developed based on Android, and although the Android system of Google is optimized for cars, the diversification of hardware such as peripheral instruments and peripherals of the cars also causes various inconveniences when the hardware is directly transplanted to the car machines.
The audio and power amplifier of the automobile can meet the requirements of most people on music, CD is a few of people due to poor capacity and expansibility, most automobiles do not support damage at the present stage of Bluetooth music, the tone difference is too large compared with CD, and the sound quality and the capacity can be well balanced by USB flash disk music.
When the vehicle-mounted multimedia files in the disk are scanned, the native Android system scans the USB flash disk according to the storage sequence of the files in the disk, and the scanning cannot be started from the place where the scanning is to be started, so that the scanning effect is not ideal in many cases.
Disclosure of Invention
Embodiments of the present invention provide a vehicle-mounted multimedia file scanning method, transmission method, and system, which overcome the above problems or at least partially solve the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a method for scanning a vehicle-mounted multimedia file, including: searching the position of the vehicle-mounted media file played recently from the magnetic disk; finding a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently; scanning each vehicle-mounted media file of the same level leftwards and rightwards at the same time by starting with the vehicle-mounted media file played recently; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the disk are scanned completely.
On the basis of the above technical solutions, the embodiments of the present invention may be further improved as follows.
Optionally, the scanning, starting from the recently played in-vehicle media file, each in-vehicle media file of the same hierarchy to the left and the right simultaneously includes: defining two threads; and scanning a plurality of vehicle-mounted media files of the same level on the left side of the vehicle-mounted media file played recently by adopting one thread, and scanning a plurality of vehicle-mounted media files of the same level on the right side of the vehicle-mounted media file played recently by adopting another thread.
Optionally, the method further includes: when a plurality of vehicle-mounted media files of the same hierarchy are scanned leftwards from a vehicle-mounted media file played most recently, each vehicle-mounted media file is scanned respectively in a right-to-left direction; when a plurality of in-vehicle media files of the same hierarchy are scanned to the right, starting with the in-vehicle media file played most recently, each in-vehicle media file is scanned in a left-to-right direction, respectively.
Optionally, the scanning-based downward scanning and upward scanning of each vehicle-mounted media file respectively until all vehicle-mounted media files in the disk are scanned completely includes: the method comprises the steps of scanning the vehicle-mounted media files of the lower level of each vehicle-mounted media file, and then scanning the vehicle-mounted media files of the upper level of each vehicle-mounted media file.
Optionally, the scanning-based vehicle-mounted media files respectively scan down and scan up until all vehicle-mounted media files in the disk are scanned, and the method further includes: and when the playlist triggering operation is detected, presenting the vehicle-mounted media files of the preset number scanned firstly in a playlist form.
According to a second aspect of the embodiments of the present invention, there is provided a vehicle-mounted multimedia file transmission method, including: according to the operation of inserting a disk into a client, scanning all vehicle-mounted multimedia files in the disk based on a vehicle-mounted media file scanning method; segmenting all scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain a plurality of groups of vehicle-mounted multimedia files; and sending a group of vehicle-mounted multimedia files scanned firstly to the client in a list form.
Optionally, the method further includes: and when the sliding operation of the current vehicle-mounted multimedia file list is detected, sending a group of corresponding vehicle-mounted multimedia files to the client in a list mode according to the direction of the sliding operation.
Optionally, the sending, according to the direction of the sliding operation, the corresponding group of vehicle-mounted multimedia files to the client in a list manner includes: when the sliding direction is upward, acquiring a group of vehicle-mounted multimedia files in front of the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list mode; and when the sliding direction is downward, acquiring a group of vehicle-mounted multimedia files behind the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list mode.
According to a third aspect of the embodiments of the present invention, there is provided an in-vehicle multimedia file scanning system, including: the searching module is used for searching the position of the vehicle-mounted media file which is played recently from a magnetic disc and searching a plurality of vehicle-mounted media files which are at the same level as the vehicle-mounted media file which is played recently; the scanning module is used for scanning each vehicle-mounted media file of the same level leftwards and rightwards at the same time by starting from the vehicle-mounted media file played recently; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the magnetic disk are scanned completely.
According to a fourth aspect of the embodiments of the present invention, there is provided an in-vehicle multimedia file transfer system, including: the vehicle-mounted multimedia file scanning system is used for scanning all vehicle-mounted multimedia files in the disk according to the operation of inserting the disk into the client; the segmentation module is used for segmenting all the scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain a plurality of groups of vehicle-mounted multimedia files; and the sending module is used for sending the group of vehicle-mounted multimedia files which are scanned firstly to the client in a list form.
According to a fifth aspect of the embodiments of the present invention, there is provided an electronic device, including a memory, and a processor, where the processor is configured to implement the steps of the in-vehicle multimedia file scanning method and the transmission method when executing a computer management-like program stored in the memory.
According to a sixth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer management-like program is stored, the computer management-like program, when being executed by a processor, implementing the steps of the in-vehicle multimedia file scanning method, the transmission method.
According to the vehicle-mounted multimedia file scanning method, the vehicle-mounted multimedia file transmission method and the vehicle-mounted multimedia file transmission system, the vehicle-mounted multimedia file which is played recently is found out firstly, scanning is started from the position close to the vehicle-mounted multimedia file which is played recently, namely the vehicle-mounted multimedia file which is played recently is scanned firstly, and after starting is completed, a play list close to the vehicle-mounted multimedia file which is played recently is conveniently located.
Drawings
Fig. 1 is a flowchart of a method for scanning a vehicle-mounted multimedia file according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage structure of an on-board multimedia file in a magnetic disk;
fig. 3 is a flowchart of a method for transmitting a vehicle-mounted multimedia file according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a segmented transmission of a vehicle-mounted multimedia file;
FIG. 5 is a schematic structural diagram of a vehicle-mounted multimedia file scanning system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a vehicle-mounted multimedia file transmission system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a possible electronic device according to an embodiment of the present invention;
fig. 8 is a schematic hardware structure diagram of a possible computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention, but are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a method for scanning a vehicle-mounted multimedia file according to an embodiment of the present invention, and as shown in fig. 1, the method includes: 101. searching the position of the vehicle-mounted media file played recently from the magnetic disk; 102. searching a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently; 103. scanning each vehicle-mounted media file of the same layer leftwards and rightwards at the same time by starting with the vehicle-mounted media file played recently; 104. and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the disk are scanned completely.
It can be understood that the sound and power amplifier of the automobile can meet the requirements of most people on music, and the scanning of the vehicle-mounted multimedia files in the magnetic disk is performed according to the storage sequence of the vehicle-mounted multimedia files in the magnetic disk in the original Android system. After the car machine system is started, if the multimedia files in the disk are many, the scanning mode cannot quickly locate the file near the last played car multimedia.
Based on the above, the embodiment of the invention provides a multimedia file capable of being quickly located near a recently played vehicle-mounted multimedia file, wherein the playing can be started from the last played vehicle-mounted multimedia file, such as music, video and the like.
Firstly, finding out the position of the vehicle-mounted multimedia file played last time from a magnetic disk, and finding out other vehicle-mounted multimedia files at the same level as the vehicle-mounted multimedia file played last time; then, starting with the recently played vehicle-mounted multimedia, scanning a plurality of vehicle-mounted multimedia files of the same level leftwards and rightwards simultaneously; and finally, for each scanned vehicle-mounted multimedia file, respectively scanning the multimedia file at the lower hierarchy level and the multimedia file at the upper hierarchy level until all the vehicle-mounted multimedia files in the disk are scanned.
In the vehicle-mounted multimedia file scanning mode of the embodiment of the invention, the vehicle-mounted multimedia file which is played recently is found firstly, scanning is started from the position near the vehicle-mounted multimedia file which is played recently, namely the vehicle-mounted multimedia file which is played recently is scanned firstly, and after starting is finished, a play list near the vehicle-mounted multimedia file which is played recently is conveniently positioned.
In one possible embodiment, scanning each in-vehicle media file of the same hierarchy to the left and right simultaneously starting with the most recently played in-vehicle media file comprises: defining two threads; and scanning a plurality of vehicle-mounted media files of the same level on the left side of the vehicle-mounted media file played recently by adopting one thread, and scanning a plurality of vehicle-mounted media files of the same level on the right side of the vehicle-mounted media file played recently by adopting another thread.
It can be understood that, in the process of scanning the vehicle-mounted multimedia file in the disk, two threads are defined, one of the threads is adopted for scanning the vehicle-mounted multimedia file on the left side of the vehicle-mounted multimedia file which is played recently, and the other thread is adopted for scanning the vehicle-mounted multimedia file on the right side of the vehicle-mounted multimedia file which is played recently. The two threads scan simultaneously, so that the scanning speed and efficiency of the vehicle-mounted multimedia file in the whole disk can be increased.
The vehicle-mounted multimedia file on the left of the recently played vehicle-mounted multimedia file can be understood as a vehicle-mounted multimedia file with the original sequence arranged in front of the recently played vehicle-mounted multimedia file, and similarly, the vehicle-mounted multimedia file on the right of the recently played vehicle-mounted multimedia file can be understood as a vehicle-mounted multimedia file with the original sequence arranged behind the recently played vehicle-mounted multimedia file.
In a possible implementation manner, the method further includes: when a plurality of vehicle-mounted media files of the same level are scanned leftwards from a recently played vehicle-mounted media file, each vehicle-mounted media file is scanned from right to left; when a plurality of in-vehicle media files of the same hierarchy are scanned to the right, starting with the in-vehicle media file played most recently, each in-vehicle media file is scanned in a left-to-right direction, respectively.
It can be understood that when a plurality of vehicle-mounted media files of the same level are scanned leftwards, each vehicle-mounted multimedia file is scanned one by one in a direction from right to left; when a plurality of vehicle-mounted multimedia files of the same level are scanned rightwards, each vehicle-mounted multimedia file is scanned one by one according to the left-to-right direction. According to the scanning direction, the vehicle-mounted multimedia file played recently can be scanned firstly, and the vehicle-mounted multimedia file nearby the vehicle-mounted multimedia file played recently can be positioned quickly.
In a possible embodiment, scanning down and scanning up the vehicle media files respectively based on each scanned vehicle media file until all vehicle media files in the disc are scanned includes: the method comprises the steps of scanning the vehicle-mounted media files of the lower level of each vehicle-mounted media file, and then scanning the vehicle-mounted media files of the upper level of each vehicle-mounted media file.
It can be understood that, for each vehicle-mounted multimedia file, in the process of scanning up and scanning down, the vehicle-mounted multimedia file at the lower level of each vehicle-mounted multimedia file is scanned first, and then the vehicle-mounted multimedia file at the upper level of each vehicle-mounted multimedia file is scanned.
Referring to fig. 2, a detailed description is given to a vehicle-mounted multimedia file scanning method provided by an embodiment of the present invention, and fig. 2 shows a schematic diagram of an original storage structure of a vehicle-mounted multimedia file in a disk, when scanning is performed by using the vehicle-mounted multimedia scanning method provided by the embodiment of the present invention, first, a vehicle-mounted multimedia file played most recently is found in the disk, and a plurality of vehicle-mounted multimedia files at a statistical hierarchy level with the vehicle-mounted multimedia file played most recently, that is, a file 2, a folder 3, and a file 4 in fig. 2 are found, where the file 2 and the folder 3 are located on the left side of the vehicle-mounted multimedia file played most recently, and the file 4 is located on the right side of the vehicle-mounted multimedia file played most recently.
Then, one thread is used to scan the files 2 and 3, and the other thread is used to scan the files 4, and during the scanning process, for the files 2 and 3, the files 2 are scanned first, and then the files 3 are scanned.
For file 2 and folder 3, the file at the level below file 2, which is not shown in fig. 2, is scanned first, and then the file at the level below folder 3, i.e., file 5 in fig. 2, is scanned. After scanning the file 5, the last level of the recently played in-vehicle multimedia file is scanned, which can be understood as the parent file, i.e. the folder 2, and then the in-vehicle multimedia file of the same level of the folder 2 is scanned. By analogy, the multimedia files of the same level are scanned, then the files of the lower level of each multimedia file are scanned, and finally the files of the upper level are scanned until all the vehicle-mounted multimedia files in the disk are scanned.
In a possible embodiment, scanning down and scanning up the vehicle-mounted media files respectively based on each scanned vehicle-mounted media file until all vehicle-mounted media files in the disk are scanned completely further includes: when the playlist triggering operation is detected, presenting the vehicle-mounted media files of the preset number scanned firstly in a playlist form.
It can be understood that after all the vehicle-mounted multimedia files in the disk are scanned, or in the process of scanning the vehicle-mounted multimedia files in the disk, when a trigger operation is detected, a play list of the vehicle-mounted multimedia files scanned first is presented, wherein the vehicle-mounted multimedia files scanned first are the multimedia files near the vehicle-mounted multimedia files played recently.
Referring to fig. 3, there is provided a vehicle-mounted multimedia file transmission method, including: 301. according to the operation of inserting a disk into a client, scanning all vehicle-mounted multimedia files in the disk based on a vehicle-mounted media file scanning method; 302. segmenting all scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain a plurality of groups of vehicle-mounted multimedia files; 303. and sending a group of vehicle-mounted multimedia files scanned firstly to the client in a list form.
It can be understood that when the number of multimedia files in the usb disk is large, for example, more than 5000 multimedia files, the size limit of android binder communication is likely to be exceeded when the playlist of all multimedia files is transmitted to the client, and the playlist is not supported to be displayed quickly, which affects the system stability and user experience.
Based on the method, on the basis of the vehicle-mounted multimedia file scanning, a multimedia file transmission method is also provided, and the method mainly realizes the segmented transmission of the multimedia file so as to solve the problems of one-time transmission and network blockage.
After the vehicle-mounted multimedia file scanning method provided by the embodiment is adopted to scan all the vehicle-mounted multimedia files in the disk, all the vehicle-mounted multimedia files are segmented according to the scanning sequence to obtain multiple groups of vehicle-mounted multimedia files, for example, the number of the files in each group of vehicle-mounted multimedia files is the same.
When a request of a client is received, a group of vehicle-mounted multimedia files which are scanned firstly are sent to the client in a list form for presentation.
In a possible implementation manner, the method further includes: and when the sliding operation of the current vehicle-mounted multimedia file list is detected, sending a group of corresponding vehicle-mounted multimedia files to the client in a list mode according to the direction of the sliding operation.
It can be understood that, for the currently presented in-vehicle multimedia file playlist, when the sliding operation on the current playlist is detected, the playlist of a set of in-vehicle multimedia files corresponding to the sliding operation can be sent to the client for presentation.
When the sliding direction is upward, acquiring a group of vehicle-mounted multimedia files in front of the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list manner; and when the sliding direction is downward, acquiring a group of vehicle-mounted multimedia files behind the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list mode. The play list transmitted to the client is only the play list of a group of vehicle-mounted multimedia files, but not all the play lists, so that the play list of the vehicle-mounted multimedia files can be displayed quickly, and the stability of the system is ensured.
Referring to fig. 4, a transmission method of a vehicle-mounted multimedia file according to an embodiment of the present invention is shown, when a usb disk is inserted or the device is started, scanning the vehicle-mounted multimedia file in the usb disk, storing all the vehicle-mounted multimedia files obtained by scanning in a database, segmenting all the vehicle-mounted multimedia files obtained by scanning according to a scanning sequence to obtain a plurality of groups of vehicle-mounted multimedia files, and presenting the first scanned group of vehicle-mounted multimedia files to a client in a playlist form.
When the sliding operation of the play list is detected, a group of vehicle-mounted multimedia files corresponding to the sliding operation are searched from the database and sent to the client, the client is presented in the form of the play list, and segmented transmission of the multimedia files is achieved, so that the problems of one-time transmission and network blockage are solved.
Referring to fig. 5, there is provided an in-vehicle multimedia file scanning system, including a lookup module 501 and a scanning module 502, wherein:
the searching module 501 is configured to search, from a magnetic disk, a position of a recently played vehicle-mounted media file, and find a plurality of vehicle-mounted media files at the same level as the recently played vehicle-mounted media file;
a scanning module 502, configured to scan each vehicle media file of the same hierarchy to the left and the right at the same time, starting with the vehicle media file played recently; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the magnetic disk are scanned completely.
It can be understood that the vehicle-mounted multimedia file scanning system provided by the embodiment of the present invention corresponds to the vehicle-mounted multimedia file scanning methods provided by the foregoing embodiments, and related technical features of the vehicle-mounted multimedia file scanning system can be referred to related technical features of the vehicle-mounted multimedia file scanning method, and a description thereof is not repeated here.
Referring to fig. 6, there is provided an in-vehicle multimedia file transmission system, including an in-vehicle multimedia file scanning system 601, a slicing module 602, and a sending module 603, wherein:
the vehicle-mounted multimedia file scanning system 601 is used for scanning all vehicle-mounted multimedia files in a disk according to the operation of inserting the disk into a client;
a segmentation module 602, configured to segment all scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain multiple groups of vehicle-mounted multimedia files;
a sending module 603, configured to send a group of vehicle-mounted multimedia files scanned first to a client in a list.
It can be understood that the vehicle-mounted multimedia file transmission system provided by the embodiment of the present invention corresponds to the vehicle-mounted multimedia file transmission method provided by each of the foregoing embodiments, and the relevant technical features of the vehicle-mounted multimedia file transmission system can be referred to the relevant technical features of the vehicle-mounted multimedia file transmission method, and will not be described again here.
Referring to fig. 7, fig. 7 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the invention. As shown in fig. 7, an embodiment of the present invention provides an electronic device, which includes a memory 710, a processor 720, and a computer program 711 stored in the memory 720 and running on the processor 720, wherein the processor 720 implements the following steps when executing the computer program 711: searching the position of the vehicle-mounted media file played recently from the magnetic disk; finding a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently; scanning each vehicle-mounted media file of the same layer leftwards and rightwards at the same time by starting with the vehicle-mounted media file played recently; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the disk are scanned completely.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an embodiment of a computer-readable storage medium according to the present invention. As shown in fig. 8, the present embodiment provides a computer-readable storage medium 800 having a computer program 811 stored thereon, the computer program 811 realizing the following steps when executed by a processor: searching the position of the vehicle-mounted media file played recently from the magnetic disk; finding a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently; scanning each vehicle-mounted media file of the same level leftwards and rightwards at the same time by starting with the vehicle-mounted media file played recently; and respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the disk are scanned completely.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.

Claims (9)

1. A vehicle-mounted media file scanning method is characterized by comprising the following steps:
searching the position of the vehicle-mounted media file played recently from the magnetic disk;
finding a plurality of vehicle-mounted media files at the same level as the vehicle-mounted media file played recently;
scanning each vehicle-mounted media file of the same layer leftwards and rightwards at the same time by starting with the vehicle-mounted media file played recently; the vehicle-mounted multimedia file on the left of the recently played vehicle-mounted multimedia file is a vehicle-mounted multimedia file with the original sequence arranged in front of the recently played vehicle-mounted multimedia file, and the vehicle-mounted multimedia file on the right of the recently played vehicle-mounted multimedia file is a vehicle-mounted multimedia file with the original sequence arranged behind the recently played vehicle-mounted multimedia file;
respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the magnetic disk are scanned completely;
the scanning-based downward scanning and upward scanning of each vehicle-mounted media file respectively until all vehicle-mounted media files in the disk are scanned comprises the following steps:
the method comprises the steps of firstly, scanning the vehicle-mounted media files of the lower levels of each vehicle-mounted media file, and then scanning the vehicle-mounted media files of the upper levels of each vehicle-mounted media file.
2. The method of claim 1, wherein scanning each vehicle media file of the same hierarchy to the left and right simultaneously beginning with the recently played vehicle media file comprises:
defining two threads;
and scanning a plurality of vehicle-mounted media files of the same level on the left side of the vehicle-mounted media file played recently by adopting one thread, and scanning a plurality of vehicle-mounted media files of the same level on the right side of the vehicle-mounted media file played recently by adopting another thread.
3. The method for scanning vehicle-mounted media files according to claim 1 or 2, further comprising:
when a plurality of vehicle-mounted media files of the same level are scanned leftwards from a recently played vehicle-mounted media file, each vehicle-mounted media file is scanned from right to left;
when a plurality of in-vehicle media files of the same hierarchy are scanned to the right, starting with the in-vehicle media file played most recently, each in-vehicle media file is scanned in a left-to-right direction, respectively.
4. The method of claim 1, wherein scanning down and scanning up the vehicle-mounted media files respectively based on each scanned vehicle-mounted media file until all vehicle-mounted media files in the disk are scanned completely further comprises:
and when the playlist triggering operation is detected, presenting the vehicle-mounted media files of the preset number scanned firstly in a playlist form.
5. A vehicle-mounted multimedia file transmission method is characterized by comprising the following steps:
according to the operation of inserting a client into a disk, scanning all vehicle-mounted multimedia files in the disk based on the vehicle-mounted media file scanning method of any one of claims 1 to 4;
segmenting all scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain a plurality of groups of vehicle-mounted multimedia files;
and sending a group of vehicle-mounted multimedia files scanned firstly to the client in a list form.
6. The vehicle-mounted multimedia file transmission method according to claim 5, further comprising:
and when the sliding operation of the current vehicle-mounted multimedia file list is detected, sending a group of corresponding vehicle-mounted multimedia files to the client in a list mode according to the direction of the sliding operation.
7. The vehicle-mounted multimedia file transmission method according to claim 6, wherein the sending a corresponding set of vehicle-mounted multimedia files to the client in a list manner according to the direction of the sliding operation comprises:
when the sliding operation direction is upward, acquiring a group of vehicle-mounted multimedia files in front of the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list mode;
and when the sliding operation direction is downward, acquiring a group of vehicle-mounted multimedia files behind the current vehicle-mounted multimedia file list, and sending the vehicle-mounted multimedia files to the client in a list mode.
8. An in-vehicle multimedia file scanning system, comprising:
the searching module is used for searching the position of the vehicle-mounted media file which is played recently from a magnetic disc and searching a plurality of vehicle-mounted media files which are at the same level as the vehicle-mounted media file which is played recently;
the scanning module is used for scanning each vehicle-mounted media file of the same hierarchy leftwards and rightwards at the same time by starting from the vehicle-mounted media file played recently; respectively scanning the vehicle-mounted media files downwards and upwards based on each scanned vehicle-mounted media file until all the vehicle-mounted media files in the magnetic disk are scanned completely;
the vehicle-mounted multimedia file on the left of the recently played vehicle-mounted multimedia file is a vehicle-mounted multimedia file with the original sequence arranged in front of the recently played vehicle-mounted multimedia file, and the vehicle-mounted multimedia file on the right of the recently played vehicle-mounted multimedia file is a vehicle-mounted multimedia file with the original sequence arranged behind the recently played vehicle-mounted multimedia file;
the scanning-based downward scanning and upward scanning of each vehicle-mounted media file respectively until all vehicle-mounted media files in the disk are scanned comprises the following steps:
the method comprises the steps of scanning the vehicle-mounted media files of the lower level of each vehicle-mounted media file, and then scanning the vehicle-mounted media files of the upper level of each vehicle-mounted media file.
9. An in-vehicle multimedia file transfer system, comprising:
the vehicle-mounted multimedia file scanning system of claim 8, configured to scan all vehicle-mounted multimedia files in a disk according to a client disk insertion operation;
the segmentation module is used for segmenting all the scanned vehicle-mounted multimedia files according to the sequence of the scanned vehicle-mounted multimedia files to obtain a plurality of groups of vehicle-mounted multimedia files;
and the sending module is used for sending the group of vehicle-mounted multimedia files which are scanned firstly to the client in a list form.
CN202011520878.XA 2020-12-21 2020-12-21 Vehicle-mounted media file scanning method, transmission method and system Active CN112527737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011520878.XA CN112527737B (en) 2020-12-21 2020-12-21 Vehicle-mounted media file scanning method, transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011520878.XA CN112527737B (en) 2020-12-21 2020-12-21 Vehicle-mounted media file scanning method, transmission method and system

Publications (2)

Publication Number Publication Date
CN112527737A CN112527737A (en) 2021-03-19
CN112527737B true CN112527737B (en) 2022-06-17

Family

ID=75002170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011520878.XA Active CN112527737B (en) 2020-12-21 2020-12-21 Vehicle-mounted media file scanning method, transmission method and system

Country Status (1)

Country Link
CN (1) CN112527737B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729418A (en) * 2013-12-18 2014-04-16 惠州华阳通用电子有限公司 Vehicular platform media file managing method
CN109542848A (en) * 2018-11-07 2019-03-29 深圳市布谷鸟科技有限公司 A kind of vehicle-mounted media file fast scanning method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090282076A1 (en) * 2008-05-07 2009-11-12 Library Video Company Playlist processing
CN102104623A (en) * 2010-12-20 2011-06-22 广州市动景计算机科技有限公司 Method and system for performing break-point continuous playing of media file through mobile terminal
CN102306146A (en) * 2011-07-28 2012-01-04 Tcl集团股份有限公司 Method, device and multimedia device for scanning media files
CN102543122A (en) * 2011-12-08 2012-07-04 上海博泰悦臻电子设备制造有限公司 Method and device for playing vehicle-mounted end U disk videos
CN102708197B (en) * 2012-05-16 2016-09-21 Tcl集团股份有限公司 A kind of multimedia file management method and device
CN103473341A (en) * 2013-09-23 2013-12-25 网易(杭州)网络有限公司 Playing list generating method and equipment
CN104966526B (en) * 2015-01-14 2017-06-23 广州酷狗计算机科技有限公司 A kind of shuffle method and device
CN109815348A (en) * 2018-12-25 2019-05-28 北京凯视达科技有限公司 Playback method, device, storage medium and the electronic equipment of multimedia file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729418A (en) * 2013-12-18 2014-04-16 惠州华阳通用电子有限公司 Vehicular platform media file managing method
CN109542848A (en) * 2018-11-07 2019-03-29 深圳市布谷鸟科技有限公司 A kind of vehicle-mounted media file fast scanning method and system

Also Published As

Publication number Publication date
CN112527737A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
JP4944919B2 (en) Automatic media file selection
US8484227B2 (en) Caching and synching process for a media sharing system
CN100549970C (en) Carry out the synchronous method and apparatus of audio/video content by playlist
US20140228990A1 (en) Playback apparatus, playback method, and playback program
US20120116558A1 (en) Augmenting media content in a media sharing group
US20100094935A1 (en) Collection digest for a media sharing system
US8214399B2 (en) Shuffling playback content based on multiple criteria
JP5594532B2 (en) Information processing apparatus and method, information processing system, and program
JP2006522400A (en) Method and apparatus for grouping content items
CN104702986A (en) Ranking method and device of program list
CN104834738A (en) Record file storage method and device
CN102193943B (en) Method and device for providing media data for user
CN112527737B (en) Vehicle-mounted media file scanning method, transmission method and system
CN104732990A (en) Method and device for adjusting playlist sequence
EP2065810A2 (en) Method and system for displaying and accessing music data files
EP1906404A1 (en) Device, method, and computer program product for structuring digital-content program
JP6865259B2 (en) Interactive music request method, device, terminal, storage medium and program
KR101684577B1 (en) Method of providing tag-based list of content and apparatus for the same
US20100131528A1 (en) System and method for identifying attributes of digital media data
CN102088449A (en) Playing method and device of network video file
JP2007066370A (en) Play-back apparatus and play-back method
CN102640122B (en) Content search apparatus, content search method
CN110310673B (en) Music player and music playing method
CN108459804B (en) Method and device for playing vehicle-mounted rearview mirror
CN110188211B (en) Method for rapidly loading multimedia application list in android vehicle-mounted system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant