Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 realizes Digital Media combination playing system structure chart in the embodiments of the invention, this system mainly forms by playing management server, player, the network platform and display device, play management server will comprise video, picture and literal etc. by the network platform material information, and media content such as real time information, control information is sent to player, wherein, material information also can be kept at player this locality.This system specifically comprises:
Player is used for template and broadcasting list according to customization, detects and reads suitable broadcast plan and play, and this player may operate on the displays such as liquid crystal, plasma or CRT;
Play management server, be used for the play content and the operation of player are managed;
Content server is used to provide the play content of player.The content service implement body can comprise and is used to provide the media play content medium content server, is used to provide streaming media playing content streaming server, in addition, also can the on-the-spot content encoding that video camera photographs be sent to player plays by direct broadcast coder.
Wherein, the structure of player comprises as shown in Figure 2:
Model customization module 21 is used to customize play template;
Broadcasting list customized module 22 is used for according to the template of described customization broadcasting list being set;
Playing module 23 is used for according to described broadcasting list content detection and reads suitable broadcast plan, plays.
Information receiving and transmitting unit 24 is used to receive and dispatch the message of obtaining broadcasting list and file;
Memory cell 25 is used to store broadcasting list and file.
By this system, can realize the broadcast of multiple media content combination in any, player receives the control command of broadcast management server transmission and realizes media play according to instruction.The keeper can concentrate or the distributed management player by network, can edit combination broadcast plan and be applied to single or multiple players, realizes that video, audio frequency, text, picture, the live combination of looking audio frequency real time information etc. play.Can play the content that derives from different aforementioned sources in the zones of different on the display terminal screen.
Based on system shown in Figure 1, the method that the combination of realization Digital Media is play specifically may further comprise the steps as shown in Figure 3:
Step 301, custom built forms.Template can be drawn playing the management server end by the keeper, and is handed down to the user and selects, and is perhaps needed to draw voluntarily by self on visual editor by the user.With template shown in Figure 4 is example, in Fig. 4, has defined 7 different positions altogether, and everybody is equipped with different attribute, and these attributes include but are not limited to type, level, effect and effect etc.Wherein, type is the type of this position play content, as video, picture and literal etc.; Level is the figure layer of this position under on screen, ground floor is at the top layer of screen, when the different levels content is overlapping, lap shows high-level content, but, the setting of level is not only whom to limit be superimposed upon above whose, also relate to correct indicating template, problems such as picture viewing area conflict, the position in Fig. 41 for example when the reproduction time of " abcd " arrives, will disappear, and when not setting the follow-up play content, will certainly cause the disappearance of the partial content of that dog head on the background picture, just be necessary the filling picture of 1 a continuation broadcast dog picture this time, to reach user's real purpose in the position, in other words, the level of position 1 has become transparent for lower floor; Effect is the display effect of content on screen of diverse location, and for example picture can adopt static effect, and static demonstration the on screen, dynamic display types comprises fading out and come out gradually, as literal, or left and right sides scroll-up/down, as the issue Word message, or the like.Table 1 has been listed the attribute setting of each position among Fig. 4:
|
Type |
Level |
Effect |
Effect |
Position 0 |
Picture |
1 |
--(static state) |
Background |
Position 1 |
Literal |
2 |
Fade out come out gradually (dynamically) |
The information issue |
Position 2 |
Literal |
2 |
Roll left (dynamically) |
The information issue |
Position 3 |
Literal |
2 |
On roll (dynamically) |
The information issue |
Position 4 |
Picture |
2 |
Dynamic gloss (dynamically) |
Beautify |
Position 5 |
User's scribble |
3 |
--(static state) |
-- |
Position 6 |
User's scribble |
3 |
--(static state) |
-- |
Position 7 |
User's scribble |
3 |
--(static state) |
-- |
Table 1
Position 5,6 and 7 play content are User Defined.
Step 302, customization broadcasting list.After the selected template of user, will customize the play content of each position in this template, be each position customization broadcasting list.Dual mode customization broadcasting list is arranged, and a kind of user of being browses optional the rendition list by remote controller on television set, the file that selection will be play; Another kind is that the keeper is directly playing the model customization broadcasting list that the management server end is selected according to the user.Broadcast content in the broadcasting list can be kept at player this locality, also can be from network side, and for example streaming media server can provide materials such as the various advertisements that can not shift to an earlier date, literal and video; Direct broadcast server is used to provide the audiovisual information from the scene, and it is converted into video flowing; The media production server is used to handle source of media file to be added, is translated into the media materials that player can be used; The Still Media content server is used to preserve the media materials of various static state, as literal etc.
Table 2 is the broadcasting lists that customization is finished, and comprises following content:
Sequence number |
Filename |
File size |
Broadcast time |
0001 |
yx.mpg |
252m |
2007/08/14 12:30:00 |
0002 |
hk.mp3 |
4.3m |
2007/08/14 14:50:00 |
0003 |
Sdbj01.mpg |
360m |
2007/08/14 14:55:00 |
0004 |
2.avi |
186m |
2007/08/14 18:30:00 |
0005 |
channel0.mp4 |
26m |
2007/08/14 19:30:00 |
Table 2
After the broadcasting list customization was finished, the broadcasting list of each position is combined just became a broadcast plan.
Step 303, transmission broadcasting list.Broadcasting list is stored in document form on the hard disk of player this locality, and each set-top box can have several broadcasting list files, and filename can be Plist_xx.lst, and wherein xx is 2 bit digital, and value is 00-99.The keeper of broadcast management server end can browse the broadcasting list on the player, adjusts the broadcast order of file on the broadcasting list, the file on the additions and deletions broadcasting list.
If being the keeper, on the broadcast management server, creates broadcasting list, then need send it to player, communications protocol adopts connection-oriented Transmission Control Protocol, all message field (MFLD)s are unit with byte bytes, except that character string, all integer fields are the network bytes preface, and Type_info is the sign of each message, account for 4 bytes (bytes).Send receiving process operates on the player always, listening port 5527, reception is set up request message from the connection of management server end, and move a new thread and connect with it, receive broadcasting list or other message, player and all packet sending and receivings of playing between the management server are all finished on port 5527.
Table 3 is for playing management server sends structure from the message of broadcasting list to player:
Type_info |
Plist_name |
Gjtp_username |
Gjtp_password |
Gjtp_ip |
File_num |
ID |
0xE008 |
16bytes |
10bytes |
10bytes |
15bytes |
4bytes |
4bytes |
File_name |
File_len |
Play_time |
File_type |
... |
Reserve |
20bytes |
4bytes |
20bytes |
1bytes |
... |
20bytes |
Table 3
Wherein, Type_info is a type of message, 4bytes; Plist_name is the file name of broadcasting list, and as Plist_01.lst, there is broadcasting list on the hard disk in player according to this title; Gjtp_username is the user name of transmission service; Gjtp_password is the password of service; Gjtp_ip is the IP address of server; File_num is the file number on the broadcasting list; ID: the broadcasting list reference number of a document, player does not deal with this, whenever plays behind the program this ID numbering and filename are returned; File_name: file name, attention: if this field is all filled with " 0 ", represent that then this program is an empty video file, player postpones to play next program at this, the time that postpones is provided by the delay field, and unit is second, and this moment, video screen was in the wait broadcast state, after postponing the given time, player is play next program automatically; File_len/delay: representing file size generally speaking, is unit with Mbytes (M), if File_name complete " 0 ", then this field is represented the second number that postpones; Play_time: broadcast time; File_type: file type, for example, other file of 0x00---, 0x01---video file, 0x02---audio file, 0x03---picture, 0x04---captions, 0x05---RTSP stream, 0xff---file directory; Reserve: reserved field, can expand.
After player received this message, the sequencing that file is arrived by message successively added that sequence number is arranged and exists on the broadcasting list.After player obtains this broadcasting list, be to come played in order, and play not according to the size order of id field by the precedence of the programm name that obtains.Simultaneously, return feedback message to playing management server, this message structure is as shown in table 4:
Type_info |
Plist_name |
Reserve |
0xF008 |
16bytes |
20bytes |
Table 4
Wherein, Type_info:4bytes, type of message; Plist_name: the file name of broadcasting list; The Reserve:20 byte, reserved field can be expanded.
Step 304, the suitable broadcast plan of detection.Player is that the selected suitable broadcasting list in each position is play on the template, below for detecting the method flow of suitable broadcast plan and broadcast, may further comprise the steps:
Step 3041, record most-likely time N.This most-likely time is provided with by the user, refers to that the user wishes the maximum time of broadcasting.
Step 3042, first broadcast plan is changed to current broadcast plan.This broadcast plan refers to comprise the complete broadcast plan of all position broadcasting lists of whole template.User or keeper may work together and customize a plurality of broadcast plans, and the purpose of this flow process is exactly to select suitable broadcast plan to play.
Step 3043, broadcast plan of selection are set to current broadcast plan, if the current time in system is more than or equal to the time started of current broadcast plan, and more than or equal to the concluding time of current broadcast plan, then next one broadcast plan is set to current broadcast plan, repeats this step; Otherwise carry out next step.This is because this broadcast plan is expired, should abandon, and by this step, all expired broadcast plans all can be filtered out.
If step 3044 current time in system is more than or equal to the time started of current broadcast plan, but, then detect suitable broadcast plan smaller or equal to concluding time of current broadcast plan.Because should the current just broadcast plan that will play of broadcast plan, the broadcast plan that can be referred to as to broadcast immediately.
Step 3045, in the playing process of current broadcast plan, player continues to detect other and broadcasts plan, equal the current time in system if at a time detect the time started of a new broadcast plan, then stop current broadcast plan immediately, described new broadcast plan is changed to current broadcast plan, this new broadcast plan is called regularly to be broadcast, and promptly reaches the just broadcast immediately of its time started.
If in the playing process of current broadcast plan, all the time do not detect regularly and broadcast, until current broadcast plan finishes, do not detect, and current system time does not also reach most-likely time N yet, show that the user also wants to continue to watch, but do not customize new broadcast plan, at this moment, should play current broadcast plan again, up to reaching most-likely time N.
If reach most-likely time N, current broadcast plan this moment plays, also not detecting new timing broadcasts, show that original of user plans to watch this constantly, but changed idea, also want to continue to watch, then at moment N, begin to play the predefined broadcast content of keeper, broadcast up to detecting new timing.This predefined broadcast content is called pad and broadcasts.
Step 305, read current broadcast plan, obtain the play area number, add back(ing) board, play corresponding document.At each position on the template, find the listed files to be broadcasted of this position, read suitable broadcast program and on player, play.File can be kept at this locality, also can obtain this document from the server of network side by corresponding message.The structure of this message is as shown in table 5:
Type_info |
Plist_name |
Loop |
Reserve |
0xE023 |
16bytes |
4bytes |
20bytes |
Table 5
Wherein, Type_info:4bytes, type of message; Plist_name: the file name of the broadcasting list that play; Loop: play setting, 0---only plays this broadcasting list once, promptly stops, and this broadcasting list of 1---loop play after 2---finishes this broadcasting list, is play the next broadcasting list (pressing the filename Plist_xx.lst played in order of broadcasting list) that exists on the hard disk successively; The Reserve:20 byte, reserved field can be expanded.
After the broadcast management server receives this message, corresponding document is sent to player plays, after finishing playing, player returns the feedback message shown in the table 6:
Type_info |
Plist_name |
Value |
Reserve |
0xF023 |
16bytes |
1bytes |
20bytes |
Table 6
Wherein, Type_info:4bytes, type of message; Plist_name: the file name of the broadcasting list that play; Value:1 represents to broadcast successfully, 0 expression failure; The Reserve:20 byte, reserved field can be expanded.
By above flow process, realized customization according to the user, play multiple Digital Media in the display terminal combination.In the present embodiment, can on different servers, read file to be played, realize that the distributed of program file deposit, rationally utilize existing resource, and have extensibility preferably by corresponding message.Player can be according to period planning automatically, work continuously, the zones of different on the screen, can manage respectively in different time sections.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.