CN117768738A - Media file scanning method, device, equipment and storage medium - Google Patents

Media file scanning method, device, equipment and storage medium Download PDF

Info

Publication number
CN117768738A
CN117768738A CN202311827882.4A CN202311827882A CN117768738A CN 117768738 A CN117768738 A CN 117768738A CN 202311827882 A CN202311827882 A CN 202311827882A CN 117768738 A CN117768738 A CN 117768738A
Authority
CN
China
Prior art keywords
folder
media
file
user
modified
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.)
Pending
Application number
CN202311827882.4A
Other languages
Chinese (zh)
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.)
China Unicom Smart Connection Technology Ltd
Original Assignee
China Unicom Smart Connection Technology 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 China Unicom Smart Connection Technology Ltd filed Critical China Unicom Smart Connection Technology Ltd
Priority to CN202311827882.4A priority Critical patent/CN117768738A/en
Publication of CN117768738A publication Critical patent/CN117768738A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a media file scanning method, a media file scanning device, terminal equipment and a storage medium. The method comprises the following steps: when receiving a mounting broadcast of a first external device, determining whether the storage content in the first external device is modified or not; if yes, determining the interested folder of the user in the modified folder; and preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into a database for media application. The method can rapidly display file information of the media files interested by the user, shortens waiting time of the user and improves user experience.

Description

