Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Fig. 1 is the method flow diagram that the first of providing of the embodiment of the present invention is play TV programme, and the method for the broadcasting TV programme that the embodiment of the present invention provides is mainly used on digital TV set-top box.The method of the broadcasting TV programme in the present embodiment can comprise as shown in the figure:
S110, obtain user's the programme information of watching, the described programme information of watching programme information to comprise the TV programme that at least one user watched.Concrete, the TV programme that Set Top Box can be watched at least one user is in advance added in default customer data base, when Set Top Box receives start-up command or enter the instruction of application from standby, obtain user's the programme information of watching in described customer data base, the described programme information of watching the TV programme in programme information comprises that programm name, program broadcasting time, the total playing duration of program and program play the period, and described programme information is the accumulative total of the information of user's TV programme of watching within a period of time.For example, having programm name in customer data base is " news hookup " TV programme, the program broadcasting time is " 2 ", program is play total duration for " 3H ", it is " 19:00-19:30 " that program is play the period, when the user watches " news hookup " again, Set Top Box is carried out record to this information of " news hookup " of watching, get this playing duration for " 30min ", playing the period is " 21:30-22:00 ", the information that Set Top Box gets this is added in the programme information that customer data base is corresponding, in customer data base, the program broadcasting time of " news hookup " is " 3 ", program is play total duration for " 3.5H ", it is " 19:00-19:30 " and " 21:30-22:00 " that program is play the period.
S120 confirms the target TV programme according to the described programme information of watching in current TV Guide.Concrete, Set Top Box enters application, resolve code stream and obtain EPG(Electronic Program Guide, TV Guide) information, in Preset Time, the programme information of the TV programme of the described programme information of watching the TV programme in programme information and current EPG is contrasted, in the programme information of the TV programme of the EPG current, search with watch programme information in the programme information of programme information coupling of TV programme the time, just finish contrast, obtain the target TV programme.Described Preset Time arranges according to current Set Top Box internal memory and/or processing speed.
Optionally, Set Top Box can be successively by the programme information contrast of the TV programme of the described programme information of watching the TV programme in programme information and current EPG, get the target TV programme in the TV programme of Set Top Box at current EPG, finish to watch the comparing of programme information of the TV programme of the programme information of the TV programme in programme information and current EPG; Set Top Box also can be simultaneously contrasts watching in the programme information of TV programme of the programme information of the TV programme of a part in programme information and current EPG, while in the TV programme of Set Top Box at current EPG, getting a plurality of TV programme, obtain therein program and play the TV programme of weights maximum of total duration and/or program broadcasting time as the target TV programme.
S130, play described target TV programme.Concrete, after Set Top Box gets the target TV programme in the TV programme of current EPG, play described target TV programme.
Implement the embodiment of the present invention, have following beneficial effect: the embodiment of the present invention is by obtaining user's the programme information of watching, confirm the target TV programme according to the described programme information of watching in current EPG, realized having improved user experience for the user plays the TV programme of liking automatically.
Fig. 2 is the method flow diagram that the second of providing of the embodiment of the present invention is play TV programme, and the method for the broadcasting TV programme that the embodiment of the present invention provides is mainly used on Set Top Box.The method of the broadcasting TV programme in the present embodiment can comprise as shown in the figure:
S210, obtain user's the programme information of watching, the described programme information of watching programme information to comprise the TV programme that at least one user watched.Concrete, the TV programme that Set Top Box can be watched at least one user is in advance added in default customer data base, when Set Top Box receives start-up command or enter the instruction of application from standby, obtain user's the programme information of watching in described customer data base, the described programme information of watching the TV programme in programme information comprises that programm name, program broadcasting time, the total playing duration of program and program play the period, and described programme information is the accumulative total of the information of user's TV programme of watching within a period of time.For example, having programm name in customer data base is " news hookup " TV programme, the program broadcasting time is " 2 ", program is play total duration for " 3H ", it is " 19:00-19:30 " that program is play the period, when the user watches " news hookup " again, Set Top Box is carried out record to this information of " news hookup " of watching, get this playing duration for " 30min ", playing the period is " 21:30-22:00 ", the information that Set Top Box gets this is added in the programme information that customer data base is corresponding, in customer data base, the program broadcasting time of " news hookup " is " 3 ", program is play total duration for " 3.5H ", it is " 19:00-19:30 " and " 21:30-22:00 " that program is play the period.
S220, according to the described programme information of watching the TV programme in programme information, be kept in the candidate program list meeting pre-conditioned TV programme.Described pre-conditioned can be to watch the program of the TV programme in programme information to play the period to comprise the system current time or watch TV programme program in programme information to play total duration and reach default playing duration (as 0.5H, 1H or 1.5H etc.).For example, it is " 19:00-19:30 " and " 21:30-22:00 " that the program of " A " is play the period, it is " 21:00-22:00 " that the program of " B " is play the period, it is " 10:00-12:00 " that the program of " C " is play the period, and the system current time is " 19:02 ", by contrast, only have program broadcasting period " 21:30-22:00 " of " A " to comprise system current time " 19:02 ", " A " is kept in the candidate program list.Again for example, the program of " A " is play total duration for " 0.5H ", the program of " B " is play total duration for " 2H ", the program of " C " is play total duration for " 3.5H ", and default playing duration is " 0.6H ", play total duration by the program of contrast " B " and " C " and reach default playing duration, " B " and " C " is kept in the candidate program list.
S230, carry out the program sequence according to the programme information of the TV programme in described candidate program list to the TV programme in described candidate program list.Concrete, the weights that Set Top Box can be play total duration and/or program broadcasting time according to the program of the TV programme in the candidate program list carry out the program sequence to the TV programme in described candidate program list, and the order descending according to weights is arranged in TV programme in the candidate program list.
S240, contrasted the programme information of the TV programme in the programme information of the TV programme in described candidate program list and current EPG successively according to described program ranking results, obtains comparing result.Optionally, Set Top Box can be simultaneously contrasted the programme information of the TV programme in the programme information of a part of TV programme in the candidate program list and current EPG.
Concrete, when Set Top Box enters application, resolve code stream and obtain EPG information, in Preset Time, according to described program ranking results, successively the programme information of the TV programme in the programme information of the TV programme in described candidate program list and current EPG is contrasted, for example according to described program ranking results, successively the programm name of the TV programme in the programm name of the TV programme in described candidate program list and current EPG is contrasted, obtained comparing result.Described Preset Time arranges according to current Set Top Box internal memory and/or processing speed.Described comparing result can be in the programme information of Set Top Box TV programme in current EPG in described Preset Time, search with the candidate program list in the TV programme of programme information coupling of TV programme; Can be also in the programme information of Set Top Box TV programme in current EPG in described Preset Time, do not search with the candidate program list in the TV programme of programme information coupling of TV programme.If in the programme information of the TV programme of Set Top Box in current EPG, search with the candidate program list in the TV programme of programme information coupling of TV programme, finish current search.
S250, judge whether to exist according to described comparing result the TV programme that the match is successful.Concrete, if in the programme information of Set Top Box TV programme in current EPG in described Preset Time, search with the candidate program list in the TV programme of programme information coupling of TV programme, there is the TV programme that the match is successful in judgement, carries out S270; Otherwise there is not the TV programme that the match is successful in judgement, carries out S260.
S260 if there is not the TV programme that the match is successful, obtains the TV programme of default television channel as the target TV programme in current EPG.Concrete, the user can preset one or more television channels, in the programme information of Set Top Box TV programme in current EPG in Preset Time, do not search with the candidate program list in the programme information of programme information coupling of TV programme, in the television channel of user preset, obtain arbitrarily a television channel, using the TV programme of the current broadcasting of described television channel as the target TV programme.
S270, play the target TV programme.Concrete, after Set Top Box gets the target TV programme in the TV programme of current EPG, play described target TV programme.
Implement the embodiment of the present invention, have following beneficial effect: the embodiment of the present invention is by obtaining user's the programme information of watching, the programme information of the TV programme of the described programme information of watching the TV programme in programme information and current EPG is contrasted, obtain the target TV programme, realized automatically playing for the user TV programme of liking; Further, to described, watch the TV programme in programme information to be screened, obtain the candidate program list, after described candidate program list is sorted, obtain successively the target TV programme in current EPG, improved the efficiency of obtaining the target TV programme; Further, if the programme information of the TV programme of the programme information of the TV programme in described candidate program list and current EPG is contrasted unsuccessfully, obtain the TV programme of default television channel, effectively solved the problem of endless loop.
Fig. 3 is a kind of structural representation of playing the TV Festival destination device that the embodiment of the present invention provides, and the device of the embodiment of the present invention can be applied on Set Top Box.Device in the embodiment of the present invention at least can comprise and watches programme information acquisition module 310, target program to confirm module 320 and program playing module 330 as shown in the figure, wherein:
Watch programme information acquisition module 310, for obtaining user's the programme information of watching, the described programme information of watching programme information to comprise the TV programme that at least one user watched.Concrete, the TV programme that Set Top Box can be watched at least one user is in advance added in default customer data base, when watching programme information acquisition module 310 to receive start-up command or entering the instruction of application from standby, obtain user's the programme information of watching in described customer data base, the described programme information of watching the TV programme in programme information comprises that programm name, program broadcasting time, the total playing duration of program and program play the period, and described programme information is the accumulative total of the information of user's TV programme of watching within a period of time.For example, having programm name in customer data base is " news hookup " TV programme, the program broadcasting time is " 2 ", program is play total duration for " 3H ", it is " 19:00-19:30 " that program is play the period, when the user watches " news hookup " again, Set Top Box is carried out record to this information of " news hookup " of watching, get this playing duration for " 30min ", playing the period is " 21:30-22:00 ", the information that Set Top Box gets this is added in the programme information that customer data base is corresponding, in customer data base, the program broadcasting time of " news hookup " is " 3 ", program is play total duration for " 3.5H ", it is " 19:00-19:30 " and " 21:30-22:00 " that program is play the period.
The target program is confirmed module 320, for according to the described programme information of watching of watching programme information acquisition module 310 to get, at current EPG, confirming the target TV programme.Optionally, the target program confirms that module 320 can further comprise as shown in Figure 4: candidate program list generation unit 321 and target program acquisition unit 322, wherein:
Candidate program list generation unit 321, for according to the described programme information of watching the TV programme of programme information, be kept in the candidate program list meeting pre-conditioned TV programme.Concrete, described pre-conditioned can be to watch the program of the TV programme in programme information to play the period to comprise the system current time or watch TV programme program in programme information to play total duration and reach default playing duration (as 0.5H, 1H or 1.5H etc.).For example, it is " 19:00-19:30 " and " 21:30-22:00 " that the program of " A " is play the period, it is " 21:00-22:00 " that the program of " B " is play the period, it is " 10:00-12:00 " that the program of " C " is play the period, and the system current time is " 19:02 ", by contrast, only have program broadcasting period " 21:30-22:00 " of " A " to comprise system current time " 19:02 ", " A " is kept in the candidate program list.Again for example, the program of " A " is play total duration for " 0.5H ", the program of " B " is play total duration for " 2H ", the program of " C " is play total duration for " 3.5H ", and default playing duration is " 0.6H ", play total duration by the program of contrast " B " and " C " and reach default playing duration, " B " and " C " is kept in the candidate program list.Candidate program list generation unit 321 will be watched the program of the TV programme in programme information to play the period comprising the system current time or watch TV programme program in programme information to play the TV programme that total duration reaches default playing duration and be kept at the candidate program list.
Target program acquisition unit 322, contrasted for the programme information of the TV programme in the programme information of the TV programme by described candidate program list and current EPG, obtains the target TV programme of programme information coupling in current TV Guide.Optionally, target program acquisition unit 322 can further comprise as shown in Figure 5: program sequence subelement 322a and target program acquisition subelement 322b, wherein:
Program sequence subelement 322a, carry out the program sequence for the programme information of the TV programme according to described candidate program list to the TV programme in described candidate program list.Concrete, the weights that program sequence subelement 322a can play total duration and/or program broadcasting time according to the program of the TV programme in the candidate program list carry out the program sequence to the TV programme in described candidate program list, and the order descending according to weights is arranged in TV programme in the candidate program list.
Target program acquisition subelement 322b, for successively the programme information of the TV programme in the programme information of the TV programme of described candidate program list and current EPG being contrasted according to described program ranking results, obtain in current EPG with described candidate program list in the programme information of the TV programme target TV programme of mating.Concrete, target program acquisition subelement 322b searches for the programme information of the TV programme in the candidate program list successively according to described program ranking results in the TV programme of current EPG, obtains the target TV programme with described programme information coupling.For example, described target program acquisition subelement 322b can search for the programm name of the TV programme in the candidate program list successively according to described program ranking results in the TV programme of current EPG, obtains the target TV programme with described programm name coupling.
Optionally, the target program confirms that module 320 can also comprise default program acquiring unit 323, wherein:
Default program acquiring unit 323, if the programme information for the TV programme by the programme information of the TV programme of described candidate program list and current EPG contrasts unsuccessfully, from current EPG, obtain preset television channel TV programme as the target TV programme.Concrete, the user can preset one or more television channels, in the target program is confirmed the programme information of module 320 TV programme in current EPG in Preset Time, do not search with the candidate program list in the programme information of programme information coupling of TV programme, in the television channel of user preset, obtain arbitrarily a television channel, using the TV programme of the current broadcasting of described television channel as the target TV programme.
Implement the embodiment of the present invention, have following beneficial effect: the embodiment of the present invention is by obtaining user's the programme information of watching, the programme information of the TV programme of the described programme information of watching the TV programme in programme information and current EPG is contrasted, obtain the target TV programme, realized automatically playing for the user TV programme of liking; Further, to described, watch the TV programme in programme information to be screened, obtain the candidate program list, after described candidate program list is sorted, obtain successively the target TV programme in current EPG, improved the efficiency of obtaining the target TV programme; Further, if the programme information of the TV programme of the programme information of the TV programme in described candidate program list and current EPG is contrasted unsuccessfully, obtain the TV programme of default television channel, effectively solved the problem of endless loop.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise the flow process as the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belong to the scope that the present invention is contained.