CN105141458A - Remaining duration showing method and device - Google Patents

Remaining duration showing method and device Download PDF

Info

Publication number
CN105141458A
CN105141458A CN201510532642.0A CN201510532642A CN105141458A CN 105141458 A CN105141458 A CN 105141458A CN 201510532642 A CN201510532642 A CN 201510532642A CN 105141458 A CN105141458 A CN 105141458A
Authority
CN
China
Prior art keywords
time period
time
terminal
time point
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510532642.0A
Other languages
Chinese (zh)
Other versions
CN105141458B (en
Inventor
韦传毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201510532642.0A priority Critical patent/CN105141458B/en
Publication of CN105141458A publication Critical patent/CN105141458A/en
Application granted granted Critical
Publication of CN105141458B publication Critical patent/CN105141458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a remaining duration showing method and device, and belongs to the technical field of networks. The remaining duration showing method comprises the steps of: by a server, determining a time bucket distributed to a terminal, opening appointed operation authority of the terminal and obtaining a first timestamp of a time point indicated by a first clock when the fact that the time point indicated by the first clock reaches to a start time point is detected, sending an authority open message to the terminal to enable the terminal to receive the authority open message, obtaining a second timestamp of a time point indicated by a second clock, determining a stop time point of the appointed operation authority based on the first timestamp, the second timestamp and an end time point distributed to the terminal, and showing the remaining duration of the appointed operation authority based on the stop time point. By determining the stop time point at the terminal which corresponds to the end time point distributed by the server, the stop time point at the terminal and the end time point of the server are guaranteed as the same practical time points, accordingly the consistence of the remaining duration is guaranteed, and an error of countdown is avoided.

Description

Residual time length methods of exhibiting and device
Technical field
The present invention relates to networking technology area, particularly residual time length methods of exhibiting and device.
Background technology
Along with the continuous expansion of server capability, terminal can perform various operation by server, and popularizing along with intelligent terminal, also got more and more by the terminal of server executable operations.For the ease of managing multiple terminal, server can be the time period that each terminal distribution allows its executable operations, and according to the time period of correspondence, authority terminal being performed to this operation controls.
To carry out live scene in channel, carry out live in turn for the ease of user multiple in channel, server is that each user distributes the different live time periods, and this live time period comprises corresponding start time point and end time point.When this server detects that the time point that clock indicates arrives the start time point of a certain user, open the live authority of this user, this user can carry out live in channel, when this server detects that the time point that clock indicates reaches the end time point of this user, close the live authority of this user, then this user stops live.In addition, this server can also send this live time period to the terminal of user in advance, then carry out in live process user, As time goes on this terminal can carry out countdown, namely the time interval between the time point of the current instruction of clock and the end time of this live time period point is calculated, as the live duration of current residue, and show the live duration of this residue.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: during the Time Inconsistency that time of the clock of this terminal instruction indicates with the clock of this server, the live duration of real surplus of the live duration of the residue of this terminal display and user can be caused inconsistent, there is error in countdown.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of residual time length methods of exhibiting and device.Described technical scheme is as follows:
First aspect, provide a kind of residual time length methods of exhibiting, described method comprises:
Be defined as the time period of terminal distribution, the described time period comprises start time point and end time point, and the described time period refers to time period of the assigned operation authority of opening described terminal;
When detecting that the time point of the first clock instruction arrives described start time point, open the assigned operation authority of described terminal, and obtain the very first time stamp of the time point of described first clock instruction;
Message is opened to described terminal sending permission, described authority is opened message and is at least comprised stamp of the described very first time, make when described terminal receives described authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of described assigned operation authority according to described very first time stamp, described second timestamp and point of described end time, show the residual time length of described assigned operation authority according to described stop time point.
Alternatively, described method also comprises:
When detecting that the time point of described first clock instruction arrives point of described end time, close the assigned operation authority of described terminal.
Alternatively, be defined as time period of terminal distribution, comprising described in:
For described terminal distribution first time period;
Send described first time period to described terminal, make first time period described in described terminal display;
When receiving the time period adjustment request that described terminal sends, according to last time period in multiple time periods of having distributed, for described terminal distribution second time period, after described second time period is arranged in last time period of described multiple time period;
Send described second time period to described terminal, make the second time period described in described terminal display.
Alternatively, described method also comprises:
Set up the corresponding relation between terminal iidentification and described time period.
Alternatively, described method also comprises:
According to the sequencing of the time period for each terminal distribution, rise time section distribution list, described time period distribution list comprises multiple entry, and each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
Alternatively, described method also comprises:
Receive to cancel and distribute request, described cancellation allocation request packet draws together designated terminal mark;
The specified entry that described designated terminal mark is corresponding is deleted from described time period distribution list;
Adjust the time period of each entry be positioned at after described specified entry, after making to adjust, in described time period distribution list, the time period of any two adjacent entries is continuous.
Second aspect, provide a kind of residual time length methods of exhibiting, described method comprises:
The authority that reception server sends opens message, and described authority opens the very first time stamp that message at least comprises the time point of the first clock instruction;
Obtain the second timestamp of the time point of second clock instruction;
According to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determine the stop time point of described assigned operation authority, described end time point refers to the time point of described server closing local terminal assigned operation authority;
According to described stop time point, show the residual time length of described assigned operation authority.
Alternatively, described according to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determine the stop time point of described assigned operation authority, comprising:
Calculate the difference between stamp of the described very first time and described second timestamp, as the first numerical value;
Calculate the difference between point of described end time and described first numerical value, as described stop time point.
Alternatively, described according to described stop time point, show the residual time length of described assigned operation authority, comprising:
Obtain the time point of described second clock instruction;
In the time interval between the time point got described in calculating and described stop time point, obtain described residual time length;
Show described residual time length.
Alternatively, described method also comprises:
Receive the first time period that described server sends, the described time period comprises start time point and end time point;
Show described first time period.
Alternatively, described method also comprises:
When the clicking operation to time period adjustment option being detected, to described server transmitting time section adjustment request, make described server according to last time period in multiple time periods of having distributed, for described local terminal distributed for the second time period, after described second time period is arranged in last time period of described multiple time period;
When receiving described second time period that described server sends, show described second time period.
Alternatively, described method also comprises:
When the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, described cancellation allocation request packet draws together terminal iidentification, makes described server delete entry corresponding to described terminal iidentification from the time period distribution list of generation.
The third aspect, provide a kind of residual time length exhibiting device, described device comprises:
Time period determination module, for being defined as the time period of terminal distribution, the described time period comprises start time point and end time point, and the described time period refers to time period of the assigned operation authority of opening described terminal;
Authority opening module, for when detecting that the time point of the first clock instruction arrives described start time point, opens the assigned operation authority of described terminal;
Very first time stamp acquisition module, for obtaining the very first time stamp of the time point of described first clock instruction;
Sending module, for opening message to described terminal sending permission, described authority is opened message and is at least comprised stamp of the described very first time, make when described terminal receives described authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of described assigned operation authority according to described very first time stamp, described second timestamp and point of described end time, show the residual time length of described assigned operation authority according to described stop time point.
Alternatively, described device also comprises:
Authority closing module, for when detecting that the time point of described first clock instruction arrives point of described end time, closes the assigned operation authority of described terminal.
Alternatively, described time period determination module is also for being described terminal distribution first time period; Send described first time period to described terminal, make first time period described in described terminal display; When receiving the time period adjustment request that described terminal sends, according to last time period in multiple time periods of having distributed, for described terminal distribution second time period, after described second time period is arranged in last time period of described multiple time period; Send described second time period to described terminal, make the second time period described in described terminal display.
Alternatively, described device also comprises:
Corresponding relation building module, for setting up the corresponding relation between terminal iidentification and described time period.
Alternatively, described device also comprises:
List Generating Module, be the sequencing of the time period of each terminal distribution for basis, rise time section distribution list, described time period distribution list comprises multiple entry, each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
Alternatively, described device also comprises:
Receiver module, distribute request for receiving to cancel, described cancellation allocation request packet draws together designated terminal mark;
Removing module, for deleting specified entry corresponding to described designated terminal mark from described time period distribution list;
Adjusting module, for adjusting the time period of each entry be positioned at after described specified entry, after making to adjust, in described time period distribution list, the time period of any two adjacent entries is continuous.
Fourth aspect, provide a kind of residual time length exhibiting device, described device comprises:
Receiver module, the authority sent for reception server opens message, and described authority opens the very first time stamp that message at least comprises the time point of the first clock instruction;
Second timestamp acquisition module, for obtaining the second timestamp of the time point of second clock instruction;
Stop time point acquisition module, for according to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determine the stop time point of described assigned operation authority, described end time point refers to the time point of described server closing local terminal assigned operation authority;
First display module, for according to described stop time point, shows the residual time length of described assigned operation authority.
Alternatively, described stop time point acquisition module also for calculate the described very first time stamp with described second timestamp between difference, as the first numerical value; Calculate the difference between point of described end time and described first numerical value, as described stop time point.
Alternatively, described first display module is also for obtaining the time point of described second clock instruction; In the time interval between the time point got described in calculating and described stop time point, obtain described residual time length; Show described residual time length.
Alternatively, described device also comprises:
Described receiver module, also for receiving the first time period that described server sends, the described time period comprises start time point and end time point;
Second display module, for showing described first time period.
Alternatively, described second display module is also for when the clicking operation to time period adjustment option being detected, to described server transmitting time section adjustment request, make described server according to last time period in multiple time periods of having distributed, for described local terminal distributed for the second time period, after described second time period is arranged in last time period of described multiple time period; When receiving described second time period that described server sends, show described second time period.
Alternatively, described device also comprises:
Sending module, for when the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, described cancellation allocation request packet draws together terminal iidentification, makes described server delete entry corresponding to described terminal iidentification from the time period distribution list generated.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The method and apparatus that the embodiment of the present invention provides, the time period of terminal distribution is defined as by server, this time period comprises start time point and end time point, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction, message is opened to this terminal sending permission, this terminal receives this authority and opens message, obtain the second timestamp of the time point of second clock instruction, stab according to this very first time, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this terminal and the clock of server indicate, by according to very first time stamp corresponding to the first clock of server and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this server distributes, ensure that the stop time point of terminal and the end time point of server are same real time point, thus ensure that the residual time length of this terminal display is consistent with the residual time length of the assigned operation authority reality of this terminal, avoid countdown to occur error.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of interactive system that the embodiment of the present invention provides;
Fig. 2 is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides;
Fig. 3 is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides;
Fig. 4 A is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides;
Fig. 4 B puts and stop time point schematic diagram a kind of end time that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of residual time length exhibiting device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of residual time length exhibiting device that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 8 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the structural representation of a kind of interactive system that the embodiment of the present invention provides, and as shown in Figure 1, this interactive system comprises: terminal and server, is connected between this terminal with this server by network.
This server is for being defined as the time period of this terminal distribution, this time period comprises start time point and end time point, this time period refers to time period of assigned operation authority of opening this terminal, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction, open message to this terminal sending permission, this authority is opened message and is at least comprised this very first time stamp.
This terminal opens message for receiving this authority, obtain the second timestamp of the time point of second clock instruction, according to this very first time stamp, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.
Fig. 2 is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides.The executive agent of this inventive embodiments is server, and see Fig. 2, the method comprises:
201, be defined as the time period of terminal distribution, this time period comprises start time point and end time point, and this time period refers to time period of assigned operation authority of opening this terminal.
202, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction.
203, message is opened to this terminal sending permission, this authority is opened message and is at least comprised this very first time stamp, make when this terminal receives this authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of this assigned operation authority according to this very first time stamp, this second timestamp and this end time point, show the residual time length of this assigned operation authority according to this stop time point.
The method that the embodiment of the present invention provides, by being defined as the time period of terminal distribution, this time period comprises start time point and end time point, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction, message is opened to this terminal sending permission, make this terminal receive this authority and open message, obtain the second timestamp of the time point of second clock instruction, stab according to this very first time, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this terminal and the clock of server indicate, by according to very first time stamp corresponding to the first clock of server and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this server distributes, ensure that the stop time point of terminal and the end time point of server are same real time point, thus ensure that the residual time length of this terminal display is consistent with the residual time length of the assigned operation authority reality of this terminal, avoid countdown to occur error.
Alternatively, the method also comprises:
When the time point detecting that this first clock indicates arrives this end time point, close the assigned operation authority of this terminal.
Alternatively, this is defined as the time period of terminal distribution, comprising:
For this terminal distribution first time period;
Send this first time period to this terminal, make this first time period of this terminal display;
When receiving the time period adjustment request that this terminal sends, according to last time period in multiple time periods of having distributed, it is this terminal distribution second time period, after last time period that this second time period is arranged in the plurality of time period;
Send this second time period to this terminal, make this second time period of this terminal display.
Alternatively, after this time period being defined as terminal distribution, the method also comprises:
Set up the corresponding relation between terminal iidentification and this time period.
Alternatively, the method also comprises:
According to the sequencing of the time period for each terminal distribution, rise time section distribution list, this time period distribution list comprises multiple entry, and each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
Alternatively, the method also comprises:
Receive to cancel and distribute request, this cancellation allocation request packet draws together designated terminal mark;
The specified entry that this designated terminal mark is corresponding is deleted from this time period distribution list;
Adjust the time period of each entry be positioned at after this specified entry, after making to adjust, in this time period distribution list, the time period of any two adjacent entries is continuous.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 3 is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides.The executive agent of this inventive embodiments is terminal, and see Fig. 3, the method comprises:
301, the authority that reception server sends opens message, and this authority opens the very first time stamp that message at least comprises the time point of the first clock instruction.
302, the second timestamp of the time point of second clock instruction is obtained.
303, according to this very first time stamp, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, this end time point refers to the time point of this server closing local terminal assigned operation authority.
304, according to this stop time point, the residual time length of this assigned operation authority is shown.
The method that the embodiment of the present invention provides, message is opened by receiving this authority, obtain the second timestamp of the time point of second clock instruction, according to this very first time stamp, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this terminal and the clock of server indicate, by according to very first time stamp corresponding to the first clock of server and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this server distributes, ensure that the stop time point of terminal and the end time point of server are same real time point, thus ensure that the residual time length of this terminal display is consistent with the residual time length of the assigned operation authority reality of this terminal, avoid countdown to occur error.
Alternatively, this, according to this very first time stamp, this second timestamp and the end time point for local terminal distribution, is determined the stop time point of this assigned operation authority, comprising:
Calculate the difference between this very first time stamp and this second timestamp, as the first numerical value;
Calculate the difference between this end time point and this first numerical value, as this stop time point.
Alternatively, this is shown the residual time length of this assigned operation authority according to this stop time point, comprising:
Obtain the time point of this second clock instruction;
Calculate the time interval between this time point got and this stop time point, obtain this residual time length;
Show this residual time length.
Alternatively, the method also comprises:
Receive the first time period that this server sends, this time period comprises start time point and end time point;
Show this first time period.
Alternatively, the method also comprises:
When the clicking operation to time period adjustment option being detected, to this server transmitting time section adjustment request, make this server according to last time period in multiple time periods of having distributed, for this local terminal distributed for the second time period, after last time period that this second time period is arranged in the plurality of time period;
When receiving this second time period that this server sends, show this second time period.
Alternatively, the method also comprises:
When the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, this cancellation allocation request packet draws together terminal iidentification, makes this server delete entry corresponding to this terminal iidentification from the time period distribution list of generation.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 4 A is the flow chart of a kind of residual time length methods of exhibiting that the embodiment of the present invention provides.The interaction agent of this inventive embodiments is terminal and server, and see Fig. 4 A, the method comprises:
401, this server is defined as the time period of terminal distribution, and this time period comprises start time point and end time point, and this time period refers to time period of assigned operation authority of opening this terminal.
Wherein, this assigned operation authority refers to that terminal performs the authority of assigned operation, and when this assigned operation authority is opened, this terminal can perform this assigned operation by server.This assigned operation can comprise polytype operation, as carry out in the channel that provides at server live operation, access services device the operation etc. of webpage is provided, the embodiment of the present invention does not limit this.
Further, for dissimilar server, this terminal can be different by the assigned operation performed by server.Such as, when this server is social application server, this terminal can be comprised the operation of issuing multimedia information by the assigned operation that this server performs, be checked the operation etc. of the multimedia messages of good friend, correspondingly, this assigned operation authority can comprise the authority of issuing multimedia information, check the authority etc. of the multimedia messages of good friend.And when this server is shopping at network server, this terminal can comprise shopping operation, payment operation etc. by the assigned operation that this server performs, correspondingly, this assigned operation authority can comprise shopping authority, payment authority etc.The type of the embodiment of the present invention to this server, this assigned operation and this assigned operation authority does not all limit.
For the ease of managing the assigned operation authority of terminal, this server can be the terminal distribution time period, this time period refers to that this server opens the time period of the assigned operation authority of this terminal, this time period comprises start time point and end time point, namely this start time point refers to that this server opens the time point of terminal assigned operation authority, and this end time point refers to the time point of this server closing terminal assigned operation authority.
For multiple different terminal, this server can be each terminal distribution time period, according to the time period of distributing, controls the assigned operation authority of corresponding terminal.
Wherein, this server can be the time period of any two adjacent terminal distribution continuous print in multiple terminal, this server can sort to multiple terminal, for the previous terminal distribution time period, using the start time point of the end time of this time period point as next terminal, thus it it is the next terminal distribution time period.Such as, for terminal A and terminal B, this server is that terminal A distributes time period 8:00-8:10, and using the start time point of 8:10 as terminal B, for terminal B distributes time period 8:10-8:20.Or this server can also be the plurality of terminal distribution time period randomly, and the time period of any two terminals can be discontinuous.Such as, for terminal A and terminal B, this server is that terminal A distributes time period 8:00-8:10, is the time period 8:15-8:25 that terminal B distributes.
In addition, this server can be each terminal distribution time period according to the first preset duration, makes the time period length of distributing for counterpart terminal equal this first preset duration.Wherein, the first preset duration that this server adopts when being the different terminal distribution time periods can be different, it is 10 minutes as this server presets the first preset duration corresponding to terminal A, the first preset duration that terminal B is corresponding is 15 minutes, then for terminal A distributes time period 8:00-8:10, for terminal B distributes time period 8:10-8:25.Or, the first preset duration that this server adopts when being the different terminal distribution time periods can be identical, being 10 minutes as this server presets this first preset duration, is then that terminal A distributes time period 8:00-8:10, is that terminal B distributes time period 8:10-8:20.
This server is after the terminal distribution time period, and can set up the corresponding relation between terminal iidentification and the time period being this terminal distribution, then, in subsequent process, this server can be defined as the time period of this terminal distribution according to this corresponding relation.
Such as, this server is that terminal A distributes time period 8:20-8:30, then the corresponding relation set up is as shown in table 1 below, and the time period that can be defined as terminal A distribution according to this corresponding relation is 8:20-8:30.
Table 1
Terminal iidentification Time period
A 8:20-8:30
For multiple terminal, this server can set up the corresponding relation of each terminal iidentification and the time period of distributing for corresponding terminal.Further, when this server establishes multiple corresponding relation, the form of list can also be adopted, store the plurality of corresponding relation.Namely this server can rise time section distribution list, this time period distribution list comprises multiple entry, each entry comprises corresponding terminal iidentification and time period, then this server according to this time period distribution list, can be defined as the time period of each terminal distribution.
Such as, this server is that terminal A distributes time period 8:20-8:30, for terminal B distributes time period 8:00-8:10, for terminal C distributes time period 8:30-8:40, then the time period distribution list of this server generation is as shown in table 2 below, according to this time period distribution list, can determine this server be terminal A distribute time period be 8:20-8:30.
Table 2
Terminal iidentification Time period
B 8:00-8:10
A 8:20-8:30
C 8:30-8:40
Wherein, if this server is the time period of any two adjacent terminal distribution continuous print in multiple terminal, then this server can according to the sequencing of the time period for each terminal distribution, rise time section distribution list, makes the time period of any two adjacent entries in this time period distribution list continuous.
Such as, this server is that terminal A distributes time period 8:10-8:20, for terminal B distributes time period 8:00-8:10, for terminal C distributes time period 8:20-8:30, then this server is according to the sequencing rise time section distribution list of distributed time period, and this time period distribution list is as shown in table 3 below.
Table 3
Terminal iidentification Time period
B 8:00-8:10
A 8:10-8:20
C 8:20-8:30
In practical application, for each terminal, this server can be first a time period of this terminal distribution, and sending this time period to this terminal, in subsequent process, user can trigger and operate the adjustment of this time period, the operation that this server can trigger according to user, adjusted this time period.
That is to say, this server is this terminal distribution first time period, sends this first time period to this terminal, when this terminal receives this time period, shows this first time period.And this terminal demonstration time period adjustment option, this time period adjustment option is used to indicate this server and adjusts this time period.
The user of this terminal can check this time period, when user wishes that this server redistributes a time period, time period adjustment option can be clicked, when this terminal detects the clicking operation to this time period adjustment option, to this server transmitting time section adjustment request, when this server receives the adjustment request of this time period, for the second time period that this terminal distribution is different from this first time period, this the second time period is sent to this terminal, when this terminal receives this second time period, show this second time period.
Wherein, when this server receives the adjustment request of this time period, in residue unappropriated multiple time period, can choose for the second time period, and first time period corresponding for this terminal iidentification was changed to for the second time period, thus this second time period is distributed to this terminal.
Particularly, when the corresponding relation of the built vertical terminal iidentification of this server, this corresponding relation can be obtained according to terminal iidentification, and the first time period in this corresponding relation was changed to for the second time period.
Based on the citing of table 1, when this server receives the adjustment request of this time period, the second time period 8:10-8:20 is chosen in residue unappropriated multiple time period, and obtain the corresponding relation of terminal iidentification A, 8:20-8:30 in this corresponding relation is changed to 8:10-8:20, and the corresponding relation after change is as shown in table 4 below.
Table 4
Terminal iidentification Time period
A 8:10-8:20
Or, when this server section distribution list settling time, this time period distribution list can be obtained, and according to this terminal iidentification, the first time period in corresponding for this terminal iidentification entry be changed to for the second time period.
Based on the citing of table 2, when this server receives the adjustment request of this time period, the second time period 8:10-8:20 is chosen in residue unappropriated multiple time period, and obtain this time period distribution list, corresponding entry is obtained according to terminal iidentification B, 8:00-8:10 in this entry is changed to 8:10-8:20, and the time period distribution list after change is as shown in table 5 below.
Table 5
Terminal iidentification Time period
B 8:10-8:20
A 8:20-8:30
C 8:30-8:40
Further, if this server has been that the time period of any two adjacent terminal distribution is continuous, then when this server receives the adjustment request of this time period, can according to last time period in multiple time periods of having distributed, for this terminal distribution second time period, after last time period that this second time period is arranged in the plurality of time period.Alternatively, last time period in this second time period and the plurality of time period is continuous.
Based on the citing of table 3, when this server receives the time period adjustment request of terminal B transmission, the second time period 8:30-8:40 is chosen according to last time period 8:20-8:30 in time period distribution list, 8:00-8:10 is changed to 8:30-8:40, and according to the sequencing of time period, adjust the order of each entry in this time period distribution list, the time period distribution list after change is as shown in table 6 below.
Table 6
Terminal iidentification Time period
A 8:10-8:20
C 8:20-8:30
B 8:30-8:40
In addition, in actual applications, terminal can the scene interface that provides of display server, when this server is the terminal distribution time period, this terminal can also in this scene interface display suppression distribution options, this cancellation distribution options is used to indicate deleted as time period of this terminal distribution.So, when user wishes no longer to perform assigned operation, this cancellation distribution options can be clicked, when this terminal detects the clicking operation to cancellation distribution options, send to cancel to this server and distribute request, this cancellation allocation request packet draws together this terminal iidentification, when this server receives this cancellation distribution request, deletes the time period that this terminal iidentification is corresponding.
Particularly, this server is deleted time period corresponding to this terminal iidentification and can be comprised the following steps (1) or (2):
(1) when this server receives this cancellation distribution request, the corresponding relation of this terminal iidentification is deleted, or, from time period distribution list, delete the entry that this terminal iidentification is corresponding.
Based on the citing of table 2, this server receives the cancellation distribution request that terminal B sends, and deletes the entry that this B is corresponding from time period distribution list.
(2) this server deletes entry corresponding to this terminal iidentification from time period distribution list, adjust the time period of each entry be positioned at after this entry, after making to adjust, in this time period distribution list, the time period of any two adjacent entries is continuous.
Based on the citing of table 3, this server receives the cancellation distribution request that terminal A sends, the entry that terminal A is corresponding is deleted from time period distribution list, and the time period of entry corresponding for terminal C is adjusted to 8:10-8:20 by 8:20-8:30, then the time period distribution list after deleting is as shown in table 7 below.
Table 7
Terminal iidentification Time period
B 8:00-8:10
C 8:10-8:20
The embodiment of the present invention is only described for a terminal, during practical application, for multiple terminal, when this server receives this cancellation distribution request, this cancellation allocation request packet draws together designated terminal mark, then this server deletes specified entry corresponding to this designated terminal mark, and adjusts the time period of each entry be positioned at after this specified entry, and after making to adjust, in this time period distribution list, the time period of any two adjacent entries is continuous.
It should be noted that, the time period that the embodiment of the present invention only sends this terminal corresponding for server to terminal is described, in actual applications, server can also to the distribution list of terminal transmitting time section, this terminal can be corresponding according to the terminal iidentification of this distribution list inquiry local terminal time period time period, the embodiment of the present invention does not limit this.
402, when this server detects that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction.
Wherein, this first clock refers to the clock that this server configures, and the time of this server indicated by this first clock, controls the assigned operation authority of each terminal.This server obtains the time point of this first clock instruction, and judge whether the time point that this first clock indicates arrives this start time point, when the time point of this first clock instruction arrives this start time point, open the assigned operation authority of this terminal, in subsequent process, when the time point of this first clock instruction arrives this end time point, this server closes the assigned operation authority of this terminal again.
During practical application, in the time of the first clock instruction on this server and this terminal, time of indicating of second clock may be inconsistent, the difference between both indicated times is known for the ease of this terminal, this server is when opening the assigned operation authority of this terminal, the timestamp of current point in time can be obtained, stab as this very first time, send this very first time stamp so that follow-up to this terminal.
When this server detects that the time point that this first clock indicates arrives this start time point, according to the time point of this first clock instruction, preset algorithm is adopted to obtain this very first time stamp.Particularly, this server calculates the total number of seconds in the time interval between the time point of this first clock instruction and Preset Time point, and character string corresponding to this total number of seconds is this very first time stamp.Wherein, when this Preset Time point can be 1970 01 month 01 day 00 Greenwich Mean Time 00 minute and 00 second, also can consult for this server and this terminal the time point determined, the embodiment of the present invention did not limit this.
Such as, when this server detects that the time point that this first clock indicates arrives this start time point, the time point obtaining the instruction of this first clock is 8:00:00 on August 1st, 2015, when Preset Time point is 1970 01 month 01 day 00 Greenwich Mean Time 00 minute and 00 second, both time intervals are 1438387200 seconds, then the very first time stamp obtained is 1438387200.
During practical application, this server can obtain the time point of this first clock instruction, call strtotime function, the time point that this first clock indicates is converted into very first time stamp, or this server can also, according to the time point of the first clock instruction, adopt UNIX_TIMESTAMP function to inquire about in MySQL database, obtain corresponding very first time stamp, the embodiment of the present invention does not limit the mode obtaining this very first time stamp.
403, this server opens message to this terminal sending permission, and this authority is opened message and at least comprised this very first time stamp.
Know the difference between this server and the current indicated time point of this terminal for the ease of this terminal, this server opens message to this terminal sending permission, and this authority is opened message and at least comprised this very first time stamp.
In addition, the end time that this authority unlatching message can also comprise for the time period of this terminal distribution puts or other information, and the embodiment of the present invention does not limit this.
404, when this terminal receives this authority unlatching message, the second timestamp of the time point of second clock instruction is obtained.
Wherein, this second clock refers to the clock of this terminal configuration, and the time point that this terminal indicates according to this second clock runs.When this terminal receive this authority open message time, according to the time point that this second clock indicates, obtain this second timestamp, this terminal obtains server in the process of this second timestamp and step 402, and to obtain the process that the very first time stabs similar, do not repeat them here.
Such as, when this terminal receives this authority unlatching message, the time point obtaining the instruction of this second clock is 8:02:00 on August 1st, 2015, then the second timestamp got is 1438387320.
405, this terminal is according to this very first time stamp, this second timestamp and this end time point, determines the stop time point of this assigned operation authority.
In order to determine the time point when server arrives this end time point indicated by this second clock, this terminal can be stabbed according to this very first time, this second timestamp and this end time point, determine the stop time point of this assigned operation authority, the time point of this second clock instruction when this stop time point refers to that the assigned operation authority of this terminal is closed.
Particularly, this terminal calculates the difference between this very first time stamp and this second timestamp, using this difference as the first numerical value, and calculates the difference between this end time point and this first numerical value, as this stop time point.
Such as, for the very first time stamp 1438387200 in step 402 and the second timestamp 1438387320 in step 404, the difference that this terminal calculates between this very first time stamp and this second timestamp is-120 seconds, this end time point is 8:10:00 on August 1st, 2015, calculate this end time point and the difference between-120 seconds, the stop time point obtained is 8:12:00 on August 1st, 2015.
It should be noted that, when the authority unlatching message that this server sends comprises this end time point, this terminal can be opened message from this authority and be obtained this end time point, or, when this server sends the time period of distributing to this terminal, this terminal can obtain the end time point in this time period, and stores this end time point.The embodiment of the present invention obtains the mode of end time point to this terminal and does not limit opportunity.
406, this terminal is according to this stop time point, shows the residual time length of this assigned operation authority.
This terminal obtains the time point of this second clock instruction, calculates the time interval between this time point got and this stop time point, obtains this residual time length, and show this residual time length.
During this terminal display residual time length, can show residual time length, or display is used to indicate the text prompt information of this residual time length, the embodiment of the present invention does not limit this.
Based on the citing of step 405, this terminal obtains the time point 8:07:00 on August 1st, 2015 of this second clock, calculate the time interval between stop time point 8:12:00 on August 1st, 2015, obtain residual time length 5 minutes, then this terminal display residual time length " 00:05:00 ", or, display text prompt information " your residual time length is 5 minutes ".
During practical application, this terminal can when determining stop time point, according to time point and this stop time point of the current instruction of this second clock, calculate residual time length, and show this residual time length, in subsequent process, As time goes on, this terminal can reduce this residual time length accordingly, and shows the residual time length after reducing.
Particularly, the residual time length of current presentation every the second preset duration, can be reduced this second preset duration by this terminal, obtains the residual time length after upgrading, and shows the residual time length after this renewal.Wherein, this second preset duration can be 1 second or 1 minute, and specifically can determine according to the demand of countdown accuracy, the embodiment of the present invention does not limit this.
Or, this terminal can show residual time length and show option, when detecting that user clicks the operation of residual time length displaying option, obtain the time point of the current instruction of this second clock, according to time point and this stop time point of the current instruction of this second clock, obtain current residual time length, and show current residual time length.
407, when this server detects that the time point that this first clock indicates arrives this end time point, the assigned operation authority of this terminal is closed.
When this server detects that the time point that this first clock indicates arrives this end time point, this terminal also can detect that the time point that this second clock indicates arrives this stop time point, now, the assigned operation authority of this this terminal of server closing, and the residual time length that this terminal is shown is 0 just, ensure that the residual time length of this terminal display is consistent with the real surplus duration of the assigned operation authority of terminal.
The embodiment of the present invention can be applied under multiple terminal carries out live scene in turn in same channel, and server provides channel for multiple user, and this channel can be live audio room, net cast room etc., and the embodiment of the present invention does not limit this.
This server can open the automatic row wheat pattern of channel, and now, multiple user can go up wheat in turn, carries out live in channel.This server determined the upper wheat time period of each user, and on this, the wheat time period comprises wheat time point and lower wheat time point, and rise time section distribution list, control the upper wheat of user and lower wheat according to this time period distribution list.
For each user in channel, when this server detects that the time point of the current instruction of the clock of this server arrives the upper wheat time point of user, arrange the upper wheat of this user, and obtain the very first time stamp of the time point of current instruction, the terminal to this user sends this very first time stamp.As, server can pass through the mode of socket (socket), and this very first time stamp is broadcast to this terminal.
When this terminal receives this very first time stamp, obtain the second timestamp of the time point of the current instruction of terminal clock, and this very first time stamp and this second timestamp are contrasted, thus calculate correct lower wheat time point, lower wheat time point according to calculating carries out countdown, and to guarantee that user descends wheat with in terminal in service end after identical live duration, and terminal can show correct countdown to user, avoid occurring that error appears in user's countdown, improve Consumer's Experience.
See Fig. 4 B, under live scene, the method can comprise the following steps:
(1) the live time period of server determination terminal A is the live time period of 8:00-8:10, terminal B is 8:10-8:20.When the time point that this server detects the first clock instruction is 8:00, open the live authority of terminal A, the user of terminal A starts to carry out live.Now, the very first time stamp that this server gets 8:00 corresponding is 1438387200, sends live authority open message to this terminal A, and this live authority is opened message and at least comprised this very first time stamp.
(2) when this terminal A receives this live authority unlatching message, detect that the time point that second clock indicates is 8:02, then get the second timestamp 1438387320 that 8:02 is corresponding.This terminal A is according to very first time stamp the 1438387200, second timestamp 1438387320 and some 8:10 of live end time, calculating stop time point is 8:12, the residual time length then calculated now is 10 minutes, and terminal A shows " also having 10 minutes apart from live end ".As time goes on follow-up, if the time point of the current instruction of second clock is 8:10, then the residual time length calculated now is 2 minutes, and terminal A shows " also having 2 minutes apart from live end ".
(3) As time goes on, when the time that this server detects the first clock instruction is 8:10, the live authority of the A that closes a terminal, open the live authority of terminal B, now, the user of terminal A stops live, and the user of terminal B starts to carry out live.Meanwhile, this terminal A determines that the time point that second clock indicates is 8:12, arrives this stop time point, then show " live end ".
In above process, when user triggers the adjustment operation of wheat time period on this or deletion action, this server can carry out live while, asynchronously the upper wheat time period of user was adjusted or deleted, reset time period list, improve systematic function, enhance Consumer's Experience speed.
The method that the embodiment of the present invention provides, the time period of terminal distribution is defined as by server, this time period comprises start time point and end time point, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction, message is opened to this terminal sending permission, this terminal receives this authority and opens message, obtain the second timestamp of the time point of second clock instruction, stab according to this very first time, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this terminal and the clock of server indicate, by according to very first time stamp corresponding to the first clock of server and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this server distributes, ensure that the stop time point of terminal and the end time point of server are same real time point, thus ensure that the residual time length of this terminal display is consistent with the residual time length of the assigned operation authority reality of this terminal, avoid countdown to occur error.
Fig. 5 is the structural representation of a kind of residual time length exhibiting device that the embodiment of the present invention provides, and see Fig. 5, this device comprises:
Time period determination module 501, for being defined as the time period of terminal distribution, this time period comprises start time point and end time point, and this time period refers to time period of assigned operation authority of opening this terminal;
Authority opening module 502, for when detecting that the time point of the first clock instruction arrives this start time point, opens the assigned operation authority of this terminal;
Very first time stamp acquisition module 503, for obtaining the very first time stamp of the time point of this first clock instruction;
Sending module 504, for opening message to this terminal sending permission, this authority is opened message and is at least comprised this very first time stamp, make when this terminal receives this authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of this assigned operation authority according to this very first time stamp, this second timestamp and this end time point, show the residual time length of this assigned operation authority according to this stop time point.
The device that the embodiment of the present invention provides, by being defined as the time period of terminal distribution, this time period comprises start time point and end time point, when detecting that the time point of the first clock instruction arrives this start time point, open the assigned operation authority of this terminal, and obtain the very first time stamp of the time point of this first clock instruction, message is opened to this terminal sending permission, make this terminal receive this authority and open message, obtain the second timestamp of the time point of second clock instruction, stab according to this very first time, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this terminal and the clock of this device indicate, by according to very first time stamp corresponding to the first clock of this device and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this this device distributes, ensure that the stop time point of terminal and the end time point of this device are same real time point, thus ensure that the residual time length of this terminal display is consistent with the residual time length of the assigned operation authority reality of this terminal, avoid countdown to occur error.
Alternatively, this device also comprises:
Authority closing module, during for arriving this end time point when the time point detecting that this first clock indicates, closes the assigned operation authority of this terminal.
Alternatively, this time period determination module 501 is also for being this terminal distribution first time period; Send this first time period to this terminal, make this first time period of this terminal display; When receiving the time period adjustment request that this terminal sends, according to last time period in multiple time periods of having distributed, it is this terminal distribution second time period, after last time period that this second time period is arranged in the plurality of time period; Send this second time period to this terminal, make this second time period of this terminal display.
Alternatively, this device also comprises:
Corresponding relation building module, for setting up the corresponding relation between terminal iidentification and this time period.
Alternatively, this device also comprises:
List Generating Module, be the sequencing of the time period of each terminal distribution for basis, rise time section distribution list, this time period distribution list comprises multiple entry, each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
Alternatively, this device also comprises:
Receiver module, distribute request for receiving to cancel, this cancellation allocation request packet draws together designated terminal mark;
Removing module, for deleting specified entry corresponding to this designated terminal mark from this time period distribution list;
Adjusting module, for adjusting the time period of each entry be positioned at after this specified entry, after making to adjust, in this time period distribution list, the time period of any two adjacent entries is continuous.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 6 is the structural representation of a kind of residual time length exhibiting device that the embodiment of the present invention provides, and see Fig. 6, this device comprises:
Receiver module 601, the authority sent for reception server opens message, and this authority opens the very first time stamp that message at least comprises the time point of the first clock instruction;
Second timestamp acquisition module 602, for obtaining the second timestamp of the time point of second clock instruction;
Stop time point acquisition module 603, for according to this very first time stamp, this second timestamp and for local terminal distribution end time point, determine the stop time point of this assigned operation authority, this end time point refers to the time point of this server closing local terminal assigned operation authority;
First display module 604, for according to this stop time point, shows the residual time length of this assigned operation authority.
The device that the embodiment of the present invention provides, message is opened by receiving this authority, obtain the second timestamp of the time point of second clock instruction, according to this very first time stamp, this second timestamp and the end time point for local terminal distribution, determine the stop time point of this assigned operation authority, according to this stop time point, show the residual time length of this assigned operation authority.During the Time Inconsistency that the time of clock instruction of this device and the clock of server indicate, by according to very first time stamp corresponding to the first clock of server and the second timestamp corresponding to the second clock of terminal, determine the stop time point of end time point correspondence in terminal that this server distributes, ensure that the stop time point of terminal and the end time point of server are same real time point, thus ensure that the residual time length that this device is shown is consistent with the residual time length of the assigned operation authority reality of this device, avoid countdown to occur error.
Alternatively, this stop time point acquisition module 603 also for calculate this very first time stamp with this second timestamp between difference, as the first numerical value; Calculate the difference between this end time point and this first numerical value, as this stop time point.
Alternatively, this first display module 604 is also for obtaining the time point of this second clock instruction; Calculate the time interval between this time point got and this stop time point, obtain this residual time length; Show this residual time length.
Alternatively, this device also comprises:
This receiver module 601, also for receiving the first time period that this server sends, this time period comprises start time point and end time point;
Second display module, for showing this first time period.
Alternatively, this second display module is also for when the clicking operation to time period adjustment option being detected, to this server transmitting time section adjustment request, make this server according to last time period in multiple time periods of having distributed, for this local terminal distributed for the second time period, after last time period that this second time period is arranged in the plurality of time period; When receiving this second time period that this server sends, show this second time period.
Alternatively, this device also comprises:
Sending module, for when the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, this cancellation allocation request packet draws together terminal iidentification, makes this server delete entry corresponding to this terminal iidentification from the time period distribution list generated.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
It should be noted that: the residual time length exhibiting device that above-described embodiment provides is when showing residual time length, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the residual time length exhibiting device that above-described embodiment provides and residual time length methods of exhibiting embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Fig. 7 is the structural representation of a kind of server that the embodiment of the present invention provides, this server 700 can produce larger difference because of configuration or performance difference, one or more central processing units (centralprocessingunits can be comprised, CPU) 722 (such as, one or more processors) and memory 732, one or more store the storage medium 730 (such as one or more mass memory units) of application program 742 or data 744.Wherein, memory 732 and storage medium 730 can be of short duration storages or store lastingly.The program being stored in storage medium 730 can comprise one or more modules (diagram does not mark), and each module can comprise a series of command operatings in server.Further, central processing unit 722 can be set to communicate with storage medium 730, and server 700 performs a series of command operatings in storage medium 730.
Server 700 can also comprise one or more power supplys 726, one or more wired or wireless network interfaces 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or more operating system 741, such as WindowsServer tM, MacOSX tM, Unix tM, Linux tM, FreeBSD tMetc..
Fig. 8 is the structural representation of a kind of terminal that the embodiment of the present invention provides.This terminal may be used for implementing the function in the residual time length methods of exhibiting shown by above-described embodiment performed by terminal.Specifically:
Terminal 800 can comprise RF (RadioFrequency, radio frequency) circuit 110, the memory 120 including one or more computer-readable recording mediums, input unit 130, display unit 140, transducer 150, voicefrequency circuit 160, transport module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 8, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low noise amplifier), duplexer etc.In addition, RF circuit 110 can also be communicated with other-end with network by radio communication.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, code division multiple access), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Memory 120 can be used for storing software program and module, software program corresponding to terminal shown by above-mentioned exemplary embodiment and module, processor 180 is stored in software program and the module of memory 120 by running, thus perform the application of various function and data processing, as mutual etc. in what realize based on video.Memory 120 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 800.In addition, memory 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also comprise Memory Controller, to provide the access of processor 180 and input unit 130 pairs of memories 120.
Input unit 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, input unit 130 can comprise Touch sensitive surface 131 and other input terminals 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding linked set according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input unit 130 can also comprise other input terminals 132.Particularly, other input terminals 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 800 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display floater 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display floater 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in fig. 8, Touch sensitive surface 131 and display floater 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display floater 141 integrated and realize input and output function.
Terminal 800 also can comprise at least one transducer 150, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 141, proximity transducer when terminal 800 moves in one's ear, can cut out display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 800 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 800.Voicefrequency circuit 160 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 161, by loud speaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to memory 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 800.
By transport module 170, terminal 800 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless or wired for user provides is accessed.Although Fig. 8 shows transport module 170, be understandable that, it does not belong to must forming of terminal 800, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centres of terminal 800, various interface and circuit is utilized to link the various piece of whole mobile phone, software program in memory 120 and/or module is stored in by running or performing, and call the data be stored in memory 120, perform various function and the deal with data of terminal 800, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 800 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 800 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in embodiments of the present invention, the display unit of terminal is touch-screen display, terminal also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to be contained for implementing the instruction operated performed by terminal in above-described embodiment by more than one or one above-mentioned more than one or one program package of processor execution.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (24)