Media file scanning method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a media file scanning method, a device, a terminal device, and a storage medium.
Background
With the rapid development of the automobile electronic industry, the vehicle-mounted terminal system is more and more popular and valued, and the functions of the vehicle-mounted terminal system are more and more abundant, so that pleasant and comfortable driving experience is brought to people. Most of the existing vehicle-mounted media systems are developed based on android operating systems, and when leaving the factory, the existing vehicle-mounted media systems hardly have music or video files, and users are required to access or insert multimedia media (such as U disk and memory card) through mobile phone Bluetooth to read the media files.
In general, in-vehicle terminal systems scan media files in external devices by using the native MediaStore technology of the android system, but this approach may result in long time required for acquiring detailed information of the media files, resulting in long waiting time for users.
Disclosure of Invention
In order to overcome the technical problems in the related art, embodiments of the present application provide a media file scanning method, apparatus, terminal device, and storage medium.
In a first aspect, an embodiment of the present application provides a media file scanning method, applied to a terminal device, where the method includes:
when receiving a mounting broadcast of a first external device, determining whether the storage content in the first external device is modified or not;
if yes, determining the interested folder of the user in the modified folder;
and preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into a database for media application.
In a second aspect, an embodiment of the present application provides a media file scanning apparatus, integrated in a terminal device, where the apparatus includes:
the determining module is used for determining whether the storage content in the first external equipment is modified or not when receiving the mounting broadcast of the first external equipment; if yes, determining the interested folder of the user in the modified folder;
the analyzing module is used for preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into the database for media application.
In a third aspect, an embodiment of the present application provides a terminal device, including: the device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the media file scanning method provided in the first aspect of the embodiment of the application when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the media file scanning method provided in the first aspect of the embodiments of the present application.
According to the technical scheme provided by the embodiment of the application, when the mounting broadcast of the first external device is received, if the storage content of the first external device is confirmed to be modified, the interested folder of a user in the modified folder is confirmed, the media files under the interested folder are analyzed preferentially, then the media files under the rest folders except the interested folder in the modified folder are analyzed, and the analyzed file information is stored in the database, namely, when the first external device is scanned, only the media files in the modified folder are analyzed, and all the media files do not need to be analyzed repeatedly, so that the media application can rapidly display the detailed information of the media files in the first external device, and the waiting time of the user is shortened; in addition, the media files under the interested folder of the user in the modified folder are preferentially analyzed in the scanning process, so that the media application can acquire and display the file information of part of the media files in advance before the media scanning is finished, namely the media application can rapidly display the detailed information of the media files under the interested folder of the user, the waiting time of the user is further shortened, and the user experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a media file scanning method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart for determining whether a content stored in a first external device is modified according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of determining a folder of interest of a user according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a media file scanning apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application are further described in detail by the following examples with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, the media file scanning method provided in the embodiment of the present application is applicable to a scenario in which when an external device (or a storage peripheral) is mounted to a terminal device, the terminal device performs media file scanning on the external device. The method may be performed by a media file scanning device in the terminal device, which may be implemented in particular by means of software and/or hardware. The terminal device may be an in-vehicle terminal or an android television device, for example. The external device can be pluggable storage devices such as a USB flash disk and a mobile hard disk. The media files may include audio files, video files, or image files.
As shown in fig. 1, the media file scanning method provided in the embodiment of the present application is applied to a terminal device, and the method specifically may include the following contents:
s101, when receiving the mounting broadcast of the first external device, determining whether the storage content in the first external device is modified.
When the first external device is mounted on the terminal device, a system of the terminal device can send out a mounting broadcast, a broadcast receiver for scanning static registration receives the mounting broadcast, and a scanning process with a message circulation mechanism is started to start scanning. Before scanning, it is necessary to determine whether there is a modification to the stored content in the first external device. If yes, the following S102 is executed; if not, the file information of all the media files in the first external equipment is directly obtained from the database without traversing and scanning all the media files in the first external equipment, and the file information is returned to the media application for use. Particularly, when the first external device is not used for the first time, detailed information of all media files in the first external device can be rapidly displayed in the media application, and millisecond-level display is achieved. The detailed information of the media file may include a file path, a title, an author, an album, and the like of the media file.
Optionally, determining whether the stored content in the first external device is modified may include: and filtering the fragment files in the first external equipment and determining whether the filtered storage content in the first external equipment is modified or not.
Wherein, the fragment file can be determined by the following way:
1) And determining the file with the file size smaller than the preset value as a fragment file.
Fragmented files are typically relatively small, typically below 100KB, and files with file sizes below 100KB may be determined to be fragmented files.
2) Some read-only files, hidden files or system files, etc.
By filtering the fragmented files, scanning of the fragmented files is reduced, which may reduce the waiting time of the user.
S102, determining the interested folder of the user in the modified folder.
The modified folder refers to a folder where the modified media file is located, and the interested folder refers to a folder where the user's interested media file is located. The media files that are frequently viewed and played by the user may be considered to be media files of interest to the user.
Upon determining that there is a modification to the stored content in the first external device, the modified folders may be analyzed to determine which modified folders may be the folders of interest to the user. In an alternative embodiment, the user's folder of interest may be determined in conjunction with the user's historical travel log. For example, folders that are frequently browsed/opened may be considered folders of interest to the user.
S103, analyzing the media files under the interested folder preferentially, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into a database for use by a media program.
After determining the folder of interest of the user, the media files under the folder of interest of the user can be preferentially analyzed, and the analyzed file information is stored in the database. Further, a data change callback may also be sent to the media application. After the media application receives the data change callback, the data is obtained from the database and displayed, so that the media application can obtain and display the file information of part of the media files in advance before the media scanning is finished, namely, the detailed information of the media files of interest of the user is displayed quickly, the user can see the files frequently used by the user instantly, and the waiting time of the user is shortened. Further, the background continues to analyze the media files under the rest folders except the interested folder in the modified folder, and stores the analyzed file information into the database. Further, the presentation content in the media application is refreshed with the portion of the changed data, i.e., the detailed information of the media files under the remaining folders is also presented in the media application.
In data presentation, media files may be presented in a media application in the form of a file list. When the number of the media files in the file list is large, a user needs to repeatedly slide the screen to find the media files required by the user, in order to facilitate the user to quickly locate the target media files, the media files can be displayed in the form of folders, namely, the file scanning service screens out the media files corresponding to the media application types based on the media application types opened by the user, classifies and unifies the media files into the corresponding folders according to the file path information, and recalls the classified and unified results to the media application, so that the media application displays the media files in the form of folders, namely, the first page in the media application only displays the folders in which the media files are located, and after the user clicks a certain folder, the media files under the folders are displayed. In this way, since the media files are classified according to the folders, compared with the file list, the number of the folders displayed in the media application is relatively small, so that a user can easily locate a target folder, and further locate the target media file from the target folder, thereby being convenient for the user to operate.
Optionally, in order to further shorten waiting time of the user, the scanning service in the terminal device may be matched with the media application to obtain a media application type opened by the user, and according to the media application type opened by the user, the media application type is classified into video, music, pictures, and the like, media files corresponding to the media application type opened by the user under the folder of interest are preferentially analyzed, and then media files corresponding to the media application types opened by the user under other files except the folder of interest in the modified folder are analyzed. For example, if the media application type opened by the user is a music player, the audio files under the folder of interest of the user are preferentially parsed, and then the audio files under the rest folders except the folder of interest are parsed.
According to the media file scanning method provided by the embodiment of the application, when the mounted broadcast of the first external device is received, if the storage content of the first external device is confirmed to be modified, the interested folder of a user in the modified folder is confirmed, media files under the interested folder are analyzed preferentially, then the media files under the other folders except the interested folder in the modified folder are analyzed, and the analyzed file information is stored in the database, namely, when the first external device is scanned, only the media files in the modified folder are analyzed, and repeated analysis of all the media files is not needed, so that the media application can rapidly display detailed information of the media files in the first external device, and the waiting time of the user is shortened; in addition, media files in the folder of interest of the user are preferentially analyzed in the scanning process, so that the media application can acquire and display file information of part of the media files in advance before the media scanning is finished, namely the media application can rapidly display detailed information of the media files under the folder of interest of the user, the waiting time of the user is further shortened, and the user experience is improved.
In practical applications, the first external device may be an existing external device (i.e. an external device that has been mounted on the terminal device) or may be a new external device (i.e. an external device that has not been mounted on the terminal device), and for this case, based on the foregoing embodiment, optionally, as shown in fig. 2, determining whether the storage content in the first external device has been modified in S101 may include:
s201, acquiring a device identification code of the first external device.
S202, matching the device identification code with the first data set stored currently.
The first data set stores device identification codes of a plurality of second external devices mounted on the terminal device in a specified time period.
The above specified period of time may be the past several days, the past one month, the past several months, or the like, and may be set based on actual demands.
Matching the device identification code of the first external device with the first data set, and if so, executing the following S203; if the content is not matched, the first external device is considered to be a new external device (i.e. the first time of being mounted on the terminal device), in some cases, the stored content in the new first external device may be directly copied to the stored content in the existing external device, in other cases, the stored content in the new first external device may be the stored content after the stored content in the existing external device is modified, and further judgment is needed in combination with the following processes of S204-S207.
S203, determining whether the storage content in the first external device is modified according to the modification time and/or the space size of each folder in the first external device.
The terminal device can store the related information of the second external device mounted on the terminal device in a specified time period, when the first external device is determined to be the mounted external device, the space size and/or the modification time of each folder of the first external device during the last mounting can be obtained from the database, and the space size of each folder scanned by the first external device during the current mounting is compared with the space size of each folder during the last mounting, so that whether the storage content in the first external device is modified or not is determined. For example, if the space size of each folder is not changed when the first external device is mounted twice, the storage content of the first external device can be considered to be unmodified, and if the space sizes of each folder are different when the first external device is mounted twice, the storage content of the first external device can be considered to be modified. Of course, the modification time of each folder scanned by the first external device during the current mounting can be compared with the modification time of each folder during the last mounting, so as to determine whether the storage content in the first external device is modified. For example, when the modification time of each folder is inconsistent during the twice mounting of the first external device, it is determined that the storage content in the first external device is modified, otherwise, it is determined that the storage content of the first external device is not modified.
S204, acquiring identification information of all folders and all media files under the condition that the root directory of the first external device is up to a preset hierarchical directory.
The preset hierarchical directory may be set in combination with an actual requirement, for example, may be a secondary directory, a tertiary directory, or even more hierarchical directories.
The identification information may be a folder name or a media file name. Specifically, traversing the folders and the media files in the first external device from the root directory, if the files are media files, directly acquiring the names of the media files, if the files are target folders, acquiring the names of the target folders and the directory levels to which the target folders belong, acquiring the names of the sub-media files, the directory levels to which the sub-media files belong, the names of the sub-folders and the directory levels to which the sub-folders belong in the target folders according to a preset level directory, and combining the names of the target folders, the directory levels to which the target folders belong, the names of the sub-media files, the directory levels to which the sub-media files belong, the names of the sub-folders and the directory levels to which the sub-folders belong to generate the target names of the target folders.
Taking the preset hierarchical directory as a secondary directory as an example, assuming that the root directory of the first external device includes a folder a, a folder B and a folder C, where the folder a includes a folder D and a folder E, and the folder B does not include any file, the target name AA of the folder a is 1a+2d+2e (where 1 and 2 respectively represent the current primary directory or the secondary directory); target name bb=1b of folder B; the target name cc=c of file C.
And S205, splicing the identification information according to a preset rule to obtain a spliced character string.
Illustratively, the object names of the folder a, the folder B, and the file C are spliced to obtain the spliced character string "1a+2d+2e+1b+c".
S206, encrypting the spliced character string to obtain a first file identification encryption value corresponding to the first external device.
Alternatively, the encryption Algorithm may be a Message Digest Algorithm (md5) Algorithm, a hash Algorithm, or other encryption Algorithm.
After the spliced character string is obtained, the spliced character string is encrypted by adopting a preset encryption algorithm, so that a first file identification encrypted value corresponding to the first external equipment is obtained.
S207, determining whether the stored content in the first external device is modified according to the matching result of the first file identification encryption value and the second data set stored currently.
And the second data set stores second file identification encryption values corresponding to a plurality of second external devices mounted on the terminal device in a specified time period.
After a first file identification encryption value corresponding to the first external equipment is obtained, matching the first file identification encryption value with a second data set stored currently, and if the first file identification encryption value is matched with the second data set, determining that the storage content in the first external equipment is not modified; if the first external equipment is not matched with the first external equipment, the stored content in the first external equipment is confirmed to be modified.
In this embodiment, when the device identifier of the first external device is matched in the first data set currently stored in the terminal device, whether the storage content in the first external device is modified is determined based on the modification time of each folder in the first external device and/or the size of the space occupied by each folder; when the device identification code of the first external device is not matched in the first data set currently stored in the terminal device, whether the stored content in the first external device is modified or not is further determined by processing the identification information of all folders and all media files under the condition that the root directory of the first external device is up to the preset hierarchical directory, and different judging means are adopted aiming at different use conditions of the first external device, so that the accuracy of a judging result can be ensured.
In one embodiment, optionally, as shown in fig. 3, the above S102 may include the following:
s301, acquiring played media files in a plurality of second external devices mounted on the terminal device in a specified time period.
Wherein the specified period of time may be the last days, the last month, the last months, or the like, and may be set based on actual demands.
By analyzing the historical play records of the user, the played media files in the second external device and the information such as the play frequency, the play time and the like of the user aiming at each played media file can be obtained.
S302, determining the retention rate of the user for each played media file.
And determining the retention rate of the user for each played media file based on the obtained information such as the playing frequency and/or the playing time of the user for each played media file. For example, if the playing frequency of a certain played media file is higher, the higher the retention rate of the played media file is indicated to the user; conversely, if the playing frequency of a certain played media file is lower, the lower the retention rate of the played media file for the user is indicated.
As an alternative embodiment, the above S302 may be implemented by:
acquiring average playing time of a user for each played media file in a specified time period;
and determining the retention rate of the user for each played media file based on the average playing time of each played media file and the file duration of each played media file.
Specifically, the playing times of the user for each played media file and the playing time of each playing time in a specified time period are obtained, and the average playing time of the user for the played media file in the specified time period is determined by utilizing the playing times of the played media file and the playing time of each playing time; further, a ratio between the average playing time of the played media file and the file duration of the played media file is determined, and the ratio is determined as the retention rate of the user for the played media file.
S303, determining the media files of interest of the user according to the retention rate of each played media file.
After obtaining the retention rate of each played media file, sorting the played media files according to the order of the retention rate from high to low, and determining the interested media files of the user based on the sorting result. For example, the first 10 played media files in the ranking result are determined to be media files of interest to the user.
Of course, the played media file with the retention rate greater than the preset threshold may also be determined as the media file of interest of the user, which is not limited in the embodiment of the present application.
S304, acquiring a folder identifier of a folder in which the media file of interest is located.
S305, determining the folder corresponding to the folder identification in the modified folders as the interested folder of the user.
After the interested media file of the user is determined, file path information of the interested media file is obtained from the database, and folder identification of a folder in which the interested media file of the user is located is obtained based on the file path information. And then, determining the modified folder corresponding to the folder identification in the first external device as the folder of interest of the user.
In this embodiment, in combination with determining the interesting media file of the user according to the retention rate of the played media file in the specified time period, further determining the interesting folder of the user according to the first external device based on the interesting media file of the user, the determination result of the interesting folder is improved, and then the media file under the interesting folder is preferentially scanned, so that the media application can display detailed information of the media file under the interesting folder in advance before the media scanning is finished, the waiting time of the user is shortened, and the user experience is improved.
Fig. 4 is a schematic structural diagram of a media file scanning apparatus provided in an embodiment of the present application, where the apparatus is integrated in a terminal device, as shown in fig. 4, and the apparatus may include: the determination module 401 and the parsing module 402.
Specifically, the determining module 401 is configured to determine, when receiving a mounted broadcast of a first external device, whether a storage content in the first external device is modified; if yes, determining the interested folder of the user in the modified folder;
the parsing module 402 is configured to parse the media files under the folder of interest preferentially, parse the media files under the folders of the modified folder except the folder of interest, and store the parsed file information in the database for media applications.
On the basis of the above embodiment, optionally, the determining module 401 is further configured to obtain a device identifier of the first external device; matching the equipment identification code with a first data set stored currently; wherein, the first data set stores device identification codes of a plurality of second external devices mounted on the terminal device in a specified time period; if the file folders are matched, determining whether the storage content in the first external device is modified according to the modification time and/or the space size of each file folder in the first external device.
On the basis of the foregoing embodiment, optionally, the determining module 401 is further configured to obtain, when the device identifier of the first external device is not matched with the device identifier of the first external device in the first data set that is currently stored, identification information of all folders and all media files under the root directory to the preset hierarchical directory of the first external device; splicing the identification information according to a preset rule to obtain a spliced character string; encrypting the spliced character string to obtain a first file identification encryption value corresponding to the first external device; determining whether the stored content in the first external device is modified or not according to a matching result of the first file identification encryption value and the second data set stored currently; and the second data set stores second file identification encryption values corresponding to a plurality of second external devices mounted on the terminal device in a specified time period.
On the basis of the above embodiment, optionally, the determining module 401 is further configured to obtain played media files in a plurality of second external devices mounted on the terminal device in a specified period of time; determining the retention rate of a user for each played media file; determining the media files of interest of the user according to the retention rate of each played media file; acquiring a folder identifier of a folder in which the media file of interest is located; and determining the folder corresponding to the folder identification in the modified folders as the folder of interest of the user.
On the basis of the above embodiment, optionally, the above determining module 401 is further configured to obtain an average playing time of the user for each played media file in a specified period of time; and determining the retention rate of the user for each played media file based on the average playing time of each played media file and the file duration of each played media file.
On the basis of the foregoing embodiment, optionally, the foregoing determining module 401 is further configured to filter a fragment file in the first external device; and determining whether the filtered storage content in the first external device is modified.
Optionally, the parsing module 402 is further configured to obtain a media application type opened by a user; and preferentially analyzing the media files corresponding to the media application types under the interested folder, and then analyzing the media files corresponding to the media application types under the rest folders except the interested folder in the modified folder.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, and as shown in fig. 5, the device includes a processor 50, a memory 51, an input device 52 and an output device 53; the number of processors 50 in the device may be one or more, one processor 50 being taken as an example in fig. 5; the processor 50, the memory 51, the input means 52 and the output means 53 in the device may be connected by a bus or by other means, in fig. 5 by way of example.
The memory 51 is used as a computer readable storage medium for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the media file scanning method in the embodiment of the present application (e.g., the determination module 401 and the analysis module 402 in the media file scanning apparatus). The processor 50 executes various functional applications of the device and data processing, i.e., implements the above-described media file scanning method, by running software programs, instructions and modules stored in the memory 51.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 51 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 51 may further include memory located remotely from processor 50, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 52 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. The output means 53 may comprise a display device such as a display screen.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
when receiving a mounting broadcast of a first external device, determining whether the storage content in the first external device is modified or not;
if yes, determining the interested folder of the user in the modified folder;
and preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into a database for media application.
The media file scanning device, the terminal device and the storage medium provided in the foregoing embodiments may perform the media file scanning method provided in any of the foregoing embodiments, and have the corresponding functional modules and beneficial effects of performing the method. For technical details not described in detail in the above embodiments, reference may be made to the media file scanning method provided in any of the above embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, where the instructions include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
It should be noted that, in the above-mentioned embodiments of the search apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present application.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.

