Summary of the invention
Purpose of the present invention provides a kind of method of record player interruption position, and corresponding client, utilizes the present invention, can be in the improper situation of closing of player client, and the also recording played position of interrupting effectively.
The method of a kind of record player interruption position provided by the present invention includes following steps:
Step 1 with the Preset Time interval, continues generation and storage in order to the information of record object content play position data by the player client;
Step 2, the player client by improper situation of closing under, transfer aforementioned play position data by Preset Time interval record when opening this player client next time, with time or the adjacent time that is recorded for the last time, as the time of interrupting last time.
Further, described Preset Time interval, 2 seconds or within.
Further, described Preset Time interval, 0.5 second or within.
Further, described information in order to record object content play position data is the positional information of playing.
Further, described information in order to record object content play position data is after playing unlatching, and to count default interval time, the position of broadcast obtains by multiply by count value interval time.
Further, described information in order to record object content play position data is uploaded to the system server of the player of correspondence.
Further, described improper closing is that the place terminal is forced to shutdown, and perhaps power supply is interrupted.
The present invention also provides a kind of client of record player interruption position, and this client comprises:
Position record acquiring unit in order to pass through the player client with the Preset Time interval, continues generation and storage in order to the information of record object content play position data;
The interruption position acquiring unit, in order to the player client by improper situation of closing under, transfer aforementioned play position data by Preset Time interval record when opening this player client next time, with time or the adjacent time that is recorded for the last time, as the time of interrupting last time.
Embodiment
Embodiment 1
Join shown in Figure 1ly, a kind of method of record player interruption position is provided in the present embodiment, the method has following operation steps:
Step S110 arranged by the default time interval with 0.5 second of player client, continued generation and storage in order to the information of record object content play position data.
In the present invention, described Preset Time interval, generally be fit to be chosen in 2 seconds or within.As preferred embodiment, get this Preset Time interval 0.5 second or within.
Step S120 is in the player customer end B in the situation of opening, gathers user A to the broadcast triggering message of film F, the play operation of opening this film F.
Described film F especially refers to the film data of watching online by the internet here.Certainly, also can be video data outside the film etc., specifically do not limit.
In addition, described film F can be to play the film data that the place terminal prestores equally.
Step S130 in the playing process of aforementioned film F, continues the time interval frequency with 0.5 second, gathers the reproduction time position with respect to the movie starting point, and it is carried out record.
In the present invention, in order to the information of record object content play position data, be preferably the positional information of broadcast.The positional information of this broadcast as previously mentioned, is the reproduction time position with respect to the movie starting point.Such as, film totally 90 minutes, so when play position was 42 minutes and 52 seconds, this positional information was that the broadcast of corresponding this film is starting point the zero hour.
It is pointed out that the reproduction time that can also come with other form documentary.Such as, can rise in the moment that aforesaid movie begins, count with the time interval in 0.2 second.If the player client at place during by improper closing, has been finished 2423 times counting, so, utilize the time interval in 0.2 second to multiply by 2423, can obtain the reproduction time in 484.6 seconds.This mode equally also is suitable.
Aforesaid each record all will be stored separately.The player customer end B at place still can be kept the position data of having stored by in the improper situation of closing like this.This position data except can storing by the terminal device at place, can also be stored by the mode that is uploaded to system server when storage.
Step S140, this player customer end B by in the improper situation of closing, stops the record operation of being carried out with aforementioned time interval frequency when forced shutdown.
In the present invention, described improper closing especially refers to forced shutdown.The operation of forced shutdown, especially general for portable terminal.In addition, aforesaid improper closing also can cause because of situations such as film are interrupted.
Step S150 when opening afterwards aforementioned playout device customer end B, transfers corresponding aforementioned film F and records formed play position data by the Preset Time interval, gathers the time that time of wherein being recorded for the last time interrupted as last time.
It is to be noted, if in the situation that aforesaid player customer end B is normally closed, then also can utilize mode described in the invention to carry out the record operation of interruption position, in addition, also can carry out record by original mode, such as, in normal pent situation, the moment that collection has been play stores, in order to transferring.
Step S160 if when gather obtaining user A and triggering the message that aforementioned film F continues to play, obtain the break period that previous step obtains, continues play operation take this break period as starting point.
It is pointed out that on the basis of the time that is recorded for the last time that obtains, the adjacent time can also be set.The described adjacent time referred to based on the time of recording, and can also float among a small circle, and such as floating forward in 10 seconds, this domain of walker can be set by service provider or user, in order to the broadcast record of last time successively better.
Embodiment 2
Join shown in Figure 2ly, the present invention also provides a kind ofclient 100 of record player interruption position, and it is a kind of player client, comprises the stream medium data of video display data in order to broadcast.Further, describedclient 100 can also also can record the play position of interruption in the improper situations of closing such as forced shutdown or suddenly interruption of power supply, continue play operation for the user based on this interruption position.
For realizing improper record operation of closing the interruption position in the situation, describedclient 100 also includes following structure:
Positionrecord acquiring unit 110 in order to pass through the player client with the Preset Time interval, continues generation and storage in order to the information of record object content play position data;
Interruptionposition acquiring unit 120, in order to the player client by improper situation of closing under, next time is when opening this player client, transfer aforementioned play position data by Preset Time interval record, with time or the adjacent time that is recorded for the last time, as the time of interrupting last time.
In the specific implementation, especially applicable when playing film.Further, applicable in the situation that especially the place terminal often is forced to shut down.Utilize positionrecord acquiring unit 110 to preset the pattern of recording played position data.Under this pattern, by the time interval of player client to preset at place, continue to generate and store the information of the position data of the object content of playing.This position data can be directly corresponding actual play position, also can be by the realization of the forms such as counting.
If the client atplace 100 does not run into the improper situations of closing such as forced shutdown in the situation of playing aforementioned target data, the recording mode of other play position then can be arranged, such as, directly gather actual play position and carry out record.
If the client atplace 100 has run into the improper situations of closing such as forced shutdown in the situation of playing aforementioned target data, then can pass through interruptionposition acquiring unit 120, when opening this player client next time, transfer aforementioned play position data by Preset Time interval record, with time or the adjacent time that is recorded for the last time, as the time of interrupting last time.The described adjacent time referred to based on the time of recording, and can also float among a small circle, and this domain of walker can be set by service provider or user.
More than be the description of this invention and non-limiting, based on other embodiment of inventive concept, also all among protection scope of the present invention.