Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Fig. 1 is a flowchart illustrating a local time shifting method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
101. time-shifted data of the time-shifted channel is stored in real time.
For example, the local device stores time-shifted data of the time-shifted channel in real-time. Typically, the local device may be a set-top box or the like, the local device comprising at least a processor and a memory. Specifically, 101 may include: the time-shifting data of the time-shifting channel is stored in real time by a Personal Video Recorder (PVR) technology.
102. If a first channel switching instruction of a user is received, acquiring a first target channel identifier according to the first channel switching instruction, switching to a first target channel corresponding to the first target channel identifier, and continuously storing time shifting data of the time shifting channel in real time.
For example, the first channel switching instruction may include the first target channel identifier, and accordingly, the obtaining of the first target channel identifier according to the first channel switching instruction specifically includes: and acquiring the first target channel identifier in the first channel switching instruction. For another example, the first channel switching instruction may also be a channel up-turning instruction or a channel down-turning instruction, and accordingly, the obtaining a first target channel identifier according to the first channel switching instruction may specifically include: acquiring the identifier of the last channel relative to the current channel according to the channel up-turning instruction and a locally stored channel identifier list, and taking the identifier as the first target channel identifier; or, according to the channel down-turning instruction and a locally stored channel list, acquiring an identifier of a next channel relative to the current channel, and taking the identifier as the first target channel identifier. It should be noted that the channel switching instruction is actually specifically used for instructing to perform channel switching, and the specific method includes, but is not limited to, the above method, which is not described herein again.
In addition, the related content of the corresponding target channel identifier obtained according to each channel switching instruction in each embodiment described later is similar to the above content, and is not described again in the embodiments described later.
In practical application, the local device may receive, through the internal communication module, the first channel switching instruction sent by the user, or may receive, through the user interface, the first channel switching instruction directly input by the user. The user can send a first channel switching instruction by pressing a function key on the remote controller. It should be noted that any instruction of the user in this embodiment can be received and transmitted in the above manner.
According to the local time shifting method provided by the embodiment, through the technical scheme that the time shifting data of the channel before switching is still stored in real time after the channel is switched, the user can still watch the program played by the channel before switching after the channel is switched, so that the time shifting performance is improved.
Fig. 2 is a flowchart of another local time shifting method according to a second embodiment of the present invention, as shown in fig. 2, according to the local time shifting method according to the first embodiment, before 101, the method may further include:
201. and receiving a time-shifting keep-on instruction of a user.
202. And determining the time-shifting channel according to the time-shifting keep-on instruction, and storing the channel identifier of the time-shifting channel.
Specifically, the time shift hold on instruction is used for a user to instruct to turn on a channel of the time shift hold, so that the local device still stores the time shift data of the channel after switching from the channel or when the channel is not played.
In an implementation manner of this embodiment, the determining, in 202, the time-shifted channel according to the time-shift hold-on instruction may specifically include:
and taking the current channel as the time-shifting channel according to the time-shifting keep-on instruction.
The current channel is a channel being played by the local device, that is, a channel being watched by the user. Specifically, the application scenario of this embodiment may be that, when a user watches a program played in a certain channel, the user may want to leave the channel temporarily, perform channel switching to browse programs in other channels, but does not want to miss the watching of the program, and at this time, the user issues a time-shift hold-on instruction while watching the channel, and then switches to an interface of another channel that the user wants to browse. In this scenario, the time-shift hold-on command need not carry a time-shift channel identifier. The transmission method of the program is not limited to Cable television (Cable) transmission, satellite transmission, digital terrestrial broadcasting, network multicasting, or the like.
In another implementation manner of this embodiment, the time-shift hold-on instruction includes a time-shift channel identifier, and correspondingly, the determining the time-shift channel according to the time-shift hold-on instruction in 202 may specifically include:
and determining the channel corresponding to the time shifting channel identifier as the time shifting channel according to the time shifting channel identifier in the time shifting hold-on instruction.
Specifically, the application scenario of this embodiment may be that, when the user watches a program broadcast on a certain channel and does not wish to miss a program broadcast on another channel at this time, a time-shift hold-on instruction including a channel identifier of the other channel may be issued.
In yet another implementation manner of this embodiment, after the switching to the first target channel corresponding to the first target channel identifier in 102, the method may further include:
and storing the time shifting data of the first target channel in real time.
Optionally, after the switching to the first target channel corresponding to the first target channel identifier, the method may further include:
receiving a fourth channel switching instruction of the user;
and acquiring a fourth target channel identifier according to the fourth channel switching instruction, switching from the first target channel to a fourth target channel corresponding to the fourth target channel identifier, and stopping storing the time shift data of the first target channel.
Specifically, since the first target channel is not a user-specified time-shifted channel, the time-shifted data of the first target channel is stored only during the playing of the first target channel, and the storage of the time-shifted data of the first target channel is stopped when switching to another channel.
Further, after the stopping storing the time shift data of the first target channel, the method may further include:
deleting the locally stored time-shifted data of the first target channel.
The local time shifting method provided by this embodiment keeps storing the time shifting data of the time shifting channel in real time after receiving the time shifting keep-on instruction of the user, and continues to store the time shifting data of the time shifting channel in real time when the channel is switched.
Fig. 3 is a flowchart of another local time shifting method according to a third embodiment of the present invention, as shown in fig. 3, according to the local time shifting method according to the second embodiment, after 202, the method may further include:
301. and receiving a time-shifting keeping closing instruction of a user.
Specifically, the application scenario 301 may be that, after the time shift holding of the time shift channel is started, if the user wants to close the time shift holding of the time shift channel, a time shift holding closing instruction is issued.
302. And switching from the current channel to the time-shifted channel according to the time-shift keeping closing instruction and the stored channel identifier of the time-shifted channel, and deleting the stored channel identifier of the time-shifted channel.
Typically, when the time-shift hold of the time-shifted channel is turned off, the switch is first made back to the time-shifted channel.
In an implementation manner of this embodiment, after the switching from the current channel to the time-shifted channel in 302, the method may further include:
receiving a second channel switching instruction of the user;
and acquiring a second target channel identifier according to the second channel switching instruction, switching from the time-shifted channel to a second target channel corresponding to the second target channel identifier, and stopping storing the time-shifted data of the time-shifted channel.
That is, after the time shift holding for the time-shifted channel is turned off, if the time-shifted channel is switched to another channel, the time-shifted data of the time-shifted channel is not stored.
According to the local time shifting method provided by the embodiment, when a time shifting keep-close instruction of a user is received, the stored channel identifier of the time shifting channel is used for switching from the current channel to the time shifting channel, so that the user can conveniently and quickly return to the time shifting channel after switching the channel on the basis that the user can still watch the program played by the channel before switching after switching.
Fig. 4 is a flowchart of another local time shifting method according to a fourth embodiment of the present invention, as shown in fig. 4, according to the local time shifting method according to the first embodiment of the present invention, after the switching to the first target channel corresponding to the first target channel identifier in 102, the method may further include:
401. storing the time shifting data of the first target channel in real time;
402. receiving a third channel switching instruction of a user;
403. and acquiring a third target channel identifier according to the third channel switching instruction, switching from the first target channel to a third target channel corresponding to the third target channel identifier, continuously storing the time shifting data of the first target channel in real time, and stopping storing the time shifting data of the time shifting channel.
It should be noted that, in this embodiment, while the step 401 is executed, the time shift of the time-shifted channel is still continuously stored in real time. In practical applications, an application scenario of this embodiment is that when a user watches a program broadcasted on a certain channel, and the channel is switched due to an incorrect operation, and the user does not want to miss any time of watching the program, the program broadcasted on the channel during the period of leaving the channel due to the incorrect operation can be watched according to the time shift data of the channel.
According to the local time shifting method provided by the embodiment, after the channel is switched, the time shifting data of the current channel is stored in real time, the time shifting data of the channel before switching is continuously stored in real time, and the storage of the time shifting data of the channel before switching is stopped until the channel is switched again, so that a user can still watch the program played after the channel before switching is switched after the channel is switched, and the reliability of time shifting is improved.
Optionally, according to the local time shifting method of the third embodiment or the fourth embodiment, after the stopping storing the time shift data of the time-shifted channel, the method may further include: deleting the locally stored time-shifted data of the time-shifted channel.
According to the local time shifting method provided by the embodiment, after the time shifting keep-close instruction of the user is received, if the channel switching occurs, the locally stored time shifting data of the time shifting channel is stopped being stored and deleted.
Fig. 5 is a flowchart of a further local time shifting method according to a fifth embodiment of the present invention, as shown in fig. 5, according to the local time shifting method according to any of the foregoing embodiments, the method may further include:
501. receiving a time shifting request of a user, wherein the time shifting request comprises a request channel identifier;
502. and according to the time shifting request, obtaining the locally stored time shifting data of the channel corresponding to the request channel identifier.
It should be noted that 501 may be executed at any time in the local time shifting method described in any of the above embodiments, and the illustration is only one specific implementation, and does not limit other implementations.
Specifically, the request channel identifier is a channel identifier corresponding to a channel that the user wishes to watch by time shifting.
The application scenario 501 may be applied to various application scenarios, for example, after the user closes the time shift hold of the time shift channel and switches to the time shift channel, and finds that the time shift channel is already playing the program that the user wishes to watch, the user may send a time shift request including a channel identifier of the time shift channel to watch the program that the time shift channel plays before returning to the time shift channel, where the time shift request includes the channel identifier of the time shift channel.
As another example, the application scenario of 501 may be that, after the user starts the time-shift hold of the time-shifted channel and switches to another channel, if the user wishes to replay the program that is just played on the current channel, the user may send a time-shift request including the channel identifier of the current channel to view the program that is just played on the current channel.
In the local time shifting method provided in this embodiment, when a time shifting request including a request channel identifier sent by a user is received, time shifting data of a channel corresponding to the request channel identifier and stored locally is acquired, so that the user can perform time shifting on a current channel and watch a program played by the channel before switching after switching the channel.
Fig. 6 is a schematic structural diagram of a local time shifting apparatus according to a sixth embodiment of the present invention, as shown in fig. 6, the apparatus includes:
the storage module 61 is configured to store time shift data of a time shift channel in real time, where the time shift channel is a current channel.
Specifically, the storage module 61 may store the time shift data of the time shift channel in real time through a Personal Video Recorder (PVR).
The receiving module 62 is configured to receive a first channel switching instruction of a user.
A processing module 63, configured to, if the first channel switching instruction is received, obtain a first target channel identifier according to the first channel switching instruction, switch to a first target channel corresponding to the first target channel identifier, and instruct the storage module to continue to store the time shift data of the time shift channel in real time.
Specifically, the first channel switching instruction may include the first target channel identifier; correspondingly, the processing module 63 is specifically configured to: if a first channel switching instruction of a user is received, acquiring the first target channel identifier in the first channel switching instruction, switching to a first target channel corresponding to the first target channel identifier, and instructing the storage module 61 to continue to store the time shift data of the time shift channel in real time.
Optionally, the first channel switching instruction may also be a channel up-turning instruction or a channel down-turning instruction; correspondingly, the processing module 63 is specifically configured to: if the first channel switching instruction is received, acquiring a channel identifier of a previous channel or a next channel relative to the current channel according to the first channel switching instruction and a locally stored channel identifier list, taking the channel identifier as the first target channel identifier, switching to a first target channel corresponding to the first target channel identifier, and instructing the storage module 61 to continue to store the time shift data of the time shift channel in real time.
According to the local time shifting device provided by the embodiment, through the technical scheme that the time shifting data of the channel before switching is still stored in real time after the channel is switched, the user can still watch the program played by the channel before switching after the channel is switched, so that the time shifting performance is improved.
A seventh embodiment of the present invention provides another local time shifting apparatus, wherein according to the sixth embodiment of the local time shifting apparatus, the receiving module is further configured to receive a time-shift hold-on instruction of a user.
The processing module is further configured to determine the time-shifted channel according to the time-shift hold-on instruction, and store a channel identifier of the time-shifted channel.
Specifically, the time shift hold on instruction is used for a user to instruct to turn on a channel of the time shift hold, so that the local device still stores the time shift data of the channel after switching from the channel or when the channel is not played.
In an implementation manner of this embodiment, the processing module may be specifically configured to use a current channel as the time-shifted channel according to the time-shift hold-on instruction.
Specifically, the application scenario of this embodiment may be that, when a user watches a program played in a certain channel, the user may want to leave the channel temporarily, perform channel switching to browse programs in other channels, but does not want to miss the watching of the program, and at this time, the user issues a time-shift hold-on instruction while watching the channel, and then switches to an interface of another channel that the user wants to browse. In this scenario, the time-shift hold-on command need not carry a time-shift channel identifier. The transmission method of the program is not limited to Cable television (Cable) transmission, satellite transmission, digital terrestrial broadcasting, network multicasting, or the like.
In another implementation manner of this embodiment, the time-shift hold-on instruction includes a time-shift channel identifier; correspondingly, the processing module may be specifically configured to determine, according to the time-shift channel identifier in the time-shift hold-on instruction, that the channel corresponding to the time-shift channel identifier is the time-shift channel.
Specifically, the application scenario of this embodiment may be that, when the user watches a program broadcast on a certain channel and does not wish to miss a program broadcast on another channel at this time, a time-shift hold-on instruction including a channel identifier of the other channel may be issued.
In yet another implementation manner of this embodiment, the storage module may be further configured to store, in real time, time shift data of the first target channel after switching to the first target channel corresponding to the first target channel identifier.
Optionally, the receiving module may be further configured to receive a fourth channel switching instruction of the user;
the processing module may be further configured to acquire a fourth target channel identifier according to the fourth channel switching instruction, switch from the first target channel to a fourth target channel corresponding to the fourth target channel identifier, and instruct the storage module to stop storing the time shift data of the first target channel.
Wherein the first target channel is not a user-specified time-shifted channel.
Further, the storage module may be further configured to delete the locally stored time-shift data of the first target channel after the storage of the time-shift data of the first target channel is stopped.
The local time shifting device provided by this embodiment keeps storing the time shifting data of the time shifting channel in real time after receiving the time shifting hold-on instruction of the user, and continues to store the time shifting data of the time shifting channel in real time when the channel is switched.
Optionally, in another implementation manner of this embodiment, the receiving module may be further configured to receive a time-shift hold-off instruction of a user.
The processing module may be further configured to switch from the current channel to the time-shifted channel according to the time-shift hold-close instruction and the stored channel identifier of the time-shifted channel, and delete the stored channel identifier of the time-shifted channel.
Typically, when the time-shift hold of the time-shifted channel is turned off, the switch is first made back to the time-shifted channel.
Optionally, in this embodiment, the receiving module may be further configured to receive a second channel switching instruction of the user;
the processing module is further configured to obtain a second target channel identifier according to the second channel switching instruction, switch from the time-shifted channel to a second target channel corresponding to the second target channel identifier, and instruct the storage module to stop storing the time-shifted data of the time-shifted channel.
The local time shifting device provided by the embodiment switches from the current channel to the time shifting channel by using the stored channel identifier of the time shifting channel when receiving the time shifting closing keeping instruction of the user, so that the user can more conveniently and quickly return to the time shifting channel after switching the channel on the basis of still watching the program played by the channel before switching after switching.
An eighth embodiment of the present invention provides another local time shifting apparatus, where according to the sixth embodiment of the local time shifting apparatus, the storage module is further configured to store time shift data of the first target channel in real time after switching to the first target channel corresponding to the first target channel identifier;
the receiving module is also used for receiving a third channel switching instruction of a user;
the processing module is further configured to obtain a third target channel identifier according to the third channel switching instruction, switch from the first target channel to a third target channel corresponding to the third target channel identifier, instruct the storage module to continue to store the time shift data of the first target channel in real time, and instruct the storage module to stop storing the time shift data of the time shift channel.
In practical applications, an application scenario of this embodiment is that when a user watches a program broadcasted on a certain channel, and the channel is switched due to an incorrect operation, and the user does not want to miss any time of watching the program, the program broadcasted on the channel during the period of leaving the channel due to the incorrect operation can be watched according to the time shift data of the channel.
The local time shifting apparatus provided in this embodiment stores the time shift data of the current channel in real time after the channel is switched, and continues to store the time shift data of the channel before the channel is switched in real time until the channel is switched again, so that the user can still watch the program played after the channel is switched, thereby improving the reliability of time shifting.
Optionally, according to the seventh embodiment or the eighth embodiment, the storage module is further configured to delete the locally stored time-shift data of the time-shift channel after the storage of the time-shift data of the time-shift channel is stopped.
The local time shifting device provided by the embodiment stops storing and deletes the locally stored time shifting data of the time shifting channel if channel switching occurs after receiving the time shifting keep-close instruction of the user.
An embodiment of the present invention provides a local time shifting apparatus, where in accordance with any one of the foregoing embodiments, the receiving module is further configured to receive a time shifting request of a user, where the time shifting request includes a request channel identifier;
the processing module is further configured to obtain locally stored time shift data of a channel corresponding to the requested channel identifier according to the time shift request.
The local time shifting apparatus provided in this embodiment, when receiving a time shifting request including a request channel identifier sent by a user, obtains locally stored time shifting data of a channel corresponding to the request channel identifier, so that the user can not only time shift a current channel, but also view a program played by the channel before switching after switching the channel.
Wherein, in any of the above embodiments, the local time-shifting device may include, but is not limited to: a cell phone, a personal computer, a tablet computer, or a set-top box. It should be noted that, the local time shifting apparatus provided in the foregoing embodiment may implement the steps of the local time shifting method provided in any embodiment of the present invention, and a specific implementation method is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.