CN105993012B - Network resource processing method and device and terminal - Google Patents

Network resource processing method and device and terminal Download PDF

Info

Publication number
CN105993012B
CN105993012B CN201480074586.4A CN201480074586A CN105993012B CN 105993012 B CN105993012 B CN 105993012B CN 201480074586 A CN201480074586 A CN 201480074586A CN 105993012 B CN105993012 B CN 105993012B
Authority
CN
China
Prior art keywords
attribute information
network resource
terminal
resource data
display mode
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
CN201480074586.4A
Other languages
Chinese (zh)
Other versions
CN105993012A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105993012A publication Critical patent/CN105993012A/en
Application granted granted Critical
Publication of CN105993012B publication Critical patent/CN105993012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

the embodiment of the invention discloses a network resource processing method, a device and a terminal, wherein the method comprises the following steps: acquiring a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data; acquiring attribute information carrying a three-dimensional identifier from attribute information corresponding to each piece of network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal; when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information. By adopting the method and the device, the loaded 3D resource can be normally displayed by the terminal.

Description

network resource processing method and device and terminal
Technical Field
the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for processing network resources.
background
The current 3D (3-dimensional) display technology is classified in a variety of ways, but the most basic principle is similar, namely that different pictures are received by the left and right of human eyes respectively, and then the image information is superposed and reproduced by the brain to form an image with a stereoscopic effect. The current 3D display modes mainly include two modes: glasses type and naked eye type, wherein the glasses type mainly includes color difference type, polarization type, active shutter type, etc., and the naked eye type mainly includes light barrier type, lenticular lens type, directional light source type, etc.
at present, some webpages can provide 3D resources, and a terminal browser can directly load the 3D resources provided by the webpages, but a 3D display mode supported by a terminal may be different from a 3D display mode corresponding to the loaded 3D resources, which may cause the terminal to be unable to normally display the loaded 3D resources.
disclosure of Invention
The embodiment of the invention provides a network resource processing method, a network resource processing device and a terminal, which can enable the terminal to normally display loaded 3D resources.
a first aspect of the present invention provides a method for processing network resources, including:
Acquiring a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data;
Acquiring attribute information carrying a three-dimensional identifier from attribute information corresponding to each piece of network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
In a first possible implementation manner, the method further includes:
and when the attribute information carrying the three-dimensional identification does not have attribute information matched with the three-dimensional display mode of the terminal, selecting second target attribute information from the attribute information carrying the two-dimensional identification, and loading and displaying network resource data corresponding to the second target attribute information.
with reference to the first aspect, in a second possible implementation manner, after the step of selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information when attribute information matched with the terminal three-dimensional display manner exists in the attribute information carrying the three-dimensional identifier, and displaying the loaded network resource data according to the three-dimensional display manner carried in the first target attribute information, the method further includes:
Detecting terminal working information, wherein the terminal working information comprises at least one of a network type, an electric quantity residual value and an interface display state;
when the terminal working information is detected to meet the switching condition, switching the displayed network resource data corresponding to the first target attribute information into network resource data corresponding to second target attribute information;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
with reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, when attribute information matched with the terminal three-dimensional display manner exists in the attribute information carrying the three-dimensional identifier, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display manner carried in the first target attribute information, the method further includes:
acquiring brightness information and refresh rate information corresponding to a three-dimensional display mode carried by the first target attribute information;
And adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
with reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner, when attribute information matched with the terminal three-dimensional display manner exists in the attribute information carrying the three-dimensional identifier, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display manner carried in the first target attribute information, the method includes:
When attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, acquiring resolution information corresponding to the three-dimensional display mode carried in the matched attribute information;
selecting first target attribute information from the matched attribute information according to the resolution information, loading network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to a three-dimensional display mode carried in the first target attribute information.
with reference to the second possible implementation manner of the first aspect, in a fifth possible implementation manner, the method further includes:
And storing the network address corresponding to the network resource data corresponding to the first target attribute information and the network address corresponding to the network resource data corresponding to the second target attribute information so as to acquire the corresponding network resource data according to the stored network addresses when switching the network resource data.
the second aspect of the present invention provides a network resource processing apparatus, applied to a terminal, including:
The first acquisition module is used for acquiring a three-dimensional display mode of the terminal and attribute information corresponding to each network resource data in at least one network resource data;
the matching module is used for acquiring attribute information carrying a three-dimensional identifier from the attribute information corresponding to each network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
And the loading display module is used for selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information when the attribute information carrying the three-dimensional identification has attribute information matched with the three-dimensional display mode of the terminal, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
In a first possible implementation form of the method,
and the loading display module is further configured to select second target attribute information from the attribute information carrying the two-dimensional identifier and load and display network resource data corresponding to the second target attribute information when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier.
with reference to the second aspect, in a second possible implementation manner, the method further includes:
the terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting terminal working information, and the terminal working information comprises at least one of a network type, an electric quantity residual value and an interface display state;
the switching module is used for switching the displayed network resource data corresponding to the first target attribute information into the network resource data corresponding to the second target attribute information when the terminal working information is detected to meet the switching condition;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
with reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner, the method further includes:
The second obtaining module is used for obtaining brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information;
and the adjusting module is used for adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the loading display module includes:
A resolution obtaining unit, configured to obtain, when attribute information that matches the three-dimensional display mode of the terminal exists in the attribute information with the three-dimensional identifier, resolution information corresponding to the three-dimensional display mode that is carried in the matching attribute information;
and the resource loading and displaying unit is used for selecting first target attribute information from the matched attribute information according to the resolution information, loading network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to a three-dimensional display mode carried in the first target attribute information.
with reference to the second possible implementation manner of the second aspect, in a fifth possible implementation manner, the method further includes:
And the storage module is used for storing the network address corresponding to the network resource data corresponding to the first target attribute information and the network address corresponding to the network resource data corresponding to the second target attribute information, so that the switching module can acquire the corresponding network resource data according to the stored network address when switching the network resource data.
A third aspect of the present invention provides a terminal, including: a processor, a communication interface, and a display;
The communication interface is used for acquiring a three-dimensional display mode of the terminal and attribute information corresponding to each network resource data in at least one network resource data;
the processor is configured to acquire attribute information carrying a three-dimensional identifier from the attribute information corresponding to each piece of network resource data, and match a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
the processor is further configured to select first target attribute information from the matched attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier;
The communication interface is further configured to load network resource data corresponding to the first target attribute information;
And the display is used for displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
in a first possible implementation form of the method,
the processor is further configured to select second target attribute information from the attribute information carrying the two-dimensional identifier when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier;
the communication interface is further configured to load network resource data corresponding to the second target attribute information;
the display is further configured to display network resource data corresponding to the second target attribute information.
With reference to the third aspect, in a second possible implementation manner,
The processor is further configured to detect terminal working information, where the terminal working information includes at least one of a network type, an electric quantity remaining value, and an interface display state, and when it is detected that the terminal working information satisfies a switching condition, switch the displayed network resource data corresponding to the first target attribute information to network resource data corresponding to the second target attribute information;
The communication interface is further configured to load network resource data corresponding to the second target attribute information;
The display is further configured to display network resource data corresponding to the second target attribute information;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
with reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner,
the processor is further configured to acquire brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information, and adjust the brightness and the refresh rate of the display according to the brightness information and the refresh rate information.
with reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, in a fourth possible implementation manner,
the processor is further configured to, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, acquire resolution information corresponding to the three-dimensional display mode carried in the matched attribute information, and select first target attribute information from the matched attribute information according to the resolution information.
with reference to the second possible implementation manner of the third aspect, in a fifth possible implementation manner, the method further includes: a memory;
the memory is used for storing a network address corresponding to the network resource data corresponding to the first target attribute information and a network address corresponding to the network resource data corresponding to the second target attribute information;
the communication interface is specifically configured to obtain corresponding network resource data according to the stored network address.
as can be seen from the above, in the embodiment of the present invention, by obtaining a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data, and when attribute information matching the three-dimensional display mode of the terminal exists in the attribute information carrying a three-dimensional identifier, first target attribute information may be obtained in the matching attribute information, and network resource data corresponding to the first target attribute information is loaded, so as to ensure that a 3D display mode supported by the terminal is the same as a 3D display mode corresponding to the loaded 3D resource, thereby enabling the terminal to normally display the loaded 3D resource.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a network resource processing method according to an embodiment of the present invention;
Fig. 2 is a flowchart illustrating another network resource processing method according to an embodiment of the present invention;
Fig. 3 is a flowchart illustrating a method for processing network resources according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network resource processing apparatus according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of another network resource processing apparatus according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a loading display module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminal related to the embodiment of the invention can comprise: terminal devices such as a computer, a tablet computer, a smart phone, a notebook computer, a palm computer and a Mobile Internet Device (MID); meanwhile, the terminal provided by the embodiment of the invention also has a 3D display function.
Referring to fig. 1, a flow diagram of a network resource processing method according to an embodiment of the present invention is shown, where the method includes:
S101, acquiring a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data;
Specifically, when a browser in a terminal requests to load a page including a 3D resource, the terminal may obtain a terminal three-dimensional display mode through the browser, where the terminal three-dimensional display mode refers to a three-dimensional display mode that can be supported by the terminal, the terminal three-dimensional display mode may be preset by the terminal, and a format of the terminal three-dimensional display mode may be 3D- (display type) - (specific display mode), for example, the terminal three-dimensional display mode may include at least one of 3D-Glass-Ana, 3D-Glass-Pol, 3D-Glass-Act, 3D-Eye-Bar, 3D-Eye-Len, and 3D-Eye-Dir, where Glass represents a glasses type, Eye represents a naked Eye type, Ana represents a color difference type, and Pol represents a polarization type, act denotes an active shutter type, Bar denotes a light barrier type, Len denotes a lenticular lens type, and Dir denotes a directional light source type. Or, the format of the terminal three-dimensional display mode can be 3D- (display type): (specific display mode), for example, the three-dimensional display mode of the terminal may include 3D-Glass: ana, 3D-Glass: pol, 3D-Glass: act, 3D-Eye: bar, 3D-Eye: len, 3D-Eye: at least one of Dir.
the terminal can acquire attribute information corresponding to each network resource data in at least one network resource data in a current page requested to be loaded through a browser while acquiring the three-dimensional display mode of the terminal. For example, if the requested page is a picture, the picture may correspond to a plurality of network resource data, and the format, the dimension, and other attributes of the picture displayed by each network resource data may be different from each other. On the background server side of the web page, a three-dimensional identifier or a two-dimensional identifier may be added in advance to the attribute information, and a specific three-dimensional display manner may be continuously added to the attribute information to which the three-dimensional identifier is added, where the attribute information may be a source element in an HTML (hypertext Markup language) standard. On the background server side of the web page, there may be two adding ways as follows to add the dimension identifier and the three-dimensional display way in the attribute information:
The first addition mode is as follows: a three-dimensional display mode can be added to Meida Query in the attribute information by extending the Meida Query (media characteristics), and the format of the three-dimensional display mode in the Meida Query can be the same as that of the three-dimensional display mode of the terminal, and is not described here again. Furthermore, a sourcetype attribute is added to the attribute information, so that a three-dimensional identifier or a two-dimensional identifier is added to the sourcetype attribute, and the network resource data corresponding to the attribute information can be distinguished as a 3D resource or a 2D (2-dimensional) resource by adding the dimension identifier. For example, the attribute information acquired by the terminal may be < source media ═ and (3D-Eye: Bar) "src ═ greater. jpg" source type ═ 3D ">, where (3D-Eye: Bar) is a three-dimensional display mode added in Meida Query and" 3D "indicates that a three-dimensional identifier is added in the source type attribute. For another example, the attribute information acquired by the terminal may be < source media ═ "(max-width: 320px)," src ═ means "med. jpg," source type ═ 2D ">, where" 2D "indicates that a two-dimensional identifier is added to the source type attribute, that is, indicates that the network resource data corresponding to the attribute information is a 2D resource.
The second addition mode is as follows: a viewdtype attribute can be added to the attribute information, that is, the viewdtype attribute is added to the source element, and when the viewdtype attribute is empty, it indicates that a two-dimensional identifier is added to the attribute information, so as to indicate that the network resource data corresponding to the attribute information is a 2D resource; when the viewdtype attribute is not empty, it indicates that a three-dimensional identifier is added to the attribute information to indicate that the network resource data corresponding to the attribute information is a 3D resource, and the content added to the viewdtype attribute is a three-dimensional display mode, and a format of the three-dimensional display mode in the viewdtype attribute may be 3D (display type) (specific display mode), for example, a format of the three-dimensional display mode in the viewdtype attribute may be any one of 3DGlassAna, 3DGlassPol, 3DGlassAct, 3DEyeBar, 3DEyeLen, and 3 DEyeDir. For example, the attribute information acquired by the terminal may be < source media ═ "(max-width: 320 px)" src ═ med.jpg "viewdtype ═ 3 DGlassPol" >, where the viewdtype attribute is not null, it is described that the viewdtype attribute in the attribute information represents a three-dimensional identifier, that is, the attribute information carries a three-dimensional identifier, and the specific content "3 DGlassPol" in the viewdtype attribute represents a three-dimensional display mode.
S102, acquiring attribute information carrying a three-dimensional identifier from the attribute information corresponding to each network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
Specifically, after the terminal acquires the attribute information corresponding to each piece of network resource data, the terminal may traverse each piece of attribute information through a browser to acquire the attribute information carrying the three-dimensional identifier, and extract the three-dimensional display mode in the attribute information carrying the three-dimensional identifier. If each attribute information is set by the first addition manner in S101, the browser may detect the sourcetype attribute in each attribute information during traversal of each attribute information to obtain attribute information of sourcetype ═ 3D ", that is, attribute information carrying a three-dimensional identifier, and extract the three-dimensional display manner in the media query conditional statement from the attribute information of sourcetype ═ 3D". If each attribute information is set by the second addition method in S101, the browser may detect whether the viewdtype attribute in each attribute information is empty during the traversal of each attribute information, to obtain attribute information whose viewdtype attribute is not empty, that is, to obtain attribute information carrying a three-dimensional identifier, and the browser reads the three-dimensional display manner in the viewdtype attribute from the attribute information whose viewdtype attribute is not empty.
After the browser acquires the three-dimensional display mode in the attribute information carrying the three-dimensional identifier, the browser can match the three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal. For example, if there are two pieces of attribute information carrying three-dimensional identifiers, the three-dimensional display mode in the attribute information a is 3D-Eye: bar, the three-dimensional display mode in the attribute information B is 3D-Glass: act, the three-dimensional display mode of the terminal is 3D-Eye: bar, the three-dimensional display mode in the attribute information A is successfully matched with the terminal three-dimensional display mode, and the three-dimensional display mode in the attribute information B is unsuccessfully matched with the terminal three-dimensional display mode.
s103, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
Specifically, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, that is, it is stated that the three-dimensional display mode in at least one attribute information is the same as the terminal three-dimensional display mode, at this time, the terminal may select, through the browser, first target attribute information from the matched attribute information, load network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information. And the network resource data corresponding to the first target attribute information is a 3D resource which has the same three-dimensional display mode as the terminal and meets the basic display condition of the terminal.
If the matched attribute information is set by the first adding manner in the above S101, the specific process of acquiring the first target attribute information is as follows: and judging whether other attribute values in the media query in the matched attribute information accord with the basic display condition of the terminal, and selecting the attribute information of which the other attribute values all accord with the basic display condition of the terminal from the matched attribute information as first target attribute information, wherein the other attribute values in the media query comprise all attribute values except for a three-dimensional display mode in the media query. And when the number of the attribute information of which the other attribute values in the media query in the matched attribute information all accord with the basic display condition of the terminal exceeds 1, selecting the attribute information which is arranged at the top and is matched with the basic display condition as first target attribute information. For example, if certain matching attribute information is < source media ═ and (3D-Eye: Bar) "src ═ large.jpg" source type ═ 3D >, then the other attribute value in the media query in the attribute information is (min-width: 480 px). The process of determining whether other attribute values in the media query in the attribute information meet the basic display condition of the terminal is the prior art, and is not described herein again.
if the matched attribute information is set by the second adding manner in the above S101, the specific process of acquiring the first target attribute information is as follows: and judging whether the attribute values corresponding to the media query in the matched attribute information accord with the basic display condition of the terminal, and selecting the attribute information of which the attribute values correspond to the basic display condition of the terminal from the matched attribute information to serve as first target attribute information. And when the number of the attribute information of which the attribute values corresponding to the media query in the matched attribute information all accord with the basic display condition of the terminal exceeds 1, selecting the attribute information which is arranged at the top and is matched with the basic display condition as first target attribute information. For example, if certain matching attribute information is < source media ═ max-width: 320px) "src ═ medium.jpg" viewdtype ═ 3DGlassPol >, the attribute value corresponding to the media query in the attribute information is (max-width: 320px), where a process of determining whether the attribute value (max-width: 320px) corresponding to the media query meets the basic display condition of the terminal is the prior art, and is not described here again.
optionally, when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier, selecting second target attribute information from the attribute information carrying the two-dimensional identifier, and loading and displaying network resource data corresponding to the second target attribute information, so that the terminal can load and display a 2D resource when the terminal cannot find a proper 3D resource; the specific process of acquiring the second target attribute information is as follows: and judging whether the attribute values corresponding to the media query in the attribute information carrying the two-dimensional identifier meet the basic display condition of the terminal, and selecting the attribute information of which the attribute values corresponding to the media query all meet the basic display condition of the terminal from the attribute information carrying the two-dimensional identifier to serve as second target attribute information. For example, if certain attribute information carrying a two-dimensional identifier is < source media ═ "(max-width: 320 px)" src ═ means jpg "source type ═ 2D" >, the attribute value corresponding to the media query in the attribute information is max-width: 320 px. The process of determining whether the attribute value corresponding to the media query in the attribute information carrying the two-dimensional identifier meets the basic display condition of the terminal is the prior art, and is not described herein again.
for example, the three-dimensional display mode of the terminal is 3D-Eye: bar, when the terminal requests to load a certain picture in a certain page, acquiring the following 4 pieces of attribute information corresponding to the picture:
1、<source media=″(min-width:480px)and(3D-Eye:Bar)″src=″large.jpg″ sourcetype=″3D″>
2、<source media=″(min-width:540px)and(3D-Eye:Bar)″src=″large.jpg″ sourcetype=″3D″>
3、<source media=“(max-width:320px)″src=″med.jpg″sourcetype=“2D″>
4. The terminal can traverse the 4 pieces of attribute information through a browser to acquire attribute information carrying a three-dimensional identifier, wherein the first attribute information and the second attribute information both comprise a source type of "3D", and therefore the first attribute information and the second attribute information are both attribute information carrying a three-dimensional identifier. The browser can extract the three-dimensional display modes in the media query of the first attribute information and the second attribute information, and the three-dimensional display modes of the first attribute information and the second attribute information are both 3D-Eye: bar, the browser can detect that the three-dimensional display modes of the first attribute information and the second attribute information are matched with the three-dimensional display mode of the terminal. The browser further detects whether other attribute values in the media query in the first attribute information meet basic display conditions of the terminal, namely detects a min-width: 480px is in accordance with the basic display condition of the terminal, if so, the first attribute information is determined as first target attribute information, network resource data corresponding to the first attribute information is loaded, and the loaded network resource data is displayed according to a three-dimensional display mode carried by the first attribute information; if the other attribute values in the media query in the first attribute information do not accord with the basic display condition of the terminal, detecting whether the other attribute values in the media query in the second attribute information accord with the basic display condition of the terminal, namely detecting min-width: 540px is in accordance with the basic display condition of the terminal, if so, the second attribute information is determined as the first target attribute information, so as to load the network resource data corresponding to the second attribute information, and display the loaded network resource data according to the three-dimensional display mode carried by the second attribute information; if the other attribute values in the media query in the second attribute information do not meet the basic display condition of the terminal, one of the third attribute information and the fourth attribute information carrying the two-dimensional identifier can be selected as second target attribute information, and network resource data corresponding to the second target attribute information is loaded and displayed.
As can be seen from the above, in the embodiment of the present invention, by obtaining the three-dimensional display mode of the terminal and the attribute information corresponding to each network resource data in at least one network resource data, and when the attribute information carrying the three-dimensional identifier has the attribute information matching the three-dimensional display mode of the terminal, the first target attribute information may be obtained in the matching attribute information, and the network resource data corresponding to the first target attribute information is loaded, so as to ensure that the 3D display mode supported by the terminal is the same as the 3D display mode corresponding to the loaded 3D resource, thereby enabling the terminal to normally display the loaded 3D resource.
referring to fig. 2 again, it is a schematic flow chart of another network resource processing method provided in the embodiment of the present invention, where the method may include:
S201, acquiring a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data;
S202, acquiring attribute information carrying a three-dimensional identifier from the attribute information corresponding to each network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
S203, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
for specific implementation of the steps S201 to S203, reference may be made to the specific implementation of the steps S101 to S103 in the embodiment corresponding to fig. 1, which is not described herein again.
S204, detecting terminal working information, wherein the terminal working information comprises at least one of a network type, an electric quantity residual value and an interface display state;
specifically, after the terminal loads and displays the network resource data corresponding to the first target attribute information through a browser, the browser may detect terminal working information in real time or periodically, where the terminal working information includes at least one of a network type, an electric quantity remaining value, and an interface display state. The network type may include two types, namely, a charging network type and a free network type, the charging network type may include a charging network such as 2G (2-Generation, second Generation mobile communication technology), 3G (3-Generation, third Generation mobile communication technology), 4G (4-Generation, fourth Generation mobile communication technology), and the free network type may include a free network such as wifi (WIreless Fidelity). The interface display state comprises a full-screen display state and a non-full-screen display state.
s205, when it is detected that the terminal working information meets the switching condition, switching the displayed network resource data corresponding to the first target attribute information into network resource data corresponding to the second target attribute information;
specifically, when the terminal working information is a network type, it is detected whether the network type meets a switching condition, that is, it is detected whether the network type is switched from a free network type to a charged network type, and if it is detected that the network type is switched from the free network type to the charged network type, that is, it indicates that the network type meets the switching condition, at this time, the terminal may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information through a browser. The second target attribute information is obtained from the attribute information carrying the two-dimensional identifier, and a specific process of obtaining the second target attribute information may refer to the description of the second target attribute information in the embodiment corresponding to fig. 1, which is not described herein again. Optionally, after the browser loads and displays the network resource data corresponding to the second target attribute information, the browser may continue to detect the network type, and when it is detected that the network type is switched from the charging network type to the free network type, the network type may also meet a switching condition, and at this time, the terminal may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information through the browser.
when the terminal working information is an electric quantity residual value, whether the electric quantity residual value meets a switching condition is detected, namely whether the electric quantity residual value is smaller than a preset electric quantity threshold value is detected, if the electric quantity residual value is smaller than the preset electric quantity threshold value, the electric quantity residual value meets the switching condition, and at the moment, the terminal can switch the displayed network resource data corresponding to the first target attribute information into the network resource data corresponding to the second target attribute information through a browser. Optionally, after the browser loads and displays the network resource data corresponding to the second target attribute information, the browser may continue to detect the remaining value of the electric quantity, and when the terminal is charged and it is detected that the remaining value of the electric quantity is restored to the preset electric quantity threshold value, the remaining value of the electric quantity may also satisfy a switching condition, and at this time, the terminal may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information through the browser.
When the terminal working information is in an interface display state, detecting whether the interface display state meets a switching condition, namely detecting whether the interface display state is switched from a full-screen display state to a non-full-screen display state, if the interface display state is switched from the full-screen display state to the non-full-screen display state, indicating that the interface display state meets the switching condition, and at the moment, the terminal can switch the displayed network resource data corresponding to the first target attribute information into the network resource data corresponding to the second target attribute information through a browser. Optionally, after the browser loads and displays the network resource data corresponding to the second target attribute information, the browser may continue to detect the interface display state, and when it is detected that the interface display state is switched from the non-full-screen display state to the full-screen display state, the interface display state may also meet a switching condition, and at this time, the terminal may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information through the browser.
preferably, the terminal working information may simultaneously include a network type, an electric quantity remaining value and an interface display state, and when the browser detects that the network type is a charging network type, or the electric quantity remaining value is smaller than a preset electric quantity threshold value, or the interface display state is a non-full screen display state, the browser may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information. And when the browser detects that the network type is a free network type, the residual value of the electric quantity is greater than a preset electric quantity threshold value, and the interface display state is a full-screen display state, switching the displayed network resource data corresponding to the second target attribute information into the network resource data corresponding to the first target attribute information.
Optionally, before the step S201, the browser may start to detect the terminal working information, and when it is detected that the network type in the terminal working information is a free network type, the remaining value of the electric quantity is greater than a preset electric quantity threshold value, and the interface display state is a full screen display state, the browser starts to execute the step S201; when the network type in the terminal working information is detected to be a charging network type, or the remaining value of the electric quantity is smaller than a preset electric quantity threshold value, or the interface display state is a non-full screen display state, the browser directly selects second target attribute information from attribute information carrying two-dimensional identification, loads and displays network resource data corresponding to the second target attribute information, and when the terminal working information meets a switching condition, the browser switches the displayed network resource data corresponding to the second target attribute information into network resource data corresponding to the first target attribute information.
optionally, when the browser loads the network resource data corresponding to the first target attribute information, the browser may store a network address corresponding to the network resource data corresponding to the first target attribute information; similarly, when the browser loads the network resource data corresponding to the second target attribute information, the browser may store the network address corresponding to the network resource data corresponding to the second target attribute information, so as to obtain the corresponding network resource data according to the stored network address when switching the network resource data. For example, before the browser switches the displayed network resource data corresponding to the second target attribute information to the network resource data corresponding to the first target attribute information, the browser may first check whether the terminal has a network address corresponding to the network resource data corresponding to the first target attribute information, and if so, the browser may obtain the network resource data corresponding to the first target attribute information according to the stored network address corresponding to the network resource data corresponding to the first target attribute information, so that the browser does not need to obtain the first target attribute information from the attribute information carrying the three-dimensional identifier again, and thus the browser may switch between the 2D resource and the 3D resource more quickly.
As can be seen from the above, in the embodiment of the present invention, by obtaining a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data, and when attribute information matching the three-dimensional display mode of the terminal exists in the attribute information carrying a three-dimensional identifier, first target attribute information may be obtained in the matching attribute information, and network resource data corresponding to the first target attribute information is loaded, so as to ensure that a 3D display mode supported by the terminal is the same as a 3D display mode corresponding to the loaded 3D resource, thereby enabling the terminal to normally display the loaded 3D resource; meanwhile, through detecting the network type, the electric quantity residual value and the interface display state, the terminal can switch the 2D resources and the 3D resources under different conditions, the terminal can save flow and improve the operation efficiency, and the terminal can switch the 2D resources and the 3D resources more quickly through storing the network address corresponding to the network resource data corresponding to the first target attribute information and the network address corresponding to the network resource data corresponding to the second target attribute information.
referring to fig. 3 again, it is a schematic flowchart of another network resource processing method provided in the embodiment of the present invention, where the method may include:
s301, acquiring a three-dimensional display mode of the terminal and attribute information corresponding to each network resource data in at least one network resource data;
s302, acquiring attribute information carrying a three-dimensional identifier from the attribute information corresponding to each network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
For specific implementation of the steps S301 to S302, reference may be made to the specific implementation of the steps S101 to S102 in the corresponding embodiment of fig. 1, which is not described herein again.
S303, when attribute information matched with the three-dimensional display mode of the terminal exists in the attribute information carrying the three-dimensional identification, acquiring resolution information corresponding to the three-dimensional display mode carried in the matched attribute information;
specifically, the terminal may store a list of correspondence relationships that each three-dimensional display mode affects a screen in advance, where the list may be referred to as the following table 1:
display mode Brightness of light Resolution ratio refresh rate
color difference type is not changed is not changed /
Polarizing type Reduction of picture brightness resolution halved A higher refresh rate is required
Active shutter type is not changed Is not changed a higher refresh rate is required
light barrier type reduction of picture brightness Is not changed /
lenticular lens type is not changed resolution halved /
Directional light source type is not changed is not changed /
TABLE 1
As can be seen from table 1, the color difference type three-dimensional display mode does not affect the brightness and resolution of the picture, and has no specific requirement on the refresh rate; the polarization type three-dimensional display mode can reduce the brightness of the picture, reduce the resolution by half and also require higher refresh rate; the active shutter type three-dimensional display mode does not affect the brightness and the resolution of a picture, but needs higher refresh rate; the light barrier type can reduce the brightness of the picture, but does not influence the resolution, and has no specific requirement on the refresh rate; the lenticular lens type does not affect the brightness of a picture, but reduces the resolution by half, and has no specific requirement on the refresh rate; the directional light source type does not affect the brightness and resolution of the picture, and has no specific requirement on the refresh rate.
When attribute information matched with the three-dimensional display mode of the terminal exists in the attribute information carrying the three-dimensional identifier, the browser of the terminal can acquire resolution information corresponding to the three-dimensional display mode carried in the matched attribute information in the table 1. For example, if the three-dimensional display mode carried in the matched attribute information is a polarization mode, it may be obtained that the resolution information corresponding to the polarization mode is "resolution halved", that is, it is described that the three-dimensional display mode carried in the matched attribute information may halve the screen resolution; if the three-dimensional display mode carried in the matched attribute information is the color difference mode, it can be obtained that the resolution information corresponding to the color difference mode is unchanged, that is, it indicates that the three-dimensional display mode carried in the matched attribute information does not affect the resolution of the picture.
s304, selecting first target attribute information from the matched attribute information according to the resolution information, loading network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to a three-dimensional display mode carried in the first target attribute information;
specifically, after the browser of the terminal acquires resolution information corresponding to the three-dimensional display mode carried in the matched attribute information, first target attribute information may be selected from the matched attribute information according to the resolution information, and network resource data corresponding to the first target attribute information is loaded. When the resolution information is "unchanged", the terminal may select the first target attribute information from the matched attribute information according to the method for acquiring the first target attribute information in step S103 in the embodiment corresponding to fig. 1, load the network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
When the resolution information is 'resolution halved', the browser of the terminal may select at least one attribute information which is matched with the attribute information and meets the basic display condition, then select the attribute information with the maximum resolution corresponding to the network resource data from the at least one attribute information which is matched with the attribute information and meets the basic display condition as the first target attribute information, compress the network resource data corresponding to the first target attribute information, load the compressed network resource data, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information, and the terminal may compensate for the influence caused by 'resolution halved' to a greater extent by selecting a 3D resource with a greater resolution to load. The specific process of selecting at least one attribute information that matches and meets the basic display condition may refer to S103 in the embodiment corresponding to fig. 1, which is not described herein again.
s305, acquiring brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information;
Specifically, while the browser of the terminal loads the network resource data corresponding to the first target attribute information, the browser of the terminal may further obtain, from the table 1, brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information.
S306, adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information;
specifically, when the brightness information acquired by the browser of the terminal is "image brightness reduction", the browser of the terminal can increase the brightness of a terminal screen by calling a terminal system interface; when the brightness information acquired by the browser of the terminal is 'unchanged', the browser of the terminal does not need to adjust the brightness of a terminal screen; when the refresh rate information acquired by the browser of the terminal is 'high refresh rate required', the browser of the terminal can improve the refresh rate of a terminal screen by calling a terminal system interface; when the refresh rate information acquired by the browser of the terminal is "/", the browser of the terminal does not need to adjust the refresh rate of the terminal screen.
Optionally, when the 3D resource loses focus or stops loading and playing, the browser of the terminal may restore the brightness and refresh rate of the terminal screen to the initial state by calling the terminal system interface.
optionally, while performing S305 and S306, S204 and S205 in the embodiment corresponding to fig. 2 may be performed together, that is, the browser of the terminal may not only adjust the terminal according to the brightness information and the refresh rate information corresponding to the three-dimensional display mode, but also switch the 2D resource and the 3D resource according to the terminal operation information.
as can be seen from the above, in the embodiment of the present invention, by obtaining a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data, and when attribute information matching the three-dimensional display mode of the terminal exists in the attribute information carrying a three-dimensional identifier, first target attribute information may be obtained in the matching attribute information according to resolution information, and network resource data corresponding to the first target attribute information is loaded, so as to ensure that a 3D display mode supported by the terminal is the same as a 3D display mode corresponding to the loaded 3D resource, so that the terminal may normally display the loaded 3D resource, and the influence of the three-dimensional display mode on the resolution may be compensated; meanwhile, the brightness and the refresh rate of the terminal screen can be adjusted according to the brightness information and the refresh rate information so as to enhance the display effect.
Referring to fig. 4, which is a schematic structural diagram of a network resource processing apparatus according to an embodiment of the present invention, the network resource processing apparatus 1 may be applied to a terminal, the network resource processing apparatus 1 may be a browser, and the network resource processing apparatus 1 may include: the system comprises a first acquisition module 10, a matching module 20 and a loading display module 30;
The first obtaining module 10 is configured to obtain a three-dimensional display mode of the terminal and attribute information corresponding to each network resource data in at least one network resource data;
Specifically, when the network resource processing apparatus 1 requests to load a page including a 3D resource, the first obtaining module 10 may obtain a three-dimensional display mode supported by a terminal where the network resource processing apparatus 1 is located, that is, a terminal three-dimensional display mode, where the terminal three-dimensional display mode may be preset by the network resource processing apparatus 1, and a format of the terminal three-dimensional display mode may be 3D- (display type) - (specific display mode), for example, the terminal three-dimensional display mode may include at least one of 3D-Glass-Ana, 3D-Glass-Pol, 3D-Glass-Act, 3D-Eye-Bar, 3D-Eye-Len, and 3D-Eye-Dir, where Glass represents glasses type and Eye represents naked Eye type, ana represents a color difference type, Pol represents a polarization type, Act represents an active shutter type, Bar represents a light barrier type, Len represents a lenticular lens type, and Dir represents a directional light source type. Or, the format of the terminal three-dimensional display mode can be 3D- (display type): (specific display mode), for example, the three-dimensional display mode of the terminal may include 3D-Glass: ana, 3D-Glass: pol, 3D-Glass: act, 3D-Eye: bar, 3D-Eye: len, 3D-Eye: at least one of Dir.
The first obtaining module 10 may obtain attribute information corresponding to each network resource data in at least one network resource data in a current page requested to be loaded while obtaining the three-dimensional display mode of the terminal. For example, if the requested page is a picture, the picture may correspond to a plurality of network resource data, and the format, the dimension, and other attributes of the picture displayed by each network resource data may be different from each other. On the background server side of the webpage, a three-dimensional identifier or a two-dimensional identifier can be added in the attribute information in advance, and a specific three-dimensional display mode is continuously added in the attribute information added with the three-dimensional identifier, wherein the attribute information can be a source element in an HTML standard. On the background server side of the web page, there may be two adding ways as follows to add the dimension identifier and the three-dimensional display way in the attribute information:
the first addition mode is as follows: the three-dimensional display mode can be added to the Meida Query in the attribute information by expanding the Meida Query, and the format of the three-dimensional display mode in the Meida Query can be the same as that of the three-dimensional display mode in the three-dimensional display mode of the terminal, and is not described again here. Furthermore, a sourcetype attribute is added in the attribute information, so that a three-dimensional identifier or a two-dimensional identifier is added in the sourcetype attribute, and the network resource data corresponding to the attribute information can be distinguished as a 3D resource or a 2D resource by adding the dimension identifier. For example, the attribute information acquired by the first acquisition module 10 may be < source media ═ "(min-width: 480px) and (3D-Eye: Bar)" src ═ large.jpg "source type ═ 3D" >, where (3D-Eye: Bar) is a three-dimensional display mode added in Meida Query and "3D" indicates that a three-dimensional identifier is added in the source type attribute. For another example, the attribute information acquired by the first acquiring module 10 may be < source media ═ "(max-width: 320 px)" src ═ med. jpg "source type ═ 2D" >, where "2D" indicates that a two-dimensional identifier is added to the source type attribute, that is, indicates that the network resource data corresponding to the attribute information is a 2D resource.
the second addition mode is as follows: a viewdtype attribute can be added to the attribute information, that is, the viewdtype attribute is added to the source element, and when the viewdtype attribute is empty, it indicates that a two-dimensional identifier is added to the attribute information, so as to indicate that the network resource data corresponding to the attribute information is a 2D resource; when the viewdtype attribute is not empty, it indicates that a three-dimensional identifier is added to the attribute information to indicate that the network resource data corresponding to the attribute information is a 3D resource, and the content added to the viewdtype attribute is a three-dimensional display mode, and a format of the three-dimensional display mode in the viewdtype attribute may be 3D (display type) (specific display mode), for example, a format of the three-dimensional display mode in the viewdtype attribute may be any one of 3DGlassAna, 3DGlassPol, 3DGlassAct, 3DEyeBar, 3DEyeLen, and 3 DEyeDir. For example, the attribute information acquired by the first acquiring module 10 may be < source media ═ "(max-width: 320 px)" src ═ med "jdpg" viewdtype ═ 3DGlassPol ">, where the viewdtype attribute is not null, it is described that the viewdtype attribute in the attribute information represents a three-dimensional identifier, that is, the attribute information carries a three-dimensional identifier, and a specific content" 3DGlassPol "in the viewdtype attribute represents a three-dimensional display mode.
The matching module 20 is configured to obtain attribute information carrying a three-dimensional identifier from the attribute information corresponding to each piece of network resource data, and match a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
Specifically, after the first obtaining module 10 obtains the attribute information corresponding to each network resource data, the matching module 20 may traverse each attribute information to obtain the attribute information carrying the three-dimensional identifier, and extract the three-dimensional display mode in the attribute information carrying the three-dimensional identifier. If each attribute information is set by the background server side of the web page through the first addition manner, the matching module 20 may detect the sourcetype attribute in each attribute information during the traversal of each attribute information to obtain attribute information of sourcetype ═ 3D ", that is, to obtain attribute information carrying a three-dimensional identifier, and the matching module 20 extracts the three-dimensional display manner in the media query condition statement from the attribute information of sourcetype ═ 3D". If each attribute information is set by the background server side of the web page in the second addition manner, the matching module 20 may detect whether the viewdtype attribute in each attribute information is empty during the traversal of each attribute information, so as to obtain attribute information whose viewdtype attribute is not empty, that is, obtain attribute information carrying a three-dimensional identifier, and the matching module 20 reads the three-dimensional display manner in the viewdtype attribute from the attribute information whose viewdtype attribute is not empty.
After obtaining the three-dimensional display mode in the attribute information with the three-dimensional identifier, the matching module 20 may match the three-dimensional display mode carried in the attribute information with the three-dimensional identifier with the three-dimensional display mode of the terminal. For example, if there are two pieces of attribute information carrying three-dimensional identifiers, the three-dimensional display mode in the attribute information a is 3D-Eye: bar, the three-dimensional display mode in the attribute information B is 3D-Glass: act, the three-dimensional display mode of the terminal is 3D-Eye: bar, the matching module 20 may determine that the three-dimensional display mode in the attribute information a is successfully matched with the terminal three-dimensional display mode, and determine that the three-dimensional display mode in the attribute information B is unsuccessfully matched with the terminal three-dimensional display mode.
the loading and displaying module 30 is configured to, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information with the three-dimensional identifier, select first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
Specifically, when the matching module 20 determines that attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, that is, it indicates that the three-dimensional display mode in at least one attribute information is the same as the terminal three-dimensional display mode, at this time, the loading display module 30 may select first target attribute information from the matched attribute information, load network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information. And the network resource data corresponding to the first target attribute information is a 3D resource which has the same three-dimensional display mode as the terminal and meets the basic display condition of the terminal.
If the matched attribute information is set by the background server side of the web page in the first adding manner, the specific process of the loading and displaying module 30 for acquiring the first target attribute information is as follows: the loading display module 30 determines whether other attribute values in the media query in the matched attribute information conform to the basic display condition of the terminal, and selects attribute information in which all other attribute values in the media query conform to the basic display condition of the terminal from the matched attribute information as first target attribute information, where the other attribute values in the media query include all attribute values in the media query except for a three-dimensional display mode. When the number of the attribute information whose other attribute values in the media query in the matched attribute information all meet the basic display condition of the terminal exceeds 1, the loading display module 30 selects the attribute information which is arranged at the top and matched with the basic display condition as the first target attribute information. For example, if certain matching attribute information is < source media ═ and (3D-Eye: Bar) "src ═ large.jpg" source type ═ 3D >, then the other attribute value in the media query in the attribute information is (min-width: 480 px). The process of the loading display module 30 determining whether other attribute values in the media query in the attribute information meet the basic display condition of the terminal is the prior art, and is not described herein again.
If the matched attribute information is set by the background server side of the web page in the second adding manner, the specific process of the loading and displaying module 30 for acquiring the first target attribute information is as follows: the loading display module 30 determines whether the attribute values corresponding to the media query in the matched attribute information conform to the basic display condition of the terminal, and selects the attribute information in which the attribute values corresponding to the media query all conform to the basic display condition of the terminal from the matched attribute information to serve as the first target attribute information. When the number of the attribute information whose attribute values corresponding to the media query all meet the basic display condition of the terminal exceeds 1, the loading display module 30 selects the attribute information which is arranged at the top and meets the basic display condition as the first target attribute information. For example, if a certain matching attribute information is < source media ═ "(max-width: 320 px)" src ═ medium.jpg "viewdtype ═ 3DGlassPol >, the attribute value corresponding to the media query in the attribute information is (max-width: 320px), where the process of the loading display module 30 determining whether the attribute value (max-width: 320px) corresponding to the media query meets the basic display condition of the terminal is the prior art, and is not described here again.
Optionally, when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier, the loading display module 30 may select second target attribute information from the attribute information carrying the two-dimensional identifier, and load and display network resource data corresponding to the second target attribute information, so that the loading display module 30 may load and display a 2D resource when a suitable 3D resource cannot be found; the specific process of the loading display module 30 acquiring the second target attribute information is as follows: the loading display module 30 determines whether the attribute value corresponding to the media query in the attribute information with the two-dimensional identifier meets the basic display condition of the terminal, and selects the attribute information whose attribute values correspond to the basic display condition of the terminal from the attribute information with the two-dimensional identifier to serve as the second target attribute information. For example, if certain attribute information carrying a two-dimensional identifier is < source media ═ "(max-width: 320 px)" src ═ means jpg "source type ═ 2D" >, the attribute value corresponding to the media query in the attribute information is max-width: 320 px. The process of the loading display module 30 determining whether the attribute value corresponding to the media query in the attribute information carrying the two-dimensional identifier meets the basic display condition of the terminal is the prior art, and is not described herein again.
for example, the three-dimensional display mode in the three-dimensional display modes of the terminal is 3D-Eye: bar, when the first obtaining module 10 requests to load a certain picture in a certain page, obtaining the following 4 pieces of attribute information corresponding to the picture:
1、<source media=″(min-width:480px)and(3D-Eye:Bar)″src=″large.jpg″ sourcetype=″3D″>
2、<source media=″(min-width:540px)and(3D-Eye:Bar)″src=″large.jpg″ sourcetype=″3D″>
3、<source media=“(max-width:320px)″src=″med.jpg″sourcetype=“2D″>
4. the matching module 20 may traverse the 4 pieces of attribute information to obtain attribute information carrying a three-dimensional identifier, where the first attribute information and the second attribute information both include a source type of "3D", and thus the first attribute information and the second attribute information are both attribute information carrying a three-dimensional identifier. The matching module 20 may extract three-dimensional display modes in the media query of the first attribute information and the second attribute information, and since the three-dimensional display modes of the first attribute information and the second attribute information are both 3D-Eye: bar, the matching module 20 can detect that the three-dimensional display modes of the first attribute information and the second attribute information are both matched with the three-dimensional display mode of the terminal. The loading display module 30 further detects whether other attribute values in the media query in the first attribute information meet the basic display condition of the terminal, that is, detects a min-width: 480px is in accordance with the basic display condition of the terminal, if so, the first attribute information is determined as first target attribute information, network resource data corresponding to the first attribute information is loaded, and the loaded network resource data is displayed according to a three-dimensional display mode carried by the first attribute information; if the other attribute values in the media query in the first attribute information do not conform to the basic display condition of the terminal, the loading display module 30 detects whether the other attribute values in the media query in the second attribute information conform to the basic display condition of the terminal, that is, detects a min-width: 540px is in accordance with the basic display condition of the terminal, if so, the second attribute information is determined as the first target attribute information, so as to load the network resource data corresponding to the second attribute information, and display the loaded network resource data according to the three-dimensional display mode carried by the second attribute information; if the other attribute values in the media query in the second attribute information do not meet the basic display condition of the terminal, the loading and displaying module 30 may select one of the third attribute information and the fourth attribute information carrying the two-dimensional identifier as the second target attribute information, and load and display the network resource data corresponding to the second target attribute information.
as can be seen from the above, in the embodiment of the present invention, by obtaining the three-dimensional display mode of the terminal and the attribute information corresponding to each network resource data in at least one network resource data, and when the attribute information carrying the three-dimensional identifier has the attribute information matching the three-dimensional display mode of the terminal, the first target attribute information may be obtained in the matching attribute information, and the network resource data corresponding to the first target attribute information is loaded, so as to ensure that the 3D display mode supported by the terminal is the same as the 3D display mode corresponding to the loaded 3D resource, thereby enabling the terminal to normally display the loaded 3D resource.
referring to fig. 5 again, it is a schematic structural diagram of another network resource processing apparatus according to an embodiment of the present invention, where the network resource processing apparatus 1 may include the first obtaining module 10, the matching module 20, and the loading display module 30 in the embodiment corresponding to fig. 4, and further, the network resource processing apparatus 1 may further include: the device comprises a detection module 40, a switching module 50, a storage module 60, a second acquisition module 70 and an adjustment module 80;
The detection module 40 is configured to detect terminal work information, where the terminal work information includes at least one of a network type, an electric quantity remaining value, and an interface display state;
specifically, after the loading display module 30 loads the network resource data corresponding to the first target attribute information, the detection module 40 may detect the terminal working information in real time or periodically, where the terminal working information includes at least one of a network type, an electric quantity remaining value, and an interface display state. The network type may include two types, namely a charging network type and a free network type, the charging network type may include charging type networks such as 2G, 3G and 4G, and the free network type may include free networks such as wifi. The interface display state comprises a full-screen display state and a non-full-screen display state.
the switching module 50 is configured to switch the displayed network resource data corresponding to the first target attribute information to network resource data corresponding to the second target attribute information when it is detected that the terminal working information meets a switching condition;
Specifically, when the terminal working information is a network type, the detecting module 40 detects whether the network type meets a switching condition, that is, whether the network type is switched from a free network type to a charged network type, and if it is detected that the network type is switched from the free network type to the charged network type, that is, the network type meets the switching condition, at this time, the switching module 50 may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information. The second target attribute information is obtained from the attribute information carrying the two-dimensional identifier, and the specific process of obtaining the second target attribute information may refer to the process of selecting the second target attribute information by the loading and displaying module 30 in the embodiment corresponding to fig. 4, which is not described herein again. Optionally, after the loading display module 30 loads and displays the network resource data corresponding to the second target attribute information, the detection module 40 may continue to detect the network type, and when it is detected that the network type is switched from the charging network type to the free network type, the network type may also meet the switching condition, and at this time, the switching module 50 may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information.
when the terminal work information is the electric quantity remaining value, the detection module 40 detects whether the electric quantity remaining value meets a switching condition, that is, whether the electric quantity remaining value is smaller than a preset electric quantity threshold value, if it is detected that the electric quantity remaining value is smaller than the preset electric quantity threshold value, it indicates that the electric quantity remaining value meets the switching condition, and at this time, the switching module 50 may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information. Optionally, after the loading display module 30 loads and displays the network resource data corresponding to the second target attribute information, the detection module 40 may continue to detect the remaining value of the electric quantity, and when the terminal is charged and the remaining value of the electric quantity is detected to be restored to a preset electric quantity threshold, the remaining value of the electric quantity may also satisfy a switching condition, and at this time, the switching module 50 may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information.
When the terminal working information is in the interface display state, the detection module 40 detects whether the interface display state meets a switching condition, that is, whether the interface display state is switched from the full-screen display state to the non-full-screen display state, and if it is detected that the interface display state is switched from the full-screen display state to the non-full-screen display state, it indicates that the interface display state meets the switching condition, and at this time, the switching module 50 may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information. Optionally, after the loading and displaying module 30 loads and displays the network resource data corresponding to the second target attribute information, the detecting module 40 may continue to detect the interface display state, and when it is detected that the interface display state is switched from the non-full-screen display state to the full-screen display state, the interface display state may also meet a switching condition, and at this time, the switching module 50 may switch the displayed network resource data corresponding to the second target attribute information back to the network resource data corresponding to the first target attribute information.
Preferably, the terminal working information may include a network type, an electric quantity remaining value, and an interface display state at the same time, and when the detection module 40 detects that the network type is a charging network type, or the electric quantity remaining value is smaller than a preset electric quantity threshold, or the interface display state is a non-full screen display state, the switching module 50 may switch the displayed network resource data corresponding to the first target attribute information to the network resource data corresponding to the second target attribute information. When the detection module 40 detects that the network type is a free network type, the remaining value of the electric quantity is greater than a preset electric quantity threshold value, and the interface display state is a full screen display state, the switching module 50 switches the displayed network resource data corresponding to the second target attribute information to the network resource data corresponding to the first target attribute information.
optionally, before the first obtaining module 10 obtains the three-dimensional display mode of the terminal and the attribute information corresponding to each network resource data in at least one network resource data, the detecting module 40 may start to detect the terminal working information. When detecting that the network type in the terminal working information is a free network type, the remaining value of the electric quantity is greater than a preset electric quantity threshold value, and the interface display state is a full-screen display state, the detection module 40 notifies the first obtaining module 10 to start to execute corresponding operations; when the detection module 40 detects that the network type in the terminal working information is a charging network type, or the remaining value of the electric quantity is smaller than a preset electric quantity threshold, or the interface display state is a non-full screen display state, the detection module 40 directly notifies the loading display module 30 to select second target attribute information from the attribute information carrying the two-dimensional identifier, and loads and displays network resource data corresponding to the second target attribute information, and when the terminal working information meets a switching condition, the switching module 50 switches the displayed network resource data corresponding to the second target attribute information into network resource data corresponding to the first target attribute information.
the storage module 60 is configured to store a network address corresponding to the network resource data corresponding to the first target attribute information and a network address corresponding to the network resource data corresponding to the second target attribute information, so that the switching module 50 obtains the corresponding network resource data according to the stored network address when switching the network resource data;
Specifically, when the loading display module 30 loads the network resource data corresponding to the first target attribute information, the storage module 60 may store the network address corresponding to the network resource data corresponding to the first target attribute information; similarly, when the loading display module 30 loads the network resource data corresponding to the second target attribute information, the storage module 60 may store the network address corresponding to the network resource data corresponding to the second target attribute information, so that the switching module 50 may obtain the corresponding network resource data according to the stored network address when switching the network resource data. For example, before the switching module 50 switches the displayed network resource data corresponding to the second target attribute information to the network resource data corresponding to the first target attribute information, the storage module 60 may first check whether the terminal already stores the network address corresponding to the network resource data corresponding to the first target attribute information, and if so, the switching module 50 may obtain the network resource data corresponding to the first target attribute information according to the network address corresponding to the network resource data corresponding to the first target attribute information stored in the storage module 60, so that the switching module 50 does not need to acquire the first target attribute information from the attribute information carrying the three-dimensional identifier again, thereby enabling the network resource handling device 1 to switch between 2D resources and 3D resources more quickly.
The second obtaining module 70 is configured to obtain brightness information and refresh rate information corresponding to a three-dimensional display mode carried by the first target attribute information;
specifically, while the loading display module 30 loads the network resource data corresponding to the first target attribute information, the second obtaining module 70 may obtain, from table 1 in the embodiment corresponding to fig. 3, brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information. Table 1 is a list that is pre-stored in the network resource processing apparatus 1 and includes a correspondence relationship that each three-dimensional display mode affects a picture, and it can be seen from table 1 that the color difference type three-dimensional display mode does not affect the brightness and resolution of the picture, and has no specific requirement on the refresh rate; the polarization type three-dimensional display mode can reduce the brightness of the picture, reduce the resolution by half and also require higher refresh rate; the active shutter type three-dimensional display mode does not affect the brightness and the resolution of a picture, but needs higher refresh rate; the light barrier type can reduce the brightness of the picture, but does not influence the resolution, and has no specific requirement on the refresh rate; the lenticular lens type does not affect the brightness of a picture, but reduces the resolution by half, and has no specific requirement on the refresh rate; the directional light source type does not affect the brightness and resolution of the picture, and has no specific requirement on the refresh rate.
The adjusting module 80 is configured to adjust the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information;
Specifically, when the brightness information acquired by the second acquiring module 70 from table 1 is "brightness of the screen is decreased", the adjusting module 80 may increase the brightness of the terminal screen by calling a terminal system interface; when the brightness information acquired by the second acquiring module 70 from table 1 is "unchanged", the adjusting module 80 does not need to adjust the brightness of the terminal screen; when the refresh rate information acquired by the second acquiring module 70 from table 1 is "a higher terminal refresh rate is needed", the adjusting module 80 may increase the refresh rate of the terminal screen by calling a terminal system interface; when the refresh rate information acquired by the second acquiring module 70 from table 1 is "/", the adjusting module 80 does not need to adjust the refresh rate of the terminal screen.
Alternatively, when the 3D resource loses focus or stops loading and playing, the adjusting module 80 may restore the brightness and the refresh rate of the terminal screen to the initial state by calling the terminal system interface.
Further, referring to fig. 6 again, which is a schematic structural diagram of a loading display module 30 according to an embodiment of the present invention, the loading display module 30 may include: a resolution acquisition unit 301 and a resource loading display unit 302;
the resolution obtaining unit 301 is configured to, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information with the three-dimensional identifier, obtain resolution information corresponding to the three-dimensional display mode carried in the matched attribute information;
specifically, when attribute information matched with the three-dimensional display mode of the terminal exists in the attribute information carrying the three-dimensional identifier, the resolution obtaining unit 301 may obtain, from table 1 in the embodiment corresponding to fig. 3, resolution information corresponding to the three-dimensional display mode carried in the matched attribute information. For example, if the three-dimensional display manner carried in the matched attribute information is a polarization type, the resolution obtaining unit 301 may obtain that the resolution information corresponding to the polarization type is "resolution halved", that is, it indicates that the three-dimensional display manner carried in the matched attribute information may halve the screen resolution; if the three-dimensional display mode carried in the matched attribute information is a color difference formula, the resolution obtaining unit 301 may obtain that the resolution information corresponding to the color difference formula is "unchanged", that is, it indicates that the three-dimensional display mode carried in the matched attribute information does not affect the resolution of the picture.
the resource loading and displaying unit 302 is configured to select first target attribute information from the matched attribute information according to the resolution information, load network resource data corresponding to the first target attribute information, and display the loaded network resource data according to a three-dimensional display manner carried in the first target attribute information;
specifically, after the resolution obtaining unit 301 obtains the resolution information corresponding to the three-dimensional display mode carried in the matched attribute information, the resource loading and displaying unit 302 may select first target attribute information from the matched attribute information according to the resolution information, load network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information. When the resolution information is "unchanged", the resource loading and displaying unit 302 may select the first target attribute information from the matched attribute information according to the method for acquiring the first target attribute information in step S103 in the embodiment corresponding to fig. 1, load the network resource data corresponding to the first target attribute information, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
when the resolution information is "resolution halved", the resource loading and displaying unit 302 may select at least one attribute information that matches the attribute information and meets the basic display condition, and then select the attribute information with the maximum resolution corresponding to the network resource data from the at least one attribute information that matches the attribute information and meets the basic display condition as the first target attribute information, and compress the network resource data corresponding to the first target attribute information to load the compressed network resource data, and display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information, and the resource loading and displaying unit 302 may compensate for the influence caused by "resolution halved" to a greater extent by selecting a 3D resource with a larger resolution to load. The specific process of the resource loading display unit 302 selecting at least one attribute information that matches and meets the basic display condition may refer to S103 in the embodiment corresponding to fig. 1, which is not described herein again.
as can be seen from the above, in the embodiment of the present invention, by obtaining a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data, and when attribute information matching the three-dimensional display mode of the terminal exists in the attribute information carrying a three-dimensional identifier, first target attribute information may be obtained in the matching attribute information according to resolution information, and network resource data corresponding to the first target attribute information is loaded, so as to ensure that a 3D display mode supported by the terminal is the same as a 3D display mode corresponding to the loaded 3D resource, so that the terminal may normally display the loaded 3D resource, and the influence of the three-dimensional display mode on the resolution may be compensated; meanwhile, the brightness and the refresh rate of the terminal screen can be adjusted according to the brightness information and the refresh rate information so as to enhance the display effect.
Referring to fig. 7, which is a schematic structural diagram of a terminal according to an embodiment of the present invention, the terminal 1000 may include a processor 1001, a communication interface 1002, a display 1003, and a memory 1004 (the number of the processor 1001 in the terminal 1000 may be one or more, and one processor 1001 is taken as an example in fig. 7). In some embodiments of the present invention, the processor 1001, the communication interface 1002, the display 1003 and the memory 1004 may be connected by a communication bus or other means, wherein fig. 7 is taken as an example of the connection by the communication bus.
The communication interface 1002 is configured to obtain a three-dimensional display mode of the terminal and attribute information corresponding to each network resource data in at least one network resource data;
the processor 1001 is configured to obtain attribute information carrying a three-dimensional identifier from attribute information corresponding to each piece of network resource data, and match a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
the processor 1001 is further configured to select first target attribute information from the matched attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier;
The communication interface 1002 is further configured to load network resource data corresponding to the first target attribute information;
The display 1003 is configured to display the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information.
Specifically, when requesting to load a page including a 3D resource, the communication interface 1002 may obtain a three-dimensional display manner of the terminal, where the three-dimensional display manner of the terminal is a three-dimensional display manner supportable by the terminal 1000, the three-dimensional display manner of the terminal may be preset by the terminal 1000, and a format of the three-dimensional display manner of the terminal may be 3D- (display type) - (specific display manner), for example, the three-dimensional display manner of the terminal may include at least one of 3D-Glass-Ana, 3D-Glass-Pol, 3D-Glass-Act, 3D-Eye-Bar, 3D-Eye-Len, and 3D-Eye-Dir, where Glass represents a glasses type, Eye represents a naked Eye type, Ana represents a color difference type, Pol represents a polarization type, and Act represents an active gate type, bar denotes a light barrier type, Len denotes a lenticular lens type, and Dir denotes a directional light source type. Or, the format of the terminal three-dimensional display mode can be 3D- (display type): (specific display mode), for example, the three-dimensional display mode of the terminal may include 3D-Glass: ana, 3D-Glass: pol, 3D-Glass: act, 3D-Eye: bar, 3D-Eye: len, 3D-Eye: at least one of Dir.
Wherein the content of the first and second substances,
the processor 1001 is further configured to select second target attribute information from the attribute information carrying the two-dimensional identifier when attribute information matching the three-dimensional display mode of the terminal does not exist in the attribute information carrying the three-dimensional identifier;
The communication interface 1002 is further configured to load network resource data corresponding to the second target attribute information;
The display 1003 is further configured to display network resource data corresponding to the second target attribute information.
wherein the content of the first and second substances,
The processor 1001 is further configured to detect terminal working information, where the terminal working information includes at least one of a network type, an electric quantity remaining value, and an interface display state, and when it is detected that the terminal working information satisfies a switching condition, switch the displayed network resource data corresponding to the first target attribute information to network resource data corresponding to the second target attribute information;
the communication interface 1002 is further configured to load network resource data corresponding to the second target attribute information;
The display 1003 is further configured to display network resource data corresponding to the second target attribute information;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
Wherein the content of the first and second substances,
The processor 1001 is further configured to obtain brightness information and refresh rate information corresponding to a three-dimensional display mode carried by the first target attribute information, and adjust the brightness and the refresh rate of the display 1003 according to the brightness information and the refresh rate information.
wherein the content of the first and second substances,
The processor 1001 is further configured to, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information with the three-dimensional identifier, acquire resolution information corresponding to the three-dimensional display mode carried in the matched attribute information, and select first target attribute information from the matched attribute information according to the resolution information.
Wherein the content of the first and second substances,
the memory 1004 is configured to store a network address corresponding to the network resource data corresponding to the first target attribute information and a network address corresponding to the network resource data corresponding to the second target attribute information;
The communication interface 1002 is specifically configured to obtain corresponding network resource data according to the stored network address.
as can be seen from the above, in the embodiment of the present invention, by obtaining a three-dimensional display mode of a terminal and attribute information corresponding to each network resource data in at least one network resource data, and when attribute information matching the three-dimensional display mode of the terminal exists in the attribute information carrying a three-dimensional identifier, first target attribute information may be obtained in the matching attribute information according to resolution information, and network resource data corresponding to the first target attribute information is loaded, so as to ensure that a 3D display mode supported by the terminal 1000 is the same as a 3D display mode corresponding to the loaded 3D resource, so that the terminal 1000 may normally display the loaded 3D resource, and may compensate for an influence of the three-dimensional display mode on the resolution; meanwhile, the brightness and the refresh rate of the display 1003 may be adjusted according to the brightness information and the refresh rate information to enhance the display effect.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
the above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (19)

