CN107277622A - Time saltus step processing method, TV and computer-readable recording medium - Google Patents

Time saltus step processing method, TV and computer-readable recording medium Download PDF

Info

Publication number
CN107277622A
CN107277622A CN201710452974.7A CN201710452974A CN107277622A CN 107277622 A CN107277622 A CN 107277622A CN 201710452974 A CN201710452974 A CN 201710452974A CN 107277622 A CN107277622 A CN 107277622A
Authority
CN
China
Prior art keywords
time
button operation
time difference
difference
saltus step
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710452974.7A
Other languages
Chinese (zh)
Other versions
CN107277622B (en
Inventor
刘远凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201710452974.7A priority Critical patent/CN107277622B/en
Publication of CN107277622A publication Critical patent/CN107277622A/en
Application granted granted Critical
Publication of CN107277622B publication Critical patent/CN107277622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention discloses a kind of time saltus step processing method, TV and computer-readable recording medium, methods described includes:Obtain the time difference between first time button operation and second of button operation;Judge whether obtained time difference is negative value;When the time difference is negative value, time transitional states are confirmed as, and carry out default processing to the time difference to obtain positive time difference;Judge whether the positive time difference meets preparatory condition;When the positive time difference meets preparatory condition, second of button operation is not responded.Default processing is carried out by the time difference between the first button operation and second of button operation to user, it is on the occasion of can carry out the operation of time judgement to make the time difference after the default processing.And then prevent when system time of occurrence saltus step, when negative value occurs in time difference, and the operation of time judgement can not be carried out, so that the problems such as slow key response or interim card occur.

Description

Time saltus step processing method, TV and computer-readable recording medium
Technical field
The present invention relates to TV technology, more particularly to a kind of time saltus step processing method, TV and computer-readable Storage medium.
Background technology
Time hopping phenomenon is that the thread scheduling run in process is disorderly, due to exist in the controls it is various it is extraneous because Element so that time saltus step forward.Wherein, it is to cause a major reason of time saltus step that code stream, which is played,.In general, TV System time in normal direct-broadcasting code stream playing process will not generation time saltus step, and going to carousel code stream from direct-broadcasting code stream In then there may be time saltus step.When system occurs in that time hopping phenomenon, the other application of system uses system time conduct During various Rule of judgment, then can occur exception.And for button operation, when system time of occurrence saltus step, due to button operation Judgement would generally use system time.Therefore, if when carrying out the judgement of button operation, system there occurs time saltus step, Button can be then caused to be not responding to always or the problems such as interim card, so as to cause system global stability to substantially reduce.
The content of the invention
It is a primary object of the present invention to provide a kind of time saltus step processing method, TV and computer-readable storage medium Matter, it is desirable to provide one kind prevents that the scheme of anomaly occurs in button operation when time of occurrence saltus step in television system.
To achieve the above object, a kind of time saltus step processing method that the present invention is provided, the time saltus step processing method Comprise the following steps:
Obtain the time difference between first time button operation and second of button operation;
Judge whether obtained time difference is negative value;
When the time difference is negative value, time transitional states are confirmed as, and default place is carried out to the time difference Manage to obtain positive time difference;
Judge whether the positive time difference meets preparatory condition;
When the positive time difference meets preparatory condition, second of button operation is not responded.
Preferably, it is described to judge that the step of whether positive time difference meets preparatory condition includes:
Judge the positive time difference whether in values.
Preferably, in addition to step:
System time is updated according to current code stream reproduction time;
Code stream reproduction time is shown to display interface.
Preferably, the step of acquisition first time button operates the time difference between second of button operation is wrapped Include:
The first system time when first time button operation occurs is obtained, when the first system time is recorded as into starting Between;
Second system time during second of button operation generation is obtained, at the end of the second system time is recorded as Between;
Determine that the time difference between the end time and initial time operates and second of button behaviour for first time button Time difference between work.
Preferably, it is described to judge also to include after the step of whether obtained time difference is negative value:
When the time difference is negative value, the initial time is reset to system during second of button operation generation Time.
Preferably, it is described when the time difference is negative value, the initial time is reset into second of button operation Also include after the step of system time during generation:
Reset the corresponding marking keys symbol of second of button operation;
When third time key operation event occurs, the marking keys symbol of second of button operation is obtained, is pressed when for the second time When the marking keys symbol of key operation is preset value, then obtains the 3rd system time when third time button operation occurs and be recorded as End time;
The initial time and the 3rd of acquisition for the system time being reset as described in obtaining when second of button operation occurs Time difference between the end time of system time when secondary button operation occurs;
The step of whether obtained time difference is negative value judged into described.
Preferably, it is described to judge to include after the step of whether obtained time difference is negative value:
The time difference be on the occasion of when, respond second of button operation.
Preferably, it is described the step of default processing is to obtain positive time difference is carried out to the time difference to include:
The time difference is taken absolute value, make the time difference be on the occasion of;
Or
The time difference is multiplied by preset value so that the time difference be changed on the occasion of.
In addition, to achieve the above object, the present invention also provides a kind of TV, the TV include memory, processor and The time saltus step processing routine that can be run on the memory and on the processor is stored in, the time saltus step handles journey The step of time saltus step processing method as described above is realized when sequence is by the computing device.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Be stored with time saltus step processing routine on storage medium, and as above institute is realized when the time saltus step processing routine is executed by processor The step of time saltus step processing method stated.
The present invention is by obtaining the time difference between first time button operation and second of button operation;Judgement is obtained Time difference whether be negative value;When the time difference is negative value, time transitional states are confirmed as, and to the time difference Value carries out default processing to obtain positive time difference;Judge whether the positive time difference meets preparatory condition;In the timing Between difference when meeting preparatory condition, second of button operation is not responded.Pass through the first button operation to user Time difference between second of button operation carries out default processing, make the time difference after the default processing be on the occasion of, with The operation of time judgement can be carried out.And then prevent when system time of occurrence saltus step, when there is negative value in time difference, and The operation of time judgement can not be carried out, so that the problems such as slow key response or interim card occur.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of time saltus step processing method first embodiment of the invention;
Fig. 2 is the schematic flow sheet of time saltus step processing method second embodiment of the invention;
Fig. 3 is the schematic flow sheet of time saltus step processing method 3rd embodiment of the invention;
Fig. 4 is the schematic flow sheet of time saltus step processing method fourth embodiment of the invention;
Fig. 5 is the schematic flow sheet of the embodiment of time saltus step processing method the 5th of the invention;
Fig. 6 is the schematic flow sheet of time saltus step processing method sixth embodiment of the invention;
Fig. 7 is the schematic diagram of TV of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of time saltus step processing method, in the first embodiment, reference picture 1, at the time saltus step Reason method comprises the following steps:
Step S10, obtains the time difference between first time button operation and second of button operation;
After TV is started, TV completes loading, and now user can be with option code stream broadcasting.Specific selectable code stream leads to Often include direct-broadcasting code stream and carousel code stream.What is initially selected as user is direct-broadcasting code stream, then in code stream playing process, when User from direct-broadcasting code stream change to carousel code stream when, now will likely time of occurrence saltus step phenomenon.When system time of occurrence is jumped During change, if now because the judgement of button will use system time, therefore button will be caused to cannot respond to button operation, The operation of button is set to accumulate and cause the phenomenons such as interim card.So when user operates button, obtaining first time button operation and the Time difference between secondary button operation.Now the time difference is likely to occur a variety of situations, may be on the occasion of may also be Negative value.Occur on the occasion of situation be first time button operation with second of button operation be in live or carousel feelings Completed under condition, now non-time of occurrence saltus step.The situation for negative value occur is from first time button operation to second of button behaviour During work, TV jumps to carousel code stream from direct-broadcasting code stream, now occurs in that time saltus step, so as to cause time difference to be negative Number.
Step S20, judges whether obtained time difference is negative value;
Because the time difference of above-mentioned acquisition may be on the occasion of that may also be negative value, so determining whether what this got Whether time difference is negative value.So as to determine whether whether television system there occurs time saltus step, with according to whether occurring Time saltus step is handled using different processing modes.
Step S30, when the time difference is negative value, confirms as time transitional states, and the time difference is entered Row is default to be handled to obtain positive time difference;
When obtained time difference is negative value, then it can determine that the television system there occurs time hopping phenomenon.This is born The time difference of value will cause error to follow-up time judgement, the negative value key press time difference for generating time saltus step, System can not carry out the response of button operation, so as to cause accumulation and the system interim card of button operation.Therefore need by this Time difference carries out default processing, by the time difference from negative value be changed on the occasion of.Default place is specifically carried out to time difference The method of reason can be:When the time difference obtained is negative value, then the time difference is taken absolute value, or by the time Difference is multiplied by preset value, and the preset value can be -1, so that the time difference is changed into positive number.Or in other embodiments, Can use other default processing modes by the time difference for negative value be changed on the occasion of.
Certainly, in another embodiment, when the time difference be on the occasion of when, then directly in response to second of button operation. When time difference be on the occasion of when, then show now non-time of origin saltus step, then for carry out button operation judgement when, can be straight The operation of the button of response each time is connect, the phenomenon that button is not responding to is not resulted in now.
In another embodiment, in order to prevent in these cases, first time button operation and second button operation it Between interval it is too short, namely button operation it is excessively frequent when, then can also now judge first time button operation with pressing for the second time The size of time difference between key operation, judges whether the time difference is less than default time difference.It is pre- if less than this If time difference, then be not responding to second of button operation;If it is not, then directly in response to second of button operation.Specifically Ground, can according to actual needs be designed, not be limited herein.
Step S40, judge described in whether meet preparatory condition on the occasion of time difference;
Step S50, when the positive time difference meets preparatory condition, does not ring to second of button operation Should.
Be changed into the time difference by default processing after, judge this on the occasion of time difference whether meet default bar Part, to be handled according to the judged result second of button operation.Specifically, the preparatory condition is to judge the positive time Whether difference is in values.Be used to weighing during the values first time button operation and second button operation it Between time interval length, when this on the occasion of time difference be in the values in when, then show now first time button Interval between operation and second of button operation is too short, then now system does not respond to second of button operation.This is preset Time range can be configured as needed, and the preset time range such as is set into 5ms, 2s.
Certainly, further, if the positive time difference there may be a variety of phenomenons not in the values. Such as, may be when occurring jumping to carousel code stream from direct-broadcasting code stream, there is saltus step in the time, and now system time, which will update, arrives carousel The code stream time.If the time of direct-broadcasting code stream is 18:00, and the time of carousel code stream is 16:When 00, then now press for the first time Key operation record is time when direct-broadcasting code stream is played, and second button operation record be then that carousel code stream is played when Between, then first time button operates the time difference between second of button operation to be at least 4h, if using s as timing list Position, the time difference is very big, in this case, can be designed as detecting the positive time difference much larger than pre- If be worth scope, then directly in response to second of button operation.
Or, when first time button operates the time difference between second of button operation excessive, then this time is pressed Key operation is abandoned, and is reset into initial time the time of second of button operation, with button operation next time, directly with Second of button operation is the time judgement that initial time re-starts button operation.And then avoid causing due to time saltus step Button is not responding to so that the phenomenon of button operation accumulation, and after the completion of the time saltus step, reenters the judgement of button operation, So that button operation normally continues.
The present embodiment is by obtaining the time difference between first time button operation and second of button operation;Judgement is obtained Whether the time difference obtained is negative value;When the time difference is negative value, time transitional states are confirmed as, and to the time Difference carries out default processing to obtain positive time difference;Whether meet preparatory condition on the occasion of time difference described in judging;Described When positive time difference meets preparatory condition, second of button operation is not responded.And then prevent when system occurs During time saltus step, when negative value occurs in time difference, and the operation of time judgement can not be carried out, so that it is slow key response occur Or the problems such as interim card.
Further, in one embodiment, methods described also includes:
Step S60, system time is updated according to current code stream reproduction time;
Step S70, code stream reproduction time is shown to display interface.
In the present embodiment, the time that television system is shown is updated according to currently playing code stream, TV system Play be direct-broadcasting code stream when, the now system time one of time and the system background of direct-broadcasting code stream record or timer record Cause;And when television system play be carousel code stream when, then the time of now current carousel code stream record will be updated to being The system time.And further, code stream reproduction time is shown to display interface.
System time is updated according to current code stream reproduction time in the present embodiment, button is used as using each system time The record time that the time of operation judges, so that the judgement of button operation is associated with code stream reproduction time, it can also enter Judge the relation with code stream reproduction time to handle key-press event according to the time of button operation to one step.
Further, reference picture 2, in a second embodiment, the step S10 include:
Step S11, obtains the first system time when first time button operation occurs, the first system time is recorded For initial time;
Step S12, obtains second system time when second of button operation occurs, the second system time is recorded For the end time;
Step S13, it is first time button operation and second to determine the time difference between the end time and initial time Time difference between secondary button operation.
After updating to system time the time that code stream is played, then when being operated to button, button operation record when Between it is consistent with system time.Between when present during saltus step, for example, first time button operation occurs during direct-broadcasting code stream is played, When user has jumped to carousel code stream from direct-broadcasting code stream to be played out, second of button operation appears in carousel code stream and plays the phase Between;So when first time button is operated, the first system time during first time button operation generation is recorded, first is by this The system time is recorded as initial time, and the first system time and direct-broadcasting code stream time now are consistent;In second of button behaviour When work occurs, second of button operation corresponding second system time is recorded, and the second system time is recorded as knot Beam time, second system time now and carousel code stream time consistency.Further, by between end time and initial time Time difference as first time button operate and second of button operation between time difference, now the time difference is negative Value.
By obtaining the first system time during first time button operation generation in the present embodiment, during by the first system Between be recorded as initial time;Second system time during second of button operation generation is obtained, the second system time is remembered Record as the end time;Determine time difference between the end time and initial time for first time button operation and for the second time by Time difference between key operation.System time when occurring by recording each button operation, and then obtain button behaviour twice Time difference between work, to judge button operation.
Further, reference picture 3, in the third embodiment, also include after the step S30:
Step S31, when the time difference is negative value, second of button operation generation is reset to by the initial time When system time.
Time saltus step is that occur when direct-broadcasting code stream jumps to carousel code stream, then when the jump of direct-broadcasting code stream and carousel code stream After the completion of turning, under normal circumstances, TV is played in which will carry out carousel code stream, then now the time of system plays with carousel code stream Time consistency.Namely after the completion of time saltus step, if operated again to button, the now time judgement of button operation When it is correct.But the system time that the time for being due to first time button operation records when being direct-broadcasting code stream, if now under When one-touch is operated, continue time for operating using first time button as if initial time, the judgement of button operation is by one The straight judgment model for being in time saltus step, the operation to system brings burden.Therefore, in first time button operation with pressing for the second time When the time difference of key operation is negative value, then the initial time during button operation is judged resets to second of button operation generation When system time, time difference next time between button operation and second of button operation is judged to facilitate, while also existing The speed of service of system is accelerated to a certain extent.
The present embodiment is by the way that when the time difference is negative value, second of button operation is reset to by the initial time System time during generation.So that button operation next time can normally continue, and improve the processing speed of system.
Further, reference picture 4, in the fourth embodiment, also include after the step S31:
Step S311, resets the corresponding marking keys symbol of second of button operation;
Step S312, when third time key operation event occurs, obtains the marking keys symbol of second of button operation, when When the marking keys symbol of second of button operation is preset value, then the 3rd system time when third time button operation occurs is obtained And it is recorded as the end time;
Step S313, obtains the initial time for being reset as system time when second of button operation occurs with obtaining Time difference between the end time of system time when the third time button operation taken occurs;
Step S314, the step of whether obtained time difference is negative value judged into described.
In the present embodiment, in order to prevent exception during keystroke handling, by initial time correspondence after preset time Marking keys symbol be set to preset value, the present embodiment is set to -1, the third time button operation time occur after, reading press for the second time Key operation corresponding marking keys symbol, when only marking keys symbol is -1, can just enter and obtain the of third time button operation The step of three system times.
Described in the present embodiment first time button operation, refer in key-press event processing procedure, twice continuously In button operation, first time button operates corresponding set of time to be initial time, and the time of second of button operation is then set For the end time, the corresponding marking keys of initial time are accorded with, namely corresponding marking keys symbol is set under first time button operation For -1.Order of the first time with being intended merely to represent button operation for the second time described in the present embodiment, and without specific Sensing implication, so that continuously the sequencing of button operation is defined twice.
Wherein, setting for the corresponding marking keys symbol of initial time can be set when TV startup starts, in electricity Depending on starting and completing after initialization, the start mark that the marking keys of remote control are accorded with is set to -1.Or, run in TV Cheng Zhong, setting for marking keys symbol can be by obtaining first time button operation and the time difference of second of button operation Afterwards, then by second of button operation corresponding time initial time is reset to, and the corresponding marking keys of the initial time is accorded with It is set to -1.
When specifically, into keystroke handling event, only when the marking keys symbol read is -1, step is just gone successively to It is rapid to obtain the step of time button operation corresponding system time, and when further obtaining button operation correspondence system next time Between, judge whether the time difference between button operation twice is negative value, otherwise will not enter above-mentioned steps flow.
Accorded with the present embodiment by resetting the corresponding marking keys of second of button operation, with third time button operation Between when occurring, to judge whether to enter the 3rd system time obtained when third time button operation occurs, and judge the The step of time difference between three button operations and second of button operation.
Further, referring to Fig. 5, in the 5th embodiment, above-mentioned steps S30 includes:
Step S32, takes absolute value to the time difference, to obtain positive time difference;
Or, referring to Fig. 6, in the sixth embodiment, above-mentioned steps S30 includes:
Step S33, preset value is multiplied by with to obtain positive time difference by the time difference.
When time difference is negative value, then absolute value processing first is carried out to the time difference of the negative, by negative when Between difference be changed on the occasion of when, the time difference after this is handled is compared with values.
In another embodiment, when the time difference be negative value when, by by the time difference be multiplied by a preset value with The time difference of the negative value is set to be changed on the occasion of specifically the preset value is -1.
Certainly in other embodiments, except the processing mode of above-mentioned use absolute value, or it is default by being multiplied by It can also make time difference under time of occurrence saltus step from negative using other default processing modes outside the processing mode of value It is changed into positive number, is not particularly limited herein.
The mode of preset value is multiplied by the present embodiment by the way of absolute value processing or by the time difference of negative value, is made The time difference of negative value is changed on the occasion of and then proceeding the judgement of button operation.
Fig. 7 is refer to, the present invention further provides a kind of TV 100, the TV includes:Memory 10, processor 20 And it is stored in the time saltus step processing routine that can be run on the memory 10 and on the processor 20, the time saltus step Processing routine realizes following method and step when being performed by the processor 20:
Obtain the time difference between first time button operation and second of button operation;
Judge whether obtained time difference is negative value;
When the time difference is negative value, time transitional states are confirmed as, and default place is carried out to the time difference Manage to obtain positive time difference;
Judge whether the positive time difference meets preparatory condition;
When the positive time difference meets preparatory condition, second of button operation is not responded.
After TV is started, TV completes loading, and now user can be with option code stream broadcasting.Specific selectable code stream leads to Often include direct-broadcasting code stream and carousel code stream.What is initially selected as user is direct-broadcasting code stream, then in code stream playing process, when User from direct-broadcasting code stream change to carousel code stream when, now will likely time of occurrence saltus step phenomenon.When system time of occurrence is jumped During change, if now because the judgement of button will use system time, therefore button will be caused to cannot respond to button operation, The operation of button is set to accumulate and cause the phenomenons such as interim card.So when user operates button, obtaining first time button operation and the Time difference between secondary button operation.Now the time difference is likely to occur a variety of situations, may be on the occasion of may also be Negative value.Occur on the occasion of situation be first time button operation with second of button operation be in live or carousel feelings Completed under condition, now non-time of occurrence saltus step.The situation for negative value occur is from first time button operation to second of button behaviour During work, TV jumps to carousel code stream from direct-broadcasting code stream, now occurs in that time saltus step, so as to cause time difference to be negative Number.
Because the time difference of above-mentioned acquisition may be on the occasion of that may also be negative value, so determining whether what this got Whether time difference is negative value.So as to determine whether whether television system there occurs time saltus step, with according to whether occurring Time saltus step is handled using different processing modes.
When obtained time difference is negative value, then it can determine that the television system there occurs time hopping phenomenon.This is born The time difference of value will cause error to follow-up time judgement, the negative value key press time difference for generating time saltus step, System can not carry out the response of button operation, so as to cause accumulation and the system interim card of button operation.When therefore needing this then Between difference from negative value be changed on the occasion of.By carrying out default processing to the time difference, the time difference is changed into just from negative value Value.The method of default processing is specifically carried out to time difference to be:When the time difference obtained is negative value, then should Time difference is taken absolute value, or the time difference is multiplied by into preset value, and the preset value can be -1, so that the time difference becomes For positive number.Or in other embodiments, it would however also be possible to employ other default processing modes will be changed into for the time difference of negative value On the occasion of.
Certainly, in another embodiment, when the time difference be on the occasion of when, then directly in response to second of button operation. When time difference be on the occasion of when, then show now non-time of origin saltus step, then for carry out button operation judgement when, can be straight The operation of the button of response each time is connect, the phenomenon that button is not responding to is not resulted in now.
But in another embodiment, in order to prevent in these cases, first time button operation is grasped with second of button Interval between work is too short, namely button operation it is excessively frequent when, then can also now judge first time button operation with second The size of time difference between secondary button operation, judges whether the time difference is less than default time difference.If less than The default time difference, then be not responding to second of button operation;If it is not, then directly in response to second of button operation. Specifically, it can according to actual needs be designed, not be limited herein.
Be changed into the time difference by default processing after, judge this on the occasion of time difference whether meet default bar Part, to be handled according to the judged result second of button operation.Specifically, the preparatory condition is to judge the positive time Whether difference is in values.Be used to weighing during the values first time button operation and second button operation it Between time interval length, when this on the occasion of time difference be in the values in when, then show now first time button Interval between operation and second of button operation is too short, then now system does not respond to second of button operation.This is preset Time range can be configured as needed, and the preset time range such as is set into 5ms, 2s.
Certainly, further, if the positive time difference there may be a variety of phenomenons not in the values. Such as, may be when occurring jumping to carousel code stream from direct-broadcasting code stream, there is saltus step in the time, and now system time, which will update, arrives carousel The code stream time.If the time of direct-broadcasting code stream is 18:00, and the time of carousel code stream is 16:When 00, then now press for the first time Key operation record is time when direct-broadcasting code stream is played, and second button operation record be then that carousel code stream is played when Between, then first time button operates the time difference between second of button operation to be at least 4h, if using s as timing list Position, the time difference is very big, in this case, can be designed as detecting the positive time difference much larger than pre- If be worth scope, then directly in response to second of button operation.
Or, when first time button operates the time difference between second of button operation excessive, then this time is pressed Key operation is abandoned, and is reset into initial time the time of second of button operation, with button operation next time, directly with Second of button operation is the time judgement that initial time re-starts button operation.And then avoid causing due to time saltus step Button is not responding to so that the phenomenon of button operation accumulation, and after the completion of the time saltus step, reenters the judgement of button operation, So that button operation normally continues.
The present embodiment is by obtaining the time difference between first time button operation and second of button operation;Judgement is obtained Whether the time difference obtained is negative value;When the time difference is negative value, time transitional states are confirmed as, and to the time Difference carries out default processing to obtain positive time difference;Whether meet preparatory condition on the occasion of time difference described in judging;Described When positive time difference meets preparatory condition, second of button operation is not responded.And then prevent when system occurs During time saltus step, when negative value occurs in time difference, and the operation of time judgement can not be carried out, so that it is slow key response occur Or the problems such as interim card.
In one embodiment, the time saltus step processing routine by the computing device when realize following method and step:
System time is updated according to current code stream reproduction time;
Code stream reproduction time is shown to display interface.
In the present embodiment, the time that television system is shown is updated according to currently playing code stream, when TV system When what system was played is direct-broadcasting code stream, the time that now direct-broadcasting code stream is recorded and system background or the time consistency of timer record; And when television system play be carousel code stream when, then when the time of now current carousel code stream record is by the system of arriving is updated Between.And further, code stream reproduction time is shown to display interface.
System time is updated according to current code stream reproduction time in the present embodiment, button is used as using each system time The record time that the time of operation judges, so that the judgement of button operation is associated with code stream reproduction time, it can also enter Judge the relation with code stream reproduction time to handle key-press event according to the time of button operation to one step.
Further, in one embodiment, realized such as when the time saltus step processing routine is performed by the processor 20 Lower method and step:
The first system time when first time button operation occurs is obtained, when the first system time is recorded as into starting Between;
Second system time during second of button operation generation is obtained, at the end of the second system time is recorded as Between;
Determine that the time difference between the end time and initial time operates and second of button behaviour for first time button Time difference between work.
After updating to system time the time that code stream is played, then when being operated to button, button operation record when Between it is consistent with system time.Between when present during saltus step, for example, first time button operation occurs during direct-broadcasting code stream is played, When user has jumped to carousel code stream from direct-broadcasting code stream to be played out, second of button operation appears in carousel code stream and plays the phase Between;So when first time button is operated, the first system time during first time button operation generation is recorded, first is by this The system time is recorded as initial time, and the first system time and direct-broadcasting code stream time now are consistent;In second of button behaviour When work occurs, second of button operation corresponding second system time is recorded, and the second system time is recorded as knot Beam time, second system time now and carousel code stream time consistency.Further, by between end time and initial time Time difference as first time button operate and second of button operation between time difference, now the time difference is negative Value.
By obtaining the first system time during first time button operation generation in the present embodiment, during by the first system Between be recorded as initial time;Second system time during second of button operation generation is obtained, the second system time is remembered Record as the end time;Determine time difference between the end time and initial time for first time button operation and for the second time by Time difference between key operation.System time when occurring by recording each button operation, and then obtain button behaviour twice Time difference between work, to judge button operation.
Further, in one embodiment, realized such as when the time saltus step processing routine is performed by the processor 20 Lower method and step:
When the time difference is negative value, the initial time is reset to system during second of button operation generation Time.
Time saltus step is that occur when direct-broadcasting code stream jumps to carousel code stream, then when the jump of direct-broadcasting code stream and carousel code stream After the completion of turning, under normal circumstances, TV is played in which will carry out carousel code stream, then now the time of system plays with carousel code stream Time consistency.Namely after the completion of time saltus step, if operated again to button, the now time judgement of button operation When it is correct.But the system time that the time for being due to first time button operation records when being direct-broadcasting code stream, if now under When one-touch is operated, continue time for operating using first time button as if initial time, the judgement of button operation is by one The straight judgment model for being in time saltus step, the operation to system brings burden.Therefore, in first time button operation with pressing for the second time When the time difference of key operation is negative value, then the initial time during button operation is judged resets to second of button operation generation When system time, time difference next time between button operation and second of button operation is judged to facilitate, while also existing The speed of service of system is accelerated to a certain extent.
The present embodiment is by the way that when the time difference is negative value, second of button operation is reset to by the initial time System time during generation.So that button operation next time can normally continue, and improve the processing speed of system.
Further, in other embodiments, realized when the time saltus step processing routine is performed by the processor 20 Following method and step:
Reset the corresponding marking keys symbol of second of button operation;
When third time key operation event occurs, the marking keys symbol of second of button operation is obtained, is pressed when for the second time When the marking keys symbol of key operation is preset value, then obtains the 3rd system time when third time button operation occurs and be recorded as End time;
The initial time and the 3rd of acquisition for the system time being reset as described in obtaining when second of button operation occurs Time difference between the end time of system time when secondary button operation occurs;
The step of whether obtained time difference is negative value judged into described.
In the present embodiment, in order to prevent exception during keystroke handling, by initial time correspondence after preset time Marking keys symbol be set to preset value, the present embodiment is set to -1, the third time button operation time occur after, reading press for the second time Key operation corresponding marking keys symbol, when only marking keys symbol is -1, can just enter and obtain the of third time button operation The step of three system times.
Described in the present embodiment first time button operation, refer in key-press event processing procedure, twice continuously In button operation, first time button operates corresponding set of time to be initial time, and the time of second of button operation is then set For the end time, the corresponding marking keys of initial time are accorded with, namely corresponding marking keys symbol is set under first time button operation For -1.Order of the first time with being intended merely to represent button operation for the second time described in the present embodiment, and without specific Sensing implication, so that continuously the sequencing of button operation is defined twice.
Wherein, setting for the corresponding marking keys symbol of initial time can be set when TV startup starts, in electricity Depending on starting and completing after initialization, the start mark that the marking keys of remote control are accorded with is set to -1.Or, run in TV Cheng Zhong, setting for marking keys symbol can be by obtaining first time button operation and the time difference of second of button operation Afterwards, then by second of button operation corresponding time initial time is reset to, and the corresponding marking keys of the initial time is accorded with It is set to -1.
When specifically, into keystroke handling event, only when the marking keys symbol read is -1, step is just gone successively to It is rapid to obtain the step of time button operation corresponding system time, and when further obtaining button operation correspondence system next time Between, judge whether the time difference between button operation twice is negative value, otherwise will not enter above-mentioned steps flow.
Accorded with the present embodiment by resetting the corresponding marking keys of second of button operation, with third time button operation Between when occurring, to judge whether to enter the 3rd system time obtained when third time button operation occurs, and judge the The step of time difference between three button operations and second of button operation.
Further, in other embodiments, realized when the time saltus step processing routine is performed by the processor 20 Following method and step:
The time difference is taken absolute value, make the time difference be on the occasion of;
Or
The time difference is multiplied by preset value so that the time difference be changed on the occasion of.
When time difference is negative value, then absolute value processing first is carried out to the time difference of the negative, by negative when Between difference be changed on the occasion of when, the time difference after this is handled is compared with values.
In another embodiment, when the time difference be negative value when, by by the time difference be multiplied by a preset value with The time difference of the negative value is set to be changed on the occasion of specifically the preset value is -1.
Certainly in other embodiments, except the processing mode of above-mentioned use absolute value, or it is default by being multiplied by It can also make time difference under time of occurrence saltus step from negative using other default processing modes outside the processing mode of value It is changed into positive number, is not particularly limited herein.
The mode of preset value is multiplied by the present embodiment by the way of absolute value processing or by the time difference of negative value, is made The time difference of negative value is changed on the occasion of and then proceeding the judgement of button operation.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with time saltus step processing routine, the time saltus step processing routine realizes any of the above-described embodiment when being executed by processor The step of described time saltus step processing method, concrete implementation following steps:
Obtain the time difference between first time button operation and second of button operation;
Judge whether obtained time difference is negative value;
When the time difference is negative value, time transitional states are confirmed as, and default place is carried out to the time difference Manage to obtain positive time difference;
Judge whether the positive time difference meets preparatory condition;
When the positive time difference meets preparatory condition, second of button operation is not responded.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
System time is updated according to current code stream reproduction time;
Code stream reproduction time is shown to display interface.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
The first system time when first time button operation occurs is obtained, when the first system time is recorded as into starting Between;
Second system time during second of button operation generation is obtained, at the end of the second system time is recorded as Between;
Determine that the time difference between the end time and initial time operates and second of button behaviour for first time button Time difference between work.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
When the time difference is negative value, the initial time is reset to system during second of button operation generation Time.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
Reset the corresponding marking keys symbol of second of button operation;
When third time key operation event occurs, the marking keys symbol of second of button operation is obtained, is pressed when for the second time When the marking keys symbol of key operation is preset value, then obtains the 3rd system time when third time button operation occurs and be recorded as End time;
The initial time and the 3rd of acquisition for the system time being reset as described in obtaining when second of button operation occurs Time difference between the end time of system time when secondary button operation occurs;
The step of whether obtained time difference is negative value judged into described.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
The time difference is taken absolute value, make the time difference be on the occasion of;
Or
The time difference is multiplied by preset value so that the time difference be changed on the occasion of.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
Broadcast code flow after being initialized to TV;
According to the reproduction time automatic synchronization code stream time;
According to the code stream time updating system time.
Further, following operation is realized when the time saltus step processing routine is executed by processor:
Obtain first time button and operate corresponding marking keys symbol;
When the first time button operates corresponding marking keys symbol for default identifier, then enter to obtain and press for the first time The time difference of key operation and second of button operation.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of time saltus step processing method, it is characterised in that the time saltus step processing method comprises the following steps:
Obtain the time difference between first time button operation and second of button operation;
Judge whether obtained time difference is negative value;
When the time difference is negative value, confirm as time transitional states, and the time difference is carried out default processing with Obtain positive time difference;
Judge whether the positive time difference meets preparatory condition;
When the positive time difference meets preparatory condition, second of button operation is not responded.
2. time saltus step processing method according to claim 1, it is characterised in that the judgement positive time difference is It is no to include the step of meet preparatory condition:
Judge the positive time difference whether in values.
3. time saltus step processing method according to claim 1, it is characterised in that also including step:
System time is updated according to current code stream reproduction time;
Code stream reproduction time is shown to display interface.
4. time saltus step processing method according to claim 3, it is characterised in that the acquisition first time button operation and The step of time difference between second of button operation, includes:
The first system time when first time button operation occurs is obtained, the first system time is recorded as initial time;
Second system time during second of button operation generation is obtained, the second system time is recorded as the end time;
Determine time difference between the end time and initial time operated for first time button and second button operation it Between time difference.
5. time saltus step processing method according to claim 4, it is characterised in that the time difference that the judgement is obtained Also include after the step of whether being negative value:
When the time difference is negative value, when the initial time is reset into system when second of button operation occurs Between.
6. time saltus step processing method according to claim 5, it is characterised in that described is negative value in the time difference When, the step of system time when the initial time is reset into the generation of second button operation after also include:
Reset the corresponding marking keys symbol of second of button operation;
When third time key operation event occurs, the marking keys symbol of second of button operation is obtained, as second of button behaviour When the marking keys symbol of work is preset value, then obtains the 3rd system time when third time button operation occurs and be recorded as terminating Time;
Obtain the initial time of system time when being reset as second of button operation generation and the third time of acquisition by Time difference between the end time of system time when key operation occurs;
The step of whether obtained time difference is negative value judged into described.
7. the time saltus step processing method according to any one of claim 1~6, it is characterised in that the judgement is obtained Time difference the step of whether be negative value after also include:
The time difference be on the occasion of when, respond second of button operation.
8. the time saltus step processing method according to any one of claim 1~6, it is characterised in that described to the time Difference, which carries out the step of default processing is to obtain positive time difference, to be included:
The time difference is taken absolute value, make the time difference be on the occasion of;
Or
The time difference is multiplied by preset value so that the time difference be changed on the occasion of.
9. a kind of TV, it is characterised in that the TV includes memory, processor and is stored on the memory and can be The time saltus step processing routine run on the processor, is realized when the time saltus step processing routine is by the computing device The step of time saltus step processing method as described in claim any one of 1-8.
10. a kind of computer-readable recording medium, it is characterised in that be stored with time jump on the computer-readable recording medium Become processing routine, when the time saltus step processing routine is executed by processor realize as described in claim any one of 1-8 when Between saltus step processing method the step of.
CN201710452974.7A 2017-06-15 2017-06-15 Time jump processing method, television and computer readable storage medium Active CN107277622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710452974.7A CN107277622B (en) 2017-06-15 2017-06-15 Time jump processing method, television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710452974.7A CN107277622B (en) 2017-06-15 2017-06-15 Time jump processing method, television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107277622A true CN107277622A (en) 2017-10-20
CN107277622B CN107277622B (en) 2020-07-14

Family

ID=60067755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710452974.7A Active CN107277622B (en) 2017-06-15 2017-06-15 Time jump processing method, television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107277622B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597635A (en) * 2020-12-09 2021-04-02 北京智联友道科技有限公司 Method, device and equipment for generating virtual clock system based on CBTC (communication based train control) simulation system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004003722A3 (en) * 2002-06-28 2005-02-03 Bouygues Telecom Sa Message input method
CN104301780A (en) * 2014-09-26 2015-01-21 四川长虹电器股份有限公司 Method for frequently switching played video on smart television
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
CN106572396A (en) * 2016-11-03 2017-04-19 成都视达科信息技术有限公司 Set top box front panel fault locking and unlocking method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004003722A3 (en) * 2002-06-28 2005-02-03 Bouygues Telecom Sa Message input method
CN104301780A (en) * 2014-09-26 2015-01-21 四川长虹电器股份有限公司 Method for frequently switching played video on smart television
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
CN106572396A (en) * 2016-11-03 2017-04-19 成都视达科信息技术有限公司 Set top box front panel fault locking and unlocking method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597635A (en) * 2020-12-09 2021-04-02 北京智联友道科技有限公司 Method, device and equipment for generating virtual clock system based on CBTC (communication based train control) simulation system

Also Published As

Publication number Publication date
CN107277622B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN110784752B (en) Video interaction method and device, computer equipment and storage medium
JP5416416B2 (en) How to program universal remote control
US7889112B1 (en) Dynamic linking of codesets in universal remote control devices
US20180081510A1 (en) Video playback method and apparatus
US20150325109A1 (en) Quick Remote Control Method and Device
CN105573522B (en) A kind of operating method and mobile terminal of mobile terminal
CN103985245A (en) Method for learning infrared codes of remote controller based on intelligent terminal, and intelligent terminal
CN103596000A (en) Method and system for multi-interface switching test of smart television
GB2133603A (en) Training simulator
CN106375860A (en) Video playing method and device, and terminal and server
CN102937919A (en) Synchronization method for multiple intelligent terminals
CN105872628A (en) Multi-screen switching method, server and terminal
CN106610881B (en) The extracting method and device of function stack when extraction procedure occurs without response
CN105516814A (en) Channel processing method and channel processing apparatus
CN107277622A (en) Time saltus step processing method, TV and computer-readable recording medium
CN103170136A (en) Method and system of achieving game control through set top box
JP5562356B2 (en) Code set determination for remote control device
EP3418882A1 (en) Display apparatus having the ability of voice control and method of instructing voice control timing
JP2017062555A (en) Electronic apparatus, apparatus control program, and apparatus control method
US20140373065A1 (en) Device and method for switching television channels
JP6131735B2 (en) Data management apparatus, data management method, and data management program
CN102956177B (en) The method preventing display screen picture fuzzy and display screen
CN104735072A (en) Method and device for logging in user account
CN110704127B (en) Button control method, device, electronic equipment and storage medium
WO2016091010A1 (en) Countdown method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant