CN106790466B - Method, server and terminal equipment for pushing - Google Patents

Method, server and terminal equipment for pushing Download PDF

Info

Publication number
CN106790466B
CN106790466B CN201611129874.2A CN201611129874A CN106790466B CN 106790466 B CN106790466 B CN 106790466B CN 201611129874 A CN201611129874 A CN 201611129874A CN 106790466 B CN106790466 B CN 106790466B
Authority
CN
China
Prior art keywords
processing
push object
pushed
memory
server
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
CN201611129874.2A
Other languages
Chinese (zh)
Other versions
CN106790466A (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
Priority to CN201611129874.2A priority Critical patent/CN106790466B/en
Publication of CN106790466A publication Critical patent/CN106790466A/en
Application granted granted Critical
Publication of CN106790466B publication Critical patent/CN106790466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

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

Abstract

The embodiment of the invention provides a method and equipment for pushing, which can avoid the crash of terminal equipment caused by insufficient memory, thereby improving the user experience. The method comprises the following steps: the method comprises the steps that a first server determines a push object needing to be pushed to a terminal device and the memory occupation requirement of the terminal device on the push object; processing the push object according to the memory occupation requirement; and pushing the processed push object to the terminal equipment.

Description

Method, server and terminal equipment for pushing
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method for pushing, a server and a terminal device.
Background
Because HTML5(HTML is Hypertext Markup Language (WEB) has good cross-platform characteristics, as HTML5 becomes a WEB page (WEB) development standard, more and more applications are developed and applied by WEB, and more embedded devices such as televisions, set top boxes, mobile devices, Internet of Things (IoT) devices and the like support WEB page browsing or WEB applications.
However, the embedded device usually reduces the memory configuration in order to reduce the cost, and the current website design is very rich, and generally uses a large amount of pictures and complex web content, which often causes an Out of memory (OOM) of the low-end device, and finally causes the browser to exit abnormally, so that the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for pushing, which can avoid the crash of terminal equipment caused by insufficient memory, thereby improving the user experience
In a first aspect, a method for pushing is provided, including:
the method comprises the steps that a first server determines a push object needing to be pushed to a terminal device and the memory occupation requirement of the terminal device on the push object;
processing the push object according to the memory occupation requirement;
and pushing the processed push object to the terminal equipment.
Therefore, in the embodiment of the present invention, the memory occupation requirement of the terminal device for the push object is obtained; processing the push object according to the memory occupation requirement; the processed push object is pushed to the terminal equipment, so that the terminal equipment can be prevented from being crashed due to insufficient memory, and the user experience can be improved.
Furthermore, the embodiment of the invention can be more suitable for embedded equipment, the embedded equipment often has different memories along with the current platform operation scene, and in order to enable the embedded equipment to be used smoothly under a low-memory scene, the server processes the push object, so that the push object can be fundamentally suitable for equipment with different memory configurations.
Optionally, according to the memory usage requirement, processing the push object may also be dynamically generating a push object that meets the memory usage requirement.
Alternatively, processing the push object may refer to processing an existing push object.
Optionally, the method further comprises:
estimating the size of the memory occupied by the pushed object;
the processing the push object according to the memory occupation requirement includes:
and when the size of the memory occupied by the push object cannot meet the memory occupation requirement, processing the push object, so that the size of the memory occupied by the processed push object meets the memory occupation requirement.
Optionally, the method further comprises:
receiving a redirection message sent by a second server, wherein the redirection message is used for indicating the push object pushed to the terminal equipment and indicating the memory occupation requirement;
the determining, by the first server, a push object to be pushed to a terminal device and a memory occupation requirement of the terminal device for the push object include:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the redirection message.
Therefore, in the embodiment of the invention, the special server is used for low-memory processing, so that the processing is more efficient.
Optionally, the method further comprises:
receiving a request message sent by the terminal device, wherein the request message is used for indicating the push object requested to be pushed to the terminal device and indicating the memory occupation requirement;
the determining, by the first server, a push object to be pushed to a terminal device and a memory occupation requirement of the terminal device for the push object include:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the request message.
Optionally, the processing the push object includes:
performing at least one of the following processes on the push object:
filtering processing of irrelevant content, picture processing, rich media link removing processing and removing processing of blocks in the object.
Optionally, the processing the push object includes:
processing the push object according to a preset processing sequence:
filtering irrelevant content, processing pictures, removing rich media links and removing blocks in the object;
after the push object is processed by using the current processing mode, if the size of the memory occupied by the processed push object cannot meet the memory requirement, continuing to process the next processing mode, otherwise, stopping processing the push object.
Optionally, the picture processing includes picture removal processing or picture quality reduction processing;
the processing the push object includes:
determining whether the size of the memory occupied by the pushed object meets the memory occupation requirement when all pictures in the pushed object are removed;
if yes, performing picture quality reduction processing on the push object;
and if the condition is not met, performing picture removal processing on the push object.
Optionally, in this embodiment of the present invention, the push object includes a plurality of chunks;
processing the push object according to the memory occupation requirement, including:
and according to the priorities of the plurality of blocks, after the current block is processed, if the size of the memory occupied by the pushed object cannot meet the memory requirement, continuing to process the next block, otherwise, stopping processing the pushed object.
Optionally, the push object is a web page or a graphical interface.
In a second aspect, a method for pushing is provided, including:
the method comprises the steps that a terminal device sends a request message to a first server, wherein the request message is used for indicating a push object requested to be pushed to the terminal device and indicating the memory occupation requirement of the terminal device on the push object;
and receiving the push object which is sent by the first server or the second server and processed according to the memory occupation requirement.
Optionally, the push object is a web page or a graphical interface.
In a third aspect, a method for pushing is provided, including:
receiving a request message sent by a terminal device, wherein the request message is used for indicating a push object requested to be pushed to the terminal device and indicating the memory occupation requirement of the terminal device on the push object;
estimating the size of the memory occupied by the pushed object;
and when the size of the memory occupied by the pushed object cannot meet the memory occupation requirement, sending a redirection message to a first server, wherein the redirection message is used for indicating the pushed object pushed to the terminal equipment and indicating the memory occupation requirement.
Optionally, the push object is a web page or a graphical interface.
In a fourth aspect, there is provided a server comprising means for performing the method of the first aspect or any optional implementation of the first aspect.
In a fifth aspect, a terminal device is provided, which includes means for performing the method of the second aspect or any optional implementation manner of the second aspect.
In a sixth aspect, there is provided a server comprising means for performing the method of the third aspect or any optional implementation of the third aspect.
In a seventh aspect, a server is provided, which includes a memory, a transceiver, and a processor, where the memory stores program code that may be used to instruct the first aspect or any optional implementation manner thereof to be performed, and when the code is executed, the processor may implement various operations performed by the first server in the method.
In an eighth aspect, there is provided a terminal device, including a memory, a transceiver, and a processor, where the memory stores program code that can be used to instruct the execution of the second aspect or any optional implementation thereof, and when the code is executed, the processor can implement each operation performed by the terminal device in the method.
In a ninth aspect, there is provided a server comprising a memory, a transceiver, and a processor, the memory having stored thereon program code operable to direct the execution of the third aspect or any alternative implementation thereof, the processor being operable to perform the operations of the second server in the method when the code is executed.
A tenth aspect provides a computer readable medium storing program code for execution by a terminal device, the program code comprising instructions for performing the method of the first aspect or its various implementations.
In an eleventh aspect, there is provided a computer readable medium storing program code for execution by a network device, the program code comprising instructions for performing the method of the second aspect or its various implementations.
In a twelfth aspect, there is provided a computer readable medium storing program code for execution by a network device, the program code comprising instructions for performing the method of the third aspect or its various implementations.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a method for push according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a method for push according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of webpage segmentation, according to an embodiment of the present invention.
Fig. 5 is a schematic flow chart of a method for push according to an embodiment of the present invention.
Fig. 6 is a schematic block diagram of a server according to an embodiment of the present invention.
Fig. 7 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of a server according to an embodiment of the present invention.
Fig. 9 is a schematic block diagram of a communication device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 1 is a schematic diagram of a communication system 100 according to an embodiment of the present invention.
In the system 100, the terminal device 110 may send a request message to the server 120, where the request message may be used to instruct the server 120 to push a push object to the terminal device 110; the server 120 may push the push object requested by the terminal device 110 to the terminal device 110.
Optionally, the server 120 may also redirect the request to the server 130, and the server 130 pushes the push object requested by the terminal device 110 to the terminal device 110; alternatively, the server 130 processes the push object and then transmits the processed push object to the server 120, and the server 120 transmits the push object processed by the server 130 to the terminal device 110.
Optionally, the push object may be a web page or a graphical interface.
Optionally, in this embodiment of the present invention, when the push object is a web page, the server 120 may be a web page server, and specifically may be a WWW server.
Optionally, in the embodiment of the present invention, the terminal device may be an embedded device, such as a television, a set-top box, a mobile device, an IoT device, and the like.
Fig. 2 is a schematic flow chart diagram of a method 200 for pushing in accordance with an embodiment of the present invention. Alternatively, the method may be applied to the communication system shown in fig. 1, and of course, may also be applied to other communication systems, for example, a communication system that does not include the server 130. It should be understood that the first server mentioned below may be either server 110 or server 120.
As shown in fig. 2, the method 200 includes the following.
In 211, the first server determines a push object to be pushed to the terminal device and a memory usage requirement of the terminal device for the push object.
Optionally, the push object is a web page or a graphical interface.
For convenience of understanding, two ways in which the first server determines the push object to be pushed to the terminal device and the memory usage requirement of the push object by the terminal device will be described below with reference to fig. 2 and fig. 3, respectively.
Mode A
In 214, the terminal device may send a request message to the first server, where the request message is used to indicate a push object that is requested to be pushed to the terminal device by the first server and is used to indicate the memory usage requirement.
In 215, the first server may receive the request message.
Therefore, the first server needs to push the push object and the memory occupation requirement from the request message.
Alternatively, in the case shown in fig. 2, the first server may be the server 120 shown in fig. 1.
Mode B
In 217, the terminal device may send a request message to the second server, where the request message is used to indicate a push object that is requested to be pushed to the terminal device by the second server and is used to indicate the memory usage requirement.
At 218, the second server receives the request message.
In 219, the second server determines, from the request message, a push object to be pushed to the terminal device and the memory usage requirement, and estimates a size of a memory occupied by the push object.
In 220, when the size of the memory occupied by the pushed object cannot meet the memory occupation requirement, a redirection message is sent to the first server, where the redirection message is used to indicate the pushed object and the memory occupation requirement pushed by the first server to the terminal device.
At 221, the first server receives the redirect message.
Therefore, the first server can obtain the memory occupation requirement of the terminal device on the object to be pushed and the pushed object needing to be pushed from the redirection message.
Optionally, when the size of the memory occupied by the push object can meet the memory occupation requirement, the first server may directly send the unprocessed push object to the terminal device.
Alternatively, in the case shown in fig. 3, the first server may be the server 130 shown in fig. 1, and the second server may be the server 120 shown in fig. 1.
The request message sent by the terminal device to the first server or the second server may add a field in the existing message to implement carrying the memory occupation requirement for the pushed object.
For example, when the object to be pushed is a web page, the terminal device may request the web page by invoking a browser client, where the browser information may be carried in a User Agent (UA), and a field may be added in the UA to carry a memory usage requirement of the terminal device for the pushed object, where the field may be set at any position in the UA, for example, in a first field, a middle field, or a last field. The following example is provided with a field carrying the memory usage requirement being set in the last field of the UA, where the example may be applied in an android system:
User-Agent:Mozilla/5.0(Linux;U;Android 2.2.1;en-us;Nexus One Build/FRG83)AppleWebKit/533.1(KHTML,like Gecko)Version/4.0Mobile Safari/533.1DeviceMem/51200
in the above example, the memory footprint requirement indicates that the memory footprint of the push object is less than 51200 KB.
Optionally, in the embodiment of the present invention, the request message sent by the terminal device may include a currently remaining memory of the terminal device, and the memory usage requirement indicated by the request message is that the memory occupied by the push object in the terminal device cannot be higher than the currently remaining memory.
Optionally, in this embodiment of the present invention, what is carried in the request message sent by the terminal device may be a percentage of a current remaining memory or a percentage of a total memory of the terminal device, for example, 50% of the current remaining memory or 20% of the total memory, where the memory usage requirement indicated by the request message is that a memory occupied by the push object in the terminal device cannot be higher than 50% of the current remaining memory or 20% of the total memory.
The percentage may be determined according to a general occupied memory ratio and a terminal performance, and is not particularly limited herein. For example, if the memory normally occupied by the terminal is 70%, although the current remaining memory is very high, considering that the memory may change suddenly, it may be determined that the memory occupied by the push object in the terminal device cannot be higher than 20% of the total memory in combination with the actual usage of the terminal device.
Optionally, in the embodiment of the present invention, the request message sent by the terminal device may carry the current remaining memory of the terminal device. The server may determine the memory usage requirement of the terminal device according to the predetermined percentage, for example, if the predetermined percentage is 70%, the memory usage requirement of the terminal device for the push object is not higher than 70% of the remaining memory. At this time, it may be considered that the request message implicitly indicates the memory usage requirement of the terminal device for the push object.
At 212, the first server processes the pushed object according to the memory footprint requirement.
Optionally, in the embodiment of the present invention, processing the push object according to the memory usage requirement may also be dynamically generating a push object that meets the memory usage requirement.
For example, when the push object is a graphical interface, the interface elements may be combined according to the memory occupation requirement of the terminal device, so as to dynamically generate the graphical interface.
Optionally, in the embodiment of the present invention, processing the push object may refer to processing an existing push object.
For example, if the terminal device needs a certain web page, the existing web page may be processed according to the memory occupation requirement of the terminal device.
Optionally, in the embodiment of the present invention, the first server may estimate a size of a memory occupied by the pushed object; and when the size of the memory occupied by the push object cannot meet the memory occupation requirement, processing the push object, so that the size of the memory occupied by the processed push object meets the memory occupation requirement.
Optionally, in this embodiment of the present invention, at least one of the following processes may be performed on the push object:
(1) the filtering process of irrelevant content, specifically, the original content of the push object can be analyzed, and irrelevant content, such as advertisements, can be filtered out.
(2) And (5) processing the picture.
(3) Rich media link removal processing, such as processing of video tags, audio tags, and the like.
(4) And removing blocks in the object.
Optionally, in this embodiment of the present invention, the pushed object may be processed in sequence, where after the pushed object is processed in a current processing manner, if a size of a memory occupied by the processed pushed object cannot meet a memory requirement, processing in a next processing manner is continued, otherwise, processing of the pushed object is stopped, where a processing sequence may be as follows:
(1) and (5) filtering irrelevant content.
In particular, the original content of the push object may be analyzed, filtering out irrelevant content, such as advertisements, etc.
(2) And (5) processing the picture.
Specifically, in the method (1), the memory cannot meet the memory occupation requirement of the terminal device, the first server performs the low memory processing on the picture, because the picture occupies a larger proportion of the webpage, which often causes the terminal device to consume a larger memory, so the low memory processing on the picture is preferentially performed.
(3) And (4) removing the rich media link.
Specifically, if the memory occupation requirement of the terminal device cannot be met after the processing by the method (2), the first server needs to remove the rich media link processing, and remove the rich media tag link on the push object, such as a video (video) tag, an audio (audio) tag, and the like.
(4) And removing blocks in the object.
Specifically, if the method (3) cannot meet the memory occupation requirement after processing the picture, the contents of the pushed object need to be analyzed and rearranged, important blocks are removed, and the pushed object is rearranged to obtain a simplified pushed object.
Alternatively, when the push object is a web page, the block may be a block level element (DIV) of the web page.
Optionally, in this embodiment of the present invention, the picture processing includes picture removal processing or picture quality reduction processing;
the first server can determine whether the memory size occupied by the pushed object meets the memory occupation requirement when all pictures in the pushed object are removed;
if yes, performing picture quality reduction processing on the push object;
and if the condition is not met, performing picture removal processing on the push object.
Optionally, in this embodiment of the present invention, the picture quality reduction processing may include at least one of:
(1) and converting the picture format.
Generally, the difference of memory consumption of picture formats is very large (WebP, PNG8, etc. are the formats which currently occupy less memory), for example, the WebP format is reduced by 28% to 45% compared with the PNG format, and the WebP picture format has a better compression ratio, so that PNG and JPG can be converted into the WebP format or other formats with lower compression ratios.
(2) And (5) controlling the compression quality.
Some formats can be used for compression quality control, for example, WebP can adopt lossy compression and lossless compression, and the lossy compression can be used for reducing the picture volume according to the memory requirement.
(3) The number of picture colors is reduced.
The abundance degree of the displayed colors is determined by the number of different colors, and 32 bits can be changed into 8 bits for the insufficient memory of the terminal, so that the volume of the picture is reduced, and the memory occupation after decoding is also reduced.
Optionally, the push object comprises a plurality of chunks; and the first server processes the current block according to the priorities of the plurality of blocks, if the size of the memory occupied by the pushed object cannot meet the memory requirement, the next block is processed, and if not, the processing of the pushed object is stopped.
For example, as shown in fig. 4, a web page is divided into different partitions (DIV) of a, B, C, D, E, and F, and from the perspective of user experience, a common user browses the page from top to bottom, from left to right, so the importance of the page area can be divided into the importance of the page area according to the above rule: a > B > C > D > E > F, different blocks can adopt different priorities according to the importance of page blocks, less important positions are processed preferentially (display quality can be reduced to reduce occupation of memory), and the processing is carried out on the page blocks one by one until the memory requirement of the terminal is met.
The processing of each partition according to the priority may be processing any partition, and when the processing is performed on the partition, the processing may be performed on the partition in a plurality of types (for example, filtering processing and picture processing of irrelevant content), and if the processing cannot be satisfied, the processing of the next partition is performed. Alternatively, one process (for example, filtering process of irrelevant content) may be performed on the plurality of blocks in sequence, and if the requirement cannot be satisfied, the next process (for example, picture process) may be performed on the plurality of blocks in sequence.
In 213, the first server pushes the processed push object to the terminal device.
In 216, the terminal device receives the processed push object pushed by the first server.
Optionally, in this embodiment of the present invention, after receiving the pushed object pushed by the first server, the terminal device may perform other processing on the pushed object, for example, when the pushed object is a web page or a graphical interface, the terminal device may perform rendering processing on the web page or the graphical interface, and present the web page or the graphical interface in the display device.
In order to more clearly understand the present invention, a method 300 for pushing according to an embodiment of the present invention will be described below with reference to fig. 5. It should be understood that features of method 200 and method 300 may be used in combination, and that for the sake of brevity, some features may or may not be described in the context of one of the methods, but reference may be made to the description of the other method.
Fig. 5 is a schematic flow chart diagram of a method 300 for pushing in accordance with an embodiment of the present invention.
As shown in fig. 5, the method 300 includes the following.
In 301, the browser client obtains the remaining memory of the terminal device.
In 302, the browser client sends a web page data request to the web page server, where the web page data request carries the remaining memory of the terminal device.
In 303, the web server determines whether the memory occupied by the requested web page is less than or equal to the remaining memory of the terminal device. If so, 304 is performed, and if not 305 is performed.
At 304, the web server returns the normal web page to the browser client.
At 305, low memory processing is performed on the web page.
In 306, it is determined whether the processed web page is less than or equal to the remaining memory of the terminal device. If so, 307 is performed, otherwise 305 and 306 are repeated.
At 307, the low memory processed web page is sent to the browser client.
At 308, the browser client renders the web page, which may be an unprocessed web page or a web page that has been processed with reduced memory.
It should be understood that the browser client described above performs certain operations, and specifically, the terminal device may perform the operations by invoking the browser client.
It should also be understood that 305-307 may be performed by the web server, or may be performed by other servers, for example, a server dedicated to low memory processing of web pages.
Therefore, in the embodiment of the present invention, the memory occupation requirement of the terminal device for the push object is obtained; processing the push object according to the memory occupation requirement; the processed push object is pushed to the terminal equipment, so that the terminal equipment can be prevented from being crashed due to insufficient memory, and the user experience can be improved.
Furthermore, the embodiment of the invention can be more suitable for embedded equipment, the embedded equipment often has different memories along with the current platform operation scene, and in order to enable the embedded equipment to be used smoothly under a low-memory scene, the server processes the push object, so that the push object can be fundamentally suitable for equipment with different memory configurations.
Furthermore, in the embodiment of the invention, the special server is used for low-memory processing, so that the processing is more efficient.
Fig. 6 is a schematic block diagram of a server 400 according to an embodiment of the present invention. As shown in fig. 6, the server 400 includes a determining unit 410, a processing unit 420, and a transmitting unit 430.
The determining unit 410 is configured to determine a push object to be pushed to a terminal device and a memory occupation requirement of the terminal device for the push object;
a processing unit 420, configured to process the pushed object according to the memory occupation requirement;
a sending unit 430, configured to push the processed pushed object to the terminal device.
Optionally, the processing unit 420 is further configured to:
estimating the size of the memory occupied by the pushed object;
and when the size of the memory occupied by the push object cannot meet the memory occupation requirement, processing the push object, so that the size of the memory occupied by the processed push object meets the memory occupation requirement.
Optionally, as shown in fig. 6, the server 400 further includes a receiving unit 440, configured to: receiving a redirection message sent by a second server, wherein the redirection message is used for indicating the push object pushed to the terminal equipment and indicating the memory occupation requirement;
the determining unit 410 is further configured to:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the redirection message.
Optionally, as shown in fig. 6, the server 400 further includes a receiving unit 440, configured to: receiving a request message sent by the terminal device, wherein the request message is used for indicating the push object requested to be pushed to the terminal device and indicating the memory occupation requirement;
the determining unit 410 is further configured to:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the request message.
Optionally, the processing unit 420 is further configured to:
performing at least one of the following processes on the push object:
filtering processing of irrelevant content, picture processing, rich media link removing processing and removing processing of blocks in the object.
Optionally, the processing unit 420 is further configured to:
processing the push object according to a preset processing sequence:
filtering irrelevant content, processing pictures, removing rich media links and removing blocks in the object;
after the push object is processed by using the current processing mode, if the size of the memory occupied by the processed push object cannot meet the memory requirement, continuing to process the next processing mode, otherwise, stopping processing the push object.
Optionally, the picture processing includes picture removal processing or picture quality reduction processing;
the processing unit 420 is further configured to:
determining whether the size of the memory occupied by the pushed object meets the memory occupation requirement when all pictures in the pushed object are removed;
if yes, performing picture quality reduction processing on the push object;
and if the condition is not met, performing picture removal processing on the push object.
Optionally, the push object comprises a plurality of chunks;
the processing unit 420 is further configured to:
and according to the priorities of the plurality of blocks, after the current block is processed, if the size of the memory occupied by the pushed object cannot meet the memory requirement, continuing to process the next block, otherwise, stopping processing the pushed object.
Optionally, the push object is a web page or a graphical interface.
It should be understood that the server 400 may be the first server mentioned in the method embodiments, and corresponding operations performed by the first server may be performed, which are not described herein again for brevity.
Fig. 7 is a schematic block diagram of a terminal device 500 according to an embodiment of the present invention. As shown in fig. 7, the terminal device 500 includes:
a sending unit 510, configured to send a request message to a first server, where the request message is used to indicate a push object requested to be pushed to the terminal device and is used to indicate a memory usage requirement of the terminal device for the push object;
a receiving unit 520, configured to receive the push object sent by the first server or the second server and processed according to the memory usage requirement.
Optionally, the push object is a web page or a graphical interface.
It should be understood that the terminal device 500 may be the terminal device mentioned in the method embodiment, and may perform corresponding operations performed by the terminal device, which is not described herein again for brevity.
Fig. 8 is a schematic block diagram of a server 600 according to an embodiment of the present invention. As shown in fig. 8, the server 600 may include: a receiving unit 610, an estimating unit 620 and a transmitting unit 630.
A receiving unit 610, configured to receive a request message sent by a terminal device, where the request message is used to indicate a push object requested to be pushed to the terminal device and is used to indicate a memory occupation requirement of the terminal device for the push object;
an estimating unit 620, configured to estimate a size of a memory occupied by the pushed object;
a sending unit 630, configured to send a redirection message to the first server when the size of the memory occupied by the pushed object cannot meet the memory occupation requirement, where the redirection message is used to indicate the pushed object pushed to the terminal device and is used to indicate the memory occupation requirement.
Optionally, the push object is a web page or a graphical interface.
It should be understood that the server 600 may be the second server mentioned in the method embodiment, and may perform corresponding operations performed by the second server, which are not described herein again for brevity.
Fig. 9 shows a schematic block diagram of a communication apparatus 700 according to an embodiment of the present invention, where the communication apparatus 700 includes:
a memory 710 for storing programs;
a transceiver 720 for communicating with other devices;
a processor 730 for executing programs in the memory 710.
Optionally, when the code is executed, the processor 730 may implement the method in which the first server performs each operation, and for brevity, will not be described again here. In this case, the communication device 700 may be a server.
Optionally, when the code is executed, the processor 730 may implement the method in which the terminal device performs various operations, which is not described herein for brevity. In this case, the communication apparatus 700 may be a terminal device.
Optionally, when the code is executed, the processor 730 may implement the method in which the second server performs each operation, and for brevity, will not be described again here. In this case, the communication device 700 may be a server.
It should be understood that, in the embodiment of the present invention, the processor 730 may be a Central Processing Unit (CPU), and the processor 730 may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 710, which may include both read-only memory and random access memory, provides instructions and data to the processor 530. A portion of the memory 710 may also include non-volatile random access memory. For example, the memory 710 may also store device type information.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 730. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 730 reads information in the memory and performs the steps of the method in combination with hardware thereof. To avoid repetition, it is not described in detail here.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (20)

1. A method for pushing, comprising:
the method comprises the steps that a first server determines a push object needing to be pushed to a terminal device and a memory occupation requirement of the terminal device on the push object, wherein the push object comprises a plurality of blocks;
processing the push object according to the memory occupation requirement, including:
determining the priorities of the plurality of blocks, wherein the priority of the block corresponding to the important area is high;
processing the plurality of blocks according to the sequence from low priority to high priority, after processing the current block, if the size of the memory occupied by the pushed object can not meet the memory occupation requirement, continuing to process the next block, otherwise stopping processing the pushed object,
wherein the processing of the push object comprises at least one of: filtering irrelevant content, processing pictures, removing rich media links and removing the current blocks;
and pushing the processed push object to the terminal equipment.
2. The method of claim 1, further comprising:
estimating the size of the memory occupied by the pushed object;
the processing the push object according to the memory occupation requirement includes:
and when the size of the memory occupied by the push object cannot meet the memory occupation requirement, processing the push object, so that the size of the memory occupied by the processed push object meets the memory occupation requirement.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a redirection message sent by a second server, wherein the redirection message is used for indicating the push object pushed to the terminal equipment and indicating the memory occupation requirement;
the determining, by the first server, a push object to be pushed to a terminal device and a memory occupation requirement of the terminal device for the push object include:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the redirection message.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a request message sent by the terminal device, wherein the request message is used for indicating the push object requested to be pushed to the terminal device and indicating the memory occupation requirement;
the determining, by the first server, a push object to be pushed to a terminal device and a memory occupation requirement of the terminal device for the push object include:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the request message.
5. The method of claim 1 or 2, wherein the processing the push object comprises:
processing the push object according to the following processing sequence:
filtering irrelevant content, processing pictures, removing rich media links and removing the current blocks;
after the push object is processed by using the current processing mode, if the size of the memory occupied by the processed push object cannot meet the memory occupation requirement, continuing to process the next processing mode, otherwise, stopping processing the push object.
6. The method according to claim 1 or 2, wherein the picture processing includes picture removal processing or picture quality reduction processing;
the processing the push object includes:
determining whether the size of the memory occupied by the pushed object meets the memory occupation requirement when all pictures in the pushed object are removed;
if yes, performing picture quality reduction processing on the push object;
and if the condition is not met, performing picture removal processing on the push object.
7. The method according to claim 1 or 2, wherein the pushed object is a web page or a graphical interface.
8. A method for pushing, comprising:
the method comprises the steps that a terminal device sends a request message to a first server, wherein the request message is used for indicating a push object which is requested to be pushed to the terminal device and indicating the memory occupation requirement of the terminal device on the push object, and the push object comprises a plurality of blocks;
receiving the processed push object sent by the first server or the second server, wherein the processing of the processed push object includes:
determining the priorities of the plurality of blocks, wherein the priority of the block corresponding to the important area is high;
processing the plurality of blocks according to the sequence of the priority from low to high, after processing the current block, if the size of the memory occupied by the push object cannot meet the memory occupation requirement, continuing to process the next block, otherwise, stopping processing the push object, wherein the processing of the push object comprises: at least one of a filtering process of irrelevant contents, a picture process, a rich media link removal process, and a removal process of the current block.
9. The method of claim 8, wherein the pushed object is a web page or a graphical interface.
10. A method for pushing, comprising:
receiving a request message sent by a terminal device, wherein the request message is used for indicating a push object requested to be pushed to the terminal device and indicating a memory occupation requirement of the terminal device on the push object, and the push object comprises a plurality of blocks;
estimating the size of the memory occupied by the pushed object;
when the size of the memory occupied by the pushed object cannot meet the memory occupation requirement, sending a redirection message to a first server, where the redirection message is used to indicate the pushed object pushed to the terminal device and is used to indicate the memory occupation requirement, so that the first server processes the pushed object according to the memory occupation requirement, including:
determining the priorities of the plurality of blocks, wherein the priority of the block corresponding to the important area is high;
processing the plurality of blocks according to the sequence of the priority levels from low to high, after the current block is processed, if the size of the memory occupied by the push object cannot meet the memory occupation requirement, continuing to process the next block, otherwise, stopping processing the push object, wherein the processing of the push object comprises at least one of the following processing: filtering irrelevant content, processing pictures, removing rich media links and removing the current blocks.
11. The method of claim 10, wherein the pushed object is a web page or a graphical interface.
12. A server, comprising:
the device comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining a push object needing to be pushed to a terminal device and the memory occupation requirement of the terminal device on the push object, and the push object comprises a plurality of blocks;
the processing unit is configured to process the pushed object according to the memory usage requirement, and includes: determining the priorities of the plurality of blocks, wherein the priority of the block corresponding to the important area is high; processing the plurality of blocks according to the sequence from low priority to high priority, after processing the current block, if the size of the memory occupied by the pushed object can not meet the memory occupation requirement, continuing to process the next block, otherwise stopping processing the pushed object,
wherein the processing of the push object comprises at least one of: filtering irrelevant content, processing pictures, removing rich media links and removing the current blocks;
and the sending unit is used for pushing the processed pushed object to the terminal equipment.
13. The server according to claim 12, wherein the processing unit is further configured to:
estimating the size of the memory occupied by the pushed object;
and when the size of the memory occupied by the push object cannot meet the memory occupation requirement, processing the push object, so that the size of the memory occupied by the processed push object meets the memory occupation requirement.
14. The server according to claim 12 or 13, wherein the server further comprises a receiving unit configured to: receiving a redirection message sent by a second server, wherein the redirection message is used for indicating the push object pushed to the terminal equipment and indicating the memory occupation requirement;
the determination unit is further configured to:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the redirection message.
15. The server according to claim 12 or 13, wherein the server further comprises a receiving unit configured to: receiving a request message sent by the terminal device, wherein the request message is used for indicating the push object requested to be pushed to the terminal device and indicating the memory occupation requirement;
the determination unit is further configured to:
and determining the push object to be pushed to the terminal equipment and the memory occupation requirement of the terminal equipment on the push object according to the request message.
16. The server according to claim 12 or 13, wherein the processing unit is further configured to:
processing the push object according to the following processing sequence:
filtering irrelevant content, processing pictures, removing rich media links and removing the current blocks;
after the push object is processed by using the current processing mode, if the size of the memory occupied by the processed push object cannot meet the memory occupation requirement, continuing to process the next processing mode, otherwise, stopping processing the push object.
17. The server according to claim 12 or 13, wherein the picture processing includes picture removal processing or picture quality reduction processing;
the processing unit is further to:
determining whether the size of the memory occupied by the pushed object meets the memory occupation requirement when all pictures in the pushed object are removed;
if yes, performing picture quality reduction processing on the push object;
and if the condition is not met, performing picture removal processing on the push object.
18. The server according to claim 12 or 13, wherein the pushed object is a web page or a graphical interface.
19. A terminal device, comprising:
a sending unit, configured to send a request message to a first server, where the request message is used to indicate a push object requested to be pushed to the terminal device and is used to indicate a memory usage requirement of the terminal device for the push object, and the push object includes multiple blocks;
a receiving unit, configured to receive the processed push object sent by the first server or the second server, where the processing of the processed push object includes:
determining the priorities of the plurality of blocks, wherein the priority of the block corresponding to the important area is high;
processing the plurality of blocks according to the sequence of the priority from low to high, after processing the current block, if the size of the memory occupied by the push object cannot meet the memory occupation requirement, continuing to process the next block, otherwise, stopping processing the push object, wherein the processing of the push object comprises: at least one of a filtering process of irrelevant contents, a picture process, a rich media link removal process, and a removal process of the current block.
20. The terminal device of claim 19, wherein the pushed object is a web page or a graphical interface.
CN201611129874.2A 2016-12-09 2016-12-09 Method, server and terminal equipment for pushing Active CN106790466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611129874.2A CN106790466B (en) 2016-12-09 2016-12-09 Method, server and terminal equipment for pushing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611129874.2A CN106790466B (en) 2016-12-09 2016-12-09 Method, server and terminal equipment for pushing

Publications (2)

Publication Number Publication Date
CN106790466A CN106790466A (en) 2017-05-31
CN106790466B true CN106790466B (en) 2020-10-27

Family

ID=58879614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611129874.2A Active CN106790466B (en) 2016-12-09 2016-12-09 Method, server and terminal equipment for pushing

Country Status (1)

Country Link
CN (1) CN106790466B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637040B (en) * 2018-09-26 2022-10-18 深圳市云歌人工智能技术有限公司 Method, apparatus and storage medium for distributing information based on priority
CN112448880A (en) * 2019-09-02 2021-03-05 中兴通讯股份有限公司 Method and device for sending RCS service message, client and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
CN105578264A (en) * 2015-12-30 2016-05-11 深圳Tcl数字技术有限公司 Method and device for processing animation menu based on smart television
CN105988836A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN106202195A (en) * 2016-06-27 2016-12-07 北京金山安全软件有限公司 Target push object pushing method and device and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8171135B2 (en) * 2007-07-12 2012-05-01 Viasat, Inc. Accumulator for prefetch abort
CN103699652A (en) * 2013-12-26 2014-04-02 浙江宇天科技股份有限公司 Webpage access method and webpage access system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
CN105988836A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN105578264A (en) * 2015-12-30 2016-05-11 深圳Tcl数字技术有限公司 Method and device for processing animation menu based on smart television
CN106202195A (en) * 2016-06-27 2016-12-07 北京金山安全软件有限公司 Target push object pushing method and device and server

Also Published As

Publication number Publication date
CN106790466A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107766359B (en) Method and device for converting page content into picture and computing equipment
CN110446062B (en) Receiving processing method for big data file transmission, electronic device and storage medium
US10158740B2 (en) Method and apparatus for webpage resource acquisition
EP3161827B1 (en) Efficient frame rendering
US20170083487A1 (en) Webpage data processing method and device
CN109729386B (en) Video file playing starting method and system, electronic equipment and storage medium
CN109600373B (en) Live data transmission method, device and system and readable storage medium
CN104079981A (en) Data processing method and data processing device
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN111291292A (en) Page rendering method and device, terminal equipment and storage medium
CN109151505B (en) Video transcoding method, system, device and computer readable storage medium
CN111510756A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN104104995A (en) Image display method and device
CN105677259A (en) Method for storing file in mobile terminal and mobile terminal
CN105099602A (en) File transmission method based on network speed and system
CN106790466B (en) Method, server and terminal equipment for pushing
CN110298896A (en) Picture code-transferring method, device and electronic equipment
KR101480214B1 (en) Method and system for web screen streaming based on dom mutation event
US10445397B2 (en) Method and apparatus for uploading information
CN111835651B (en) Data writing method, system, device and computer readable storage medium
CN108965295B (en) File compression and combination method and related device
CN112714365A (en) Video playing method and system
CN111510761A (en) First frame equalization current limiting method and device, computer equipment and readable storage medium
EP4443380A1 (en) Video coding method and apparatus, real-time communication method and apparatus, device, and storage medium
JP5110304B2 (en) Screen data transmitting apparatus, screen data transmitting method, and screen data transmitting program

Legal Events

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