Summary of the invention
The object of the present invention is to provide a kind of method that play different displaying contents subregion that in same display screen, realizes.This method can realize ad content and news content subregion independent play-out separately on same screen, the size of each play area and shape are adjustable arbitrarily, its play content can customize in advance, and is made into the broadcast list, and each display terminal is inquired about broadcast automatically according to playing single arrangement.
Another object of the present invention is to provide a kind of being fit to carry out the display device that the screen partition territory shows by above-mentioned patented method.The display screen of this display device is a rectangle or approximate rectangular, and length on both sides is less than the length of the right and left about it.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of method that in same display screen, realizes the broadcast of different displaying contents subregion, be used to realize ad content and news content subregion independent play-out separately on same screen, wherein ad content is a video file format, it is play by the media player that is embedded in the html file, described news content is a html format, show outside the viewing area of described media player, it is characterized in that: this method comprises the steps:
(1) creates the startup picture;
(2) which kind of mode inquiry program split screen is;
(3) queries ad accounts for the ratio of screen;
(4), determine the size of media player according to the result of step (2), (3);
(5) programme of time before inquiry character is fated, whether the top line of analyzing in the available programme is full frame news;
(6) inquire about current available news, available news is all generated webpage, and sum is noted;
(7) start media player according to current programme, close the startup picture simultaneously;
(8) according to playing single content play program;
(9) be played to programme and have or not the news that to broadcast in the Query Database when last?
(10) if having, available news is read out, and generate interim web page files, change step (12) over to; If do not have, inquiry is about to the formulating programme of broadcast;
(11) last program the time, according to whether having news to judge whether that needs upgrade the rendition list;
(12) enter full frame news and play sequential/enter advertising column circulation next time.
A kind ofly be used to implement the display device of method according to claim 1, it is characterized in that:
The display screen of described display device is a rectangle or approximate rectangular, and length on both sides is less than the length of the right and left about it.
Method and the display device that play different play content subregion in the realization display screen of the present invention have following characteristics:
1. this method can realize ad content and news content subregion independent play-out on same screen, the size of each play area and shape are adjustable arbitrarily, its play content can customize in advance, and is made into the broadcast list, and each display terminal is inquired about broadcast automatically according to playing single arrangement.
2. in the process that split screen is play, adopt the two-wire journey to play for taking the more vision signal of resource, thereby guarantee the advertising image clear and smooth of broadcast, blank screen or pause can not occur.
3. display device of the present invention aims at realizes split screen broadcast design, and each viewing area can be play according to normal displaying ratio when split screen is play, and meet people's appreciation habit, also makes whole image nature attractive in appearance.
Embodiment
Implementing the hardware that the method for the invention need use is the above computing machine of a Pentium, and this computing machine has the video card of supporting the viewing area spinfunction, as seven rainbow raging fire G440 (GeForce 440) etc.Software environment comprises Microsoft Windows series operating system, SQL SERVER 7 and ACCESS database.
The basic ideas of one's duty screen playing method are to utilize existing html format file to support the function of embedded media player (Media Player), earlier ad content is made into the file layout that media player can be supported, play by the media player that is embedded in the html format file, simultaneously news or bulletin content directly are made into the html format file, outside the viewing area of media player, show its content.For existing html format file, the viewing area of embedded media player and display position all can be adjusted arbitrarily by external command, therefore this method has also just realized ad content and news or bulletin content subregion independent play-out separately on same screen easily, and has guaranteed that the size of each play area and shape can adjust arbitrarily.Above-mentioned media player can be realized with the control of the Media Player kernel that calls Microsoft.Because Windows operating system is good real-time multi-task operating system, therefore the media player that carries out the ad content broadcast can be more than one, this not only can realize the two-wire journey in the playing programs process, can also make the independent play-out zone in the screen be three or more as required.
The specific implementation of above-mentioned thinking can be represented with Fig. 1.In Fig. 1, background data base adopts the ACCESS 2000 of Microsoft and SQL SERVER 7 to realize that it is the listing of stores advertisements program broadcast on the one hand, the content of storing news or bulletin on the other hand.Advertising programme is made into the file layout that media player is supported in advance, also is stored in the database.This partial content is play in customization zone 1, the advertising programme content of playing is determined that by the listing of database another part is play in customization zone 2, news is play in this zone, its word content is provided by database, and display page is showed by the html file that Automatic Program generates.The technology that this Automatic Program generates html file is known technology already, does not just describe in detail at this.Because the news content display page is generated by Automatic Program, change the content of broadcasting news if desired, only need get final product, do not need transport format information by the word content that the database interface transmission will change, therefore need data quantity transmitted very little, do not take communication bandwidth substantially.In the present invention, broadcast interface customizes in advance, and can adjust broadcast interface according to the content of database.In addition, the user can also intercut the program of special customization at any time, and display device is changed broadcast interface automatically according to the customization mode of program, for example can transfer full frame news or full frame advertisement to.Because media player can be supported audio frequency output, therefore can also select to play different advertisement background music according to actual needs.
The flow process of the control program shown in Fig. 1 as shown in Figure 2.It comprises the steps: at first to create the startup picture; Which kind of mode inquiry program split screen is; Queries ad accounts for the ratio of screen; According to the result of front, determine the size of media player; The programme of time before inquiry character is fated, whether the top line of analyzing in the available programme is full frame news; Inquire about current available news, available news is all generated webpage, and sum is noted; Start the media player control according to current programme, close the startup picture simultaneously; According to playing single content play program; Be played to programme and have or not the news that to broadcast in the Query Database when last.If have, available news is read out, and generate interim web page files; If do not have, inquiry is about to the formulating programme of broadcast.When to a last program time,, select to enter full frame news then and play sequential or enter advertising column circulation next time according to whether having news to judge whether that needs upgrade the rendition list.
Figure 3 shows that the sub-process figure of the formulating programme of time before inquiry character is fated in the step shown in Figure 2.It comprises the steps: at first to inquire about the column record that current time can be used, if have, then read the corresponding column content of this record,, then inquire about before the current time and be the column record on the same day if do not have, if this record does not still exist, then inquire about after the current time and be the column record on the same day, if this record exists, then according to time flashback arrangement, get available the last item record, read the corresponding column content of this record.If still do not exist after the current time and for the column record on the same day, then inquire about available temporary file name, if should exist by record, then inquire about the broadcast time of next bar record, get poor less than the corresponding time of current time of available temporary file time, still inquire about available temporary file name with next record.After above-mentioned steps is finished, give the program names array assignment, if the program number under this column is 0 then seeks current available full frame rolling news record automatically; If not then inquire about available scenic film, notice media play control broadcast program.
Remaining each step all is the existing conventional technological means among Fig. 2, has not just described in detail at this.
For blank screen or pause do not appear in the ad content that makes broadcast, the present invention takes the two-wire journey to play in the advertisement video content play.In general, the method of displaying video audio/video file is to system's application resource (comprising thread, application memory buffer space and the GDI object etc. that are created among the CPU) by playout software, the file content that will play again after system distributes (a whole or part) reads in internal memory, just can play afterwards; Such playing flow can make has certain interval between two adjacent programs, and reason is to exist program to the time of system's application resource and the time of file being read in advance internal memory.The quantity of the time of broadcast file, required demoder (main relevant with image quality, quality is good more, and required demoder is complicated more) all can influence the broadcasting speed (being directly proportional) of file.Fig. 4 is the process flow diagram that the present invention adopts two-wire journey broadcast video signal.This flow process is such: create 2 players at first simultaneously, when one of them (calling 1 in the following text) when playing, another (calling 2 in the following text) is pre-loaded with the program that the next one is play on the backstage, and broadcasting pictures is customized to first frame; Because what the user saw this time is the file that has read in advance in the broadcast of internal memory by 1, the situation that picture is stagnated therefore can not occur; When 1 broadcast finishes, trigger 2 automatically and play, because 2 file content has read in internal memory in advance and set up thread in CPU, therefore can play out 2 corresponding file contents immediately, realized not having between 1 and 2 the continuous broadcast of stagnation; Simultaneously, 21 files that the next one need be play when playing are pre-loaded and broadcasting pictures is customized to first frame; Loop play by that analogy.Be connected very tight like this in the playing process between the promotional literature, the no blank screen of basic realization pauses and plays.
The concrete course of work of above-mentioned each broadcast thread is such: at first start player, player reads the information (size, type etc.) of played file, submit information to system, and required resource is play in application, system analyzes the information of submitting to, for thread is set up in this broadcast, the storage allocation space, load the required dynamic link file (dll) of the type file code stream decoding, player returns information feedback in system, player reads in internal memory with the part of file, begins to play audio/video file.
In the present invention, for the advertisement of all broadcasts, adopt adaptive method to stretch, the film that is about to be play is full of the predetermined play area of system automatically, make whole screen seem to enrich, full.This point can be taked the method for " painted screen " on technology realizes, the interface of program is covered the viewing area of whole screen, makes the maximum picture of movie can be full of screen like this.Utilize the DirectDraw technology in the DirectX technology of Microsoft issue, with the picture of film in real time (according to each frame) carry out again picture being outputed to display behind the convergent-divergent.For example the broadcast of original is of a size of 800 * 600, and the broadcast of actual needs is of a size of 1024 * 768, utilizing so stretches can make the output picture reach 1024 * 768, certainly the quality of picture can descend to some extent, but image quality is simultaneously relevant with decoding device, such as the file that utilizes Mpeg4 form coding, utilize the Mpeg4 decoding can remedy a part during decoding because the image quality reduction that stretches and cause.What this stretching simultaneously was the most special is that general player stretching meeting stretches according to the program ratio, and carrying out convergent-divergent with DirectDraw then is picture to be stretched to all over the screen, and not will consider the ratio problems of program.For example same with broadcasting pictures is, and 200 * 100 source document is stretched to that 800 * 600 screen broadcasts, and the image of general player output is 800 * 400 picture dimension, and other places are blank screen; And the image that utilizes DirectDraw output can complete covering 800 * 600 the zone.Certainly also can bring certain picture distortion like this.
In the present invention, advertisement is broadcasted the size in zone and can be adjusted dynamically according to systematic parameter, has system parameter table in background data base, and parameter wherein is given according to the concrete condition of every machine by server.Screen form when wherein having following Several Parameters to be used for controls playing:
Split screen mode parameter DisPlayScale: be used to be provided with split screen (advertisement part and news section) mode; About it can be supported and two kinds up and down, be used for different broadcast occasions.Such as, when adopting general screen to play, mostly be split screen up and down; Can use left and right sides split screen when adopting wide screen; Can guarantee that so same promotional literature can broadcast with normal ratio under different playing environments.
Advertisement accounts for screen proportion parameter MovScale: advertisement accounts for the ratio of screen size in the split screen program, provide with the number percent form.By being set, this project can adjust the ad playing ratio according to customer requirement, when the film of playing be special size when still can guarantee when requiring to broadcast with normal ratio as 16: 9 whole screen the part of blank screen can not appear, this is because remainder is had the web page files of news content to fill automatically.
The news play area is broadcasted the html file that comprises news content among the present invention.It is by Play System according to the data recording in the database, take out certain record at every turn and generate html web page automatically, broadcast in order then, when broadcasting to the end once more in the database value upgrade.Because database is in this locality, inquiry velocity is very fast, so circulation time sluggishness can not occur substantially once more.
The present invention adopts html language to generate news web page, can guarantee the attractive in appearance of webpage, chooses different Backgrounds and style sheet according to the record in the database at different news, makes webpage rich and varied, and whole screen seems to coordinate more.
The news data table is arranged in background data base, wherein include title, content, required picture name and the style sheet title of news; The path of depositing of picture file and style sheet file has been redefined for Image catalogue and StyleSheet catalogue (having created during installation) under the program installation directory; Playing program takes out these contents in the record, and generates automatically under the News catalogue under the program installation directory and play required interim web page files, the back Delete All that finishes playing, and regenerate interim web page files according to the new record of inquiry gained.
If there is important notice in service provider, can make picture needed full frame notice occur by the method that press center issues highlight; At this moment advertisement meeting shields automatically, and this screen is entirely html page and is full of.And the time of this demand can arbitrarily be set from 1 second to 1 day as required.
As shown in Figure 5, for making method of the present invention realize best split screen display effect.The present invention also provides a kind of display device that is fit to this kind display mode.The characteristics of this kind display device are: its display screen is a rectangle or approximate rectangular, and length on both sides is less than the length of the right and left about it.System be that split screen shows up and down when adopting general screen to play, and adopts this display screen can guarantee that each split screen zone can broadcast with normal ratio under different playing environments, and makes the effect of whole demonstration best.This kind display screen can adopt common liquid crystal panel, also can adopt CRT monitor.But adopt liquid crystal panel ideal,,, common LCDs is just placed vertically and can be achieved the goal as the simplest a kind of implementation because existing liquid crystal panel can support display screen with arbitrarily angled inclination.Certainly, realize that the used display device of the present invention also can be 16: 9 common display screens.
What need statement is; particular of the present invention is described in detail the present invention; for a person skilled in the art, the various conspicuous change of under the situation that does not deviate from the spirit and scope of the present invention it being carried out is all within protection scope of the present invention.