1. Technical Field
The disclosure generally relates to embedded electronic devices and methods for controlling multimedia files in the embedded electronic devices.
2. Description of Related Art
Embedded electronic devices, such as digital cameras, set-top boxes, digital picture frames, and others, provide many functions, including audio file playback. Playback operation is typically enabled through a user interface (UI) showing an operating state of a playback program. When the UI is shut off, playback is terminated concurrently. Thus, what is called for is an electronic device providing separate UIs for operations and playback, so that even when the operating UI is shut off, the playback can continue.
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
Referring to
The UI module 30 provides a UI window on the display 10 to accept input generating a control command for storage into the storage module 40. The UI module 30 invokes the resource management module 20 to acquire uniform resource locators (URLs) of the multimedia files.
The playback control module 50 includes a command translating sub-module 52, a launch control sub-module 54 and a transmission sub-module 56. The command translating sub-module 52 translates the control command from the storage module 40. The launch control sub-module 54 launches the playback module 70 to play or pause a multimedia file. The transmission sub-module 56 can periodically read the control command from storage module 40 and transmit an executing state of the current multimedia file from the playback module 70 to the storage module 40. The executing state includes at least one of total duration, duration played, and album art of the current multimedia file.
The playback module 70 works as a background application. The playback module 70 can decode and play the multimedia file under control of the playback control module 50.
Referring to
In step S10, a multimedia file is loaded by the UI window.
In step S12, a control command from the UI window is saved to the storage module 40.
In step S14, the control command from the storage module 40 is read by the playback control module 50.
In step S16, the control command is translated by the playback control module 50 and the playback module 70 is directed by the playback control module 50 to execute the translated control command to play or pause the multimedia file.
In step S18, an executing state of the multimedia file is stored to the storage module 40 by the playback control module 50.
In step S20, the executing state from the storage module 40 is fetched by the UI window on demand.
Depending on the embodiment, certain of the steps of methods described may be removed, others may be added, and the sequence of steps may be altered. It is also to be understood that the 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.
It is also to be understood, however, that even though numerous characteristics and advantages have been set forth in the foregoing description of preferred embodiments, together with details of the structures and functions of the preferred embodiments, 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.
Number | Date | Country | Kind |
---|---|---|---|
200910303761.3 | Jun 2009 | CN | national |