1. Technical Field
The present disclosure generally relates to an electronic device, particularly to a method for recording a television program.
2. Description of Related Art
A user cannot comfortably watch two television (TV) programs simultaneously. A recording device can be used to record the TV programs when the user is absent or watching another program. The user can then watch the recorded TV programs at a later time. Typically however, the TV programs need to be recorded at the predefined time. Therefore, it is inconvenient for the user to record TV programs.
Many aspects of the embodiments can be better understood with reference 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, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
Referring to
Referring to
Referring to
The recording module 14 can check the network between the storing module 16, the transmitting module 18, and the recording module 14, record a TV program according to the parameters set by the parameter setting module 12, and transmit the recorded TV program to the storing module 14. When starting to record the TV program, the recording module 14 can search the TV program parameters. The recording module 14 starts to record the TV program, when a current time of the first electronic device is equal to the start recording time of the parameters. The recording module 14 stops to record the TV program when the current time is equal to the end recording time of the parameters. When recording the TV program, the recording module 14 can record the TV program according to the segment condition of the parameters. For example, if a segment condition is 15 minutes, the TV program is recorded for 15 minutes, and stored in the storing module 14 named 001 (a1). The next TV program then starts to record for 15 minutes, and stored in the storing module 14 named 002 (a2). When the last TV program is less than 15 minutes, but equal to the end recording time (T), the recording module 14 also stops recording, and transmits the last TV program to the storing module 14. All the segment files can be stored in the storing module 14 named 001, 002, 003 . . . , or a1, a2, a3 . . . .
The storing module 16 stores the parameters and the segment files. In one embodiment, the segment files are listed in turn. The transmitting module 18 can catch the segment files and transmit the segment files to the center server20 in turn. Therefore, users of the second electronic device 30 can enter the center server20 and watch or download the recorded TV program.
In step S10, the parameters setting module 12 receives the parameters and transmits the parameters to the storing module 16. In one embodiment, the operating flow parameters may be programmed through a user interface displayed in the first electronic device 10. For example, if there is a football match on CCTV-5 from 19:00 to 20:10, the segment condition is the time period of 15 minutes, and the segment files are named at a1, a2, a3 . . . .
In step S20, the recording module checks if the recording module 14 is connected to the storing module 16 and the transmitting module 18. If the recording module is connected to the storing module 16 and the transmitting module 18, the method continues to step S30, and if not, otherwise, the method ends.
In step S30, the storing module 16 stores the parameters. The recording module 16 obtains the parameters and records the TV program to a plurality of segment files according to the parameters. When a first segment file of the plurality of segment files is recorded, the recording module 14 transmits the segment to the storing module 16 and begins to record a second segment file. When the plurality of segment files are all recorded, the plurality of segment files are transmitted to the storing module 16 and listed in turn.
In step S40, the storing module 16 receives and stores the first segment file with a name such as a1, and waits to receive and store the second segment file. The first segment file named a1, the second segment file is named a2, the third segment file is named a3, and the last segment file is named a(n).
In step S50, when the first segment file a1 is stored in the storing module 16, the transmitting module 18 obtains the first segment file a1 from the storing module 16 and uploads the first segment file a1 to the center server20, and waits for the transmission of the second segment file a2, until the last segment file a(n) is transmitted to the center server 20. When users watch or download the plurality of segmented files of the TV program, the users can access the center server 20. In one embodiment, only the user of the second electronic device 10 having permission can access the center server20 to watch or download the plurality of segmented files.
In step S21, the recording module 14 receives the parameters.
In step S22, when the recording module 14 has received the TV channel, the recording module 14 determines if the current time of the first electronic device 10 is equal to the start recording time. When the current time of the first electronic device 10 is equal to the start recording time, the method continues to step S24, otherwise, the method continues to step S23.
In step S23, when the current time is earlier than the start recording time, the recording module 14 waits to record.
In step S24, when the current time reaches the start recording time, the recording module 14 starts to record a first segment file of the TV program. After the first segment file has been recorded, the recording module 14 stores the first segment file to the storing module 16 named, for example, a1, and continues to record a second segment file.
In step S25, the recording module 14 determines if the current time reaches the end recording time. If the current time is equal to the end recording time, the method ends. If the current time is earlier than the end recording time, the method returns to step S24. Therefore, for the football game example, the plurality of segments files of the TV program are listed in the storing module 16 named a1, a2, a3, a4, a5. In one embodiment, the segment condition is the time period of 15 minutes, and because the last segment file a5 is 10 minutes and the current time is equal to the end recording time 20:10, the recording module 16 stops recording the last segment file a5. Therefore, each of the segment files a1, a2, a3, a4 is 15 minutes, but the last segment file a5 is 10 minutes.
In another embodiment, when at least two TV programs are to be recorded, the at least two TV programs are separately recorded and named with different names in the storing module 16.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the foregoing description of embodiments, together with details of the structures and functions of the 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.
Depending on the embodiment, certain steps or 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 for or in relation to a method may include some indication in reference to certain steps. However, any 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 |
---|---|---|---|
100101736 | Jan 2011 | TW | national |