1. a residual time length methods of exhibiting, is characterized in that, described method comprises:
Be defined as the time period of terminal distribution, the described time period comprises start time point and end time point, and the described time period refers to time period of the assigned operation authority of opening described terminal;
When detecting that the time point of the first clock instruction arrives described start time point, open the assigned operation authority of described terminal, and obtain the very first time stamp of the time point of described first clock instruction;
Message is opened to described terminal sending permission, described authority is opened message and is at least comprised stamp of the described very first time, make when described terminal receives described authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of described assigned operation authority according to described very first time stamp, described second timestamp and point of described end time, show the residual time length of described assigned operation authority according to described stop time point.
2. method according to claim 1, is characterized in that, described after terminal sending permission unlatching message, described method also comprises:
When detecting that the time point of described first clock instruction arrives point of described end time, close the assigned operation authority of described terminal.
3. method according to claim 1, is characterized in that, described in be defined as time period of terminal distribution, comprising:
For described terminal distribution first time period;
Send described first time period to described terminal, make first time period described in described terminal display;
When receiving the time period adjustment request that described terminal sends, according to last time period in multiple time periods of having distributed, for described terminal distribution second time period, after described second time period is arranged in last time period of described multiple time period;
Send described second time period to described terminal, make the second time period described in described terminal display.
4. method according to claim 1, is characterized in that, described in be defined as terminal distribution time period after, described method also comprises:
Set up the corresponding relation between terminal iidentification and described time period.
5. method according to claim 1, is characterized in that, described method also comprises:
According to the sequencing of the time period for each terminal distribution, rise time section distribution list, described time period distribution list comprises multiple entry, and each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
6. method according to claim 5, is characterized in that, described basis is the sequencing of the time period of each terminal distribution, and after rise time section distribution list, described method also comprises:
Receive to cancel and distribute request, described cancellation allocation request packet draws together designated terminal mark;
The specified entry that described designated terminal mark is corresponding is deleted from described time period distribution list;
Adjust the time period of each entry be positioned at after described specified entry, after making to adjust, in described time period distribution list, the time period of any two adjacent entries is continuous.
7. a residual time length methods of exhibiting, is characterized in that, described method comprises:
The authority that reception server sends opens message, and described authority opens the very first time stamp that message at least comprises the time point of the first clock instruction;
Obtain the second timestamp of the time point of second clock instruction;
According to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determine the stop time point of described assigned operation authority, described end time point refers to the time point of described server closing local terminal assigned operation authority;
According to described stop time point, show the residual time length of described assigned operation authority.
8. method according to claim 7, is characterized in that, described according to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determines the stop time point of described assigned operation authority, comprising:
Calculate the difference between stamp of the described very first time and described second timestamp, as the first numerical value;
Calculate the difference between point of described end time and described first numerical value, as described stop time point.
9. method according to claim 7, is characterized in that, described according to described stop time point, shows the residual time length of described assigned operation authority, comprising:
Obtain the time point of described second clock instruction;
In the time interval between the time point got described in calculating and described stop time point, obtain described residual time length;
Show described residual time length.
10. method according to claim 7, is characterized in that, described method also comprises:
Receive the first time period that described server sends, the described time period comprises start time point and end time point;
Show described first time period.
11. methods according to claim 10, is characterized in that, after the described first time period of described displaying, described method also comprises:
When the clicking operation to time period adjustment option being detected, to described server transmitting time section adjustment request, make described server according to last time period in multiple time periods of having distributed, for described local terminal distributed for the second time period, after described second time period is arranged in last time period of described multiple time period;
When receiving described second time period that described server sends, show described second time period.
12. methods according to claim 7, is characterized in that, described method also comprises:
When the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, described cancellation allocation request packet draws together terminal iidentification, makes described server delete entry corresponding to described terminal iidentification from the time period distribution list of generation.
13. 1 kinds of residual time length exhibiting devices, is characterized in that, described device comprises:
Time period determination module, for being defined as the time period of terminal distribution, the described time period comprises start time point and end time point, and the described time period refers to time period of the assigned operation authority of opening described terminal;
Authority opening module, for when detecting that the time point of the first clock instruction arrives described start time point, opens the assigned operation authority of described terminal;
Very first time stamp acquisition module, for when detecting that the time point of the first clock instruction arrives described start time point, obtains the very first time stamp of the time point of described first clock instruction;
Sending module, for opening message to described terminal sending permission, described authority is opened message and is at least comprised stamp of the described very first time, make when described terminal receives described authority unlatching message, obtain the second timestamp of the time point of second clock instruction, determine the stop time point of described assigned operation authority according to described very first time stamp, described second timestamp and point of described end time, show the residual time length of described assigned operation authority according to described stop time point.
14. devices according to claim 13, is characterized in that, described device also comprises:
Authority closing module, for when detecting that the time point of described first clock instruction arrives point of described end time, closes the assigned operation authority of described terminal.
15. devices according to claim 13, is characterized in that, described time period determination module is also for being described terminal distribution first time period; Send described first time period to described terminal, make first time period described in described terminal display; When receiving the time period adjustment request that described terminal sends, according to last time period in multiple time periods of having distributed, for described terminal distribution second time period, after described second time period is arranged in last time period of described multiple time period; Send described second time period to described terminal, make the second time period described in described terminal display.
16. devices according to claim 13, is characterized in that, described device also comprises:
Corresponding relation building module, for setting up the corresponding relation between terminal iidentification and described time period.
17. devices according to claim 13, is characterized in that, described device also comprises:
List Generating Module, be the sequencing of the time period of each terminal distribution for basis, rise time section distribution list, described time period distribution list comprises multiple entry, each entry comprises corresponding terminal iidentification and time period, and the time period of any two adjacent entries is continuous.
18. devices according to claim 17, is characterized in that, described device also comprises:
Receiver module, distribute request for receiving to cancel, described cancellation allocation request packet draws together designated terminal mark;
Removing module, for deleting specified entry corresponding to described designated terminal mark from described time period distribution list;
Adjusting module, for adjusting the time period of each entry be positioned at after described specified entry, after making to adjust, in described time period distribution list, the time period of any two adjacent entries is continuous.
19. 1 kinds of residual time length exhibiting devices, is characterized in that, described device comprises:
Receiver module, the authority sent for reception server opens message, and described authority opens the very first time stamp that message at least comprises the time point of the first clock instruction;
Second timestamp acquisition module, for when receiving described authority and opening message, obtains the second timestamp of the time point of second clock instruction;
Stop time point acquisition module, for according to described very first time stamp, described second timestamp and the end time point for local terminal distribution, determine the stop time point of described assigned operation authority, described end time point refers to the time point of described server closing local terminal assigned operation authority;
First display module, for according to described stop time point, shows the residual time length of described assigned operation authority.
20. devices according to claim 19, is characterized in that, described stop time point acquisition module also for calculate the described very first time stamp with described second timestamp between difference, as the first numerical value; Calculate the difference between point of described end time and described first numerical value, as described stop time point.
21. devices according to claim 19, is characterized in that, described first display module is also for obtaining the time point of described second clock instruction; In the time interval between the time point got described in calculating and described stop time point, obtain described residual time length; Show described residual time length.
22. devices according to claim 19, is characterized in that, described device also comprises:
Described receiver module, also for receiving the first time period that described server sends, the described time period comprises start time point and end time point;
Second display module, for showing described first time period.
23. devices according to claim 22, it is characterized in that, described second display module is also for when the clicking operation to time period adjustment option being detected, to described server transmitting time section adjustment request, make described server according to last time period in multiple time periods of having distributed, for described local terminal distributed for the second time period, after described second time period is arranged in last time period of described multiple time period; When receiving described second time period that described server sends, show described second time period.
24. devices according to claim 19, is characterized in that, described device also comprises:
Sending module, for when the clicking operation to cancellation distribution options being detected, send to cancel to server and distribute request, described cancellation allocation request packet draws together terminal iidentification, makes described server delete entry corresponding to described terminal iidentification from the time period distribution list generated.
CN201510532642.0A 2015-08-25 2015-08-25 Residual time length methods of exhibiting and device Active CN105141458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510532642.0A CN105141458B (en) 2015-08-25 2015-08-25 Residual time length methods of exhibiting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510532642.0A CN105141458B (en) 2015-08-25 2015-08-25 Residual time length methods of exhibiting and device