1. a network resource processing method is characterized by comprising the following steps:
Acquiring a terminal three-dimensional display mode and attribute information corresponding to each network resource data in at least one network resource data in a page containing 3D resources, wherein the terminal three-dimensional display mode refers to a three-dimensional display mode which can be supported by a terminal, each network resource data is associated with each other, each network resource data belongs to a certain picture or a certain video, and the attribute information is a source element in an HTML standard;
Acquiring attribute information carrying a three-dimensional identifier from attribute information corresponding to each piece of network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
Wherein, still include:
And when the attribute information carrying the three-dimensional identification does not have attribute information matched with the three-dimensional display mode of the terminal, selecting second target attribute information from the attribute information carrying the two-dimensional identification, and loading and displaying network resource data corresponding to the second target attribute information.
2. The method of claim 1, wherein after the step of selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, the method further comprises:
Detecting terminal working information, wherein the terminal working information comprises at least one of a network type, an electric quantity residual value and an interface display state;
when the terminal working information is detected to meet the switching condition, switching the displayed network resource data corresponding to the first target attribute information into network resource data corresponding to second target attribute information;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
3. The method of claim 1, wherein after the step of selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, the method further comprises:
acquiring brightness information and refresh rate information corresponding to a three-dimensional display mode carried by the first target attribute information;
and adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
4. the method of claim 2, wherein after the step of selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, the method further comprises:
Acquiring brightness information and refresh rate information corresponding to a three-dimensional display mode carried by the first target attribute information;
And adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
5. the method according to any one of claims 1 to 4, wherein when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information, includes:
when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, acquiring resolution information corresponding to the three-dimensional display mode carried in the matched attribute information;
Selecting first target attribute information from the matched attribute information according to the resolution information, loading network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to a three-dimensional display mode carried in the first target attribute information.
6. The method of claim 2, further comprising:
And storing the network address corresponding to the network resource data corresponding to the first target attribute information and the network address corresponding to the network resource data corresponding to the second target attribute information so as to acquire the corresponding network resource data according to the stored network addresses when switching the network resource data.
7. A network resource processing device applied to a terminal is characterized by comprising:
The terminal three-dimensional display mode refers to a three-dimensional display mode which can be supported by the terminal, the network resource data are related to each other, each network resource data belongs to a certain picture or a certain video, and the attribute information is a source element in an HTML (hypertext markup language) standard;
the matching module is used for acquiring attribute information carrying a three-dimensional identifier from the attribute information corresponding to each network resource data, and matching a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
the loading display module is used for selecting first target attribute information from the matched attribute information to load network resource data corresponding to the first target attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identification, and displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
wherein the content of the first and second substances,
And the loading display module is further configured to select second target attribute information from the attribute information carrying the two-dimensional identifier and load and display network resource data corresponding to the second target attribute information when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier.
8. the apparatus of claim 7, further comprising:
The terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting terminal working information, and the terminal working information comprises at least one of a network type, an electric quantity residual value and an interface display state;
The switching module is used for switching the displayed network resource data corresponding to the first target attribute information into the network resource data corresponding to the second target attribute information when the terminal working information is detected to meet the switching condition;
And the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
9. the apparatus of claim 7, further comprising:
The second obtaining module is used for obtaining brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information;
And the adjusting module is used for adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
10. the apparatus of claim 8, further comprising:
the second obtaining module is used for obtaining brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information;
And the adjusting module is used for adjusting the brightness and the refresh rate of the terminal screen according to the brightness information and the refresh rate information.
11. The apparatus of any of claims 7 to 10, wherein the load display module comprises:
a resolution obtaining unit, configured to obtain, when attribute information that matches the three-dimensional display mode of the terminal exists in the attribute information with the three-dimensional identifier, resolution information corresponding to the three-dimensional display mode that is carried in the matching attribute information;
And the resource loading and displaying unit is used for selecting first target attribute information from the matched attribute information according to the resolution information, loading network resource data corresponding to the first target attribute information, and displaying the loaded network resource data according to a three-dimensional display mode carried in the first target attribute information.
12. The apparatus of claim 10, further comprising:
And the storage module is used for storing the network address corresponding to the network resource data corresponding to the first target attribute information and the network address corresponding to the network resource data corresponding to the second target attribute information, so that the switching module can acquire the corresponding network resource data according to the stored network address when switching the network resource data.
13. A terminal, comprising: a processor, a communication interface, and a display;
the communication interface is used for acquiring a terminal three-dimensional display mode and attribute information corresponding to each network resource data in at least one network resource data in a page containing 3D resources, wherein the terminal three-dimensional display mode refers to a three-dimensional display mode which can be supported by the terminal, each network resource data is associated with each other, each network resource data belongs to a certain picture or a certain video, and the attribute information is a source element in an HTML standard;
The processor is configured to acquire attribute information carrying a three-dimensional identifier from the attribute information corresponding to each piece of network resource data, and match a three-dimensional display mode carried in the attribute information carrying the three-dimensional identifier with the three-dimensional display mode of the terminal;
The processor is further configured to select first target attribute information from the matched attribute information when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier;
the communication interface is further configured to load network resource data corresponding to the first target attribute information;
The display is used for displaying the loaded network resource data according to the three-dimensional display mode carried in the first target attribute information;
Wherein the content of the first and second substances,
the processor is further configured to select second target attribute information from the attribute information carrying the two-dimensional identifier when attribute information matched with the terminal three-dimensional display mode does not exist in the attribute information carrying the three-dimensional identifier;
the communication interface is further configured to load network resource data corresponding to the second target attribute information;
The display is further configured to display network resource data corresponding to the second target attribute information.
14. the terminal of claim 13,
The processor is further configured to detect terminal working information, where the terminal working information includes at least one of a network type, an electric quantity remaining value, and an interface display state, and when it is detected that the terminal working information satisfies a switching condition, switch the displayed network resource data corresponding to the first target attribute information to network resource data corresponding to the second target attribute information;
the communication interface is further configured to load network resource data corresponding to the second target attribute information;
The display is further configured to display network resource data corresponding to the second target attribute information;
and the second target attribute information is selected from the attribute information carrying the two-dimensional identifier.
15. The terminal of claim 13,
The processor is further configured to acquire brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information, and adjust the brightness and the refresh rate of the display according to the brightness information and the refresh rate information.
16. the terminal of claim 14,
the processor is further configured to acquire brightness information and refresh rate information corresponding to the three-dimensional display mode carried by the first target attribute information, and adjust the brightness and the refresh rate of the display according to the brightness information and the refresh rate information.
17. the terminal according to any of claims 13 to 16,
the processor is further configured to, when attribute information matched with the terminal three-dimensional display mode exists in the attribute information carrying the three-dimensional identifier, acquire resolution information corresponding to the three-dimensional display mode carried in the matched attribute information, and select first target attribute information from the matched attribute information according to the resolution information.
18. The terminal of claim 15, further comprising: a memory;
the memory is used for storing a network address corresponding to the network resource data corresponding to the first target attribute information and a network address corresponding to the network resource data corresponding to the second target attribute information;
The communication interface is specifically configured to obtain corresponding network resource data according to the stored network address.
19. A computer-readable storage medium storing a computer program for instructing associated hardware to perform the method of any one of claims 1 to 6.
CN201480074586.4A 2014-12-31 2014-12-31 Network resource processing method and device and terminal Active CN105993012B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/095840 WO2016106657A1 (en) 2014-12-31 2014-12-31 Network resource processing method, device, and terminal

