CN102917273A - Cross-platform display application method and device - Google Patents

Cross-platform display application method and device Download PDF

Info

Publication number
CN102917273A
CN102917273A CN2012103700961A CN201210370096A CN102917273A CN 102917273 A CN102917273 A CN 102917273A CN 2012103700961 A CN2012103700961 A CN 2012103700961A CN 201210370096 A CN201210370096 A CN 201210370096A CN 102917273 A CN102917273 A CN 102917273A
Authority
CN
China
Prior art keywords
page
display resolution
size
described application
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.)
Granted
Application number
CN2012103700961A
Other languages
Chinese (zh)
Other versions
CN102917273B (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

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a cross-platform display application method and device used for displaying the page of standard definition on the full screen in a high-definition platform. The cross-platform application method comprises the following steps: adjusting the size of a window into the size which corresponds to the display resolution of an application page according to the page tag in the application page data by a browser, creating a canvas which has the same size as the adjusted window, adjusting the size of the view of the browser into the size which corresponds to the display resolution, composing the application page according to the size of the view of the browser, drawing the composed application page in the created canvas, adjusting the drawn application page into the canvas which corresponds to the target display resolution, and sending the stretched application page data to a displaying device to display.

Description

A kind of method of cross-platform display application and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and device of cross-platform display application.
Background technology
At present, existing a plurality of countries high-definition television program that starts broadcasting, in the existing technology of China, HDTV (High-Definition Television) (HDTV, High Definition Television) display format is 720P, resolution is 1280 * 720, Standard Definition Television (SDTV, Standard-Definition TV) display format is 480P, resolution reaches 720 * 576 or 640 * 526, because the application of high definition could be showed perfect visual effect at existing high definition set top box, and tv programme source, TV applications etc. have a very long transit time by SD to high definition, so, how SD use also all do not upgrade to high definition and use before, allow SD be applied in high definition and use upper operation and ideally show the user to become an important topic.The window size of browser has determined to be shown to user's data volume, and browser composing container size refers to browser when display application, uses needed wide height, and general browser composing container size determines by using.In the prior art, the browser that is applied on the set-top box is generally built-in browser, the browser window size presets and is fixing, general consistent with current hardware resolution, resolution is 1280 * 720, but it is fixing when design is used that SD is used the wide height of needed composing, is generally 720 * 576 or 640 * 526.Like this, browser is still set type according to the wide height of using design when the composing SD is used, because the demonstration size that window size is used greater than SD, the result of browser display uses the upper left side that is presented at screen, can't be displayed in full screen, and has a strong impact on visual effect.
In the prior art, standard application is redesigned into high definition use, produce better visual effect to satisfy at high definition set top box.
But in above-mentioned prior art, SD is used redesign use for high definition, revise to use causing workload large on a large scale, and still in use SD is used and can't be revised, and, if having simultaneously high definition set top box and SD set-top box in the network, need to distinguish to issue different application.
Summary of the invention
The embodiment of the invention provides a kind of method and device of cross-platform display application, in order to being stretched in the painting canvas of high definition platform by the application page that will in the painting canvas of SD platform, draw, thus the page that the full screen display SD is used in the high definition platform.
The method of the cross-platform display application that the embodiment of the invention provides, comprise: browser is according to the page-tag that comprises in the page data of using, whether the display resolution of judging the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag; If not, then window size is adjusted into the size corresponding with the display resolution of the page of described application; The identical painting canvas of window size after creating size and adjusting; Be the size corresponding with described display resolution with the adjusted size of browser view, and according to the size of described browser view the page of described application set type; In the painting canvas that creates, draw the page of the described application after setting type; The page of the described application of drawing is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike; The page data of the described application after stretching is sent to display unit, is used for showing the page of described application.
The device of the cross-platform display application that the embodiment of the invention provides, comprise: judge module, for the page-tag that comprises according to the page data of using, whether the display resolution of judging the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag; Adjusting module if described judge module is judged the non-target display resolution of the display resolution of the page in the described application, then is adjusted into window size the size corresponding with the display resolution of the page of described application; Creation module, the identical painting canvas of window size after being used for creating size and adjusting; Described adjusting module, the adjusted size that also is used for browser view is the size corresponding with described display resolution; Type-setting module is used for according to the size of described browser view the page of described application being set type; Drafting module is used for drawing the page of the described application after setting type at the painting canvas of described creation module establishment; Described adjusting module, the page that also is used for described application that described drafting module is drawn is adjusted to painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike; Sending module, the page data of the described application after being used for adjusting is sent to display unit, is used for showing the page of described application.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages: by carry display resolution information in the page-tag of using, so that browser can judge whether the display resolution of this application belongs to the target display resolution when resolving this application, if not, then the browser window size is adjusted into the size corresponding with the display resolution of the page of described application, and the identical painting canvas of window size after creating size and adjusting, then the adjusted size with the view of browser is the size corresponding with described display resolution, and according to the view of the browser after adjusting the page of described application is set type, in the painting canvas that creates, draw the page of the application after setting type, and then the page of the application that will draw is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the application of the drawing painting canvas corresponding with this target display resolution is measure-alike, the page data of the described application after stretching is sent to display unit, be used for showing the page of described application, like this, on the basis of not revising front end applications, the page in the cross-platform application of target display platform full screen display, when in network, having simultaneously two or more display platform, for example exist simultaneously in the situation of high definition set top box and SD set-top box, when each set-top box request resource, front-end server need not to treat with a certain discrimination the page of display application, and improves data-handling efficiency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those skilled in the art, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
An embodiment schematic diagram of the method for the cross-platform display application that Fig. 1 provides for the embodiment of the invention;
Another embodiment schematic diagram of the method for the cross-platform display application that Fig. 2 provides for the embodiment of the invention;
An embodiment schematic diagram of the device of the cross-platform display application that Fig. 3 provides for the embodiment of the invention;
Another embodiment schematic diagram of the device of the cross-platform display application that Fig. 4 provides for the embodiment of the invention.
Embodiment
Further specify the technical scheme of the embodiment of the invention below in conjunction with the drawings and specific embodiments, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those skilled in the art belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of method and device of cross-platform display application, is used for realizing being displayed in full screen the page that SD is used at the high definition platform.
In the embodiment of the invention, browser comprises following a plurality of module: parsing module, window management module, views module, drafting module;
Wherein, the parsing module of browser is used for the data that receiving set up box sends, and resolves to show;
The window management module of browser is used for the window setting of managing and browsing device, and the transmission of message;
The views module of browser is used for adjusting according to the instruction of the window management module of browser the size of the window of browser;
The drafting module of browser is used for drawing application at painting canvas.
Mutual by above each module realized the method for the cross-platform display application page in the embodiment of the invention.
In the present embodiment, show the applying web page of SD platform at the high definition platform, for ease of describing, the high definition platform in the embodiment of the invention is take high definition set top box as example, and the SD platform is take the SD set-top box as example, but should be as limit.
See also Fig. 1, an embodiment of the method for the cross-platform display application page in the embodiment of the invention comprises:
101, browser judges according to the page-tag that comprises in the page data of using whether the display resolution of the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag;
Each application comprises a plurality of pages that are associated, during the received page data of the browser resolves of high definition set top box, if comprise page-tag in this page data, because bag includes the display resolution information of the page of described application in the page-tag, then according to page-tag, can judge whether the display resolution of the page in this application is the target display resolution, the target display resolution is the high definition resolution of corresponding high definition platform, for example, display resolution is 1280 * 720.
Need to prove, the target display resolution is pre-stored in the browser of high definition set top box, according to this pre-stored display resolution, 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 102 use in the display resolution of the page be not the target display resolution, then window size is adjusted into the size corresponding with the display resolution of the page of described application;
If the display resolution of the page is not the target display resolution in using, then window size is adjusted into the size corresponding with the display resolution of the page of described application, for example, if display resolution is 720 * 576, then the window size with browser is adjusted into 720 * 576, if display resolution is 640 * 526, then the window size with browser is adjusted into 640 * 526.
103, the identical painting canvas of window size after establishment size and the adjustment;
Create with adjust after the identical painting canvas of window size size, the size of this painting canvas is measure-alike with display resolution also, is used for the page of application is drawn, played up.For example, if the window size of browser is 720 * 576, the canvas size that then creates also is 720 * 576, if the window size of browser is 640 * 526, the canvas size that then creates also is 640 * 526.
104, the adjusted size with browser view is the size corresponding with described display resolution, and according to the size of described browser view the page of described application is set type;
For example, if display resolution is 720 * 576, then the browser view size is adjusted into 720 * 576, if display resolution is 640 * 526, then the browser view size is adjusted into 640 * 526.According to the size of browser view, the page of described application is set type.
105, in the painting canvas that creates, draw the page of this application after setting type;
The page of this application that 106, will draw is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
The display resolution of the page of this application is resolution corresponding to SD set-top box, the target display resolution is resolution corresponding to high definition set top box, the page that then will use is stretched in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike.
107, the page data of the described application after will stretching is sent to display unit, is used for showing the page of described application.
Display unit can be the hardware display buffer, also can be other display unit.
In the invention process, by in the page-tag of using, carrying display resolution information, so that browser can judge whether the display resolution of this application belongs to the target display resolution when resolving this application, if not, then the browser window size is adjusted into the size corresponding with the display resolution of the page of described application, the identical painting canvas of window size after creating size and adjusting, then the adjusted size with the view of browser is the size corresponding with described display resolution, and according to the view of the browser after adjusting the page of described application is set type, in the painting canvas that creates, draw the page of the application after setting type, and then the page of the application that will draw is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the application of the drawing painting canvas corresponding with this target display resolution is measure-alike, the page data of the described application after adjusting is sent to display unit, be used for showing the page of described application, like this, on the basis of not revising front end applications, the page in the cross-platform application of target display platform full screen display, when in network, having simultaneously two or more display platform, for example exist simultaneously in the situation of high definition set top box and SD set-top box, when each set-top box request resource, front-end server need not to treat with a certain discrimination the page of display application, and improves treatment effeciency.
The below describes the method for the cross-platform display application in the embodiment of the invention in detail with another embodiment, see also Fig. 2, and another embodiment of the method for the cross-platform display application in the embodiment of the invention comprises:
201, the browser resolves application of downloading, and judge whether comprise page-tag in the described application;
The parsing module of the browser of high definition set top box is resolved the application of downloading, judge whether comprise page-tag in this application, in the present embodiment, page-tag is take the meta label as example, also can be other page-tag that can carry resolution information, not do concrete restriction herein.
Set in advance the meta label, the meta label is positioned at the head of document, does not comprise any content, the attribute definition of meta label the name/value that is associated with document pair.Particularly, be page-view-size with the name value in the meta label, the content value is for using present wide and high, and such as 720 * 576, the order of the meta label that sets in advance is as follows:
<meta?name=″page-view-size″content=″720*576″>
202, according to the page-tag that comprises in the page data of using, judge whether the display resolution of the page in the described application is the target display resolution, bag includes the display resolution information of the page of described application in the described page-tag;
When browser resolves is used, comprise the meta label in the page data of this application, then according to the display resolution information of the page of the described application that comprises in this meta label, whether the display resolution of judging the page in the described application is the target display resolution, target resolution is the SD resolution of corresponding high definition platform in the present embodiment, for example, display resolution is 1280 * 720.
If 203 use in the non-target display resolution of display resolution of the page, then record the display resolution of the page in the described application;
If the display resolution of the page is not the target display resolution in using, then record described display resolution.
204, the size with window is adjusted into the size corresponding with described display resolution;
The window management module of browser sends the adjustment instruction to the views module of browser, the size of the window of browser is adjusted into the size corresponding with described display resolution, for example, if display resolution is 720 * 576, then the window adjusting with browser is 720 * 576, if display resolution is 640 * 526, then the window adjusting with browser is 640 * 526.
205, the identical painting canvas of window size after establishment size and the adjustment;
Create with adjust after the identical painting canvas of window size size, the size of this painting canvas is measure-alike with display resolution also, is used for the page of application is drawn, played up.For example, if the window size of browser is 720 * 576, the canvas size that then creates also is 720 * 576, if the window size of browser is 640 * 526, the canvas size that then creates also is 640 * 526.
206, the adjusted size with browser view is the size corresponding with described display resolution, and according to the size of described browser view the page of described application is set type;
After the window module of browser is adjusted window size, sending to the views module of browser and to adjust instruction, is the size corresponding with described display resolution with the adjusted size of the view of browser.
For example, if display resolution is 720 * 576, then the view with browser is adjusted into 720 * 576, if display resolution is 640 * 526, then the view with browser is adjusted into 640 * 526.
207, in painting canvas corresponding to the described view that creates, draw the page of the application after setting type;
The drafting module of browser is drawn the page of the application after setting type in painting canvas corresponding to the described view that creates.
The page of the described application that 208, will draw is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
The page of the described application that the drafting module of browser will be drawn is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike, the display resolution of the page of this application is resolution corresponding to SD set-top box, the target display resolution is resolution corresponding to high definition set top box, the page that then will use is stretched in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike.
209, the page data of the described application after will stretching is sent to display unit, is used for showing the page of described application.
Display unit can be the hardware display buffer, also can be other display unit.
In the embodiment of the invention, by the display resolution information in the meta label that sets in advance application, the application that the browser resolves of high definition set top box is downloaded, so that 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 the described application and be the size corresponding with this display resolution with the adjusted size of window, the identical painting canvas of window size after creating size and adjusting, and then be the size corresponding with this display resolution with the adjusted size of the view of browser, and according to the size of described browser view the page of described application is set type, in the painting canvas that creates, draw the page of the application after setting type, the page of the described application of drawing is stretched in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike, the display resolution of the page of this application is resolution corresponding to SD set-top box, the target display resolution is display resolution corresponding to high definition set top box, the page that then will use is stretched in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike, thus, on the basis of not revising front end applications, be displayed in full screen the page of the application of SD platform at the high definition platform, in the situation that have simultaneously high definition set top box and SD set-top box in the network, when each set-top box request resource, front-end server need not to treat with a certain discrimination display application, and improves treatment effeciency.
The device of the cross-platform display application in the embodiment of the invention is described below, sees also Fig. 3, an embodiment of the device of the cross-platform display application in the embodiment of the invention comprises:
Judge module 301 for the page-tag that comprises according to the page data of using, judges whether the display resolution of the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag;
Adjusting module 302 if be used for the non-target display resolution of display resolution that described judge module 301 is judged the described application page, then is adjusted into window size the size corresponding with the display resolution of the page of described application;
Creation module 303, the identical painting canvas of window size after being used for creating size and adjusting;
Adjusting module 302, the adjusted size that also is used for browser view is the size corresponding with described display resolution;
Type-setting module 304 is used for according to the size of described browser view the page of described application being set type;
Drafting module 305 is used for drawing the page of the described application after setting type at the painting canvas that creation module 303 creates;
Adjusting module 302, the page that also is used for described application that described drafting module 305 is drawn is adjusted to painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
Sending module 306 is used for the page data of the described application after described adjusting module 302 adjustment is sent to display unit, is used for showing the page of described application.
Each module in the embodiment of the invention realizes the separately detailed process of function, sees also aforementioned content described in embodiment illustrated in fig. 1, repeats no more herein.
In the embodiment of the invention, judge module 301 is according to the page-tag that comprises in the page data of using, whether the display resolution of judging the page in the described application is the target display resolution, if judge module 301 judges that the display resolution of the page in the described application is not the target display resolution, 302 of adjusting modules are adjusted into the size corresponding with the display resolution of the page of described application with window size, the identical painting canvas of window size after creation module 303 creates size and adjusts, adjusting module 302 is the size corresponding with described display resolution with the adjusted size of browser view, type-setting module 304 is set type to the page of described application according to the size of described browser view, drafting module 305 is drawn the page of the application after setting type in the painting canvas that creation module 303 creates, adjusting module 302 is adjusted to the page of the described application that described drafting module 305 is drawn in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike, the page data of the described application after sending module 306 is adjusted adjusting module 302 is sent to display unit, be used for showing the page of described application, so, by in the page-tag of using, display resolution information being set, so that browser can judge whether the display resolution of this application belongs to the target display resolution when resolving this application, be stretching in the application page that will draw and adjust in painting canvas corresponding to target display resolution, thereby, on the basis of not revising front end applications, be displayed in full screen the page of the application of SD platform at the high definition platform, in the situation that have simultaneously high definition set top box and SD set-top box in the network, when each set-top box request resource, front-end server need not to treat with a certain discrimination the page of display application, and improves the efficient of deal with data.
For ease of understanding, the below describes the device of the cross-platform display application in the embodiment of the invention in detail with another embodiment, see also Fig. 4, and another embodiment of the device of the cross-platform display application in the embodiment of the invention comprises:
Judge module 401 for the page-tag that comprises according to the page data of using, judges whether the display resolution of the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag;
Adjusting module 402 if be used for the non-target display resolution of display resolution that described judge module 401 is judged the described application page, then is adjusted into the size of window the size corresponding with the display resolution of the page of described application;
Creation module 403, the identical painting canvas of window size after being used for creating size and adjusting;
Adjusting module 402, the adjusted size that also is used for browser view is the size corresponding with described display resolution;
Type-setting module 404 is used for according to the size of described browser view the page of described application being set type;
Drafting module 405 is used for drawing the page of the described application after setting type at the painting canvas that creation module 403 creates;
Adjusting module 402, the page that also is used for described application that described drafting module 405 is drawn is adjusted to painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
Sending module 406 is used for the page data of the described application after described adjusting module 402 adjustment is sent to display unit, is used for showing the page of described application.
Need to prove, can further include in the device of the cross-platform display application in the embodiment of the invention:
Parsing module 407 is used for resolving the described application of downloading;
Logging modle 408 is for the display resolution that records the described application page.
Further, judge module 401 also is used for judging whether described application comprises page-tag.
Each module in the embodiment of the invention realizes the separately detailed process of function, see also earlier figures 1 and embodiment illustrated in fig. 2 described in content, repeat no more herein.
In the embodiment of the invention, parsing module 407 is resolved the described application of downloading, the page-tag that comprises in the page data of judge module 401 according to the application of parsing module 407 parsings, whether the display resolution of judging the page in the described application is the target display resolution, if described judge module 401 judges that the display resolution of the page in the described application is not the target display resolution, then logging modle 408 records the display resolution of the page in the described application, adjusting module 402 is adjusted into the size corresponding with described display resolution with the size of window, the identical painting canvas of window size after creation module 403 creates size and adjusts, further, adjusting module 402 is the size corresponding with described display resolution with the adjusted size of view, type-setting module 404 is set type to the page of described application according to the size of described browser view, drafting module 405 is drawn the page of the application after setting type in the painting canvas that creation module 403 creates, adjusting module 402 is adjusted to the page of the described application that drafting module 405 is drawn in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike, the page data of the described application after sending module 3406 is adjusted adjusting module 402 is sent to display unit, be used for showing the page of described application, thus, by in the page-tag of using, display resolution information being set, so that browser can judge whether the display resolution of this application belongs to high definition resolution when resolving this application, be stretching in the application page that will draw and adjust in painting canvas corresponding to target display resolution, thereby, on the basis of not revising front end applications, be displayed in full screen the page of the application of SD platform at the high definition platform, in the situation that have simultaneously high definition set top box and SD set-top box in the network, when each set-top box request resource, front-end server need not to treat the page of display application with a certain discrimination and improves treatment effeciency.
It will be appreciated by those skilled in the art that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above method and device to a kind of cross-platform display application provided by the present invention is described in detail, for those skilled in the art, thought according to the embodiment of the invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. the method for a cross-platform display application is characterized in that, comprising:
Browser judges according to the page-tag that comprises in the page data of using whether the display resolution of the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag;
If not, then window size is adjusted into the size corresponding with the display resolution of the page of described application;
The identical painting canvas of window size after creating size and adjusting;
Be the size corresponding with described display resolution with the adjusted size of browser view, and according to the size of described browser view the page of described application set type;
In the painting canvas that creates, draw the page of the described application after setting type;
The page of the described application of drawing is adjusted in painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
The page data of the described application after stretching is sent to display unit, is used for showing the page of described application.
2. method according to claim 1 is characterized in that, described browser is according to the page-tag that comprises in the page data of using, and comprises before window size is adjusted into the size corresponding with the display resolution of the page of described application:
Resolve the described application of downloading;
Judge and whether comprise page-tag in the described application;
If the page-tag that comprises in the page data that then executive basis is used is adjusted into window size the step of the size corresponding with the display resolution of the page of described application.
3. method according to claim 1 and 2 is characterized in that, described adjusted size with browser view comprises for the size corresponding with described display resolution before:
Record the display resolution of the page in the described application.
4. the device of a cross-platform display application is characterized in that, comprising:
Judge module for the page-tag that comprises according to the page data of using, judges whether the display resolution of the page in the described application is the target display resolution, wraps the information of the display resolution of the page that includes described application in the described page-tag;
Adjusting module if described judge module is judged the non-target display resolution of the display resolution of the page in the described application, then is adjusted into window size the size corresponding with the display resolution of the page of described application;
Creation module, the identical painting canvas of window size after being used for creating size and adjusting;
Described adjusting module, the adjusted size that also is used for browser view is the size corresponding with described display resolution;
Type-setting module is used for according to the size of described browser view the page of described application being set type;
Drafting module is used for drawing the page of the described application after setting type at the painting canvas of described creation module establishment;
Described adjusting module, the page that also is used for described application that described drafting module is drawn is adjusted to painting canvas corresponding to target display resolution, so that the size of the page of the described application of the drawing painting canvas corresponding with described target display resolution is measure-alike;
Sending module, the page data of the described application after being used for adjusting is sent to display unit, is used for showing the page of described application.
5. device according to claim 4 is characterized in that,
Described device also comprises:
Parsing module is used for resolving the described application of downloading;
Described judge module also is used for judging whether described application comprises page-tag.
6. according to claim 4 or 5 described devices, it is characterized in that, described device also comprises:
Logging modle is for the display resolution that records the described application page.
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 true CN102917273A (en) 2013-02-06
CN102917273B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267887A (en) * 2014-09-13 2015-01-07 重庆市科学技术研究院 Application window size parameter based application page self-adaptive layout display method
CN104426896A (en) * 2013-09-10 2015-03-18 腾讯科技(北京)有限公司 Method and device for producing topic pages
CN105163163A (en) * 2015-08-31 2015-12-16 深圳市茁壮网络股份有限公司 Display method and device and set-top box
CN105677351A (en) * 2016-01-06 2016-06-15 福州瑞芯微电子股份有限公司 Multi-window compatible display method and device
CN106354771A (en) * 2016-08-22 2017-01-25 深圳市茁壮网络股份有限公司 Display method and device of application page
US9905201B2 (en) 2014-11-28 2018-02-27 Mstar Semiconductor, Inc. Display control method and device for application program interface
CN107786882A (en) * 2017-09-30 2018-03-09 青岛海信宽带多媒体技术有限公司 A kind of Webpage display process, device and set top box
CN108228284A (en) * 2016-12-14 2018-06-29 腾讯科技(深圳)有限公司 A kind of window display method and terminal
CN111918125A (en) * 2019-05-09 2020-11-10 腾讯科技(深圳)有限公司 Video playing method, device and system

Citations (3)

* 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
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 (3)

* 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
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
CN101909179A (en) * 2010-08-04 2010-12-08 中国电信股份有限公司 Automatic adapting method of set box browser display area

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426896A (en) * 2013-09-10 2015-03-18 腾讯科技(北京)有限公司 Method and device for producing topic pages
CN104267887A (en) * 2014-09-13 2015-01-07 重庆市科学技术研究院 Application window size parameter based application page self-adaptive layout display method
CN104267887B (en) * 2014-09-13 2017-07-28 重庆市科学技术研究院 Five application page self-adaption typesetting display methods based on application widget dimensional parameters
US9905201B2 (en) 2014-11-28 2018-02-27 Mstar Semiconductor, Inc. Display control method and device for application program interface
CN105163163A (en) * 2015-08-31 2015-12-16 深圳市茁壮网络股份有限公司 Display method and device and set-top box
CN105677351A (en) * 2016-01-06 2016-06-15 福州瑞芯微电子股份有限公司 Multi-window compatible display method and device
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
CN108228284A (en) * 2016-12-14 2018-06-29 腾讯科技(深圳)有限公司 A kind of window display method and terminal
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
CN111918125A (en) * 2019-05-09 2020-11-10 腾讯科技(深圳)有限公司 Video playing method, device and system

Also Published As

Publication number Publication date
CN102917273B (en) 2016-03-02
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
CN104503655A (en) Application program interface display control method and device
CN109101233B (en) Method for adapting to multiple screen resolutions, storage device and android device
CN100412868C (en) Method for optimizing embedded browser page display effect
DE202014011066U1 (en) Digital device
CN109164997B (en) Distributed picture rendering and picture playing control method, device and equipment
US20160063672A1 (en) Electronic device and method for generating thumbnail picture
US20180025470A1 (en) System and apparatus for editing preview images
CN103546821A (en) Method and device for regulating video playing interface
CN101699395A (en) Multi-window management method and multi-window browser
CN112416483A (en) Method for accessing multiple displays to cloud desktop and related equipment
CN110598140A (en) Page adjusting method and device and server
JP2018078575A (en) Mark-up composing apparatus and method for supporting multiple-screen service
CN103942023A (en) Display processing method and terminal
CN105100870A (en) Screenshot method and terminal equipment
US20110234910A1 (en) Resolution changing device, resolution changing method, and resolution changing program
CN104246863B (en) For the method that external display resolving power is selected
CN101179647A (en) Method, device and system of displaying program interface on television
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
CN110211484A (en) A kind of electronics price tag display methods, system and server and storage medium
DE112018007902T5 (en) DISPLAY DEVICE AND METHOD OF CONTROLLING THESE
CN108924587A (en) A kind of rendering method and system based on cloud server
CN103747191A (en) Network interaction high-definition character superimposition system

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