CN104427401A - Method for acquiring data and electronic equipment - Google Patents

Method for acquiring data and electronic equipment Download PDF

Info

Publication number
CN104427401A
CN104427401A CN201310390884.1A CN201310390884A CN104427401A CN 104427401 A CN104427401 A CN 104427401A CN 201310390884 A CN201310390884 A CN 201310390884A CN 104427401 A CN104427401 A CN 104427401A
Authority
CN
China
Prior art keywords
network terminal
scanning
multimedia data
data
network
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.)
Granted
Application number
CN201310390884.1A
Other languages
Chinese (zh)
Other versions
CN104427401B (en
Inventor
刘晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310390884.1A priority Critical patent/CN104427401B/en
Publication of CN104427401A publication Critical patent/CN104427401A/en
Application granted granted Critical
Publication of CN104427401B publication Critical patent/CN104427401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for acquiring data and electronic equipment, and relates to the technical field of communication; the problems that the operation amount of a network terminal is increased, the load of the network terminal is further increased, and the system performance is reduced are solved, and furthermore, the problem that excessive network resources are occupied is also solved. The method provided by the invention can concretely comprise the following steps: mounting a mapping folder; acquiring a first scanning command; sending the first scanning command to the network terminal so as to enable the network terminal to respond to the first scanning command to scan M multimedia data; acquiring and saving a scanning database so as to acquire scanning data, which corresponds to optional multimedia data, from the scanning database when output operation is performed on the optional multimedia data in the mapping folder, and acquiring the optional multimedia data from the network terminal according to the corresponding scanning data. The method for acquiring the data and electronic equipment provided by the invention can be applied to acquiring the data.

Description

Method for acquiring data and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for acquiring data and an electronic device.
Background
The user may instruct the electronic device to obtain the multimedia data stored on the network terminal, for example, when the user wants to watch a video, the electronic device may request the multimedia data of the video from the network terminal.
Specifically, when a user wants to watch the video 1, the video player or the corresponding web page may be opened first, and the name of the video 1 is determined; the electronic device requesting the description data of the video 1 from the network terminal may include: the duration and category of the video 1; after receiving the request, the network terminal performs full-disk scanning on the multimedia data stored in the network terminal to obtain the description data of the video 1 and sends the description data to the electronic equipment; the user can determine whether to watch video 1 according to the description data; if the video is watched, the electronic equipment requests the multimedia data of the video 1 to the network terminal; the network terminal determines the multimedia data of the video 1 after receiving the request, and sends the multimedia data of the video 1 to the electronic device, so that the electronic device plays the video 1 through the video player. If the user needs to watch the video 2, the multimedia data of the video 2 can be obtained according to the above steps.
In the process of obtaining data, the inventor finds that at least the following problems exist in the prior art: when the electronic equipment requests the network terminal for multimedia data, the electronic equipment needs to send a request to the network terminal, the network terminal needs to perform full-disk scanning on the multimedia data of the network terminal after receiving the request, and if the network terminal receives the request for multiple times, the network terminal needs to perform multiple scanning on the local multimedia data, so that the operation amount of the network terminal is increased, the burden of the network terminal is further increased, and the performance of the system is reduced; in addition, the electronic device sends the request to the network terminal for many times, and occupies too much network resources.
Disclosure of Invention
Embodiments of the present invention provide a method for acquiring data and an electronic device, which reduce the operation amount of a network terminal, thereby reducing the burden of the network terminal and increasing the performance of a system.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for acquiring data is provided, where the method is applied to an electronic device, the electronic device is connected to a network terminal through a communication unit, and the network terminal has M pieces of multimedia data, and includes:
mounting a mapping folder, wherein the mapping folder is used for mapping the operation performed on the mapping folder into the operation performed on the network terminal;
obtaining a first scanning instruction, wherein the scanning instruction is used for instructing the network terminal to scan the M multimedia data;
sending the first scanning instruction to the network terminal so that the network terminal scans the M multimedia data in response to the first scanning instruction;
and acquiring and storing a scanning database so as to acquire description data corresponding to any multimedia data from the scanning database and acquire the any multimedia data from the network terminal according to the corresponding description data when performing output operation on the any multimedia data in the mapping folder, wherein the scanning database comprises M description data which are generated after the network terminal responds to the first scanning instruction to scan the M multimedia data and correspond to the M multimedia data one by one.
In a second aspect, an electronic device is provided, the electronic device is connected to a network terminal through a communication unit, the network terminal has M multimedia data, and the electronic device includes:
the mounting unit is used for mounting a mapping folder, and the mapping folder is used for mapping the operation performed on the mapping folder into the operation performed on the network terminal;
a first obtaining unit, configured to obtain a first scanning instruction, where the scanning instruction is used to instruct the network terminal to scan the M multimedia data;
a sending unit, configured to send the first scanning instruction to the network terminal, so that the network terminal scans the M multimedia data in response to the first scanning instruction;
a second obtaining unit, configured to obtain and store a scan database, so that when an output operation is performed on any multimedia data in the mapping folder, description data corresponding to the any multimedia data is obtained from the scan database, and the any multimedia data is obtained from the network terminal according to the corresponding description data, where the scan database includes M description data, which are generated by the network terminal after scanning the M multimedia data in response to the first scan instruction and correspond to the M multimedia data one to one.
According to the method and the electronic device for acquiring data provided by the embodiment of the invention, after the scheme is adopted, the network terminal scans the multimedia data after receiving the first scanning instruction to obtain the scanning database and sends the scanning database to the electronic device, if the electronic device needs to acquire the corresponding multimedia data, the electronic device can acquire the description data of the multimedia data to be acquired from the locally stored scanning database, and does not need to acquire the description data after requesting the network terminal to scan, so that the operation amount of the network terminal is reduced, the burden of the network terminal is further reduced, the performance of a system is increased, in addition, the electronic device does not need to request the network terminal for scanning data, the quantity of requests sent to the network terminal is reduced, and the occupation amount of network resources is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for acquiring data according to this embodiment;
fig. 2 is a flowchart of another method for acquiring data according to the present embodiment;
fig. 3 is a flowchart of a method for sending a first scanning instruction to a network terminal by an electronic device according to this embodiment;
fig. 4 is a schematic structural diagram of an electronic device provided in this embodiment;
fig. 5 is a schematic structural diagram of another electronic device provided in this embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In the prior art, when electronic equipment needs to acquire multimedia data to be acquired, a first scanning instruction is sent to a network terminal through a mapping folder once, the multimedia data needs to be scanned once after the network terminal receives the first scanning instruction every time, and if the network terminal receives the first scanning instruction for multiple times, the multimedia data needs to be scanned for multiple times, so that the operation amount of the network terminal is increased, the burden of the network terminal is further increased, and the performance of a system is reduced.
In order to solve the above problem, this embodiment provides a method for acquiring data, where an execution subject of the method may be an electronic device, the electronic device may be connected to a network terminal through a communication unit, and the network terminal may have M multimedia data, as shown in fig. 1, and the method may include:
101. the electronic device mounts the mapping folder.
Because the network terminal may not recognize corresponding data in the electronic device, and the same operation performed on the electronic device and the network terminal may be performed in different manners, a mapping folder may be set in the electronic device, and the mapping folder may be used to map an operation performed on the mapping folder to an operation performed on the network terminal.
The method for mounting the mapping folder by the electronic device is not limited in this embodiment, and is a technique well known to those skilled in the art, and will not be described herein again.
102. A first scanning instruction is obtained.
Before acquiring multimedia data, the electronic device may first acquire description data of the multimedia data, and then determine whether to acquire the multimedia data according to the description data.
For example, if a user wants to watch a movie, the description data (which may include, but is not limited to, duration, cast member list, movie category, etc.) of the movie may be obtained first, and then whether to watch the movie may be determined according to the description data.
When the electronic device acquires the description data, it needs to instruct the network terminal to scan the M multimedia data to obtain the description data of the M multimedia data.
The first scanning instruction may be used to instruct the network terminal to scan the M multimedia data.
In this embodiment, the method for obtaining the first scanning instruction by the electronic device is not limited, and may be set according to actual needs, which is not described herein again.
103. And sending the first scanning instruction to the network terminal so that the network terminal scans the M multimedia data in response to the first scanning instruction.
In this embodiment, after the network terminal receives the first scanning instruction, the network terminal may scan the M multimedia data itself to obtain the description data of the M multimedia data.
104. And acquiring and storing a scanning database so as to acquire description data corresponding to any multimedia data from the scanning database when performing output operation on the any multimedia data in the mapping folder, and acquiring the any multimedia data from the network terminal according to the corresponding description data.
After the network terminal scans the M multimedia data, a scanning database is obtained, where the scanning database may include M description data that is generated by the network terminal after scanning the M multimedia data in response to the first scanning instruction and corresponds to the M multimedia data one to one; then, the network terminal can send the scanning database to the electronic device, the electronic device obtains and stores the scanning database, and when the electronic device needs to obtain the description data of the corresponding multimedia data, the electronic device can directly obtain the description data from the locally stored scanning database.
After the scheme is adopted, the network terminal scans the multimedia data after receiving the first scanning instruction to obtain the scanning database and sends the scanning database to the electronic equipment, if the electronic equipment needs to obtain the corresponding multimedia data, the electronic equipment can obtain the description data of the multimedia data to be obtained from the scanning database stored locally, the electronic equipment does not need to obtain the description data after the electronic equipment requests the network terminal to scan, the operation amount of the network terminal is reduced, the burden of the network terminal is further reduced, the performance of the system is improved, in addition, the electronic equipment does not need to request the network terminal for scanning data, the quantity of requests sent to the network terminal is reduced, and the occupation amount of network resources is reduced.
The present embodiment provides another method for acquiring data, which is a further extension and optimization of the method shown in fig. 1, and as shown in fig. 2, the method may include:
201. the electronic device mounts the mapping folder.
Because the network terminal may not recognize corresponding data in the electronic device, and the same operation performed on the electronic device and the network terminal may be performed in different manners, a mapping folder may be set in the electronic device, and the mapping folder may be used to map an operation performed on the mapping folder to an operation performed on the network terminal.
The method for mounting the mapping folder and the mapping folder of the electronic device are not limited in this embodiment, and are well known to those skilled in the art, and are not described herein again.
202. The electronic device obtains a first scanning instruction.
Before acquiring multimedia data, the electronic device may first acquire description data of the multimedia data, and then determine whether to acquire the multimedia data according to the description data.
For example, if a user wants to watch a movie, the description data (which may include, but is not limited to, duration, actor list, movie category, etc.) of the movie may be obtained first, and then it is determined whether to watch the movie according to the description data.
When the electronic device acquires the description data, it needs to instruct the network terminal to scan the M multimedia data to obtain the description data of the M multimedia data.
The first scanning instruction may be used to instruct the network terminal to scan the M multimedia data.
In this embodiment, the method for obtaining the first scanning instruction by the electronic device is not limited, and may be set according to actual needs, which is not described herein again.
203. And the electronic equipment sends the first scanning instruction to the network terminal so that the network terminal scans the M multimedia data in response to the first scanning instruction.
In this embodiment, after the network terminal receives the first scanning instruction, the network terminal may scan the M multimedia data itself to obtain the description data of the M multimedia data.
The network terminal may be provided with a plurality of network disks, and the mapping folder in the electronic device may correspond to at least one network disk, that is, the corresponding operation performed on the mapping folder by the electronic device may be to perform the corresponding operation on at least one network disk in the network terminal.
Further, the sending the first scanning instruction to the network terminal may include:
after the mapping folder is mounted, sending a first scanning command to the network terminal; or,
when the electronic device sends a second scanning instruction to the network terminal for the first time, the first scanning instruction is sent to the network terminal, the second scanning instruction can be used for indicating the network terminal to send the acquired corresponding multimedia data to the electronic device, the corresponding multimedia data are obtained after the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction, and the second scanning instruction comprises the identifiers of the corresponding multimedia data.
Further, the sending the first scanning instruction to the network terminal may include: and sending a first scanning instruction carrying a network disk identifier to the network terminal so that the network terminal can scan the M multimedia data in the network disk corresponding to the network disk identifier.
In this embodiment, the content included in the first scanning instruction is not limited, and may be set according to actual needs, which is not described herein again.
Specifically, as shown in fig. 3, the method for triggering, by an electronic device, to send the first scanning instruction to the network terminal may further include, but is not limited to, the following steps:
301. the electronic device detects a trigger event.
The electronic device may send the first scanning instruction to the network terminal according to a trigger event, and in order to lay down for subsequent steps, the electronic device may first detect the trigger event.
302. The electronic equipment judges whether the trigger event meets a preset condition or not to obtain a judgment result. If yes, go to step 303, otherwise go to step 301.
303. And the electronic equipment sends the first scanning instruction to the network terminal.
As an implementation manner of this embodiment, the detection trigger event may be, but is not limited to: detecting the state of establishing a mapping folder;
the determining whether the trigger event satisfies the preset condition may be, but is not limited to: judging whether the mapping folder is established or not according to the state of the mapping folder; and if the mapping folder is established, triggering the event to meet the preset condition.
For example, after the terminal device completes the establishment of the mapping folder, the first scanning instruction is sent to the network terminal.
As an implementation manner of this embodiment, the detection trigger event may also be, but is not limited to: detecting a first application trigger command;
whether the trigger event meets the predetermined condition is judged, and the obtained judgment result can be, but is not limited to: judging whether the first application is a preset application or not to obtain a judgment result;
when the judgment result shows that the trigger event meets the preset condition, the electronic device sends the first scanning instruction to the network terminal as follows: and when the judgment result shows that the first application is the preset application, the electronic equipment sends the first scanning instruction to the network terminal.
For example, when the operation performed by the electronic device does not involve an application of the network terminal (e.g., opening a local preset file, etc.), the electronic device may send the first scanning instruction to the network terminal; or, when it is detected that the electronic device is turned on or is about to be turned off, the first scanning instruction may be sent to the network terminal.
In this embodiment, a method for sending the first scanning instruction to the network terminal by the electronic device is not limited, and is not limited to the above listed methods, and may be set according to actual needs, which is not described herein again.
204. The electronic equipment acquires and stores a scanning database so as to acquire description data corresponding to any multimedia data from the scanning database when performing output operation on the any multimedia data in the mapping folder, and acquires the any multimedia data from the network terminal according to the corresponding description data.
After the network terminal scans the M multimedia data, a scanning database is obtained, where the scanning database may include M description data that is generated by the network terminal after scanning the M multimedia data in response to the first scanning instruction and corresponds to the M multimedia data one to one; then, the network terminal can send the scanning database to the electronic device, the electronic device obtains and stores the scanning database, and when the electronic device needs to obtain the description data of the corresponding multimedia data, the electronic device can directly obtain the description data from the locally stored scanning database.
Further, in order to facilitate the electronic device to obtain the description data from the scan database, the scan database may be obtained by converting the M description data after the network terminal scans the M multimedia data, so that the operating system of the electronic device can recognize the M description data.
The operating system of the electronic device may be, but is not limited to: android systems, saiban systems, etc.
Further, after receiving the scan database, the electronic device may write the scan database into the mapping folder.
As an implementation manner of this embodiment, the electronic device may store the received network database under the specified path. For example, the specified path may be, but is not limited to: com, android, providers/media/databases/.
Further, after the electronic device acquires and stores the scanning database, the acquisition of the first scanning instruction is stopped, and the transmission of the first scanning instruction to the network terminal is stopped, so that the network terminal prohibits the scanning of the M multimedia data.
205. The electronic equipment acquires the description data of the multimedia data to be acquired from a locally stored scanning database.
206. And the user determines whether to acquire the multimedia data to be acquired according to the description data.
207. And if the multimedia data to be acquired is determined to be acquired, the electronic equipment sends a second scanning instruction to the network terminal through the mapping folder.
208. And the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction to obtain the multimedia data to be acquired.
Further, the second scan instruction may include, but is not limited to: a network disk identifier, an identifier of the multimedia data to be acquired, and the like.
As an implementation manner of this embodiment, the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction, and obtaining the multimedia data to be obtained may include, but is not limited to:
the network terminal may first determine, according to the network identifier, a network disk storing the multimedia data to be acquired, and then scan the identifiers of the M multimedia data in the network disk, so as to obtain the identifier of the multimedia data to be acquired.
209. And the network terminal sends the multimedia data to be acquired to the electronic equipment.
210. The electronic equipment detects whether the current network state meets a preset network condition, and if not, the scanning database is deleted.
As an implementation manner of this embodiment, the detecting, by the electronic device, whether the current network state meets the preset network condition may include:
judging whether the resource occupancy of the network where the electronic equipment is located is greater than a preset value, if so, judging that the network state where the electronic equipment is located does not accord with preset network conditions, and if not, judging that the network state where the electronic equipment is located accords with the preset network conditions;
or, it may also be determined whether a data transmission speed of a network in which the electronic device is located is less than a preset value, if so, the network state in which the sub-device is located does not meet the preset network condition, and if not, the network state in which the sub-device is located meets the preset network condition.
The method for detecting whether the network state of the electronic device meets the preset network condition is not limited in this embodiment, and is not limited to the above-mentioned method, and may be set according to actual needs, and is not described herein again.
As an implementation manner of this embodiment, in order to not bring an excessive load to the network state where the electronic device is located, when the network state where the electronic device is located does not satisfy the preset network condition (that is, the network state may be poor), the network database is deleted.
After the scheme is adopted, the network terminal scans the multimedia data after receiving the first scanning instruction to obtain the scanning database and sends the scanning database to the electronic equipment, if the electronic equipment needs to obtain the corresponding multimedia data, the electronic equipment can obtain the description data of the multimedia data to be obtained from the scanning database stored locally, the electronic equipment does not need to obtain the description data after the electronic equipment requests the network terminal to scan, the operation amount of the network terminal is reduced, the burden of the network terminal is further reduced, the performance of the system is improved, in addition, the electronic equipment does not need to request the network terminal for scanning data, the quantity of requests sent to the network terminal is reduced, and the occupation amount of network resources is reduced.
In the following, some device embodiments are provided, which correspond to the respective method embodiments provided above.
The embodiment provides an electronic device, which may be connected to a network terminal through a communication unit, where the network terminal may include, but is not limited to, M multimedia data, and specifically, as shown in fig. 4, the electronic device may include:
a mounting unit 41, configured to mount a mapping folder, where the mapping folder is configured to map an operation performed on the mapping folder into an operation on the network terminal;
a first obtaining unit 42, configured to obtain a first scanning instruction, where the first scanning instruction is used to instruct the network terminal to scan the M multimedia data;
a sending unit 43, configured to send the first scanning instruction to the network terminal, so that the network terminal scans the M multimedia data in response to the first scanning instruction;
a second obtaining unit 44, configured to obtain and store a scan database, so that when an output operation is performed on any multimedia data in the mapping folder, description data corresponding to the any multimedia data is obtained from the scan database, and the any multimedia data is obtained from the network terminal according to the corresponding description data, where the scan database includes M description data, which are generated after the network terminal scans the M multimedia data in response to the first scan instruction and correspond to the M multimedia data one by one, and the M description data correspond to the M multimedia data.
After the scheme is adopted, the network terminal scans the multimedia data after receiving the first scanning instruction to obtain the scanning database and sends the scanning database to the electronic equipment, if the electronic equipment needs to obtain the corresponding multimedia data, the electronic equipment can obtain the description data of the multimedia data to be obtained from the scanning database stored locally, the electronic equipment does not need to obtain the description data after the electronic equipment requests the network terminal to scan, the operation amount of the network terminal is reduced, the burden of the network terminal is further reduced, the performance of the system is improved, in addition, the electronic equipment does not need to request the network terminal for scanning data, the quantity of requests sent to the network terminal is reduced, and the occupation amount of network resources is reduced.
The embodiment provides an electronic device, which is a further extension and optimization of the electronic device shown in fig. 4, and as shown in fig. 5, the electronic device may include:
a mounting unit 51, configured to mount a mapping folder, where the mapping folder is configured to map an operation performed on the mapping folder into an operation on the network terminal;
a first obtaining unit 52, configured to obtain a first scanning instruction, where the first scanning instruction is used to instruct the network terminal to scan the M multimedia data;
a sending unit 53, configured to send the first scanning instruction to the network terminal, so that the network terminal scans the M multimedia data in response to the first scanning instruction;
a second obtaining unit 54, configured to obtain and store a scan database, so that when an output operation is performed on any multimedia data in the mapping folder, description data corresponding to the any multimedia data is obtained from the scan database, and the any multimedia data is obtained from the network terminal according to the corresponding description data, where the scan database includes M description data, which are generated after the network terminal scans the M multimedia data in response to the first scan instruction and correspond to the M multimedia data one to one.
Further, the transmitting unit 53 includes:
a first sending module 531, configured to send a first scanning instruction carrying a network disk identifier to the network terminal, so that the network terminal scans M multimedia data in the network disk corresponding to the network disk identifier.
Further, the scan database acquired by the second acquiring unit 54 is obtained by converting the M description data after the network terminal scans the M multimedia data, so that the operating system of the electronic device can recognize the M description data.
Further, the second acquiring unit 54 includes:
a writing module 541, configured to write the scanning database into the mapping folder.
Further, the electronic device further includes:
a detecting unit 55, configured to detect whether a current network state meets a preset network condition after the scanning database is obtained and stored;
a deleting unit 56, configured to delete the scanning database if the preset network condition is not met.
Further, the transmitting unit 53 includes:
a second sending module 532, configured to send a first scan command to the network terminal after the map folder is mounted; or,
a third sending module 533, configured to send, to the network terminal, a first scanning instruction when the electronic device sends the second scanning instruction to the network terminal for the first time, where the second scanning instruction is used to instruct the network terminal to send the acquired corresponding multimedia data to the electronic device, where the corresponding multimedia data is obtained after the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction, and the second scanning instruction includes the identifiers of the corresponding multimedia data.
Further, after the second obtaining unit 54 obtains and stores the scan database, the first obtaining unit stops obtaining the first scan instruction, and the sending unit stops sending the first scan instruction to the network terminal, so that the network terminal prohibits scanning the M multimedia data.
After the scheme is adopted, the network terminal scans the multimedia data after receiving the first scanning instruction to obtain the scanning database and sends the scanning database to the electronic equipment, if the electronic equipment needs to obtain the corresponding multimedia data, the electronic equipment can obtain the description data of the multimedia data to be obtained from the scanning database stored locally, the electronic equipment does not need to obtain the description data after the electronic equipment requests the network terminal to scan, the operation amount of the network terminal is reduced, the burden of the network terminal is further reduced, the performance of the system is improved, in addition, the electronic equipment does not need to request the network terminal for scanning data, the quantity of requests sent to the network terminal is reduced, and the occupation amount of network resources is reduced.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. A method for acquiring data is applied to an electronic device, the electronic device is connected with a network terminal through a communication unit, the network terminal has M multimedia data, and the method comprises the following steps:
mounting a mapping folder, wherein the mapping folder is used for mapping the operation performed on the mapping folder into the operation performed on the network terminal;
obtaining a first scanning instruction, wherein the first scanning instruction is used for instructing the network terminal to scan the M multimedia data;
sending the first scanning instruction to the network terminal so that the network terminal scans the M multimedia data in response to the first scanning instruction;
and acquiring and storing a scanning database so as to acquire description data corresponding to any multimedia data from the scanning database and acquire the any multimedia data from the network terminal according to the corresponding description data when performing output operation on the any multimedia data in the mapping folder, wherein the scanning database comprises M description data which are generated after the network terminal responds to the first scanning instruction to scan the M multimedia data and correspond to the M multimedia data one by one.
2. The method according to claim 1, wherein the sending the first scanning instruction to the network terminal comprises:
and sending a first scanning instruction carrying a network disk identifier to the network terminal so that the network terminal can scan the M multimedia data in the network disk corresponding to the network disk identifier.
3. The method according to claim 1, wherein the scanning database is obtained by converting the M description data after the network terminal scans the M multimedia data, so that an operating system of the electronic device can recognize the M description data.
4. The method of acquiring data of claim 1, wherein said acquiring and maintaining said scan database comprises:
writing the scanning database into the mapping folder.
5. The method of acquiring data of claim 1, wherein after said acquiring and saving a scan database, the method further comprises:
detecting whether the current network state meets a preset network condition or not;
and if the preset network condition is not met, deleting the scanning database.
6. The method according to claim 1, wherein the sending the first scanning instruction to the network terminal comprises:
after the mapping folder is mounted, sending a first scanning command to the network terminal; or,
when the electronic equipment sends a second scanning instruction to the network terminal for the first time, the first scanning instruction is sent to the network terminal, the second scanning instruction is used for indicating the network terminal to send the acquired corresponding multimedia data to the electronic equipment, the corresponding multimedia data are obtained after the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction, and the second scanning instruction comprises the identifiers of the corresponding multimedia data.
7. The method according to claim 1, wherein after said obtaining and saving the scan database, stopping obtaining the first scan command and stopping sending the first scan command to the network terminal, so that the network terminal prohibits scanning the M multimedia data.
8. An electronic device connected to a network terminal through a communication unit, the network terminal having M multimedia data, the electronic device comprising:
the mounting unit is used for mounting a mapping folder, and the mapping folder is used for mapping the operation performed on the mapping folder into the operation performed on the network terminal;
a first obtaining unit, configured to obtain a first scanning instruction, where the first scanning instruction is used to instruct the network terminal to scan the M multimedia data;
a sending unit, configured to send the first scanning instruction to the network terminal, so that the network terminal scans the M multimedia data in response to the first scanning instruction;
a second obtaining unit, configured to obtain and store a scan database, so that when an output operation is performed on any multimedia data in the mapping folder, description data corresponding to the any multimedia data is obtained from the scan database, and the any multimedia data is obtained from the network terminal according to the corresponding description data, where the scan database includes M description data, which are generated by the network terminal after scanning the M multimedia data in response to the first scan instruction and correspond to the M multimedia data one to one.
9. The electronic device according to claim 8, wherein the transmission unit includes:
a first sending module, configured to send a first scanning instruction carrying a network disk identifier to the network terminal, so that the network terminal scans M multimedia data in a network disk corresponding to the network disk identifier.
10. The electronic device according to claim 8, wherein the scanning database acquired by the second acquiring unit is the scanning database that is obtained by converting the M description data after the network terminal scans the M multimedia data, so that an operating system of the electronic device can recognize the M description data.
11. The electronic device according to claim 8, wherein the second acquisition unit includes:
and the writing module is used for writing the scanning database into the mapping folder.
12. The electronic device of claim 8, further comprising:
the detection unit is used for detecting whether the current network state meets the preset network condition or not after the scanning database is obtained and stored;
and the deleting unit is used for deleting the scanning database if the preset network condition is not met.
13. The electronic device according to claim 8, wherein the transmission unit includes:
a second sending module, configured to send a first scanning command to the network terminal after the mapping folder is mounted; or,
and the third sending module is used for sending the first scanning instruction to the network terminal when the electronic equipment sends a second scanning instruction to the network terminal for the first time, the second scanning instruction is used for indicating the network terminal to send the acquired corresponding multimedia data to the electronic equipment, the corresponding multimedia data are obtained after the network terminal scans the identifiers of the M multimedia data according to the second scanning instruction, and the second scanning instruction comprises the identifiers of the corresponding multimedia data.
14. The electronic device according to claim 8, wherein after the second obtaining unit obtains and saves the scan database, the first obtaining unit stops obtaining the first scan instruction, and the sending unit stops sending the first scan instruction to the network terminal, so that the network terminal prohibits scanning of the M multimedia data.
CN201310390884.1A 2013-08-30 2013-08-30 Obtain the method and electronic equipment of data Active CN104427401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310390884.1A CN104427401B (en) 2013-08-30 2013-08-30 Obtain the method and electronic equipment of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310390884.1A CN104427401B (en) 2013-08-30 2013-08-30 Obtain the method and electronic equipment of data

Publications (2)

Publication Number Publication Date
CN104427401A true CN104427401A (en) 2015-03-18
CN104427401B CN104427401B (en) 2018-07-06

Family

ID=52975137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310390884.1A Active CN104427401B (en) 2013-08-30 2013-08-30 Obtain the method and electronic equipment of data

Country Status (1)

Country Link
CN (1) CN104427401B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6085239A (en) * 1996-10-28 2000-07-04 Matsushita Electric Industrial Co., Ltd. Information acquisition proxy system and information transfer managing system
CN102289481A (en) * 2011-08-02 2011-12-21 Tcl集团股份有限公司 Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN102982121A (en) * 2012-11-12 2013-03-20 北京奇虎科技有限公司 File scanning method and file scanning device and file detecting system
CN102999722A (en) * 2012-11-12 2013-03-27 北京奇虎科技有限公司 File detecting system
CN103064637A (en) * 2012-12-24 2013-04-24 珠海金山办公软件有限公司 Network disk cache synchronizing method and system
CN103092852A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Method, device and electronic devices for transferring files
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6085239A (en) * 1996-10-28 2000-07-04 Matsushita Electric Industrial Co., Ltd. Information acquisition proxy system and information transfer managing system
CN102289481A (en) * 2011-08-02 2011-12-21 Tcl集团股份有限公司 Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN103092852A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Method, device and electronic devices for transferring files
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system
CN102982121A (en) * 2012-11-12 2013-03-20 北京奇虎科技有限公司 File scanning method and file scanning device and file detecting system
CN102999722A (en) * 2012-11-12 2013-03-27 北京奇虎科技有限公司 File detecting system
CN103064637A (en) * 2012-12-24 2013-04-24 珠海金山办公软件有限公司 Network disk cache synchronizing method and system
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files

Also Published As

Publication number Publication date
CN104427401B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN107832100B (en) APK plug-in loading method and terminal thereof
US9785664B2 (en) Gathering transaction data associated with locally stored data files
CN107315825B (en) Index updating system, method and device
WO2019227689A1 (en) Data monitoring method and apparatus, and computer device and storage medium
CN100462977C (en) Capture server, distribution server, method and system for generating webpage capture
US20140236905A1 (en) Method and system for scanning files of a device by using cloud computing
CN102819713A (en) Method and system for detecting security of popup window
EP3136655B1 (en) Multimedia display method, device and equipment
CN103167026A (en) Processing method, system and device for cloud storage environmental data
CN106254528B (en) Resource downloading method and caching device
CN105786539B (en) File downloading method and device
JP7465370B2 (en) Information sharing method, device, electronic device, and storage medium
CN112433920A (en) Buried point data reporting method, device, equipment and medium
US20180365081A1 (en) Method for Application Action Synchronization, Terminal Device, and Storage Medium
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN111246238A (en) Live broadcast method, device, storage medium and live broadcast system
CN112654974B (en) File scanning method, file scanning device and terminal equipment
US10505811B2 (en) Multi-terminal interaction relation maintenance system and method
CN106470351B (en) Page display method and page display device
CN110020290B (en) Webpage resource caching method and device, storage medium and electronic device
CN104427401B (en) Obtain the method and electronic equipment of data
CN110908881A (en) Method and device for sending buried point data, electronic equipment and computer readable storage medium
CN105915639B (en) Page access method and device
CN115118782A (en) Data control method and device, electronic equipment and computer readable storage medium
CN104346228A (en) Application program sharing method and terminal

Legal Events

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