CN105141458B - Residual time length methods of exhibiting and device - Google Patents
Residual time length methods of exhibiting and device Download PDFInfo
- Publication number
- CN105141458B CN105141458B CN201510532642.0A CN201510532642A CN105141458B CN 105141458 B CN105141458 B CN 105141458B CN 201510532642 A CN201510532642 A CN 201510532642A CN 105141458 B CN105141458 B CN 105141458B
- Authority
- CN
- China
- Prior art keywords
- period
- time point
- terminal
- time
- server
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of residual time length methods of exhibiting and devices, belong to network technique field.The method includes:Server is determined as the period of terminal distribution, when detecting that the time point of the first clock instruction reaches start time point, open the specified operating right of terminal, and obtain the first time stamp at the time point of the first clock instruction, message is opened to terminal sending permission, so that terminal receives permission and opens message, obtain second timestamp at the time point of second clock instruction, it is stabbed according to first time, second timestamp and the end time point distributed for local terminal, determine the stop time point of specified operating right, according to stop time point, the residual time length of operating right is specified in displaying.The present invention corresponding stop time point in terminal by the end time point of determining server distribution, the end time point of the stop time point and server that ensure terminal is same real time point, to ensure that the consistency of residual time length, countdown is avoided error occur.
Description
Technical field
The present invention relates to network technique fields, more particularly to residual time length methods of exhibiting and device.
Background technology
With the continuous extension of server capability, terminal can execute various operations by server, and with
Intelligent terminal is popularized, and the terminal that operation is executed by server is also more and more.For the ease of being managed to multiple terminals,
Server, which can be each terminal distribution, allows it to execute the period of operation, and according to the corresponding period, being executed to terminal should
The permission of operation is controlled.
It by taking the scene being broadcast live in channel as an example, is broadcast live, services in turn for the ease of multiple users in channel
Device is that each user distributes the different live streaming periods, which includes corresponding start time point and end time
Point.When the server detects that the time point of clock instruction reaches the start time point of a certain user, the straight of the user is opened
Permission is broadcast, which can be broadcast live in channel, when the server detects that the time point of clock instruction reaches the user
End time point when, close the live streaming permission of the user, then the user stop live streaming.In addition, the server can also be advance
The live streaming period is sent to the terminal of user, then during user is broadcast live, which can pushing away with the time
It is moved into row countdown, i.e., between the time between the calculating clock time point currently indicated and the end time point of the live streaming period
Every as current remaining live streaming duration, and showing residue live streaming duration.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:The clock of the terminal
When the Time Inconsistency that the clock of time of instruction and the server indicates, can cause the remaining live streaming duration of the terminal display with
The real surplus live streaming duration of user is inconsistent, and error occurs in countdown.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of residual time length methods of exhibiting and devices.
The technical solution is as follows:
In a first aspect, a kind of residual time length methods of exhibiting is provided, the method includes:
It is determined as the period of terminal distribution, the period includes start time point and end time point, the time
Section refers to the period for the specified operating right for opening the terminal;
When detecting that the time point of the first clock instruction reaches the start time point, the specified behaviour of the terminal is opened
Make permission, and obtains the first time stamp at the time point of the first clock instruction;
Message is opened to the terminal sending permission, the permission is opened message and stabbed including at least the first time, made
When the proper terminal receives the permission unlatching message, second timestamp at the time point of second clock instruction, root are obtained
When determining the cut-off of the specified operating right according to first time stamp, second timestamp and end time point
Between point, the residual time length of the specified operating right is shown according to the stop time point.
Optionally, the method further includes:
When detecting that the time point of the first clock instruction reaches the end time point, the finger of the terminal is closed
Determine operating right.
Optionally, the period for being determined as terminal distribution, including:
For the terminal distribution first time period;
The first time period is sent to the terminal so that first time period described in the terminal display;
When receiving the period adjust request that the terminal is sent, according to last in allocated multiple periods
One period is the terminal distribution second time period, and the second time period is located at last in the multiple period
After one period;
The second time period is sent to the terminal so that second time period described in the terminal display.
Optionally, the method further includes:
Establish the correspondence between terminal iidentification and the period.
Optionally, the method further includes:
According to the sequencing of the period for each terminal distribution, generated time section distribution list, the period point
Include multiple entries with list, each entry includes corresponding terminal iidentification and period, any two adjacent strip object times
Duan Lianxu.
Optionally, the method further includes:
It receives and cancels distribution request, the cancellation distribution request includes designated terminal mark;
The designated terminal is deleted from the period distribution list identifies corresponding specified entry;
The period of each entry after the specified entry is adjusted so that the time after adjustment
The period of any two adjacent entries is continuous in section distribution list.
Second aspect provides a kind of residual time length methods of exhibiting, the method includes:
Receive the permission that server is sent and open message, the permission open message include at least the instruction of the first clock when
Between put first time stamp;
Obtain second timestamp at the time point of second clock instruction;
According to the first time stamp, second timestamp and for local terminal distribution end time point, determine described in
The stop time point of specified operating right, the end time point refer to the server closing local terminal specify operating right when
Between point;
According to the stop time point, the residual time length of the specified operating right is shown.
Optionally, described according to first time stamp, second timestamp and the end time distributed for local terminal
Point determines the stop time point of the specified operating right, including:
The difference between the first time stamp and second timestamp is calculated, as the first numerical value;
The difference between the end time point and first numerical value is calculated, as the stop time point.
Optionally, described that the residual time length of the specified operating right is shown according to the stop time point, including:
Obtain the time point of the second clock instruction;
Time interval between the time point got described in calculating and the stop time point, when obtaining the residue
It is long;
Show the residual time length.
Optionally, the method further includes:
The first time period that the server is sent is received, the period includes start time point and end time point;
Show the first time period.
Optionally, the method further includes:
When detect the clicking operation of option is adjusted to the period when, to the server sending time section adjust request,
So that the server distributed for the second time according to the last one period in allocated multiple periods, for the local terminal
Section, the second time period were located at after the last one period in the multiple period;
When receiving the second time period that the server is sent, the second time period is shown.
Optionally, the method further includes:
When detecting the clicking operation to cancelling distribution options, is sent to server and cancel distribution request, the cancellation
Distribution request includes terminal iidentification so that the server deletes the terminal iidentification pair from the period distribution list of generation
The entry answered.
The third aspect, provides a kind of residual time length displaying device, and described device includes:
Period determining module, the period for being determined as terminal distribution, the period include start time point and
End time point, the period refer to the period for the specified operating right for opening the terminal;
Permission opening module, for when detecting that the time point of the first clock instruction reaches the start time point, opening
Open the specified operating right of the terminal;
Stamp acquisition module at the first time, the first time stamp at the time point for obtaining the first clock instruction;
Sending module, for opening message to the terminal sending permission, the permission opens message including at least described
It stabs at the first time so that when the terminal, which receives the permission, opens message, obtain the time point of second clock instruction
Second timestamp determines the specified behaviour according to first time stamp, second timestamp and end time point
The stop time point for making permission shows the residual time length of the specified operating right according to the stop time point.
Optionally, described device further includes:
Permission closedown module, for when the time point arrival end time point for detecting the first clock instruction
When, close the specified operating right of the terminal.
Optionally, the period determining module is additionally operable to as the terminal distribution first time period;It is sent out to the terminal
Send the first time period so that first time period described in the terminal display;When the period for receiving the terminal transmission
It is the terminal distribution second time period according to the last one period in allocated multiple periods when adjust request,
The second time period was located at after the last one period in the multiple period;Described second is sent to the terminal
Period so that second time period described in the terminal display.
Optionally, described device further includes:
Corresponding relation building module, for establishing the correspondence between terminal iidentification and the period.
Optionally, described device further includes:
List Generating Module, for the sequencing according to the period for being each terminal distribution, generated time section distribution
List, the period distribution list include multiple entries, and each entry includes corresponding terminal iidentification and period, and wantonly two
The period of a adjacent entries is continuous.
Optionally, described device further includes:
Receiving module cancels distribution request for receiving, and the cancellation distribution request includes designated terminal mark;
Removing module identifies corresponding specified item for deleting the designated terminal from the period distribution list
Mesh;
Module is adjusted, is adjusted for the period to each entry after the specified entry so that is adjusted
The period of any two adjacent entries is continuous in the period distribution list after whole.
Fourth aspect, provides a kind of residual time length displaying device, and described device includes:
Receiving module, the permission for receiving server transmission open message, and the permission opens message and includes at least the
The first time stamp at the time point of one clock instruction;
Second timestamp acquisition module, second timestamp at the time point for obtaining second clock instruction;
Stop time point acquisition module, for according to first time stamp, second timestamp and be local terminal point
The end time point matched determines the stop time point of the specified operating right, and the end time point refers to the server
Close the time point that local terminal specifies operating right;
First display module, for according to the stop time point, showing the residual time length of the specified operating right.
Optionally, the stop time point acquisition module is additionally operable to calculate the first time stamp and second timestamp
Between difference, as the first numerical value;The difference between the end time point and first numerical value is calculated, as described section
Only time point.
Optionally, first display module is additionally operable to obtain the time point of the second clock instruction;It is obtained described in calculating
Time interval between the time point got and the stop time point, obtains the residual time length;Show the residual time length.
Optionally, described device further includes:
The receiving module is additionally operable to receive the first time period that the server is sent, and the period includes starting
Time point and end time point;
Second display module, for showing the first time period.
Optionally, second display module is additionally operable to when detecting the clicking operation to period adjustment option, to
The server sending time section adjust request so that the server is according to the last one in allocated multiple periods
Period distributes second time period for the local terminal, and the second time period is located at the last one in the multiple period
After period;When receiving the second time period that the server is sent, the second time period is shown.
Optionally, described device further includes:
Sending module, for when detecting the clicking operation to cancelling distribution options, being sent to server and cancelling distribution
Request, the cancellation distribution request includes terminal iidentification so that the server is deleted from the period distribution list of generation
The corresponding entry of the terminal iidentification.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
Method and apparatus provided in an embodiment of the present invention are determined as the period of terminal distribution by server, the time
Section includes start time point and end time point, when detecting that the time point of the first clock instruction reaches the start time point,
The specified operating right of the terminal is opened, and obtains the first time stamp at the time point of first clock instruction, is sent out to the terminal
Permission is sent to open message, which receives the permission and opens message, obtains second timestamp at the time point of second clock instruction,
According to first time stamp, second timestamp and the end time point distributed for local terminal, the specified operating right is determined
Stop time point shows the residual time length of the specified operating right according to the stop time point.The terminal clock instruction when
Between indicated with the clock of server Time Inconsistency when, by the corresponding first time stamp of the first clock according to server and
Corresponding second timestamp of second clock of terminal determines end time point that the server is distributed corresponding section in terminal
The end time point at only time point, the stop time point and server that ensure terminal is same real time point, to ensure that
The residual time length of the terminal display is consistent with the actual residual time length of specified operating right of the terminal, and countdown is avoided to miss
Difference.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is a kind of structural schematic diagram of interactive system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of residual time length methods of exhibiting provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of residual time length methods of exhibiting provided in an embodiment of the present invention;
Fig. 4 A are a kind of flow charts of residual time length methods of exhibiting provided in an embodiment of the present invention;
Fig. 4 B are a kind of end time point provided in an embodiment of the present invention and stop time point schematic diagram;
Fig. 5 is a kind of structural schematic diagram of residual time length displaying device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of residual time length displaying device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of structural schematic diagram of interactive system provided in an embodiment of the present invention, as shown in Figure 1, the interactive system
Including:Terminal and server passes through network connection between the terminal and the server.
The server is used to be determined as the period of the terminal distribution, which includes start time point and end time
Point, which refers to the period for the specified operating right for opening the terminal, when the time point for detecting the instruction of the first clock
When reaching the start time point, open the specified operating right of the terminal, and obtain first clock instruction time point the
One timestamp opens message to the terminal sending permission, which opens message and include at least the stamp at the first time.
The terminal opens message for receiving the permission, obtains second timestamp at the time point of second clock instruction, root
According to first time stamp, second timestamp and the end time point distributed for local terminal, cutting for the specified operating right is determined
Only time point shows the residual time length of the specified operating right according to the stop time point.
Fig. 2 is a kind of flow chart of residual time length methods of exhibiting provided in an embodiment of the present invention.The inventive embodiments are held
Row main body is server, and referring to Fig. 2, this method includes:
201, it is determined as the period of terminal distribution, which includes start time point and end time point, the time
Section refers to the period for the specified operating right for opening the terminal.
202, when detecting that the time point of the first clock instruction reaches the start time point, the specified behaviour of the terminal is opened
Make permission, and obtains the first time stamp at the time point of first clock instruction.
203, message is opened to the terminal sending permission, which opens message and include at least the stamp at the first time so that
When the terminal, which receives the permission, opens message, obtain second timestamp at the time point of second clock instruction, according to this
One timestamp, second timestamp and the end time point determine the stop time point of the specified operating right, according to this section
Only time point shows the residual time length of the specified operating right.
Method provided in an embodiment of the present invention, by being determined as the period of terminal distribution, when which includes starting
Between point and end time point, when detect the first clock instruction time point reach the start time point when, open the terminal
Specified operating right, and the first time stamp at the time point of first clock instruction is obtained, disappear to terminal sending permission unlatching
Breath so that the terminal receives the permission and opens message, obtains second timestamp at the time point of second clock instruction, according to this
One timestamp, second timestamp and the end time point for local terminal distribution determine the deadline of the specified operating right
Point shows the residual time length of the specified operating right according to the stop time point.The time of the clock instruction of the terminal and service
When the Time Inconsistency of the clock instruction of device, pass through the of the corresponding first time stamp of the first clock according to server and terminal
Corresponding second timestamp of two clocks determines end time point that the server the is distributed corresponding deadline in terminal
The end time point of point, the stop time point and server that ensure terminal is same real time point, to ensure that the terminal
The residual time length of displaying is consistent with the actual residual time length of specified operating right of the terminal, and countdown is avoided error occur.
Optionally, this method further includes:
When detecting that the time point of first clock instruction reaches the end time point, the specified operation of the terminal is closed
Permission.
Optionally, the period for being determined as terminal distribution, including:
For the terminal distribution first time period;
The first time period is sent to the terminal so that the terminal display first time period;
When receiving the period adjust request of terminal transmission, according to last in allocated multiple periods
A period, for the terminal distribution second time period, which is located at the last one time in multiple period
After section;
The second time period is sent to the terminal so that the terminal display second time period.
Optionally, after the period for being determined as terminal distribution, this method further includes:
Establish the correspondence between terminal iidentification and the period.
Optionally, this method further includes:
According to the sequencing of the period for each terminal distribution, generated time section distribution list, period distribution
List includes multiple entries, and each entry includes corresponding terminal iidentification and period, the period of any two adjacent entries
Continuously.
Optionally, this method further includes:
It receives and cancels distribution request, which includes designated terminal mark;
The designated terminal is deleted from the period distribution list identifies corresponding specified entry;
To being adjusted positioned at the period of each entry after specifying entry so that period point after adjustment
Period with any two adjacent entries in list is continuous.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
Fig. 3 is a kind of flow chart of residual time length methods of exhibiting provided in an embodiment of the present invention.The inventive embodiments are held
Row main body is terminal, and referring to Fig. 3, this method includes:
301, it receives the permission that server is sent and opens message, which opens message and include at least the instruction of the first clock
The first time at time point stabs.
302, second timestamp at the time point of second clock instruction is obtained.
303, according to first time stamp, second timestamp and the end time point distributed for local terminal, determine that this refers to
Determine the stop time point of operating right, which refers to the time point that the server closing local terminal specifies operating right.
304, according to the stop time point, the residual time length of the specified operating right is shown.
Method provided in an embodiment of the present invention opens message by receiving the permission, obtains the time of second clock instruction
Second timestamp of point, according to first time stamp, second timestamp and the end time point distributed for local terminal, determining should
The stop time point of specified operating right shows the residual time length of the specified operating right according to the stop time point.The terminal
Clock instruction time and server clock instruction Time Inconsistency when, by according to the first clock of server correspond to
First time stab corresponding with the second clock of terminal the second timestamp, determine that the end time point that the server is distributed exists
The end time point of corresponding stop time point in terminal, the stop time point and server that ensure terminal is the same real time
Point, the residual time length to ensure that the terminal display is consistent with the actual residual time length of specified operating right of the terminal, keeps away
Exempt from countdown and error occurs.
Optionally, this is determined according to first time stamp, second timestamp and the end time point distributed for local terminal
The stop time point of the specified operating right, including:
The difference between first time stamp and second timestamp is calculated, as the first numerical value;
The difference between the end time point and first numerical value is calculated, as the stop time point.
Optionally, this shows the residual time length of the specified operating right according to the stop time point, including:
Obtain the time point of second clock instruction;
The time interval between the time point got and the stop time point is calculated, the residual time length is obtained;
Show the residual time length.
Optionally, this method further includes:
The first time period of server transmission is received, which includes start time point and end time point;
Show the first time period.
Optionally, this method further includes:
When detecting the clicking operation to period adjustment option, to the server sending time section adjust request, make
The server is obtained according to the last one period in allocated multiple periods, second time period is distributed for the local terminal, it should
Second time period was located at after the last one period in multiple period;
When receiving the second time period of server transmission, the second time period is shown.
Optionally, this method further includes:
When detecting the clicking operation to cancelling distribution options, is sent to server and cancel distribution request, the cancellation point
Include terminal iidentification with request so that the server deletes the corresponding item of the terminal iidentification from the period distribution list of generation
Mesh.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
Fig. 4 A are a kind of flow charts of residual time length methods of exhibiting provided in an embodiment of the present invention.The friendship of the inventive embodiments
Mutual main body is terminal and server, and referring to Fig. 4 A, this method includes:
401, the server is determined as the period of terminal distribution, which includes start time point and end time
Point, the period refer to the period for the specified operating right for opening the terminal.
Wherein, which refers to the permission that terminal executes specified operation, specifies operating right to open at this
In the case of, which can execute the specified operation by server.The specified operation may include a plurality of types of operations, such as
The operation etc. of the operation, access the provided webpage of server that are broadcast live in the channel that server provides, the embodiment of the present invention
This is not limited.
Further, for different types of server, which can not by the specified operation performed by server
Together.For example, when the server is social networking application server, which may include by the specified operation that the server executes
The operation of issuing multimedia information, check good friend multimedia messages operation etc., correspondingly, which can wrap
Include the permission of issuing multimedia information, the permission etc. for the multimedia messages for checking good friend.And when the server takes for shopping at network
When business device, which may include that shopping operation, payment operation etc. correspondingly should by the specified operation that the server executes
Specified operating right may include shopping permission, payment permission etc..The embodiment of the present invention is to the server, the specified operation and is somebody's turn to do
The type of specified operating right does not limit.
It is managed for the ease of the specified operating right to terminal, which can be the terminal distribution period, should
Period refers to the period for the specified operating right that the server opens the terminal, which includes start time point and knot
Beam time point, the i.e. start time point refer to the time point that the server opens that terminal specifies operating right, the end time point
It refer to the time point that the server closing terminal specifies operating right.
For multiple and different terminals, which can be each terminal distribution period, according to the period of distribution,
The specified operating right of corresponding terminal is controlled.
Wherein, which can be the period that any two adjacent terminal distributions are continuous in multiple terminals, the clothes
Business device multiple terminals can be ranked up, be the previous terminal distribution period, using the end time of period point as
The start time point of next terminal, to be next terminal distribution period.For example, for terminal A and terminal B, the clothes
Business device is terminal A distribution times section 8:00-8:10, and by 8:10 start time point as terminal B is terminal B distribution times
Section 8:10-8:20.Alternatively, the server can also be randomly multiple terminal distribution period, the time of any two terminals
Section can be discontinuous.For example, for terminal A and terminal B, which is terminal A distribution times section 8:00-8:10, it is terminal B
The period 8 of distribution:15-8:25.
In addition, the server can be each terminal distribution period according to the first preset duration so that be counterpart terminal
The time segment length of distribution is equal to first preset duration.Wherein, it is used when which is the different terminal distribution periods
The first preset duration can be different, be 10 minutes as the server presets corresponding first preset durations of terminal A, terminal
Corresponding first preset durations of B are 15 minutes, then are terminal A distribution times section 8:00-8:10, it is terminal B distribution times section 8:
10-8:25.Alternatively, the first preset duration that the server uses when being the different terminal distribution periods can be identical, such as should
It is 10 minutes that server, which presets first preset duration, then is terminal A distribution times section 8:00-8:10, it is terminal B distribution
Period 8:10-8:20.
The server be the terminal distribution period after, terminal iidentification can be established and between the period of the terminal distribution
Correspondence, then in subsequent process, which can be determined as the period of the terminal distribution according to the correspondence.
For example, the server is terminal A distribution times section 8:20-8:30, then the correspondence established is as shown in table 1 below,
The period that can be determined as terminal A distribution according to the correspondence is 8:20-8:30.
Table 1
Terminal iidentification | Period |
A | 8:20-8:30 |
For multiple terminals, which can establish pair of each terminal iidentification and the period for corresponding terminal distribution
It should be related to.Further, when which establishes multiple correspondences, the form of list, storage can also be used multiple
Correspondence.I.e. the server can be with generated time section distribution list, which includes multiple entries, each
Entry includes corresponding terminal iidentification and period, then the server can be determined as each according to the period distribution list
The period of terminal distribution.
For example, the server is terminal A distribution times section 8:20-8:30, it is terminal B distribution times section 8:00-8:10, be
Terminal C distribution times section 8:30-8:40, then the period distribution list that the server generates is as shown in table 2 below, according to the time
Section distribution list, it may be determined that it is 8 that the server, which is the period of terminal A distribution,:20-8:30.
Table 2
Terminal iidentification | Period |
B | 8:00-8:10 |
A | 8:20-8:30 |
C | 8:30-8:40 |
Wherein, if the server is the period that any two adjacent terminal distributions are continuous in multiple terminals, the clothes
Being engaged in device can be according to the sequencing of the period for each terminal distribution, generated time section distribution list so that the period
The period of any two adjacent entries in distribution list is continuous.
For example, the server is terminal A distribution times section 8:10-8:20, it is terminal B distribution times section 8:00-8:10, be
Terminal C distribution times section 8:20-8:30, then the server according to institute's distribution time section sequencing generated time section allocated column
Table, the period distribution list are as shown in table 3 below.
Table 3
Terminal iidentification | Period |
B | 8:00-8:10 |
A | 8:10-8:20 |
C | 8:20-8:30 |
In practical application, for each terminal, which can be first one period of the terminal distribution, and to the end
End sends the period, and in subsequent process, user can trigger the operation of the adjustment to the period, the server can according to
The operation of family triggering, is adjusted the period.
It that is to say, which is the terminal distribution first time period, the first time period is sent to the terminal, when the end
When termination receives the period, the first time period is shown.And the terminal shows that the period adjusts option, period adjustment
Option is used to indicate the server and is adjusted to the period.
The user of the terminal can check the period, when user wishes that the server redistributes a period,
Period adjustment option can be clicked, when the terminal, which is detected, adjusts the clicking operation of option to the period, to the service
Device sending time section adjust request, when the server receives the period adjust request, for the terminal distribution and this first
Period different second time period, the second time period is sent to the terminal, when which receives the second time period, exhibition
Show the second time period.
Wherein, when which receives the period adjust request, can in remaining unappropriated multiple periods,
Choose second time period, and the corresponding first time period of the terminal iidentification be changed to second time period, to by this second when
Between section distribute to the terminal.
Specifically, when the correspondence of terminal iidentification has been established in the server, it is right this can be obtained according to terminal iidentification
It should be related to, and the first time period in the correspondence is changed to second time period.
Based on the citing of table 1, when the server receives the period adjust request, when remaining unappropriated multiple
Between second time period 8 is chosen in section:10-8:20, and the correspondence of terminal iidentification A is obtained, by 8 in the correspondence:20-
8:30 are changed to 8:10-8:20, the correspondence after change is as shown in table 4 below.
Table 4
Terminal iidentification | Period |
A | 8:10-8:20 |
Alternatively, when period distribution list has been established in the server, the period distribution list can be obtained, and according to
First time period in the terminal iidentification corresponding entry is changed to second time period by the terminal iidentification.
Based on the citing of table 2, when the server receives the period adjust request, when remaining unappropriated multiple
Between second time period 8 is chosen in section:10-8:20, and the period distribution list is obtained, it is obtained according to terminal iidentification B corresponding
Entry, by 8 in the entry:00-8:10 are changed to 8:10-8:20, the period distribution list after change is as shown in table 5 below.
Table 5
Terminal iidentification | Period |
B | 8:10-8:20 |
A | 8:20-8:30 |
C | 8:30-8:40 |
Further, if the server be any two adjacent terminal distributions period it is continuous, when the service
It, can be according to the last one period in allocated multiple periods, for this when device receives the period adjust request
Terminal distribution second time period, the second time period were located at after the last one period in multiple period.Optionally,
The second time period and the last one period in multiple period are continuous.
Based on the citing of table 3, when the server receives the period adjust request that terminal B is sent, according to the period
The last one period 8 in distribution list:20-8:30 choose second time period 8:30-8:40, by 8:00-8:10 are changed to
8:30-8:40, and according to the sequencing of period, the sequence of each entry in the period distribution list is adjusted, after change
Period distribution list it is as shown in table 6 below.
Table 6
Terminal iidentification | Period |
A | 8:10-8:20 |
C | 8:20-8:30 |
B | 8:30-8:40 |
In addition, in practical applications, the scene interface that terminal can be provided with display server is terminal point in the server
When with the period, which display suppression distribution options, the cancellation distribution options can also be used to indicate in the scene interface
Delete the period for the terminal distribution.So, when user wishes no longer to execute specified operation, cancellation distribution can be clicked
Option sends to the server when the terminal detects the clicking operation to cancelling distribution options and cancels distribution request, this takes
The distribution request that disappears includes the terminal iidentification, when the server receives the cancellation distribution request, deletes terminal iidentification correspondence
Period.
Specifically, which deletes the terminal iidentification corresponding period and may comprise steps of (1) or (2):
(1) when the server receives the cancellation distribution request, the correspondence of the terminal iidentification is deleted, alternatively, from
The corresponding entry of the terminal iidentification is deleted in period distribution list.
Based on the citing of table 2, which receives the cancellation distribution request that terminal B is sent, from period distribution list
The corresponding entries of middle deletion B.
(2) server deletes the corresponding entry of the terminal iidentification from period distribution list, to be located at the entry it
The period of each entry afterwards is adjusted so that after adjustment in the period distribution list any two adjacent entries when
Between section it is continuous.
Based on the citing of table 3, which receives the cancellation distribution request that terminal A is sent, from period distribution list
The corresponding entry of middle deletion terminal A, and by the period of the corresponding entries of terminal C by 8:20-8:30 are adjusted to 8:10-8:20,
Period distribution list after then deleting is as shown in table 7 below.
Table 7
Terminal iidentification | Period |
B | 8:00-8:10 |
C | 8:10-8:20 |
The embodiment of the present invention is only illustrated by taking a terminal as an example, when practical application, for multiple terminals, when the service
When device receives the cancellation distribution request, which includes designated terminal mark, then it is specified to delete this for the server
The corresponding specified entry of terminal iidentification, and to being adjusted positioned at the period of each entry after specifying entry so that
The period of any two adjacent entries is continuous in the period distribution list after adjustment.
It should be noted that the embodiment of the present invention terminal corresponding period is only sent to terminal by server for into
Row explanation, in practical applications, server can also can be according to the time to terminal sending time section distribution list, the terminal
The terminal iidentification corresponding period of section distribution list inquiry local terminal, it is not limited in the embodiment of the present invention.
402, when the server detects that the time point of the first clock instruction reaches the start time point, the terminal is opened
Specified operating right, and obtain first clock instruction time point first time stamp.
Wherein, which refers to the clock of server configuration, and the server is according to indicated by first clock
Time controls the specified operating right of each terminal.The server obtains the time point of first clock instruction, and sentences
Whether the time point of disconnected first clock instruction reaches the start time point, this is reached when the time point of first clock instruction
Begin time point when, the specified operating right of the terminal is opened, in subsequent process, when the time point of first clock instruction, reach should
When end time point, which turns off the specified operating right of the terminal.
When practical application, the time of the first clock indicates on the server time and second clock instruction in the terminal can
Energy can be inconsistent, knows the difference between the time indicated by the two for the ease of the terminal, which is opening the terminal
When specified operating right, the timestamp of current point in time can be obtained, is stabbed at the first time as this, subsequently to be sent out to the terminal
The first time is given to stab.
When the server detect first clock instruction time point reach the start time point when, according to this first when
The time point of clock instruction obtains first time stamp using preset algorithm.Specifically, which calculates first clock instruction
Time point and preset time point between time interval total number of seconds, the corresponding character string of the total number of seconds be this first when
Between stab.Wherein, 00 minute and 00 second when which can be 1970 01 month 01 day 00 Greenwich Mean Time, or should
Server negotiates determining time point with the terminal, and it is not limited in the embodiment of the present invention.
For example, the server detects the time point of first clock instruction when reaching the start time point, obtain this
The time point of one clock instruction is August in 2015 1 day 8:00:00, preset time point is 01 month 1970 01 Greenwich Mean Time
00 divides 00 second when day 00, and the two time interval is 1438387200 seconds, then the first time stamp obtained is 1438387200.
When practical application, which can obtain the time point of first clock instruction, call strtotime functions,
It converts the time point that first clock indicates to and stabs at the first time, alternatively, the server can also be indicated according to the first clock
Time point, inquired using UNIX_TIMESTAMP functions in MySQL database, obtain corresponding first time stamp,
The embodiment of the present invention does not limit the mode for obtaining first time stamp.
403, the server opens message to the terminal sending permission, which opens message and include at least this at the first time
Stamp.
Know the difference between the server and the terminal currently indicated time point, the service for the ease of the terminal
Device opens message to the terminal sending permission, which opens message and include at least the stamp at the first time.
In addition, the permission open the end time point that message can also include period for the terminal distribution or other
Information, it is not limited in the embodiment of the present invention.
404, when the terminal, which receives the permission, opens message, second time at the time point of second clock instruction is obtained
Stamp.
Wherein, which refers to the clock of terminal configuration, the time point which indicates according to the second clock
Operation.When the terminal, which receives the permission, opens message, according to the time point that the second clock indicates, second time is obtained
Stamp, which obtains the process of second timestamp and the process of stamp is similar at the first time for server acquisition in step 402, herein
It repeats no more.
For example, when the terminal receives the permission and opens message, the time point for obtaining second clock instruction is 2015 8
On the moon 18:02:00, then the second timestamp got is 1438387320.
405, the terminal determines the specified behaviour according to first time stamp, second timestamp and the end time point
Make the stop time point of permission.
In order to determine time point when server reaches the end time point indicated by the second clock, which can be with
According to first time stamp, second timestamp and the end time point, the stop time point of the specified operating right is determined,
The stop time point refers to the time point of second clock instruction when the specified operating right of the terminal is closed.
Specifically, which calculates the difference between first time stamp and second timestamp, using the difference as the
One numerical value, and the difference between the end time point and first numerical value is calculated, as the stop time point.
For example, with the second timestamp in the first time stamp 1438387200 and step 404 in step 402
For 1438387320, it is -120 seconds which, which calculates the difference between first time stamp and second timestamp, the knot
Beam time point is August in 2015 1 day 8:10:00, the end time point and the difference between -120 seconds are calculated, when obtained cut-off
Between point be August in 2015 1 day 8:12:00.
It should be noted that when the permission unlatching message that the server is sent includes the end time point, which can
The end time point is obtained to be opened in message from the permission, alternatively, when the server sends the period of distribution to the terminal,
The terminal can obtain the end time point in the period, and store the end time point.The embodiment of the present invention is to the terminal
The mode and opportunity for obtaining end time point do not limit.
406, the terminal shows the residual time length of the specified operating right according to the stop time point.
The terminal obtains the time point of second clock instruction, calculate the time point got and the stop time point it
Between time interval, obtain the residual time length, and show the residual time length.
When the terminal display residual time length, it can show that residual time length, or display are used to indicate the text of the residual time length
This prompt message, it is not limited in the embodiment of the present invention.
Citing based on step 405, the terminal obtain 2015 time points August 1 day 8 of the second clock:07:00, meter
It calculates and stop time point August in 2015 1 day 8:12:Time interval between 00 obtains residual time length 5 minutes, then the terminal exhibition
Show residual time length " 00:05:00 ", alternatively, display text prompt message " your residual time length is 5 minutes ".
When practical application, which can be when determining stop time point, time for currently being indicated according to the second clock
Point and the stop time point calculate residual time length, and show the residual time length, in the follow-up process, over time, should
Terminal can reduce the residual time length accordingly, and show the residual time length after reducing.
Specifically, which can reduce this by the residual time length of current presentation and second presets every the second preset duration
Duration obtains updated residual time length, and shows the updated residual time length.Wherein, which can be 1
Second or 1 minute, specifically it can determine that it is not limited in the embodiment of the present invention according to the demand to countdown accuracy.
Alternatively, the terminal can show residual time length show option, when detect user click residual time length show option
Operation when, obtain the time point that the second clock currently indicates, the time point currently indicated according to the second clock and this section
Only time point obtains current residual time length, and shows current residual time length.
407, when the server detects that the time point of first clock instruction reaches the end time point, the end is closed
The specified operating right at end.
When the server detects that the time point of first clock instruction reaches the end time point, which can also examine
The time point for measuring second clock instruction reaches the stop time point, at this point, the specified operation of the server closing terminal
Permission, and the residual time length that the terminal is shown is exactly 0, ensure that the residual time length of the terminal display and the specified behaviour of terminal
The real surplus duration for making permission is consistent.
The embodiment of the present invention can be applied under the scene that multiple terminals are broadcast live in turn in same channel, server
There is provided channel for multiple users, which can be live audio room, net cast room etc., the embodiment of the present invention to this not
It limits.
The server can open automatic row's wheat pattern of channel, at this point, multiple users can go up wheat in turn, in channel
It is broadcast live.The server determined the upper wheat period of each user, when wheat period included upper wheat time point and lower wheat on this
Between point, and generated time section distribution list, according to the period distribution list upper wheat of control user and lower wheat.
For each user in channel, when the server detects that the time point that the clock of the server currently indicates arrives
Up to user upper wheat time point when, the upper wheat of the user is set, and obtains the first time stamp at the time point currently indicated, to the use
The terminal at family sends first time stamp.Such as, server can be stabbed this at the first time by way of socket (socket)
It is broadcast to the terminal.
When the terminal receives first time stamp, second timestamp at the time point that terminal clock currently indicates is obtained,
And first time stamp and second timestamp are compared, to calculate correct lower wheat time point, according to calculating
Lower wheat time point carry out countdown, to ensure user time wheat after identical live streaming duration in server-side and terminal, and
Terminal can show that correct countdown to user, avoids the occurrence of user's countdown and error occurs, the user experience is improved.
Referring to Fig. 4 B, under live scene, this method may comprise steps of:
(1) server determines that the live streaming period of terminal A is 8:00-8:The live streaming period of 10, terminal B are 8:10-8:
20.When the server detects that the time point of the first clock instruction is 8:When 00, the live streaming permission of terminal A, the use of terminal A are opened
Family proceeds by live streaming.At this point, the server gets 8:00 corresponding first time stamp is 1438387200, to terminal A
It sends live streaming permission and opens message, which opens message and stabbed at the first time including at least this.
(2) when terminal A, which receives the live streaming permission, opens message, detect that the time point of second clock instruction is 8:
02, then get 8:02 corresponding second timestamp 1438387320.Terminal A is according to first time stamp 1438387200, the
Two timestamps 1438387320 and live streaming end time point 8:10, it is 8 that stop time point, which is calculated,:12, then it calculates at this time
Residual time length be 10 minutes, terminal A displaying " terminates to also have 10 minutes " away from live streaming.Subsequently over time, if second
The time point that clock currently indicates is 8:10, then the residual time length calculated at this time is 2 minutes, and terminal A displayings " terminate away from live streaming
Also 2 minutes ".
(3) over time, when the server detects that the time of the first clock instruction is 8:When 10, terminal is closed
The live streaming permission of A opens the live streaming permission of terminal B, at this point, the user of terminal A stops live streaming, and the user of terminal B start into
Row live streaming.Meanwhile terminal A determines that the time point of second clock instruction is 8:12, the stop time point is reached, then is shown " straight
Broadcast end ".
In above process, when user triggers adjustment operation or the delete operation to the wheat period on this, the server
Asynchronously the upper wheat period of user can be adjusted or be deleted while being broadcast live, reset time section list carries
High system performance enhances user experience speed.
Method provided in an embodiment of the present invention is determined as the period of terminal distribution by server, which includes
Start time point and end time point, when detecting that the time point of the first clock instruction reaches the start time point, opening should
The specified operating right of terminal, and the first time stamp at the time point of first clock instruction is obtained, to the terminal sending permission
Message is opened, which receives the permission and open message, second timestamp at the time point of second clock instruction is obtained, according to this
Stamp, second timestamp and the end time point for local terminal distribution at the first time, when determining the cut-off of the specified operating right
Between point the residual time length of the specified operating right is shown according to the stop time point.The time of the clock instruction of the terminal and clothes
When the Time Inconsistency of the clock instruction of business device, pass through the corresponding first time stamp of the first clock and terminal according to server
Corresponding second timestamp of second clock determines end time point that the server the is distributed corresponding deadline in terminal
The end time point of point, the stop time point and server that ensure terminal is same real time point, to ensure that the terminal
The residual time length of displaying is consistent with the actual residual time length of specified operating right of the terminal, and countdown is avoided error occur.
Fig. 5 is a kind of structural schematic diagram of residual time length displaying device provided in an embodiment of the present invention, referring to Fig. 5, the dress
Set including:
Period determining module 501, the period for being determined as terminal distribution, the period include start time point and
End time point, the period refer to the period for the specified operating right for opening the terminal;
Permission opening module 502, for when detecting that the time point of the first clock instruction reaches the start time point, opening
Open the specified operating right of the terminal;
Stamp acquisition module 503 at the first time, the first time stamp at the time point for obtaining first clock instruction;
Sending module 504, for the terminal sending permission open message, the permission open message include at least this first
Timestamp so that when the terminal, which receives the permission, opens message, obtain second time at the time point of second clock instruction
Stamp determines the deadline of the specified operating right according to first time stamp, second timestamp and the end time point
Point shows the residual time length of the specified operating right according to the stop time point.
Device provided in an embodiment of the present invention, by being determined as the period of terminal distribution, when which includes starting
Between point and end time point, when detect the first clock instruction time point reach the start time point when, open the terminal
Specified operating right, and the first time stamp at the time point of first clock instruction is obtained, disappear to terminal sending permission unlatching
Breath so that the terminal receives the permission and opens message, obtains second timestamp at the time point of second clock instruction, according to this
One timestamp, second timestamp and the end time point for local terminal distribution determine the deadline of the specified operating right
Point shows the residual time length of the specified operating right according to the stop time point.The time of the clock instruction of the terminal and the dress
When the Time Inconsistency for the clock instruction set, pass through the of the corresponding first time stamp of the first clock according to the device and terminal
Corresponding second timestamp of two clocks determines end time point that the device the is distributed corresponding deadline in terminal
Point, the stop time point for ensureing terminal and the end time point of the device are same real time point, to ensure that the terminal
The residual time length of displaying is consistent with the actual residual time length of specified operating right of the terminal, and countdown is avoided error occur.
Optionally, which further includes:
Permission closedown module, for when detecting that the time point of first clock instruction reaches the end time point, closing
Close the specified operating right of the terminal.
Optionally, which is additionally operable to as the terminal distribution first time period;Being sent to the terminal should
First time period so that the terminal display first time period;When receiving the period adjust request of terminal transmission, root
According to the last one period in allocated multiple periods, for the terminal distribution second time period, the second time period position
After the last one period in multiple period;The second time period is sent to the terminal so that the terminal display
The second time period.
Optionally, which further includes:
Corresponding relation building module, for establishing the correspondence between terminal iidentification and the period.
Optionally, which further includes:
List Generating Module, for the sequencing according to the period for being each terminal distribution, generated time section distribution
List, the period distribution list include multiple entries, and each entry includes corresponding terminal iidentification and period, any two
The period of adjacent entries is continuous.
Optionally, which further includes:
Receiving module cancels distribution request for receiving, which includes designated terminal mark;
Removing module identifies corresponding specified entry for deleting the designated terminal from the period distribution list;
Module is adjusted, for being adjusted positioned at the period of each entry after specifying entry so that adjustment
The period of any two adjacent entries is continuous in the period distribution list later.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
Fig. 6 is a kind of structural schematic diagram of residual time length displaying device provided in an embodiment of the present invention, referring to Fig. 6, the dress
Set including:
Receiving module 601, the permission for receiving server transmission open message, which opens message and include at least the
The first time stamp at the time point of one clock instruction;
Second timestamp acquisition module 602, second timestamp at the time point for obtaining second clock instruction;
Stop time point acquisition module 603, for being distributed according to the first time stamp, second timestamp and for local terminal
End time point, determine the stop time point of the specified operating right, which refers to the server closing local terminal
The time point of specified operating right;
First display module 604, the residual time length for according to the stop time point, showing the specified operating right.
Device provided in an embodiment of the present invention opens message by receiving the permission, obtains the time of second clock instruction
Second timestamp of point, according to first time stamp, second timestamp and the end time point distributed for local terminal, determining should
The stop time point of specified operating right shows the residual time length of the specified operating right according to the stop time point.The device
Clock instruction time and server clock instruction Time Inconsistency when, by according to the first clock of server correspond to
First time stab corresponding with the second clock of terminal the second timestamp, determine that the end time point that the server is distributed exists
The end time point of corresponding stop time point in terminal, the stop time point and server that ensure terminal is the same real time
Point, the residual time length to ensure that device displaying is consistent with the actual residual time length of specified operating right of the device, keeps away
Exempt from countdown and error occurs.
Optionally, the stop time point acquisition module 603 be additionally operable to calculate first time stamp and second timestamp it
Between difference, as the first numerical value;The difference between the end time point and first numerical value is calculated, as the deadline
Point.
Optionally, which is additionally operable to obtain the time point of second clock instruction;This is calculated to get
Time point and the stop time point between time interval, obtain the residual time length;Show the residual time length.
Optionally, which further includes:
The receiving module 601 is additionally operable to receive the first time period of server transmission, which includes initial time
Point and end time point;
Second display module, for showing the first time period.
Optionally, which is additionally operable to when detecting the clicking operation to period adjustment option, to this
Server sending time section adjust request so that the server is according to the last one time in allocated multiple periods
Section distributes second time period for the local terminal, which was located at after the last one period in multiple period;
When receiving the second time period of server transmission, the second time period is shown.
Optionally, which further includes:
Sending module, for when detecting the clicking operation to cancelling distribution options, being sent to server and cancelling distribution
Request, which includes terminal iidentification so that the server deletes the end from the period distribution list of generation
End identifies corresponding entry.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
It should be noted that:Above-described embodiment provide residual time length show device when showing residual time length, only more than
The division progress of each function module is stated for example, in practical application, it can be as needed and by above-mentioned function distribution by difference
Function module complete, i.e., the internal structure of equipment is divided into different function modules, with complete it is described above whole or
Person's partial function.In addition, the residual time length displaying device that above-described embodiment provides belongs to residual time length methods of exhibiting embodiment
Same design, specific implementation process refer to embodiment of the method, and which is not described herein again.
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, which can be because of configuration or property
Energy is different and generates bigger difference, may include one or more central processing units (central processing
Units, CPU) 722 (for example, one or more processors) and memory 732, one or more storages apply journey
The storage medium 730 (such as one or more mass memory units) of sequence 742 or data 744.Wherein, 732 He of memory
Storage medium 730 can be of short duration storage or persistent storage.The program for being stored in storage medium 730 may include one or one
With upper module (diagram does not mark), each module may include to the series of instructions operation in server.Further, in
Central processor 722 could be provided as communicating with storage medium 730, be executed on server 700 a series of in storage medium 730
Instruction operation.
Server 700 can also include one or more power supplys 726, one or more wired or wireless networks
Interface 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or one
The above operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMEtc..
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal can be used for implementing above-mentioned reality
Apply the function performed by terminal in the residual time length methods of exhibiting shown by example.Specifically:
Terminal 800 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters
The memory 120 of calculation machine readable storage medium storing program for executing, display unit 140, sensor 150, voicefrequency circuit 160, passes input unit 130
Defeated module 170, include there are one or more than one processing core processor 180 and the components such as power supply 190.This field
Technical staff is appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8, may include than illustrate it is more or
Less component either combines certain components or different components arrangement.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also be communicated with network and other-end by radio communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short
Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, the terminal institute as shown by the above exemplary embodiments
Corresponding software program and module, processor 180 are stored in the software program and module of memory 120 by operation, from
And application and data processing are performed various functions, such as realize the interaction based on video.Memory 120 can include mainly storage
Program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function
(such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for terminal 800
Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 120 may include high-speed random access memory
Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states
Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to storage
The access of device 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input terminals 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or neighbouring touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding linked set is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input terminals 132.Specifically,
Other input terminals 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal 800 that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.
Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used
Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches
After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event
Corresponding visual output is provided on display panel 141.Although in fig. 8, touch sensitive surface 131 and display panel 141 are conducts
Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display
Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 800 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 800 is moved in one's ear
Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 800 can also configure, herein
It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 800.Audio
The transformed electric signal of the audio data received can be transferred to loud speaker 161 by circuit 160, and sound is converted to by loud speaker 161
Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Audio data is converted to, then by after the processing of audio data output processor 180, through RF circuits 110 to be sent to such as another end
End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal 800.
Terminal 800 can help user to send and receive e-mail, browse webpage and access streaming video by transmission module 170
Deng, it provided to the user broadband internet wirelessly or non-wirelessly access.It, can be with although Fig. 8 shows transmission module 170
Understand, and is not belonging to must be configured into for terminal 800, it completely can be as needed in the range for the essence for not changing invention
It is interior and omit.
Processor 180 is the control centre of terminal 800, and each portion of whole mobile phone is linked using various interfaces and circuit
Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120
Interior data execute the various functions and processing data of terminal 800, to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 800 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event
Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 800 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this hair
In bright embodiment, the display unit of terminal is touch-screen display, terminal further include have memory and one or one with
On program, one of them either more than one program be stored in memory and be configured to by one or more than one
It includes for implementing the finger operated performed by terminal in above-described embodiment that processor, which executes said one or more than one program,
It enables.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (18)
1. a kind of residual time length methods of exhibiting, which is characterized in that the method includes:
It is determined as the period of terminal distribution, the period includes start time point and end time point, and the period is
Refer to the period for the specified operating right for opening the terminal;
When detecting that the time point of the first clock instruction reaches the start time point, the specified operating rights of the terminal is opened
Limit, and the first time stamp at the time point of the first clock instruction is obtained, the first time stamp is that first clock refers to
Total number of seconds of time interval between the time point shown and preset time point;
Message is opened to the terminal sending permission, the permission is opened message and stabbed including at least the first time so that when
When the terminal receives the permission unlatching message, second timestamp at the time point of second clock instruction is obtained, according to institute
State the deadline that stamp, second timestamp and end time point at the first time determine the specified operating right
Point shows that the residual time length of the specified operating right, second timestamp are described second according to the stop time point
Total number of seconds of time interval between the time point and preset time point of clock instruction;
The period for being determined as terminal distribution, including:
For the terminal distribution first time period;
The first time period is sent to the terminal so that first time period described in the terminal display;
When receiving the period adjust request that the terminal is sent, according to the last one in allocated multiple periods
Period, is the terminal distribution second time period, and the second time period is located at the last one in the multiple period
After period;
The second time period is sent to the terminal so that second time period described in the terminal display.
2. according to the method described in claim 1, it is characterized in that, it is described to terminal sending permission open message after, it is described
Method further includes:
When detecting that the time point of the first clock instruction reaches the end time point, the specified behaviour of the terminal is closed
Make permission.
3. described according to the method described in claim 1, it is characterized in that, after the period for being determined as terminal distribution
Method further includes:
Establish the correspondence between terminal iidentification and the period.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
According to the sequencing of the period for each terminal distribution, generated time section distribution list, the period allocated column
Table includes multiple entries, and each entry includes corresponding terminal iidentification and period, and the period of any two adjacent entries connects
It is continuous.
5. according to the method described in claim 4, it is characterized in that, the basis is the priority of the period of each terminal distribution
Sequentially, after the distribution list of generated time section, the method further includes:
It receives and cancels distribution request, the cancellation distribution request includes designated terminal mark;
The designated terminal is deleted from the period distribution list identifies corresponding specified entry;
The period of each entry after the specified entry is adjusted so that the period point after adjustment
Period with any two adjacent entries in list is continuous.
6. a kind of residual time length methods of exhibiting, which is characterized in that the method includes:
It receives the specified operating right that server is sent and opens message, the specified operating right opens message and includes at least first
The first time stamp at the time point that clock indicates, when the first time stamp is the time point that first clock indicates and is default
Between put between time interval total number of seconds;
Obtain second clock instruction time point the second timestamp, second timestamp be the second clock instruction when
Between put and preset time point between time interval total number of seconds;
According to first time stamp, second timestamp and the end time point distributed for local terminal, determine described specified
The stop time point of operating right, the end time point refer to the time that the server closing local terminal specifies operating right
Point;
According to the stop time point, the residual time length of the specified operating right is shown;
The method further includes:
Receiving the first time period that the server is sent, the first time period includes start time point and end time point,
The start time point refers to the time point that the server opens that local terminal specifies operating right;
Show the first time period;
When detecting the clicking operation to period adjustment option, to the server sending time section adjust request so that
The server distributes second time period according to the last one period in allocated multiple periods, for the local terminal,
The second time period was located at after the last one period in the multiple period;
When receiving the second time period that the server is sent, the second time period is shown.
7. according to the method described in claim 6, it is characterized in that, described according to first time stamp, second time
Stamp and the end time point distributed for local terminal, determine the stop time point of the specified operating right, including:
The difference between the first time stamp and second timestamp is calculated, as the first numerical value;
The difference between the end time point and first numerical value is calculated, as the stop time point.
8. according to the method described in claim 6, it is characterized in that, described according to the stop time point, displaying is described specified
The residual time length of operating right, including:
Obtain the time point of the second clock instruction;
Time interval between the time point got described in calculating and the stop time point, obtains the residual time length;
Show the residual time length.
9. according to the method described in claim 6, it is characterized in that, the method further includes:
When detecting the clicking operation to cancelling distribution options, is sent to server and cancel distribution request, the cancellation distribution
Request includes terminal iidentification so that it is corresponding that the server deletes the terminal iidentification from the period distribution list of generation
Entry.
10. a kind of residual time length shows device, which is characterized in that described device includes:
Period determining module, the period for being determined as terminal distribution, the period include start time point and end
Time point, the period refer to the period for the specified operating right for opening the terminal;
Permission opening module, for when detecting that the time point of the first clock instruction reaches the start time point, opening institute
State the specified operating right of terminal;
At the first time stamp acquisition module, for when detect the first clock instruction time point reach the start time point when,
Obtain the first time stamp at the time point of first clock instruction, the first time stamp be first clock instruction when
Between put and preset time point between time interval total number of seconds;
Sending module, for opening message to the terminal sending permission, the permission opens message and includes at least described first
Timestamp so that when the terminal, which receives the permission, opens message, obtain the second of the time point of second clock instruction
Timestamp determines the specified operating rights according to first time stamp, second timestamp and end time point
The stop time point of limit shows the residual time length of the specified operating right, second time according to the stop time point
Stamp is total number of seconds of the time interval between the time point and preset time point of second clock instruction;
The period determining module is additionally operable to as the terminal distribution first time period;When sending described first to the terminal
Between section so that first time period described in the terminal display;When receiving the period adjust request that the terminal is sent, root
It it is the terminal distribution second time period, second time according to the last one period in allocated multiple periods
Section was located at after the last one period in the multiple period;The second time period is sent to the terminal so that
Second time period described in the terminal display.
11. device according to claim 10, which is characterized in that described device further includes:
Permission closedown module, for when detecting that the time point of the first clock instruction reaches the end time point, closing
Close the specified operating right of the terminal.
12. device according to claim 10, which is characterized in that described device further includes:
Corresponding relation building module, for establishing the correspondence between terminal iidentification and the period.
13. device according to claim 10, which is characterized in that described device further includes:
List Generating Module, for according to be each terminal distribution period sequencing, generated time section distribution list,
The period distribution list includes multiple entries, and each entry includes corresponding terminal iidentification and period, any two phases
The period of adjacent entry is continuous.
14. device according to claim 13, which is characterized in that described device further includes:
Receiving module cancels distribution request for receiving, and the cancellation distribution request includes designated terminal mark;
Removing module identifies corresponding specified entry for deleting the designated terminal from the period distribution list;
Module is adjusted, is adjusted for the period to each entry after the specified entry so that adjust it
The period of any two adjacent entries is continuous in the period distribution list afterwards.
15. a kind of residual time length shows device, which is characterized in that described device includes:
Receiving module, the specified operating right for receiving server transmission open message, and the specified operating right unlatching disappears
Breath includes at least the first time stamp at the time point of the first clock instruction, and the first time stamp is first clock instruction
Total number of seconds of time interval between time point and preset time point;
Second timestamp acquisition module, for when receiving the specified operating right unlatching message, obtaining second clock and referring to
Second timestamp at the time point shown, second timestamp be second clock instruction time point and preset time point it
Between time interval total number of seconds;
Stop time point acquisition module, for according to the first time stamp, second timestamp and be local terminal distribution
End time point determines the stop time point of the specified operating right, and the end time point refers to the server closing
Local terminal specifies the time point of operating right;
First display module, for according to the stop time point, showing the residual time length of the specified operating right;
Described device further includes:
The receiving module is additionally operable to receive the first time period that the server is sent, and the first time period includes starting
Time point and end time point, the start time point refer to the time point that the server opens that local terminal specifies operating right;
Second display module, for showing the first time period;
Second display module is additionally operable to, when detecting the clicking operation to period adjustment option, send out to the server
Send period adjust request so that the server is according to the last one period in allocated multiple periods, for institute
Local terminal distribution second time period is stated, the second time period was located at after the last one period in the multiple period;
When receiving the second time period that the server is sent, the second time period is shown.
16. device according to claim 15, which is characterized in that the stop time point acquisition module is additionally operable to calculate institute
The difference at the first time between stamp and second timestamp is stated, as the first numerical value;Calculate the end time point with it is described
Difference between first numerical value, as the stop time point.
17. device according to claim 15, which is characterized in that first display module is additionally operable to obtain described second
The time point of clock instruction;Time interval between the time point got described in calculating and the stop time point, obtains institute
State residual time length;Show the residual time length.
18. device according to claim 15, which is characterized in that described device further includes:
Sending module, for when detecting the clicking operation to cancelling distribution options, being sent to server and cancelling distribution request,
The cancellation distribution request includes terminal iidentification so that the server deletes the end from the period distribution list of generation
End identifies corresponding entry.
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 CN105141458A (en) | 2015-12-09 |
CN105141458B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980632B (en) * | 2016-01-19 | 2021-02-23 | 创新先进技术有限公司 | Method and device for acquiring data |
CN107896334B (en) * | 2017-11-30 | 2019-12-10 | 广州酷狗计算机科技有限公司 | live broadcast method and device |
CN110389793B (en) * | 2019-07-19 | 2022-05-10 | 北京字节跳动网络技术有限公司 | Control display method, device, equipment and storage medium |
CN111159612B (en) * | 2019-12-27 | 2024-04-19 | 广州华多网络科技有限公司 | Countdown method, system, device, computer equipment and storage medium |
CN112511845B (en) * | 2020-10-27 | 2023-03-28 | 百果园技术(新加坡)有限公司 | Live broadcast wheat arrangement method, device, server and storage medium |
CN112948071A (en) * | 2021-01-26 | 2021-06-11 | 北京达佳互联信息技术有限公司 | Method, device, equipment, storage medium and program product for processing time information |
CN115270181A (en) * | 2022-07-29 | 2022-11-01 | 北京字跳网络技术有限公司 | Information display method, device, equipment, computer readable storage medium and product |
Citations (4)
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 |
-
2015
- 2015-08-25 CN CN201510532642.0A patent/CN105141458B/en active Active
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105141458A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105141458B (en) | Residual time length methods of exhibiting and device | |
CN104980455B (en) | A kind of multiple terminals method of data synchronization based on cloud storage, device and system | |
CN104618440B (en) | Smart machine control method and device | |
CN104780415B (en) | Multimedia file playing method and device | |
CN104035948B (en) | Geographic position display packing and device | |
CN107580143B (en) | A kind of display methods and mobile terminal | |
CN106162236B (en) | A kind of method and device of sharing video frequency | |
CN104571787B (en) | A kind of message display method and communication terminal | |
CN105022552B (en) | A kind of method and apparatus for showing messaging list | |
CN106791955B (en) | A kind of method and system of determining live streaming duration | |
CN106778117B (en) | Permission open method, apparatus and system | |
CN106161176A (en) | Cluster conversation message treatment method and device | |
CN105224556B (en) | Waterfall stream interface display methods and device | |
CN108566332A (en) | A kind of instant communication information processing method, device and storage medium | |
CN108920084A (en) | Visual field control method and device in a kind of game | |
CN104424211B (en) | A kind of dissemination method of the business datum based on microblogging, device and system | |
CN108888955A (en) | Method of controlling viewing angle and device in a kind of game | |
CN106371326B (en) | Storage method and device for equipment working scene | |
CN110418207A (en) | Information processing method, device and storage medium | |
CN108549508A (en) | A kind of application icon display methods and mobile terminal | |
CN109857297A (en) | Information processing method and terminal device | |
CN110308839A (en) | A kind of file management method and terminal device | |
CN106453597B (en) | The method of adjustment of data synchronizing cycles, apparatus and system | |
CN104253870B (en) | The method and apparatus of control data access cycle | |
CN108898555A (en) | A kind of image processing method and terminal device |
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 |