Claims (10)

1. A method for scanning media files, applied to a terminal device, the method comprising:
when receiving a mounting broadcast of a first external device, determining whether the storage content in the first external device is modified or not;
if yes, determining the interested folder of the user in the modified folder;
and preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into a database for media application.
2. The method of claim 1, wherein the determining whether there is a modification to the stored content in the first external device comprises:
acquiring an equipment identification code of the first external equipment;
matching the equipment identification code with a first data set stored currently; wherein, the first data set stores device identification codes of a plurality of second external devices mounted on the terminal device in a specified time period;
if the file folders are matched, determining whether the storage content in the first external device is modified according to the modification time and/or the space size of each file folder in the first external device.
3. The method as recited in claim 2, further comprising:
if the identification information is not matched with the root directory of the first external device, acquiring identification information of all folders and all media files under the preset hierarchical directory;
splicing the identification information according to a preset rule to obtain a spliced character string;
encrypting the spliced character string to obtain a first file identification encryption value corresponding to the first external device;
determining whether the stored content in the first external device is modified or not according to a matching result of the first file identification encryption value and the second data set stored currently; and the second data set stores second file identification encryption values corresponding to a plurality of second external devices mounted on the terminal device in a specified time period.
4. The method of claim 1, wherein the determining the folder of interest of the user in the modified folder comprises:
acquiring played media files in a plurality of second external devices mounted on the terminal device in a specified time period;
determining the retention rate of a user for each played media file;
determining the media files of interest of the user according to the retention rate of each played media file;
acquiring a folder identifier of a folder in which the media file of interest is located;
and determining the folder corresponding to the folder identification in the modified folders as the folder of interest of the user.
5. The method of claim 4, wherein determining the user's retention for each played media file comprises:
acquiring average playing time of a user for each played media file in a specified time period;
and determining the retention rate of the user for each played media file based on the average playing time of each played media file and the file duration of each played media file.
6. The method of claim 1, wherein the determining whether there is a modification to the stored content in the first external device comprises:
filtering the fragment files in the first external equipment;
and determining whether the filtered storage content in the first external device is modified.
7. The method of claim 1, wherein the preferentially resolving media files under the folder of interest, and then resolving media files under remaining folders of the modified folder other than the folder of interest, comprises:
acquiring a media application type opened by a user;
and preferentially analyzing the media files corresponding to the media application types under the interested folder, and then analyzing the media files corresponding to the media application types under the rest folders except the interested folder in the modified folder.
8. A media file scanning apparatus integrated with a terminal device, the apparatus comprising:
the determining module is used for determining whether the storage content in the first external equipment is modified or not when receiving the mounting broadcast of the first external equipment; if yes, determining the interested folder of the user in the modified folder;
the analyzing module is used for preferentially analyzing the media files under the interested folder, analyzing the media files under the other folders except the interested folder in the modified folder, and storing the analyzed file information into the database for media application.
9. A terminal device, comprising: a memory storing a computer program and a processor implementing the steps of the method of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
CN202311827882.4A 2023-12-27 2023-12-27 Media file scanning method, device, equipment and storage medium Pending CN117768738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311827882.4A CN117768738A (en) 2023-12-27 2023-12-27 Media file scanning method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311827882.4A CN117768738A (en) 2023-12-27 2023-12-27 Media file scanning method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117768738A true CN117768738A (en) 2024-03-26