Publications (2)

Publication Number Publication Date
CN105993012A CN105993012A (en) 2016-10-05
CN105993012B true CN105993012B (en) 2019-12-06

Family

ID=56283931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480074586.4A Active CN105993012B (en) 2014-12-31 2014-12-31 Network resource processing method and device and terminal

Country Status (2)

Country Link
CN (1) CN105993012B (en)
WO (1) WO2016106657A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710166A (en) * 2018-12-26 2019-05-03 努比亚技术有限公司 A kind of displaying method of terminal, terminal and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117291A (en) * 2009-12-30 2011-07-06 北京搜狗科技发展有限公司 Method and system for displaying network resources
CN103313285A (en) * 2013-06-09 2013-09-18 深圳中兴网信科技有限公司 Network resource transmitting and processing device and network resource transmitting and processing method
US8839087B1 (en) * 2012-01-26 2014-09-16 Amazon Technologies, Inc. Remote browsing and searching

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957824B (en) * 2009-07-16 2012-10-10 深圳木兰信息技术有限公司 Method for browsing network resource
US8565830B2 (en) * 2010-05-12 2013-10-22 Lg Electronics Inc. Mobile terminal and method of displaying 3D images thereon
CN102063475B (en) * 2010-12-22 2012-10-10 张丛喆 Webpage user terminal presenting method of three-dimensional model
CN103561065B (en) * 2013-10-22 2017-05-24 深圳市优逸电子科技有限公司 System and method for achieving 3D virtual advertisement with mobile terminal
CN104063466B (en) * 2014-06-27 2017-11-07 深圳先进技术研究院 The 3 D displaying method and system of virtual reality integration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117291A (en) * 2009-12-30 2011-07-06 北京搜狗科技发展有限公司 Method and system for displaying network resources
US8839087B1 (en) * 2012-01-26 2014-09-16 Amazon Technologies, Inc. Remote browsing and searching
CN103313285A (en) * 2013-06-09 2013-09-18 深圳中兴网信科技有限公司 Network resource transmitting and processing device and network resource transmitting and processing method

