CN102065338A - Digital television interaction service tag language resolution method and system - Google Patents
Digital television interaction service tag language resolution method and system Download PDFInfo
- Publication number
- CN102065338A CN102065338A CN2010105287599A CN201010528759A CN102065338A CN 102065338 A CN102065338 A CN 102065338A CN 2010105287599 A CN2010105287599 A CN 2010105287599A CN 201010528759 A CN201010528759 A CN 201010528759A CN 102065338 A CN102065338 A CN 102065338A
- Authority
- CN
- China
- Prior art keywords
- digital television
- label
- dom tree
- television interactive
- language
- 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.)
- Pending
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a digital television interaction service tag language resolution method, which comprises the following steps of: acquiring network resource information; identifying tag information in the network resource information, resolving the acquired network resource information into a tag stream, and tagging special tags belonging to a digital television interaction tag language; constructing a document object model (DOM) tree for the digital television interaction tag language; and constructing a Render tree on the constructed DOM tree, realizing the rendering of web pages and adding node position coordinates and color typesetting information. The embodiment of the invention also discloses a digital television interaction service tag language resolution system. In the method and the system, the digital television interaction service tag language can be more comprehensively supported and the rendering of the web pages can be more rapidly realized.
Description
Technical field
The present invention relates to the digital television techniques field, be specifically related to a kind of digital television interactive service labels language analytic method and system.
Background technology
Digital television interactive service labels language is that the main contents of digital television interaction service are carried out the function extraction with abstract, and expand based on present popular XML language, fully taking into account terminal receiving equipment (set-top box, all-in-one etc.) environment of performance and function and ability to bear, form the content description language of the complete terminaloriented of a cover, the final standard criterion that forms the content description language of terminaloriented, make the interactive service developer to present the page and interaction flow flexibly according to the difference customization of providing interactive service content, make an explanation by terminal equipment, present and data interaction, and have stronger autgmentability with compatible, the exploitation of interactive service content and terminal equipment browser is played the effect of standard.
Present most of browser major part all is based on the application on PC or the mobile phone, cause the analytics engine of its core can not well be applied on the digital television interactive service labels language, the core of these browsers is supported incomplete to Digital Television interactive service markup language, these engine major parts all will take a large amount of computer resources simultaneously, therefore be not suitable for less this characteristic of embedded resource, design and realize that can support Digital Television interactive service markup language to resolve for one seems particularly important.
Summary of the invention
The embodiment of the invention provides a kind of digital television interactive service labels language analytic method and system, not only can effectively improve the analyzing efficiency of set box browser, and can support Digital Television interactive service markup language completely.
Accordingly, the embodiment of the invention provides a kind of digital television interactive service labels language analytic method, comprising:
Obtain network resource information;
Label information in the recognition network resource information resolves to label stream with the network resource information that obtains, and the label that belongs to the special usefulness of digital television interactive markup language is carried out label;
Described digital television interactive markup language is made up dom tree;
On the dom tree that makes up, make up the Render tree, realize playing up of webpage, add node location coordinate and color composition information.
Describedly described digital television interactive markup language made up dom tree comprise:
For the situation that contains JS in the webpage, it also will call the JS engine, and utilizes its analysis result to improve dom tree.
The described network resource information that obtains comprises: resolve in advance with the Internet resources buffer memory that obtains, and to the Internet resources of buffer memory.
Describedly described digital television interactive markup language is made up dom tree comprise: label of every parsing just adds in the tag queue, and the DOM module then makes up dom tree to label from formation.
Describedly on the dom tree that makes up, make up the Render tree and comprise: create a dom tree node at every turn and just trigger the Render node of creating a correspondence, realize the simultaneous growth that dom tree and Render set.
The Internet resources acquisition module is used to obtain webpage, CSS, XML, picture Internet resources;
The label parsing module is used for identification label, and webpage is resolved to label stream, and the label that belongs to the special usefulness of digital television interactive markup language is carried out label;
The dom tree generation module is used to make up dom tree, for the situation that contains JS in the webpage, also will call the JS engine, and utilizes its analysis result to improve dom tree;
Render sets generation module, is used for realizing playing up of webpage on the basis of dom tree, adds the position coordinates of node, the color composition information.
The label parsing module does not need whole Internet resources all to download to finish just to begin to resolve, but the dynamic process of resolving while downloading, thereby need a buffering area realize the synchronous of network portion and other parts.
Described label parsing module resolves to label stream with webpage, carries out label to belonging to the distinctive label of digital television interactive markup language.
Render tree in the Render tree generation module is what to generate on the basis of dom tree, but is not directly to rewrite on dom tree.
Render tree in the Render tree generation module here is what to generate on the basis of dom tree, but is not directly to rewrite on dom tree.
The present invention contrasts prior art following beneficial effect: because the embodiment of the invention adopts at the specific label language is the analytic method and the system of digital television interactive service labels language, therefore can support Digital Television interactive service markup language more comprehensively and with realizing playing up of webpage fast.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the digital television interactive service labels language analytic method flow chart in the embodiment of the invention;
Fig. 2 is the digital television interactive service labels language resolution system structure chart in the embodiment of the invention;
Fig. 3 is another flow chart that the digital television interactive service labels language in the embodiment of the invention is resolved;
Fig. 4 is the generative process flow chart for dom tree and Render tree in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 shows digital television interactive service labels language analytic method flow chart of the present invention, comprises the steps:
S101: obtain network resource information;
Here mainly be to obtain Internet resources such as webpage, CSS, XML, picture.Need to prove, obtain network resource information here, is not once all Internet resources all to have been downloaded just to begin to resolve, and triggers one parsing but whenever read a secondary data in the meshwork buffering.
S102: the label information in the recognition network resource information, the network resource information that obtains is resolved to label stream, the label that belongs to the special usefulness of digital television interactive markup language is carried out label;
Need to prove that for the situation that contains JS in the webpage, it also will call the JS engine, and utilize its analysis result to improve dom tree.
S103: described digital television interactive markup language is made up dom tree;
Need to prove that label of every parsing just adds in the tag queue here, the DOM module then makes up dom tree to label from formation.
S104: on the dom tree that makes up, make up the Render tree, realize playing up of webpage, add node location coordinate and color composition information.
Need to prove, create a dom tree node here at every turn and just trigger the Render node of creating a correspondence, realize the simultaneous growth of dom tree and Render tree.
Accordingly, Fig. 2 shows the digital television interactive service labels language resolution system structure chart in the embodiment of the invention, comprising:
Internet resources acquisition module 201 is used to obtain webpage, CSS, XML, picture Internet resources;
Need to prove that the label parsing module 202 does not here need whole Internet resources all to download to finish just to begin to resolve, but while downloading the dynamic process of parsing.Thereby need a buffering area to realize the synchronous of network portion and other parts.
The label parsing module 202 here resolves to label stream with webpage, carries out label to belonging to the distinctive label of digital television interactive markup language.
Dom tree generation module 203 is used to make up dom tree, for the situation that contains JS in the webpage, also will call the JS engine, and utilizes its analysis result to improve dom tree;
Render sets generation module 204, is used for realizing playing up of webpage on the basis of dom tree, adds the position coordinates of node, the color composition information.
Concrete, referring to Fig. 2, the flow chart that this figure provides digital television interactive service labels language to resolve is described in detail below in conjunction with case study on implementation.
Step B01 downloads webpage or XML or CSS or picture etc., and this step is not all Internet resources are all once downloaded, but according to the different different contents of request download.
Step B02, analyzing web page, and the label of its parsing put into to the row buffering area simultaneously owing to may will read several times at B01 for bigger network and just can finish, all can trigger webpage and resolves but read at every turn.
Step B03 safeguards tag queue.B02 adds label in formation, B04 gets label in formation
Step B04 obtains label from label stream, generates new joint according to label and context, obtains father node then and its son that joins father node in the middle of some, is connect down also and will be connected to its brotgher of node.In addition the dom tree generation module also will be realized setting cooperating of module with Render, for the situation that contains JS in the webpage, it also will call the JS engine and promptly carry out B06, and utilize its analysis result to improve dom tree, if also need other Internet resources simultaneously, the dom tree generation module also will be responsible for the request of other Internet resources.
Step B05, on the basis of dom tree, realize playing up of webpage, but be not on dom tree, directly to rewrite, but generate one tree in addition, generative process and DOM are similar, at first will generate this node, obtain father node then and with its son that joins father node in the middle of some, to be connected to its brotgher of node simultaneously, also should be connected to corresponding dom tree node in addition.Then adding the position coordinates of node, composition information such as color.
Can be with reference to figure 4, wherein for the generative process of dom tree and Render tree: the relation that fine rule has been set up before representing, thick line be represented the connection that will set up, and concrete steps are as follows:
Step1 generates DOM node C according to label;
Based on context Step2 obtains father node A;
Step3 points to C with the child pointers of father node A;
Step4 points to brotgher of node B with C;
Step5 generates new Render node F;
Step6 obtains father node D;
Step7 is connected to father node D with node F;
Step8 is connected to brotgher of node E with node F;
Step9 is connected to corresponding DOM node C with the F node.
To sum up, the present invention has following beneficial effect: because the embodiment of the invention adopts at the specific label language is the analytic method and the system of digital television interactive service labels language, therefore can support Digital Television interactive service markup language more comprehensively and with realizing playing up of webpage fast.
Need to prove, contents such as the information interaction between said system and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to a kind of digital television interactive service labels language analytic method and system that the embodiment of the invention provided, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (9)
1. a digital television interactive service labels language analytic method is characterized in that, comprising:
Obtain network resource information;
Label information in the recognition network resource information resolves to label stream with the network resource information that obtains, and the label that belongs to the special usefulness of digital television interactive markup language is carried out label;
Described digital television interactive markup language is made up dom tree;
On the dom tree that makes up, make up the Render tree, realize playing up of webpage, add node location coordinate and color composition information.
2. digital television interactive service labels language analytic method as claimed in claim 1 is characterized in that, describedly described digital television interactive markup language is made up dom tree comprises:
For the situation that contains JS in the webpage, it also will call the JS engine, and utilizes its analysis result to improve dom tree.
3. digital television interactive service labels language analytic method as claimed in claim 1, it is characterized in that: the described network resource information that obtains comprises: resolve in advance with the Internet resources buffer memory that obtains, and to the Internet resources of buffer memory.
4. digital television interactive service labels language analytic method as claimed in claim 1, it is characterized in that, describedly described digital television interactive markup language is made up dom tree comprise: label of every parsing just adds in the tag queue, and the DOM module then makes up dom tree to label from formation.
5. digital television interactive service labels language analytic method as claimed in claim 1, it is characterized in that, describedly on the dom tree that makes up, make up the Render tree and comprise: create a dom tree node at every turn and just trigger the Render node of creating a correspondence, realize the simultaneous growth that dom tree and Render set.
6. digital television interactive service labels language resolution system is characterized in that described system comprises:
The Internet resources acquisition module is used to obtain webpage, CSS, XML, picture Internet resources;
The label parsing module is used for identification label, and webpage is resolved to label stream, and the label that belongs to the special usefulness of digital television interactive markup language is carried out label;
The dom tree generation module is used to make up dom tree, for the situation that contains JS in the webpage, also will call the JS engine, and utilizes its analysis result to improve dom tree;
Render sets generation module, is used for realizing playing up of webpage on the basis of dom tree, adds the position coordinates of node, the color composition information.
7. as according to the described digital television interactive service labels of claim 6 language resolution system, it is characterized in that: the label parsing module does not need whole Internet resources all to download to finish just to begin to resolve, but the dynamic process of resolving, thereby need a buffering area to realize the synchronous of network portion and other parts while downloading.
8. digital television interactive service labels language resolution system according to claim 6 is characterized in that: described label parsing module resolves to label stream with webpage, carries out label to belonging to the distinctive label of digital television interactive markup language.
9. digital television interactive service labels language resolution system according to claim 6 is characterized in that, the Render tree in the Render tree generation module is what to generate on the basis of dom tree, but is not directly to rewrite on dom tree.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105287599A CN102065338A (en) | 2010-10-29 | 2010-10-29 | Digital television interaction service tag language resolution method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105287599A CN102065338A (en) | 2010-10-29 | 2010-10-29 | Digital television interaction service tag language resolution method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102065338A true CN102065338A (en) | 2011-05-18 |
Family
ID=44000395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105287599A Pending CN102065338A (en) | 2010-10-29 | 2010-10-29 | Digital television interaction service tag language resolution method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102065338A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306174A (en) * | 2011-08-24 | 2012-01-04 | 百度在线网络技术(北京)有限公司 | Method and equipment for interacting with user based on web page elements |
CN102799655A (en) * | 2012-06-29 | 2012-11-28 | 奇智软件(北京)有限公司 | Processing method and apparatus of improper picture information in webpage |
CN103198064A (en) * | 2012-01-05 | 2013-07-10 | 宏碁股份有限公司 | Web page browsing system and method |
CN103473347A (en) * | 2013-09-24 | 2013-12-25 | 北京大学 | Web page similarity-based browser rendering optimization method |
CN106354490A (en) * | 2016-08-19 | 2017-01-25 | 成都卓影科技股份有限公司 | Dynamic layout method for EPG page |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101500139A (en) * | 2009-02-12 | 2009-08-05 | 中山大学 | Data synchronization method for digital television charging service system |
-
2010
- 2010-10-29 CN CN2010105287599A patent/CN102065338A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101500139A (en) * | 2009-02-12 | 2009-08-05 | 中山大学 | Data synchronization method for digital television charging service system |
Non-Patent Citations (1)
Title |
---|
吴杨: "基于互动机顶盒的嵌入式浏览器的设计和研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306174A (en) * | 2011-08-24 | 2012-01-04 | 百度在线网络技术(北京)有限公司 | Method and equipment for interacting with user based on web page elements |
CN103198064A (en) * | 2012-01-05 | 2013-07-10 | 宏碁股份有限公司 | Web page browsing system and method |
CN102799655A (en) * | 2012-06-29 | 2012-11-28 | 奇智软件(北京)有限公司 | Processing method and apparatus of improper picture information in webpage |
CN103473347A (en) * | 2013-09-24 | 2013-12-25 | 北京大学 | Web page similarity-based browser rendering optimization method |
CN103473347B (en) * | 2013-09-24 | 2017-01-11 | 北京大学 | Web page similarity-based browser rendering optimization method |
CN106354490A (en) * | 2016-08-19 | 2017-01-25 | 成都卓影科技股份有限公司 | Dynamic layout method for EPG page |
CN106354490B (en) * | 2016-08-19 | 2019-08-27 | 成都卓影科技股份有限公司 | EPG page Dynamic Distribution method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495192B (en) | Page editing processing method and device | |
CN108415702B (en) | Dynamic rendering method and device for application interface of mobile terminal | |
CN108259620B (en) | Advertisement editing and previewing method, intelligent terminal, system and storage device | |
CN108965397A (en) | Cloud video editing method and device, editing equipment and storage medium | |
US20130132422A1 (en) | System and method for creating and controlling an application operating on a plurality of computer platform types | |
CN104079652B (en) | method for making and playing HTM (hypertext markup language) advertisement file | |
CN104407863A (en) | Abstract control model programming device and method | |
CN103049439A (en) | Processing method for markup language documents, browser and network operating system | |
CN104850388A (en) | Method and apparatus for drafting webpage | |
CN102065338A (en) | Digital television interaction service tag language resolution method and system | |
CN105700925A (en) | APP interface implementation method and apparatus | |
US20170371975A1 (en) | Accessibility tagger for non-accessibility enabled webpages | |
CN103531218A (en) | Online multimedia file editing method and system | |
CN101963992A (en) | Method and browser for increasing webpage display speed | |
US9247293B2 (en) | System and method for multi-standard browser for digital devices | |
JP5414792B2 (en) | Method and apparatus for providing rich media service | |
CN103024564B (en) | IPTV platform EPG page visual development and automatic generation method | |
CN105989126B (en) | A kind of Webpage display process and device | |
CN102508887A (en) | System and method for resolving digital television interaction service markup language | |
CN102568021B (en) | A kind of picture playing method based on flash and system | |
CN102186114A (en) | ETL (Extraction Transformation and Loading) based digital television interactive application middleware | |
CN103248647A (en) | Method and server providing cross-platform book reading | |
CN104572794A (en) | Method and system for showing network information in a user-friendly manner | |
CN113784194A (en) | Embedding method and device of video player | |
CN106293862B (en) | A kind of analysis method and device of expandable mark language XML data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110518 |