Family

ID=90312339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311827882.4A Pending CN117768738A (en) 2023-12-27 2023-12-27 Media file scanning method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117768738A (en)

Similar Documents

Publication Publication Date Title
CN109344241B (en) Information recommendation method and device, terminal and storage medium
US20090094189A1 (en) Methods, systems, and computer program products for managing tags added by users engaged in social tagging of content
CN106331778A (en) Video recommendation method and device
CN103733159A (en) Synchronizing digital content
CN109271509B (en) Live broadcast room topic generation method and device, computer equipment and storage medium
CN110097397B (en) Feedback-based information pushing method and device and electronic equipment
US10235427B2 (en) Entity-driven logic for improved name-searching in mixed-entity lists
CN111432263B (en) Barrage information display, processing and release method, electronic equipment and medium
CN110377817B (en) Search entry mining method and device and application thereof in multimedia resources
US20130013400A1 (en) System and method for linking web documents
CN109063200B (en) Resource searching method and device, electronic equipment and computer readable medium
CN109889921B (en) Audio and video creating and playing method and device with interaction function
CN110263318B (en) Entity name processing method and device, computer readable medium and electronic equipment
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
CN111246254A (en) Video recommendation method and device, server, terminal equipment and storage medium
CN113486212A (en) Search recommendation information generation and display method, device, equipment and storage medium
US20200242178A1 (en) Search processing method and apparatus based on clipboard data
CN110910168A (en) Method and equipment for acquiring guests in text and travel industry
CN117768738A (en) Media file scanning method, device, equipment and storage medium
CN115826816A (en) Information acquisition method and device, storage medium and electronic equipment
CN115827978A (en) Information recommendation method, device, equipment and computer readable storage medium
CN113707179A (en) Audio identification method, device, equipment and medium
EP3621022A1 (en) Data analysis method and data analysis system thereof
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN112287268A (en) Processing method and device for network resource search

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