Content presentation method, device, equipment and storage medium

By building a unified web page and using a small number of rendering processes to render the texture content of multiple target web pages, the problem of excessive memory resource consumption caused by multiple rendering processes in the prior art is solved, and the fluency and interactive experience of content presentation are improved .

CN117131296BActive Publication Date: 2024-11-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210557039.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2024-11-05
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

When the prior art presents texture content of multiple web pages in the client, multiple rendering processes need to be started, resulting in excessive consumption of memory resources, affecting the interactive experience and fluency.

Method used

By building a unified web page, a small number of rendering processes are used to render the texture content of multiple destination web pages into a unified texture page, and segment and render based on the unified texture page, reducing the number of rendering processes and improving the fluency of content rendering.

Benefits of technology

It reduces the number of rendering processes, reduces memory resource consumption, improves the fluency and interactive experience of content presentation, and achieves efficient presentation of textured content of multiple target web pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117131296B_ABST
    Figure CN117131296B_ABST
Patent Text Reader

Abstract

The present application discloses a content presentation method, device, equipment and storage medium, which belongs to the field of computer technology. The method includes: obtaining at least two target web pages; obtaining a unified web page, which is constructed based on at least two target web pages; rendering the unified web page into a unified texture page through at least one first rendering process, the unified texture page includes the texture content of at least two target web pages, and the number of at least one first rendering process is less than the number of at least two target web pages; based on the unified texture page, presenting the texture content of at least two target web pages. In this way, the number of rendering processes that need to be started in the content presentation process is reduced, which is conducive to reducing the consumption of memory resources, thereby improving the fluency of the content presentation process, and then improving the interactive experience of the interactive object. In some embodiments, the method provided in the embodiments of the present application can be applied to a client developed using the Unity engine (a game engine).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a content presentation method, apparatus, device and storage medium. Background Art

[0002] With the development of computer technology, more and more clients support presenting texture content of web pages. In some application scenarios, the client needs to present texture content of multiple web pages in the same display interface.

[0003] In the related art, the client opens a rendering process for each web page, and a rendering process is used to render a web page into a texture page, which includes the texture content of the web page; and displays multiple texture pages rendered by each opened rendering process to present the texture content of multiple web pages.

[0004] This content presentation process requires opening a rendering process for each web page. A large number of rendering processes need to be opened. Opening more rendering processes consumes more memory resources, which can easily cause the content presentation process to become stuck, reducing the interactive experience of the interactive objects. Summary of the invention

[0005] The embodiments of the present application provide a content presentation method, apparatus, device and storage medium, which can be used to improve the fluency of the content presentation process and enhance the interactive experience of the interactive objects. The technical solution is as follows:

[0006] On the one hand, an embodiment of the present application provides a content presentation method, the method comprising:

[0007] Obtain at least two target web pages of the content to be presented;

[0008] Obtaining a unified webpage, wherein the unified webpage is constructed based on the at least two target webpages;

[0009] Rendering the unified webpage into a unified texture page by at least one first rendering process, wherein the unified texture page includes texture contents of the at least two target webpages, and the number of the at least one first rendering process is less than the number of the at least two target webpages;

[0010] Based on the unified texture page, texture contents of the at least two target web pages are presented.

[0011] In another aspect, a content presentation device is provided, the device comprising:

[0012] An acquisition unit, configured to acquire at least two target web pages of the content to be presented; and acquire a unified web page, wherein the unified web page is constructed based on the at least two target web pages;

[0013] a rendering unit, configured to render the unified web page into a unified texture page through at least one first rendering process, wherein the unified texture page includes texture contents of the at least two target web pages, and the number of the at least one first rendering process is less than the number of the at least two target web pages;

[0014] A presenting unit is used to present the texture contents of the at least two target web pages based on the unified texture page.

[0015] In a possible implementation, the presentation unit is configured to segment the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages, the at least two target texture pages including texture contents of the at least two target web pages, any target texture page including texture contents of at least one of the at least two target web pages, the segmentation parameters being used to indicate regions where the texture contents of the at least two target web pages are respectively located in the unified texture page; and display the at least two target texture pages to present the texture contents of the at least two target web pages.

[0016] In a possible implementation, the presentation unit is configured to determine a first region based on the segmentation parameters, the first region being the region where the texture content of a candidate web page is located in the unified texture page, the candidate web page being a target web page whose texture content is to be segmented into any target texture page; create a page to be filled, the page to be filled including an area to be filled that is the same size as the first region; determine pixel values ​​of pixels in the first region, and assign values ​​to pixels in the area to be filled in the page to be filled based on the pixel values ​​of the pixels in the first region to obtain any target texture page.

[0017] In a possible implementation, the presentation unit is configured to determine a first region based on the segmentation parameter, where the first region is a region where texture content of a candidate web page is located in the unified texture page, and the candidate web page is a target web page whose texture content is to be segmented into any target texture page; segment a sub-texture page corresponding to the candidate web page from the unified texture page according to the first region; and obtain any target texture page based on the sub-texture page corresponding to the candidate target web page.

[0018] In a possible implementation, the presentation unit is configured to display the unified texture page to present texture contents of the at least two target web pages.

[0019] In a possible implementation, the unified webpage includes the original contents of the at least two target webpages, and the acquisition unit is further used to respond to a trigger operation at a first position in a first presentation area, and convert the trigger operation at the first position into a trigger operation at a second position in the first original area according to a position mapping relationship between the first presentation area and the first original area, the first presentation area being an area where texture contents of any target webpage are presented in a display interface, and the first original area being an area where the original contents of any target webpage are located in the unified webpage; based on the trigger operation at the second position, acquire the processed unified webpage;

[0020] The rendering unit is further used to render the processed unified web page into a processed unified texture page through at least one second rendering process, the number of the at least one second rendering process being less than the number of the at least two target web pages;

[0021] The presenting unit is further configured to present the processed texture contents of the at least two target web pages based on the processed unified texture page.

[0022] In a possible implementation, the acquisition unit is further used to perform a first processing operation that matches the trigger operation of the second position on the original content of any target web page; perform an associated processing operation of the first processing operation on associated content, where the associated content is the original content of an associated web page, and the associated web page is a target web page associated with any target web page among the at least two target web pages; and use the web page obtained after performing the associated processing operation as the processed unified web page.

[0023] In a possible implementation, the presentation unit is used to display the at least two target texture pages according to display requirements of the at least two target texture pages, and the display requirements of any target texture page include at least one of a display position, a display size, and a display level of any target texture page.

[0024] In a possible implementation, the acquisition unit is used to acquire the unified webpage locally according to the webpage address of the unified webpage; or, acquire the unified webpage from an external device according to the webpage address of the unified webpage; or, construct the unified webpage based on the at least two target webpages.

[0025] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the computer device implements any of the above-mentioned content presentation methods.

[0026] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor so that a computer implements any of the above-mentioned content presentation methods.

[0027] On the other hand, a computer program product is also provided, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being loaded and executed by a processor so that a computer implements any of the above-mentioned content presentation methods.

[0028] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0029] The technical solution provided by the embodiment of the present application obtains a unified webpage constructed based on at least two target webpages. Based on this, a unified texture page including texture contents of at least two target webpages can be obtained by starting a small number of first rendering processes, thereby realizing the presentation of texture contents of multiple target webpages. This content presentation process reduces the number of rendering processes that need to be started, which is conducive to reducing the consumption of memory resources, thereby improving the fluency of the content presentation process, and thus improving the interactive experience of the interactive object. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 It is a schematic diagram of an implementation environment of a content presentation method provided in an embodiment of the present application;

[0032] Figure 2 is a flow chart of a content presentation method provided by an embodiment of the present application;

[0033] Figure 3 is a schematic diagram of a target web page provided in an embodiment of the present application;

[0034] Figure 4 is a schematic diagram of a target web page provided in an embodiment of the present application;

[0035] Figure 5 is a schematic diagram of a unified webpage provided in an embodiment of the present application;

[0036] Figure 6 is a schematic diagram of the distribution of texture content 1 and texture content 2 in a unified texture page provided by an embodiment of the present application;

[0037] Figure 7 is a schematic diagram of a unified texture page provided in an embodiment of the present application;

[0038] Figure 8 is a schematic diagram of a rendering page of a Unity 3D scene provided in an embodiment of the present application;

[0039] Fig. 9 is a schematic diagram of a Unity 2D UI page provided in an embodiment of the present application;

[0040] Fig.10 is a schematic diagram of a display interface provided in an embodiment of the present application;

[0041] Fig.11 is a schematic diagram of a display interface provided in an embodiment of the present application;

[0042] Fig.12 is a schematic diagram of a content presentation process provided by an embodiment of the present application;

[0043] Fig.13 is a schematic diagram of a content presentation process provided by an embodiment of the present application;

[0044] Fig.14 is a schematic diagram of a content presentation device provided in an embodiment of the present application;

[0045] Fig.15 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0048] The embodiment of the present application provides a schematic diagram of an implementation environment of a content presentation method. The implementation environment may include: a computer device 11.

[0049] Among them, the computer device 11 is installed with a client that supports presenting texture content of a web page. The client can present texture content of at least two target web pages according to the content presenting method provided in the embodiment of the present application to improve the fluency of content presentation.

[0050] The embodiments of the present application do not limit the types of clients that support presenting texture content of web pages. By way of example, the types of clients that support presenting texture content of web pages include, but are not limited to, gaming clients, educational clients, instant messaging clients, and the like.

[0051] Optionally, the computer device 11 can be any electronic product that can interact with a user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device, such as a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a vehicle-mounted terminal, a VR (Virtual Reality) device, an AR (Augmented Reality) device, etc.

[0052] Those skilled in the art should understand that the above-mentioned computer device 11 is only an example, and other existing or future computer devices that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.

[0053] Based on the above Figure 1 In the implementation environment shown, the present application embodiment provides a content presentation method, taking the method being executed by a client installed in the computer device 11 as an example, the client supports presenting the texture content of a web page. The texture content of a web page refers to the texture content of the web page. For example, the texture content of a web page may refer to the content presented on the surface of the web page. In some embodiments, the texture content of a web page may also be referred to as web page texture. Figure 2 As shown, the content presentation method provided in the embodiment of the present application may include the following steps 201 to 204.

[0054] In step 201, at least two target web pages of content to be presented are obtained.

[0055] At least two target web pages refer to web pages that need to present content in the same display interface. For example, the presented content mentioned in the embodiment of the present application refers to the texture content of the presented web page. The texture content of the web page refers to the texture content of the web page. For example, the texture content of the web page may refer to the content presented on the surface of the web page.

[0056] The number of at least two target web pages can be flexibly adjusted according to the actual content presentation requirements, and the embodiments of the present application do not limit this. The at least two target web pages may refer to web pages from the same browser, or may refer to web pages from different browsers, and the embodiments of the present application do not limit this. In some embodiments, the at least two target web pages refer to multiple web pages that need to be associated and interacted with each other. Exemplarily, the web page can also be referred to as a WebView (network view) page.

[0057] In an exemplary embodiment, obtaining at least two target web pages of the content to be presented may refer to obtaining identification information of at least two target web pages of the content to be presented, or may refer to obtaining web page resources of at least two target web pages of the content to be presented, etc., as long as it is possible to know which target web pages are web pages of the content to be presented. Exemplarily, the web page resources of the at least two target web pages may be obtained according to the web page addresses of the at least two target web pages.

[0058] In step 202, a unified webpage is obtained, where the unified webpage is constructed based on at least two target webpages.

[0059] A unified web page refers to a web page constructed based on at least two target web pages. That is to say, in an embodiment of the present application, a unified web page is constructed in advance based on at least two target web pages so as to reduce the number of rendering processes required to be started in the content presentation process, save the consumption of memory resources, and improve the smoothness of content presentation.

[0060] In a possible implementation, the method for obtaining the unified webpage may be: constructing the unified webpage based on at least two target webpages. Exemplarily, the method for constructing the unified webpage based on at least two target webpages includes: using HTML (HyperText Markup Language, Hypertext Markup Language) and JavaScript (a programming language, referred to as JS) to construct the at least two target webpages into a unified webpage.

[0061] In another possible implementation, the unified webpage may be obtained by: obtaining the unified webpage according to the webpage address of the unified webpage. The webpage address of the unified webpage is used to uniquely identify the unified webpage. Exemplarily, the webpage address of the unified webpage is generated after the unified webpage is constructed based on at least two target webpages and the unified webpage is stored. This method occurs when the client can obtain the webpage address of the unified webpage before obtaining the unified webpage.

[0062] Exemplarily, the unified webpage may be stored locally, and the unified webpage is obtained locally according to the webpage address of the unified webpage. Exemplarily, when the unified webpage is stored locally, the webpage address of the unified webpage may refer to the local relative path address of the unified webpage.

[0063] Exemplarily, the unified webpage may also be stored on an external device, and the unified webpage is obtained from the external device according to the webpage address of the unified webpage. The external device refers to any hardware or software device other than the current client (i.e., the client that executes the method provided in the embodiment of the present application), for example, it may be other clients other than the current client in the terminal where the current client is located, or it may be other hardware devices other than the terminal where the current client is located. Exemplarily, when the unified webpage is stored on an external device, the webpage address of the unified webpage may refer to the URL (Uniform Resource Locator) of the unified webpage.

[0064] In an exemplary embodiment, the unified web page includes the original contents of at least two target web pages, that is, the unified web page is composed of the original contents of at least two target web pages, and the original contents of different target web pages are located in different areas. The areas where the original contents of different target web pages are located can conveniently communicate with each other using JavaScript.

[0065] For example, the number of at least two target web pages is two, and the two target web pages are respectively as follows: Figure 3 and Figure 4 As shown, Figure 3 The target web page shown is a building block programming IDE (Integrated Development Environment) web page, which includes multiple building blocks. Building blocks refer to code packaging carriers in graphical programming, that is, the code is encapsulated in building blocks. The code and the building blocks correspond one to one. The interactive object drags the building blocks to splice them to achieve the effect of writing code. Tools for implementing building blocks include but are not limited to Blockly (a graphical programming tool), Scratch (a graphical programming tool), etc. Figure 4 The target page shown is the code display page, which is used to display Figure 3 The code matching the building blocks spliced ​​in the building block programming IDE webpage is shown.

[0066] Using HTML and JavaScript you can Figure 3 and Figure 4 The two target web pages shown in the figure are constructed as follows Figure 5 The unified web page shown in Figure 5 The unified web page shown includes Figure 3The original content of the Brick Programming IDE webpage shown and Figure 4 The code shown displays the raw content of the web page.

[0067] In step 203, at least one first rendering process is used to render the unified webpage into a unified texture page, the unified texture page includes texture contents of at least two target webpages, and the number of the at least one first rendering process is less than the number of the at least two target webpages.

[0068] The unified texture page refers to a page including texture contents of at least two target web pages obtained by unified web page rendering. Exemplarily, since the content of the web page supported by the client for presentation refers to the texture content of the web page, it is necessary to render the web page into a texture page including the texture content of the web page. Exemplarily, the texture page including the texture content of the web page can also be called a Texture 2D (two-dimensional texture) map, that is, the texture page including the texture content of the web page can be an image.

[0069] The process of rendering a web page into a texture page including the texture content of the web page is realized by starting a rendering process. Exemplarily, a client supporting the presentation of the texture content of the web page has a built-in web browser plug-in, and the bottom layer of the web browser plug-in is a browser kernel. The rendering process may refer to a process for rendering a web page in the bottom layer of the web browser plug-in built into the client. Exemplarily, the browser kernel may also be referred to as a browser rendering engine.

[0070] In the embodiment of the present application, the unified webpage is rendered into a unified texture page by at least one first rendering process, wherein the number of the at least one first rendering process is less than the number of the at least two target webpages. That is to say, in the embodiment of the present application, the unified webpage is rendered by rendering processes that are less than the number of the at least two target webpages, which is conducive to reducing the number of rendering processes started in the content presentation process, thereby reducing the consumption of memory resources and improving the fluency of content presentation.

[0071] At least one first rendering process refers to a rendering process that is turned on for rendering a unified web page. The number of at least one first rendering process can be set based on experience, and can also be flexibly adjusted according to the application scenario, as long as it is less than at least two target web pages. Exemplarily, the number of at least one first rendering process may be one, in which case the consumption of memory resources can be greatly reduced. Exemplarily, the number of at least one first rendering process may be multiple, in which case the unified web page can be rendered in parallel by multiple first rendering processes, thereby improving rendering efficiency while ensuring less consumption of memory resources.

[0072] Exemplarily, the implementation process of rendering a unified webpage into a unified texture page through at least one first rendering process includes: calling a web browser plug-in to render the unified webpage through at least one first rendering process in a browser kernel, and outputting the rendering result as a unified texture page.

[0073] In an exemplary embodiment, the client is developed using the Unity engine (a game engine), the web browser plug-in built into the client may refer to the ZFBrowser plug-in (a built-in web browser plug-in provided by the Unity engine), the underlying browser kernel of the ZFBrowser plug-in refers to the open source Chromium kernel (a browser kernel), and the Chromium kernel can render a specified web page as a texture page, and interact and communicate with the specified web page during operation. Exemplarily, the ZFBrowser plug-in is called to load a unified web page, and the rendering process in the Chromium kernel underlying the ZFBrowser plug-in will render the unified web page to obtain original rendering data, which includes pixel data and size data of the unified texture page, etc. The original rendering data is used to fill the pixel memory of the off-screen web page rendering texture to obtain a unified texture page.

[0074] Since a unified webpage is constructed based on at least two target webpages in advance, the unified webpage can be rendered into a unified texture page including texture contents of at least two target webpages by only starting a small number of first rendering processes. Since each rendering process consumes a certain amount of memory resources, the method provided in the embodiment of the present application can effectively reduce the consumption of memory resources and improve the overall operating performance of the client.

[0075] In step 204, texture contents of at least two target web pages are presented based on the unified texture page.

[0076] Since the unified texture page includes texture contents of at least two target web pages, after obtaining the unified texture page, the texture contents of at least two target web pages can be presented based on the unified texture page. In this content presentation process, only a small number of first rendering processes need to be started, which effectively reduces the number of rendering processes that need to be started. Since each rendering process consumes a certain amount of memory resources, this content presentation process can effectively reduce the consumption of memory resources, thereby improving the fluency of the content presentation process, and further improving the interactive experience of the interactive object and the human-computer interaction rate.

[0077] In a possible implementation, the implementation method of presenting texture contents of at least two target web pages based on a unified texture page is: judging whether the unified texture page corresponds to a segmentation parameter; and presenting the texture contents of at least two target web pages in a manner matching the judgment result based on the unified texture page. Under different judgment results, the expected presentation effects of the texture contents of at least two target web pages may be different. Presenting the texture contents of at least two target web pages in a manner matching the judgment result is conducive to improving the degree of matching between the actual presentation effects of the texture contents of at least two target web pages and the expected presentation effects, thereby improving the quality of content presentation, and improving the human-computer interaction rate and the interaction experience of the interaction object.

[0078] The segmentation parameter is used to indicate the regions where the texture contents of at least two target web pages are located in the unified texture page. Exemplarily, the segmentation parameter includes segmentation sub-parameters corresponding to at least two target web pages, respectively, and the segmentation sub-parameter corresponding to any target web page is used to indicate the region where the texture contents of any target web page are located in the unified texture page. The embodiment of the present application does not limit the specific parameters included in the segmentation sub-parameter corresponding to any target web page, as long as it can indicate the region where the texture contents of any target web page are located in the unified texture page.

[0079] Exemplarily, taking the case where the shape of the area where the texture content of any target web page is located in the unified texture page is a rectangle, the segmentation sub-parameters corresponding to any target web page may include the upper left corner coordinates, lower left corner coordinates, upper right corner coordinates and lower right corner coordinates of the area where the texture content of any target web page is located in the unified texture page.

[0080] In some embodiments, the segmentation sub-parameters corresponding to any target web page may also include the anchor point coordinates and the area size of the area where the texture content of any target web page is located in the unified texture page. Exemplarily, the anchor point coordinates may refer to the upper left corner coordinates, lower left corner coordinates, upper right corner coordinates, lower right corner coordinates or center coordinates of the area where the texture content of any target web page is located in the unified texture page; the area size may include the width and height of the area where the texture content of any target web page is located in the unified texture page.

[0081] It should be noted that the coordinates contained in the segmentation sub-parameters corresponding to any target web page are coordinates in the coordinate system corresponding to the unified texture page. Exemplarily, the coordinate system corresponding to the unified texture page can be a coordinate system constructed with the lower left corner of the unified texture page as the coordinate origin and the axes parallel to the long side and the short side of the unified texture page as the coordinate axes; or it can be a coordinate system constructed with the center of the unified texture page as the coordinate origin and the axes parallel to the long side and the short side of the unified texture page as the coordinate axes. Of course, the coordinate system corresponding to the unified texture page can also be other coordinate systems, etc., which will not be described one by one here.

[0082] For example, the number of target web pages is 2 (target web page 1 and target web page 2), and the coordinate system corresponding to the unified texture page takes the center of the unified texture page as the coordinate origin. The texture content of target web page 1 is referred to as texture content 1, and the texture content of target web page 2 is referred to as texture content 2. The segmentation parameters include sub-texture parameters corresponding to target web page 1 and sub-texture parameters corresponding to target web page 2.

[0083] The distribution of texture content 1 and texture content 2 in the unified texture page is as follows Figure 6 As shown in the figure, in this case, the sub-texture parameters corresponding to the target web page 1 include the lower left corner coordinates (x1, y1) of the area where the texture content 1 is located in the unified texture page, as well as the width w1 and height h1 of the area where the texture content 1 is located in the unified texture page; the sub-texture parameters corresponding to the target web page 2 include the lower left corner coordinates (x2, y2) of the area where the texture content 2 is located in the unified texture page, as well as the width w2 and height h2 of the area where the texture content 2 is located in the unified texture page. In other words, the lower left corner coordinates (x1, y1), width w1 and height h1 are used to indicate the area where the texture content 1 is located in the unified texture page, and the lower left corner coordinates (x2, y2), width w2 and height h2 are used to indicate the area where the texture content 2 is located in the unified texture page.

[0084] In a possible implementation, the method of determining whether the unified texture page corresponds to the segmentation parameter includes: if the unified webpage has the webpage distribution parameter, then determining that the unified texture page corresponds to the segmentation parameter; if the unified webpage does not have the webpage distribution parameter, then determining that the unified texture page does not correspond to the segmentation parameter. The webpage distribution parameter is used to indicate the area where the original contents of at least two target webpages are located in the unified webpage. Exemplarily, the webpage distribution parameter is set by a technician who implements the unified webpage according to the distribution of the original contents of at least two target webpages in the unified webpage.

[0085] Exemplarily, if the web page distribution parameters are set for the unified web page, the web page distribution parameters or the index information of the web page distribution parameters will be stored corresponding to the unified web page. Therefore, it can be determined whether the unified web page has the web page distribution parameters by determining whether there are web page distribution parameters or the index information of the web page distribution parameters stored corresponding to the unified web page. If there are web page distribution parameters or the index information of the web page distribution parameters stored corresponding to the unified web page, it is determined that the unified web page has the web page distribution parameters; if there are no web page distribution parameters or the index information of the web page distribution parameters stored corresponding to the unified web page, it is determined that the unified web page does not have the web page distribution parameters. The index information of the web page distribution parameters is used to index the web page distribution parameters. Exemplarily, the index information of the web page distribution parameters may refer to the storage address of the web page distribution parameters.

[0086] In another possible implementation, the method for determining whether the unified texture page corresponds to the segmentation parameters includes: if the unified web page has a segmentation mark, it is determined that the unified texture page corresponds to the segmentation parameters; if the unified web page does not have a segmentation mark, it is determined that the unified texture page does not correspond to the segmentation parameters. The segmentation mark is used to indicate that the texture content of each target web page in the unified web page needs to be presented using different texture pages. If the unified web page has a segmentation mark, it means that the unified texture page obtained according to the unified web page needs to be segmented, that is, it is determined that the unified texture page corresponds to the segmentation parameters. Exemplarily, the segmentation mark can be set according to experience, or flexibly adjusted according to the application scenario, and the embodiment of the present application does not limit this. The segmentation mark can be set for the unified web page by a technician who implements the unified web page.

[0087] The judgment results of judging whether the unified texture page corresponds to the segmentation parameters include two types: the unified texture page corresponds to the segmentation parameters, and the unified texture page does not correspond to the segmentation parameters. If the judgment result is that the unified texture page corresponds to the segmentation parameters, the process of presenting the texture contents of at least two target web pages in a manner matching the judgment result based on the unified texture page includes the following steps 1 and 2.

[0088] Step 1: Segment the uniform texture page based on the segmentation parameters corresponding to the uniform texture page to obtain at least two target texture pages.

[0089] Before implementing step 1, it is necessary to first obtain the segmentation parameters corresponding to the uniform texture page. In a possible implementation, the segmentation parameters corresponding to the uniform texture page can be obtained by obtaining web page distribution parameters of the uniform web page, and obtaining the segmentation parameters corresponding to the uniform texture page based on the web page distribution parameters.

[0090] The web page segmentation parameter is used to indicate the area where the original contents of at least two target web pages are located in the unified web page. Exemplarily, the web page segmentation parameter includes web page distribution sub-parameters corresponding to at least two target web pages respectively. The web page distribution sub-parameter corresponding to any target web page is used to indicate the area where the original contents of any target web page are located in the unified web page. Exemplarily, the unified web page is stored correspondingly to the web page distribution parameter, and the web page distribution parameter can be obtained when the unified web page is obtained. Exemplarily, the unified web page is stored correspondingly to the index information of the web page distribution parameter, and the index information of the web page distribution parameter can be obtained when the unified web page is obtained, and then the web page distribution parameter is indexed according to the index information.

[0091] In an exemplary embodiment, if the size of the unified texture page is the same as that of the unified web page, then the area where the texture content of any target web page is located in the unified texture page is the same as the area where the original content of any target web page is located in the unified web page. In this case, the web page distribution parameter is directly used as the segmentation parameter. Exemplarily, the web page distribution parameter includes web page distribution sub-parameters corresponding to at least two target web pages respectively, and the segmentation parameter includes segmentation sub-parameters corresponding to at least two target web pages respectively. The process of using the web page distribution parameter as the segmentation parameter includes: using the web page distribution sub-parameter corresponding to any target web page as the segmentation sub-parameter corresponding to the any target web page.

[0092] In an exemplary embodiment, if the size of the unified texture page is different from that of the unified web page, the area where the texture content of any target web page is located in the unified texture page can be regarded as the area obtained by resizing the area where the original content of any target web page is located in the unified web page. In this case, the various areas indicated by the web page distribution parameters can be transformed according to the size transformation relationship between the unified texture page and the unified web page, and the parameters used to indicate the various areas obtained after the transformation are used as segmentation parameters.

