CN102917273B - A kind of method of cross-platform display application and device - Google Patents

A kind of method of cross-platform display application and device Download PDF

Info

Publication number
CN102917273B
CN102917273B CN201210370096.1A CN201210370096A CN102917273B CN 102917273 B CN102917273 B CN 102917273B CN 201210370096 A CN201210370096 A CN 201210370096A CN 102917273 B CN102917273 B CN 102917273B
Authority
CN
China
Prior art keywords
page
application
display resolution
size
described application
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.)
Active
Application number
CN201210370096.1A
Other languages
Chinese (zh)
Other versions
CN102917273A (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 Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201210370096.1A priority Critical patent/CN102917273B/en
Publication of CN102917273A publication Critical patent/CN102917273A/en
Priority to HK13107807.3A priority patent/HK1180858A1/en
Application granted granted Critical
Publication of CN102917273B publication Critical patent/CN102917273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method and device of cross-platform display application, for being displayed in full screen the page of SD application in high definition platform.Embodiment of the present invention method comprises: browser is according to the page-tag comprised in the page data of application, window size is adjusted to the size corresponding with the display resolution of the page of described application, and create the size painting canvas identical with the window size after adjustment, then by size that the adjusted size of browser view is corresponding with described display resolution, and according to the size of described browser view, typesetting is carried out to the page of described application, the page of the application draw typesetting in created painting canvas after, the page of the application of drafting is adjusted in painting canvas corresponding to target display resolution, the page data of the described application after stretching is sent to display unit show.

Description

A kind of method of cross-platform display application and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and device of cross-platform display application.
Background technology
At present, existing multiple country starts broadcasting high-definition television program, in the current art of China, HDTV (High-Definition Television) (HDTV, HighDefinitionTelevision) display format is 720P, resolution is 1280 × 720, Standard Definition Television (SDTV, Standard-DefinitionTV) display format is 480P, resolution reaches 720 × 576 or 640 × 526, because the application of high definition could show perfect visual effect on existing high definition set top box, and tv programme source, TV applications etc. have very long transit time by SD to high definition, so, how before SD application does not also all upgrade to high definition application, allowing SD be applied in upper operation of high definition application also ideally shows user to become an important topic.The window size of browser determines the data volume being shown to user, browser typesetting container size, refers to that browser is when display application, the wide height required for application, and general browser typesetting container size is by applying decision.In prior art, application browser is on the set-top box generally built-in browser, browser window size is preset and fixing, general consistent with current hardware resolution, resolution is 1280 × 720, but the wide height of typesetting required for SD application is fixed when design ap-plication, is generally 720 × 576 or 640 × 526.Like this, browser when the application of typesetting SD, or carries out typesetting according to the wide height of application design, because window size is greater than the display size of SD application, the result of browser display is exactly the upper left side that application is presented at screen, cannot be displayed in full screen, have a strong impact on visual effect.
In prior art, standard application is redesigned into high definition application, on high definition set top box, produces better visual effect to meet.
But in the above prior art, SD application is redesigned as high definition application, revise application on a large scale and cause workload large, and still in use SD application cannot revise, further, if there is high definition set top box and SD Set Top Box in network simultaneously, need to distinguish to issue different application.
Summary of the invention
Embodiments provide a kind of method and device of cross-platform display application, in order to pass through the application page drawn in the painting canvas of SD platform to be stretched in the painting canvas of high definition platform, thus in high definition platform, be displayed in full screen the page of SD application.
The method of the cross-platform display application that the embodiment of the present invention provides, comprise: browser is according to the page-tag comprised in the page data of application, whether the display resolution judging the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag; If not, then window size is adjusted to the size corresponding with the display resolution of the page of described application; Create the painting canvas that size is identical with the window size after adjustment; By the size that the adjusted size of browser view is corresponding with described display resolution, and according to the size of described browser view, typesetting is carried out to the page of described application; The page of the described application draw typesetting in created painting canvas after; The page of described application drawn is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike; The page data of the described application after stretching is sent to display unit, for showing the page of described application.
The device of the cross-platform display application that the embodiment of the present invention provides, comprise: judge module, for according to the page-tag that comprises in the page data of application, whether the display resolution judging the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag; Adjusting module, if described judge module judges the display resolution non-targeted display resolution of the page in described application, is then adjusted to the size corresponding with the display resolution of the page of described application by window size; Creation module, for creating the size painting canvas identical with the window size after adjustment; Described adjusting module, also for being the size corresponding with described display resolution by the adjusted size of browser view; Type-setting module, carries out typesetting for the size according to described browser view to the page of described application; Drafting module, for the page of the described application after drawing typesetting in the painting canvas that creates in described creation module; Described adjusting module, the page also for the described application of being drawn by described drafting module is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike; Sending module, for being sent to display unit, for showing the page of described application by the page data of the described application after adjustment.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: by carrying display resolution information in the page-tag of application, make browser can judge whether the display resolution of this application belongs to target display resolution when resolving this application, if not, then browser window size is adjusted to the size corresponding with the display resolution of the page of described application, and create the size painting canvas identical with the window size after adjustment, then by size that the adjusted size of the view of browser is corresponding with described display resolution, and according to the view of the browser after adjustment, typesetting is carried out to the page of described application, the page of the application draw typesetting in created painting canvas after, and then the page of the application of drafting is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn application corresponding with this target display resolution measure-alike, the page data of the described application after stretching is sent to display unit, for showing the page of described application, like this, do not revising on the basis of front end applications, target display platform is displayed in full screen the page of cross-platform application, when there is two or more display platform in a network simultaneously, such as, when there is high definition set top box and SD Set Top Box simultaneously, when each set-top box requests resource, front-end server is without the need to treating the page of display application with a certain discrimination, and improve data-handling efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
An embodiment schematic diagram of the method for the cross-platform display application that Fig. 1 provides for the embodiment of the present invention;
Another embodiment schematic diagram of the method for the cross-platform display application that Fig. 2 provides for the embodiment of the present invention;
An embodiment schematic diagram of the device of the cross-platform display application that Fig. 3 provides for the embodiment of the present invention;
Another embodiment schematic diagram of the device of the cross-platform display application that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Further illustrate the technical scheme of the embodiment of the present invention below in conjunction with the drawings and specific embodiments, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method and device of cross-platform display application, for realizing the page being displayed in full screen SD application in high definition platform.
In the embodiment of the present invention, browser comprises following multiple module: parsing module, window management module, views module, drafting module;
Wherein, the parsing module of browser is used for the data of receiving set up box transmission, and carries out resolving to show;
The window management module of browser is arranged for the window of managing and browsing device, and the transmission of message;
The views module of browser is used for the size of the window of the instruction adjustment browser according to the window management module of browser;
The drafting module of browser is used for drawing application in painting canvas.
Mutual by above each module, realizes the method for the cross-platform display application page in the embodiment of the present invention.
In the present embodiment, at the applying web page of high definition platform display SD platform, for ease of describing, the high definition platform in the embodiment of the present invention is for high definition set top box, and SD platform, but should as limit for SD Set Top Box.
Refer to Fig. 1, an embodiment of the method for the cross-platform display application page in the embodiment of the present invention comprises:
101, browser is according to the page-tag comprised in the page data of application, judges whether the display resolution of the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag;
Each application comprises multiple page be associated, during page data received by the browser resolves of high definition set top box, if comprise page-tag in this page data, owing to comprising the display resolution information of the page of described application in page-tag, then according to page-tag, can judge whether the display resolution of the page in this application is target display resolution, target display resolution is the high definition resolution of corresponding high definition platform, such as, display resolution is 1280 × 720.
It should be noted that, target display resolution is stored in advance in the browser of high definition set top box, according to the display resolution that this prestores, the parsing module of browser can judge the type of the display resolution of the page in this application corresponding whether be high definition set top box.
If the display resolution of the page is not target display resolution in 102 application, then window size is adjusted to the size corresponding with the display resolution of the page of described application;
If the display resolution of the page is not target display resolution in application, then window size is adjusted to the size corresponding with the display resolution of the page of described application, such as, if display resolution is 720 × 576, then the window size of browser is adjusted to 720 × 576, if display resolution is 640 × 526, then the window size of browser is adjusted to 640 × 526.
103, the painting canvas that size is identical with the window size after adjustment is created;
Create and the identical painting canvas of window size size after adjustment, measure-alike also with display resolution of the size of this painting canvas, for drawing the page applied, play up.Such as, if the window size of browser is 720 × 576, then the canvas size created also is 720 × 576, if the window size of browser is 640 × 526, then the canvas size created also is 640 × 526.
104, by the size that the adjusted size of browser view is corresponding with described display resolution, and according to the size of described browser view, typesetting is carried out to the page of described application;
Such as, if display resolution is 720 × 576, then browser view size is adjusted to 720 × 576, if display resolution is 640 × 526, then browser view size is adjusted to 640 × 526.According to the size of browser view, typesetting is carried out to the page of described application.
The page of this application after 105, drawing typesetting in the painting canvas created;
106, the page of this application drawn is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike;
The display resolution of the page of this application is resolution corresponding to SD Set Top Box, target display resolution is the resolution that high definition set top box is corresponding, then the page of this application is stretched in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike.
107, the page data of the described application after stretching is sent to display unit, for showing the page of described application.
Display unit can be hardware display buffer, also can be other display unit.
In the invention process, by carrying display resolution information in the page-tag of application, make browser can judge whether the display resolution of this application belongs to target display resolution when resolving this application, if not, then browser window size is adjusted to the size corresponding with the display resolution of the page of described application, create the painting canvas that size is identical with the window size after adjustment, then by size that the adjusted size of the view of browser is corresponding with described display resolution, and according to the view of the browser after adjustment, typesetting is carried out to the page of described application, the page of the application draw typesetting in created painting canvas after, and then the page of the application of drafting is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn application corresponding with this target display resolution measure-alike, the page data of the described application after adjustment is sent to display unit, for showing the page of described application, like this, do not revising on the basis of front end applications, target display platform is displayed in full screen the page of cross-platform application, when there is two or more display platform in a network simultaneously, such as, when there is high definition set top box and SD Set Top Box simultaneously, when each set-top box requests resource, front-end server is without the need to treating the page of display application with a certain discrimination, and improve treatment effeciency.
Describe the method for the cross-platform display application in the embodiment of the present invention below in detail with another embodiment, refer to Fig. 2, another embodiment of the method for the cross-platform display application in the embodiment of the present invention comprises:
201, the browser resolves application of downloading, and judge whether comprise page-tag in described application;
The parsing module of the browser of high definition set top box resolves the application of downloading, judge whether comprise page-tag in this application, in the present embodiment, page-tag is for meta label, also can be that other can carry the page-tag of resolution information, not do concrete restriction herein.
Pre-set meta label, meta label is positioned at the head of document, does not comprise any content, the attribute definition of the meta label name/value pair be associated with document.Particularly, it is wide and high that application that to be page-view-size, content value by the name value in meta label be presents, and as 720 × 576, the order of the meta label pre-set is as follows:
<metaname="page-view-size"content="720*576">
202, the page-tag comprised in the page data according to application, judges whether the display resolution of the page in described application is target display resolution, comprises the display resolution information of the page of described application in described page-tag;
During browser resolves application, meta label is comprised in the page data of this application, then according to the display resolution information of the page of the described application comprised in this meta label, whether the display resolution judging the page in described application is target display resolution, in the present embodiment, target resolution is the Standard Definition resolution of corresponding high definition platform, such as, display resolution is 1280 × 720.
If the display resolution non-targeted display resolution of the page, then record the display resolution of the page in described application in 203 application;
If the display resolution of the page is not target display resolution in application, then record described display resolution.
204, the size of window is adjusted to the size corresponding with described display resolution;
The window management module of browser sends adjustment instruction to the views module of browser, the size of the window of browser is adjusted to the size corresponding with described display resolution, such as, if display resolution is 720 × 576, be then 720 × 576 by the window adjusting of browser, if display resolution is 640 × 526, be then 640 × 526 by the window adjusting of browser.
205, the painting canvas that size is identical with the window size after adjustment is created;
Create and the identical painting canvas of window size size after adjustment, measure-alike also with display resolution of the size of this painting canvas, for drawing the page applied, play up.Such as, if the window size of browser is 720 × 576, then the canvas size created also is 720 × 576, if the window size of browser is 640 × 526, then the canvas size created also is 640 × 526.
206, by the size that the adjusted size of browser view is corresponding with described display resolution, and according to the size of described browser view, typesetting is carried out to the page of described application;
After the window module adjustment window size of browser, the views module to browser sends adjustment instruction, is the size corresponding with described display resolution by the adjusted size of the view of browser.
Such as, if display resolution is 720 × 576, then the view of browser is adjusted to 720 × 576, if display resolution is 640 × 526, then the view of browser is adjusted to 640 × 526.
The page of the application after 207, drawing typesetting in the painting canvas that the described view created is corresponding;
The page of the application after the drafting module of browser draws typesetting in the painting canvas that the described view created is corresponding.
208, the page of described application drawn is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike;
The page of the described application of drawing is adjusted in painting canvas corresponding to target display resolution by the drafting module of browser, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the display resolution of the page of this application is resolution corresponding to SD Set Top Box, target display resolution is the resolution that high definition set top box is corresponding, then the page of this application is stretched in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike.
209, the page data of the described application after stretching is sent to display unit, for showing the page of described application.
Display unit can be hardware display buffer, also can be other display unit.
In the embodiment of the present invention, by pre-setting the display resolution information in the meta label of application, the application of the browser resolves download of high definition set top box, make browser can judge whether the display resolution of this application belongs to high definition resolution when resolving this application, if not, then record the display resolution of the page in described application and be the size corresponding with this display resolution by the adjusted size of window, create the painting canvas that size is identical with the window size after adjustment, and then be the size corresponding with this display resolution by the adjusted size of the view of browser, and according to the size of described browser view, typesetting is carried out to the page of described application, the page of the application draw typesetting in the painting canvas created after, the page of the described application of drawing is stretched in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the display resolution of the page of this application is resolution corresponding to SD Set Top Box, target display resolution is the display resolution that high definition set top box is corresponding, then the page of this application is stretched in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, thus, do not revising on the basis of front end applications, high definition platform is displayed in full screen the page of the application of SD platform, when there is high definition set top box and SD Set Top Box in a network simultaneously, when each set-top box requests resource, front-end server is without the need to treating display application with a certain discrimination, and improve treatment effeciency.
The device of the cross-platform display application in the embodiment of the present invention is described below, refers to Fig. 3, an embodiment of the device of the cross-platform display application in the embodiment of the present invention comprises:
Judge module 301, for according to the page-tag comprised in the page data of application, judges whether the display resolution of the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag;
Adjusting module 302, if the display resolution non-targeted display resolution judging the page in described application for described judge module 301, is then adjusted to the size corresponding with the display resolution of the page of described application by window size;
Creation module 303, for creating the size painting canvas identical with the window size after adjustment;
Adjusting module 302, also for being the size corresponding with described display resolution by the adjusted size of browser view;
Type-setting module 304, carries out typesetting for the size according to described browser view to the page of described application;
Drafting module 305, for the page of the described application after drawing typesetting in the painting canvas that creates in creation module 303;
Adjusting module 302, the page also for the described application of being drawn by described drafting module 305 is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike;
Sending module 306, the page data for the described application after being adjusted by described adjusting module 302 is sent to display unit, for showing the page of described application.
Each module in the embodiment of the present invention realizes the detailed process of respective function, refer to aforementioned embodiment illustrated in fig. 1 described in content, repeat no more herein.
In the embodiment of the present invention, judge module 301 is according to the page-tag comprised in the page data of application, whether the display resolution judging the page in described application is target display resolution, if judge module 301 judges that the display resolution of the page in described application is not target display resolution, window size is adjusted to the size corresponding with the display resolution of the page of described application by adjusting module 302, creation module 303 creates the size painting canvas identical with the window size after adjustment, the adjusted size of browser view is the size corresponding with described display resolution by adjusting module 302, type-setting module 304 carries out typesetting according to the size of described browser view to the page of described application, the page of the application after drawing typesetting in the painting canvas that drafting module 305 creates in creation module 303, the page of the described application that described drafting module 305 is drawn by adjusting module 302 is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the page data of the described application after adjusting module 302 adjusts by sending module 306 is sent to display unit, for showing the page of described application, so, by arranging display resolution information in the page-tag of application, make browser can judge whether the display resolution of this application belongs to target display resolution when resolving this application, adjust in painting canvas corresponding to target display resolution so that the application page of drafting is stretching in, thus, do not revising on the basis of front end applications, high definition platform is displayed in full screen the page of the application of SD platform, when there is high definition set top box and SD Set Top Box in a network simultaneously, when each set-top box requests resource, front-end server is without the need to treating the page of display application with a certain discrimination, and improve the efficiency of deal with data.
For ease of understanding, describe the device of the cross-platform display application in the embodiment of the present invention below in detail with another embodiment, refer to Fig. 4, another embodiment of the device of the cross-platform display application in the embodiment of the present invention comprises:
Judge module 401, for according to the page-tag comprised in the page data of application, judges whether the display resolution of the page in described application is target display resolution, and in described page-tag, bag includes the information of the display resolution of the page of described application;
Adjusting module 402, if the display resolution non-targeted display resolution judging the page in described application for described judge module 401, is then adjusted to the size corresponding with the display resolution of the page of described application by the size of window;
Creation module 403, for creating the size painting canvas identical with the window size after adjustment;
Adjusting module 402, also for being the size corresponding with described display resolution by the adjusted size of browser view;
Type-setting module 404, carries out typesetting for the size according to described browser view to the page of described application;
Drafting module 405, for the page of the described application after drawing typesetting in the painting canvas that creates in creation module 403;
Adjusting module 402, the page also for the described application of being drawn by described drafting module 405 is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike;
Sending module 406, the page data for the described application after being adjusted by described adjusting module 402 is sent to display unit, for showing the page of described application.
It should be noted that, can further include in the device of the cross-platform display application in the embodiment of the present invention:
Parsing module 407, for resolving downloaded described application;
Logging modle 408, for recording the display resolution of the page in described application.
Further, judge module 401, also for judging whether comprise page-tag in described application.
Each module in the embodiment of the present invention realizes the detailed process of respective function, refer to earlier figures 1 and embodiment illustrated in fig. 2 described in content, repeat no more herein.
In the embodiment of the present invention, parsing module 407 resolves the described application of downloading, the page-tag comprised in the page data of the application that judge module 401 is resolved according to parsing module 407, whether the display resolution judging the page in described application is target display resolution, if described judge module 401 judges that the display resolution of the page in described application is not target display resolution, then logging modle 408 records the display resolution of the page in described application, the size of window is adjusted to the size corresponding with described display resolution by adjusting module 402, creation module 403 creates the size painting canvas identical with the window size after adjustment, further, the adjusted size of view is the size corresponding with described display resolution by adjusting module 402, type-setting module 404 carries out typesetting according to the size of described browser view to the page of described application, the page of the application after drawing typesetting in the painting canvas that drafting module 405 creates in creation module 403, the page of the described application that drafting module 405 is drawn by adjusting module 402 is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the page data of the described application after adjusting module 402 adjusts by sending module 3406 is sent to display unit, for showing the page of described application, thus, by arranging display resolution information in the page-tag of application, make browser can judge whether the display resolution of this application belongs to high definition resolution when resolving this application, adjust in painting canvas corresponding to target display resolution so that the application page of drafting is stretching in, thus, do not revising on the basis of front end applications, high definition platform is displayed in full screen the page of the application of SD platform, when there is high definition set top box and SD Set Top Box in a network simultaneously, when each set-top box requests resource, front-end server improves treatment effeciency without the need to treating the page of display application with a certain discrimination.
It will be appreciated by those skilled in the art that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
Above the method for a kind of cross-platform display application provided by the present invention and device are described in detail, for those skilled in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1. a method for cross-platform display application, is characterized in that, comprising:
Browser, according to the page-tag comprised in the page data of application, judges whether the display resolution of the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag;
If not, then window size is adjusted to the size corresponding with the display resolution of the page of described application;
Create the painting canvas that size is identical with the window size after adjustment;
By the size that the adjusted size of browser view is corresponding with described display resolution, and according to the size of described browser view, typesetting is carried out to the page of described application;
The page of the described application draw typesetting in created painting canvas after;
The page of the described application of drawing is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the display resolution of the page of described application is resolution corresponding to SD Set Top Box, and described target display resolution is the resolution that high definition set top box is corresponding;
The page data of the described application after stretching is sent to display unit, for showing the page of described application;
Described browser, according to the page-tag that comprises in the page data of application, comprises before window size being adjusted to the size corresponding with the display resolution of the page of described application:
Resolve the described application of downloading;
Judge whether comprise page-tag in described application;
If so, then perform the page-tag that comprises in the page data according to application, judge that whether the display resolution of the page in described application is the step of target display resolution.
2. method according to claim 1, is characterized in that, described by the adjusted size of browser view be the size corresponding with described display resolution before comprise:
Record the display resolution of the page in described application.
3. a device for cross-platform display application, is characterized in that, comprising:
Judge module, for according to the page-tag comprised in the page data of application, judges whether the display resolution of the page in described application is target display resolution, comprises the information of the display resolution of the page of described application in described page-tag;
Adjusting module, if described judge module judges that the display resolution of the page in described application is not target display resolution, is then adjusted to the size corresponding with the display resolution of the page of described application by window size;
Creation module, for creating the size painting canvas identical with the window size after adjustment;
Described adjusting module, also for being the size corresponding with described display resolution by the adjusted size of browser view;
Type-setting module, carries out typesetting for the size according to described browser view to the page of described application;
Drafting module, for the page of the described application after drawing typesetting in the painting canvas that creates in described creation module;
Described adjusting module, the page also for the described application of being drawn by described drafting module is adjusted in painting canvas corresponding to target display resolution, the painting canvas making the size of the page of drawn described application corresponding with described target display resolution measure-alike, the display resolution of the page of described application is resolution corresponding to SD Set Top Box, and described target display resolution is the resolution that high definition set top box is corresponding;
Sending module, for being sent to display unit, for showing the page of described application by the page data of the described application after adjustment;
Described device also comprises:
Parsing module, for resolving downloaded described application;
Described judge module, also for judging whether comprise page-tag in described application.
4. device according to claim 3, is characterized in that, described device also comprises:
Logging modle, for recording the display resolution of the page in described application.
CN201210370096.1A 2012-09-28 2012-09-28 A kind of method of cross-platform display application and device Active CN102917273B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210370096.1A CN102917273B (en) 2012-09-28 2012-09-28 A kind of method of cross-platform display application and device
HK13107807.3A HK1180858A1 (en) 2012-09-28 2013-07-04 Method and device for cross-platform displaying an application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210370096.1A CN102917273B (en) 2012-09-28 2012-09-28 A kind of method of cross-platform display application and device

Publications (2)

Publication Number Publication Date
CN102917273A CN102917273A (en) 2013-02-06
CN102917273B true CN102917273B (en) 2016-03-02

Family

ID=47615477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210370096.1A Active CN102917273B (en) 2012-09-28 2012-09-28 A kind of method of cross-platform display application and device

Country Status (2)

Country Link
CN (1) CN102917273B (en)
HK (1) HK1180858A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426896B (en) * 2013-09-10 2019-06-04 腾讯科技(北京)有限公司 A kind of special topic page animation method and apparatus
CN104267887B (en) * 2014-09-13 2017-07-28 重庆市科学技术研究院 Five application page self-adaption typesetting display methods based on application widget dimensional parameters
CN104503655B (en) 2014-11-28 2017-12-08 晨星半导体股份有限公司 application program interface display control method and device
CN105163163A (en) * 2015-08-31 2015-12-16 深圳市茁壮网络股份有限公司 Display method and device and set-top box
CN105677351B (en) * 2016-01-06 2019-01-08 福州瑞芯微电子股份有限公司 The compatible display methods of multiwindow and device
CN106354771A (en) * 2016-08-22 2017-01-25 深圳市茁壮网络股份有限公司 Display method and device of application page
CN108228284B (en) * 2016-12-14 2021-05-28 腾讯科技(深圳)有限公司 Window display method and terminal
CN107786882A (en) * 2017-09-30 2018-03-09 青岛海信宽带多媒体技术有限公司 A kind of Webpage display process, device and set top box
CN111918125B (en) * 2019-05-09 2023-03-24 腾讯科技(深圳)有限公司 Video playing method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188712A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A processing method for page self-adapted display
CN101909179A (en) * 2010-08-04 2010-12-08 中国电信股份有限公司 Automatic adapting method of set box browser display area

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100322251A1 (en) * 2009-06-22 2010-12-23 Changrong Li Method and System for Virtually Switching Digital Video/Audio and Auxiliary Control Signals for Digital Signage Applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188712A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A processing method for page self-adapted display
CN101909179A (en) * 2010-08-04 2010-12-08 中国电信股份有限公司 Automatic adapting method of set box browser display area

Also Published As

Publication number Publication date
CN102917273A (en) 2013-02-06
HK1180858A1 (en) 2013-10-25

Similar Documents

Publication Publication Date Title
CN102917273B (en) A kind of method of cross-platform display application and device
CN106528025B (en) Multi-screen image projection method, terminal, server and system
CN109164997B (en) Distributed picture rendering and picture playing control method, device and equipment
CN104503655A (en) Application program interface display control method and device
CN109101233B (en) Method for adapting to multiple screen resolutions, storage device and android device
CN112416483A (en) Method for accessing multiple displays to cloud desktop and related equipment
DE202014011066U1 (en) Digital device
CN103353886A (en) Method and system for previewing webpage
CN105005568B (en) Web page front end processing device and method based on template
CN104199920A (en) Adaptation method and device for display of web application
CN102916994A (en) Page viewing method, server and terminal
CN103176996A (en) Image search method based on image feature information and image search engine server based on image feature information
CN107197359A (en) Video file caching method and device
CN104899212B (en) Web page display method, server and system
CN105100870A (en) Screenshot method and terminal equipment
CN100571378C (en) A kind of method that is used for cable television VOD raising program pages downloading speed
CN101909179A (en) Automatic adapting method of set box browser display area
CN101808218B (en) Method, device and system for acquiring and updating content of electronic program guide
CN103488735B (en) Method and terminal that terminal browser page furbishing is shown
CN113825020B (en) Video definition switching method, device, equipment, storage medium and program product
CN102999512A (en) Method and system for processing text advertisement
CN108924587A (en) A kind of rendering method and system based on cloud server
US10567837B2 (en) System for providing cloud-based user interfaces and method thereof
KR102140497B1 (en) Cloud web server for providing cloud iptv service based on command method, system and set-top box
EP2693426A1 (en) Display apparatus, image post-processing apparatus and method for image post-processing of contents

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1180858

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1180858

Country of ref document: HK