Publications (2)

Publication Number Publication Date
CN105141458A true CN105141458A (en) 2015-12-09
CN105141458B CN105141458B (en) 2018-09-11

Family

ID=54726676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510532642.0A Active CN105141458B (en) 2015-08-25 2015-08-25 Residual time length methods of exhibiting and device

Country Status (1)

Country Link
CN (1) CN105141458B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980632A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The method and apparatus for obtaining data
CN107896334A (en) * 2017-11-30 2018-04-10 广州酷狗计算机科技有限公司 Carry out live method and apparatus
CN110389793A (en) * 2019-07-19 2019-10-29 北京字节跳动网络技术有限公司 A kind of methods of exhibiting of control, device, equipment and storage medium
CN111159612A (en) * 2019-12-27 2020-05-15 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
CN112948071A (en) * 2021-01-26 2021-06-11 北京达佳互联信息技术有限公司 Method, device, equipment, storage medium and program product for processing time information
WO2022089432A1 (en) * 2020-10-27 2022-05-05 百果园技术(新加坡)有限公司 Live streaming queuing method and apparatus, server and storage medium
WO2024021913A1 (en) * 2022-07-29 2024-02-01 北京字跳网络技术有限公司 Information display method and apparatus, device, computer-readable storage medium and product
CN111159612B (en) * 2019-12-27 2024-04-19 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
WO2010145410A1 (en) * 2009-06-19 2010-12-23 腾讯科技(深圳)有限公司 Method and device for synchronizing time of network games
CN103220120A (en) * 2012-01-20 2013-07-24 腾讯科技(深圳)有限公司 Time synchronizing method of mobile terminal, mobile terminal and time synchronizing system
US8838776B2 (en) * 2007-09-26 2014-09-16 Vega Grieshaber Kg Method for the automatic time synchronisation of devices in network-based systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
US8838776B2 (en) * 2007-09-26 2014-09-16 Vega Grieshaber Kg Method for the automatic time synchronisation of devices in network-based systems
WO2010145410A1 (en) * 2009-06-19 2010-12-23 腾讯科技(深圳)有限公司 Method and device for synchronizing time of network games
CN103220120A (en) * 2012-01-20 2013-07-24 腾讯科技(深圳)有限公司 Time synchronizing method of mobile terminal, mobile terminal and time synchronizing system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980632A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The method and apparatus for obtaining data
CN107896334A (en) * 2017-11-30 2018-04-10 广州酷狗计算机科技有限公司 Carry out live method and apparatus
CN107896334B (en) * 2017-11-30 2019-12-10 广州酷狗计算机科技有限公司 live broadcast method and device
CN110389793A (en) * 2019-07-19 2019-10-29 北京字节跳动网络技术有限公司 A kind of methods of exhibiting of control, device, equipment and storage medium
CN111159612A (en) * 2019-12-27 2020-05-15 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
CN111159612B (en) * 2019-12-27 2024-04-19 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
WO2022089432A1 (en) * 2020-10-27 2022-05-05 百果园技术(新加坡)有限公司 Live streaming queuing method and apparatus, server and storage medium
CN112948071A (en) * 2021-01-26 2021-06-11 北京达佳互联信息技术有限公司 Method, device, equipment, storage medium and program product for processing time information
WO2024021913A1 (en) * 2022-07-29 2024-02-01 北京字跳网络技术有限公司 Information display method and apparatus, device, computer-readable storage medium and product

Also Published As

Publication number Publication date
CN105141458B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN105490919B (en) Message cancelling method and device
CN105141458A (en) Remaining duration showing method and device
CN105119806B (en) message updating method and device
CN104618440A (en) Intelligent equipment control method and device
CN104980455B (en) A kind of multiple terminals method of data synchronization based on cloud storage, device and system
CN104850434A (en) Method and apparatus for downloading multimedia resources
CN104965721A (en) Method and apparatus for updating an application
CN105005457A (en) Geographical location display method and apparatus
CN104135502B (en) A kind of method, relevant device and system realizing application message and remind
CN104883610A (en) Patch video playing method and device
CN106714274B (en) access point connection method and device
CN106161176A (en) Cluster conversation message treatment method and device
CN104992342A (en) Method for determining the effectiveness of popularizing information release, monitoring server, and terminal
CN104618873A (en) Method and device for sharing access point information
CN106411448A (en) Play control method and device, and terminal
CN106453597B (en) The method of adjustment of data synchronizing cycles, apparatus and system
CN105224556A (en) Waterfall stream interface display packing and device
CN104954159A (en) Network information statistics method and device
CN104424211A (en) Microblog-based service data release method, device and system
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud
CN104135504B (en) A kind of service providing method, Apparatus and system based on application
CN105550316A (en) Pushing method and device of audio list
CN104253870A (en) Method and device for controlling data access period
CN104573437A (en) Information authentication method, device and terminal
CN103561155B (en) Send the method for note, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant