CN111581556B - Page data processing method, device, electronic equipment and readable medium - Google Patents

Page data processing method, device, electronic equipment and readable medium Download PDF

Info

Publication number
CN111581556B
CN111581556B CN202010344959.2A CN202010344959A CN111581556B CN 111581556 B CN111581556 B CN 111581556B CN 202010344959 A CN202010344959 A CN 202010344959A CN 111581556 B CN111581556 B CN 111581556B
Authority
CN
China
Prior art keywords
data
page
multimedia
multimedia data
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010344959.2A
Other languages
Chinese (zh)
Other versions
CN111581556A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202010344959.2A priority Critical patent/CN111581556B/en
Publication of CN111581556A publication Critical patent/CN111581556A/en
Application granted granted Critical
Publication of CN111581556B publication Critical patent/CN111581556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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

Landscapes

  • Engineering & Computer Science (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

The disclosure provides a page data processing method, a page data processing device, electronic equipment and a readable medium, and relates to the technical field of information processing. The method comprises the following steps: sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and receiving a first response data packet returned by the server when the indication information indicates that text data and multimedia data are synchronously acquired; the first response data packet comprises analysis position information of the first page data in the first response data packet; analyzing the first response data packet to obtain analysis position information; and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data. According to the technical scheme, the terminal can load the text data and the multimedia data only by requesting the data once from the server, loading delay caused by repeated data requesting is avoided, and smoothness of user experience is improved.

Description

Page data processing method, device, electronic equipment and readable medium
Technical Field
The disclosure relates to the technical field of information processing, and in particular relates to a page data processing method, a page data processing device, electronic equipment and a readable medium.
Background
With the rapid development of computer technology and communication technology, the internet has been widely used, and the lifestyle of people has been changed. The user can access the Internet through the terminal equipment, browse news, shop, transact various services, release information on a social platform and the like, so that convenience and richness of daily life are improved.
For pages presented to the user by the terminal device, for example, pages of Application (APP), pages of web pages, etc., each page contains rich elements including text data, picture data, web page links, video data, audio data, etc. At present, most APP is used for preferentially loading and displaying some text contents for users based on content classification, so that the users can see webpage contents timely, but content loading delay can occur in many cases, so that page display is not smooth enough, and rendering jamming phenomenon can occur in severe cases.
Disclosure of Invention
The present disclosure provides a page data processing method, apparatus, electronic device, and readable medium, for solving the problems existing in the prior art.
In a first aspect, a method for processing page data is provided, including:
Sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the receiving server based on the page identification and the indication information is received; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
analyzing the first response data packet to obtain analysis position information;
and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data.
In a second aspect, there is provided a page data processing method, the method comprising:
receiving a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
when the indication information indicates that text data and multimedia data are synchronously acquired, determining a first response data packet based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
And sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain analysis position information, and analyzing the first response data packet to obtain first page data based on the analysis position information and displaying the first page data.
In a third aspect, there is provided a page data processing apparatus comprising:
the sending module is used for sending a page data acquisition request to the server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the receiving module is used for receiving a first response data packet returned by the server based on the page identification and the indication information when the indication information indicates that the text data and the multimedia data are synchronously acquired; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
the analysis module is used for analyzing the first response data packet to obtain analysis position information;
and the display module is used for analyzing the first page data from the first response data packet based on the analysis position information and displaying the first page data.
In a fourth aspect, there is provided a page data processing apparatus comprising:
The receiving module is used for receiving a page data acquisition request sent by the terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the determining module is used for determining a first response data packet based on the page identification and the indication information when the indication information indicates that the text data and the multimedia data are synchronously acquired, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
and the sending module is used for sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain analysis position information, and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data.
In a fifth aspect, the present disclosure provides an electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: operations corresponding to the page data processing method as shown in the first aspect or the second aspect of the present disclosure are performed.
In a sixth aspect, the present disclosure provides a computer readable medium for storing computer instructions which, when run on a computer, cause the computer to perform a page data processing method as shown in the first or second aspect of the present disclosure.
The beneficial effects that this disclosure provided technical scheme brought are:
the page data processing method, the device, the electronic equipment and the readable medium provided by the embodiment of the disclosure send a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode; when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the receiving server based on the page identification and the indication information is received; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data; analyzing the first response data packet to obtain analysis position information; and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data. According to the technical scheme provided by the disclosure, the terminal sends the data acquisition request once to the server, so that the text data and the multimedia data can be obtained, the text data and the multimedia data are analyzed and displayed according to the analysis position information in the response data packet sent by the server, delay caused by the fact that the text data and the multimedia data are acquired respectively through the two data acquisition requests in the initial page rendering process is avoided, and the fluency of user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that are required to be used in the description of the embodiments of the present disclosure will be briefly introduced below.
FIG. 1 is a flowchart of a method for processing page data according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for processing page data according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram showing multimedia information through an occupied bitmap in the prior art;
FIG. 4 is a schematic diagram of a prior art multimedia information alternative occupancy map shown in a page;
FIG. 5 is a diagram illustrating a Preload data structure provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a process of transmitting and receiving data between a terminal and a server in the prior art;
fig. 7 is a schematic diagram of a process of data transceiving between a terminal and a server according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a page data processing apparatus according to an embodiment of the disclosure;
FIG. 9 is a schematic diagram of a page data processing apparatus according to an embodiment of the disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a page data processing method according to an embodiment of the present disclosure, where, as shown in fig. 1, the method may include:
step S101, sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the execution main body of the embodiment of the disclosure is a terminal, and when the terminal receives a triggering action of refreshing a page by a user or the terminal performs page data updating, the terminal sends a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the page identifier is unique identification information of the page distinguished from other pages; the indication information is used for indicating a data acquisition mode of the terminal for requesting data from the server, for example, a private protocol can be established between the terminal and the server, the private protocol can prescribe the data acquisition mode, whether the two communication parties support the data acquisition mode prescribed by the private protocol can be determined by verifying the indication information, and the specific data acquisition mode can be set according to specific requirements. The server may determine to return corresponding data to the terminal based on the indication information in the page data acquisition request sent by the terminal. The indication information may specifically be a certain field in the page data acquisition request.
The page data comprises text data, multimedia data and the like which are displayed in the page, and the multimedia data can comprise pictures, video and audio and the like in the page.
The page may include a page that is displayed to the user by the terminal device, for example, a page of the application program APP, a page of the web page, etc.; the page identifier is unique identification information of the page corresponding to the data acquisition request. For example, when the user a logs in to the APP of the news browse class and clicks on the tag of "domestic news" of the APP, the terminal requests the server for "domestic news" page data, where the request includes the page identifier of the "domestic news" page.
Step S102, when the indication information indicates to synchronously acquire text data and multimedia data, a first response data packet returned by a receiving server based on the page identification and the indication information is received; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
specifically, after receiving the page data acquisition request, the server extracts the indication information from the page data acquisition request and verifies the indication information, determines the data acquisition mode of the terminal, and when the indication information indicates that text data and multimedia data are synchronously acquired, the server sends a first response data packet containing first page data and analysis position information of the first page data to the terminal.
Wherein the first page data is acquired by the server based on the page identification. The specific acquisition mode may include that the server queries the database for corresponding page data based on the page identifier, or requests corresponding first page data from other servers based on the page identifier.
The analysis position information of the first page data in the response data packet includes analysis position information of text data and analysis position information of the first multimedia data, wherein the analysis position information specifically includes analysis start position information and analysis end position information, that is, a start position and an end position of the data in the first response data packet.
In addition, when the indication information indicates that metadata of text data and multimedia data is acquired, the method further includes:
the receiving server returns a second response data packet based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In practical application, when the indication information indicates to acquire the text data and the metadata of the multimedia data, the server returns a second response data packet containing the text data and the metadata of all the multimedia data to the terminal, and if the terminal needs to acquire the multimedia data, the terminal needs to send a data acquisition request to the server again through the metadata of all the multimedia data, and receives the multimedia data sent by the server according to the metadata of all the multimedia data.
The metadata of the multimedia data may include network links of pictures, videos and audios, and information such as picture resolution, video definition, audio duration and the like.
Step S103, analyzing the first response data packet to obtain analysis position information;
and the terminal analyzes the first response data packet received from the server to obtain analysis position information of the text data and the first multimedia data in the response data packet.
Step S104, analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data.
Analyzing and displaying the text data based on the analysis start position information and the analysis end position information of the text data received from the server in the first response data packet; the first multimedia data received from the server is analyzed and displayed based on the analysis start position information and the analysis end position information of the first multimedia data in the first response data packet.
The terminal analyzes and displays the text data and the multimedia data according to the analysis position information, can analyze the text data and render the text data and display the text data, then analyze the multimedia data and render the multimedia data and display the multimedia data, and the problem that in the prior art, the text data and the multimedia data are requested respectively through two data acquisition requests, the text data are displayed firstly and the multimedia data are requested secondly, and the problem that the text data and the multimedia data are acquired through one data acquisition request and only can be displayed after receiving all the data, so that blank pages can be displayed to users firstly, and users need to wait for a long time to browse page data is avoided.
The first multimedia data sent by the server to the terminal may be all multimedia data of the corresponding page or may be part of multimedia data.
In one possible implementation, when metadata of the multimedia data is included in the first response packet, the method further includes:
and acquiring second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identification.
In practical application, the server may send part of the multimedia data corresponding to the page identifier to the terminal, or may send all of the multimedia data, optionally, the server may preset a threshold for sending the data amount, and when the data amount (which may include the sum of the data amounts of the text data and the multimedia data, or may only calculate the amount of the multimedia data) determined based on the page identifier is greater than or equal to a preset threshold, the server sends part of the multimedia data corresponding to the page identifier to the terminal, and then sends the rest of the multimedia data, and if the data amount is less than the preset threshold, all of the multimedia data corresponding to the page identifier is sent. If the server transmits part of the multimedia data to the terminal, the rest of the multimedia data is acquired after that. When the first response data packet includes metadata of the multimedia data, it is indicated that the first multimedia data sent by the server to the terminal is part of the multimedia data corresponding to the page identifier, but not all the multimedia data, and therefore, the remaining part of the multimedia data needs to be acquired based on the metadata of the multimedia data.
It should be noted that, the server determines, based on the amount of data sent, whether to send all multimedia data or part of multimedia data to the terminal is only an optional manner, and may also determine whether to send all multimedia data to the terminal according to loading performance of the terminal, a network transmission speed, and any other manners, which is not limited in this disclosure.
When the server sends partial multimedia data to the terminal, the metadata of the multimedia data, the text data and the partial multimedia data can be simultaneously sent to the terminal, the server can send the metadata of the residual multimedia data which is not sent to the terminal, and the terminal acquires the residual multimedia data based on the metadata of the residual multimedia data; the metadata of the multimedia data may also be second metadata of all multimedia data, and the terminal may determine metadata of the remaining part of the multimedia data that the server has not transmitted based on the second metadata.
The specific implementation manner of the terminal obtaining the rest multimedia data from the server is as follows:
in one possible implementation, when the metadata of the multimedia data includes first metadata of the second multimedia data, acquiring the second multimedia data based on the first metadata includes:
Sending a multimedia data acquisition request to a server, wherein the multimedia data acquisition request comprises first metadata;
the receiving server transmits second multimedia data based on the first metadata.
In practical applications, the specific ways for acquiring the remaining data may include two ways: one way is to wait for the server to obtain the rest multimedia data sent by the request according to the page data sent by the previous terminal, and render and display the rest multimedia data after buffering the rest multimedia data to the local; the other mode is that a multimedia data acquisition request is sent to the server again, the request comprises first metadata of the rest multimedia data, the server acquires the rest multimedia data according to the received first metadata of the rest multimedia data and sends the rest multimedia data to the terminal, and the terminal performs rendering and display.
In the embodiment of the disclosure, whether the terminal waits for the server to send the rest of multimedia data according to the previously sent page data acquisition request or sends the multimedia data acquisition request again to the server to acquire the rest of multimedia data, the difference between the terminal and the prior art is that the terminal can analyze and display the obtained part of multimedia data according to the analysis position information to display the obtained part of multimedia data to the user, so that the user does not need to wait too long and the browsing of the user is not influenced.
When the server sends the metadata of all the multimedia data to the terminal, the terminal can analyze and display the multimedia data based on the metadata of all the multimedia data, and the specific implementation manner is as follows:
in one possible implementation, when the metadata of the multimedia data is the second metadata of all multimedia data, the method further includes:
analyzing the second metadata from the first response data packet based on the analysis position information;
the parsed first multimedia data is determined based on the second metadata, and a multimedia data acquisition request is sent to the server based on metadata of the remaining part of the multimedia data other than the parsed first multimedia data.
In practical application, the terminal receives the first response data packet sent by the server, parses the first response data packet based on the parsed location information, stores the parsed text data, the first multimedia data, and the second metadata in a designated storage space, where the designated storage space may include a local or internal memory, or may be cached in any area that may be quickly read later, and then renders and displays the text data, the first multimedia data, and the second metadata. When the multimedia data is displayed, the terminal can determine the analyzed first multimedia data based on the second metadata, and for the rest multimedia data with the specified storage space not existing, the terminal can send the data acquisition request to the server again based on the metadata of the rest multimedia data in the second metadata, acquire the rest multimedia data and display the rest multimedia data to the user. In the embodiment of the disclosure, the server does not need to determine metadata of the rest multimedia data, and directly sends the metadata of all the multimedia data to the terminal, and the terminal can acquire the rest multimedia data from the server again at any time based on the received metadata of all the multimedia data, so that the acquisition of the multimedia data is more flexible.
In the page data processing method provided by the embodiment of the disclosure, a page data acquisition request is sent to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode; when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the receiving server based on the page identification and the indication information is received; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data; analyzing the first response data packet to obtain analysis position information; and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data. According to the technical scheme provided by the disclosure, the terminal sends the data acquisition request once to the server, so that the text data and the multimedia data can be obtained, the text data and the multimedia data are analyzed and displayed according to the analysis position information in the response data packet sent by the server, delay caused by respectively acquiring the text data and the multimedia data through the two data acquisition requests in the initial page rendering process is avoided, and the fluency of user experience is improved.
Fig. 2 is a flowchart of a method for processing page data according to an embodiment of the disclosure, where, as shown in fig. 2, the method may include:
step S201, receiving a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the execution subject of the embodiment of the disclosure is a server, which may be an application server corresponding to the APP or a Web server. When the terminal receives a triggering action of refreshing a page by a user or the terminal performs page data updating, sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the page identifier is unique identification information of the page distinguished from other pages; the indication information is used for indicating a data acquisition mode of the terminal for requesting data from the server, for example, a private protocol can be established between the terminal and the server, the private protocol can prescribe the data acquisition mode, whether the two communication parties support the data acquisition mode prescribed by the private protocol can be determined by verifying the indication information, and the specific data acquisition mode can be set according to specific requirements. The server may determine to return corresponding data to the terminal based on the indication information in the page data acquisition request sent by the terminal. The indication information may specifically be a field, a parameter or any other form of information.
The page data comprises text data, multimedia data and the like which are displayed in the page, and the multimedia data can comprise pictures, video and audio and the like in the page.
The page may include a page that is displayed to the user by the terminal device, for example, a page of the application program APP, a page of the web page, etc.; the page identifier is unique identification information of the page corresponding to the data acquisition request. For example, when the user a logs in to the APP of the news browse class and clicks on the tag of "domestic news" of the APP, the terminal requests the server for "domestic news" page data, where the request includes the page identifier of the "domestic news" page.
Step S202, when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet is determined based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
specifically, after receiving the page data acquisition request, the server extracts the indication information from the page data acquisition request and verifies the indication information, determines the data acquisition mode of the terminal, and when the indication information indicates that text data and multimedia data are synchronously acquired, the server sends a response data packet containing the first page data and analysis position information of the first page data to the terminal.
Wherein the first page data is acquired by the server based on the page identification. The specific acquisition mode may include that the server queries the database for corresponding first page data based on the page identifier, or requests other servers for corresponding first page data based on the page identifier.
The analysis position information of the first page data in the response data packet includes analysis position information of text data and analysis position information of the first multimedia data, wherein the analysis position information specifically includes analysis start position information and analysis end position information, that is, a start position and an end position of the data in the response data packet.
In addition, when the indication information indicates that metadata of text data and multimedia data is acquired, the method further includes:
the receiving server returns a second response data packet based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In practical application, when the indication information indicates to acquire the text data and the metadata of the multimedia data, the server returns a second response data packet containing the text data and the metadata of all the multimedia data to the terminal, and if the terminal needs to acquire the multimedia data, the terminal needs to send a data acquisition request to the server again through the metadata of all the multimedia data, and receives the multimedia data sent by the server according to the metadata of all the multimedia data.
The metadata of the multimedia data may include network links of pictures, videos and audios, and information such as picture resolution, video definition, audio duration and the like.
Step S203, the first response data packet is sent to the terminal, so that the terminal analyzes the first response data packet to obtain analysis position information, and based on the analysis position information, the first page data is obtained from the response data packet by analysis and displayed.
The server sends the first response data packet to the terminal, the terminal analyzes the first response data packet to obtain analysis position information, and the text data is analyzed and displayed based on analysis starting position information and analysis ending position information of the text data in the response data packet; the first multimedia data received from the server is analyzed and displayed based on the analysis start position information and the analysis end position information of the first multimedia data in the first response data packet.
The terminal analyzes and displays the text data and the multimedia data according to the analysis position information, can analyze the text data and render the text data and display the text data, then analyze the multimedia data and render the multimedia data and display the multimedia data, and the problem that in the prior art, the text data and the multimedia data are requested respectively through two data acquisition requests, the text data are displayed firstly and the multimedia data are requested secondly, and the problem that the text data and the multimedia data are acquired through one data acquisition request and only can be displayed after receiving all the data, so that blank pages can be displayed to users firstly, and users need to wait for a long time to browse page data is avoided.
In one possible implementation, when the indication information indicates that metadata of text data and multimedia data is acquired, the method further includes:
sending a second response data packet to the terminal based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In one possible implementation, when metadata of the multimedia data is included in the first response packet, the method further includes:
and determining second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identification.
In one possible implementation, when the metadata of the multimedia data includes the first metadata of the second multimedia data, the method further includes:
receiving a multimedia data acquisition request sent by a terminal, wherein the multimedia data acquisition request comprises first metadata;
and determining second multimedia data based on the first metadata and transmitting the second multimedia data to the terminal.
In the page data processing method provided by the embodiment of the disclosure, a server receives a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode; when the indication information indicates that text data and multimedia data are synchronously acquired, determining a first response data packet based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data; and sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain analysis position information, and analyzing the first response data packet to obtain first page data based on the analysis position information and displaying the first page data. According to the technical scheme provided by the disclosure, the terminal sends the data acquisition request once to the server, so that the text data and the multimedia data can be obtained, the text data and the multimedia data are analyzed and displayed according to the analysis position information in the response data packet sent by the server, delay caused by respectively acquiring the text data and the multimedia data through the two data acquisition requests in the initial page rendering process is avoided, and the fluency of user experience is improved.
The following is a comparative description of the prior art and the technical solutions of the present disclosure.
In the prior art, when refreshing page data, in order to increase the speed of a user to see a new data, a typical process commonly used in the industry is divided into the following two stages:
the first stage: a network request is sent to the server requesting the text data and multimedia metadata of the brush. After the data requested by the network is returned, rendering the card, filling the text content, and displaying the missing multimedia information by using a occupation map, wherein the occupation map is a blank display diagram which does not contain a display image as shown in fig. 3;
and a second stage: after the first phase is finished, the real multimedia data is requested from the server according to the multimedia metadata, and instead of the occupied bit map, the image instead of the occupied bit map is rendered and displayed to the user on the card, as shown in fig. 4.
The terminal firstly requests the text information and the metadata of the multimedia information from the server, firstly loads the text information and displays the text information to the user, the missing multimedia information is displayed in a bitmap occupying mode, and then requests the multimedia information from the server according to the metadata and displays the multimedia information to the user instead of the bitmap occupying mode, so that the user needs to wait for a period of time after seeing the text content, and the experience fluency is affected.
In an optional example of the technical solution of the present disclosure, the terminal sends a page data acquisition request of the APP page to the server, where the page data acquisition request includes indication information and a page identifier of the APP page, and the indication information may be a field preload=true, and the field may be included in a Header of the data acquisition request.
And when receiving a page data acquisition request sent by the terminal, the server checks whether the preload field is true. If yes, the data acquisition mode indicated by the indication information is to synchronously acquire text data and multimedia data, a corresponding response data packet is determined according to the page identification, the response data packet comprises the text data, metadata of the multimedia data and the multimedia data, the response data packet also comprises analysis position information of the text data and the multimedia data in the response data packet, and the response data packet is returned to the terminal.
The text data, the analysis position information of the multimedia data in the response data packet and the metadata of the multimedia data may specifically be that a data structure Preload is added in the Header, where the analysis start and end positions of the text data, the metadata of the multimedia data and the start and end positions of the multimedia data analysis are included.
As an example, the specific content of the data structure Preload is shown in fig. 5, and in this example, the data structure adopts a data exchange format of json (JavaScript Object Notation, JS object numbered) and the parsing start position (start as shown in the figure) of the text data corresponding to json is 0, and the size 1000 shown in the figure represents the data volume, and the end position is 1000, that is to say, the response data packet is the start position and the end position of the text data respectively; the images correspond to two parts of multimedia data, namely metadata of two pictures is shown in the figure: the metadata of the first part of multimedia data (uri as shown in the figure) is http: the resolution start position (start shown in the figure) is 1000, the size 2000 shown in the figure is the data size, and the end position is 3000, that is, the start position and end position of the first picture in the response data packet are 1000 and 3000 respectively; the metadata of the second portion of multimedia data (uri as shown in the figure) is http: the resolution start position (start as shown in the figure) is 3000, and the size 2000 as shown in the figure is the data size, the end position is 5000, that is, the start position and end position of the second picture in the response packet are 3000 and 5000, respectively.
After receiving the response data packet returned by the server, the terminal checks whether a Preload data structure exists in the Header, and if so, reads the text data according to the analysis position information of the text data in the Preload data structure and renders the text. And simultaneously, continuously reading the rest data, reading the multimedia data according to the analysis position information of the multimedia data in the Preload data structure, and firstly checking whether the needed multimedia data are stored locally or not, and if so, directly rendering and displaying the multimedia resources. If the multimedia data is not in the local area, the multimedia data which is not in the local area is requested to the server, or the multimedia data which is continuously returned by the server according to the previous page data acquisition request can be waited, and the terminal can display the multimedia data which is returned first.
The instruction information for instructing the data acquisition method is not limited to the Header, and may be notified in the form of a request parameter or any other method.
The server does not limit the return order of the text data and the multimedia data, and the text data and the multimedia data are placed in the same request.
The implementation of the data structure of Preload is not limited, and may be any data format capable of representing a text data start-stop position, a multimedia data start-stop position, and metadata. While the Preload data structure need not be located in the Header, but may be located in any area that can be read by the terminal.
The buffering of the multimedia data is not limited to the presence of local but may be in memory or any area that can be read quickly afterwards.
When no downloaded multimedia data is found in the cache, the request in the Preload can be directly waited for to return the multimedia data, and the multimedia data returned by any one of the two requests can be selected on the premise that the additional request is initiated.
Compared with the prior art, in the technical scheme of the present disclosure, time consumption caused by network delay is saved by data transceiving between the terminal and the server, fig. 6 is a schematic diagram of a process of data transceiving between the terminal and the server in the prior art, as shown in fig. 6, the terminal sends a data acquisition request to the server, the time consumption for sending the request is 700 milliseconds (ms), the server receives the request, the time consumption for processing the request is 500 ms, the time consumption for receiving text data returned by the server and metadata of multimedia data by the terminal is 700 ms, the time consumption for decoding the request returned by the server is 100 ms, the terminal sends a request for acquiring the multimedia data to the server according to the metadata of the decoded multimedia data, the time consumption is 400 ms, and the total time consumption is 2800 ms.
Fig. 7 is a schematic diagram of a process of data transceiving between a terminal and a server in the technical scheme of the present disclosure, where the terminal sends a data acquisition request to the server, the time for sending the request is 700 ms, the time for the server to receive the request, the time for processing the request is 500 ms, the time for the terminal to receive text data, multimedia data and corresponding analysis position information returned by the server is 700 ms, the time for the terminal to decode the received data is 100 ms, and the total time is 2000 ms.
Compared with the prior art, the technical scheme of the method and the device for requesting the page data from the server every time reduces 800 milliseconds, saves waiting time of users, and improves fluency of browsing the page data by the users.
Based on the same principle as the method shown in fig. 1, there is also provided in an embodiment of the present disclosure a page data processing apparatus 30, as shown in fig. 8, the page data processing apparatus 30 may include:
the sending module 31 is configured to send a page data acquisition request to a server, where the page data acquisition request includes a page identifier and indication information, and the indication information is used to indicate a data acquisition mode;
a receiving module 32, configured to receive a first response packet returned by the server based on the page identifier and the first acquisition mode when the indication information indicates that text data and multimedia data are acquired synchronously; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
The parsing module 33 is configured to parse the first response packet to obtain parsed location information;
and the display module 34 is used for analyzing and obtaining the first page data from the response data packet based on the analysis position information and displaying the first page data.
In a possible implementation manner, when the indication information indicates that metadata of text data and multimedia data is acquired, the page data processing apparatus 30 further includes a data packet receiving module for:
the receiving server returns a second response data packet based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In a possible implementation manner, when the first response packet includes metadata of the multimedia data, the page data processing apparatus 30 further includes a multimedia data acquisition module, configured to:
and acquiring second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identification.
In one possible implementation, when the metadata of the multimedia data includes the first metadata of the second multimedia data, the multimedia data acquisition module is configured to, when acquiring the second multimedia data based on the metadata of the multimedia data:
Sending a multimedia data acquisition request to a server, wherein the multimedia data acquisition request comprises first metadata;
the receiving server transmits second multimedia data based on the first metadata.
In one possible implementation, when the metadata of the multimedia data is the second metadata of all multimedia data, the multimedia data acquisition module is further configured to:
analyzing the second metadata from the first response data packet based on the analysis position information;
the parsed first multimedia data is determined based on the second metadata, and a multimedia data acquisition request is sent to the server based on metadata of the remaining part of the multimedia data other than the parsed first multimedia data.
The page data processing device according to the embodiments of the present disclosure may execute the page data processing method provided by the embodiments of the present disclosure, and its implementation principle is similar, and actions executed by each module in the page data processing device according to each embodiment of the present disclosure correspond to steps in the page data processing method according to each embodiment of the present disclosure, and detailed functional descriptions of each module in the page data processing device may be specifically referred to descriptions in the corresponding page data processing method shown in the foregoing, which are not repeated herein.
Based on the same principle as the method shown in fig. 2, there is also provided in an embodiment of the present disclosure a page data processing apparatus 40, as shown in fig. 9, the page data processing apparatus 40 may include:
the receiving module 41 is configured to receive a page data acquisition request sent by a terminal, where the page data acquisition request includes a page identifier and indication information, and the indication information is used to indicate a data acquisition mode;
a determining module 42, configured to determine, when the indication information indicates that text data and multimedia data are synchronously acquired, a first response packet based on the page identifier and the indication information, where the first response packet includes first page data and analysis location information of the first page data in the first response packet; the first page data includes text data and first multimedia data;
the sending module 43 is configured to send the first response packet to the terminal, so that the terminal parses the first response packet to obtain parsed location information, parses the first response packet based on the parsed location information to obtain first page data, and displays the first page data.
In a possible implementation manner, when the indication information indicates that metadata of text data and multimedia data is acquired, the page data processing apparatus 40 further includes a data packet transmitting module, configured to:
Sending a second response data packet to the terminal based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In a possible implementation manner, when the first response packet includes metadata of the multimedia data, the page data processing apparatus 40 further includes a multimedia data determining module, configured to:
and determining second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identification.
In a possible implementation, when the metadata of the multimedia data includes the first metadata of the second multimedia data, the page data processing apparatus 40 further includes a multimedia data transmitting module configured to:
receiving a multimedia data acquisition request sent by a terminal, wherein the multimedia data acquisition request comprises first metadata;
and determining second multimedia data based on the first metadata and transmitting the second multimedia data to the terminal.
The page data processing device according to the embodiments of the present disclosure may execute the page data processing method provided by the embodiments of the present disclosure, and its implementation principle is similar, and actions executed by each module in the page data processing device according to each embodiment of the present disclosure correspond to steps in the page data processing method according to each embodiment of the present disclosure, and detailed functional descriptions of each module in the page data processing device may be specifically referred to descriptions in the corresponding page data processing method shown in the foregoing, which are not repeated herein.
Referring now to fig. 10, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The execution subject of the technical solution of the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 601 described below, the memory may include at least one of a Read Only Memory (ROM) 602, a Random Access Memory (RAM) 603, and a storage device 608 described below, as follows:
as shown in fig. 10, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 10 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode; when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the receiving server based on the page identification and the indication information is received; the first response data packet comprises analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data; analyzing the first response data packet to obtain analysis position information; and analyzing the first response data packet based on the analysis position information to obtain first page data and displaying the first page data. Or alternatively
Receiving a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode; when the indication information indicates that text data and multimedia data are synchronously acquired, determining a first response data packet based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data; and sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain analysis position information, and analyzing the first response data packet to obtain first page data based on the analysis position information and displaying the first page data.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, the present disclosure provides a page data processing method, the method including:
sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the server based on the page identification and the indication information is received; the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
analyzing the first response data packet to obtain the analysis position information;
and analyzing the first response data packet based on the analysis position information to obtain the first page data and displaying the first page data.
In one possible implementation, when the indication information indicates that metadata of text data and multimedia data is acquired, the method further includes:
receiving a second response data packet returned by the server based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In one possible implementation, when metadata of multimedia data is included in the first response packet, the method further includes:
and acquiring second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identifier.
In one possible implementation, when the metadata of the multimedia data includes the first metadata of the second multimedia data, the acquiring the second multimedia data based on the metadata of the multimedia data includes:
sending a multimedia data acquisition request to a server, wherein the multimedia data acquisition request comprises the first metadata;
and receiving the second multimedia data sent by the server based on the first metadata.
In one possible implementation, when the metadata of the multimedia data is the second metadata of all multimedia data, the method further includes:
analyzing the second metadata from the first response data packet based on the analysis position information;
and determining the parsed first multimedia data based on the second metadata, and transmitting a multimedia data acquisition request to a server based on metadata of the rest of multimedia data except the parsed first multimedia data.
According to one or more embodiments of the present disclosure, the present disclosure provides a page data processing method, the method including:
receiving a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet is determined based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
and sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain the analysis position information, and analyzing the first response data packet based on the analysis position information to obtain and display the first page data.
According to one or more embodiments of the present disclosure, there is provided a page data processing apparatus, the apparatus comprising:
the system comprises a sending module, a server and a data acquisition module, wherein the sending module is used for sending a page data acquisition request to the server, the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
The receiving module is used for receiving a first response data packet returned by the server based on the page identification and the indication information when the indication information indicates that text data and multimedia data are synchronously acquired; the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
the analysis module is used for analyzing the first response data packet to obtain the analysis position information;
and the display module is used for analyzing the first page data from the first response data packet based on the analysis position information and displaying the first page data.
In one possible implementation manner, when the indication information indicates that metadata of text data and multimedia data is acquired, the page data processing apparatus further includes a data packet receiving module, configured to:
receiving a second response data packet returned by the server based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
In one possible implementation manner, when the first response data packet includes metadata of multimedia data, the page data processing apparatus further includes a multimedia data acquisition module, configured to:
and acquiring second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identifier.
In one possible implementation manner, when the metadata of the multimedia data includes the first metadata of the second multimedia data, the multimedia data acquisition module is configured to, when acquiring the second multimedia data based on the metadata of the multimedia data:
sending a multimedia data acquisition request to a server, wherein the multimedia data acquisition request comprises the first metadata;
and receiving the second multimedia data sent by the server based on the first metadata.
In one possible implementation manner, when the metadata of the multimedia data is the second metadata of all multimedia data, the multimedia data acquisition module is further configured to:
analyzing the second metadata from the first response data packet based on the analysis position information;
And determining the parsed first multimedia data based on the second metadata, and transmitting a multimedia data acquisition request to a server based on metadata of the rest of multimedia data except the parsed first multimedia data.
According to one or more embodiments of the present disclosure, there is provided a page data processing apparatus, the apparatus comprising:
the receiving module is used for receiving a page data acquisition request sent by the terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the determining module is used for determining a response data packet based on the page identifier and the first acquisition mode when the data acquisition mode indicated by the indication information is the first acquisition mode, wherein the response data packet comprises page data and analysis position information of the page data in the response data packet; the page data comprises text data and first multimedia data;
and the sending module is used for sending the response data packet to the terminal so that the terminal analyzes the response data packet to obtain the analysis position information, and analyzing the response data packet to obtain the page data based on the analysis position information and displaying the page data.
According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the page data processing method is executed.
According to one or more embodiments of the present disclosure, there is provided a computer readable medium for storing computer instructions which, when run on a computer, cause the computer to perform the page data processing method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (10)

1. A method of processing page data, the method comprising:
sending a page data acquisition request to a server, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
When the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet returned by the server based on the page identification and the indication information is received; the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
analyzing the first response data packet to obtain the analysis position information;
and analyzing the first response data packet based on the analysis position information to obtain the first page data and displaying the first page data.
2. The page data processing method according to claim 1, wherein when the instruction information instructs acquisition of metadata of text data and multimedia data, the method further comprises:
receiving a second response data packet returned by the server based on the page identification and the indication information, wherein the second response data packet comprises second page data; the second page data includes text data and metadata of all multimedia data.
3. The method of claim 1, wherein when metadata for multimedia data is included in the first response packet, the method further comprises:
And acquiring second multimedia data based on the metadata of the multimedia data, wherein the second multimedia data is the rest multimedia data except the first multimedia data corresponding to the page identifier.
4. A page data processing method according to claim 3, wherein when the metadata of the multimedia data includes the first metadata of the second multimedia data, the acquiring the second multimedia data based on the metadata of the multimedia data includes:
sending a multimedia data acquisition request to a server, wherein the multimedia data acquisition request comprises the first metadata;
and receiving the second multimedia data sent by the server based on the first metadata.
5. A method according to claim 3, wherein when the metadata of the multimedia data is the second metadata of the entire multimedia data, the method further comprises:
analyzing the second metadata from the first response data packet based on the analysis position information;
and determining the parsed first multimedia data based on the second metadata, and transmitting a multimedia data acquisition request to a server based on metadata of the rest of multimedia data except the parsed first multimedia data.
6. A method of processing page data, the method comprising:
receiving a page data acquisition request sent by a terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
when the indication information indicates that text data and multimedia data are synchronously acquired, a first response data packet is determined based on the page identification and the indication information, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
and sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain the analysis position information, and analyzing the first response data packet based on the analysis position information to obtain and display the first page data.
7. A page data processing apparatus, the apparatus comprising:
the system comprises a sending module, a server and a data acquisition module, wherein the sending module is used for sending a page data acquisition request to the server, the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
The receiving module is used for receiving a first response data packet returned by the server based on the page identification and the indication information when the indication information indicates that text data and multimedia data are synchronously acquired; the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
the analysis module is used for analyzing the first response data packet to obtain the analysis position information;
and the display module is used for analyzing the first page data from the first response data packet based on the analysis position information and displaying the first page data.
8. A page data processing apparatus, the apparatus comprising:
the receiving module is used for receiving a page data acquisition request sent by the terminal, wherein the page data acquisition request comprises a page identifier and indication information, and the indication information is used for indicating a data acquisition mode;
the determining module is used for determining a first response data packet based on the page identification and the indication information when the indication information indicates that text data and multimedia data are synchronously acquired, wherein the first response data packet comprises first page data and analysis position information of the first page data in the first response data packet; the first page data includes text data and first multimedia data;
And the sending module is used for sending the first response data packet to the terminal so that the terminal analyzes the first response data packet to obtain the analysis position information, and analyzing the first response data packet based on the analysis position information to obtain the first page data and displaying the first page data.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a page data processing method according to any one of claims 1 to 6 is performed.
10. A computer readable medium for storing computer instructions which, when run on a computer, cause the computer to perform the page data processing method of any of the preceding claims 1-6.
CN202010344959.2A 2020-04-27 2020-04-27 Page data processing method, device, electronic equipment and readable medium Active CN111581556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010344959.2A CN111581556B (en) 2020-04-27 2020-04-27 Page data processing method, device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010344959.2A CN111581556B (en) 2020-04-27 2020-04-27 Page data processing method, device, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN111581556A CN111581556A (en) 2020-08-25
CN111581556B true CN111581556B (en) 2023-04-25

Family

ID=72127149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010344959.2A Active CN111581556B (en) 2020-04-27 2020-04-27 Page data processing method, device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN111581556B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109684580A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of methods of exhibiting and electronic equipment of dynamic page
CN110851757A (en) * 2019-10-12 2020-02-28 平安普惠企业管理有限公司 Page resource loading method and terminal
CN111061974A (en) * 2019-11-26 2020-04-24 贝壳技术有限公司 Client page loading method and device and page loading method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9756108B2 (en) * 2012-05-29 2017-09-05 Google Inc. Preloading resources of a web page
CN106997351B (en) * 2016-01-22 2021-03-02 斑马智行网络(香港)有限公司 Resource cache management method, system and device
US10997261B2 (en) * 2018-09-06 2021-05-04 Google Llc System and method that facilitate display responsive message rendering on client device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109684580A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of methods of exhibiting and electronic equipment of dynamic page
CN110851757A (en) * 2019-10-12 2020-02-28 平安普惠企业管理有限公司 Page resource loading method and terminal
CN111061974A (en) * 2019-11-26 2020-04-24 贝壳技术有限公司 Client page loading method and device and page loading method and system

Also Published As

Publication number Publication date
CN111581556A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
CN112272226B (en) Picture loading method and device and readable storage medium
US20220391229A1 (en) Icon updating method and apparatus, and electronic device
CN110781437A (en) Method and device for acquiring webpage image loading duration and electronic equipment
CN112053286B (en) Image processing method, device, electronic equipment and readable medium
CN110765386A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN110619101B (en) Method and apparatus for processing information
CN111352872A (en) Execution engine, data processing method, apparatus, electronic device, and medium
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
WO2022218028A1 (en) Page loading method and apparatus, and device and storage medium
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN112948108B (en) Request processing method and device and electronic equipment
CN112333462A (en) Live broadcast room page jumping method, returning device and electronic equipment
CN111259290A (en) Information display method and device, electronic equipment and computer readable medium
CN111405342B (en) Rich text message display method, device, system, medium and electronic equipment
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
CN110730251A (en) Method, device, medium and electronic equipment for analyzing domain name
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable 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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant