The present disclosure relates to the field of data processing technology and, more particularly, to a file browsing method, an electronic device, and a machine-readable storage medium.
Because different devices have different preference performance, for example, a camera has a high-quality camera that can photograph high-quality images, and a smartphone can process images faster and display images more clearly. Therefore, the camera can be connected to the smartphone, to clearly browse files taken by the camera such as high-quality photos or video streams, etc., through the smartphone.
When the camera is connected to the smartphone, and a user browses the camera's files through the smartphone, the smartphone can pull the camera's file management system to obtain an index of each file of the camera, and download files such as thumbnails, original images, video streams, etc., based on the index to accomplish browsing. When the camera is disconnected from the smartphone, the user can browse files stored in the smartphone from the camera, or form videos based on the video streams in the stored files from the camera, or stitch and composite photos or panoramic photos based on multiple photos in the stored files from the camera. Since these videos and photos are composited by the smartphone, they are not stored in the camera, and are not included in the camera's file management system. When the user wants to simultaneously browse the camera's files, and files stored in the smartphone and related to the camera, such as processed videos and photos, or composited panoramic photos, etc., while the camera is connected to the smartphone, the user usually needs to search corresponding files at different storage locations in the smartphone. For a user who does not know file storage locations, time for retrieving files is longer, and use experience of the user is reduced.
One aspect of the present disclosure provides an electronic device. The device includes a display screen, a memory storing a plurality of computer instructions and files related to an external device, and a processor. The processor is configured to execute the plurality of computer instructions to implement: monitoring an operation of browsing files in the external device; when the operation is detected, obtaining a first file group stored in the external device and a second file group stored locally and related to the external device; and simultaneously displaying the first file group and the second file group in one interface of the display screen.
Another aspect of the present disclosure provides an electronic device. The device includes a memory storing a plurality of computer instructions and files related to an external device, and a processor. The processor is configured to execute the plurality of computer instructions to implement: obtaining a first index list of files stored in the external device, and a second index list of files stored locally and related to the external device; processing the first index list and the second index list to obtain a third index list; and displaying files corresponding to respective file indexes in the third index list.
As can be seen from the above technical solutions, in the embodiments, a third index list can be obtained by processing a first index list of files stored in an external device and a second index list of files stored locally and related to the external device; and finally, files corresponding to respective file indexes in the third index list can be displayed, so that the files stored locally and related to the external device can be managed and browsed in a unified manner, and all files related to the external device can be browsed. Thus, a user is not required to search files at different locations in an electronic device, it is facilitated to reduce time for searching files by the user, and file display experience of the user is improved.
To more clearly illustrate technical solutions in the embodiments of the present disclosure, the accompanying drawings needed to be used in the embodiments will be briefly described below. It is obvious that the accompanying drawings in the following description are only some embodiments of the present disclosure. For those having ordinary skills in the art, other drawings can be obtained according to these accompanying drawings without inventive efforts.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. On the basis of the embodiments of the present disclosure, all other embodiments obtained by those having ordinary skills in the art without inventive efforts should fall within the protection scope of the present disclosure.
Because different devices have different preference performance, for example, a camera has a high-quality camera that can photograph high-quality images, and a smartphone can process images faster and display images more clearly. Therefore, the camera can be connected to the smartphone, to clearly browse files taken by the camera such as high-quality photos or video streams, etc., through the smartphone.
In practical applications, a user can connect the camera to the smartphone, and browse files in the camera through the smartphone. During a connecting process, the smartphone can pull the camera's file management system, obtain an index of each file in the camera, and download files such as thumbnails, original images, video streams, etc., based on the index to accomplish browsing. When the camera is disconnected from the smartphone, the user can browse the files stored in the smartphone from the camera, or form videos based on the video streams in the stored files from the camera, or stitch and composite photos or panoramic photos based on multiple photos in the stored files from the camera. Since these videos and photos are composited by the smartphone, they are not stored in the camera, and of course are not included in the camera's file management system.
If the user wants to simultaneously browse the files in the camera, and the files stored in the smartphone and related to the camera, such as processed videos and photos, or composited panoramic photos, etc., when the camera is connected to the smartphone, the user needs to search corresponding files at different storage locations in the smartphone. For a user who does not know file storage locations, the time for retrieving files is longer, and the use experience of the user is reduced.
With regards to this, the embodiments of the present disclosure provide a file browsing method.
in 201, a first index list of files stored in an external device is obtained, and a second index list of files stored locally and related to the external device is obtained.
In one embodiment, if a number of the external device is one, after monitoring a connection with the external device, the electronic device can obtain the first index list of the files in the external device according to configuration information. For example, after the electronic device has monitored operations of browsing the files in the external device by a user, a file system of the external device is pulled, and then the first index list of the files in the external device can be obtained. For another example, after the electronic device has detected that a connection with the external device is established, the file system of the external device is directly pulled, and then the first index list of the files in the external device can be obtained.
In which, the configuration information may include obtaining an index list based on operations by the user, or obtaining the index list right after the electronic device establishes a connection with outside.
In practical applications, the external device can be connected to the electronic device. In this case, the external device and the electronic device interact with each other, to download the files in the external device to be stored in the electronic device. When the files of the external device are stored in the electronic device, identification information of the external device is also stored, to identify that the files are obtained from the external device. In some cases, the identification information of the external device of the files in the electronic device can be used to distinguish local files in the electronic device (for example, when the electronic device is a mobile phone, photos taken by the mobile phone itself) and the files stored from the external device, and can also be used to distinguish stored files from different external devices. In addition, the user can also perform editing and reprocessing when browsing the files from the external device, such as skin beautification, styling adjustment, background adjustment or contrast adjustment, etc., to obtain edited files such as videos or photos, etc. The edited files are also files related to the external device.
In this embodiment, the electronic device may also obtain a second index list of files stored locally and related to the external device. Referring to
It should be noted that the first index list and the second index list include file information of each file, that the file information includes one or more of following parameters: external device file index, file creation time, playback frame rate, video duration, video resolution, external device file unique identification code GUID (i.e., Globally Unique Identifier), external device photo mode, external device photo group index, and video type. Technicians can adjust the parameters included in the file information according to specific scenarios, which are not limited in the present disclosure.
In another embodiment, if the number of the external device is more than one, as shown in
Method 1: the multiple index lists of the external device are listed directly into one index list. That is, file indexes in each index list are listed after file indexes of another index list, and so on, until the multiple index lists are all listed in the one index list, and the first index list can be obtained. In this embodiment, by listing file indexes in the first index list, the processing method can be simplified, and a processing speed can be improved.
Method 2: all file indexes in the multiple index lists are sorted based on one of specified parameters in the file information of the multiple index lists, and the sorted file indexes are copied to one index list to obtain the first index list. The specified parameters can be file creation time, file modification time, file name, or file size, and can be set according to specific scenarios. In this embodiment, sorting file indexes by specified parameters can meet browsing needs of different users, and improve browsing experience.
It is understandable that the multiple external devices may include devices of a same type, and naming rules of the devices of the same type are the same, so same file information may exist in an index list. For this reason, the processing of the first index list in this embodiment may also include Method 3:
Referring to
Same as the scenario where only one external device is connected, if the electronic device is connected to multiple external devices, the electronic device can store files downloaded from each external device and files related to each external device. Referring to
It is understandable that the electronic device can also update the file information in the index list of the files related to each external device according to a preset hash algorithm. Updating content of a part related to the first index list can be referred to and will not be repeated here.
In 202, the first index list and the second index list are processed to obtain a third index list.
In this embodiment, the electronic device can process the first index list and the second index list into one index list, that is, the third index list, according to preset processing methods. The processing methods can include:
Method 1: file indexes in the first index list and the second index list are directly listed into an index list, that is, after listing file indexes in the first index list into the index list, a first file index in the second index list is continuously listed after a last file index, and so on, until all the file indexes in the first index list and the second index list are listed in the index list, and the third index list can be obtained. In this embodiment, by listing the file indexes in the first index list and the second index list, the processing method can be simplified, and the processing speed can be improved.
Method 2: all the file indexes in the first index list and the second index list are sorted based on one of specified parameters in the file information, and the sorted file indexes are copied to one index list to obtain the third index list. In which, the specified parameters can be file creation time, file modification time, file name, or file size, which can be set according to specific scenarios. In this embodiment, sorting the file indexes by specified parameters can meet the browsing needs of different users, and improve the browsing experience.
In 203, files corresponding to respective file indexes in the third index list are displayed.
In this embodiment, the electronic device may display corresponding files based on sorting of file indexes in the third index list. In one embodiment, referring to
In which, the preset parameters can be one or more of following parameters: external device file index, file creation time, playback frame rate, video duration, video resolution, external device file GUID, external device photo mode, external device photo group index, video type, and electronic device-external device file index. Technicians can configure types and a number of parameters according to specific scenarios, which are not limited here.
So far, in this embodiment, by processing the first index list of files stored in the external device and the second index list of files stored locally and related to the external device, the third index list can be obtained, and finally files corresponding to respective file indexes in the third index list are displayed, so that the files stored locally and related to the external device can be managed and browsed in a unified manner, and all files related to the external device can be browsed, such that a user is not required to search files at different locations in the electronic device, it is facilitated to reduce the time for searching files by the user, and the file display experience of the user is improved.
in 801, operations of browsing files in the external device by a user are monitored.
In this embodiment, the electronic device can monitor the operations of browsing files in the external device by the user. Referring to
In 802, when the operation is monitored, a first file group stored in the external device and a second file group stored locally and related to the external device are obtained.
In this embodiment, when the electronic device has monitored the operations of browsing files in the external device by the user, it interacts with the external device through a communication connection. At this time, the electronic device can pull a file system of the external device, and can obtain the first index list of files stored in the external device, based on the file system. Then, the electronic device can obtain the first file group based on the first index list. In which, the first file group may be all files stored in the external device, and may also be some files selected by the user. Also, a number of the first file group may be the same as the number of the external device, that is, the number of the first file group is equal to the number of the external device.
After that, the electronic device may also obtain files in local containing an identification, that is, the file related to the external device, according to the identification of the external device, to obtain the second index list. Then, the electronic device can obtain the second file group based on the second index list. In which, the second file group may be all files related to the external device, or may be some files selected by the user.
In which, a number of the second file group may be less than or equal to the number of the external device. For example, following configurations may exist in the electronic device:
Configuration scenario 1: if after each connection of the external device and the electronic device, the electronic device creates a file for the external device, which can be understood as a connection description file, including connection establish time, file creation time, connection network description, etc. Then, the electronic device determines whether to create other files according to whether the external device transmits its own files, so that the number of the second file group can be equal to the number of the external device.
Configuration scenario 2: if the external device is connected to the electronic device, the electronic device only creates files for the external device when the external device stores files, so the number of the second file group can be less than the number of the external device. If the external device transmits files every time, then the number of the second file group may be equal to the number of the external device. It is understandable that the number of the second file group does not affect implementation of the solutions of the present disclosure, and technicians can pre-configure the electronic device according to specific scenarios, which is not limited here.
In which, schemes of obtaining the first index list and the second index list can refer to schemes of the first index list and the second index list in step 201, which will not be repeated here.
In 803, the first file group and the second file group are simultaneously displayed in one interface of the display screen.
In one embodiment, the electronic device may co-display the first file group and the second file group in one display area of the one interface in the display screen. Co-displaying methods can include:
Method 1: merging and displaying, that merging means to merge same files into one file. The same files mean that two files have a same file name and contain same file features. In other words, two files are different, meaning that the two files have different file names, or the two files have a same file name but contain different file features. For example, in one case, a photo taken by the external device is stored on the external device to form a photo file 1, and imported and stored on the electronic device to form a photo file 2. When next time the electronic device is connected to the external device, and the user chooses to browse files on both devices, if the electronic device only stores the photo file 2 and does not change the file name of the photo file 2 or perform any photo editing, adjustment and other operations that change the file features, it can be considered that the photo file 1 and the photo file 2 are same files, and the two files are merged and displayed, that is, corresponding to only displaying one photo in the interface.
In which, the file features may include one or more of following parameters: file content, file creation time, modification operation, storage location, or device information. Of course, the file features can be adjusted according to parameters in the file information, and the solutions of the present disclosure can be implemented if whether two files are same files can be distinguished.
In this embodiment, the electronic device can determine whether files in the first file group and the second file group need to be merged, referring to
Referring to
In one embodiment, the electronic device may display the merged video file in single in the display area 1202, in a display position that is different from a position of the first file group 1403 and a position of the second file group 1404. For example, the merged video file can be set in a new line after the second file group 1404 to get a result shown in
In another embodiment, the electronic device may also display each first file group and each second file group in the display area based on preset display rules. In which, the preset display rules are based on file group information of the file groups, that the file group information includes one or more of following parameters: file group modification time, file group identification corresponding to the external device, file group keywords, and file creation time. Of course, technicians can adjust the parameters and a number of parameters included in the file group information according to specific scenarios, which is not limited here. It can be seen that in this embodiment, by displaying the file groups through the display rules, it is convenient for the user to browse files of the external device and related files in a unified manner, searching files is not needed, and the browsing efficiency is improved.
Method 2: displaying by areas. Referring to
In one embodiment, referring to
In another embodiment, referring to
So far, in this embodiment, by monitoring the operations of browsing files in the external device by the user, the first file group stored in the external device and the second file group stored locally and related to the external device are obtained, and then the first file group and the second file group are simultaneously displayed in one interface of the display screen. It can be seen that, in this embodiment, by simultaneously displaying the files in the external device and the files stored locally and related to the external device, the user is not required to search files at different locations in the electronic device, it is facilitated to reduce the time for searching files by the user, and the file display experience of the user is improved.
monitoring an operation of browsing files in the external device by a user;
when the operation is monitored, obtaining a first file group stored in the external device and a second file group stored locally and related to the external device; and
simultaneously displaying the first file group and the second file group in one interface of the display screen.
In one embodiment, a number of the external device may be one or more, a number of the first file group is equal to the number of the external device, and a number of the second file group is less than or equal to the number of the external device.
In one embodiment, that the processor 2001 is configured to simultaneously display the first file group and the second file group in the one interface of the display screen 2004 includes:
merging and displaying the first file group and the second file group in one display area of the one interface.
In one embodiment, the processor 2001 is configured to merge and display the first file group and the second file group in the one display area of the one interface includes:
comparing each file in the first file group with each file in the second file group; and
if all files are different, merging and displaying each file of the first file group and each file of the second file group in the one display area.
In one embodiment, two files are different, which means that the two files have different file names, or the two files have a same file name, but contain different file features.
In one embodiment, the file features include one or more of following parameters:
file content, file creation time, modification operation, storage location, or device information.
In one embodiment, after the processor 2001 is configured to compare each file in the first file group with each file in the second file group, it is further configured to:
if the first file group and the second file group contain same files, merge the same files;
and
display the same files in single in the one display area.
In one embodiment, that the processor 2001 is configured to simultaneously display the first file group and the second file group in the one interface of the display screen includes:
dividing the one interface into multiple display areas, that a number of the display areas is greater than or equal to a sum of the number of the first file group and the number of the second file group; and
respectively displaying respective file groups in the first file group and the second file group in corresponding display areas.
In one embodiment, that the processor 2001 is configured to respectively display the respective file groups in the first file group and the second file group in the corresponding display areas includes:
obtaining identifications of the electronic device and the external device; and
based on correspondence between the respective file groups and the identifications, correspondingly displaying the identifications in each of the display areas.
In one embodiment, that the processor 2001 is configured to simultaneously display the first file group and the second file group in the one interface of the display screen includes:
assigning different display features to each of the first file group and each of the second file group; and
based on a corresponding relationship between the display features and the file groups, correspondingly displaying the display features in each of the display areas.
In one embodiment, that the processor 2001 is configured to simultaneously display the first file group and the second file group in the one interface of the display screen includes:
based on preset display rules, displaying each of the first file group and each of the second file group in the display areas.
In one embodiment, the display rules are based on file group information of the file groups, and the file group information includes one or more of following parameters: file group modification time, file group identification corresponding to the external device, file group keywords, and file creation time.
In one embodiment, the external device is a handheld gimbal.
In one embodiment, the electronic device is a mobile phone or a tablet computer.
The embodiments of the present disclosure also provide a machine-readable storage medium that can be configured on an electronic device. The machine-readable storage medium stores a plurality of computer instructions and files related to a connected external device. Following processing is performed when the computer instructions are executed:
steps of the file browsing method shown in
It should be noted that in this specification, relational terms such as a first and a second, etc., are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order among these entities or operations. Terms “include”, “contain” or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, a method, an article, or a device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also elements inherent to such processes, methods, articles, or devices. If there are no more restrictions, an element defined by a sentence “including a . . . ” does not exclude existence of other same elements in a process, a method, an article, or a device that includes the element.
The detection device and method provided by the embodiments of the present disclosure are described in detail above. Specific examples are used in the present disclosure to explain principles and implementations of the present disclosure. Descriptions of the above embodiments are only used to help understand the method of the present disclosure, and its core ideas. For those having ordinary skill in the art, according to the ideas of the present disclosure, there can be changes in specific implementations and application scopes. In summary, the content of this specification should not be construed as limiting the present disclosure.
This application is a continuation of International Application No. PCT/CN2018/097785, filed on Jul. 31, 2018, the entire content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/097785 | Jul 2018 | US |
Child | 17159969 | US |