Summary of the invention
Technical problem to be solved by this invention is to provide a kind of control method and control device to the display application page of intelligent television, both can utilize rationally buffer memory, can not cause in the situation of system resource configuration waste, accelerate the speed of the display application page, can make again the data in buffer memory be upgraded timely, make user can see in time the application page after renewal.
For achieving the above object, according to an aspect of the present invention, a kind of control method to the display application page of intelligent television has been proposed, the display interface of intelligent television comprises a plurality of preset startup entrances that enter the application page, described intelligent television is provided with the buffer memory of the data of the described application page of storage, and described method comprises:
Reception control signal is also resolved;
If described control signal for triggering certain preset startup entrance that enters the application page, obtain this application page in the corresponding buffer memory of this application page data be saved time point;
Calculating get described in be saved the time difference between time point and current point in time, described current point in time is for receiving the time point of described control signal;
Described time difference and default time span threshold value are compared, according to comparison result, from local cache and server, select one to originate as data acquisition, and from described Data Source, obtain the data of this application page;
According to the data that get, show this application page.
Further, described time difference and default time span threshold value are compared, according to comparison result, from local cache and server, select one to originate as data acquisition, and from described Data Source, obtain the data of this application page, be specially:
If the described time difference is less than the first Preset Time threshold value, selects described local cache to originate as data acquisition, and from described local cache, obtain the data of this application page.
Further, described time difference and default time span threshold value are compared, according to comparison result, from local cache and server, select one to originate as data acquisition, and from described Data Source, obtain the data of this application page, be specially:
If the described time difference is greater than the first Preset Time threshold value and is less than the second Preset Time threshold value, select described server to originate as data acquisition, and to described server, send the request of reading out data;
If described server does not respond described request in preset time, from described local cache, obtain the data of this application page.
Further, described method also comprises:
If described server has returned to request in preset time, from described server, obtain the data of this application page, and the data that get are stored in described local cache.
Further, described time difference and default time span threshold value are compared, according to comparison result, from local cache and server, select one to originate as data acquisition, and from described Data Source, obtain the data of this application page, be specially:
If the described time difference is greater than described the second Preset Time threshold value, selecting described server is data acquisition source, obtains the data of this application page, and the data that get are stored in described local cache from described server.
For achieving the above object, according to a further aspect in the invention, a kind of control device to the display application page of intelligent television has been proposed, the display interface of intelligent television comprises a plurality of preset startup entrances that enter the application page, described intelligent television is provided with the buffer memory of the data of the described application page of storage, and described device comprises:
Resolution unit, for reception control signal parsing;
The first acquiring unit, for when described control signal is for triggering certain preset startup entrance that enters the application page, obtain this application page in the corresponding buffer memory of this application page data be saved time point;
Computing unit, for calculate get described in be saved the time difference between time point and current point in time, described current point in time is for receive switching the time point of the control signal of display page;
Second acquisition unit for described time difference and default time span threshold value are compared, according to comparison result, is selected one to originate as data acquisition, and from described Data Source, is obtained the data of this application page from local cache and server;
Display unit, for showing this application page according to the data that get.
Further, described second acquisition unit, comprising:
First obtains subelement, for being less than the first Preset Time threshold value when the described time difference, selects described local cache to originate as data acquisition, and from described local cache, obtains the data of this application page.
Further, described second acquisition unit, comprising:
Request subelement, for being greater than the first Preset Time threshold value and being less than the second Preset Time threshold value when the described time difference, selects described server to originate as data acquisition, and to described server, sends the request of reading out data;
Second obtains subelement, for not responding described request when described server in preset time, from described local cache, obtains the data of this application page.
Further, described device also comprises:
The 3rd acquiring unit, for having returned to request when described server in preset time, obtains the data of this application page, and the data that get is stored in described local cache from described server.
Further, described second acquisition unit, comprising:
The 3rd obtains subelement, and for being greater than described the second Preset Time threshold value when the described time difference, selecting described server is data acquisition source, obtains the data of this application page, and the data that get are stored in described local cache from described server.
Compared with prior art, a technical scheme in technique scheme has the following advantages or beneficial effect:
Of the present invention to the control method and control device of the display application page of intelligent television in, first obtain the time difference between time point and current point in time that is saved of certain data of applying this application page in corresponding buffer memory, again this time difference and Preset Time length threshold are compared, according to comparison result, from local cache and server, choose one as data acquisition source, obtain the data about this application page wherein and show, can utilize rationally buffer memory, can not cause in the situation of system resource configuration waste, accelerate the speed of the display application page, can make again the data in buffer memory be upgraded in time, make user can see in time the application page after renewal.
?
accompanying drawing explanation
Fig. 1 is the flow chart of the present invention to control method first embodiment of the display application page of intelligent television;
Fig. 2 is the structural representation of the present invention to control device first embodiment of the display application page of intelligent television.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Referring to Fig. 1, it is the flow chart to control method first embodiment of the display application page of intelligent television provided by the invention.
In the present embodiment, the display interface of intelligent television comprises a plurality of preset startup entrances that enter the application page, such as can comprise enter the particular video frequency application page startup entrance, enter the startup entrance of the media center applications page etc.Wherein, the video resource that the video resource in particular video frequency application provides with intelligent television server is identical.And intelligent television is also provided with the buffer memory of the data of the described application page of storage.
The method comprises the steps:
S101, reception control signal, and this control signal is resolved.
Wherein, this control signal can trigger by the button of remote controller, also can trigger by the touch-screen of remote controller.Or, in the situation that intelligent television is connected with other terminal equipment (such as mobile phone etc.) by agreements such as UPNP, also can send this control signal by other-end equipment.In this case, be the equal of to utilize the application program of installing on terminal equipment to carry out analog telecommand device, realize the control to intelligent television.
S102, if control signal for triggering certain preset startup entrance that enters the application page, obtain this application page in the corresponding buffer memory of this application page data be saved time point.
In S102, can comprise the step of judgement, the result of according to S101, control signal being resolved judges the content of control signal.Whether wherein, need definite signal is to be the signal that triggers certain preset startup entrance that enters the application page.
Such as, if control signal for triggering the startup entrance enter the particular video frequency application page, obtain this particular video frequency application page in the corresponding buffer memory of this particular video frequency application page related data be saved time point.
S103, calculates the time difference between time point and current point in time that is saved getting, and wherein, current point in time is the time point that receives control signal.
Such as, the time point that is saved getting in S102 is on December 5th, 2013
15:00, current point in time is 15:08 on December 5th, 2013, calculates the time difference between above-mentioned two time points, is 8 minutes.
S104, compares time difference and default time span threshold value, according to comparison result, from local cache and server, selects one to originate as data acquisition, and from Data Source, obtains the data of this application page.
This step can be specially, if the time difference is less than the first Preset Time threshold value, selects local cache to originate as data acquisition, and from local cache, obtains the data of this application page.
In an embodiment, the first Preset Time threshold value can be set to 10 minutes.
Such as, what trigger is the startup entrance that enters the particular video frequency application page, and the time difference calculating is 8 minutes, that is to say, this time difference (8 minutes) is less than the first Preset Time threshold value (10 minutes), selects local cache to originate as data acquisition, and from local cache, obtain the data of the particular video frequency application page, speed to guarantee that this particular video frequency application page shows, shows that user asks the page entering in time, reduces period of reservation of number.
Further, if the time difference is greater than the first Preset Time threshold value and is less than the second Preset Time threshold value, select server to originate as data acquisition, and to server, send the request of reading out data; If server is not responding request in preset time, from local cache, obtain the data of this application page.
At the present embodiment, the second Preset Time threshold value can be set to one week (7 days), and preset time can be set to 3 seconds.
Such as, triggering be the startup entrance that enters the particular video frequency application page, and the time difference calculating is 1 hour.That is to say, this time difference (1 hour), be greater than the first Preset Time threshold value (10 minutes) and be less than the second Preset Time threshold value (a week), selecting server to originate as data acquisition, and to server, sending the request of the data that read this particular video frequency application page.
If server is not responding request in preset time (3 seconds), still from local cache, obtain the data of the particular video frequency application page, speed to guarantee that this particular video frequency application page shows, shows that user asks the page entering in time, reduces period of reservation of number.
Further, if server has returned to request in preset time, from server, obtain the data of this application page, and the data that get are stored in local cache.
That is to say, if server has returned to request in preset time (3 seconds), from server, obtain the data of this particular video frequency application page, and the data that get are all stored in local cache, when can guaranteeing that this particular video frequency application page shows in time, also can guarantee that the data in local cache are upgraded timely, and then make user can see in time the application page after renewal.
Further, if the time difference is greater than the second Preset Time threshold value, selecting server is data acquisition source, obtains the data of this application page, and the data that get are stored in local cache from server.
Such as, triggering be the startup entrance that enters the particular video frequency application page, and the time difference is 8 days.That is to say, this time difference (8 days) is greater than the second Preset Time threshold value (a week), select server to originate as data acquisition, and from server, obtain the data of this particular video frequency application page, and the data that get are stored in local cache, when can guaranteeing that this particular video frequency application page shows in time, also can guarantee that the data in local cache are upgraded timely, and then make user can see in time the application page after renewal.
In the present embodiment, above-mentioned the first Preset Time threshold value (10 minutes) and the second Preset Time threshold value (a week) can, according to actual conditions by server background dynamic-configuration, also be configured to other values certainly according to actual needs.Above-mentioned two Preset Time threshold values, are mainly to determine according to the renewal frequency of data in server, to guarantee that as much as possible accessing in time of data in preset buffer memory upgrade, and then make user see in time the page after renewal.
Above-mentioned preset time (3 seconds), be according to server return to the average data amount of capacity (after compression maximum data piece be about 40K), resource distribution situation of the json data of intelligent television, whether in network peak period, the factor such as signal loss, line hepatitis consumption, video occupied bandwidth and definite, so that when user asks to start the page, in accurate, quick obtaining data and reduce between period of reservation of number and reach reasonable balance.
S105, shows this application page according to the data that get.In the present embodiment, according to the data that get, show the page of particular video frequency application, in this page, further operate.
Of the present invention to the control method embodiment of the display application page of intelligent television in, first obtain the time difference between time point and current point in time that is saved of certain data of applying this application page in the corresponding buffer memory of the page, again this time difference and Preset Time length threshold are compared, according to comparison result, from local cache and server, choose one as data acquisition source, obtain wherein about the data of this application page and show, can utilize rationally buffer memory, can not cause in the situation of system resource configuration waste, accelerate the speed of the display application page, can make again the data in buffer memory be upgraded in time, make user can see in time the application page after renewal.
Provided by the invention and the above-mentioned corresponding control device of control method to the display application page of intelligent television will be introduced below.
Fig. 2 is the structural representation of the present invention to control device first embodiment of the display application page of intelligent television.
In the present embodiment, the display interface of intelligent television comprises a plurality of preset startup entrances that enter the application page, such as comprise enter the particular video frequency application page startup entrance, enter the startup entrance of the media center applications page etc.Wherein, the video resource that the video resource in particular video frequency application provides with intelligent television server is identical.And intelligent television is also provided with the buffer memory of the data of the described application page of storage.This device comprises:
Resolution unit 21, for reception control signal, and resolves this control signal.
Wherein, this control signal can trigger by the button of remote controller, also can trigger by the touch-screen of remote controller.Or, in the situation that intelligent television is connected with other terminal equipment (such as mobile phone etc.) by agreements such as UPNP, also can send this control signal by other-end equipment.In this case, be the equal of to utilize the application program of installing on terminal equipment to carry out analog telecommand device, realize the control to intelligent television.
The first acquiringunit 22, for when control signal is for triggering certain preset startup entrance that enters the application page, obtain this application page in the corresponding buffer memory of this application page data be saved time point.
The first acquiringunit 22 also can judge, according to S101, the result of control signal parsing is judged the content of control signal.Whether wherein, need definite signal is to be the signal that triggers certain preset startup entrance that enters the application page.
Such as, if control signal for triggering the startup entrance enter the particular video frequency application page, obtain this particular video frequency application page in the corresponding buffer memory of this particular video frequency application page related data be saved time point.
Computing unit 23, for calculating the time difference between time point and current point in time that is saved getting, wherein, current point in time is the time point that receives control signal.
Such as, the time point time point that is saved getting in S102 is on December 5th, 2013
15:00, current point in time is 15:08 on December 5th, 2013, calculates the time difference between above-mentioned two time points, is 8 minutes.
Second acquisition unit 24 for time difference and default time span threshold value are compared, according to comparison result, is selected one to originate as data acquisition, and from Data Source, is obtained the data of this application page from local cache and server.
Display unit 25, for showing this application page according to the data that get.
In the present embodiment, this second acquisition unit, can comprise:
First obtains subelement, for being less than the first Preset Time threshold value when the time difference, selects local cache to originate as data acquisition, and from local cache, obtains the data of this application page.
In the present embodiment, this second acquisition unit, can comprise:
Request subelement, for being greater than the first Preset Time threshold value and being less than the second Preset Time threshold value when the time difference, selects server to originate as data acquisition, and to server, sends the request of reading out data.
Second obtains subelement, for when server not responding request in preset time, from local cache, obtains the data of this application page.
Further, this device also can comprise:
The 3rd acquiring unit, for having returned to request when server in preset time, obtains the data of this application page, and the data that get is stored in local cache from server.
Further, in the present embodiment, this second acquisition unit, also can comprise:
The 3rd obtains subelement, and for being greater than the second Preset Time threshold value when the time difference, selecting server is data acquisition source, obtains the data of this application page, and the data that get are stored in local cache from server.
In the present embodiment, above-mentioned the first Preset Time threshold value (10 minutes) and the second Preset Time threshold value (a week) can, according to actual conditions by server background dynamic-configuration, also be configured to other values certainly according to actual needs.Above-mentioned two Preset Time threshold values, are mainly to determine according to the renewal frequency of data in server, to guarantee that as much as possible accessing in time of data in preset buffer memory upgrade, and then make user see in time the page after renewal.
Above-mentioned preset time (3 seconds), be according to server return to the average data amount of capacity (after compression maximum data piece be about 40K), resource distribution situation of the json data of intelligent television, whether in network peak period, the factor such as signal loss, line hepatitis consumption, video occupied bandwidth and definite, so that when user asks to start the page, in accurate, quick obtaining data and reduce between period of reservation of number and reach reasonable balance.
Of the present invention to the control device embodiment of the display application page of intelligent television in, first obtain the time difference between time point and current point in time that is saved of certain data of applying this application page in the corresponding buffer memory of the page, again this time difference and Preset Time length threshold are compared, according to comparison result, from local cache and server, choose one as data acquisition source, obtain wherein about the data of this application page and show, can utilize rationally buffer memory, can not cause in the situation of system resource configuration waste, accelerate the speed of the display application page, can make again the data in buffer memory be upgraded in time, make user can see in time the application page after renewal.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Above to a kind of control method and control device to the display application page of intelligent television provided by the present invention, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.