CN101227552B - Method for developing set-top box menu - Google Patents

Method for developing set-top box menu Download PDF

Info

Publication number
CN101227552B
CN101227552B CN2007100775912A CN200710077591A CN101227552B CN 101227552 B CN101227552 B CN 101227552B CN 2007100775912 A CN2007100775912 A CN 2007100775912A CN 200710077591 A CN200710077591 A CN 200710077591A CN 101227552 B CN101227552 B CN 101227552B
Authority
CN
China
Prior art keywords
menu
top box
xml
depth
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007100775912A
Other languages
Chinese (zh)
Other versions
CN101227552A (en
Inventor
祝军志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN2007100775912A priority Critical patent/CN101227552B/en
Publication of CN101227552A publication Critical patent/CN101227552A/en
Application granted granted Critical
Publication of CN101227552B publication Critical patent/CN101227552B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a development process of a set-top box menu, which adopts an XML file to express the menu information, defines the property in the set-top box menu with the XML label to build up the relative relationship between the XML label and the set-top box menu, and modifies the structure of the menu through modifying the property of the menu property. The development process of the set-top box menu of the invention has the advantages of simple development flow and high development efficiency.

Description

A kind of development approach of set-top box menu
Technical field
The present invention relates to digital TV field, relate in particular to a kind of menu development approach of digital TV set-top box.
Background technology
Flourish along with Digital Television, the individual demand of different operators is also more and more, and is also more and more to the set-top box menu structural modification.
The exploitation of set-top box software now all is based on the C language basically, and is lower in the modification efficient to menu structure.For the personalized menu demand that operator proposes, generally be to revise code, distinguish each operator with the most original macrodefinition in the C language.The present domestic operator that more than 200 independent operation arranged, the personalized menu demand is very many, makes a whole set of software systems become redundant numerous and diverse, easy care not, development efficiency is also very low simultaneously.
Fig. 1 (a) is the menu structure of giving tacit consent in a kind of set-top box, the one-level menu has program guide and program, video request program, TV programme and 3 submenus of broadcast program are arranged below the program guide, editing saving and 2 submenus of program searching are arranged below the program.The commercial city of various places operation now wishes to design menu by the actual conditions of own network, if operator wants video request program is put into below the program guide management, menu name with video request program changes home theater into simultaneously, and concrete menu format shows shown in Fig. 1 (b).By common development process, the software engineer will analyze menu structure, revises code by new menu structure then.Workload is big like this, and causes the software systems redundancy numerous and diverse easily, not easy care.
Summary of the invention
In view of this, be necessary to provide a kind of development process simple set-top box menu development approach.
The invention provides a kind of development approach of set-top box menu, it is characterized in that, adopt the XML file to represent menu information, attribute in the set-top box menu is defined with the XML label, make the XML label set up corresponding relation with the set-top box menu attribute, by this menu label attribute is made amendment, come the structure of menu is made amendment with this.
Compared with prior art, the present invention shows the menu information of set-top box with the XML form, the program of accomplishing is separated with menu structure, set-top box reads the XML file when starting, reduce set-top box menu structure and showing according to the respective labels value in the XML file again, when needs are adjusted the set-top box menu structure, as long as will represent the XML file of menu structure changes, and need not change program code, improved software development efficiency, system is become safeguard easily, compatible good.
Description of drawings
Fig. 1 is the menu structure schematic diagram in the set-top box.
Fig. 2 is the flow chart that set-top box of the present invention reads the XML menu file.
Embodiment
In the set-top box menu development approach of the present invention, set-top box menu information adopts XML (ExtensibleMarkup Language, extend markup language) representation of file, separates with menu structure with the program of accomplishing.At first define the XML file structure, the attribute in the set-top box menu is defined with the XML label, make the XML label set up corresponding relation with the set-top box menu attribute.For example, Menu_Depth represents the position of menu, Menu_TileChn represents Chinese title, Menu_TileEng represents English title, Menu_ExeTime represents that menu shows duration, Menu_Status represents whether menu activates, and Menu_Page represents the page of menu links, and Menu_Function represents the function that menu is carried out.Then, the coordinate in the definition menu properties and the relation of this menu position, as: the position Menu_Depth of Menu_Depth menu is expressed as { An}, its expression menu is in the position of an menu of n level menu, be the position of first coordinate representation in the ground floor menu in the attribute, second position of coordinate representation in second layer menu, and the like; The degree of depth of representing menu when coordinate is 0 this one deck of arriving is 2,1,0,0,0,0,0,0 as the coordinate attributes of Menu_Depth, is illustrated in second submenu in the one-level menu, is first submenu in the second-level menu.
Be the partial XML code of the menu of presentation graphs 1 (a) below:
……
-<channel?name=″1″>
<Menu_TileChn〉program guide</Menu_TileChn 〉
<Menu_Depth>1,0,0,0,0,0,0,0</Menu_Depth>
</channel>
-<channel?name=″2″>
<Menu_TileChn〉program</Menu_TileChn 〉
<Menu_Depth>2,0,0,0,0,0,0,0</Menu_Depth>
</channel>
-<channel?name=″3″>
<Menu_TileChn〉video request program</Menu_TileChn 〉
<Menu_Depth>1,1,0,0,0,0,0,0</Menu_Depth>
</channel>
……
When needs carried out the personalization modification to menu structure, an attribute that only needs to revise menu label got final product.As " video request program " menu among Fig. 1 a need be revised as " home theater " shown in Fig. 1 (b) time, as long as in the XML file will " video request program " and child node in attribute changes, change the Menu_TileChn attribute into home theater, change Menu_Depth into 2,1,0,0,0,0,0,0, can realize the modification of above-mentioned menu.Amended XML file is as follows:
……
-<channel?name=″3″>
<Menu_TileChn〉home theater</Menu_TileChn 〉
<Menu_Depth>2,1,0,0,0,0,0,0</Menu_Depth>
</channel>
……
Do not need to do any code during modification and change, make system be easy to safeguard, improved efficient simultaneously, even the right and wrong software developer also can carry out the personalized design of menu.
See also Fig. 2, set-top box of the present invention reads the flow chart of XML menu file.At first, set-top box is carried out initialization, read the XML menu file; Judge then whether XML menu file data are correct,, then call default menu, and on set-top box, show if incorrect; If correct, then read the tag attributes in the XML file, and each tag attributes value is composed to each submenu respective attributes, then each submenu is combined into complete set-top box menu structure, and on set-top box, shows.
Compared with prior art, the present invention shows the menu information of STB with the XML form, the program of accomplishing is separated with menu structure, STB reads the XML file when starting, come reducing machine top box menu structure according to the respective labels value in the XML file again and show, when needs are adjusted the set-top box menu structure, as long as will represent the XML file of menu structure changes, and need not change program code, improved software development efficiency, system is become safeguard easily, compatible good.
In addition, those skilled in the art also can do other variation in spirit of the present invention. The variation that these are done according to spirit of the present invention all should be included in the present invention's range required for protection.

Claims (4)

1. the development approach of a set-top box menu is characterized in that, adopts the XML file to represent menu information, and it comprises:
Attribute in the set-top box menu is defined with the XML label, make the XML label set up corresponding relation with the set-top box menu attribute;
Set-top box is carried out initialization, read the XML menu file; Judge then whether XML menu file data are correct,, then call default menu, and on set-top box, show if incorrect; If correct, then read the tag attributes in the XML file, and each tag attributes value is composed to each submenu respective attributes, then each submenu is combined into complete set-top box menu structure, and on set-top box, shows;
Wherein, by this menu label attribute is made amendment, come the structure of menu is made amendment with this.
2. the development approach of set-top box menu as claimed in claim 1, it is characterized in that, adopt Menu_Depth to represent the position of menu, Menu_TileChn represents Chinese title, Menu_TileEng represents English title, and Menu_ExeTime represents that menu shows duration, and Menu_Status represents whether menu activates, Menu_Page represents the page of menu links, and Menu_Function represents the function that menu is carried out.
3. the development approach of set-top box menu as claimed in claim 2 is characterized in that, the position Menu_Depth of menu is expressed as that { An}, its expression menu is in the position of An menu of n level menu.
4. the development approach of set-top box menu as claimed in claim 3 is characterized in that, when An=0, and the degree of depth this one deck of arriving of expression menu.
CN2007100775912A 2007-12-05 2007-12-05 Method for developing set-top box menu Expired - Fee Related CN101227552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100775912A CN101227552B (en) 2007-12-05 2007-12-05 Method for developing set-top box menu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100775912A CN101227552B (en) 2007-12-05 2007-12-05 Method for developing set-top box menu

Publications (2)

Publication Number Publication Date
CN101227552A CN101227552A (en) 2008-07-23
CN101227552B true CN101227552B (en) 2011-09-14

Family

ID=39859288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100775912A Expired - Fee Related CN101227552B (en) 2007-12-05 2007-12-05 Method for developing set-top box menu

Country Status (1)

Country Link
CN (1) CN101227552B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118650A (en) * 2011-01-25 2011-07-06 深圳市酷开网络科技有限公司 Method and device for displaying television menu, and television
CN105700778A (en) * 2016-01-11 2016-06-22 海鹰航空通用装备有限责任公司 Tree-shaped navigation menu generation method for handheld controller
CN114845173B (en) * 2022-05-30 2023-08-22 杭州国芯科技股份有限公司 Main menu generation method of set top box

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780442A (en) * 2004-11-23 2006-05-31 乐金电子(中国)研究开发中心有限公司 Mobile communication with settable dynamic manu and manu-setting method
CN1889039A (en) * 2006-06-26 2007-01-03 韩荣华 Method for realizing universal browsing device tool bar based on XML

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780442A (en) * 2004-11-23 2006-05-31 乐金电子(中国)研究开发中心有限公司 Mobile communication with settable dynamic manu and manu-setting method
CN1889039A (en) * 2006-06-26 2007-01-03 韩荣华 Method for realizing universal browsing device tool bar based on XML

Also Published As

Publication number Publication date
CN101227552A (en) 2008-07-23

Similar Documents

Publication Publication Date Title
CN100483391C (en) Incremental bottom-up construction of data documents
US10855765B2 (en) Content atomization
US9110686B2 (en) Web client command infrastructure integration into a rich client application
CN101281522B (en) Method and system for processing related key words
CN102141985B (en) A kind of manuscript online editor
CN102609271A (en) Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
KR101800744B1 (en) Method and apparatus for linking application and browser
CN101706720A (en) Method for showing interface according to customized information during operation
CN101217630A (en) A method of graphic generation of network TV electronic program guidance system template
US20130117656A1 (en) Conversion of web template designs
CN104407863A (en) Abstract control model programming device and method
CN102365619A (en) Method and apparatus for processing user interface composed of component objects
JP5536790B2 (en) Conditional processing method and apparatus
CN104461512A (en) Method and device for starting application program quickly
JP5414792B2 (en) Method and apparatus for providing rich media service
CN101227552B (en) Method for developing set-top box menu
Soares et al. Nested context language 3.0 part 8–ncl digital tv profiles
US7512955B2 (en) Method and system for accessing and implementing declarative applications used within digital multi-media broadcast
CN101944133B (en) XML metadata objectification analysis method and system
CN105302558A (en) Content presentation system and method for multiple clients
KR101519381B1 (en) Apparatus and method for making web application using html5
KR101709186B1 (en) Interactive multimedia E-book authoring apparatus and method
CN105335431A (en) Interface file processing method and apparatus and control message processing method and apparatus
CN106610827A (en) Method for extending customer attributes of browser focal point shift and realizing focal point shift
CN102082932B (en) Method and device for updating subtitle in secondary software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SKY-WORTH DIGITAL TECHNOLOGY CO., LTD.;SHENZHEN CITY

CP01 Change in the name or title of a patent holder

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A14

Patentee after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A14

Patentee before: Shenzhen Skyworth Digital Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110914

Termination date: 20151205

EXPY Termination of patent right or utility model