CN114827113A - Webpage access method and device - Google Patents

Webpage access method and device Download PDF

Info

Publication number
CN114827113A
CN114827113A CN202210406652.XA CN202210406652A CN114827113A CN 114827113 A CN114827113 A CN 114827113A CN 202210406652 A CN202210406652 A CN 202210406652A CN 114827113 A CN114827113 A CN 114827113A
Authority
CN
China
Prior art keywords
webpage
accessed
web page
type
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210406652.XA
Other languages
Chinese (zh)
Other versions
CN114827113B (en
Inventor
郑文丹
李江卫
程艳
孟令超
刘宇杰
闵洪波
张献涛
任晋奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210406652.XA priority Critical patent/CN114827113B/en
Publication of CN114827113A publication Critical patent/CN114827113A/en
Application granted granted Critical
Publication of CN114827113B publication Critical patent/CN114827113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0014Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the source coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

One or more embodiments of the present specification provide a method and an apparatus for accessing a web page, where the method includes: acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address; determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address; and based on the coding transmission strategy, coding the webpage image, and transmitting the coded webpage image to a terminal so that the terminal can display the webpage image of the webpage to be accessed. The method can improve the use experience of the user when the user accesses the webpage.

Description

Webpage access method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of terminal technologies, and in particular, to a method and an apparatus for accessing a web page.
Background
When a user uses a terminal to remotely access a webpage, for example, when the user browses the webpage on the terminal in a cloud desktop, cloud application, cloud browser and other modes, smooth and smooth use experience is often desired.
In the prior art, a server side provides a plurality of encoders, each encoder can encode and optimize different types of contents in the same webpage, when a user accesses a certain webpage through the server side remotely at a terminal, the server side needs to cut the webpage through an image recognition technology, the webpage is divided into different types of webpage contents, then the plurality of encoders are used for encoding the different types of webpage contents at the same time, and the processed webpage is transmitted to the terminal for display. However, when the web page is cut by using the image recognition technology, processing time is required, which increases the delay of web page access, and the multiple encoders operate simultaneously, so that the requirement on the performance of the processor at the server end is high, if the performance of the processor at the server end is not high, the encoding processing speed is slow, the delay of web page access is also increased, and a user is likely to not obtain satisfactory experience.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure provide a method and an apparatus for accessing a web page.
To achieve the above object, one or more embodiments of the present disclosure provide the following technical solutions:
according to a first aspect of one or more embodiments of the present specification, there is provided a web page access method, including:
acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address;
determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
and based on the coding transmission strategy, coding the webpage image, and transmitting the coded webpage image to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
According to a second aspect of one or more embodiments of the present specification, there is provided a web page access apparatus, the apparatus including:
the webpage obtaining module is used for obtaining a webpage address of a webpage to be accessed and obtaining a webpage image of the webpage to be accessed according to the webpage address;
the strategy determining module is used for determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
and the coding processing module is used for coding the webpage image based on the coding transmission strategy and transmitting the webpage image subjected to coding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
According to a third aspect of one or more embodiments of the present specification, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the above-described web page access method.
According to a fourth aspect of one or more embodiments of the present specification, there is provided an electronic apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
the processor executes the executable instructions to implement the webpage access method.
According to a fifth aspect of one or more embodiments of the present specification, a computer program is presented, which when executed by a processor implements the above-mentioned web page access method.
In one or more embodiments of the present description, different encoding transmission strategies are selected to encode a web page image of a web page to be accessed through a web page address of the web page to be accessed, and the web page image does not need to be cut through image recognition to determine encoding transmission strategies of different web page contents; moreover, only one coding transmission strategy is used for the same webpage, a plurality of coders do not need to work simultaneously, the requirement on the performance of a processor at a server end is not high, the coding processing speed is higher, the time delay of webpage access is reduced, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
In order to more clearly illustrate one or more embodiments of the present specification or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in one or more embodiments of the present specification, and it is also possible for those skilled in the art to obtain other drawings based on the drawings without inventive labor.
Fig. 1 is a flowchart of a web page access method provided by an exemplary embodiment.
Fig. 2 is a flowchart of a web page access method provided by an exemplary embodiment.
Fig. 3 is a system architecture diagram between a terminal and a server according to an exemplary embodiment.
Fig. 4 is a flowchart of a web page access method based on a system architecture according to an exemplary embodiment.
Fig. 5 is a block diagram of a web page access device according to an exemplary embodiment.
Fig. 6 is a block diagram of a web page access device according to an exemplary embodiment.
Fig. 7 is a schematic diagram of an apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
In many application scenarios, a user may have a need to use a terminal to browse a web page, for example, to use a computer, a tablet, a web tv, a mobile phone, and other terminal devices to access the web page, which requires that the terminal device has a certain processing capability to parse the web page and render a picture of the web page content on a screen, and further requires that the terminal device has an access right to the web page. However, the processing capability of the terminal device may not meet the requirements of parsing and rendering the web page, or may not have access permission to the web page to be accessed, for example, for office people on business trip and at home, situations may occur that a personal computer cannot access the web page inside an enterprise, and the performance of the personal device is insufficient to meet the work requirement. When the application on the cloud desktop is used, for example, when a webpage is opened by using a browser, the server at the cloud side acquires related resources of the webpage and renders a webpage picture, and the rendered webpage image is sent to a terminal used by a user for display.
When a user uses a terminal to remotely access a webpage, the user often wants to obtain smooth use experience. When transmitting a web page that a user desires to access to a terminal, a remote server encodes a rendered web page screen and transmits the encoded web page screen to the terminal. In the prior art, when a rendered web page picture is transmitted to a terminal, a remote server needs to cut the web page picture through an image recognition technology, divide the web page picture into different types of web page contents, and then use a plurality of encoders to encode the different types of web page contents at the same time, for example, encode a region where text-type contents are located by using an encoding method applicable to the text type, encode a region where image-type contents are located by using an encoding method applicable to the image type, and transmit each encoded web page content to the terminal for display. The method uses the image recognition technology to cut the webpage, needs a certain processing time, increases the time delay of webpage access, and the multiple encoders work simultaneously, so that the requirement on the performance of the processor at the server end is very high, if the performance of the processor at the server end is not high, the encoding processing speed is very low, the time delay of webpage access is also increased, and the user is likely not to obtain satisfactory experience.
Based on the above, the specification provides a webpage access method, which can improve the webpage access speed and provide smooth and silky remote webpage access experience for a user.
At least one web page access method provided in the present specification will be described in detail below.
As shown in fig. 1, fig. 1 is a flowchart of a method for accessing a web page, which can be executed by a server, such as a remote server, a cloud server, and a backend server, and the method includes the following steps:
in step 102, a webpage address of the webpage to be accessed is obtained, and a webpage image of the webpage to be accessed is obtained according to the webpage address.
In this step, a URL (Uniform Resource Locator) of a webpage to be accessed, which is sent by the terminal, may be received, and a webpage is loaded from the webpage server according to the webpage address and rendered into a webpage image.
For example, a user may input a web page address of a desired access web page through a browser of the terminal or other applications of the terminal, or open a link including the web page address, the terminal sends the web page address to the server, and the server requests a web page server corresponding to the web page address to obtain a web page file and related web page resources, such as an HTML (hypertext Markup Language) file, a CSS (Cascading Style Sheets) file, and image resources of the web page, and parses the web page file and loads the related web page resources, and renders to obtain a web page image of the to-be-accessed web page.
In step 104, determining a coding transmission policy corresponding to the web page to be accessed according to the web page address.
In this step, different encoding transmission strategies may be set for different webpages in advance, and the encoding transmission strategies set in advance may be queried according to the webpage addresses of the webpages.
The encoding transmission strategy refers to an encoding transmission protocol between a server and a terminal, and the emphasis points of different types of encoding transmission protocols are different, for example, the command stream protocol strategy is an image compression protocol strategy, and the mode can be encoded and transmitted by using a command + image (command + image) mode, for example, an image is encoded and compressed into a JPEG format and transmitted in a data packet mode, so that the image has poor compression capability and large bandwidth occupation, but the information loss is small, the text can be clearly displayed, and the encoding transmission strategy is suitable for text picture transmission; the "video stream" protocol policy is a streaming media protocol policy, which can use an encoding + stream (encode + stream) mode to encode and transmit, for example, an encoding protocol such as h.264, h.265, etc. is used to compress pictures and transmit in a stream mode, the compression capability is strong, the bandwidth occupation is small, but the information loss is large, and the continuously-changed pictures can be smoothly presented, so that the method is suitable for dynamic picture transmission, such as picture transmission of moving pictures and videos.
The following examples are several ways to set different encoding transmission policies for different webpages in advance, but it should be understood that the specific implementation is not limited to the following examples: the user can set the coding transmission strategy corresponding to each webpage according to the actual requirement; the coding transmission strategy used by the user preference is counted by using big data, and the corresponding coding transmission strategy is automatically set for each webpage; or setting a corresponding encoding transmission policy according to the content of the web page, for example, for a blog, a novel and a news type web page, the content of the web page contains a large amount of texts and a small amount of images, and a command stream protocol policy can be selected.
In step 106, based on the encoding transmission policy, encoding the web page image, and transmitting the encoded web page image to a terminal, so that the terminal can display the web page image of the web page to be accessed.
After the encoding transmission strategy is determined, the whole webpage image can be uniformly encoded and transmitted according to the encoding mode in the encoding transmission strategy without adopting different encoding transmission modes for all parts of the webpage image, the terminal receives the webpage image after encoding processing and then decodes the webpage image according to the mode corresponding to the encoding, the webpage image of the webpage to be accessed can be displayed on the screen of the terminal, the requirement on the processing capacity of the terminal is extremely low, and the terminal does not need to have the capacities of analyzing the webpage and rendering the webpage.
Thus, the user can smoothly browse a desired web page at the terminal.
According to the webpage access method provided by the embodiment, the server side selects different coding transmission strategies to code the webpage images of the webpage to be accessed through the webpage address of the webpage to be accessed, and the coding transmission strategies of different webpage contents are determined without cutting the webpage images through image identification; moreover, only one coding transmission strategy is used for the same webpage, a plurality of coders do not need to work simultaneously, the requirement on the performance of a processor at a server end is not high, the coding processing speed is higher, the time delay of webpage access is reduced, and the user experience is improved.
In fact, the network environment where the user accesses using the terminal is often complex, the content of the browsed web page is often diverse, in order to further improve the browsing experience of the user when performing remote web page access, the web page may be divided into different web page types, and a coding transmission policy is set for each web page type, which is explained below.
Fig. 2 is a flowchart of another web page access method shown in this specification, where the method may be performed by a cloud server, and the cloud server is configured to provide a cloud service to a terminal, where the cloud service includes at least one of the following: cloud applications, cloud desktops, and cloud browsers; the method may include a process in which the same steps as the flow of fig. 1 will not be described in detail.
In step 202, a web page address of the web page to be accessed is obtained, and a web page image of the web page to be accessed is obtained according to the web page address.
In this embodiment, the cloud server receives a webpage address of a webpage to be accessed, which is sent by the terminal, and acquires a webpage image of the webpage to be accessed according to the webpage address. For example, a user may access a webpage at a terminal by using a browser provided on a cloud desktop, and after inputting a webpage address, a cloud server providing a cloud desktop service acquires files and resources related to the webpage according to the webpage address, and renders and draws a webpage image of the webpage to be accessed.
In step 204, the type of the web page to which the web page to be accessed belongs is queried according to the web page address.
In this step, a mapping relationship between a pre-established web page address and a web page type may be queried according to the web page address, and a web page type to which a web page to be accessed belongs may be determined. For example, the web pages may be classified according to the content of the web pages, and then a mapping relationship between the web page address of the web page and the web page type is established; or classifying the web pages according to the preference of the user, and further establishing the mapping relation between the web page addresses and the web page types of the web pages.
Because a user browses commonly used webpages in most cases when accessing the webpages, a method for establishing a mapping relationship between a webpage address and a webpage type in advance is introduced below, the method can automatically classify the commonly used webpages, and the classification mode is reasonable:
firstly, acquiring the webpage characteristics of a target webpage for the target webpage reaching a preset access frequency.
Determining the webpage reaching the preset access times as a target webpage, and capturing webpage characteristics of the target webpage, wherein the webpage characteristics may include at least one of the following items: the data volume of the webpage resources and the data type of the webpage resources are in proportion. The web page resource data volume refers to the total size of each type of resource in the web page, and the web page resource data type proportion refers to the proportion of the size of each type of resource in the web page to the total resource size. The size of the text-type resource is usually small, only a few kb, the size of the still-image-type resource is usually large, usually a few MB, and the size of the multimedia-type resource such as moving image or video is larger.
The preset access times can be set by a user, and when the preset access times are set to be 1, all browsed webpages are determined as target webpages. In other examples, the target web page may be determined in other manners, for example, a popular web page or a web page with a high popularity may be determined as the target web page, and the user may add the target web page by himself or herself. The web page features of the target web page can be automatically crawled through a crawler technology, and can also be obtained through other modes.
After the webpage features of the target webpage are obtained, the mapping relation between the webpage features and the webpage addresses can be stored in a webpage feature database, and the webpage feature database can be in a cloud server or other equipment.
Then, based on the webpage characteristics, the webpage type of the target webpage is determined.
In this step, the target web pages may be automatically classified according to the web page characteristics to obtain the web page types to which the target web pages belong. The web page types can be set by those skilled in the art according to actual requirements, and in this example, three web page types are taken as an example for illustration, and the three web page types may be a text type, a media type, and a balance type. The three webpage types are classified by integrating the data volume of the webpage resources and the data type ratio of the webpage resources, and the classification principle is as follows:
text type: the web page resource data volume is small, the resource ratio of the text type and the static image type in the web page resource data type ratio is very large, and the resource ratio of the text type and the static image type reaches a preset ratio, such as web pages of blogs, novels and news.
Media type: the data volume of the webpage resources is large, the resource occupation ratio of multimedia types such as dynamic images, videos and the like in the data type occupation ratio of the webpage resources is very large, and the resource occupation ratio of the multimedia types reaches a preset occupation ratio, such as webpages of video websites, live broadcast websites and the like.
The equalization type is as follows: the data volume of the webpage resources is centered, the resource ratios of various types in the data type ratios of the webpage resources are balanced, the webpage comprises characters, high-resolution images, a plurality of dynamic images, small videos and the like, the resource ratios of the text type and the static image type and the resource ratios of the multimedia type do not reach preset ratios, and the webpage comprises a shopping website, a small game website and the like.
In other examples, the classification may be performed only according to the amount of the web page resource data, only according to the type ratio of the web page resource data, or according to other characteristics of the web page. The embodiment does not limit the method, and each type can be further refined and divided into a plurality of levels during classification.
The classification process can be carried out by calling a webpage classification module, or can be carried out by the cloud server.
And finally, establishing a mapping relation between the webpage address of the target webpage and the webpage type to which the target webpage belongs.
The method for pre-establishing the mapping relationship between the webpage address and the webpage type can be executed by a cloud server; the method can also be implemented by calling a common web page analysis module by the cloud server, when the type of the web page to which the web page to be accessed belongs needs to be queried according to the web page address, a query interface provided by the common web page analysis module can be called, and under the condition that the web page to be accessed is the target web page, the mapping relation between the web page address of the web page to be accessed and the type of the web page to which the web page to be accessed belongs, which is pre-established in the common web page analysis module, can be queried, so that the type of the web page to which the web page to be accessed belongs is obtained.
In step 206, a coding transmission policy corresponding to the web page to be accessed is determined according to the web page type.
In this embodiment, the encoding transmission policy is used to limit a data transmission mode between the cloud server and the terminal. For each webpage type, a preset encoding transmission strategy can be determined, for example, for a webpage type with a large amount of webpage resource data, an encoding transmission mode with a higher compression degree is selected, and for a webpage type with a small amount of webpage resource data, an encoding transmission mode with a smaller compression loss or even a lossless compression loss is selected. The following description is still in terms of text type, media type, and equalization type:
and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy in response to the fact that the webpage type is a text type.
For a webpage with a text type, the frequency of change of the webpage image is slow in the browsing process of the user, and the change area of the whole image is usually small, for example, because the user is attentive to reading characters, the user does not turn the page within a few minutes, and only the clock at the lower right corner of the page may be changed. In the situation, a command stream protocol strategy is selected to encode and transmit the webpage image, the image and command encoding transmission mode can enable the definition of the webpage image displayed on the terminal to be higher, although the occupied bandwidth is larger when a single image is transmitted, the overall transmission frequency is low, the network cannot be blocked, and the requirements of users are better met.
And determining that the coding transmission strategy corresponding to the webpage to be accessed is a video streaming protocol strategy in response to the fact that the webpage type is the media type.
For a web page with a media type, the frequency of change of the web page picture is fast in the browsing process of the user, and the change area of the whole picture is usually large, for example, if a transmission coding mode of a command stream protocol policy is adopted, the use experience of the user is likely to be affected because too much data to be transmitted is jammed. In the situation, a video streaming protocol strategy is selected to encode and transmit the webpage image, and the encoding transmission mode of the streaming media can refresh the webpage image displayed on the terminal in time, reduce frame dropping, have higher fluency and better meet the requirements of users.
When determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type, the method can also be combined with the current network state so as to enable the selected coding transmission strategy to be more reasonable:
and acquiring the network quality parameters of the current network in response to the fact that the webpage type is the balance type. And responding to the condition that the network quality parameters accord with quality parameter conditions, and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy. And determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the fact that the network quality parameters do not accord with the quality parameter conditions.
The network quality parameter may be a parameter used for evaluating network quality, such as network delay, network bandwidth, and packet loss rate. When the network quality parameters meet the quality parameter conditions, the current network quality is better, for example, in a special cloud environment, the network conditions are nearly the same as the special line access, the network conditions are very ideal, extremely smooth user experience can be pursued, and at the moment, a command stream protocol strategy can be used for coding and transmitting the webpage images; and when the network quality parameter does not meet the quality parameter condition, the current network quality is poor, for example, in a public cloud environment, the encoding transmission strategy must have good network adaptability, and can adapt to a weak network environment and resist network jitter, and at this time, the video stream protocol strategy can be used for encoding and transmitting the webpage image.
In step 208, based on the encoding transmission policy, encoding the web page image, and transmitting the encoded web page image to a terminal, so that the terminal can display the web page image of the web page to be accessed.
In this embodiment, the web pages can be divided into different web page types, and a coding transmission strategy is set for each web page type, a user only uses one coding transmission strategy in the process of accessing the same web page, a plurality of encoders are not required to work simultaneously, frequent switching of the encoders is not required, the coding processing speed is higher, the time delay of web page access is reduced, the user experience is improved, meanwhile, the coding transmission strategy of the web page to be accessed is determined according to the web page type, the mode used by the rendered web page image during coding and transmission is more reasonable, the smoothness of the image during user operation can be improved, and the user experience is improved.
How the web page access method in the above embodiment is implemented in an example is described below with reference to a system architecture and a flowchart. Fig. 3 shows a system architecture diagram between a terminal and a server, and fig. 4 shows a web page access method flow based on the system architecture.
Guest and QEMU are both at the cloud server, wherein Guest is a virtual machine providing cloud desktop service, QEMU is a virtual operating system simulator, and a Client is a Client and runs on terminal equipment used by a user. When a User loads a webpage address through a browser, a User program User App in Guest requests a graphic engine (X11 or GDI) to execute a rendering operation, the graphic engine transmits a rendering operation command to a QXL driver (QXL driver installed inside a virtual machine), the QXL driver converts the rendering operation command into a QXL command and pushes the QXL command into a QXL Device in QEMU, and the QXL Device is the back end of the QEMU virtualized QXL Device. The QXL Device executes a QXL command to upload a graphic operation message and draws a webpage image in a server, the server is a virtual server, the server can call a common webpage analysis module to acquire the webpage type before transmitting the webpage image code to a client, and the common webpage analysis module can be positioned at a cloud server side or other equipment. When the webpage type is a text type, determining that the coding transmission strategy is command + image; when the webpage type is the media type, determining that the encoding transmission strategy is encode + stream; and when the webpage type is the balanced type, further judging the network state, when the network state is excellent, determining that the coding transmission strategy is command + image, and when the network state is inferior, determining that the coding transmission strategy is encode + stream. And the client correspondingly decodes the information after receiving the information so as to display the webpage image obtained after decoding on a screen, thereby finishing the picture updating operation.
As shown in fig. 5, fig. 5 is a web page access apparatus shown in the present specification according to an exemplary embodiment, the apparatus including:
the web page obtaining module 301 is configured to obtain a web page address of a web page to be accessed, and obtain a web page image of the web page to be accessed according to the web page address.
And a policy determining module 302, configured to determine, according to the web page address, a coding transmission policy corresponding to the web page to be accessed.
The encoding processing module 303 is configured to perform encoding processing on the web page image based on the encoding transmission policy, and transmit the encoded web page image to a terminal, so that the terminal displays the web page image of the web page to be accessed.
In one example, the apparatus is applied to a cloud server, and the cloud server is configured to provide a cloud service to the terminal, where the cloud service includes at least one of: cloud applications, cloud desktops, and cloud browsers;
when the web page obtaining module 301 is configured to obtain a web page address of a web page to be accessed, specifically: receiving a webpage address of a webpage to be accessed, which is sent by a terminal;
the encoding transmission strategy is used for limiting a data transmission mode between the cloud server and the terminal.
In an example, when the policy determining module 302 is configured to determine the encoding transmission policy corresponding to the to-be-accessed webpage according to the webpage address, specifically, to: inquiring the webpage type of the webpage to be accessed according to the webpage address; and determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage type.
In one example, as shown in fig. 6, the apparatus further comprises: the web page type module 300 is configured to, before the web page address of the web page to be accessed is obtained, obtain, for a target web page that reaches a preset number of access times, a web page feature of the target web page; determining the webpage type of the target webpage based on the webpage characteristics; and establishing a mapping relation between the webpage address of the target webpage and the webpage type to which the target webpage belongs.
When the policy determining module 302 is configured to query, according to the web page address, a web page type to which the web page to be accessed belongs, the policy determining module is specifically configured to: and under the condition that the webpage to be accessed is the target webpage, inquiring the mapping relation which is established in advance according to the webpage address, and determining the webpage type to which the webpage to be accessed belongs.
In one example, the web page features include at least one of: the data volume of the webpage resources and the data type of the webpage resources are in proportion.
In an example, the policy determining module 302 is configured to determine, according to the type of the web page, a coding transmission policy corresponding to the web page to be accessed, and specifically configured to: and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy in response to the fact that the webpage type is a text type.
In an example, the policy determining module 302 is configured to determine, according to the type of the web page, a coding transmission policy corresponding to the web page to be accessed, and specifically configured to: and determining that the coding transmission strategy corresponding to the webpage to be accessed is a video streaming protocol strategy in response to the fact that the webpage type is the media type.
In an example, the policy determining module 302 is configured to determine, according to the type of the web page, a coding transmission policy corresponding to the web page to be accessed, and specifically configured to: responding to the fact that the webpage type is a balance type, and obtaining network quality parameters of the current network; responding to the condition that the network quality parameters accord with quality parameters, and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy; and determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the fact that the network quality parameters do not accord with the quality parameter conditions.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 7, fig. 7 is a hardware structure diagram of a computer device in which the web page accessing apparatus in the foregoing embodiment is located, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component within the device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and the output devices may include a display, speaker, vibrator, indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the web page access method as described above.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The present specification also provides a computer program which, when executed, implements the above-described web page access method.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The above description is only for the purpose of illustrating the preferred embodiments of the one or more embodiments of the present disclosure, and is not intended to limit the scope of the one or more embodiments of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the one or more embodiments of the present disclosure should be included in the scope of the one or more embodiments of the present disclosure.

Claims (12)

1. A method of web page access, the method comprising:
acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address;
determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
and based on the coding transmission strategy, coding the webpage image, and transmitting the coded webpage image to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
2. The method of claim 1, applied to a cloud server for providing cloud services to the terminal, the cloud services including at least one of: cloud applications, cloud desktops, and cloud browsers;
the acquiring of the webpage address of the webpage to be accessed comprises the following steps: receiving a webpage address of a webpage to be accessed, which is sent by a terminal;
the encoding transmission strategy is used for limiting a data transmission mode between the cloud server and the terminal.
3. The method of claim 1, wherein the first and second light sources are selected from the group consisting of,
the determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage address comprises the following steps:
inquiring the webpage type of the webpage to be accessed according to the webpage address;
and determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage type.
4. The method of claim 3, wherein the first and second light sources are selected from the group consisting of,
before the acquiring the web page address of the web page to be accessed, the method further includes:
acquiring webpage characteristics of a target webpage reaching a preset access frequency;
determining the webpage type of the target webpage based on the webpage characteristics;
establishing a mapping relation between the webpage address of the target webpage and the webpage type to which the target webpage belongs;
the inquiring of the webpage type of the webpage to be accessed according to the webpage address comprises the following steps:
and under the condition that the webpage to be accessed is the target webpage, inquiring the mapping relation which is established in advance according to the webpage address, and determining the webpage type to which the webpage to be accessed belongs.
5. The method of claim 4, the web page features comprising at least one of: the data volume of the webpage resources and the data type of the webpage resources are in proportion.
6. The method of claim 3, wherein the first and second light sources are selected from the group consisting of,
the determining the encoding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy in response to the fact that the webpage type is a text type.
7. The method of claim 3, wherein said at least one of said first and second sets of parameters is selected from the group consisting of,
the determining the encoding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
and determining that the coding transmission strategy corresponding to the webpage to be accessed is a video streaming protocol strategy in response to the fact that the webpage type is the media type.
8. The method of claim 3, wherein the first and second light sources are selected from the group consisting of,
the determining the encoding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
responding to the fact that the webpage type is a balance type, and obtaining network quality parameters of the current network;
responding to the condition that the network quality parameters accord with quality parameters, and determining that the coding transmission strategy corresponding to the webpage to be accessed is a command stream protocol strategy;
and determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the fact that the network quality parameters do not accord with the quality parameter conditions.
9. A web page access apparatus, the apparatus comprising:
the webpage obtaining module is used for obtaining a webpage address of a webpage to be accessed and obtaining a webpage image of the webpage to be accessed according to the webpage address;
the strategy determining module is used for determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
and the coding processing module is used for coding the webpage image based on the coding transmission strategy and transmitting the webpage image subjected to coding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of any one of claims 1-8 by executing the executable instructions.
11. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 8.
12. A computer program which, when executed by a processor, implements the method of any one of claims 1-8.
CN202210406652.XA 2022-04-18 2022-04-18 Webpage access method and device Active CN114827113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210406652.XA CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210406652.XA CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Publications (2)

Publication Number Publication Date
CN114827113A true CN114827113A (en) 2022-07-29
CN114827113B CN114827113B (en) 2024-04-16

Family

ID=82537204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210406652.XA Active CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Country Status (1)

Country Link
CN (1) CN114827113B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050018905A (en) * 2005-01-27 2005-02-28 (주)엔알시스템스 Method and server system for real-time remote video multicasting
US20140344663A1 (en) * 2013-05-15 2014-11-20 Christopher Stephen Joel Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
US20150128033A1 (en) * 2013-07-11 2015-05-07 Tencent Technology (Shenzhen) Company Limited Method and apparatus for webpage browsing
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol
WO2018223786A1 (en) * 2017-06-05 2018-12-13 中兴通讯股份有限公司 Cloud desktop system, and image sequence compression and encoding method, and medium therefor
CN109274682A (en) * 2018-10-26 2019-01-25 西安科锐盛创新科技有限公司 Data processing method and its equipment
CN110020343A (en) * 2017-09-01 2019-07-16 北京国双科技有限公司 The determination method and apparatus of web page coding format
CN111010582A (en) * 2019-12-18 2020-04-14 深信服科技股份有限公司 Cloud desktop image processing method, device and equipment and readable storage medium
CN112632426A (en) * 2020-12-22 2021-04-09 新华三大数据技术有限公司 Webpage processing method and device
CN113973224A (en) * 2021-09-18 2022-01-25 阿里巴巴(中国)有限公司 Method for transmitting media information, computing device and storage medium
CN114329298A (en) * 2021-12-31 2022-04-12 北京海泰方圆科技股份有限公司 Page presentation method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050018905A (en) * 2005-01-27 2005-02-28 (주)엔알시스템스 Method and server system for real-time remote video multicasting
US20140344663A1 (en) * 2013-05-15 2014-11-20 Christopher Stephen Joel Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
US20150128033A1 (en) * 2013-07-11 2015-05-07 Tencent Technology (Shenzhen) Company Limited Method and apparatus for webpage browsing
WO2018223786A1 (en) * 2017-06-05 2018-12-13 中兴通讯股份有限公司 Cloud desktop system, and image sequence compression and encoding method, and medium therefor
CN110020343A (en) * 2017-09-01 2019-07-16 北京国双科技有限公司 The determination method and apparatus of web page coding format
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol
CN109274682A (en) * 2018-10-26 2019-01-25 西安科锐盛创新科技有限公司 Data processing method and its equipment
CN111010582A (en) * 2019-12-18 2020-04-14 深信服科技股份有限公司 Cloud desktop image processing method, device and equipment and readable storage medium
CN112632426A (en) * 2020-12-22 2021-04-09 新华三大数据技术有限公司 Webpage processing method and device
CN113973224A (en) * 2021-09-18 2022-01-25 阿里巴巴(中国)有限公司 Method for transmitting media information, computing device and storage medium
CN114329298A (en) * 2021-12-31 2022-04-12 北京海泰方圆科技股份有限公司 Page presentation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114827113B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
US8671435B2 (en) Method and system for visualizing an adaptive screen according to a terminal
CN104112002B (en) A kind of methods, devices and systems of list adaptation
US20170083487A1 (en) Webpage data processing method and device
US20100268694A1 (en) System and method for sharing web applications
US9571556B2 (en) Browser kernel adaptation method and browser therefor
JP6328233B2 (en) Computer program product, system and method for optimizing web page loading
US20100050089A1 (en) Web browser system of mobile communication terminal, using proxy server
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
CN105302802A (en) Picture uploading method and system and browser
CN108334516B (en) Information pushing method and device
US20190114989A1 (en) Systems and methods for image optimization
WO2014086195A1 (en) Video processing method, mobile terminal and server
CN104156251A (en) Picture processing method and device
CN107592553B (en) Image compression agent balance processing method and device
US20140337708A1 (en) Method and apparatus for providing web browsing service
CN104156372B (en) A kind of methods, devices and systems for opening webpage
US20080297521A1 (en) System and method for providing skins for a web page
CN103313285A (en) Network resource transmitting and processing device and network resource transmitting and processing method
CN109426530B (en) Page determination method, device, server and storage medium
CN114827113B (en) Webpage access method and device
CN106487861B (en) Network data providing method and device
CN114500484A (en) Page rendering method and device, electronic equipment and readable medium
US20150249722A1 (en) Content providing apparatus and method, and computer program product
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
CN104580521A (en) Preloading method and system for client to smoothly access to server data

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