[0093] Exemplarily, the web page distribution parameters include web page distribution sub-parameters corresponding to at least two target web pages respectively, the segmentation parameters include segmentation sub-parameters corresponding to at least two target web pages respectively, and the process of transforming each area indicated by the web page distribution parameters according to the size transformation relationship between the unified texture page and the unified web page, and using the parameters for indicating each area obtained after the transformation as the segmentation parameters includes: transforming the area indicated by the web page distribution sub-parameter corresponding to any target web page according to the size transformation relationship between the unified texture page and the unified web page, and using the parameters for indicating the area obtained after the transformation as the segmentation sub-parameter corresponding to the any target web page.

[0094] In another possible implementation, the implementation method of obtaining the segmentation parameters corresponding to the unified texture page may also be: obtaining the segmentation parameters edited by the technician for the unified texture page.

[0095] Exemplarily, the segmentation parameters may be represented in a list format, where each item in the list represents a segmentation sub-parameter corresponding to a target web page, that is, each item in the list describes information about a region where texture content of a target web page is located in a unified texture page.

[0096] After obtaining the segmentation parameters corresponding to the unified texture page, the unified texture page is segmented based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages, wherein the at least two target texture pages include texture contents of at least two target web pages, and any target texture page includes texture contents of at least one target web page of the at least two target web pages.

[0097] Exemplarily, each target texture page may include texture content of one or more target web pages, and different target texture pages include texture content of different target web pages. In some embodiments, each target texture page includes texture content of one target web page. In this case, the process of acquiring at least two target texture pages may refer to the process of acquiring target texture pages corresponding to at least two target web pages, wherein the target texture page corresponding to any target web page includes the texture content of the any target web page.

[0098] It should be noted that the principle of obtaining each target texture page is the same, and the embodiment of the present application takes the process of obtaining any target texture page as an example for explanation.

[0099] In a possible implementation, the process of acquiring any target texture page includes: determining a first region based on a segmentation parameter, where the first region is a region where texture content of the candidate web page is located in the unified texture page; and acquiring the any target texture page based on the first region.

[0100] The candidate webpage is a target webpage whose texture content is to be segmented into any target texture page. Which one or more of the at least two target webpages are the candidate webpages can be set based on experience or flexibly adjusted according to application scenarios, and this embodiment of the application does not limit this.

[0101] Since the segmentation parameter is used to indicate the regions where the texture contents of at least two target web pages are located in the unified texture page, the region where the texture contents of the candidate web pages are located in the unified texture page can be determined based on the segmentation parameter, and the region where the texture contents of the candidate web pages are located in the unified texture page is taken as the first region. It should be noted that the number of candidate web pages may be one or more, and the region where the texture contents of each candidate web page are located in the unified texture page is a first region, that is, the number of first regions is the same as the number of candidate web pages.

[0102] In a possible implementation, the process of obtaining any target texture page based on the first area includes: segmenting a sub-texture page corresponding to a candidate web page from a unified texture page according to the first area, and obtaining any target texture page based on the sub-texture page corresponding to the candidate web page.

[0103] The number of the first regions may be one or more, and a sub-texture page corresponding to a candidate web page can be obtained by segmenting a portion of the page covered by each first region from the unified texture page. Exemplarily, obtaining any target texture page based on the sub-texture page corresponding to the candidate web page means obtaining any target texture page based on the sub-texture pages corresponding to all the candidate web pages.

[0104] In an exemplary embodiment, if the number of candidate web pages is one, the sub-texture page corresponding to one candidate web page is directly used as the any target texture page. Exemplarily, if the number of candidate web pages is multiple, the sub-texture pages corresponding to multiple candidate web pages can be spliced ​​to obtain the any target texture page. Exemplarily, the manner of splicing the sub-texture pages corresponding to multiple candidate web pages can be set based on experience, or can be flexibly adjusted according to the application scenario, and the embodiment of the present application does not limit this. It should be noted that in the process of splicing the sub-texture pages corresponding to multiple candidate web pages, the sub-texture pages corresponding to the candidate web pages can be scaled or not.

[0105] For example, at least two target web pages are respectively as follows: Figure 3 and Figure 4 As shown, the unified web page is as follows Figure 5 As shown in the figure, any target texture page includes the texture content of a target web page as an example, through at least one first rendering process, the unified web page can be rendered as follows Figure 7 The unified texture page shown, the area where the texture content of the building block programming IDE webpage is located in the unified texture page is shown as 701, and the area where the texture content of the code display webpage is located is shown as 702. According to the area 701 where the texture content of the building block programming IDE webpage is located in the unified texture page, the sub-texture page corresponding to the building block programming IDE webpage can be segmented from the unified texture page, and according to the area 702 where the texture content of the code display webpage is located in the unified texture page, the sub-texture page corresponding to the code display webpage can be segmented from the unified texture page. The sub-texture page corresponding to the building block programming IDE webpage and the sub-texture page corresponding to the code display webpage can both be used as a target texture page.

[0106] In another possible implementation, based on the first area, the implementation process of obtaining any target texture page includes: creating a page to be filled, the page to be filled includes an area to be filled that is the same size as the first area; determining the pixel values ​​of the pixels in the first area, and assigning values ​​to the pixels in the area to be filled in the page to be filled based on the pixel values ​​of the pixels in the first area, so as to obtain any target texture page.

[0107] The page to be filled is a page for which the pixel values ​​of the pixels are to be determined. Exemplarily, the page to be filled can be called a new Texture 2D (two-dimensional texture) object. The number of first regions may be one or more, and the page to be filled includes regions to be filled that are the same size as each first region, that is, the number of regions to be filled included in the page to be filled is the same as the number of first regions, and the regions to be filled correspond to the first regions one-to-one, and the relative sizes of the regions to be filled and the first regions are the same. Exemplarily, taking the example that the segmentation sub-parameters corresponding to any target web page include positioning point parameters and size parameters, the size of the region to be filled can be determined according to the region size (such as width wi and height hi) in the segmentation sub-parameters corresponding to the candidate web page to achieve the creation of the page to be filled.

[0108] Since the first area is an area in a unified texture page, the pixel values ​​of the pixels in the first area can be determined based on the unified texture page. After determining the pixel values ​​of the pixels in the first area, the pixels in the area to be filled in the page to be filled are assigned values ​​based on the pixel values ​​of the pixels in the first area, and the page obtained after the assignment is used as any target texture page.

[0109] It should be understood that, in the case where the number of first regions is one, the number of regions to be filled is also one. In this case, the pixel points in one region to be filled in the page to be filled are directly assigned values ​​based on the pixel values ​​of the pixel points in the one first region, and the target texture page can be obtained. In the case where the number of first regions is multiple, the number of regions to be filled is also multiple. In this case, the pixel points in the region to be filled in the page to be filled corresponding to the first region are assigned values ​​based on the pixel values ​​of the pixel points in each first region. After the pixel points in the multiple regions to be filled are assigned values, the target texture page can be obtained.

[0110] Exemplarily, taking the case where the number of the first area and the number of the area to be filled are both one, since the size of the area to be filled is the same as the size of the first area, the number of pixels in the area to be filled is the same as the number of pixels in the first area, and the pixels in the area to be filled correspond to the pixels in the first area one to one. Assigning values ​​to the pixels in the area to be filled based on the pixel values ​​of the pixels in the first area means assigning values ​​to the corresponding pixels in the area to be filled based on the pixel value of each pixel in the first area.

[0111] Exemplarily, taking the example that the segmentation sub-parameters corresponding to the candidate web page include the positioning point coordinates (xi, yi) and the area size (width wi and height hi), the first area refers to the area with a width wi and a height hi in the unified texture page with the positioning point coordinates (xi, yi) as the starting point. Exemplarily, the process of determining the pixel values ​​of the pixels in the first area is implemented by using the Texture.GetPixels method. Exemplarily, the process of assigning values ​​to the pixels in the to-be-filled area based on the pixel values ​​of the pixels in the first area to obtain any target texture page can also be referred to as the process of applying the pixel values ​​of the pixels in the first area to the new Texture 2D object to implement page (off-screen page rendering texture) segmentation.

[0112] With reference to the above-described method of acquiring any target texture page, at least two target texture pages can be acquired, thereby implementing a process of segmenting the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages.

[0113] Exemplarily, the unified texture page is segmented based on the segmentation parameters corresponding to the unified texture page, and the process of obtaining at least two target texture pages is implemented by running a script (e.g., a C# script). The process of running the script can be regarded as a process of instantiating the created processing class using the segmentation parameters and the unified texture page. Exemplarily, the processing class can inherit the core class Browser of the ZFBrowser plug-in.

[0114] Step 2: Display at least two target texture pages to present texture contents of at least two target web pages.

[0115] Since the at least two target texture pages include texture contents of at least two target web pages, after acquiring the at least two target texture pages, the texture contents of the at least two target web pages can be presented by displaying the at least two target texture pages.

[0116] In the manner of presenting the texture contents of at least two target web pages based on step 1 and step 2, the texture contents of at least two target web pages can be presented through at least two target texture pages, and the presentation flexibility of the texture contents of at least two target web pages is relatively high. In addition, the presentation level of the texture contents of the target web pages can be flexibly changed by changing the display level of the target texture page, and the operation convenience of changing the presentation level is relatively high, which is conducive to adapting to more content presentation scenarios and improving the interactive experience of the interactive objects.

[0117] In a possible implementation, the method of displaying at least two target texture pages includes: displaying the at least two target texture pages according to display requirements of the at least two target texture pages, wherein the display requirements of any target texture page include at least one of a display position, a display size, and a display level of any target texture page.

[0118] Any target texture page is displayed according to the display requirements of the target texture page, and the display requirements of the target texture page are set according to experience or flexibly adjusted according to the application scenario, which is not limited in the embodiment of the present application. The display requirements of any target texture page include at least one of the display position, display size, and display level of the target texture page.

[0119] The display position of any target texture page may refer to the center display position, the lower left corner display position, the upper right corner display position, etc. of any target texture page. The display size of any target texture page may refer to the display height and display width of any target texture page. The display level of any target texture page is used to indicate the stacking level of any target texture page in the display interface; the higher the display level of any target texture page, the higher the stacking level of any target texture page in the display interface.

[0120] The display requirements of the at least two target texture pages can be determined according to the presentation requirements of the texture contents included in the at least two target texture pages, so that after displaying the at least two target texture pages, the presentation requirements of the texture contents of the at least two target web pages can be met, thereby improving the content presentation effect. The display requirements can be flexibly adjusted according to the presentation requirements, and the display flexibility of the at least two target texture pages is high, which is conducive to improving the presentation flexibility of the texture contents of the at least two target web pages.

[0121] In an exemplary embodiment, each target texture page is associated with a UI (User Interface) display component. The UI display component associated with any target texture page records the display requirements of any target texture page. According to the display requirements of any target texture page, the process of displaying any target texture page can be implemented using the UI display component associated with any target texture page.

[0122] In an exemplary embodiment, any target texture page includes texture content of a target web page. In this case, the segmentation sub-parameters corresponding to any target web page may also include display requirements of the target texture page corresponding to the any target web page. In this case, a UI display component recording the display requirements of the target texture page corresponding to the any target web page may be used as a UI display component associated with the target texture page including the texture content of the any target web page, and then the UI display component associated with the target texture page may be used to implement a process of displaying the target texture page according to the display requirements of the target texture page.

[0123] In an exemplary embodiment, any target texture page includes texture content of a target web page. In this case, the segmentation sub-parameter corresponding to any target web page may also include identification information of a UI display component corresponding to the any target web page. Then, the UI display component corresponding to the any target web page may be determined based on the identification information of the UI display component corresponding to the any target web page, and the UI display component corresponding to the any target web page may be used as the UI display component associated with the target texture page including the texture content of the any target web page. Then, the UI display component associated with the target texture page may be used to implement a process of displaying the target texture page according to the display requirements of the target texture page.

[0124] In a possible implementation, the implementation process of displaying at least two target texture pages includes: displaying the at least two target texture pages together with a reference page. The reference page refers to a page that needs to be displayed in the same display interface as the at least two target texture pages. The reference page is set based on experience or flexibly adjusted according to the application scenario, which is not limited in the embodiment of the present application. Exemplarily, the joint display can also be called hybrid display, hybrid rendering, etc.

[0125] In an exemplary embodiment, taking the case where the client is developed using the Unity engine as an example, the reference page may include a rendering page of a Unity 3D (three-dimensional) scene and a Unity 2D UI page. Both the rendering page of the Unity 3D scene and the Unity 2D UI page can be obtained using native components in the Unity engine. The rendering page of the Unity 3D scene is obtained by rendering the Unity 3D scene, and the Unity 3D scene is flexibly selected according to actual needs. For example, the rendering page of the Unity 3D scene is as follows: Figure 8 shown.

[0126] A Unity 2D UI page refers to a two-dimensional plane that needs to be displayed in conjunction with at least two target texture pages. For example, the number of Unity 2D UI pages may be one or more, and this embodiment of the present application does not limit this. For example, the number of Unity 2D UI pages is three, and the three Unity 2D UI pages are respectively as follows: Fig. 9 As shown in (1), (2) and (3) in .

[0127] Exemplarily, the at least two target texture pages are displayed jointly with the reference page in the following manner: according to the display requirements of the at least two target texture pages and the display requirements of the reference page, the at least two target texture pages are displayed jointly with the reference page. The display requirements of the at least two target texture pages and the display requirements of the reference page are set based on experience, or are flexibly adjusted according to actual application scenarios. The embodiment of the present application does not limit this, as long as it is ensured that after the at least two target texture pages are displayed jointly with the reference page, the display effect of the display interface meets the expected display effect.

[0128] For example, at least two target web pages are Figure 3 The Brick Programming IDE webpage shown and Figure 4 The code display page and reference pages shown include Figure 8 The rendering page of the Unity 3D scene shown and Fig. 9 Taking the three Unity 2D UI pages shown in FIG. 1 and any target texture page including the texture content of a target web page as an example, after displaying at least two target texture pages in conjunction with the reference page, the following can be obtained: Fig.10 The display interface shown in the figure. Fig.10 In the display interface shown, in addition to displaying the target texture page and the reference page corresponding to at least two target web pages respectively, controls to be displayed can also be flexibly set, such as a reset control and a stop control.

[0129] Fig.10The display interface shown is a mixture of multi-dimensional and multi-level content. To elaborate, it is obtained by the joint rendering of three different forms: the rendering page of the Unity3D scene, the Unity 2D UI page, and the target texture page corresponding to the WebView web page. The levels of the rendering results of different implementation technologies are also interspersed with each other, which can realize the dynamic adjustment of the levels in display priority. The technical solution provided by the embodiment of the present application can be used in products built on the Unity engine that use multiple complex WebView web pages that interact with each other and have interspersed use requirements for page levels, and has scalability and excellent operating performance. First, a unified web page is constructed based on at least two target web pages, and the unified web page is rendered into a unified texture page. When it is actually needed to be displayed, the unified texture page is divided and restored into target texture pages corresponding to each target web page, and finally re-combined with the rendering page of the Unity 3D scene and the Unity 2D UI page to achieve the final display effect, while also not affecting the interactive effect of the pages interspersed with each other.

[0130] For example, taking any target texture page including the texture content of a target web page as an example, after the target texture pages corresponding to at least two target web pages are displayed together with the reference page, the position of the area where the target texture page corresponding to any target web page is located in the display interface relative to the display interface may be different from the position of the area where the texture content of any target web page is located in the unified texture page relative to the unified texture page. Fig.11 As shown, the target texture page corresponding to the building block programming IDE webpage is located in the area 1101 in the display interface relative to the position of the display interface. Figure 7 The texture content of the building block programming IDE webpage shown in FIG. 7 is located in a different area 701 relative to the location of the unified texture page; the target texture page corresponding to the code display webpage is located in an area 1102 relative to the location of the display interface. Figure 7 The code shown in shows that the area 702 where the texture content of the web page is located in the unified texture page is different from the location of the unified texture page.

[0131] For example, taking the number of at least two target web pages as 2, the original contents of the two target web pages are original content 1 and original content 2, and the texture contents of the two target web pages are texture content 1 and texture content 2, the content presentation process can be as follows: Fig.12As shown. In the page implementation stage, a unified webpage is constructed based on the two target webpages, and the constructed unified webpage includes original content 1 and original content 2. In the Unity display stage, the unified webpage is rendered into a unified texture page by at least one first rendering process, and the unified texture page is segmented based on the segmentation parameters corresponding to the unified texture page to obtain target texture pages corresponding to the two target webpages, wherein the target texture pages corresponding to the two target webpages respectively include texture content 1 and texture content 2. The target texture pages corresponding to the two target webpages are displayed to present texture content 1 and texture content 2. Texture content 1 can be regarded as content obtained by rendering original content 1 in the unified webpage through a rendering process, and texture content 2 can be regarded as content obtained by rendering original content 2 in the unified webpage through a rendering process.

[0132] The above steps 1 and 2 introduce the implementation process of presenting the texture contents of at least two target web pages in a manner matching the determination result based on the unified texture page when the determination result is that the unified texture page corresponds to the segmentation parameter. In some embodiments, the determination result may also be that the unified texture page does not correspond to the segmentation parameter. In this case, the implementation process of presenting the texture contents of at least two target web pages in a manner matching the determination result based on the unified texture page is: displaying the unified texture page to present the texture contents of at least two target web pages.

[0133] When the judgment result is that the unified texture page does not correspond to the segmentation parameters, there is no need to obtain the segmentation parameters corresponding to the unified texture page, nor is there any need to post-process the unified texture page according to the segmentation parameters. The texture content of at least two target web pages can be presented directly by displaying the unified texture page, which is conducive to improving the efficiency of content presentation.

[0134] In an exemplary embodiment, a unified texture page is associated with a UI display component, and a method of displaying the unified texture page includes: displaying the unified texture page using the UI display component associated with the unified texture page.

[0135] In an exemplary embodiment, the implementation process of displaying a unified texture page includes: jointly displaying the unified texture page with a candidate page. A candidate page refers to a page that needs to be displayed in the same display interface as the unified texture page. The candidate page is set based on experience or flexibly adjusted according to an application scenario, and the embodiment of the present application does not limit this. Exemplarily, the candidate page can be the same as the reference page or different from the reference page.

[0136] It should be noted that the above is only an exemplary implementation method for presenting texture contents of at least two target web pages based on a unified texture page, and the embodiments of the present application are not limited thereto. In some embodiments, it is also possible to directly display the unified texture page without determining whether the unified texture page corresponds to a segmentation parameter, thereby presenting texture contents of at least two target web pages using the unified texture page. This method is conducive to improving the efficiency of presenting texture contents of at least two target web pages.

[0137] In a possible implementation, the unified webpage includes original contents of at least two target webpages. After the texture contents of at least two target webpages are presented based on the unified texture page, the following steps (1) to (3) are further included.

[0138] Step (1): In response to a trigger operation at a first position in the first presentation area, convert the trigger operation at the first position into a trigger operation at a second position in the first original area according to a position conversion relationship between the first presentation area and the first original area.

[0139] The first presentation area is an area where the texture content of any target webpage is presented in the display interface, and the first original area is an area where the original content of any target webpage is located in the unified webpage.

[0140] The first position may refer to any position in the area where the texture content of any target web page is presented in the display interface (i.e., the first presentation area). The trigger operation of the first position refers to the operation generated by the interactive object at the first position for interacting with the texture content of any target web page. The embodiment of the present application does not limit the type of the trigger operation of the first position. By way of example, the trigger operation of the first position may refer to a single-click operation, a double-click operation, etc. on the first position.

[0141] The embodiment of the present application does not limit the interactive purpose of the trigger operation of the first position. The interactive purpose of the trigger operation of the first position may be related to the specific situation of the first position. For example, if the first position is the position of the content update control in the first presentation area, the interactive purpose of the trigger operation of the first position may refer to updating the texture content of any target web page. Exemplarily, the content update control includes but is not limited to a confirmation control, a rejection control, a selection control, etc. For another example, if the first position is the position of the information viewing control in the first display area, the interactive purpose of the trigger operation of the first position may refer to viewing the detailed information of the texture content of any target web page.

[0142] After obtaining the trigger operation of the first position in the first presentation area, the trigger operation of the first position is converted into a trigger operation of the second position in the first original area according to the position conversion relationship between the first presentation area and the first original area (that is, the area where the original content of any target web page is located in the unified web page). The position conversion relationship between the first presentation area and the first original area is used to convert the position in the first presentation area into a corresponding position in the first original area. Exemplarily, the position conversion relationship between the first presentation area and the first original area can be set by a technician according to the relationship between the position in the first presentation area and the position in the first original area.

[0143] Exemplarily, according to the position conversion relationship between the first presentation area and the first original area, the process of converting the trigger operation of the first position into the trigger operation of the second position in the first original area can be implemented by running a script for converting the position on the target UI display component. Exemplarily, if the texture content of at least two target web pages is implemented by displaying a unified texture page, the target UI display component refers to the UI display component associated with the unified texture page; if the texture content of at least two target web pages is implemented by displaying at least two target texture pages, the target UI display component refers to the UI display component associated with the target texture page including the texture content of any target web page. Exemplarily, the script can refer to a C# script. Exemplarily, the trigger operation can be considered as a mouse event, and the script for converting the position can be called a script for processing the coordinate conversion of mouse events.

[0144] Exemplarily, taking the client developed using the Unity engine (such as the Unity 3D engine) as an example, the client's processing logic for mouse events includes: after the Unity engine detects the mouse event, the client's built-in ZFBrowser plug-in converts the two-dimensional screen space coordinates (i.e., the position in the display interface) into browser space coordinates (i.e., the position in the unified web page) according to Unity's ray casting and the position transformation properties of the UI display component (such as the RectTransform property), and the converted mouse coordinate information is then passed to the Chromium kernel, and further processing operations are performed in the unified web page, such as web page updates. For the content presentation method provided in the embodiment of the present application, the texture content of at least two target web pages may have undergone cropping, scaling, and displacement operations when presented, so it is necessary to rewrite the coordinate conversion method (including the position conversion relationship between the first presentation area and the first original area) in combination with the segmentation area, the position parameters of the UI display component, etc., to convert the two-dimensional screen space coordinates into the relative position of the mouse on the browser's unified web page to avoid deviations in the converted browser space coordinates.

[0145] Step (2): Based on the triggering operation of the second position, obtain the processed unified web page.

[0146] After converting the trigger operation at the first position into the trigger operation at the second position in the first original area, a processed unified webpage is obtained based on the trigger operation at the second position. It should be noted that the processed unified webpage may be the same as the unified webpage before processing, or may be different from the unified webpage before processing, which is related to the specific situation of the second position.

[0147] In one possible implementation, based on the trigger operation of the second location, the process of obtaining the processed unified web page includes: performing a first processing operation that matches the trigger operation of the second location on the original content of any target web page; performing an associated processing operation of the first processing operation on the associated content, and using the web page obtained after performing the associated processing operation as the processed unified web page.

[0148] The associated content is the original content of the associated webpage, and the associated webpage is a target webpage associated with any target webpage among the at least two target webpages.

[0149] The first processing operation is a processing operation that matches the trigger operation at the second location. The process of executing the first processing operation on the original content of any target web page is related to the type of the trigger operation at the second location. For example, if the trigger operation at the second location is a trigger operation on a content update control, then executing the first processing operation on the original content of any target web page may refer to updating the original content of any target web page to content that matches the content update control.

[0150] After performing a first processing operation on the original content of any target web page, determine whether the first processing operation corresponds to an associated processing operation. Exemplarily, the associated processing operation is a processing operation for associated content. Associated content refers to the original content of the target web page associated with any target web page. The target web page associated with any target web page refers to a target web page whose original content is associated with the original content of any target web page, such as a target web page whose original content changes with the change of the original content of any target web page. Exemplarily, any target web page may refer to a building block programming IDE web page. Since the change of the original content in the building block programming IDE web page will cause the change of the code in the code display web page, the code display web page can be used as a web page associated with the building block programming IDE web page. It should be noted that the number of target web pages associated with any target web page may be one or more, and the embodiment of the present application does not limit this.

[0151] The type of the associated processing operation is related to the association relationship between the associated content and the original content of any target webpage and the first processing operation, which is not limited in the embodiments of the present application. For example, taking the association relationship between the associated content and the original content of any target webpage as the associated content changes with the change of the original content of any target webpage as an example, if the first processing operation is an operation of updating the original content of any target webpage, then the associated processing operation refers to an operation of updating the associated content with the update of the original content of the first target webpage.

[0152] In the case where the first processing operation corresponds to an associated processing operation, it is necessary to perform the associated processing operation on the associated content, and then use the web page obtained after performing the associated processing operation as the processed unified web page.

[0153] In a possible implementation, based on the trigger operation at the second position, the process of obtaining the processed unified webpage includes: performing a first processing operation matching the trigger operation at the second position on the original content of any target webpage; and using the webpage obtained after performing the first processing operation as the processed unified webpage. This process may occur when the first processing operation does not correspond to an associated processing operation.

[0154] Step (3): Rendering the processed unified web page into a processed unified texture page through at least one second rendering process, presenting the processed texture contents of at least two target web pages based on the processed unified texture page, wherein the number of the at least one second rendering process is less than the number of the at least two target web pages.

[0155] After obtaining the processed unified web page, the texture content in the processed unified web page can be rendered by at least one second rendering process to obtain a processed unified texture page, which includes the processed texture content of at least two target web pages. The at least one second rendering process refers to a process for rendering the processed unified texture page, and the number of the at least one second rendering process is less than the number of the at least two target web pages. It should be noted that the at least one second rendering process can be completely the same as the at least one first rendering process, can be partially the same as the at least one first rendering process, and can be completely different from the at least one first rendering process.

[0156] After obtaining the processed unified texture page, based on the processed unified texture page, the processed texture contents of at least two target web pages are presented. In a possible implementation, the implementation process of presenting the processed texture contents of at least two target web pages based on the processed unified texture page can refer to the implementation process of step 203.

[0157] In another possible implementation, the implementation process of presenting the processed texture content of at least two target web pages based on the processed unified texture page can be: judging whether the processed texture content of each target web page in the processed unified texture page is the same as the texture content before processing of each target web page; if the processed texture content of each target web page in the processed unified texture page is the same as the texture content before processing of each target web page, keeping the texture content before processing of each target web page that has been presented unchanged, and using the texture content before processing of each target web page as the processed texture content of each target web page.

[0158] Exemplarily, if the processed texture content of the first target webpage in the processed unified texture page is different from the texture content before processing of the first target webpage, and the texture content before processing of at least two target webpages is presented by displaying the unified texture page before processing, the processed unified texture page is used to replace the displayed unified texture page before processing, so as to present the processed texture content of at least two target webpages by displaying the processed unified texture page. The first target webpage is part or all of the target webpages in the at least two target webpages.

[0159] Exemplarily, if the processed texture content of the first target web page in the processed unified texture page is different from the texture content of the first target web page before processing, and the texture content of at least two target web pages before processing is presented by displaying the target texture pages corresponding to the at least two target web pages respectively, then the processed texture page corresponding to the first target web page can be obtained based on the processed unified texture page, and the processed texture page corresponding to the first target web page can be used to replace the target texture page corresponding to the first target web page that has been displayed.

[0160] If the first target webpage is the entire target webpage of the at least two target webpages, after replacing the target texture page corresponding to the first target webpage that has been displayed with the processed texture page corresponding to the first target webpage, the processed texture contents of the at least two target webpages can be presented by displaying the processed texture pages corresponding to the at least two target webpages. If the first target webpage is a part of the at least two target webpages, the target texture page corresponding to the second target webpage that has been displayed can be kept unchanged, and the target texture contents included in the target texture page corresponding to the second target webpage can be used as the processed texture contents of the second target webpage, thereby achieving presentation of the processed texture contents of the at least two target webpages.

[0161] Exemplarily, if the processed texture content of the first target web page in the processed unified texture page is different from the texture content of the first target web page before processing, and the texture content of at least two target web pages before processing is presented by displaying the target texture pages respectively corresponding to the at least two target web pages, then the processed texture pages respectively corresponding to the at least two target web pages can also be obtained based on the processed unified texture page, and the processed texture pages respectively corresponding to the at least two target web pages can be used to replace the target texture pages corresponding to the at least two target web pages that have been displayed, thereby realizing the presentation of the processed texture content of the at least two target web pages.

[0162] In an exemplary embodiment, a frame update triggers a render method in the Browser class to obtain a new unified texture page. If the new unified texture page has no changes compared to the original unified texture page, there is no need to repeatedly split the page. If the new unified texture page has changes compared to the original unified texture page, after obtaining the new unified texture page, the presented texture content can be updated by partially updating or completely updating the displayed page.

[0163] Based on the method provided in the embodiment of the present application, since the original contents of at least two target web pages are integrated into a unified web page, the interaction between the original contents of at least two target web pages can be directly realized through the unified web page (for example, the original contents of one target web page changes accordingly as the original contents of another target web page changes). Fig.12 As shown, since the original content 1 and the original content 2 are in the same unified web page, different areas in the same unified web page can communicate and interact directly through the behavior layer of the web page, so the original content 1 and the original content 2 can interact directly based on the unified web page. Developers do not need to pay attention to the data interaction transfer logic between JS and Unity engines, which greatly improves the development efficiency and the interaction efficiency between WebView pages (that is, the target web page).

[0164] Exemplarily, the content presentation process may be as follows: Fig.13 As shown. Based on at least two target web pages, a unified web page is constructed; a ZFBrowser plug-in is called to render the unified web page through at least one first rendering process to obtain a unified texture page. It is determined whether the unified texture page corresponds to a segmentation parameter; if the unified texture page does not correspond to a segmentation parameter, the unified texture page is displayed through a UI display component associated with the unified texture page, so as to present the texture contents of at least two target web pages through the unified texture page, thereby ending the content presentation process.

[0165] If the unified texture page corresponds to a segmentation parameter, a segmentation sub-parameter corresponding to a target web page is selected from the segmentation parameter, a target texture page corresponding to the target web page is segmented from the unified texture page according to the segmentation sub-parameter, the target texture page corresponding to the target web page is displayed using a UI display component associated with the target web page, and a script (e.g., a C# script) for processing mouse event coordinate conversion is added to the target texture page corresponding to the target web page.

[0166] It is determined whether the segmentation sub-parameters in the segmentation parameters have been selected. If the segmentation sub-parameters in the segmentation parameters have not been selected, the step of selecting a segmentation sub-parameter corresponding to a target web page from the segmentation parameters is returned to. That is, for each segmentation sub-parameter in the segmentation parameters, the steps of displaying the target texture page corresponding to the target web page corresponding to the segmentation sub-parameter and adding a script for processing the coordinate conversion of the mouse event on the target texture page are repeated. If the segmentation sub-parameters in the segmentation parameters have been selected, it means that the target texture pages corresponding to at least two target web pages have been displayed, so that the texture contents of at least two target web pages are presented through the target texture pages corresponding to the at least two target web pages, thereby ending the content presentation process.

[0167] In the client (or visualization platform) implemented based on the Unity engine, for reasons of rapid iteration and convenient modification, it is often necessary to display the texture content of the WebView page (web page) in the visualization platform. The embodiment of the present application merges the contents of multiple separate WebView pages (i.e., multiple target web pages) that need to be associated and interacted with each other into a unified web page, calls the ZFBrowser plug-in to render the unified web page into a unified texture page through at least one first rendering process, and then re-segments the unified texture page according to the needs of the final display in the Unity 3D project (platform), displays the segmented local texture page through the UI display component, and recalculates and converts the user's mouse position to achieve accurate user interaction. Based on the method provided in the embodiment of the present application, the rendering page of the Unity 3D scene, the Unity 2DUI page, and the online web page can be displayed in three forms at the same time, and the three forms of visual effects can be interspersed. The technology of page cutting and remixing rendering can meet the needs of optimizing running performance, and the content with data interaction can directly interact and update, and can also be interspersed at various levels.

[0168] The technical solution provided by the embodiment of the present application can enable only a small number (e.g., one) of Chromium kernel rendering processes to be opened when presenting the texture content of multiple target web pages, thereby reducing the number of rendering processes and rendering pressure, and can effectively reduce the memory usage (e.g., CPU (Central Processing Unit) memory) during project runtime, improve overall operating performance, and thus enhance the smoothness of page display and user interaction experience. In addition, each area on a unified web page can be directly interactive by calling JS in the page without the need for Unity engine transfer, which can reduce the workload of developers and improve interaction efficiency.

[0169] The content presentation method provided in the embodiment of the present application obtains a unified webpage constructed based on at least two target webpages. Based on this, a unified texture page including texture contents of at least two target webpages can be obtained by starting a smaller number of first rendering processes, thereby realizing the presentation of texture contents of multiple target webpages. This content presentation process reduces the number of rendering processes that need to be started, which is conducive to reducing the consumption of memory resources, thereby improving the fluency of the content presentation process, and thus improving the interactive experience of the interactive object.

[0170] In addition, since the unified web page constructed based on at least two target web pages includes the original contents of at least two target web pages at the same time, the original contents of at least two target web pages can directly interact based on the unified web page, that is, multiple contents that need to interact can directly interact and communicate with each other without the need for the Unity engine to transfer data, which is conducive to improving interaction efficiency.

[0171] See also Fig.14 , an embodiment of the present application provides a content presentation device, the device comprising:

[0172] The acquisition unit 1401 is used to acquire at least two target web pages of the content to be presented; acquire a unified web page, where the unified web page is constructed based on the at least two target web pages;

[0173] A rendering unit 1402 is configured to render the unified webpage into a unified texture page through at least one first rendering process, wherein the unified texture page includes texture contents of at least two target webpages, and the number of the at least one first rendering process is less than the number of the at least two target webpages;

[0174] The presenting unit 1403 is configured to present texture contents of at least two target web pages based on the unified texture page.

[0175] In a possible implementation, the presentation unit 1403 is configured to segment the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages, wherein the at least two target texture pages include texture contents of at least two target web pages, and any target texture page includes texture contents of at least one of the at least two target web pages, and the segmentation parameters are used to indicate regions in the unified texture page where the texture contents of the at least two target web pages are respectively located; and display the at least two target texture pages to present the texture contents of the at least two target web pages.

[0176] In one possible implementation, the presentation unit 1403 is used to determine a first area based on a segmentation parameter, where the first area is an area where texture content of a candidate web page is located in a unified texture page, and the candidate web page is a target web page whose texture content is to be segmented into any target texture page; create a page to be filled, where the page to be filled includes an area to be filled that is the same size as the first area; determine pixel values ​​of pixels in the first area, and assign values ​​to pixels in the area to be filled in the page to be filled based on the pixel values ​​of the pixels in the first area to obtain any target texture page.

[0177] In one possible implementation, the presentation unit 1403 is used to determine a first area based on a segmentation parameter, where the first area is an area where texture content of a candidate web page is located in a unified texture page, and the candidate web page is a target web page whose texture content is to be segmented into any target texture page; based on the first area, segment a sub-texture page corresponding to the candidate web page from the unified texture page; and obtain any target texture page based on the sub-texture page corresponding to the candidate target web page.

[0178] In a possible implementation, the presenting unit 1403 is configured to display a unified texture page to present texture contents of at least two target web pages.

[0179] In a possible implementation, the unified webpage includes original contents of at least two target webpages, and the acquisition unit 1401 is further used to respond to a trigger operation at a first position in a first presentation area, and convert the trigger operation at the first position into a trigger operation at a second position in the first original area according to a position mapping relationship between the first presentation area and the first original area, the first presentation area being an area where texture contents of any target webpage are presented in a display interface, and the first original area being an area where original contents of any target webpage are located in the unified webpage; based on the trigger operation at the second position, acquire the processed unified webpage;

[0180] The rendering unit 1402 is further configured to render the processed unified web page into a processed unified texture page through at least one second rendering process, wherein the number of the at least one second rendering process is less than the number of the at least two target web pages;

[0181] The presenting unit 1403 is further configured to present the processed texture contents of at least two target web pages based on the processed unified texture page.

[0182] In one possible implementation, the acquisition unit 1401 is further used to perform a first processing operation that matches the trigger operation at the second position on the original content of any target web page; perform an associated processing operation of the first processing operation on the associated content, where the associated content is the original content of the associated web page, and the associated web page is a target web page associated with any target web page among at least two target web pages; and use the web page obtained after performing the associated processing operation as a unified web page after processing.

[0183] In a possible implementation, the presentation unit 1403 is used to display at least two target texture pages according to display requirements of the at least two target texture pages, where the display requirements of any target texture page include at least one of a display position, a display size, and a display level of any target texture page.

[0184] In a possible implementation, the acquisition unit 1401 is used to acquire the unified webpage locally according to the webpage address of the unified webpage; or acquire the unified webpage from an external device according to the webpage address of the unified webpage; or construct the unified webpage based on at least two target webpages.

[0185] The content presentation device provided in the embodiment of the present application obtains a unified webpage constructed based on at least two target webpages. Based on this, a unified texture page including texture contents of at least two target webpages can be obtained by starting a smaller number of first rendering processes, thereby realizing the presentation of texture contents of multiple target webpages. This content presentation process reduces the number of rendering processes that need to be started, which is conducive to reducing the consumption of memory resources, thereby improving the fluency of the content presentation process, and thus improving the interactive experience of the interactive object.

[0186] In addition, since the unified web page constructed based on at least two target web pages includes the original contents of at least two target web pages at the same time, the original contents of at least two target web pages can directly interact based on the unified web page, that is, multiple contents that need to interact can directly interact and communicate with each other without the need for the Unity engine to transfer data, which is conducive to improving interaction efficiency.

[0187] It should be noted that the device provided in the above embodiment only uses the division of the above functional units as an example to implement its functions. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0188] Fig.15 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a terminal, for example, a PC, a mobile phone, a smart phone, a PDA, a wearable device, a PPC, a tablet computer, a smart car machine, a smart TV, a smart speaker, a car terminal, a VR device, an AR device, etc. The terminal may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, etc. The terminal is equipped with a computer for implementing Figure 2 The client side of the embodiment shown.

[0189] Typically, the terminal includes: a processor 1501 and a memory 1502 .

[0190] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0191] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1501 to enable the terminal to implement the content presentation method provided in the method embodiment of the present application, for example, to enable the client installed in the terminal to implement the content presentation method provided in the method embodiment of the present application.

[0192] In some embodiments, the terminal may further optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507 and a power supply 1508.

[0193] The peripheral device interface 1503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0194] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0195] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input to the processor 1501 as a control signal for processing. At this time, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1505 can be one, which is set on the front panel of the terminal; in other embodiments, the display screen 1505 can be at least two, which are respectively set on different surfaces of the terminal or are folded; in other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal. Even, the display screen 1505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0196] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0197] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1501 for processing, or input them into the RF circuit 1504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1501 or the RF circuit 1504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.

[0198] The power supply 1508 is used to power various components in the terminal. The power supply 1508 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1508 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0199] In some embodiments, the terminal further includes one or more sensors 1509 , including but not limited to: an acceleration sensor 1510 , a gyroscope sensor 1511 , a pressure sensor 1512 , an optical sensor 1513 , and a proximity sensor 1514 .

[0200] The acceleration sensor 1510 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 1510 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1501 can control the display screen 1505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1510. The acceleration sensor 1510 can also be used for collecting game or user motion data.

[0201] The gyro sensor 1511 can detect the body direction and rotation angle of the terminal, and the gyro sensor 1511 can cooperate with the acceleration sensor 1510 to collect the user's 3D actions on the terminal. The processor 1501 can implement the following functions based on the data collected by the gyro sensor 1511: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0202] The pressure sensor 1512 can be set in the side frame of the terminal and / or the lower layer of the display screen 1505. When the pressure sensor 1512 is set in the side frame of the terminal, it can detect the user's holding signal of the terminal, and the processor 1501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1512. When the pressure sensor 1512 is set in the lower layer of the display screen 1505, the processor 1501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0203] The optical sensor 1513 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the display screen 1505 according to the ambient light intensity collected by the optical sensor 1513. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the display screen 1505 is reduced. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera component 1506 according to the ambient light intensity collected by the optical sensor 1513.

[0204] The proximity sensor 1514, also known as a distance sensor, is usually arranged on the front panel of the terminal. The proximity sensor 1514 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 1501 controls the display screen 1505 to switch from the screen-on state to the screen-off state; when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 1501 controls the display screen 1505 to switch from the screen-off state to the screen-on state.

[0205] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0206] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-mentioned content presentation methods.

[0207] In one possible implementation, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0208] In an exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program or computer instructions. The computer program or computer instructions are loaded and executed by a processor to enable a computer to implement any of the above-mentioned content presentation methods.

[0209] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the trigger operation of the first position involved in this application is obtained with full authorization.

[0210] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0211] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A content presentation method, characterized in that: The method comprises: Obtain at least two target web pages of the content to be presented; Obtaining a unified webpage, wherein the unified webpage is constructed based on the at least two target webpages; Rendering the unified webpage into a unified texture page by at least one first rendering process, wherein the unified texture page includes texture contents of the at least two target webpages, and the number of the at least one first rendering process is less than the number of the at least two target webpages; Segmenting the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages, wherein the at least two target texture pages include texture contents of the at least two target web pages, and any target texture page includes texture contents of at least one of the at least two target web pages, and the segmentation parameters are used to indicate regions in the unified texture page where the texture contents of the at least two target web pages are located respectively; The at least two target texture pages are displayed to present the texture contents of the at least two target web pages.

