CN114116627A - Multimedia resource scanning method and device, storage medium and electronic equipment - Google Patents

Multimedia resource scanning method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114116627A
CN114116627A CN202111289992.0A CN202111289992A CN114116627A CN 114116627 A CN114116627 A CN 114116627A CN 202111289992 A CN202111289992 A CN 202111289992A CN 114116627 A CN114116627 A CN 114116627A
Authority
CN
China
Prior art keywords
scanning
external storage
file
storage device
configuration file
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
CN202111289992.0A
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111289992.0A priority Critical patent/CN114116627A/en
Publication of CN114116627A publication Critical patent/CN114116627A/en
Pending legal-status Critical Current

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/17Details of further file system functions
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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/1727Details of free space management performed by the file system
    • 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/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a multimedia resource scanning method, a device, a storage medium and electronic equipment, which relate to the technical field of Internet, and the method comprises the following steps: monitoring mounting broadcast of the external storage equipment; starting scanning process service when the mounted broadcast is monitored; initializing a configuration file for describing a file type supporting scanning in the scanning process service; and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service. The method and the device improve the scanning service efficiency of the multimedia resources, support the expandability of the scanned file types, and can effectively meet various use scenes.

Description

Multimedia resource scanning method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a multimedia resource scanning method, apparatus, storage medium, and electronic device.
Background
At present, a device such as an Android system device generally implements a scanning service in a system framework layer (frame layer) when scanning multimedia resources.
In the current scheme, the whole scanning time is long, the types of media files supporting scanning are fixed in advance in the system and are difficult to flexibly define, and therefore scanning of multimedia resources is low in scanning service efficiency, the types of the files supporting scanning are difficult to expand, and various use scenes are difficult to meet.
Disclosure of Invention
The embodiment of the application provides a scheme, which can effectively improve the scanning service efficiency of multimedia resources, support the expandability of scanned file types, and effectively meet various use scenes.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
according to an embodiment of the present application, a multimedia resource scanning method is applied to a target application on a terminal, and the method includes: monitoring mounting broadcast of the external storage equipment; starting scanning process service when the mounted broadcast is monitored; initializing a configuration file for describing a file type supporting scanning in the scanning process service; and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
In some embodiments of the present application, before initializing a configuration file in the scan progress service for describing a file type supporting scanning, the method further comprises: acquiring first storage position information; and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
In some embodiments of the present application, before initializing a configuration file in the scan progress service for describing a file type supporting scanning, the method further comprises: acquiring second storage position information; and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
In some embodiments of the present application, the external storage device includes at least one; the step of traversing and scanning the multimedia resource file in the external storage device according to the configuration file through the scanning process service includes: starting a thread for each external storage device through the scanning process service; and respectively traversing and scanning the multimedia resource file in each external storage device according to the configuration file based on the thread corresponding to each external storage device.
In some embodiments of the present application, the method further comprises: and when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device, closing the thread corresponding to the target external storage device.
In some embodiments of the present application, the scanned multimedia resource file in each external storage device is stored in a local database corresponding to each external storage device, and the method further includes: and deleting the local database corresponding to the target external storage equipment.
In some embodiments of the present application, after the step of scanning the multimedia resource file in the external storage device according to the configuration file, the method further includes: and calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
According to an embodiment of the present application, a multimedia resource scanning apparatus, which is applied to a target application on a terminal, includes: the monitoring module is used for monitoring mounting broadcast of the external storage equipment; the starting module is used for starting scanning process service when the mounted broadcast is monitored; the acquisition module is used for acquiring a configuration file for describing the file type supporting scanning; and the scanning module is used for traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
In some embodiments of the present application, the apparatus further comprises a first file acquisition module configured to: acquiring first storage position information; and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
In some embodiments of the present application, the apparatus further comprises a second file acquisition module configured to: acquiring second storage position information; and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
In some embodiments of the present application, the external storage device includes at least one; the scanning module includes: the thread starting unit is used for starting a thread for each external storage device through the scanning process service; and the file scanning unit is used for respectively scanning the multimedia resource files in each external storage device in a traversing manner according to the configuration files based on the thread corresponding to each external storage device.
In some embodiments of the present application, the apparatus further comprises: and the closing unit is used for closing the thread corresponding to the target external storage device when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device.
In some embodiments of the present application, the multimedia resource file scanned in each external storage device is stored in a local database corresponding to each external storage device, and the apparatus further includes a deleting unit configured to: and deleting the local database corresponding to the target external storage equipment.
In some embodiments of the present application, the apparatus further comprises: and the display unit is used for calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the present application, the target application may: monitoring mounting broadcast of the external storage equipment; starting scanning process service when the mounted broadcast is monitored; initializing a configuration file for describing a file type supporting scanning in the scanning process service; and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
In this way, the terminal can start a scanning process service through the target application, and scan the multimedia resource file in the external storage device according to the configuration file in a traversing manner, so that the scanning service is not required to be performed on a system framework layer, and the scanning service can self-define the file type supporting scanning in the configuration file according to the requirement, thereby effectively improving the scanning service efficiency of the multimedia resource, supporting the expandability of the scanned file type, and effectively meeting various use scenes.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
FIG. 2 shows a flow diagram of a method of multimedia asset scanning according to one embodiment of the present application.
FIG. 3 shows a block diagram of a multimedia asset scanning device according to one embodiment of the present application.
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, as those of ordinary skill in the art will appreciate that various steps and operations described below may be implemented in hardware.
FIG. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a server 101 and a terminal 102. The terminal 102 may be any computer device, such as a computer, a mobile phone, a smart watch, a home appliance, and the like. The server 101 may be a server cluster or a cloud service, etc. In one example, the terminal 102 is a smart television. The server 101 and the terminal 102 may be directly or indirectly connected by means of a wired or wireless connection.
In one embodiment of this example, the target application on the terminal 102 may: monitoring mounting broadcast of the external storage equipment; starting scanning process service when the mounted broadcast is monitored; initializing a configuration file for describing a file type supporting scanning in the scanning process service; and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service. In one example, a profile describing the types of files that support scanning may be obtained or received by a target application of the terminal 102 from the server 101 at a point in time.
Fig. 2 schematically shows a flow chart of a multimedia asset scanning method according to an embodiment of the application. The execution subject of the multimedia resource scanning method can be any device, such as the terminal 102 shown in fig. 1.
As shown in fig. 2, the multimedia asset scanning method may include steps S210 to S240.
Step S210, monitoring mounting broadcast of the external storage device;
step S220, when the mounted broadcast is monitored, starting a scanning process service;
step S230, initializing a configuration file for describing a file type supporting scanning in the scanning process service;
step S240, through the scanning process service, scanning the multimedia resource file in the external storage device according to the configuration file in a traversing manner.
The external storage device is connected to the terminal, the external storage device can carry multimedia resource files, corresponding mount broadcasts can be generated in the terminal when the external storage device is connected to the terminal, and corresponding unload broadcasts can be generated in the terminal when the external storage device is disconnected from the terminal. Namely, the external storage device is connected to the terminal by hanging the broadcast indication, and the external storage device is separated from the terminal by unloading the broadcast indication.
The target application can monitor the mount broadcast generated in the terminal in real time or according to user instructions and the like, when the mount broadcast is monitored, the terminal is connected with the external storage device, and then the scanning process service is triggered and started, wherein the scanning process service is used for scanning multimedia resource files in the external storage device.
After the scanning process service is started, a configuration file for describing the file type supporting scanning is initialized in the scanning process service, so that the file type supporting scanning is customized in the scanning process service according to the configuration file.
And finally, based on the scanning process service after the configuration file is initialized, the file scanning is carried out according to the self-defined file type supporting the scanning corresponding to the multimedia resource file in the external storage device, and the multimedia resource is scanned.
In this way, based on steps S210 to S240, a scanning process service may be started through the target application, and the multimedia resource file in the external storage device is scanned in a traversal manner according to the configuration file, so that it is not necessary to perform a scanning service on a system framework layer, and a file type supporting scanning may be customized in the configuration file according to a requirement in the scanning service, thereby effectively improving the scanning service efficiency of the multimedia resource, supporting the scalability of the scanned file type, and effectively satisfying various usage scenarios.
The following describes a specific process of each step performed when the multimedia resource scanning is performed.
In step S210, a mount broadcast of the external storage device is monitored.
In the embodiment of the present example, the external storage device is an external storage device connected to the terminal, and the external storage device may carry a multimedia resource file, where the multimedia resource file in the external storage device may be presented by a User Interface (UI).
When the external storage device is connected to the terminal, the terminal generates corresponding mounting broadcast, and when the external storage device is disconnected from the terminal, the terminal generates corresponding unloading broadcast. Namely, the external storage device is connected to the terminal by hanging the broadcast indication, and the external storage device is separated from the terminal by unloading the broadcast indication.
The target application can monitor the mount broadcast generated in the terminal in real time or according to user instructions and the like, and when the mount broadcast is monitored, a scanning process service is started and used for scanning the multimedia resource file in the external storage device.
In step S220, when the mounted broadcast is monitored, a scan progress service is started.
In the embodiment of the present example, the target application may monitor, in real time or according to a user instruction, etc., a mount broadcast generated in the terminal, and when the mount broadcast is monitored, it indicates that the terminal is connected to the external storage device, and then triggers and starts a scanning process service, where the scanning process service is used to scan a multimedia resource file in the external storage device.
In an embodiment, the mount broadcast generated in the terminal may carry broadcast information such as a name and a type of the external storage device, and according to the broadcast information in the mount broadcast, the target application may further determine whether to start the scanning process service, for example, when the broadcast information is specific information, the scanning process service is started, so as to further improve scanning reliability of the multimedia resource file.
In step S230, a configuration file for describing a file type supporting scanning is initialized in the scanning progress service.
In the embodiment of this example, after the scanning process service is started, a configuration file for describing a file type supporting scanning is initialized in the scanning process service, so that the file type supporting scanning is configured and scanned according to the configuration file defined by the user in the scanning process service. The configuration file may be a file actively configured in the target application by the user, or a configuration file acquired by the target application from a target server.
In one embodiment, before initializing a configuration file describing file types supporting scanning in the scanning progress service in step S230, the method further includes: acquiring first storage position information; and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
The user may actively configure a configuration file in the target application for describing the types of files that support scanning, e.g., a maintenance person configures an xml file locally in the target application for describing a list of file types that support scanning (i.e., a configuration file). The target application can record the information of a first storage position of the configuration file in the local, and further acquire the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application.
In one embodiment, before initializing a configuration file describing file types supporting scanning in the scanning progress service in step S230, the method further includes: acquiring second storage position information; and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
By building the target server, a configuration file which is configured by the relevant user and used for describing the file type supporting the scanning can be stored in a specific storage position in the target server, and the storage path of the characteristic storage position can form second storage position information.
The target application may receive the second storage location information, and further obtain the configuration file for describing the file type supporting scanning from a specific storage location in the target server according to the second storage location information.
In one embodiment, the target application may first obtain the configuration file according to the first storage location information, and when the configuration file is not obtained according to the first storage location information, obtain the configuration file according to the second storage location information. In one embodiment, the configuration file may be first obtained according to the second storage location information.
In step S240, the multimedia resource file in the external storage device is scanned through the scanning process service according to the configuration file.
In the embodiment of the present example, finally, the scanning process service after the configuration file is initialized may correspond to the multimedia resource file in the external storage device, and perform file scanning according to the self-defined file type supporting scanning, so as to scan the multimedia resource therein.
After the multimedia resource file is scanned, the multimedia resource file can be locally stored as a local database, and meanwhile, the multimedia resource file can be called back to a user interface for displaying.
In one embodiment, the external storage device comprises at least one; step S240, scanning, through the scanning process service, the multimedia resource file in the external storage device according to the configuration file in a traversal manner, including:
starting a thread for each external storage device through the scanning process service; and respectively traversing and scanning the multimedia resource file in each external storage device according to the configuration file based on the thread corresponding to each external storage device.
And starting a corresponding thread for each external storage device, and scanning according to the file type supporting scanning described in the configuration file, so that the multimedia resources can be further efficiently scanned. The multimedia resource files scanned in each external storage device can be stored as corresponding local databases, that is, each external storage device corresponds to one local database.
In one embodiment, the method further comprises: and when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device, closing the thread corresponding to the target external storage device.
When the unloading broadcast corresponding to the target external storage device in at least one external storage device is monitored, the target external storage device is disconnected, at the moment, the thread corresponding to the target external storage device is closed, the corresponding scanning service is stopped, and the scanning reliability is further improved.
In one embodiment, the multimedia resource file scanned by each external storage device is stored in a local database corresponding to each external storage device, and the method further includes: and deleting the local database corresponding to the target external storage equipment.
When the uninstalling broadcast corresponding to the target external storage device in at least one external storage device is monitored, the target external storage device is disconnected, the multimedia resource file in the target external storage device does not need to be displayed, at the moment, the local database corresponding to the target external storage device is deleted, the resource occupation is released in time, and the occupation of local resources is avoided.
In one embodiment, in step S240, after traversing and scanning the multimedia resource file in the external storage device according to the configuration file, the method further includes: and calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
When the target user interface is displayed, the media resource data can be inquired from the unified interface according to a preset strategy, if the local database has data, the data is acquired from the local database and returned, and the scanned multimedia resource file is called back to the target user interface according to the preset strategy to be displayed.
In order to better implement the multimedia resource scanning method provided by the embodiment of the present application, an embodiment of the present application further provides a multimedia resource scanning device based on the multimedia resource scanning method. The terms are the same as those in the above-mentioned multimedia resource scanning method, and the details of the implementation can refer to the description in the method embodiment. FIG. 3 shows a block diagram of a multimedia asset scanning device according to one embodiment of the present application.
As shown in fig. 3, the multimedia resource scanning apparatus 300 may be applied to a target application on a terminal, and the multimedia resource scanning apparatus 300 may include a listening module 310, an initiating module 320, an obtaining module 330, and a scanning module 340.
The monitoring module 310 may be configured to monitor a mount broadcast of an external storage device; the starting module 320 may be configured to start a scan process service when the mount broadcast is monitored; the obtaining module 330 may be configured to obtain a configuration file describing a file type supporting scanning; the scanning module 340 may be configured to scan, through the scanning process service, multimedia resource files in the external storage device according to the configuration file in a traversal manner.
In some embodiments of the present application, the apparatus further comprises a first file acquisition module configured to: acquiring first storage position information; and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
In some embodiments of the present application, the apparatus further comprises a second file acquisition module configured to: acquiring second storage position information; and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
In some embodiments of the present application, the external storage device includes at least one; the scan module 340 includes: the thread starting unit is used for starting a thread for each external storage device through the scanning process service; and the file scanning unit is used for respectively scanning the multimedia resource files in each external storage device in a traversing manner according to the configuration files based on the thread corresponding to each external storage device.
In some embodiments of the present application, the apparatus further comprises: and the closing unit is used for closing the thread corresponding to the target external storage device when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device.
In some embodiments of the present application, the multimedia resource file scanned in each external storage device is stored in a local database corresponding to each external storage device, and the apparatus further includes a deleting unit configured to: and deleting the local database corresponding to the target external storage equipment.
In some embodiments of the present application, the apparatus further comprises: and the display unit is used for calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
In this way, based on the multimedia resource scanning apparatus 300, the terminal can start a scanning process service through the target application, and traverse and scan the multimedia resource file in the external storage device according to the configuration file without performing a scanning service on the system framework layer, and the scanning service can customize the file type supporting scanning in the configuration file according to the requirement, thereby effectively improving the scanning service efficiency of the multimedia resource, supporting the expandability of the scanned file type, and effectively satisfying various usage scenarios.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 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 volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads an executable file corresponding to one or more processes of the computer program into the memory 402 according to the following instructions, and the processor 401 runs the computer program stored in the memory 402, thereby implementing various functions.
The electronic device corresponds to a terminal, and the processor 401 may execute: monitoring mounting broadcast of the external storage equipment; starting scanning process service when the mounted broadcast is monitored; initializing a configuration file for describing a file type supporting scanning in the scanning process service; and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
In some embodiments of the present application, before initializing a configuration file describing a file type supporting scanning in the scanning progress service, the processor 401 may perform: acquiring first storage position information; and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
In some embodiments of the present application, before initializing a configuration file describing a file type supporting scanning in the scanning progress service, the processor 401 may perform: acquiring second storage position information; and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
In some embodiments of the present application, the external storage device includes at least one; when the multimedia resource file in the external storage device is scanned through the scanning process service according to the configuration file, the processor 401 may execute: starting a thread for each external storage device through the scanning process service; and respectively traversing and scanning the multimedia resource file in each external storage device according to the configuration file based on the thread corresponding to each external storage device.
In some embodiments of the present application, the processor 401 may perform: and when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device, closing the thread corresponding to the target external storage device.
In some embodiments of the present application, the multimedia resource file scanned by each external storage device is stored in a local database corresponding to each external storage device, and the processor 401 may perform: and deleting the local database corresponding to the target external storage equipment.
In some embodiments of the present application, after the step of scanning the multimedia resource file in the external storage device according to the configuration file, the processor 401 may perform: and calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. A method for scanning multimedia resources, the method being applied to a target application on a terminal, the method comprising:
monitoring mounting broadcast of the external storage equipment;
starting scanning process service when the mounted broadcast is monitored;
initializing a configuration file for describing a file type supporting scanning in the scanning process service;
and traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
2. The method of claim 1, wherein before initializing a configuration file in the scan progress service for describing file types that support scanning, the method further comprises:
acquiring first storage position information;
and acquiring the configuration file for describing the file type supporting scanning from the local storage position corresponding to the target application according to the first storage position information.
3. The method of claim 1, wherein before initializing a configuration file in the scan progress service for describing file types that support scanning, the method further comprises:
acquiring second storage position information;
and acquiring the configuration file for describing the file type supporting scanning from a specific storage position in a target server according to the second storage position information.
4. The method of claim 1, wherein the external storage device comprises at least one; the step of traversing and scanning the multimedia resource file in the external storage device according to the configuration file through the scanning process service includes:
starting a thread for each external storage device through the scanning process service;
and respectively traversing and scanning the multimedia resource file in each external storage device according to the configuration file based on the thread corresponding to each external storage device.
5. The method of claim 4, further comprising:
and when monitoring the unloading broadcast corresponding to the target external storage device in at least one external storage device, closing the thread corresponding to the target external storage device.
6. The method of claim 5, wherein the scanned multimedia resource file in each of the external storage devices is stored in a local database corresponding to each of the external storage devices, the method further comprising:
and deleting the local database corresponding to the target external storage equipment.
7. The method of any of claims 1 to 6, wherein after said step of scanning through multimedia resource files in said external storage device according to said configuration file, said method further comprises:
and calling back the scanned multimedia resource file to a target user interface for displaying according to a preset strategy.
8. An apparatus for scanning multimedia resources, the apparatus being applied to a target application on a terminal, the apparatus comprising:
the monitoring module is used for monitoring mounting broadcast of the external storage equipment;
the starting module is used for starting scanning process service when the mounted broadcast is monitored;
the acquisition module is used for acquiring a configuration file for describing the file type supporting scanning;
and the scanning module is used for traversing and scanning the multimedia resource file in the external storage equipment according to the configuration file through the scanning process service.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to carry out the method of any one of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 7.
CN202111289992.0A 2021-11-02 2021-11-02 Multimedia resource scanning method and device, storage medium and electronic equipment Pending CN114116627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111289992.0A CN114116627A (en) 2021-11-02 2021-11-02 Multimedia resource scanning method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111289992.0A CN114116627A (en) 2021-11-02 2021-11-02 Multimedia resource scanning method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114116627A true CN114116627A (en) 2022-03-01

Family

ID=80380236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111289992.0A Pending CN114116627A (en) 2021-11-02 2021-11-02 Multimedia resource scanning method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114116627A (en)

Similar Documents

Publication Publication Date Title
CN110825456B (en) Loading time calculation method, loading time calculation device, computer equipment and storage medium
CN110569250B (en) Management method and device for analysis library of Internet of things network element
CN111309216B (en) List page display method and device, computer equipment and storage medium
CN104346202A (en) Setting method and device of terminal application program and terminal
CN106775832B (en) Installation method and device for pre-installed application of mobile terminal
CN102833272A (en) Downloading method and device based on user subscription
CN112044061B (en) Game picture processing method and device, electronic equipment and storage medium
CN113741814A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN114116627A (en) Multimedia resource scanning method and device, storage medium and electronic equipment
CN106933449B (en) Icon processing method and device
CN114090054A (en) Intelligent equipment upgrading method and device, storage medium and electronic equipment
CN111367577A (en) Method, device and terminal for loading plug-in of application
CN113849161A (en) Application control method and device, storage medium and electronic equipment
CN116627521A (en) Service module preloading method, skipping method, device and storage medium
CN114610446A (en) Method, device and system for automatically injecting probe
CN114218041A (en) Dynamic process monitoring method, device, equipment and storage medium
CN112882749A (en) Method and device for controlling up and down lines of application example and storage medium
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
CN114449554B (en) Equipment upgrading method, device, equipment and storage medium
CN117407202A (en) Desktop icon layout repairing method and device, storage medium and electronic equipment
CN117407019A (en) Upgrade processing method and device, storage medium and electronic equipment
CN114491362A (en) Data acquisition method and device, storage medium and electronic equipment
CN113986284A (en) System application upgrading method and device, storage medium and electronic equipment
CN117407077A (en) Configuration editing method and device, storage medium and electronic equipment
CN116679948A (en) Application updating method, device, equipment and storage medium

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