The content of the invention
The embodiments of the invention provide a kind of desktop collocation method, server and client, it can flexibly change client
Desktop pattern and displaying content, improve Consumer's Experience.
The embodiment of the present invention can be specifically achieved through the following technical solutions:
In a first aspect, the embodiments of the invention provide a kind of desktop collocation method, applied to server side.This method bag
Include:Server generates desktop description information, and the desktop description information includes the positional information and the table of desktop description object
The data message of face description object binding;The desktop description information is sent to client by the server, and the desktop is retouched
State information and table is carried out on the desktop of the client according to the positional information of the desktop description object for the client
The mapping of face description object and the data message bound according to the desktop description object show the table on the desktop
The data of face description object binding.Server can flexibly set the position of desktop description object on desktop in the embodiment of the present invention
Information and the data message of binding, realize the content of the desktop pattern for flexibly changing client and displaying.
In a possible design, the desktop description information includes at least two, at least two desktops description
The positional information of desktop description object in information is different and/or at least two desktops description information in desktop description pair
As the data message of binding is different;The desktop description information is sent to client by the server, including:The server
Geographical position residing for the corresponding service provider of user's group, client, client or client according to belonging to client
Device type at least two desktops description information is sent at least two clients.Server in the embodiment of the present invention
Different desktop description informations can be sent to by different clients according to type of client etc., realize different clients
Between desktop pattern and the content of displaying variation.
In a possible design, the desktop description object includes navigation, attached resource-niche, shortcut, the page
And at least one in primary resource position.
In a possible design, the data message of the desktop description object binding includes content metadata or acquiescence
Static data.
In a possible design, the desktop description information is that the server is matched somebody with somebody for the desktop of default resolution ratio
Put, the default resolution ratio is used for the client according to the default resolution ratio and the ratio of the resolution ratio of the client
Draw the primary resource position in the page.
Second aspect, the embodiments of the invention provide a kind of desktop collocation method, applied to client-side.This method bag
Include:The desktop description information that client the reception server is sent, the desktop description information includes the position of desktop description object
Information and the data message of desktop description object binding;The client is according to the positional information of the desktop description object
The mapping of desktop description object, and the data bound according to the desktop description object are carried out on the desktop of the client
Information shows the data of the desktop description object binding on the desktop.Client can be according to clothes in the embodiment of the present invention
The desktop description information that business device is flexibly set carries out mapping and the data display of desktop description object on the table, realizes spirit
The content of the desktop pattern and displaying living for changing client.
In a possible design, the desktop description information is use of the server according to belonging to the client
The equipment of family group, the corresponding service provider of the client, the geographical position residing for the client or the client
What type was selected from least two desktop description informations, desktop description object at least two desktops description information
Positional information is different and/or data message of desktop description object binding at least two desktops description information is different.
Different desktop description informations can be sent to different clients by server according to the type of client in the embodiment of the present invention
End, realizes the variation of desktop pattern and the content of displaying between different clients.
In a possible design, the desktop description object includes navigation, attached resource-niche, shortcut, the page
And at least one in primary resource position.
In a possible design, the desktop description object include the navigation, the attached resource-niche, it is described soon
Prompt mode, the page and primary resource position;The client is according to the positional information of the desktop description object in institute
The mapping that desktop description object is carried out on the desktop of client is stated, including:The client is according to the positional information of the navigation
The navigation is drawn on the desktop of the client, according to the positional information of the attached resource-niche control on the desktop
The attached resource-niche is drawn, and the quick side is drawn on the desktop according to the positional information of the shortcut
Formula;The client obtains at least one page of the navigation binding, according to each page at least one described page
The positional information of the primary resource position of binding draws the primary resource position in each page.
In a possible design, the data message of the desktop description object binding includes content metadata or acquiescence
Static data;The data message bound according to the desktop description object shows the desktop description pair on the desktop
As the data of binding, including:If the data message of the desktop description object binding is content metadata, the content is obtained
Metadata and the content metadata that the desktop description object binding is shown on the desktop;If the desktop description object is tied up
Fixed data message is default static data, then the default static number of the desktop description object binding is shown on the desktop
According to.
In a possible design, the desktop description information is that the server is matched somebody with somebody for the desktop of default resolution ratio
Put;The positional information of the primary resource position of each page binding at least one page described in the basis draws described each
Primary resource position in the page, including:According to the ratio of the default resolution ratio and the resolution ratio of the client and it is described extremely
The positional information of the primary resource position of each page binding in few page draws the primary resource position in each page.
The third aspect, the embodiment of the present invention additionally provides a kind of server, and the server realizes the table of above-mentioned first aspect
The function of server in the collocation method of face, therefore can also realize the beneficial effect that the desktop collocation method of first aspect possesses.
Wherein, the function of the server can be realized by hardware, and corresponding software can also be performed by hardware and is realized.The hardware
Or software includes at least one module corresponding with above-mentioned functions.
In a possible design, the server includes processing unit and communication unit.The processing unit, for giving birth to
Into desktop description information, the positional information and the desktop description object that the desktop description information includes desktop description object are tied up
Fixed data message;The communication unit, for the desktop description information to be sent into client, the desktop description information
Desktop description is carried out on the desktop of the client according to the positional information of the desktop description object for the client
The mapping of object and the data message bound according to the desktop description object show that the desktop is described on the desktop
The data of object binding.
In a possible design, the desktop description information includes at least two, at least two desktops description
The positional information of desktop description object in information is different and/or at least two desktops description information in desktop description pair
As the data message of binding is different;The communication unit, for the desktop description information to be sent into client, including:Root
According to the geographical position residing for the user's group belonging to client, the corresponding service provider of client, client or client
At least two desktops description information is sent at least two clients by device type.
In a possible design, the desktop description object includes navigation, attached resource-niche, shortcut, the page
And at least one in primary resource position.
In a possible design, the data message of the desktop description object binding includes content metadata or acquiescence
Static data.
In a possible design, the desktop description information is that the server is matched somebody with somebody for the desktop of default resolution ratio
Put, the default resolution ratio is used for the client according to the default resolution ratio and the ratio of the resolution ratio of the client
Draw the primary resource position in the page.
Fourth aspect, the embodiment of the present invention additionally provides a kind of server, and the server realizes the table of above-mentioned first aspect
The function of server in the collocation method of face, therefore can also realize the beneficial effect that the desktop collocation method of first aspect possesses.
Wherein, the function of the server can be realized by hardware, and corresponding software can also be performed by hardware and is realized.The hardware
Or software includes at least one module corresponding with above-mentioned functions.The server includes processor and communication interface, real respectively
Processing unit and the corresponding function of communication unit in the server of the existing above-mentioned third aspect.
5th aspect, the embodiment of the present invention additionally provides a kind of client, and the client realizes the table of above-mentioned second aspect
The function of client in the collocation method of face, therefore can also realize the beneficial effect that the desktop collocation method of second aspect possesses.
Wherein, the function of the client can be realized by hardware, and corresponding software can also be performed by hardware and is realized.The hardware
Or software includes at least one module corresponding with above-mentioned functions.
In a possible design, the client includes communication unit and processing unit.The communication unit, for connecing
The desktop description information that server is sent is received, the desktop description information includes the positional information and the table of desktop description object
The data message of face description object binding;The processing unit, for according to the positional information of the desktop description object in institute
State the mapping that desktop description object is carried out on the desktop of client, and the data message bound according to the desktop description object
The data of the desktop description object binding are shown on the desktop.
In a possible design, the desktop description information is use of the server according to belonging to the client
The equipment of family group, the corresponding service provider of the client, the geographical position residing for the client or the client
What type was selected from least two desktop description informations, desktop description object at least two desktops description information
Positional information is different and/or data message of desktop description object binding at least two desktops description information is different.
In a possible design, the desktop description object includes navigation, attached resource-niche, shortcut, the page
And at least one in primary resource position.
In a possible design, the desktop description object include the navigation, the attached resource-niche, it is described soon
Prompt mode, the page and primary resource position;The processing unit, for being believed according to the position of the desktop description object
The mapping that desktop description object is carried out on the desktop of the client is ceased, including:According to the positional information of the navigation in institute
State and the navigation is drawn on the desktop of client, drawn according to the positional information of the attached resource-niche control on the desktop
The attached resource-niche, and the shortcut is drawn on the desktop according to the positional information of the shortcut;Obtain
At least one page of the navigation binding is taken, the primary resource position of each page binding at least one described page
Positional information draws the primary resource position in each page.
In a possible design, the data message of the desktop description object binding includes content metadata or acquiescence
Static data;The processing unit, the data message for being bound according to the desktop description object is shown on the desktop
The data of the desktop description object binding, including:If the data message of the desktop description object binding is content metadata,
Then obtain the content metadata and the content metadata of the desktop description object binding is shown on the desktop;If described
The data message of desktop description object binding is default static data, then shows that the desktop description object is tied up on the desktop
Fixed default static data.
In a possible design, the desktop description information is that the server is matched somebody with somebody for the desktop of default resolution ratio
Put;The processing unit, the position letter for the primary resource position of each page binding at least one described page
Breath draws the primary resource position in each page, including:According to the resolution ratio of the default resolution ratio and the client
The positional information of the primary resource position of each page binding in ratio and at least one described page draws each page
In primary resource position.
6th aspect, the embodiment of the present invention additionally provides a kind of client, and the client realizes the table of above-mentioned second aspect
The function of receiving device in the collocation method of face, therefore can also realize the beneficial effect that the desktop collocation method of second aspect possesses
Really.Wherein, the function of the client can be realized by hardware, and corresponding software can also be performed by hardware and is realized.It is described
Hardware or software include at least one module corresponding with above-mentioned functions.The client includes communication interface and processor, point
The communication unit and the corresponding function of processing unit in the client of above-mentioned 5th aspect are not realized.
7th aspect, the embodiment of the present invention additionally provides a kind of communication system, including:Server and client side, wherein:Institute
The server that server can be the third aspect or fourth aspect description is stated, the client can be the 5th aspect or the 6th side
The client of face description.
Eighth aspect, the embodiment of the present invention provides a kind of computer-readable storage medium, for saving as used in above-mentioned server
Computer software instructions, it is included, and to be used to perform above-mentioned first aspect be the program designed by the server.
9th aspect, the embodiment of the present invention provides a kind of computer-readable storage medium, for saving as used in above-mentioned client
Computer software instructions, it is included, and to be used to perform above-mentioned second aspect be the program designed by the client.
Implement the inventive method embodiment, server can flexibly set the positional information of desktop description object on desktop with
And the data message of binding, and transmit these information to client so that client can flexibly change the pattern of desktop with
And the content of displaying, also, different desktop description informations can be sent to difference by server with reference to type of client etc.
Client, realize the variation of desktop pattern and the content of displaying between different clients.
Embodiment
Fig. 1 is referred to, is a kind of system architecture diagram for being used to realize desktop allocation plan provided in an embodiment of the present invention.System
System 100 includes:Server 101, client 102 and network 103.Client 102 is communicated by network 103 with server 101.
Wherein, server 101 can include centre manager (English is presented:Presentation Hub
Management, referred to as:PHM).Optionally, server 101 can also include central server (English is presented:
Presentation Hub Service, referred to as:PHS).Optionally, server 101 can also include content management server
(English:Content Management Services, referred to as:CMS).
Wherein, centre manager is presented as the management end of platform side, system actor management, desktop description pair can be provided
The position arrangement of elephant, the data management of desktop description object binding, here, desktop description object is referred on desktop with specific
The specific region of function, in embodiments of the present invention, desktop description object include navigation, attached resource-niche, shortcut, the page
And at least one in primary resource position.Specifically, reference can be made to Fig. 2, is a kind of structure of desktop provided in an embodiment of the present invention
Schematic diagram.As shown in Figure 2, desktop (Launcher) is made up of multiple pages (Page), and the page is by multiple primary resources position
(Element) constitute, the content such as poster that primary resource position can provide for display video content or operator.On desktop also
There can be multiple navigation (NAV), a navigation (NAV) can associate multiple pages, and clicking on navigation can trigger into some page
Face.There can also be multiple shortcuts (Shortcut) on desktop, shortcut types and quantity are configurable, click on shortcut
Video content etc. can for example be searched for trigger action.Can also there are multiple attached resource-niches, attached resource-niche and master on desktop
The difference of resource-niche is:Attached resource-niche is not take up actual page space, and primary resource bit occupancy page space.Attached money
Source position can be roll titles area, desktop background on desktop etc..Multiple primary resource positions can also be divided into a packet
(Group), packet is the combination of the close one group of primary resource position of physical location, is grouped for recommending interface and data correlation or referring to
Determine column data association.
System actor includes keeper, operator and auditor.Keeper possesses all operationss authority in system, can be with
Operator and auditor are managed, desktop can also be created, desktop distribution policy is set.Operator and auditor user safeguard pipe
Manage the management of self-role information.Operator also has the authority of the data management of desktop description object binding, refers in particular to for management
The primary resource position of member's distribution has the authority for managing its binding data, and transfers auditor's examination & verification issue to.Auditor can be right
Keeper carries out examination & verification preview for the desktop of its distribution.The function of Authority and Domain Based Management is realized with this.Keeper and operator can be with
The data configuration that the position configuration of desktop description object and desktop description object are bound, shape are completed by the way that centre manager is presented
Into desktop description information, here, desktop description information includes being used to characterize the positional information of the position of desktop description object, with
And for the data message for the data for characterizing the binding of desktop description object.Keeper or operator form desktop description information
Afterwards, issue auditor to be audited, after examination & verification passes through, desktop description information is synchronized to genuinely convinced in presentation by presentation centre manager
It is engaged in device.
Implement, the desktop description information that centre manager generation is presented can be a kind of or a variety of.When
When the desktop description information of centre manager generation is presented including at least two, what at least two desktops description information included
The positional information of desktop description object is different, and/or the data message of desktop description object binding is different.In this case, it is in
Existing centre manager internally maintains user grouping, service provider, product bag, region, terminal type information, and according to difference
Constraint be combined into different desktop distribution policies.Keeper is created after desktop, and at least two desktops created are described to believe
Breath is associated with already present desktop distribution policy strategy, and related information is synchronized into presentation central server, for client 102
Acquisition is used.Client 102 to present central server request desktop description information when, present central server can according to
The attribute and/or other information included in the authentication information of family, according to the constraint of desktop distribution policy, to the transmission of client 102
With the corresponding desktop description information of desktop, distributed with the desktop for realizing personalization.Therefore, the desktop that different clients are got is retouched
Stating information can be different.
It should be noted that when the desktop description information that centre manager generation is presented includes a kind of, different clients
What is obtained is identical desktop description information, therefore the data shown on the desktop layouts and desktop of client are also identical
's.
Wherein, the function of centre manager being presented includes but is not limited to following functions:1st, personal management, refers to create and uses
Family, assigns different user different roles, Authority and Domain Based Management is realized with this.2nd, Role Management.Mainly the setting of role-security with
Management.3rd, configuration management.Maintenance management common configuration, such as area information, service provider's (English:Service Provider,
Referred to as:SP) information, user grouping information, end message.Maintenance documentation host-host protocol (English:File Transfer
Protocol, referred to as:FTP) configuration and service configuration information.4th, desktop management, refers to the management of desktop data, including layout
Management, the management of desktop data, the management of desktop distribution policy, and examination & verification management.5th, page metadata is managed, such as desktop title,
The desktop description information of association, the code page of generation.6th, page layout editor is supported, desktop description information is generated.7th, support
Special efficacy is configured.8th, the template redirected when menu click or focus condition is managed, the template redirected is supported to manage.9th, desktop is described
Object (includes but is not limited to:Navigation, attached resource-niche control, shortcut element are (in each shortcut element correspondence interface
A quick entrance), the page and primary resource position) management, including increase, delete, change, look into.10th, desktop description object can be associated
Data management, the data that desktop description object can be associated include:Video request program (English:Video on Demand, referred to as:
VOD), channel, column, value-added service (English:Value Added Service, referred to as:VAS), application program (English:
Application, referred to as:APP).11st, it is laid out for support without desktop under codeization adjustment B/S patterns and special topic, it is necessary to which page UI draws
Hold up and page code (HTML/JSP/JAVA) is automatically generated according to desktop description information.12nd, provide desktop description information and download clothes
There is provided desktop description information download interface for business.13rd, the interface service of data required for providing desktop, such as each desktop description object
VOD data, channel data, column data, the VAS data of association.
Content management server is used for the content metadata for storing the business such as video.
Client 102 is applied periodically asks newest desktop to describe to believe in startup and operation to presentation central server
Breath, it is locally downloading after, parsing draw, complete data binding after be presented on screen.In the embodiment of the present invention, client 102
Quantity can also be multiple, the embodiment of the present invention is not construed as limiting to this.Specifically, client 102 can be such as intelligence electricity
Depending on etc video playing terminal.
As shown in figure 3, server 101 or client 102 in Fig. 1 can (or be with the computer equipment in Fig. 3
System) mode realize.
Fig. 3 show computer equipment schematic diagram provided in an embodiment of the present invention.Computer equipment 300 includes at least one
Processor 301, communication bus 302, memory 303 and at least one communication interface 304.
Processor 301 can be a general central processor (English:Central Processing Unit, referred to as:
CPU), microprocessor, ASIC (English:Application-Specific Integrated Circuit,
Referred to as:ASIC), or it is one or more be used for control the present invention program program perform integrated circuit.
Communication bus 302 may include a path, and information is transmitted between said modules.The communication interface 304, using appoint
The device of what class of transceiver one, for other equipment or communication, such as Ethernet, wireless access network (English:
Radio Access Network, referred to as:RAN), WLAN (English:Wireless Local Area Networks,
Referred to as:WLAN) etc..
Memory 303 can be read-only storage (English:Read-Only Memory, referred to as:ROM) or static state can be stored
Information and the other kinds of static storage device of instruction, random access memory (English:Random Access Memory,
Referred to as:RAM) or can storage information and instruction other kinds of dynamic memory or electric erazable programmable only
Read memory (English:Electrically Erasable Programmable Read-Only Memory, referred to as:
EEPROM), read-only optical disc (English:Compact Disc Read-Only Memory, referred to as:) or other CDs are deposited CD-ROM
Storage, laser disc storage (including compression laser disc, laser disc, laser disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or
Other magnetic storage apparatus of person or can be used in carrying or store with instruction or data structure form desired program code
And can by computer access any other medium, but not limited to this.Memory can be individually present, and pass through bus and place
Reason device is connected.Memory can also be integrated with processor.
Wherein, the memory 303 is used to store the program code for performing the present invention program, and is controlled by processor 301
System is performed.The processor 301 is used to perform the program code stored in the memory 303.
In the specific implementation, as a kind of embodiment, processor 301 can include in one or more CPU, such as Fig. 3
CPU0 and CPU1.
In the specific implementation, as a kind of embodiment, computer equipment 300 can include in multiple processors, such as Fig. 3
Processor 301 and processor 308.Each in these processors can be monokaryon (single-CPU) processor,
It can also be multinuclear (multi-CPU) processor.Here processor can refer to one or more equipment, circuit, and/or
Process cores for processing data (such as computer program instructions).
In the specific implementation, as a kind of embodiment, computer equipment 300 can also include output equipment 305 and input
Equipment 306.Output equipment 305 and processor 301 are communicated, and display information can be carried out in many ways.For example, output equipment 305
Can be liquid crystal display (English:Liquid crystal display, referred to as:), LCD Light-Emitting Diode (English:light
Emitting diode, referred to as:LED) display device, cathode-ray tube (English:Cathode ray tube, referred to as:CRT) show
Show equipment, or projecting apparatus (projector), dio Output Modules etc..Input equipment 306 and processor 301 communicate, can be with many
The mode of kind receives the input of user.For example, input equipment 306 can be mouse, keyboard, touch panel device or sensing equipment etc..
Above-mentioned computer equipment 300 can be an a general purpose computing device either dedicated computing machine equipment.
In the specific implementation, computer equipment 300 can be desktop computer, it is portable computer, the webserver, wireless terminal device, logical
Letter equipment, embedded device or the equipment for having similar structures in Fig. 3.The embodiment of the present invention does not limit the class of computer equipment 300
Type.
As the server 101 in Fig. 1 can be stored in the equipment shown in Fig. 3, the memory of server 101 one or
Multiple software modules (such as interactive module and processing module).If the client 102 in Fig. 1 can also be the equipment shown in Fig. 3, visitor
One or more software modules (such as interactive module and processing module) are stored in the memory at family end.Server or client
Software module can be realized by the program code in processor and memory, realize that the desktop in the embodiment of the present invention is matched somebody with somebody
Put method.
The embodiments of the invention provide visual desktop layout.In order to support multiple terminals, the displaying of a variety of screen specifications,
Presentation centre manager have chosen the typical resolution of all kinds of screens as original canvas size, and it is size that unit BU is measured in relative terms
Unit, completes desktop and draws layout, the resolution ratio of the desktop can regard 80BU*45BU as, be default in embodiments of the present invention
Resolution ratio, the size of default resolution ratio can be set.Each client is realized final as reference by the way of uniform zoom
Adaptation.By taking high definition TV (resolution ratio 1280px*720px) as an example, 1BU is 16px, with ultra high-definition TV (resolution ratio 1920px*
Exemplified by 1080px), 1BU is 24px.In this way, such as the page in Fig. 2, each frame rectangle (i.e. primary resource position) can pass through top
(the top coordinate away from reference origin), left (the left coordinate away from reference origin), width (width), height (height) is determined
Resource location on desktop.
By taking Fig. 4 as an example, Fig. 4 is a kind of primary resource position schematic layout pattern provided in an embodiment of the present invention.One in Fig. 4 is small
Square (a width of 1BU, a height of 1BU) is unit pixel, using the upper left corner as reference origin, the thick line rectangle frame in the upper left corner in Fig. 4
Coordinate is (0BU, 0BU, 10BU, 6BU), if shown on 720p high definition TV, only coordinate need to be multiplied by into 16px, you can will
The relative coordinate of drafting is converted into the actual pixels coordinate (0px, 0px, 160px, 96px) of physical equipment, is finally rendered directly to
On 720p ultra high-definition TV screens.Such as on ultra high-definition TV show, only need to be multiplied by 24px can determine that actual pixels coordinate (0px,
0px,240px,144px)。
In this way, by gridding interface, carrier administrator only needs simple mouse drag, pass through the side for combining and splitting
Formula is rapidly completed flexible a, drafting for the desktop with certain complexity.
After desktop is completed, each rectangle frame is primary resource position, with the Element abstract representations in data model.
Centre manager is presented can be specific by physically assemble one group Element and one by way of being manually specified
Group abstract-associations, and data binding rule, such as static binding or dynamic socket binding are set on Group, in so presenting
Heart manager just creates a complete desktop page.
After client application starts, the desktop description information after updating can be obtained from server in time, and carry out
Desktop updates, for example, updating the imposition layout of the desktop description object on desktop, or updates each desktop description pair on desktop
Content as shown in, it is achieved thereby that the dynamic drafting of desktop, this is also that one of Key Implementation of dynamic desktop is realized without upgrading.
Based on the table top set-ups figure shown in the system architecture diagram and Fig. 4 shown in above-mentioned Fig. 1, illustrate this hair with reference to Fig. 5
The desktop collocation method that bright embodiment is provided.As shown in figure 5, this method comprises the following steps.
S501:Server generates desktop description information, and the position that the desktop description information includes desktop description object is believed
The data message that breath and the desktop description object are bound.
In the embodiment of the present invention, the keeper of server creates one or more new desktops, and the layout for completing desktop is drawn
With the binding configuration of related data.Keeper is managed to the new primary resource position created in desktop, setting content metadata
Binding and the binding of default static data.The data configuration authority distribution of primary resource position is given different operators by keeper.Behaviour
Primary resource position to be configured is checked after work person's login system, the display data of primary resource position can be reset, data source can be interior
Hold metadata or default static data.Certainly, operator can also be to primary resource position to be configured without showing number
According to replacement, but maintain keeper configuration.Afterwards, operator is to completing the desktop preview of configuration and issuing in advance.Finally, examine
Core person's login system checks pending desktop, and completes preview and examination & verification, can formally be issued after confirmation is errorless.Wherein, it is interior
Hold metadata, be exactly the descriptive metadata (metadata) of video, the content metadata is stored in CMS.If silent
Recognize static data, exactly determine picture and word and the target pages redirected in description document.
For example, the keeper of server is Guangdong Telecom IPTV operation centre directors.The operator of Administrator includes
Guangzhou telecommunication media Chief of Centre, Shenzhen Telecom media center director and Dongguan telecommunication media Chief of Centre.Administrator
Auditor include Guangdong Telecom cooperation at director and media center deputy director.
In the embodiment of the present invention, the form of the desktop description information can be json forms.
Fig. 6 is referred to, is that a kind of data structure of the desktop description information of json forms provided in an embodiment of the present invention is shown
It is intended to.It will be appreciated from fig. 6 that desktop description information includes Launcher, Shortcut, Nav, Page, Element and Group
Description information, wherein, Shortcut, Nav, Page, Element belong to desktop description object, and Launcher and Group do not belong to
In desktop description object.The description information of primary resource position includes the positional information of primary resource position, and the embodiment of the present invention is with desktop
Description information includes illustrating exemplified by the positional information of primary resource position, the positional information of navigation, the position letter of shortcut
The positional information of breath and attached resource-niche is similarly.In addition, also including the number of single primary resource position binding in desktop description information
It is believed that the action message triggered behind breath and click primary resource position.
Wherein, Launcher description information includes fileversion number (version) (fileversion number shows this
The version number of launcher.json files), the group list (groups) of desktop, the upper left corner shortcut list of desktop
(shortcuts) (shortcut of desktop is arranged from right to left by array order), desktop navigating lists (navs) (desktop
Navigating lists are from left to right arranged), the attached resource-niche list (additionElements) of desktop etc..Group description information
Include packet numbering (id), group names (name), being grouped corresponding data type (type), (difference numbering represents different
Data type, for example:0th, no data in Group.1st, VOD columns list.2nd, channel column list.3rd, VOD lists under column.4、
Channel list under column.5th, VOD ranking lists.6th, user collaborative recommends VOD lists.7th, user preference recommends VDO lists.8th, user
Preference recommends TV playback list.9th, the focus channel program list played.10th, future will play programme televised live list
Recommend.11st, user plays VOD history.12nd, user VOD is collected.13rd, user channel collection.99:Other platform interfaces.)、
Interface message processor (IMP) address (apiURL) (apiURL is just effective when type is 99) of data etc. in Group.Shortcut description letter
Breath includes shortcut unique number (id), shortcut types (type), whether allows to fall the configured information of focus
(canFocus), action (elementAction) triggered after shortcut name (name), click shortcut etc..Nav's
Description information includes page unique number (id), Page Name (name), the interface message processor (IMP) address (actionURL) of action, dish
Page list (pagelist), navigation title under single etc..Page description information includes page unique number (id), page name
(width of unit pixel indicating member lattice is high (cell is called square), high definition TV for (name), unit pixel (buPixel)
Be 16px under (1280px*720px), be 24px under ultra high-definition TV (1920px*1080px)), unit width (buWidth)
Referred to herein as 80), unit height (unit width indicates the cell number that occupies of screen width, and such as 1280px is occupancy 80,
(buHeight) (unit height indicates the cell number that screen height is occupied, and such as 720px is occupancy 45, referred to herein as 45),
Page primary resource ranks table (elements) etc..Element description information includes the unique number (id) of primary resource position, master
(difference numbering represents and shows different data types on primary resource position the type (type) of resource-niche, for example:0th, video is (direct
Broadcasting channel or film clips).1st, picture (refer to primary resource position upper exhibiting pictures) 2, widget (refer to loaded on primary resource position it is small
Program).3rd, third party's page (referring to primary resource position needs to open the page, and the entrance of third party's page is presented).4th, text (refers to main money
Source shows word on position, and in units of grid number, origin coordinates is since 0).), primary resource position top coordinates (using grid number as
Unit, origin coordinates is since 0.), primary resource position left coordinates (in units of grid number, origin coordinates is since 0.), it is main
The width coordinates of resource-niche are (in units of grid number.), primary resource position height coordinates (in units of grid number.), main money
(if primary resource position does not belong to packet, the field is sky to the numbering (GroupID) of packet belonging to the position of source.If resource-niche belongs to
It is in packet, then preferential to obtain primary resource position data from packet interface machine or column and be shown), primary resource position default data it is detailed
Define (elementData), whether force using default data configured information (forceDefaultData) (value be ture
Or false, it is defaulted as false.The value is effective when primary resource position belongs to packet.If ture, then using default data, if
For false, then using the data of packet associated, only grouped data, which is obtained, does not just use default data then) etc..Wherein, it is main
Top coordinates, left coordinates, width coordinates and the height coordinates of resource-niche are the positional information of main resource-niche.
ElementData description information includes the title (name) of primary resource position, primary resource position displaying content (contentURL)
(during tlementtype=0, as broadcast address, support two kinds of forms:VOD types and Channel types.tlementtype
When=1, picture address is used as.It is widget ID during tlementtype=2.It is third party during tlementtype=3
Web page address.) etc..The type of service (actionType) that ElementAction description information includes trigger action is (different
Numbering represents different actions, for example:0th, video is played.1st, third party's network address is jumped to.2nd, webpage is opened.3rd, application is opened
APP.), action target URL (actionURL) (actionURL be 0 when, for play video URL.When actionURL is 1,
Redirect third party website URL.When actionURL is 2, local page is redirected.It is the bag of application installation package when actionURL is 3
Name) etc..
S502:The desktop description information is sent to client by the server.
In the embodiment of the present invention, when the desktop description information that server is generated for it is a kind of when, server is by a kind of this desktop
Description information is sent to different clients, therefore the desktop layouts mode of different clients and the data content of displaying are phases
With;When the desktop description information that server is generated is at least two, the table that at least two desktops description information includes
The positional information of face description object is different, and/or the data message of desktop description object binding is different, therefore, when client to
During server acquisition request desktop description information, server sends the desktop description information of matching according to desktop distribution policy
To client.Desktop distribution policy can be as the user's group belonging to client, the corresponding service provider of client, client institute
The factor decision such as the geographical position at place or the device type of client, in this case, the desktop layouts side of different clients
Formula and the data content of displaying can be different.For example, VIP user uses A desktops, the domestic consumer's group in B areas uses B
Desktop, high definition set top box user uses C desktops.
S503:The desktop description information that client the reception server is sent, believes according to the position of the desktop description object
Cease the number that the mapping of desktop description object is carried out on the desktop of the client and is bound according to the desktop description object
It is believed that breath shows the data of the desktop description object binding on the desktop.
In the embodiment of the present invention, client is got after the desktop description information of server transmission, according to Launcher pairs
Version as in judges whether to change.If had altered, need to be updated the flow of parsing desktop description object.
The flow of client parsing is as follows:Client is got after desktop description information, is parsed into desktop description object.First determine whether table
Face describes version (Launcher.version) and whether the local desktop version number of application is consistent, if unanimously, illustrating table
Terminate without renewal, flow in face.If inconsistent, navigation description information is obtained first, quick description information and attached resource-niche are retouched
Information (i.e. navs [], shortcuts [] and additionElements []) is stated, the navigation on desktop is drawn respectively, fast
Mode and attached resource-niche (for example, draw the title of each navigation, draw the title of each shortcut and to draw each attached
The title of resource-niche).Client application obtains the page listings (Nav.pageList) of navigation bar now, and each page is drawn successively
Face, including draw the title of each page and draw the primary resource position in each page.When drawing each page, in addition it is also necessary to
According to the primary resource under each page rank table (Page.elements) draw under the page all primary resources position.Here, exist
Draw primary resource position when, client according to primary resource position description information in positional information (i.e. top, left, width,
Height) and client the default resolution ratio of desktop resolution ratio and server ratio come on the desktop of client carry out
The mapping of primary resource position.After the page is completed, data binding is carried out.First by primary resource position in desktop description information
(Element) description is extracted.The list is traveled through, sign position (forceDefaultData) identification primary resource therein is judged
The data of position are to bind by hand or interface dynamic binding.If binding by hand, i.e., operator is in the direct appointment displays of PHM
Hold (such as picture or word), then the data (Element.elementData []) that client is obtained under primary resource position are retouched
State, direct exhibiting pictures or word.If interface dynamic binding, then client by primary resource position (Element) according to packet
Merger (Element.groupID identicals are a group).After the completion of merger, the packet associated according to packet ID (groupID)
Object (Group), sends interface requests (Group.apiURL) dynamic access data on packet object, and bind it to this
On primary resource position.So far, the drafting of desktop and data binding are complete.It should be noted that navigation, shortcut and attached
The display location of category resource-niche on the table is usually fixed, and therefore, client is when dispatching from the factory, you can led with having configured each
Boat, the display location of shortcut and attached resource-niche on the table.Certainly, navigation, shortcut and attached resource-niche
Display location on the table can also carry out needing to increase in dynamic configuration, desktop description information navigating, soon using the application
The positional information of prompt mode and attached resource-niche on the table, client is getting the desktop description information of server transmission
Afterwards, each primary resource position in each page can be not only drawn out, each navigation, shortcut and attached can also be drawn out
Belong to resource-niche, the data mapping of each desktop description object is carried out afterwards.
It should be noted that the data structure of desktop description information provided in an embodiment of the present invention is intended only as one kind and shown
Example, in actual applications, desktop description information can also have other data formats, and the embodiment of the present invention is not especially limited.
Fig. 7 shows a kind of embodiment of server and client side provided in an embodiment of the present invention, and the two is constituted
The structural representation of communication system.As shown in fig. 7, communication connection may be present between server 700 and client 800, such as it is blue
Tooth is connected, WiFi connections etc., and data communication therebetween can be achieved.Description developed below.
As shown in fig. 7, server 700 may include:Processing unit 701 and communication unit 702.Wherein:
Processing unit 701 can be used for generation desktop description information, and the desktop description information includes desktop description object
Positional information and the data message of desktop description object binding;
Communication unit 702 can be used for the desktop description information being sent to client 800, and the desktop description information is used
Desktop description is carried out on the desktop of the client according to the positional information of the desktop description object in the client 800
The mapping of object and the data message bound according to the desktop description object show that the desktop is described on the desktop
The data of object binding.
Optionally, the desktop description information includes the desktop at least two, at least two desktops description information
The positional information of description object is different and/or data of desktop description object binding at least two desktops description information
Information is different;The communication unit 702, for the desktop description information to be sent into client 800, including:
The ground residing for user's group, the corresponding service provider of client 800, client 800 according to belonging to client 800
At least two desktops description information is sent at least two clients by the device type of reason position or client 800
800。
Optionally, the desktop description object includes navigation, attached resource-niche, shortcut, the page and primary resource position
In at least one.
Optionally, the data message of the desktop description object binding includes content metadata or default static data.
Optionally, the desktop description information is that the server is configured for the desktop of default resolution ratio, described pre-
If resolution ratio is used for the client draws the page according to the ratio of the default resolution ratio and the resolution ratio of the client
Primary resource position in face.
As shown in fig. 7, client 800 may include:Communication unit 801 and processing unit 802.Wherein:
Communication unit 801 can be used for the desktop description information that the reception server 700 is sent, and the desktop description information includes
The positional information of desktop description object and the data message of desktop description object binding;
Processing unit 802 can be used for the positional information according to the desktop description object enterprising in the desktop of the client
The mapping of row desktop description object, and the data message bound according to the desktop description object show institute on the desktop
State the data of desktop description object binding.
Optionally, the desktop description information is user's group of the server according to belonging to the client, the visitor
The device type in geographical position or the client residing for the corresponding service provider in family end, the client is from least two
Plant what is selected in desktop description information, the positional information of the desktop description object at least two desktops description information is different
And/or the data message of the desktop description object binding at least two desktops description information is different.
Optionally, the desktop description object includes navigation, attached resource-niche, shortcut, the page and primary resource position
In at least one.
Optionally, the desktop description object include the navigation, it is the attached resource-niche, the shortcut, described
The page and primary resource position;The processing unit 802, for according to the positional information of the desktop description object described
The mapping of desktop description object is carried out on the desktop of client, including:
The navigation is drawn on the desktop of the client 800 according to the positional information of the navigation, according to described attached
The positional information of category resource-niche control draws the attached resource-niche on the desktop, and according to the position of the shortcut
Confidence breath draws the shortcut on the desktop;
At least one page of the navigation binding is obtained, each page binding at least one described page
The positional information of primary resource position draws the primary resource position in each page.
Optionally, the data message of the desktop description object binding includes content metadata or default static data;
The processing unit 802, the data message for being bound according to the desktop description object is opened up on the desktop
Show the data of the desktop description object binding, including:
If the data message of desktop description object binding is content metadata, obtain the content metadata and
The content metadata of the desktop description object binding is shown on the desktop;
If the data message of the desktop description object binding is default static data, shown on the desktop described
The default static data of desktop description object binding.
Optionally, the desktop description information is that the server is configured for the desktop of default resolution ratio;
The processing unit 802, the primary resource position bound for each page at least one described page
Positional information draws the primary resource position in each page, including:
According in the ratio and at least one described page of the default resolution ratio and the resolution ratio of the client
The positional information of the primary resource position of each page binding draws the primary resource position in each page.
It is to be appreciated that NM content and each functional unit are implemented in Fig. 7 embodiments, Fig. 5 refer to
Embodiment, is repeated no more here.
In summary, the embodiment of the present invention is implemented, server can flexibly set the position of desktop description object on desktop
Information and the data message of binding, and transmit these information to client so that client can flexibly change desktop
Pattern and the content of displaying, also, server can combine type of client etc. by different desktop description information transmissions
To different clients, the variation of desktop pattern and the content of displaying between different clients is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.