2. The method according to claim 1, characterized in that: The step of segmenting the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages includes: Based on the segmentation parameter, determining a first region, the first region being a region where texture content of a candidate webpage is located in the unified texture page, the candidate webpage being a target webpage whose texture content is to be segmented into any target texture page; Create a page to be filled, the page to be filled including an area to be filled of the same size as the first area; determine pixel values ​​of pixels in the first area, assign values ​​to pixels in the area to be filled in the page to be filled based on the pixel values ​​of pixels in the first area, and obtain any target texture page.

3. The method according to claim 1, characterized in that: The step of segmenting the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages includes: Based on the segmentation parameter, determining a first region, the first region being a region where texture content of a candidate webpage is located in the unified texture page, the candidate webpage being a target webpage whose texture content is to be segmented into any target texture page; According to the first region, a sub-texture page corresponding to the candidate web page is segmented from the unified texture page; and based on the sub-texture page corresponding to the candidate web page, any one of the target texture pages is acquired.

4. The method according to any one of claims 1 to 3, characterized in that: The unified webpage includes original contents of the at least two target webpages, and the method further includes: In response to a trigger operation at a first position in a first presentation area, converting the trigger operation at the first position into a trigger operation at a second position in the first original area according to a position mapping relationship between the first presentation area and a first original area, the first presentation area being an area where texture content of any target web page is presented in a display interface, and the first original area being an area where the original content of any target web page is located in the unified web page; Based on the triggering operation of the second position, obtaining a processed unified webpage; The processed unified web page is rendered into a processed unified texture page by at least one second rendering process, and based on the processed unified texture page, the processed texture contents of the at least two target web pages are presented, wherein the number of the at least one second rendering process is less than the number of the at least two target web pages.

5. The method according to claim 4, characterized in that The triggering operation based on the second position to obtain the processed unified webpage includes: Performing a first processing operation matching the triggering operation at the second position on the original content of any target webpage; Performing an association processing operation of the first processing operation on the associated content, the associated content is original content of an associated web page, and the associated web page is a target web page associated with any of the target web pages among the at least two target web pages; The web page obtained after executing the association processing operation is used as the processed unified web page.

6. The method according to any one of claims 1 to 3, characterized in that: The displaying of the at least two target texture pages comprises: The at least two target texture pages are displayed according to display requirements of the at least two target texture pages, wherein the display requirement of any target texture page includes at least one of a display position, a display size, and a display level of the any target texture page.

7. The method according to any one of claims 1 to 3, characterized in that: The obtaining of the unified webpage includes: obtaining the unified webpage locally according to the webpage address of the unified webpage; or obtaining the unified webpage from an external device according to the webpage address of the unified webpage; or constructing the unified webpage based on the at least two target webpages.

8. A content presentation device, characterized in that: The device comprises: An acquisition unit, configured to acquire at least two target web pages of the content to be presented; and acquire a unified web page, wherein the unified web page is constructed based on the at least two target web pages; a rendering unit, configured to render the unified web page into a unified texture page through at least one first rendering process, wherein the unified texture page includes texture contents of the at least two target web pages, and the number of the at least one first rendering process is less than the number of the at least two target web pages; A presentation unit is configured to segment the unified texture page based on the segmentation parameters corresponding to the unified texture page to obtain at least two target texture pages, wherein the at least two target texture pages include texture contents of the at least two target web pages, and any target texture page includes texture contents of at least one of the at least two target web pages, and the segmentation parameters are used to indicate regions where the texture contents of the at least two target web pages are located in the unified texture page respectively; and display the at least two target texture pages to present the texture contents of the at least two target web pages.

9. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor, so that the computer device implements the content presentation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements the content presentation method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product comprises a computer program or computer instructions, and the computer program or computer instructions are loaded and executed by a processor so as to enable a computer to implement the content presentation method as claimed in any one of claims 1 to 7.