Also Published As

Publication number Publication date
CN105993012A (en) 2016-10-05
WO2016106657A1 (en) 2016-07-07

Similar Documents

Publication Publication Date Title
CN106528025B (en) Multi-screen image projection method, terminal, server and system
WO2017193576A1 (en) Video resolution adaptation method and apparatus, and virtual reality terminal
US8909801B2 (en) Graphic sharing
CN106021421B (en) method and device for accelerating webpage rendering
CN109343929B (en) Multi-screen interaction method and system based on virtualized shared video memory
CN102186067B (en) Image frame transmission method, device, display method and system
US20160322022A1 (en) Page display method and terminal
CN103514241A (en) Image loading method and system
CN103686413A (en) Auxiliary display method and device
CN104199728B (en) Picture transmits information displaying method and device
CN104978433A (en) Web page display method and device
CN113015007B (en) Video frame inserting method and device and electronic equipment
CN103336702A (en) Method and device of accelerating webpage loading
JP2012244622A (en) Content converter, content conversion method and storage medium thereof
CN104462283A (en) Method, device and client for requesting webpage elements in mobile terminal
US10497090B2 (en) Systems and methods for reducing memory bandwidth via multiview compression/decompression
CN105993012B (en) Network resource processing method and device and terminal
CN105389308A (en) Display processing method and device for web pages
CN105550286A (en) Search result-based paging processing method and device
CN105389386A (en) Search result based pagination processing method and apparatus
US10754767B2 (en) Method and apparatus for loading a resource in a web page on a device
US20140205190A1 (en) Method of auto-determination a three-dimensional image format
CN113839998A (en) Image data transmission method, device, equipment, storage medium and program product
KR101526490B1 (en) Visual data processing apparatus and method for Efficient resource management in Cloud Computing
CN103268619B (en) The method of image data batch compression in swf file and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant