1. Technical Field
The present disclosure relates to electronic devices and methods for displaying images corresponding to currently playing audio files in the electronic device.
2. Description of Related Art
Embedded electronic devices, for example, digital photo frames (DPFs) are becoming increasingly popular due to their convenience and ease of manipulation when implementing particular functions. However, when a song is played on the electronic device, only a user interface is displayed on a display of the electronic device. The visual effect on the display may be boring to the user.
Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
Referring to
When one of the audio files 101 is loaded by the audio playing module 120 to play, the audio file analyzing module 124 may analyze the loaded audio file 101 to obtain a keyword corresponding to the loaded audio file 101. The audio file analyzing module 124 may analyze a file name of the loaded audio file 101 or an embedded ID3 tag. The image fetching module 140 can search on the Internet according to the keyword to fetch an image corresponding to the loaded audio file 101. The image corresponding to the loaded audio file 101 may be a photograph of the singer or an album image of the loaded audio file 101. In the embodiment, the image is an album cover of the loaded audio file 101.
Referring to
In step S10, the audio playing module 120 loads an audio file 101.
In step S12, the audio file analyzing module 124 analyzes the loaded audio file 101 to obtain a keyword corresponding to the audio file. The audio file analyzing module 124 analyzes the loaded audio file 101 include analyzes a file name of the loaded audio file 101 or an ID3 tag embedded in the loaded audio file 101. If the file name is analyzed, this step further includes the audio file analyzing module 124 splits the file name to obtain the keyword. If the ID3 tag is analyzed, this step further includes the audio file analyzing module 124 parsing the ID3 to obtain the keyword.
In step S14, the image fetching module 140 searches and fetches an image according to the keyword. The image fetching module 140 searches the Internet according to the keyword to acquire the image. The image fetching module 140 can further search the image at an image search website and download the image according to a valid image Uniform Resource Locator (URL).
In step S16, the audio playing module 120 plays the loaded audio file 101 and the UI module displays the image on the display 110 at the same time.
Referring to
It is to be understood, however, that even though numerous characteristics and advantages of the disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
It is also to be understood that the above description and the claims drawn to a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.
Number | Date | Country | Kind |
---|---|---|---|
200910303706.4 | Jun 2009 | CN | national |