Summary of the invention
At the defective that exists in the prior art, the update method that the purpose of this invention is to provide a kind of caption broadcasting list of online programme driving, this method can generate new caption broadcasting list according to the former caption broadcasting list of the online programme after the channel change and this channel.
To achieve these goals, the technical solution used in the present invention is that the update method of the caption broadcasting list that a kind of online programme drives may further comprise the steps:
(1) the captions broadcast system obtains the change new online programme of channel of online programme in the video broadcast system;
(2) the new online programme that obtains in the traversal step (1) takes out a undressed task period in this new online programme;
(3) the task period of taking out in the traversal step (2), take out the undressed clauses and subclauses period of this task in the period;
(4) according to the identifier of task period and clauses and subclauses period, in former subtitle list, search corresponding caption object, if do not find corresponding caption object, then generate new caption object, new caption object is joined in the former caption broadcasting list;
(5) caption object that finds is carried out following processing:
The beginning and ending time of supposing the broadcast of clauses and subclauses section is respectively b0 and b1, and the original beginning and ending time of broadcasting of caption object is respectively t0 and t1, and the beginning and ending time of the clauses and subclauses time period that caption object is original is respectively x0 and x1, and the time period, [t0, t1] was within [x0, x1];
The broadcast time started t0 ' that caption object is new=b0+ (x0-t0), close of transmission time t1 '=b1+ (x1-t1), will [t0 ', t1 '] fix on approximately within [b0, b1];
The clauses and subclauses time period that caption object is new is [b0, b1];
(6) repeating step (3) disposes up to all clauses and subclauses periods to step (5);
(7) repeating step (2) disposes up to all task periods to step (6);
(8) traversal is through above-mentioned amended caption broadcasting list, task identifier and entry identifier according to each caption object, in new online programme, search and whether have the corresponding clauses and subclauses period, if there is no, then this caption object is deleted from amended caption broadcasting list, obtain final caption broadcasting list.
The update method of the caption broadcasting list that aforesaid a kind of online programme drives, the mode that the middle captions broadcast system of step (1) obtains online programme comprises " pushing away " pattern and " drawing " pattern; After described " pushing away " pattern is meant that the video broadcast system is packaged into the XML protocol format file that both sides define with online programme, the WEB service of initiatively calling the captions broadcast system, with XML protocol format file push to the captions broadcast system; Described " drawing " pattern is meant that the captions broadcast system sends the message that a request obtains online programme to the video broadcast system, after the video broadcast system receives this message, the online programme of captions broadcast system request is packaged into the XML protocol format file that both sides define, then this document is sent to the captions broadcast system.
The update method of the caption broadcasting list that aforesaid a kind of online programme drives, wherein, the specific implementation process of described " pushing away " pattern may further comprise the steps:
1. the WEB service that the online programme of video broadcast system is obtained in definition in the captions broadcast system;
2. with step 1. in the definition the WEB service registry in the WEB server of captions broadcast system;
3. the WSDL with the 1. middle WEB service that defines of step is registered in the application gateway of video broadcast system;
4. the application gateway of video broadcast system calls the WEB service of obtaining the online programme of video broadcast system in the WEB server of captions broadcast system, and online programme is packaged into the XML protocol format that both sides define, and active push is given the captions broadcast system.
The update method of the caption broadcasting list that aforesaid a kind of online programme drives, wherein, the specific implementation process of described " drawing " pattern may further comprise the steps:
1. dispose a messenger service in the application gateway of video broadcast system, described messenger service is subjected to the triggering from " obtaining online programme " message of captions broadcast system;
2. the captions broadcast system sends " obtaining online programme " message to the video broadcast system;
3. after the messenger service in the application gateway of video broadcast system receives this message, from database, take out the online programme of captions broadcast system request, be packaged into the XML protocol format file that both sides define, and this document is returned to the captions broadcast system.
The update method of the caption broadcasting list that aforesaid a kind of online programme drives, the method for the caption object that the generation described in the step (4) is new may further comprise the steps:
1. search the mapping item that is complementary according to program category and the beginning and ending time of described clauses and subclauses period in the captions mapping table, the condition of coupling is that program category is identical, and the time period of mapping item is in the beginning and ending time of clauses and subclauses period section;
2. the template ID according to the mapping item that is complementary finds corresponding template file;
3. replace template according to the material content and the template type of the mapping item that is complementary, generate caption object, and the template of unloading mapping; This caption object is inherited described task period, clauses and subclauses period and the following attribute of the mapping item that is complementary: the task identifier of caption object is inherited the identifier of task period, the entry identifier of caption object is inherited the identifier of clauses and subclauses period, the clauses and subclauses time period of caption object is inherited the beginning and ending time section of clauses and subclauses period, and the broadcast time of caption object is inherited the time period of mapping item.
The update method of the caption broadcasting list that aforesaid a kind of online programme drives, wherein, described identifier is the GUID identifier.
Adopt method of the present invention, realized generating new caption broadcasting list according to the former caption broadcasting list of the online programme after the channel change and this channel.
Embodiment
Describe the present invention below in conjunction with execution mode and accompanying drawing.
In actual applications, the online programme meeting of channel is often adjusted, and what comprise Pgmtime postpones, inserts new program, a deletion program etc.Will carry out again coupling as input this moment with new online programme and former caption broadcasting list, generates new caption broadcasting list.
Fig. 1 has shown the update method flow process of the caption broadcasting list of online programme driving of the present invention, may further comprise the steps.
(1) the captions broadcast system obtains the change new online programme of channel of online programme in the video broadcast system.
Fig. 2 has shown the pattern of two kinds of realizations of the new online programme of captions broadcast system acquisition video broadcast system, and a kind of is " pushing away " pattern, and a kind of is " drawing " pattern.The pattern that " pushes away " is meant in two systems that carry out exchanges data, and after system A became the file of the XML protocol format that both sides define with data encapsulation, the initiatively WEB of calling system B service was pushed to packaged data among the B of system.The pattern of " drawing " is meant in two systems that carry out exchanges data, when the A of system need be when the B of system obtains data, system A sends a message to the B of system, after system B receives this message, the data encapsulation that the A of system is needed becomes the file of the XML protocol format that both sides define, and sends to the B of system.Wherein, " pushing away " pattern is to realize with the communication interface of WEB service; The pattern of " drawing " is to realize with the communication interface of message queue technology.
Fig. 3 has shown the realization flow of " pushing away " pattern, and promptly the video broadcast system is pushed to the online programme of channel in the captions broadcast system and goes, and mainly may further comprise the steps.
1. in captions broadcast system definition WEB service, obtain the current up-to-date online playbill data of video broadcast system:
public?String?pushNewestPlayList(String?channelID)
Wherein, parameter c hannelID represents the sign of channel, and the content of returning is the character string of an XML form, comprises the current up-to-date online programme of this channel.
2. with the pushNewestPlayList service registry in the WEB server of captions broadcast system.
3. the WSDL of pushNewestPlayList service is registered to the application gateway of video broadcast system.
4. the application gateway of video broadcast system calls the pushNewestPlayList service.
In the video broadcast system, when adjustment has taken place in the online programme of certain channel, application program on the application gateway just can be described the pushNewestPlayList service of calling the WEB server that is arranged in the captions broadcast system according to WSDL, the current up-to-date online programme of this channel is packaged into the file of an XML form, and active push is given the captions broadcast system.
Fig. 4 has shown the realization flow of " drawing " pattern, and promptly the captions broadcast system is moved the online programme of video broadcast system channel to self system, mainly may further comprise the steps.
1. messenger service is disposed: in messenger service of application gateway deploy of video broadcast system, this service is subjected to the triggering from " obtaining programme " message of captions broadcast system.
2. message trigger, Message Processing and data interaction: the captions broadcast system sends " obtaining programme " message to the video broadcast system, after the messenger service of video broadcast system receives this message, from database, take out the up-to-date online programme information of this channel, write in the XML file, and this document returned to the captions broadcast system, after the captions broadcast system obtains this file, read programme information wherein, write in the database.
When specific implementation, can adopt " pushing away " pattern, also can adopt " drawing " pattern, can also adopt two kinds of patterns simultaneously.Under most of applied environments, " pushing away " pattern of use can satisfy the demands, but from the perfect in shape and function of system and the angle of operability, " drawing " pattern also is necessary.In the present embodiment, adopt " pushing away ", " drawing " two kinds of patterns, it is recessive wherein " pushing away " pattern, participation that need not be artificial; And " drawing " pattern is a dominance, needs the manual triggering of application program.
The data model of the online programme that obtains from the video broadcast system is to use the XML agreement, and programme is described to online television.
Online programme based on the XML form comprises two-layer configuration, is respectively " task period " and " clauses and subclauses period ".The online programme of an XML form can comprise a plurality of " task periods ", and each " task period " can comprise a plurality of " clauses and subclauses periods ".Different " the task periods " identified by unique ID and distinguishes, and different " clauses and subclauses periods " also are to be distinguished by unique ID.
The online programme of XML form comprises as lower node:
The PROGRAM node, the beginning of an online programme of expression comprises FILE node, INFO node and PGM node;
The FILE node, the information of expression file, this node comprises name (title of file), version (version of file) and create (creation-time of file);
The INFO node, be used for describing channel and date and time information, comprise channel (sign of channel), date (current date), name (time period, " morning ", " afternoon " or " night "), description (description of channel uses a GUID to represent) and index (call number of channel);
The PGM node, content node is as the container of task period and clauses and subclauses period;
ITEM: the task period, each ITEM describes a task;
MAIN node: the time started and the concluding time of describing task, comprise date (broadcasting the date), time (broadcast time), som (Start Of Media, material is gone into a little), dur (duration), name (time name section), the id (unique identification of task period, in whole online programme, do not repeat, this id produces during the period in newly-increased task, the deletion task was eliminated during the period, and updating task remained unchanged during the period);
The CLIP node, the clauses and subclauses period, comprise that date (broadcasting the date), time (broadcast time), som (go into a little, when form is: divide: second: frame), eom (goes out a little, when form is: divide: second: frame), (program category of numeral is as 0: advertisement for name (title of clauses and subclauses period), PrimaryID (unique identifier) and CLIPTYPE; 1: news; 2: TV play etc.).
(2) the new online programme that obtains in the traversal step (1) takes out a undressed task period in this new online programme.
(3) the task period of taking out in the traversal step (2), take out the undressed clauses and subclauses period of this task in the period.
(4) according to the GUID identifier of task period and clauses and subclauses period, in former subtitle list, search corresponding caption object, if do not find corresponding caption object, then generate new caption object, new caption object is joined in the former caption broadcasting list.
The method that generates new caption object may further comprise the steps:
1. search the mapping item that is complementary according to program category and the beginning and ending time of the clauses and subclauses period described in the step (3) in the captions mapping table, the condition of coupling is that program category is identical, and the time period of mapping item is in the beginning and ending time of clauses and subclauses period section;
2. the template ID according to the mapping item that is complementary finds corresponding template file;
3. replace template according to the material content and the template type of the mapping item that is complementary, generate caption object, and the template of unloading mapping; This caption object is inherited task period, the clauses and subclauses period described in step (2) and the step (3) and the following attribute of the mapping item that is complementary: the identifier of the task identifier succession task period of caption object, the entry identifier of caption object is inherited the identifier of clauses and subclauses period, the clauses and subclauses time period of caption object is inherited the beginning and ending time section of clauses and subclauses period, and the broadcast time of caption object is inherited the time period of mapping item.
The captions mapping table is meant a kind of realization mechanism that online programme and subtitle template, captions material are mated, and different channels has different mapping tables according to Promgramming.The captions mapping table has been set up the corresponding relation of program category ClipType, subtitle template ID, broadcast slot and the replacement material of online programme.
Subtitle template has following several types, and the process and the Substitution Rules of making are as follows.
1. the template of Alternate text: make one and broadcast scene, revise the name of figure tuple and pel then, the name of the literal pel that requirement will be replaced also is " replace " for the name of the figure tuple at " replace " and its place.
2. replace the template of picture: make one and broadcast scene, revise the name of figure tuple and pel then, the name of the picture pel that requirement will be replaced also is " replace " for the name of the figure tuple at " replace " and its place.
3. replace the template of animation.Make one and broadcast scene, and incite somebody to action animation primitive called after " replace " wherein.
The template of 4. not replacing.Make one and broadcast scene, wherein the name of all pels is not set to " replace ".
Material in the captions broadcast system is meant the content of the actual broadcast that template is replaced, and mainly comprises following several types: 1. word content, as TV play title, name of tv column, advertisement trade name, advertising matter title etc.; 2. rolling text content is as spectators' note, lastest news, instant weather information, public service information, advertisement text, story introduction, program guide etc.; 3. content of image files is as the static Logo of column, the static Logo of advertisement etc.; 4. animation file content is as advertisement countdown, column animation Logo, advertisement animation Logo etc.; 5. TV station's station symbol content; 6. standard digital clock and simulated clock simulation clock.
(5) caption object that finds is carried out following processing:
The beginning and ending time of supposing the broadcast of clauses and subclauses section is respectively b0 and b1, and the original beginning and ending time of broadcasting of caption object is respectively t0 and t1, and the beginning and ending time of the clauses and subclauses time period that caption object is original is respectively x0 and x1, and the time period, [t0, t1] was within [x0, x1];
The broadcast time started t0 ' that caption object is new=b0+ (x0-t0), close of transmission time t1 '=b1+ (x1-t1), will [t0 ', t1 '] fix on approximately within [b0, b1];
The clauses and subclauses time period that caption object is new is [b0, b1];
(6) repeating step (3) disposes up to all clauses and subclauses periods to step (5);
(7) repeating step (2) disposes up to all task periods to step (6);
(8) traversal is through the amended caption broadcasting list of above-mentioned steps, GUID identifier according to the task and the clauses and subclauses of each caption object, in new online programme, search and whether have the corresponding clauses and subclauses period, if there is no, then this caption object is deleted from amended caption broadcasting list, obtain final caption broadcasting list.
Method of the present invention is not limited to above-mentioned embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.