CN114329298A - Page presentation method and device, electronic equipment and storage medium - Google Patents
Page presentation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114329298A CN114329298A CN202111662630.1A CN202111662630A CN114329298A CN 114329298 A CN114329298 A CN 114329298A CN 202111662630 A CN202111662630 A CN 202111662630A CN 114329298 A CN114329298 A CN 114329298A
- Authority
- CN
- China
- Prior art keywords
- page
- cloud browser
- identification information
- information
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The application relates to the field of data processing, in particular to a page presentation method, a page presentation device, electronic equipment and a storage medium, which solve the problems that when different clients initiate browser requests to the same webpage, the corresponding server needs to perform independent rendering, and the resource utilization rate is low, and the method comprises the following steps: the method comprises the steps of receiving a page access request sent by a cloud browser client, obtaining page address information and an operation event, determining target identification information matched in an identification information set according to the address information and the operation event, obtaining page rendering data which correspond to the target identification information and are coded into a video format, and sending the page rendering data to the cloud browser client. Therefore, when the cloud browser client requests to obtain a previously rendered page, corresponding page rendering data can be directly obtained, repeated starting of the cloud browser server to perform multiple renderings on the same page content is avoided, and resource waste is avoided to a certain extent.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page presenting method and apparatus, an electronic device, and a storage medium.
Background
At present, in order to improve the access security of a client browser, a cloud browser architecture is proposed, so that a browser request sent by a client to a specified webpage is not directly sent to a server corresponding to the specified webpage, but corresponding webpage data is obtained from the server corresponding to the specified webpage through a cloud browser server, and the rendered webpage data is sent to the client for presentation after rendering is completed.
However, in the existing cloud browser architecture, a cloud browser server and a cloud browser client are single-instance, one cloud browser client corresponds to one cloud browser server, and each cloud browser server operates on a different machine, so that when different cloud browser clients initiate browser requests for the same web page, the corresponding cloud browser servers need to perform independent rendering, and the resource utilization rate is low.
In view of the above, a new page rendering method is needed to solve the above problems.
Disclosure of Invention
The embodiment of the application provides a page presentation method, a page presentation device, an electronic device and a storage medium, which are used for solving the problems that when different clients initiate browser requests for the same webpage, the corresponding server needs to perform independent rendering, and the resource utilization rate is low in the prior art.
The embodiment of the application provides the following specific technical scheme:
in a first aspect, a page presentation method is provided, which is applied to a cloud browser management end in a cloud browser architecture, and includes:
receiving a page access request sent by a cloud browser client, acquiring page address information of a target page carried in the page access request and triggering an operation event of the page access request;
generating identification information to be matched according to the page address information and the operation event, and acquiring an identification information set generated aiming at each rendered page, wherein the identification information is used for indicating the page content determined according to the operation event;
when determining that target identification information matched with the identification information to be matched exists in the identification information set, acquiring page rendering data which corresponds to the target identification information and is coded into a video format;
and sending the page rendering data in the video format to the cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Optionally, the generating, by the operating event, to-be-matched identifier information according to the address information and the operating event includes:
determining a first position coding result corresponding to the operation position and determining an operation type coding result corresponding to the operation type information according to coding results which are respectively configured aiming at each operation area and each operation type in advance;
and integrating the operation type coding result, the operation position coding result, the input content information and the address information according to a preset sequence to generate identification information to be matched.
Optionally, the page access request further includes operating environment information, and the method further includes:
when determining that target identification information matched with the identification information to be matched does not exist in the identification information set, starting a cloud browser server matched with the operating environment information;
receiving page rendering data in a video format, which is generated by the cloud browser server corresponding to the page content in the target page determined by the page address information and the operation event;
sending the page rendering data in the video format to the cloud browser client so that the cloud browser client displays the target page corresponding to the operation information in a video form;
and newly adding the identification information to be matched in the identification information set, and storing the page rendering data in the video format corresponding to the identification information to be matched.
Optionally, after obtaining the page rendering data in the video format encoded corresponding to the target identification information and before sending the page rendering data in the video format to the cloud browser client, the method further includes:
when historical page content corresponding to the target identification information is rendered, a corresponding historical server generates a first content thumbnail based on webpage data corresponding to the historical page content;
starting a cloud browser server matched with the operating environment information, and receiving a second content thumbnail generated by the cloud browser server requesting webpage data corresponding to the address information;
determining that content components included in the first content thumbnail and the second content thumbnail match.
Optionally, the method further includes:
when the content assemblies in the first content thumbnail and the second content thumbnail are determined not to be matched, starting the cloud browser server, and receiving page rendering data in a video format, which is determined by the address information and the operation event and corresponds to the page content in the target page by the cloud browser server, and is regenerated;
and updating the page rendering data in the video format, which is stored corresponding to the target identification information, based on the regenerated page rendering data in the video format.
In a second aspect, a page presentation method is provided, which is applied to a cloud browser client under a cloud browser architecture, and includes:
responding to an operation event triggered by a target object on a perception layer of a browser page, and determining a target page targeted by the operation event, wherein the operation event comprises operation position information, operation type information and input content information;
based on the page address information of the target page and the operation event, sending a page access request to a cloud browser management terminal;
and receiving page rendering data in a video format sent by the cloud browser management terminal, and playing page content in a target page corresponding to the decoded page rendering data in the video format on the browser page.
Optionally, the operation type information includes any one of:
inputting operation;
clicking operation;
performing downslide operation;
and (4) performing an upward sliding operation.
In a third aspect, a page presentation method is provided, which is applied to a cloud browser server under a cloud browser architecture, and includes:
receiving a starting instruction sent by a cloud browser management end, acquiring page address information and an operation event carried in the starting instruction, and acquiring corresponding webpage data according to the page address information, wherein the operation event comprises operation position information, operation type information and input content information;
and positioning the displayed page content in the page corresponding to the page address information according to the operation event, storing the rendered page content in a data buffer area based on the webpage data, and encoding the data in the data buffer area into a video format according to a specified encoding format.
Optionally, after acquiring the corresponding web page data according to the page address information, the method further includes:
and generating a corresponding page content thumbnail according to the webpage data.
In a fourth aspect, a page rendering apparatus is provided, which is applied to a cloud browser management end in a cloud browser architecture, and includes:
the cloud browser comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a page access request sent by a cloud browser client, acquiring page address information of a target page carried in the page access request and triggering an operation event of the page access request;
the generating unit is used for generating identification information to be matched according to the page address information and the operation event, and acquiring an identification information set generated aiming at each rendered page, wherein the identification information is used for indicating the page content determined according to the operation event;
the determining unit is used for acquiring page rendering data which corresponds to the target identification information and is coded into a video format when the target identification information matched with the identification information to be matched exists in the identification information set;
and the sending unit is used for sending the page rendering data in the video format to the cloud browser client so as to enable the cloud browser client to present page content corresponding to the identification information to be matched in a video form.
Optionally, the operation event includes operation position information, operation type information, and input content information, and when generating the identifier information to be matched according to the address information and the operation event, the generating unit is configured to:
determining a first position coding result corresponding to the operation position and determining an operation type coding result corresponding to the operation type information according to coding results which are respectively configured aiming at each operation area and each operation type in advance;
and integrating the operation type coding result, the operation position coding result, the input content information and the address information according to a preset sequence to generate identification information to be matched.
Optionally, the page access request further includes running environment information, and the determining unit is further configured to:
when determining that target identification information matched with the identification information to be matched does not exist in the identification information set, starting a cloud browser server matched with the operating environment information;
receiving page rendering data in a video format, which is generated by the cloud browser server corresponding to the page content in the target page determined by the page address information and the operation event;
sending the page rendering data in the video format to the cloud browser client so that the cloud browser client displays the target page corresponding to the operation information in a video form;
and newly adding the identification information to be matched in the identification information set, and storing the page rendering data in the video format corresponding to the identification information to be matched.
Optionally, after obtaining the page rendering data in the video format encoded corresponding to the target identification information and before sending the page rendering data in the video format to the cloud browser client, the determining unit is further configured to:
when historical page content corresponding to the target identification information is rendered, a corresponding historical server generates a first content thumbnail based on webpage data corresponding to the historical page content;
starting a cloud browser server matched with the operating environment information, and receiving a second content thumbnail generated by the cloud browser server requesting webpage data corresponding to the address information;
determining that content components included in the first content thumbnail and the second content thumbnail match.
Optionally, the determining unit is further configured to:
when the content assemblies in the first content thumbnail and the second content thumbnail are determined not to be matched, starting the cloud browser server, and receiving page rendering data in a video format, which is determined by the address information and the operation event and corresponds to the page content in the target page by the cloud browser server, and is regenerated;
and updating the page rendering data in the video format, which is stored corresponding to the target identification information, based on the regenerated page rendering data in the video format.
In a fifth aspect, a page rendering apparatus is provided, which is applied to a cloud browser client under a cloud browser architecture, and includes:
the response unit is used for responding to an operation event triggered by a target object on a perception layer of a browser page, and determining a target page targeted by the operation event, wherein the operation event comprises operation position information, operation type information and input content information;
the sending unit is used for sending a page access request to a cloud browser management terminal based on the page address information of the target page and the operation event;
and the receiving unit is used for receiving the page rendering data in the video format sent by the cloud browser management end and playing the page content in the target page corresponding to the decoded page rendering data in the video format on the browser page.
Optionally, the operation type information includes any one of:
inputting operation;
clicking operation;
performing downslide operation;
and (4) performing an upward sliding operation.
In a sixth aspect, a page rendering apparatus is provided, which is applied to a cloud browser server under a cloud browser architecture, and includes:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a starting instruction sent by a cloud browser management end, acquiring page address information and an operation event carried in the starting instruction, and acquiring corresponding webpage data according to the page address information, wherein the operation event comprises operation position information, operation type information and input content information;
and the rendering unit is used for positioning the displayed page content in the page corresponding to the page address information according to the operation event, storing the rendered page content in a data buffer area based on the webpage data, and encoding the data in the data buffer area into a video format according to a specified encoding format.
Optionally, after acquiring the corresponding webpage data according to the page address information, the rendering unit is further configured to:
and generating a corresponding page content thumbnail according to the webpage data.
In a seventh aspect, a computer-readable electronic device is provided, including:
a memory for storing executable instructions;
a processor configured to read and execute the executable instructions stored in the memory to implement the method of any one of the first to third aspects.
In an eighth aspect, a storage medium is provided, wherein instructions, when executed by an electronic device, enable the electronic device to perform the method of any one of the first to third aspects.
The beneficial effect of this application is as follows:
the application provides a page presenting method, a page presenting device, an electronic device and a storage medium, in the technical scheme provided by the application, a page access request sent by a cloud browser client is received, page address information carried in the page access request is obtained, an operation event triggering the page access request is obtained, identification information to be matched is generated according to the address information and the operation event, an identification information set generated aiming at each rendered page is obtained, wherein the identification information is used for indicating page content determined according to the operation information and the address information, then when target identification information matched with the identification information to be matched exists in the identification information set, page rendering data which are coded into a video format and correspond to the target identification information are obtained, and then the page rendering data in the video format are sent to the cloud browser client, and enabling the cloud browser client to present the page content corresponding to the identification information to be matched in a video form.
Therefore, by means of the identification information set stored by the cloud browser management end, when the cloud browser client requests to obtain a previously rendered page, corresponding page rendering data can be directly obtained, repeated starting of the cloud browser server to perform multiple renderings on the same page content is avoided, resource waste is avoided to a certain extent, and meanwhile, after the cloud browser client sends a page access request, the cloud browser client provides video-format page rendering data, so that the page presentation effect is better.
Drawings
FIG. 1 is a schematic view of a scene of a page rendering process in an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a process of executing page rendering by a cloud browser management side in an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a process of a cloud browser client performing page rendering according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of performing page rendering by a cloud browser server in an embodiment of the present application;
fig. 5 is a schematic diagram illustrating three-party interaction among a cloud browser server, a cloud browser client, and a cloud browser management terminal in an embodiment of the present application;
FIG. 6 is a schematic diagram of a logical structure of a page rendering apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a logical structure of a page rendering apparatus according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a logical structure of a page rendering apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware component structure of an electronic device to which an embodiment of the present application is applied.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the technical solutions of the present application. All other embodiments obtained by a person skilled in the art without any inventive step based on the embodiments described in the present application are within the scope of the protection of the present application.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein.
In order to improve the access security of a client browser, a cloud browser architecture is provided, so that a browser request sent by a client to a specified webpage is not directly sent to a server corresponding to the specified webpage, but corresponding webpage data are obtained from the server corresponding to the specified webpage through a cloud browser server, and the rendered webpage data are sent to the client for presentation after rendering is completed.
However, in the existing cloud browser architecture, a cloud browser server and a cloud browser client are single-instance, one cloud browser client corresponds to one cloud browser server, and each cloud browser server operates on a different machine, so that when different cloud browser clients initiate browser requests for the same web page, the corresponding cloud browser servers need to perform independent rendering, and the resource utilization rate is low.
Aiming at the problems that when different clients initiate browser requests to the same webpage, the corresponding server needs to independently render and the resource utilization rate is low in the prior art, the application provides a page rendering method, a page rendering device, electronic equipment and a storage medium in a targeted manner, in the technical scheme provided by the application, a page access request sent by a cloud browser client is received, page address information carried in the page access request and an operation event triggering the page access request are obtained, identification information to be matched is generated according to the address information and the operation event, an identification information set generated aiming at each rendered page is obtained, wherein the identification information is used for indicating page content determined according to the operation information and the address information, and when target identification information matched with the identification information to be matched is determined to exist in the identification information set, and acquiring page rendering data which corresponds to the target identification information and is coded into a video format, and then sending the page rendering data in the video format to the cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Therefore, by means of the identification information set stored by the cloud browser management end, when the cloud browser client requests to obtain a previously rendered page, corresponding page rendering data can be directly obtained, repeated starting of the cloud browser server to perform multiple renderings on the same page content is avoided, resource waste is avoided to a certain extent, and meanwhile, after the cloud browser client sends a page access request, the cloud browser client provides video-format page rendering data, so that the page presentation effect is better.
Preferred embodiments of the present application will be described in further detail below with reference to the accompanying drawings:
referring to fig. 1, which is a scene schematic diagram of a page presentation process in the embodiment of the present application, an interaction process between a cloud browser management end, a cloud browser client, and a cloud browser server under a cloud browser architecture in the embodiment of the present application is schematically described below with reference to fig. 1:
it should be noted that, in the embodiment of the present application, the application is applied to a cloud browser architecture, where a main idea of the cloud browser architecture is to avoid direct interaction between a cloud browser client and a web server, send a data acquisition request to a web service segment by a cloud browser server, and implement rendering of page content, so as to ensure data acquisition security of the cloud browser client.
In the implementation of the application, under the original cloud browser architecture, a cloud browser management end is added, the cloud browser management end can establish indirect connection between a cloud browser server and a cloud browser client, can receive a page access request sent by the cloud browser client, and sends corresponding page rendering data to the cloud browser client, can manage and start the cloud browser server, can synthesize the page rendering data obtained by rendering of the cloud browser servers, and avoids repeatedly generating the page rendering data of the same page.
The cloud browser client, the cloud browser management side, and the cloud browser server side in the embodiment of the present application are respectively described below with reference to fig. 1:
cloud browser client: an operating environment is provided for the object-triggered page access request, and the device bearing the cloud browser client is 1101 and 1102 … 110n shown in fig. 1, and may specifically be an electronic device such as a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a smart television, a vehicle-mounted device, and a Personal Digital Assistant (PDA).
It should be noted that, for the cloud browser client, a sensing layer is deployed in the cloud browser client, and can sense different types of operations performed by related objects at different positions in the browser client, and then determine, according to operation information obtained by sensing, a page area where the operations performed by the related objects in a presented page and the operations are performed by the related objects, where the sensing layer may be deployed in a manner of being superimposed on a display layer that displays page rendering data, and the sensing layer is configured to be transparent and can sense behaviors of the related objects in the page.
Cloud browser management end: the method can receive the page access requests sent by the cloud browser client sides, and sequentially process the page access requests of the cloud browser client sides according to the sequence of the received information sent by the cloud browser client sides. And then controlling the cloud browser server to generate a corresponding page rendering result according to the page content targeted by the page access request, or acquiring the stored page rendering result generated aiming at the page content.
In some possible embodiments of the present application, the cloud browser management end may operate in a single device, such as the apparatus 120 illustrated in fig. 1.
In other possible embodiments of the present application, the cloud browser management end may be deployed on a device including a cloud browser service end according to actual processing needs, and in the specific implementation, a service-end multi-instance management program Agent (Agent) may be added to an entity device including the cloud browser service end.
In addition, in the embodiment of the application, a Socket pool for communication, a process pool for recording processes of each cloud browser server, and URL information for recording page access requests sent by each cloud browser client may be created inside a cloud browser management end, where each URL information may be stored in a message queue to represent a sequence of receiving page access requests sent by different cloud browser clients.
The cloud browser server side: the method comprises the steps of obtaining a page access request sent by a cloud browser client through the cloud browser management end according to control operation of the cloud browser management end, determining page content displayed in an interface of the cloud browser client according to the page access request, further generating a rendering result corresponding to the page content according to webpage data obtained from an external webpage server, and encoding the rendering result stored in a data buffer area into page rendering data in a video format according to actual processing requirements.
It should be noted that, in this embodiment of the present application, as shown in fig. 1, 1301 and 1302 … 130m, a device that operates a cloud browser server is provided, a plurality of cloud browser servers may operate in one cloud browser server, or a plurality of cloud browser servers may operate in different cloud browser servers, respectively, and the present application is not limited specifically.
In the embodiment of the application, the device running with the cloud browser management end and the cloud browser service end may be specifically an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, a cloud server providing basic cloud computing services such as cloud services, a cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a CDN, a big data and artificial intelligence platform, or a virtual machine.
The following describes a process for implementing page rendering at different angles, respectively, with reference to the accompanying drawings:
referring to fig. 2, which is a schematic view of a process of executing page rendering by a cloud browser management end in the embodiment of the present application, the following describes a process of executing page rendering by a cloud browser management end in detail with reference to fig. 2:
step 201: the method comprises the steps that a cloud browser management end receives a page access request sent by a cloud browser client, obtains page address information carried in the page access request and triggers an operation event of the page access request.
Specifically, after receiving a page access request sent by a cloud browser client, a cloud browser management end acquires page address information carried in the page access request and an operation event triggering the page access request, wherein the operation event comprises operation position information, operation type information and input content information, the operation position information represents a position operated in a page of the cloud browser client when the access request is triggered, the operation type information represents a position operated in the page of the cloud browser client when the access request is triggered, the operation type information represents that an operation is executed in the page of the cloud browser client when the access request is triggered, and the input content information represents content input when the cloud browser client calls a keyboard to finish input.
In step 201, the specific corresponding application scenario may be that the relevant object triggers a click operation after the cloud browser client inputs the page address information, or that the relevant object triggers a slide-down operation, a slide-up operation, or a click operation based on the currently displayed page content on the cloud browser client.
In consideration of the fact that the obtained and rendered page content is specifically presented in the form of a video, an operation event of the cloud browser server when the page access request is triggered needs to be obtained, and the page content requested to be presented by the cloud browser client is further positioned according to operation position information, operation type information and input content information included in the operation event.
It should be noted that, when a connection is initially established between a cloud browser management end and a cloud browser client, the cloud browser management end receives a page access request triggered by the cloud browser client based on page address information, and at this time, the page access request is triggered by a relevant person of the cloud browser client operating in an initial browser interface.
In addition, under the condition that the cloud browser management end and the cloud browser client are not initially connected, it is described that a page access request triggered by the cloud browser client is performed based on page content played by a video, and at this time, starting from three aspects of an operation position, an operation type, and input content information in an operation event, content to be presented subsequently needs to be determined in an auxiliary manner.
Step 202: and the cloud browser management terminal generates identification information to be matched according to the page address information and the operation event, and acquires an identification information set generated aiming at each rendered page.
When the cloud browser management end generates the identifier to be matched according to the address information and the operation event, according to coding results which are respectively configured aiming at each operation area and each operation type in advance, the cloud browser management end determines a position coding result corresponding to the operation position, determines an operation type coding result corresponding to the operation type information, and integrates the operation type coding result, the operation position coding result, the input content information and the address information according to a preset sequence to generate the identifier information to be matched.
Specifically, the cloud browser management end integrates multiple aspects of information of the page content for positioning access in order to uniquely limit the page address information and the page content corresponding to the operation event, wherein the page address information is used for indicating a specific webpage, and the operation event is used for positioning the specific page content in the webpage.
For example, the cloud browser management end may establish a corresponding coordinate system according to an actual processing requirement and a size of a corresponding page, and use coordinate information of a position point in the corresponding coordinate system as a corresponding position encoding result, and may encode each operation type that may exist, assuming that an operation capable of triggering a page access request includes an input operation, a downslide operation, a upslide operation, and a click operation, then may encode each possible operation, where, for example, the downslide operation is encoded as 00, the upslide operation is encoded as 01, the click operation is encoded as 02, the input operation is encoded as 03, and as for the input content, the content may be selectively kept unchanged.
It should be noted that, in the embodiment of the application, when determining the position coding result based on the operation event, the cloud browser management end determines that the corresponding determination manners are different in consideration of different forms of the operation position information, and when the operation position information is characterized as an operation point in the page image, the corresponding coding result may be determined directly according to the position information of the operation point in the page image.
Furthermore, when the identification information to be matched is generated, the sorting results of various types of information can be set according to the actual processing requirements, and then the corresponding identification information to be matched is formed after the sorting results are arranged.
Therefore, by configuring the identification information to be matched, the matching between the page contents can be embodied as the matching between the identification information, and the process of determining whether the rendered result exists is greatly simplified.
The cloud browser management terminal generates identification information to be matched and simultaneously acquires an identification information set generated aiming at each rendered page, wherein the identification information is used for indicating page content determined according to an operation event.
Specifically, in order to identify rendered page contents, the cloud browser management end stores an identification information set composed of identification information corresponding to each rendered page content, where the identification information set is used to identify page contents determined according to an operation event after determining that the corresponding page contents are rendered.
Therefore, by means of the stored identification information set, a processing basis can be provided for sharing page rendering data among different cloud browser clients, page content which is rendered once can be determined by means of the identification information set, and a processing basis is provided for avoiding repeated rendering of the same page content.
Step 203: and judging whether target identification information matched with the identification information to be matched exists in the identification information set, if so, executing step 204, otherwise, executing step 206.
After the cloud browser management terminal acquires the identification information to be matched, bit number matching and character-by-character matching are sequentially carried out on the identification information to be matched and each identification information in the acquired identification information set, and one identification information which has the same bit number and the same character with the identification information to be matched in each identification information is used as the target identification information of successful matching, otherwise, the matching is considered as unsuccessful. And determining the matching condition of the identification information to be matched and the identification information set according to the mode.
And when the cloud browser management terminal determines that target identification information matched with the identification information to be matched exists in the identification information set, executing the operation indicated in the step 204, otherwise, executing the operation indicated in the step 206.
Step 204: and the cloud browser management terminal acquires page rendering data which corresponds to the target identification information and is coded into a video format.
And when determining that target identification information matched with the identification information to be matched exists in the identification information set, the cloud browser management terminal acquires page rendering data which corresponds to the target identification information and is coded into a video format.
Specifically, since the cloud browser service side generates corresponding page rendering data encoded in the video format for the page content corresponding to the target identification information in advance, a corresponding relationship exists between the target identification information and the page rendering data in the video format, and therefore the corresponding page rendering data encoded in the video format can be determined according to the target identification information.
Optionally, after the cloud browser management end acquires the page rendering data encoded in the video format and corresponding to the target identification information, the cloud browser management end may verify the page rendering information in order to ensure that the acquired page rendering data in the video format is valid.
Specifically, when the page rendering information is verified, the cloud browser management terminal obtains historical page content corresponding to the rendering target identification information, the corresponding historical server generates a first content thumbnail based on the webpage data corresponding to the historical page content, then starts operating environment information of a cloud browser client, and the matched cloud browser server receives a request of the cloud browser server for generating a second content thumbnail based on the webpage data corresponding to the address information, and then determines that content components included in the first content thumbnail are matched with content components included in the second content thumbnail.
That is to say, the cloud browser management terminal distinguishes page content change conditions in different stages by comparing thumbnails generated by corresponding target identification information in different stages, and determines that page content is not changed when the number and the positions of content and components in the thumbnails are determined to be consistent, so that page rendering data in a video format, which is previously obtained by rendering based on historical page content, can still be considered to be applicable to the current page content corresponding to the target identification information.
It should be noted that, for the operating environment information of the cloud browser client, the operating environment information includes operating environment information in a software level and operating environment information in a hardware level, where the content included in the operating environment information may be: the method comprises the steps that when the cloud browser management terminal determines a corresponding cloud browser server terminal providing service based on a page access request initiated by a cloud browser client terminal, the selected running environment information of the cloud browser server terminal needs to be matched with the running environment of the cloud browser client terminal, wherein the mode of generating the thumbnail based on the webpage data is a conventional technology in the field, for example, a webpage thumbnail generating tool is adopted to generate a corresponding webpage thumbnail based on configured address information, and the application will not be described in detail herein.
Therefore, when the page rendering result matched with the page content requested to be presented by the cloud browser client currently exists in the previously rendered content, the usability of the previously rendered page rendering result can be determined by comparing the previously generated first content thumbnail with the difference between the second content thumbnail generated by calling the webpage data acquired by the cloud browser server currently, and the page rendering result is prevented from being repeatedly generated for the same page content, and meanwhile, the reliability of the page rendering result is improved.
In addition, particularly, when the cloud browser management terminal determines that the content components in the first content thumbnail are not matched with the content components in the second content thumbnail, the cloud browser server is started, and after the cloud browser server determines the page content in the target page according to the address information and the operation event, the cloud browser server regenerates the page rendering data in the video format corresponding to the page content, and then updates the page rendering data in the video format stored corresponding to the target identification information based on the regenerated page rendering data in the video format.
Specifically, when the cloud browser management terminal determines that the content components in the first content thumbnail are not matched with the content components in the second content thumbnail, the cloud browser server terminal matched with the operating environment of the cloud browser client terminal is started, and after the cloud browser server terminal determines that the address information and the operation event correspond to the page content in the target page, the cloud browser server terminal receives page rendering data in a video format generated by the cloud browser server terminal corresponding to the page content code based on the obtained web page data, and updates the content stored corresponding to the target identification information by using the newly generated page rendering data in the video format.
It should be noted that after the cloud browser management end starts the cloud browser server, it is equivalent to starting a server process, and then the server process can be put into a process pool adopting reference counting, so that the relevant resources of the cloud browser server can be timely recovered when the server process is destroyed.
Therefore, when the difference exists between the previously generated first content thumbnail and the currently-called webpage data acquired by the cloud browser server, the previously generated webpage rendering data in the video format cannot be used, which is equivalent to triggering and updating the webpage rendering data in the video format stored aiming at the target identification information, and further ensures the validity of the webpage rendering data provided for the cloud browser client.
Step 205: and the cloud browser management terminal sends the page rendering data in the video format to a cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Specifically, after determining the page rendering data in the video format corresponding to the matched target identification information, the cloud browser management terminal sends the page rendering data in the video format to the cloud browser client, so that the cloud browser client can present corresponding page content in a video form after decoding the page rendering data in the video format.
It should be noted that, in this embodiment of the application, when a cloud browser client does not trigger a new page access request all the time, a process in which the cloud browser management terminal sends page rendering data in the video format to the cloud browser client may be understood as a continuous process, so that a video on which the page content is displayed is cyclically played at the cloud browser client.
In addition, according to the technical scheme provided by the application, when different cloud browser clients send page access requests based on the same address information, a browser server does not need to be allocated to a browser client which accesses later, and page rendering data which is processed into a video format before can be directly acquired.
For example, assuming that when any one cloud browser client a initiates a page access request for accessing a certain URL, page rendering data is generated for the URL, when a certain cloud browser client B initiates a page access request for accessing a certain URL 'later, if it is determined that the corresponding identification information is the same according to the URL and the corresponding operation event, and according to the URL' and the corresponding operation event, it may be determined that the same page content in the same website is accessed by the cloud browser client B and the cloud browser client a, and a new cloud browser server is not started, but corresponding page rendering data is acquired.
Therefore, by means of the identification information set stored by the cloud browser management terminal, when the cloud browser client requests to obtain previously rendered page content, corresponding page rendering data can be directly obtained, repeated starting of the cloud browser server to perform multiple renderings on the same page content is avoided, resource waste is avoided to a certain extent, and meanwhile, after the cloud browser client sends a page access request, the cloud browser client provides video-format page rendering data, so that the page presentation effect is better.
Step 206: and the cloud browser management end starts a cloud browser server end matched with the running environment information of the cloud browser client.
Specifically, the cloud browser management terminal determines that target identification information matched with the determined identification information to be matched does not exist in the identification information set, and then starts a cloud browser server terminal matched with the operating environment of the cloud browser client terminal.
It should be noted that the cloud browser management end grasps the operating environment information of each cloud browser server end and manages the start-stop condition of each cloud browser server end, so that when the cloud browser server end is required to participate in data processing, the cloud browser server end with the matched operating environment is started to realize the processing.
Step 207: and the cloud browser management terminal receives page rendering data in a video format, which is generated by the cloud browser server terminal corresponding to the page content in the target page determined by the target page address information and the operation event.
It should be noted that, for the cloud browser service end, the cloud browser service end analyzes the constraint relationship between the target page address information and the operation event, and determines the page content which is pertinently presented at the cloud browser client.
Step 208: the cloud browser management end sends the page rendering data in the video format to the cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Specifically, after the cloud browser management terminal obtains page rendering data in a video format generated by corresponding to the identification information to be matched, the page rendering data in the video format is sent to the corresponding cloud browser client, so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Step 209: and the cloud browser management end newly adds identification information to be matched in the identification information set, and stores the page rendering data in the video format corresponding to the identification information to be matched.
Specifically, in the scene of step 206 and step 209, the identification information set does not have identification information to be matched, so the cloud browser management end may add new identification information to be matched in the identification information set, and store the page rendering data in the video format obtained correspondingly, corresponding to the identification information to be matched.
Therefore, the identification information set can be effectively updated, so that page rendering data in a corresponding stored video format can be directly used when page access requests sent by other subsequent cloud browser clients correspond to the same identification information to be matched, the utilization rate of resources is increased, and a plurality of cloud browser clients can share the page rendering data generated by one cloud browser server.
Referring to fig. 3, which is a schematic view of a process of executing page rendering by a cloud browser client in the embodiment of the present application, the process of executing page rendering by the cloud browser client is specifically described below with reference to fig. 3:
step 301: the cloud browser client side responds to an operation event triggered by a target object on a perception layer of a browser page, and determines a target page targeted by the operation event.
Specifically, a browser page is presented on a cloud browser client, and a transparent sensing layer is superimposed on the browser page, so that the sensing layer does not affect the display of content while sensing an operation event of a related object in the browser page, wherein the operation event includes operation position information, operation type information, and input content information.
The content that the cloud browser client can perceive comes from a touch screen operation of a related object on one hand, and comes from an operation realized by an external device such as a mouse and a keyboard on the other hand. For the operation type that can be perceived, an input operation is possible; clicking operation; performing downslide operation; any one of the up-sliding operations.
Corresponding to the content of step 301, in a possible embodiment of the present application, if an initial browser page is present on a cloud browser client, it indicates that a target object does not trigger a page access operation for any address information, at this time, the cloud browser client may display content input by the target object in the initial browser interface, and generate a corresponding operation event when it is determined that the target object triggers an operation of a specified operation type.
For example, the cloud browser client supports a target object to input target webpage address information in the initial browser page, and after it is determined that the target object triggers a click operation, it may be determined that the target object triggers an operation of a specified operation type, and then the target webpage address information input by the target object is taken as input content information of an operation event, the click operation is taken as operation type information, and a position where the sensing layer triggers the click operation is taken as operation position information, and an operation event is generated, where the corresponding page content of the operation event is the first page content of the target webpage.
Corresponding to the content in step 301, in other possible embodiments of the present application, when the initial browser page on the cloud browser client is covered with the played page content in the video form, it indicates that at this time, the cloud browser client has already obtained the page content in the video form from the cloud browser management end, and at this time, the cloud browser client cannot directly operate on the video, so that the sensing layer may sense the operation of the target object and generate a corresponding operation event.
It should be noted that, for the input operation, in order to respond to the input content in time, each time a word is typed into the keyboard by the relevant object, a page access request initiated based on the current operation event may be triggered, so that the operation event including different text contents may be continuously generated in the text input process.
For example, assuming that the target object triggers an input operation in the page content of the video playback, at the instant of clicking the input box, the { operation type: clicking; an operation position: (X, Y); inputting text content: empty, and obtaining the page content in the form of video positioned to the input box; similarly, when the target object continues to input characters, each time a character is input, a corresponding operation event is generated based on all the characters included in the current input box.
For example, if the target object triggers a slide-down operation in the page content of the video playing, the slide-down operation is used as the operation type information in the operation event, the input content information is null, and the operation position information is the position where the slide-down operation is initiated. And because the connection with the cloud browser management end is established at this time, the page content corresponding to the operation event is determined to be the page content displayed after the currently displayed webpage is glided for one time based on the operation event triggered at this time.
It should be noted that, the cloud browser client starts triggering a page access request for a target page from a target object, and records an operation position accumulated by the target object in a sensing layer.
For example, if the page access request is triggered for the xth time and a corresponding one-time slide-up operation is performed, recording that the integral slide-down time is 1; assuming that the X +1 th operation triggers three upshifts, the total number of downshifts recorded is 1+3 — 4.
In this way, by means of a full range of recording operations, it is possible to achieve an accurate positioning of the page content desired to be presented in the web page, depending on the operating events.
Step 302: the cloud browser client sends a page access request to the cloud browser management terminal based on the page address information of the target page and the operation event.
After determining the triggered operation event and the page address information of the target page, the cloud browser client sends a page access request carrying the operation event and the page address information to a cloud browser management terminal.
In possible embodiments of the present application, the identification information to be matched may be generated by the cloud browser client.
For example, the cloud browser client a collects the operating environment information of the cloud browser client a, generates a configuration information data structure based on the CPU type, the memory capacity, the operating system, the unique hardware information, the current time, the operation type information, the operation location information, and the page address information of the target page, generates a 5096-byte random number by using the complete data of the configuration information data structure as the seed of a random number generator, performs an operation using the random number obtained by the standard algorithm of the chinese commercial cryptographic hash algorithm (SM3), generates a 256-bit digest, uses the digest as identification information to be matched corresponding to the page access request sent by the cloud browser client, and further connects to the cloud browser management end, and consumes a Socket in a Socket pool in which the cloud browser management end uses reference counting.
Step 303: and the cloud browser client receives the page rendering data in the video format sent by the cloud browser management end, and plays the page content in the target page corresponding to the decoded page rendering data in the video format on the browser page.
Specifically, after receiving the page rendering data in the video format sent by the cloud browser management end, the cloud browser client decodes the page rendering data in the video format according to the corresponding decoding format, and plays page content in a target page corresponding to the decoded page rendering data in the video format on a browser page.
Therefore, from the perspective of the cloud browser client, the operation events of the related objects can be sensed through the superposed sensing layers, the requested page content in the target page is played in a video mode, and the stability of the playing process is improved.
Referring to fig. 4, which is a schematic view of a process of executing page rendering by a cloud browser server in the embodiment of the present application, the process of executing page rendering by the cloud browser server is specifically described below with reference to fig. 4:
step 401: the cloud browser server receives a starting instruction sent by the cloud browser management terminal, obtains page address information and an operation event carried in the starting instruction, and obtains corresponding webpage data according to the page address information.
In the implementation of the application, the cloud browser server is managed by the cloud browser management terminal, and can receive the starting instruction sent by the cloud browser management terminal, acquire the target address information and the operation event carried in the starting instruction, and further acquire the corresponding webpage data.
Specifically, after receiving the target address information and the operation event, the cloud browser server directly obtains the webpage data corresponding to the target address information from the corresponding external server.
After the cloud browser server obtains the network data, a page content thumbnail corresponding to the network data can be generated according to actual processing requirements.
Therefore, processing basis is provided for page rendering data which is stored for subsequent verification and encoded into a video format.
Step 402: the cloud browser server locates displayed page content in a page corresponding to the page address information according to the operation event, stores the rendered page content in a data buffer area based on the webpage data, and codes the data in the data buffer area into a video format according to a specified coding format.
After obtaining an operation event and page address information, the cloud browser server locates and displays page content in a page corresponding to the page address information according to operation position information, operation type information and input content information included in the operation event, where the operation type may be any one of the following: inputting operation; clicking operation; performing downslide operation; and (4) performing an upward sliding operation.
Specifically, in this embodiment of the application, the cloud browser server determines an entire page according to the page address information, determines what type of operation the page access request is triggered according to the operation type in the operation event, determines a specific position where the user triggers the operation in the presented page content according to the operation position in the operation event, and locates the page content that the relevant object desires to present.
For example, assuming that the operation type information is a slide-up operation in the received operation event, the cloud browser server may, when determining a slide distance corresponding to one slide-up operation, locate corresponding page content based on the "one slide-up operation", slide the current page once in a corresponding area, then implement rendering based on the page content currently presented in the page and corresponding network data, store the rendered page content in a data buffer, and encode the data in the data buffer into a video format according to a specified encoding format.
For example, assume that in the received operation event, the operation type information is: and (4) performing input operation, namely positioning a corresponding input box according to the operation position information in the operation event, rendering page content containing the text according to the text included in the input content information, and encoding the page content into a video format.
For another example, assume that in the received operation event, the operation type is: and clicking, positioning an occurrence area of clicking operation according to the operation position information in the operation event, further acquiring information in the occurrence area, and assuming that a link exists in the area, the cloud browser server sends a webpage data request to a server corresponding to the link, and performs targeted rendering.
Therefore, the rendering operation processed by the cloud browser server is performed under the condition that the related rendering result is not stored, so that the calculation amount of the cloud browser server can be greatly saved, the network bandwidth requested by the cloud browser server to an external network is saved, and the utilization rate of resources is improved.
Fig. 5 is a schematic diagram illustrating three-party interaction of a cloud browser server, a cloud browser client, and a cloud browser management terminal according to an embodiment of the present disclosure.
It should be noted that, in order to embody the three-party interaction, a more complex scene is taken as an example in fig. 5 to describe the three-party interaction process, and the following describes a specific interaction process with reference to fig. 5:
step 501: and the cloud browser client sends the page access request carrying the page address information of the target page and the operation event to the cloud browser management terminal.
Step 502: and the cloud browser management terminal generates identification information to be matched based on the page address information and the operation event.
Step 503: and the cloud browser management terminal determines that target identification information matched with the identification information to be matched does not exist in the stored identification information set.
Step 504: and the cloud browser management terminal sends the page address information of the target page and the page access request of the operation event to the cloud browser server terminal.
Step 505: the cloud browser server acquires the webpage data of the target page from a page server of the target page.
Step 506: the method comprises the steps that a cloud browser server determines page content located in a target page by an operation event, the page content is rendered based on webpage data, the rendered page content is stored in a data buffer area, data in the data buffer area are coded into a video format, and a page rendering result in the video format is obtained.
Step 507: and the cloud browser server sends the page rendering result in the video format to the cloud browser management terminal.
Step 508: and the cloud browser management terminal newly adds identification information to be matched in the identification information set.
Step 509: and the cloud browser management terminal sends the page rendering result in the video format to the cloud browser client.
Step 510: and the cloud browser client analyzes the page rendering result and plays the corresponding video content on the browser page.
Based on the same inventive concept, referring to fig. 6, which is a schematic diagram of a logical structure of a page rendering apparatus in the embodiment of the present application, the page rendering apparatus 600 includes a receiving unit 601, a generating unit 602, a determining unit 603, and a sending unit 604, wherein,
the receiving unit 601 is configured to receive a page access request sent by a cloud browser client, acquire page address information of a target page carried in the page access request, and trigger an operation event of the page access request;
a generating unit 602, configured to generate identifier information to be matched according to the page address information and the operation event, and acquire an identifier information set generated for each rendered page, where the identifier information is used to indicate page content determined according to the operation event;
a determining unit 603, configured to obtain, when it is determined that target identification information matching the identification information to be matched exists in the identification information set, page rendering data corresponding to the target identification information and encoded into a video format;
a sending unit 604, configured to send the page rendering data in the video format to the cloud browser client, so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Optionally, the operation event includes operation position information, operation type information, and input content information, and when the identifier information to be matched is generated according to the address information and the operation event, the generating unit 602 is configured to:
determining a first position coding result corresponding to the operation position and determining an operation type coding result corresponding to the operation type information according to coding results which are respectively configured aiming at each operation area and each operation type in advance;
and integrating the operation type coding result, the operation position coding result, the input content information and the address information according to a preset sequence to generate identification information to be matched.
Optionally, the page access request further includes running environment information, and the determining unit 603 is further configured to:
when determining that target identification information matched with the identification information to be matched does not exist in the identification information set, starting a cloud browser server matched with the operating environment information;
receiving page rendering data in a video format, which is generated by the cloud browser server corresponding to the page content in the target page determined by the page address information and the operation event;
sending the page rendering data in the video format to the cloud browser client so that the cloud browser client displays the target page corresponding to the operation information in a video form;
and newly adding the identification information to be matched in the identification information set, and storing the page rendering data in the video format corresponding to the identification information to be matched.
Optionally, after obtaining the page rendering data in the video format encoded corresponding to the target identification information and before sending the page rendering data in the video format to the cloud browser client, the determining unit 603 is further configured to:
when historical page content corresponding to the target identification information is rendered, a corresponding historical server generates a first content thumbnail based on webpage data corresponding to the historical page content;
starting a cloud browser server matched with the operating environment information, and receiving a second content thumbnail generated by the cloud browser server requesting webpage data corresponding to the address information;
determining that content components included in the first content thumbnail and the second content thumbnail match.
Optionally, the determining unit 603 is further configured to:
when the content assemblies in the first content thumbnail and the second content thumbnail are determined not to be matched, starting the cloud browser server, and receiving page rendering data in a video format, which is determined by the address information and the operation event and corresponds to the page content in the target page by the cloud browser server, and is regenerated;
and updating the page rendering data in the video format, which is stored corresponding to the target identification information, based on the regenerated page rendering data in the video format.
Based on the same inventive concept, referring to fig. 7, which is a schematic diagram of a logical structure of a page rendering apparatus in the embodiment of the present application, a page rendering apparatus 700 includes a response unit 701, a sending unit 702, and a receiving unit 703, wherein,
a response unit 701, configured to determine, in response to an operation event triggered by a target object on a sensing layer of a browser page, a target page to which the operation event is directed, where the operation event includes operation position information, operation type information, and input content information;
a sending unit 702, configured to send a page access request to a cloud browser management end based on the page address information of the target page and the operation event;
the receiving unit 703 is configured to receive the page rendering data in the video format sent by the cloud browser management end, and play, on the browser page, the page content in the target page corresponding to the decoded page rendering data in the video format.
Optionally, the operation type information includes any one of:
inputting operation;
clicking operation;
performing downslide operation;
and (4) performing an upward sliding operation.
Based on the same inventive concept, referring to fig. 8, which is a schematic diagram of a logical structure of a page rendering apparatus in an embodiment of the present application, the page rendering apparatus 800 includes a receiving unit 801 and a rendering unit 802, wherein,
the receiving unit 801 is configured to receive a start instruction sent by a cloud browser management end, acquire page address information and an operation event carried in the start instruction, and acquire corresponding web page data according to the page address information, where the operation event includes operation position information, operation type information, and input content information;
a rendering unit 802, configured to position, according to the operation event, the displayed page content in the page corresponding to the page address information, store the rendered page content in a data buffer based on the web page data, and encode the data in the data buffer into a video format according to a specified encoding format.
Optionally, after acquiring the corresponding webpage data according to the page address information, the rendering unit 802 is further configured to:
and generating a corresponding page content thumbnail according to the webpage data.
Based on the same inventive concept as the method embodiment, an electronic device is further provided in the embodiment of the present application, referring to fig. 9, which is a schematic diagram of a hardware component structure of an electronic device to which the embodiment of the present application is applied, and the electronic device 900 may at least include a processor 901 and a memory 902. The memory 902 stores therein program code, which, when executed by the processor 901, causes the processor 901 to perform the steps of any one of the above-mentioned page rendering methods.
In some possible implementations, a computing device according to the present application may include at least one processor, and at least one memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of generating similar sample corpora according to various exemplary embodiments of the present application described above in the present specification. For example, the processor may perform the steps as shown in fig. 2, 3, 4.
Based on the same inventive concept, the embodiment based on page rendering in the present application provides a computer-readable storage medium, and when instructions in the storage medium are executed by an electronic device, the electronic device is enabled to execute the page rendering method.
In summary, the present application provides a page presentation method, an apparatus, an electronic device, and a storage medium, which are directed to solve the problems in the prior art that when different clients initiate browser requests for the same web page, the corresponding servers need to perform independent rendering, and the resource utilization rate is low, and the present application provides a page presentation method, an apparatus, an electronic device, and a storage medium, in the technical solution provided by the present application, a page access request sent by a cloud browser client is received, page address information carried in the page access request and an operation event triggering the page access request are obtained, then identifier information to be matched is generated according to the address information and the operation event, and an identifier information set generated for each rendered page is obtained, where the identifier information is used to indicate the content of the page determined according to the operation information and the address information, and then when determining that target identification information matched with the identification information to be matched exists in the identification information set, acquiring page rendering data which is coded into a video format and corresponds to the target identification information, and sending the page rendering data in the video format to the cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
Therefore, by means of the identification information set stored by the cloud browser management end, when the cloud browser client requests to obtain a previously rendered page, corresponding page rendering data can be directly obtained, repeated starting of the cloud browser server to perform multiple renderings on the same page content is avoided, resource waste is avoided to a certain extent, and meanwhile, after the cloud browser client sends a page access request, the cloud browser client provides video-format page rendering data, so that the page presentation effect is better.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.
Claims (12)
1. A page presentation method is applied to a cloud browser management end in a cloud browser architecture, and comprises the following steps:
receiving a page access request sent by a cloud browser client, acquiring page address information of a target page carried in the page access request and triggering an operation event of the page access request;
generating identification information to be matched according to the page address information and the operation event, and acquiring an identification information set generated aiming at each rendered page, wherein the identification information is used for indicating the page content determined according to the operation event;
when determining that target identification information matched with the identification information to be matched exists in the identification information set, acquiring page rendering data which corresponds to the target identification information and is coded into a video format;
and sending the page rendering data in the video format to the cloud browser client so that the cloud browser client presents page content corresponding to the identification information to be matched in a video form.
2. The method of claim 1, wherein the operation event includes operation position information, operation type information, and input content information, and the generating identification information to be matched according to the page address information and the operation event comprises:
determining a position coding result corresponding to the operation position and determining an operation type coding result corresponding to the operation type information according to coding results which are respectively configured aiming at each operation area and each operation type in advance;
and integrating the operation type coding result, the operation position coding result, the input content information and the address information according to a preset sequence to generate identification information to be matched.
3. The method of claim 1, wherein the page access request further includes runtime environment information, the method further comprising:
when determining that target identification information matched with the identification information to be matched does not exist in the identification information set, starting a cloud browser server matched with the operating environment information;
receiving page rendering data in a video format, which is generated by the cloud browser server corresponding to the page content in the target page determined by the page address information and the operation event;
sending the page rendering data in the video format to the cloud browser client so that the cloud browser client displays the target page corresponding to the operation information in a video form;
and newly adding the identification information to be matched in the identification information set, and storing the page rendering data in the video format corresponding to the identification information to be matched.
4. The method of claim 1, wherein after obtaining the page rendering data encoded in the video format corresponding to the target identification information and before sending the page rendering data in the video format to the cloud browser client, further comprising:
when historical page content corresponding to the target identification information is rendered, a corresponding historical server generates a first content thumbnail based on webpage data corresponding to the historical page content;
starting a cloud browser server matched with the operating environment information, and receiving a second content thumbnail generated by the cloud browser server requesting webpage data corresponding to the address information;
determining that content components included in the first content thumbnail and the second content thumbnail match.
5. The method of claim 4, further comprising:
when the content assemblies in the first content thumbnail and the second content thumbnail are determined not to be matched, starting the cloud browser server, and receiving page rendering data in a video format, which is determined by the address information and the operation event and corresponds to the page content in the target page by the cloud browser server, and is regenerated;
and updating the page rendering data in the video format, which is stored corresponding to the target identification information, based on the regenerated page rendering data in the video format.
6. A page presentation method is applied to a cloud browser client under a cloud browser architecture, and comprises the following steps:
responding to an operation event triggered by a target object on a perception layer of a browser page, and determining a target page targeted by the operation event, wherein the operation event comprises operation position information, operation type information and input content information;
based on the page address information of the target page and the operation event, sending a page access request to a cloud browser management terminal;
and receiving page rendering data in a video format sent by the cloud browser management terminal, and playing page content in a target page corresponding to the decoded page rendering data in the video format on the browser page.
7. A page presentation method is applied to a cloud browser server under a cloud browser architecture, and comprises the following steps:
receiving a starting instruction sent by a cloud browser management end, acquiring page address information and an operation event carried in the starting instruction, and acquiring corresponding webpage data according to the page address information, wherein the operation event comprises operation position information, operation type information and input content information;
and positioning the displayed page content in the page corresponding to the page address information according to the operation event, storing the rendered page content in a data buffer area based on the webpage data, and encoding the data in the data buffer area into a video format according to a specified encoding format.
8. A page presenting device is applied to a cloud browser management end in a cloud browser architecture, and comprises the following components:
the cloud browser comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a page access request sent by a cloud browser client, acquiring page address information of a target page carried in the page access request and triggering an operation event of the page access request;
the generating unit is used for generating identification information to be matched according to the page address information and the operation event, and acquiring an identification information set generated aiming at each rendered page, wherein the identification information is used for indicating the page content determined according to the operation event;
the determining unit is used for acquiring page rendering data which corresponds to the target identification information and is coded into a video format when the target identification information matched with the identification information to be matched exists in the identification information set;
and the sending unit is used for sending the page rendering data in the video format to the cloud browser client so as to enable the cloud browser client to present page content corresponding to the identification information to be matched in a video form.
9. The page rendering device is applied to a cloud browser client under a cloud browser architecture, and comprises the following components:
the response unit is used for responding to an operation event triggered by a target object on a perception layer of a browser page, and determining a target page targeted by the operation event, wherein the operation event comprises operation position information, operation type information and input content information;
the sending unit is used for sending a page access request to a cloud browser management terminal based on the page address information of the target page and the operation event;
and the receiving unit is used for receiving the page rendering data in the video format sent by the cloud browser management end and playing the page content in the target page corresponding to the decoded page rendering data in the video format on the browser page.
10. A page rendering device is applied to a cloud browser server under a cloud browser architecture, and comprises:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a starting instruction sent by a cloud browser management end, acquiring page address information and an operation event carried in the starting instruction, and acquiring corresponding webpage data according to the page address information, wherein the operation event comprises operation position information, operation type information and input content information;
and the rendering unit is used for positioning the displayed page content in the page corresponding to the page address information according to the operation event, storing the rendered page content in a data buffer area based on the webpage data, and encoding the data in the data buffer area into a video format according to a specified encoding format.
11. A computer-readable electronic device, comprising:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
12. A storage medium, wherein instructions in the storage medium, when executed by an electronic device, enable the electronic device to perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111662630.1A CN114329298B (en) | 2021-12-31 | 2021-12-31 | Page presentation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111662630.1A CN114329298B (en) | 2021-12-31 | 2021-12-31 | Page presentation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114329298A true CN114329298A (en) | 2022-04-12 |
CN114329298B CN114329298B (en) | 2022-11-18 |
Family
ID=81021913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111662630.1A Active CN114329298B (en) | 2021-12-31 | 2021-12-31 | Page presentation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114329298B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827113A (en) * | 2022-04-18 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Webpage access method and device |
CN115062247A (en) * | 2022-05-30 | 2022-09-16 | 北京优酷科技有限公司 | Local operation and processing method of webpage, electronic equipment and storage medium |
CN115665480A (en) * | 2022-10-25 | 2023-01-31 | 广州至真信息科技有限公司 | Data rendering method and device, computer equipment and storage medium |
CN116033185A (en) * | 2022-12-30 | 2023-04-28 | 腾讯音乐娱乐科技(深圳)有限公司 | Video acquisition method of web page, storage medium and electronic equipment |
WO2024027288A1 (en) * | 2022-08-03 | 2024-02-08 | 腾讯科技(深圳)有限公司 | Resource rendering method and apparatus, and device, computer-readable storage medium and computer program product |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268319A (en) * | 2013-04-17 | 2013-08-28 | 北京航空航天大学 | Cloud browser based on webpages |
CN107025583A (en) * | 2016-01-29 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of rendering intent of page control, equipment and terminal device |
US20170339210A1 (en) * | 2016-05-19 | 2017-11-23 | Panasonic Avionics Corporation | Methods and systems for secured remote browsing from a transportation vehicle |
CN109144567A (en) * | 2018-08-03 | 2019-01-04 | 苏州麦迪斯顿医疗科技股份有限公司 | Cross-platform webpage rendering method, device, server and storage medium |
US20200110781A1 (en) * | 2018-10-09 | 2020-04-09 | Voluware, Inc. | Interactive website automation for health care web portals with random content |
CN111708600A (en) * | 2020-08-20 | 2020-09-25 | 腾讯科技(深圳)有限公司 | Page display method, device, equipment and computer readable storage medium |
CN112052097A (en) * | 2020-10-15 | 2020-12-08 | 腾讯科技(深圳)有限公司 | Rendering resource processing method, device and equipment for virtual scene and storage medium |
CN112383539A (en) * | 2020-11-11 | 2021-02-19 | 视若飞信息科技(上海)有限公司 | Method and device for calling cloud browser based on remote process and electronic equipment |
CN113703968A (en) * | 2021-08-12 | 2021-11-26 | 视若飞信息科技(上海)有限公司 | Cloud browser system and implementation method thereof |
CN113825016A (en) * | 2021-09-18 | 2021-12-21 | 北京百度网讯科技有限公司 | Video rendering method, device, equipment, storage medium and computer program product |
-
2021
- 2021-12-31 CN CN202111662630.1A patent/CN114329298B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268319A (en) * | 2013-04-17 | 2013-08-28 | 北京航空航天大学 | Cloud browser based on webpages |
CN107025583A (en) * | 2016-01-29 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of rendering intent of page control, equipment and terminal device |
US20170339210A1 (en) * | 2016-05-19 | 2017-11-23 | Panasonic Avionics Corporation | Methods and systems for secured remote browsing from a transportation vehicle |
CN109144567A (en) * | 2018-08-03 | 2019-01-04 | 苏州麦迪斯顿医疗科技股份有限公司 | Cross-platform webpage rendering method, device, server and storage medium |
US20200110781A1 (en) * | 2018-10-09 | 2020-04-09 | Voluware, Inc. | Interactive website automation for health care web portals with random content |
CN111708600A (en) * | 2020-08-20 | 2020-09-25 | 腾讯科技(深圳)有限公司 | Page display method, device, equipment and computer readable storage medium |
CN112052097A (en) * | 2020-10-15 | 2020-12-08 | 腾讯科技(深圳)有限公司 | Rendering resource processing method, device and equipment for virtual scene and storage medium |
CN112383539A (en) * | 2020-11-11 | 2021-02-19 | 视若飞信息科技(上海)有限公司 | Method and device for calling cloud browser based on remote process and electronic equipment |
CN113703968A (en) * | 2021-08-12 | 2021-11-26 | 视若飞信息科技(上海)有限公司 | Cloud browser system and implementation method thereof |
CN113825016A (en) * | 2021-09-18 | 2021-12-21 | 北京百度网讯科技有限公司 | Video rendering method, device, equipment, storage medium and computer program product |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827113A (en) * | 2022-04-18 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Webpage access method and device |
CN114827113B (en) * | 2022-04-18 | 2024-04-16 | 阿里巴巴(中国)有限公司 | Webpage access method and device |
CN115062247A (en) * | 2022-05-30 | 2022-09-16 | 北京优酷科技有限公司 | Local operation and processing method of webpage, electronic equipment and storage medium |
WO2024027288A1 (en) * | 2022-08-03 | 2024-02-08 | 腾讯科技(深圳)有限公司 | Resource rendering method and apparatus, and device, computer-readable storage medium and computer program product |
CN115665480A (en) * | 2022-10-25 | 2023-01-31 | 广州至真信息科技有限公司 | Data rendering method and device, computer equipment and storage medium |
CN115665480B (en) * | 2022-10-25 | 2024-06-07 | 广州至真信息科技有限公司 | Data rendering method and device, computer equipment and storage medium |
CN116033185A (en) * | 2022-12-30 | 2023-04-28 | 腾讯音乐娱乐科技(深圳)有限公司 | Video acquisition method of web page, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114329298B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114329298B (en) | Page presentation method and device, electronic equipment and storage medium | |
EP3623942B1 (en) | Message processing method and apparatus, storage medium, and computer device | |
CN110166465B (en) | Access request processing method, device, server and storage medium | |
JP2022531339A (en) | Resource configuration method, resource configuration device, computer equipment, and computer program | |
CN109309842B (en) | Live broadcast data processing method and device, computer equipment and storage medium | |
CN113209633A (en) | Mirror image processing method and device, electronic equipment and readable storage medium | |
CN110245304B (en) | Data sharing method, device and computer readable medium | |
CN109495427B (en) | Multimedia data display method and device, storage medium and computer equipment | |
CN107864384B (en) | Method and device for redirecting internet video playing on cloud desktop | |
CN105072461A (en) | Data processing method and device | |
US9497487B1 (en) | Techniques for video data encoding | |
CN114404960A (en) | Cloud game resource data processing method and device, computer equipment and storage medium | |
US9560110B1 (en) | Synchronizing shared content served to a third-party service | |
CN110650350B (en) | Method and device for displaying coded image and electronic equipment | |
CN111359220B (en) | Game advertisement generation method and device and computer equipment | |
EP4080507A1 (en) | Method and apparatus for editing object, electronic device and storage medium | |
CN112044078A (en) | Access method, device, equipment and storage medium for virtual scene application | |
CN112423149A (en) | Content identification generation method, device, equipment and storage medium | |
WO2017011084A1 (en) | System and method for interaction between touch points on a graphical display | |
CN113556568B (en) | Cloud application running method, system, device and storage medium | |
JP7196350B2 (en) | Video distribution method and distribution server | |
CN107203389A (en) | Control shows method and device | |
CN111475240B (en) | Data processing method and system | |
CN113992989A (en) | Content display method, device, system, equipment and storage medium | |
CN112434237A (en) | Page loading method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A page presentation method, device, electronic device, and storage medium Effective date of registration: 20230721 Granted publication date: 20221118 Pledgee: Beijing first financing Company limited by guarantee Pledgor: BEIJING HAITAI FANGYUAN HIGH TECHNOLOGY Co.,Ltd. Registration number: Y2023980049375 |