Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Embodiment
Embodiment one
Fig. 1 shows the realization flow of the split screen method of the multi-medium information spreading system that the embodiment of the invention provides, and details are as follows:
Like Fig. 1, step S101 begins, and execution in step S103 obtains the viewable area of multi-medium information spreading system after the step S102 initialization.
In embodiments of the present invention, when obtaining the viewable area of multi-medium information spreading system, obtain the boundary parameter separatetop of viewable area, separateleft, separateright, the type of separatebottom and/or viewable area.Wherein separatetop representes viewable area analogy screen apical position; Separateleft representes viewable area analogy screen left position; Separateright representes viewable area analogy right position, and separatebottom representes viewable area analogy bottom of screen position.The type of viewable area includes but not limited to 16: 9 and 4: 3.
After obtaining monitor resolution, select the broadcast type of play area, in viewable area, create play area, viewable area is carried out the split screen configuration through external opertaing device.
Step S104 drags mouse and creates play area, and wherein the broadcast type of play area is meant the type of the multimedia messages that can play in this play area, and the broadcast type of selectable play area includes but not limited to video, audio frequency, picture or literal etc.External opertaing device includes but not limited to mouse, keyboard or its combination.
Wherein select the broadcast type of play area to be meant that selecting it for the play area that will in viewable area, create plays type.Its concrete implementation has multiple, and as exporting selectable broadcast list of types to the user, the user plays from this and selects a kind of broadcast type (like video) to get final product list of types.
When selecting establishment to be correlated with the play area type, the execution S105 of system limits the ratio of play area, and the user adjusts the position and the size of play area according to the prompting of restriction, position, size, the ratio of concrete refinement and the relevant play area of optimization.
Execution in step S107 calls the big or small location dependent information that api function calculates each play area after the configuration of the relevant play area of completion; Step S108 preserves the configuration file generation list related file file of play area, and last execution in step S109 finishes this configuration operation.
Wherein in viewable area, create play area through external opertaing device; Process such as Fig. 3 viewable area is carried out the split screen configuration are said; In this specifies; In viewable area, to create play area through mouse is that example is elaborated, and the principle of in viewable area, creating play area through other external opertaing device is similar:
At first system carries out the initialization that this creates the zone through calling related resource; Among the figure 301 begins to carry out; The upper and lower, left and right of 302 system auto-initiation viewing areas among the figure are the type of a limited boundary and the boundary parameter separatetop that obtains viewable area; Separateleft, separateright, separatebottom.
In the calling graph 303 selects to wear the type of part play area, and 304 in the execution graph is when the user presses left mouse button, and through the position that left mouse button is obtained mouse, the reference position that system selects to pass through the record mouse is as initial position.Invalid operation for fear of the user; As outside the viewable area of multi-medium information spreading system, pressing left mouse button; When record mouse reference position, if like the initial X coordinate of 305 mouses among the figure not in viewable area, then the X coordinate of mouse reference position is set to separateleft; If otherwise as the initial Y coordinate of 306 mouses among the figure not in viewable area; If the X coordinate equals the position of left limited boundary, 307 in the execution graph, the play area of selecting mouse drag to create afterwards is the play area of the establishment of this operation; If after 306 in the execution graph, the Y coordinate equals the position of left limited boundary like 308 among the figure, and same the execution created the position that this play area is created.Then the Y coordinate of mouse reference position is set to separatetop, can note the reference position of mouse like this.
After selecting to judge origin coordinates, create play area like 309 among the figure through the mode that drags mouse establishment play area; Call Create function creation play area like 310 among the figure, and the type of this play area is confirmed as the type of selected play area.Can in the viewable area of multi-medium information spreading system, create a perhaps play area of an above arbitrary shape through mouse like this; If like the X coordinate of 311 mouses among the figure greater than the right limited boundary of viewable area; Selecting the right limited boundary of X coordinate like 312 among the figure is right-hand boundary position; If the X coordinate lower limit like 313 mouses among the figure is lower limit greater than the lower limit border like 314 selection borders among the figure; Redraw the position of output play area like 315 windows among the figure, whether need whether need move through inspection, if need 317 in the execution graph then then call api function if need to move to the choosing then that the play area of having created is carried out the position to the window's position like 316 systems among the figure; Through lost efficacy moving of selected play area and change size of mouse and keyboard; Changed the back and preserved relevant documentation, if 318 among the figure finishes operation this time, if mustn't want direct redirect to finish like 318 among the figure.When having created a plurality of play area in the viewable area at multi-medium information spreading system,, can in this viewable area, create a plurality of different play area of playing type that have through being that different play area is selected different broadcast types.
Can realize by the way viewable area is carried out the split screen configuration.
After having created play area, preserve the split screen configuration of viewable area and generate corresponding split screen configuration file and preserve.
In embodiments of the present invention, after realizing that viewable area carried out the split screen configuration, generate corresponding split screen configuration file according to this split screen configuration, for the terminal of multi-medium information spreading system from server calls.
Wherein the split screen configuration file is used for play content and the play parameter etc. of position and size, each play area of quantity and type, each play area of the play area in the stored visualisation zone.Its type can be ini file.
In embodiments of the present invention, adopt api function writePrivateProfileString to generate the split screen configuration file, illustrate as follows:
WritePrivateProfileString(play0,″X″,m_videox,inifilepath)
Wherein, Play0 representes first video playback zone; X representes the X coordinate key word in first video playback zone in the split screen configuration file; M_videox representes that the X coordinate in first video playback zone accounts for the ratio of viewable area, the storing path of the split screen configuration file that inifilepath representes to generate.
Owing to store the position and the size of each play area in the split screen configuration file; Therefore; In a preferred embodiment of the invention, before preserving according to the corresponding split screen configuration file of split screen configuration generation of viewable area, this method also comprises the steps:
Obtain the position and the size of each play area in the viewable area.For better understanding, below be example with position and the size of obtaining the zone of video playback in the viewable area, acquisition process is elaborated, the position of the play area of other type is identical therewith with big or small acquisition process, repeats no more at this:
Can adopt following computing formula to obtain the position and the size in video playback zone in the viewable area:
Framewidth=separateright-separateleft (formula 3.3.1)
Frameheight=separatebottom-separatetop (formula 3.3.2))
Winzescale=gvideowinsize/framewidth (formula 3.3.3)
Xscale=gvideopointx/framewidth (formula 3.3.4)
Yscale=gvideopointy/frameheight (formula 3.3.5)
Wherein framewidth is for playing the width that whole framework in the dialog box is set; Frameheight is for playing the height that whole framework in the dialog box is set; Separateleft is a viewable area analogy screen left position; Separateright is viewable area analogy right position; Separatebottom is viewable area analogy bottom of screen position; Separatetop is a viewable area analogy screen apical position; The video playback zone accounted for the ratio of whole screen when winzescale was the front end demonstration; Video playback zone X coordinate accounted for the wide ratio of whole screen when xscale was the front end demonstration; Video playback zone Y coordinate accounted for the high ratio of whole screen when yscale was the front end demonstration; The video playback regional width of gvideowinsize for creating; Video playback zone on viewable area the X coordinate shared ratio of gvideopointx for creating; Video playback zone on viewable area the Y coordinate shared ratio of gvideopointy for creating.
In embodiments of the present invention; After getting access to the viewable area of multi-medium information spreading system; Can in this viewable area, create any amount, arbitrary shape through external opertaing device, have the play area of identical or different broadcast type; Viewable area is carried out the split screen configuration; Preserve through preserving the split screen configuration of viewable area and generating corresponding split screen configuration file, thereby make the split screen mode of multi-medium information spreading system not receive the restriction of template, increased the dirigibility of split screen.
In the preferred embodiment of the present invention, when in viewable area, having created the video playback zone through external opertaing device, this method also comprises the steps:
The type that visualization interface is set is as shown in Figure 2, begins to carry out like 201 among the figure, like 202 initialization correlation parameters among the figure, obtains the type of viewable area, according to the Aspect Ratio of the type control of video play area of viewable area.Wherein the type of viewable area includes but not limited to 16: 9 and 4: 3.Wherein the Aspect Ratio in video playback zone includes but not limited to 16: 9 and 4: 3.
The detailed process of type of wherein obtaining viewable area is following:
Set three parameter c xScreen, cyScreen, pixel_rata, X pixel and Y pixel that preceding two parameters are screens, the 3rd parameter are the wide and long ratios of screen.Call Windows api function GetSystemMetrics (SM_CXSCREEN) and GetSystemMetrics (SM_CYSCREEN) obtains cxScreen like 203 among the figure, the value of two parameters of cyScreen, adopt the type of following algorithm judgement screen:
Like the 204pixel_rata=cyScreen/cxScreen among the figure;
If as figure in 205 pixel_rata between 0.50 and 0.65; Then the type like 206 screens among the figure is 16: 9 and finishes 210 among this operation as the figure; If otherwise as figure in 207 pixel_rata between 0.70 and 0.80; Then as the type of 208 screens among the figure be 210 end operations in the execution graph after 4: 3; Otherwise as 209 among the figure be provided with the type of viewable area automatically according to the type of screen, is 16: 9 also 210 end operations in the execution graph to reach from the type that the self-adaptation adjustment visualization interface of optimal proportion and position and broadcast is carried out the play area of creating in adaptive adjustment.
Wherein the detailed process according to the Aspect Ratio of the type control of video play area of viewable area is following:
Define four variable d1, d2, d3, d4; When the type of viewable area is 16: 9, d1=16.00, d2=9.00 is when the type of viewable area is 4: 3; D1=4.00, d2=3.00 obtains the value of d3 and two variablees of d4 through formula 3.4.1 and formula 3.4.2:
D3=pRect->Width () (formula 3.4.1)
D4=(d2*d 3)/d1 (formula 3.4.2)
If the height in video playback zone greater than d4, then adopts formula 3.4.3 to obtain the bottom position in video playback zone:
PRect->bottom=pRect->top+d4 (formula 3.4.3)
If the height in video playback zone less than d4, then adopts following three formula to obtain the right end position in video playback zone and the height and the width in video playback zone:
D4=pRect->Height () (formula 3.4.4)
D3=(d1*d4)/d2 (formula 3.4.5)
PRect->right=pRect->left+d3 (formula 3.4.6)
Wherein d3 representes the width in video playback zone, and d4 representes the height in video playback zone, the video playback section object of pRect for creating.
In embodiments of the present invention; When in viewable area, having created the video playback zone through external opertaing device; Can control the Aspect Ratio in the video playback zone of establishment according to the type of the screen that is used for issuing multimedia information in the multi-medium information spreading system automatically, thereby the screen that is used for issuing multimedia information in feasible video playback zone of creating and the multi-medium information spreading system can mate automatically.
Embodiment two:
Show the realization flow of the split screen method of the multi-medium information spreading system that another embodiment of the present invention provides like Fig. 3, details are as follows:
Begin, obtain the viewable area of multi-medium information spreading system.
Afterwards, select the broadcast type of play area, in viewable area, create play area through external opertaing device.
After the broadcast type of selecting play area, the play area of creating is set type and/or the seamless link adjustment through external opertaing device, viewable area is carried out the split screen configuration.
Wherein the play area of creating is set type and the seamless link adjustment through mouse or keyboard; Detailed process viewable area is carried out the split screen configuration is following: preferably set type with mouse here; Adopt the keyboard combination key to carry out the seamless link operation; The mode that the mouse concrete operations are set type is that the play area that the mouse selection need be set type and arranged is selected the back through confirming this video playback regions module after the click; Drag the play area that mouse will adjust then and be dragged to the band of position that the next one need be adjusted to, realize confirming that this position moves after the position is confirmed once more through clicking the mouse; Wherein as shown in Figure 4 through the mode of keyboard combination key; Fig. 4 show adopt keyboard directionkeys and keyboard function key to make up to carry out seamless link operating process and principle; Wherein play area is according to pixels put the mode preferred orientations bonding shift function key of adjustment; After in the execution graph 401 beginning; In the execution graph 402 be at first preferably through the selected play area that need carry out seamless link of mouse mode, and the play area that 403 clicks among the figure need be moved is selected for use the direction position of the direction that directionkeys need move to carry out the position then and moved; Among figure 404 as selection upwarding key; After selecting well, system can adhere to whether the user continues to select the functions of use key to continue to move, if 411 users among the figure continue to key in function key; 412 play area among the figure just will be installed mode that the pixel displacement moves in the direction that makes progress and added up and carry out the position that we make progress and move; If the user extremely clicks once and moves with regard to the position of only carrying out a pixel like 414 among the figure, 413 among the figure finishes the position that the user preferably adopts the mode of click module to finish this after we move up completion and moves, then these operations of the end of 408 among the figure.Carry out the position of other directions moves like need; Move the position of adopting aforesaid way to proceed other localities, and the mode that the mode that adopts the keyboard combination key is respectively adjusted module is also in this mode identical operations, and the user can select according to pixels to put and move or distance and position moves; Move mode is identical with aforesaid way; 404 steps that only replace among the figure for 405,406,407 among the figure select different directions to move, and here repeat no more.
Wherein create play area and at first carry out S101 and begin, carry out S102 initialization split screen system configuration interface afterwards, the S103 interface can be automatically obtain exploration on display resolution ratio according to the display parameter of related display.
System carries out the digital coordinate form according to dependent resolution to the video playback zone and divides.
The present invention's preferred embodiment when using external equipment to the multimedia information system split screen is the broadcast type of user according to the play area of the needs definition needs establishment of oneself, and selectable broadcast type comprises video, audio frequency, picture and literal.Can select the user zone on the screen to be divided and adjusted then, obtain the size of relevant play area with the mode that mouse drag or other external equipment are fit to.The user divides the regional preferred later on mode of mouse drag that adopts that is over the play area module is carried out size adjustment and composing; Through keyboard play area is carried out the adjustment of horizontal level, in this process, all show size and position with the digitized forms of coordinate mark.
Preferred embodiment was for dividing play area with mouse drag when the present invention was provided with the multimedia system split screen at the use external equipment; Define four parameters and represent the location parameter up and down of visual play area respectively, the coordinate position when the record mouse is initially clicked when pressing mouse is not as in viewable area; Then select the initial coordinate position automatically; When click is unclamped, note the position here, thus the big or small location dependent information of the play area of confirming to divide.
When wherein S104 creates play area and confirms the play area border through mouse, define two CRect object tmpRect and wndRect, tmpRect is the actual play section object, and wndRect drags or the play area object when adjusting size.TmpRect.right representes the right position of selected play area, the right position of selected play area when wndRect.right representes to adjust size and position, and tmpRect.left representes the left position of selected play area.
If carry out S105 wndRect.right afterwards greater than viewable area analogy right position separateright, then by formula 3.2.1 and formula 3.2.2 calculate the new position of selected play area:
TmpRect.right=eparateright (formula 3.2.1)
TmpRect.left=tmpRect.right-wndRect.Width () (formula 3.2.2)
Wherein tmpRect.bottom representes the bottom position of selected play area, the bottom position of selected play area when wndRect.bottom representes to adjust size and position, and tmpRect.top representes the apical position of selected play area;
Carry out the position and the size in S105 restriction video playback zone; S106 is carried out with size in the position of adjusting play area if desired, if wndRect.bottom greater than viewable area analogy bottom of screen position separatebottom then by formula 3.2.3 and formula 3.2.4 calculate the new position of selected play area:
TtmpRect.bottom=separatebottom (formula 3.2.3)
TmpRect.top=tmpRect.bottom-wndRect.Height () (formula 3.2.4)
Wherein tmpRect.right representes the right position of selected play area, the width of selected play area when wndRect.Width () expression adjustment size and position, and tmpRect.left representes the left position of selected play area;
If wndRect.left less than viewable area analogy screen left position separateleft then by formula 3.2.5 and formula 3.2.6 calculates the new position of selected play area:
TmpRect.left=separateleft (formula 3.2.5)
TmpRect.right=tmpRect.left+wndRect.Width () (formula 3.2.6)
Wherein tmpRect.top representes the apical position of selected play area, the height of selected play area when wndRect.Height () expression adjustment size and position, and tmpRect.bottom representes the bottom position of selected play area;
If wndRect.top less than visual district's analogy screen apical position separatetop then by formula 3.2.7 and formula 3.2.8 calculates the new position of selected play area:
TmpRect.top=separatetop (formula 3.2.7)
TmpRect.bottom=tmpRect.top+wndRect.Height () (formula 3.2.8)
The keyboard that passes through that the embodiment of the invention provides is set type and the seamless link adjustment to the play area of creating, and viewable area is carried out the realization flow of split screen configuration, details are as follows:
The process flow diagram initialization viewable area upper and lower, left and right of carrying out displacement operation like Fig. 4 keyboard are the positions of a limited boundary, select a play area wherein preferably to select a play area through the mouse mode through external equipment, after mouse has been selected corresponding play area; Select corresponding directionkeys to confirm to carry out play area the direction of displacement adjustment; After having selected the corresponding mobile direction, through function key, wherein preferred shift key is as function key; The functions of use key is accumulated in the shift position that pixel is moved in the displacement that this side up; The number of the pixel that the number of times of keying in function key is confirmed to move is if the wherein only key entry of no function key behind directionkeys of key is defaulted as mobile pixel on this sense of displacement; After having keyed in; Confirm that through external equipment this adjustment finishes, preferably accomplish this adjustment, can carry out the adjustment of other displacement modes at this by the way then through click play area acquiescence.
In the configuration of accomplishing play area, preserve the split screen configuration and the generation respective profiles of viewable area are preserved.
Wherein S105 is if the broadcast type of definition is the video class play area, and system is owing to having defined 16: 9 or 4: 3 two kinds of video playback types, according to parameter preset; Video class play area Aspect Ratio must meet predetermined Aspect Ratio restriction; System obtains the Aspect Ratio of play area according to the coordinate parameters of play area, and when creating play area, one side of confirming is selected and after the type of definition is compared automatically by system; The another side of system is made the judgement of ratio according to comparative information; According to judged result, the mode through coordinate mark is pointed out the adjustable video playback of explicit user zone to the ratio of the play area that promptly will create; The user is according to the adjustment of mark prompting to the size of play area; To reach adaptive adjustment mode, reach best broadcast ratio better, realize better broadcast program and result of broadcast.
Computer system is play ratio according to the Aspect Ratio of broadcast interface to the video class broadcast interface; Three parameters of inner setting are represented the horizontal stroke of display, vertical pixel and Aspect Ratio parameter respectively; Correlation proportion according to ordinate and horizontal ordinate obtains the Aspect Ratio parameter; If parameter is between 0.50 and 0.65, then the type of screen is 16: 9; If between 0.70 and 0.80, then the type of screen is 4: 3 types, and the type of visualization interface is set according to screen type then automatically.
After creating play area do to the position of each play area and the adjustment mode of size; Define new parameter value when play area adjustment beginning; Operation according to mouse and keyboard; Show with the size and mobile message variation the carrying out digitizing of coordinate information, call api function and realize change, thereby reach the relevant position and the change of size correlation parameter information to play area.
, the present invention after selecting the module that needs to move earlier, presses directionkeys with keyboard earlier when carrying out the displacement adjustment to module; The in-plane displancement of accomplishing module through the operation of shift key afterwards changes, and this mode can effectively be avoided the direct collision problem of keyboard in operation, for reliable more operational module is provided convenience; Improved largely; Security in the operating process, after pressing directionkeys, this side up moves the continued operation through the shift key is arranged in order to be accumulated in; Only press directionkeys, no shift key continues to be operating as single pixel displacement operation.Need repeatedly to move then to operate through shift after pressing directionkeys, flow process is as shown in Figure 4 again.Can well avoid the keyboard collision problem here, the security and the reliability of operation is provided.
Because all modules all carry out the parameter setting with the mode of information such as digital coordinate, just can be fast when between to different play area, connecting and accomplish seamless link easily.
Play area be provided with to generate after the completion split screen play list file for the multi-medium information spreading system terminal from server calls, the present invention adopts the form that generates ini file to generate the split screen listing file.Ini file is mainly deposited quantity and the type of type, the split screen play area of viewable area, position and size, the play content of each play area and the details of play parameter of each play area.Adopt api function to generate play list file here, and file is saved under the associated pathway of predetermined set.The user can be directly carries out preview with the file of this self-defined split screen setting and plays, and perhaps directly sends on the advertisement screen display to show.
The present invention is after the preferred embodiment on minute ping server is for the play template that sets when preservation; Computer can be preserved this kind play template get off; During afterwards application; Can directly call relevant ready-made template, correlate template made used after the modification by a small margin or directly use, thereby avoided creating repeatedly; The user makes an amendment directly the template that has had and sets type and the size of adjusting relevant part play area with mouse, handles with the seamless link that keyboard carries out horizontal level to play area.
As shown in Figure 5; The branch screen device that divides screen system; At first 501 in the calling graph obtains the information of the resolution etc. of associated video through the viewable area acquiring unit; Then the information of obtaining is sent to 502 split screen dispensing units among the figure; Pixel and minimum mobile unit are confirmed according to the resolution relevant information of video in the split screen unit, and the information processing after in the subsequent operation information at associated video interface being obtained, and 502 split screen dispensing units among the figure are accomplished the relevant configuration and the setting of information according to the user to the operation at interface; At last the information that configures is sent to 503 split screen configuration file generation units among the figure, the information that configures is stored by 503 split screen configuration file generation units among the figure.
As shown in Figure 6; The multimedia messages distributing device is that a branch ping server can be controlled a plurality of multimedia messages issues interface simultaneously; As figure in many multimedia messages distribution platforms of 601 multi-medium information spreading system server controls as figure in 602,603 and 604; Can reduce the input of relevant device like this and reduce the cost of safeguarding; Adopt a plurality of multimedia messages issue of a split screen server controls interface, the scheme that can fast split screen be set is applied in different multimedia messages issue interfaces, can improve the speed and renewal labour intensity of relevant information issue like this.Wherein on server, can the multi-medium information spreading system split screen that set be arranged on far-end and carry out synchronous applications; Or different split screen settings is applied in different far-end multimedia messagess issues the interface; Reduce the maintenance of relevant device and improved the operability of using; Reduce the relevant cost of operation, accomplish the trouble that need carry out repetitive operation in a plurality of places of a plurality of systems in the past with a station server at far-end.Reach quickly and efficiently information is issued, reduce operation, reduce cost, raise the efficiency.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.