The content of the invention
The technical problems to be solved by the invention are:It is slow there is provided a kind of program based on EPG for above-mentioned problemMethod and program caching device are deposited, TV programme can be cached, shortens or eliminate the load time of TV programme.
The technical solution adopted by the present invention is:A kind of program caching method based on EPG, the program caching method are providedIncluding:From Network Capture electronic program guide (EPG) programme information, the EPG programme informations include channel list and channel listIn each channel TV programme program guide;It is each from the Network Capture when user enables the EPG programme informationsThe programme content of the TV programme of channel is simultaneously cached, while selecting earliest knot from the end time of all TV programmeThe beam time, fiducial time is designated as, wherein, the programme content carries the end time of TV programme;Record user reactivatesWhether the current time during EPG programme informations, judge the current time earlier than the fiducial time;If described currentTime, what is then obtained using caching was data cached so that user plays earlier than the fiducial time.
Preferably, the program caching method includes:If the current time is later than the fiducial time, again fromThe programme content of the TV programme of each channel of Network Capture is simultaneously cached, and according to all TV programme at the end ofBetween refresh the fiducial time.
Preferably, the program caching method also includes:When caching the programme content again, once cached precedingThe data cached removing arrived.
Preferably, it is described when user enables the EPG programme informations, from the TV Festival of each channel of the Network CapturePurpose programme content is simultaneously cached, while selecting the earliest end time from the end time of all TV programme, is designated asThe step of fiducial time, also includes:It is to be tied after the completion of the programme content of the TV programme of the fiducial time is cached between at the endBeam is cached.
Preferably, the program caching method also includes:When user terminates to enable the EPG programme informations, using slowDeposit obtain it is data cached for user play.
The technical solution adopted by the present invention is:A kind of program caching device based on EPG, the program caching device are providedIncluding:Initial module, for from Network Capture EPG programme informations, the EPG programme informations to include channel list and channel listIn each channel TV programme program guide;Acquisition module, for when user enables the EPG programme informations, from instituteState the programme content of the TV programme of each channel of Network Capture and cached, while from the end time of all TV programmeIn select the earliest end time, be designated as fiducial time, wherein, the programme content carries the end time of TV programme;SentenceDisconnected module, for recording current time when user reactivates the EPG programme informations, judges whether the current time is earlyIn the fiducial time;Using module, for when the current time is earlier than the fiducial time, using delaying that caching is obtainedDeposit data is played for user.
Preferably, the acquisition module is additionally operable to when the current time is later than the fiducial time, again from describedThe programme content of the TV programme of each channel of Network Capture is simultaneously cached, and is brushed according to the end time of all TV programmeThe new fiducial time.
Preferably, the acquisition module is additionally operable to when caching the programme content again, and preceding once caching is obtainedIt is data cached to remove.
Preferably, it is the programme content of the TV programme of the fiducial time between the acquisition module is additionally operable at the endTerminate caching after the completion of caching.
Preferably, the use module is additionally operable to, when user terminates to enable the EPG programme informations, obtain using cachingIt is data cached for user play.
In summary, by adopting the above-described technical solution, the beneficial effects of the invention are as follows:EPG programs are enabled in userDuring information, the programme content of TV programme is cached, and when reactivating EPG programme informations, if the end of cachingTime earliest program is not in current time, the data cached broadcasting TV programme just obtained using caching, due to makingWith caching, the speed for reading caching is fast, without waiting for so as to be cached to TV programme, shortening or eliminate TV FestivalThe purpose load time, it is to avoid carry out unnecessary network request, saving network flow brings good experience to user.
Embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusiveFeature and/or step beyond, can combine in any way.
Any feature disclosed in this specification, unless specifically stated otherwise, can be equivalent by other or with similar purposeAlternative features are replaced.I.e., unless specifically stated otherwise, each feature is an example in a series of equivalent or similar characteristics.
As shown in figure 1, being the schematic flow sheet of the program caching method based on EPG of the embodiment of the present invention.The present embodimentProgram caching method include:
S1:From Network Capture electronic program guide (EPG) programme information, EPG programme informations include channel list and channel columnThe program guide of the TV programme of each channel in table.Wherein, network is a wide area network, and EPG programme informations can pass through netBroadcasting server in network is sent.Program guide can include the data such as programm name, TV guide and excellent picture.
S2:When user enables EPG programme informations, gone forward side by side from the programme content of the TV programme of each channel of Network CaptureRow caching, while selecting the earliest end time from the end time of all TV programme, is designated as fiducial time, wherein, sectionMesh content carries the end time of TV programme.Wherein, TV can provide EPG business, can when user selects EPG businessEPG programme informations are ejected, that is, enable EPG programme informations.User is from during browsing EPG programme informations, and TV is from Network CaptureThe programme content of the TV programme of each channel is simultaneously cached.Programme content is the audio content and video content of TV programmeEtc. content.The program of the offer of network is all that according to arranging just have time started and end time, the end time can beGot in the lump when obtaining programme content.Specifically, TV can send network request to network, and network is according to network requestReturn to programme content.
S3:Record user reactivates current time during EPG programme informations, when whether judging current time earlier than benchmarkBetween.Wherein, user exits EPG business and terminates to enable EPG programme informations.Enable twice between the time between EPG programme informationsEvery being unknown, determined by user.It is preceding once to cache when user reactivates, that is, when enabling EPG programme informations for the second timeTV programme may be over or have renewal.
S4:If current time is earlier than fiducial time, using caching obtain it is data cached so that user plays.ItsIn, current time illustrates that end time earliest TV programme are not over earlier than fiducial time, and user can use cachingObtained data cached normal play, due to using data cached, without connecting network, so as to shorten or eliminate TV FestivalThe purpose load time, it is to avoid carry out unnecessary network request, saving network flow.
In the present embodiment, step S2 also includes:The programme content of the TV programme of time delays on the basis of between at the endTerminate caching after the completion of depositing.Wherein, TV programme of the programme content of buffered television program to terminate earliest due to whether againEnd time be defined, so, in order to avoid unnecessary caching, caching duration is set to end time earliest TV programmePlaying duration.
In the present embodiment, program caching method also includes:
S5:If current time is later than fiducial time, again from the program of the TV programme of each channel of Network CaptureContent is simultaneously cached, and refreshes fiducial time according to the end time of all TV programme.Wherein, current time is later than benchmarkTime, if the TV programme terminated earliest are over, caching data cached out-of-date simultaneously fails.Due to each channelTV programme in different periods be different, so the programme content cached again may belong to original TV FestivalMesh, therefore, the end time of TV programme is it can also happen that change is, it is necessary to refresh fiducial time.The process of refreshing is exactly againThe earliest end time is selected from the end time of all TV programme.Alternatively, step S5 also includes:Again institute is being cachedWhen stating programme content, by the preceding data cached removing for once caching and obtaining.What is once cached before removing is data cached, can dischargeMore spatial caches.
S6:When user terminates to enable EPG programme informations, using caching obtain it is data cached for user play.ItsIn, user is chosen after a channel, that is, is terminated to enable EPG programme informations, commenced play out the TV programme of the channel.Playing processIn can use that caching obtains it is data cached, can shorten or eliminate the load time.
As shown in Fig. 2 being the structural representation of the program caching device based on EPG of the embodiment of the present invention.Program cachingDevice includes initial module 11, acquisition module 12, judge module 13 and uses module 14.
Initial module 11 is used for from Network Capture EPG programme informations, and EPG programme informations include channel list and channel listIn each channel TV programme program guide.Wherein, network is a wide area network, and EPG programme informations can pass through networkIn TV broadcasting service device send.Program guide can include the data such as programm name, TV guide and excellent picture.
Acquisition module 12 is used for when user enables EPG programme informations, from the TV programme of each channel of Network CaptureProgramme content is simultaneously cached, while selecting the earliest end time from the end time of all TV programme, is designated as benchmarkTime, wherein, programme content carries the end time of TV programme.Wherein, programme content carries the end time of TV programme.Wherein, TV can provide EPG business, when user selects EPG business, can eject EPG programme informations, that is, enable EPG programsInformation.User from during browsing EPG programme informations, TV from the programme contents of the TV programme of each channel of Network Capture simultaneouslyCached.Programme content is the contents such as the audio content and video content of TV programme.The program of the offer of network be all according toAccording to arranging just to have time started and end time, the end time can in the lump get when obtaining programme content.SpecificallyFor, TV can send network request to network, and network returns to programme content according to network request.
Judge module 13 is used to record current time when user reactivates EPG programme informations, judges that current time isIt is no earlier than fiducial time.Wherein, user exits EPG business and terminates to enable EPG programme informations.EPG programme informations are enabled twiceBetween time interval be unknown, determined by user.When user reactivates, that is, EPG programme informations are enabled for the second timeWhen, the preceding TV programme once cached may be over or have renewal.
Using module 14 be used for when current time is earlier than fiducial time, using caching obtain it is data cached for userPlay.Wherein, current time illustrates that end time earliest TV programme are not over earlier than fiducial time, and user can makeThe data cached normal play obtained with caching, due to using data cached, without connecting network, so as to shorten or eliminateThe load time of TV programme, it is to avoid carry out unnecessary network request, saving network flow.
In the present embodiment, acquisition module 12 is additionally operable to when current time is later than fiducial time, again from Network CaptureThe programme content of the TV programme of each channel is simultaneously cached, and when refreshing benchmark according to the end time of all TV programmeBetween.Wherein, current time is later than fiducial time, if the TV programme terminated earliest are over, caching it is data cachedWhen passing through and fail.Because the TV programme of each channel in different periods are different, so the programme content cached againMay belong to original TV programme, therefore, the end time of TV programme is it can also happen that change is, it is necessary to refresh baseBetween punctual.The process of refreshing is exactly to select the earliest end time from the end time of all TV programme again.Alternatively,Acquisition module 12 is additionally operable in buffered program content again, by the preceding data cached removing for once caching and obtaining.Remove previousSecondary caching it is data cached, more spatial caches can be discharged.
Be additionally operable to using module 14 when user terminates to enable EPG programme informations, using caching obtain it is data cached withPlayed for user.Wherein, user is chosen after a channel, that is, is terminated to enable EPG programme informations, commenced play out the TV of the channelProgram.Can use that caching obtains in playing process is data cached, can shorten or eliminate the load time.
Alternatively, the programme content of the TV programme of time has been cached on the basis of between acquisition module 12 is additionally operable at the endTerminate caching into rear.Again whether due to, the programme content of buffered television program is with the end time of the TV programme terminated earliestIt is defined, so, in order to avoid unnecessary caching, when caching duration is set to the broadcasting of end time earliest TV programmeIt is long.
The invention is not limited in foregoing embodiment.The present invention, which is expanded to, any in this manual to be disclosedNew feature or any new combination, and disclose any new method or process the step of or any new combination.