Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides power-saving control method and device, with the economize on electricity demand to the user content of pages is carried out Loading Control, and technical scheme is following:
A kind of power-saving control method of client software comprises:
Confirm to open energy-saving mode;
Search whether comprise restriction loading object in the current load page, said restriction loads object and comprises dynamic content;
Restriction to being found loads object, stops the Dynamic Display of said object in the page.
Preferably, also comprise:
Restriction to being found loads object, generates the descriptor of said object;
The restriction corresponding with the descriptor replacement loads object, in the page, shows.
Wherein, loading object in the restriction that finds is under the situation of animation or video, and the descriptor of said formation object comprises:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Preferably, after showing descriptor, also comprise:
According to the trigger action of user, the restriction that is found is loaded object reload said descriptor.
Wherein, the mode of said unlatching energy-saving mode comprises:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
A kind of power-saving control method of client software comprises:
Confirm to open energy-saving mode;
Search and whether comprise restriction loading object in the page to be loaded;
Restriction to being found loads object, generates the descriptor of this object;
In the process that the page loads, the content that does not belong to restriction loading object is carried out normal load, and corresponding descriptor is showed in the position of restriction loading object in page Central Plains.
Wherein, loading object in the restriction that finds is under the situation of animation or video, and the descriptor of said formation object comprises:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Preferably, after showing descriptor, also comprise:
According to the trigger action of user, the restriction that is found is loaded object reload said descriptor.
Wherein, the mode of said unlatching energy-saving mode comprises:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
A kind of electricity-saving control device of client software comprises:
The pattern confirmation unit is used for confirming to open energy-saving mode;
Search the unit, be used for searching current load page and whether comprise restriction loading object, said restriction loads object and comprises dynamic content;
Stop display unit, be used for the restriction that is found is loaded object, stop the Dynamic Display of said object in the page.
Preferably, also comprise:
The descriptor generation unit is used for the restriction that is found is loaded object, generates the descriptor of said object;
The descriptor display unit is used for loading object with the corresponding restriction of descriptor replacement, in the page, shows.
Wherein, be under the situation of animation or video at the restriction loading content that finds, said descriptor generation unit specifically is used for:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Preferably, also comprise:
Reload the unit, be used for after showing descriptor,, the restriction that is found is loaded object reload according to the trigger action of user to said descriptor.
Wherein, the mode of said unlatching energy-saving mode comprises:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
A kind of electricity-saving control device of client software comprises:
The pattern confirmation unit is used for confirming to open energy-saving mode;
Search the unit, be used for searching the page to be loaded and whether comprise restriction loading object;
The descriptor generation unit is used for the restriction that is found is loaded object, generates the descriptor of said object;
Loading unit is used for the process in page loading, and the content that does not belong to restriction loading object is carried out normal load, and corresponding descriptor is showed in the position of restriction loading object in page Central Plains.
Wherein, loading object in the restriction that finds is under the situation of animation or video, and said descriptor generation unit specifically is used for:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Preferably, also comprise:
Reload the unit, be used for after showing descriptor,, the restriction that is found is loaded object reload according to the trigger action of user to said descriptor.
Wherein, the mode of said unlatching energy-saving mode comprises:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
The invention provides the page loading scheme under the power saving operation pattern; Wherein, First kind of embodiment is to propose to the situation that the page has loaded, after opening energy-saving mode, and can be with the dynamic content in the page; For example animation, video, audio frequency etc. stop to play, and reduce the purpose that terminal power consumes thereby reach.Second kind of embodiment then is to propose to the situation that the page does not load as yet; After opening energy-saving mode; The certain content that can treat in the load page limits loading, and on webpage, shows the descriptor of these restriction loading content, so that when producing power savings; Let the user can recognize what loading content is not on earth, and decide whether load these contents as required in its sole discretion.
Embodiment
In order to make those skilled in the art understand the technical scheme among the present invention better; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention describes in detail; Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtained should belong to the scope that the present invention protects.
According to the embodiments of the invention scheme, for user terminal has defined a kind of mode of operation: energy-saving mode, after this pattern was opened at the terminal, the load mechanism of the page also can correspondingly change, thereby reached the purpose that reduces power consumption of terminal.Open the difference on opportunity according to energy-saving mode, can be divided into again under the situation of load page and open energy-saving mode, and under the situation of load page not, open energy-saving mode.Below will describe power-saving control method under both of these case respectively.
Shown in Figure 1, under the situation of load page, open the process flow diagram of power-saving control method of a kind of client software of energy-saving mode, this method can may further comprise the steps:
S101 confirms to open energy-saving mode;
S102 searches whether comprise restriction loading object in the current load page, and it is dynamic content that said restriction loads object;
S103 loads object to the restriction that is found, and stops the Dynamic Display of this object in the page.
According to scheme provided by the present invention,, at first need define the set that a restriction loads object in order to realize control to page loading content; In this set, defined the characteristic of restriction loading object, for example some specific file type; For webpage; Load wherein picture material, animated content, video content, audio content or the like, all can consume a large amount of system resource, for example resources such as CPU, video card, sound card.Therefore, for the purpose that realizes economizing on electricity, can one or more of foregoing definition be defined as restriction and load object.
And for the webpage of accomplishing loading; Still image has not been clearly for the influence of power consumption, still, and under the situation that the page is not closed as yet; In order to keep the dynamic play of contents such as animation on the page, audio frequency, video, still need take bigger system resource.Therefore, can handle to reach the purpose of economize on electricity the dynamic content in the load page.
In the S102 of present embodiment; At first the dynamic content in the load page is searched; This step can be through obtaining the Webpage source code, searching the part that has the dynamic content characteristic in the source code then and realize; For example search the filename of the specific format that the page source code quoted, the media player of searching in the page source code calls field, or the like.Further, stop the Dynamic Display of these contents at S103, specifically can be the stops animation file broadcast, or audio/video player triggered the operation of " stopping to play " or " suspend and play ", or the like.After dynamic content stopped to play, the resources such as CPU, video card, sound card that originally are used to keep broadcast state were also correspondingly discharged, thereby reach the purpose that reduces system power dissipation.
Consider that the user is after opening energy-saving mode; Possibly no longer need browse this part content; Therefore in the another kind of embodiment of this instance,, also can further adopt the mode of shielding for the dynamic content on the webpage; These contents are not represented on webpage, thereby make the user obtain more succinct result of browse.
Further,, can also browse the content that some has shielded selectively again, can also in the shielding web page dynamic content, generate the descriptor of this part content in order to make the user whenever necessary.And, on the page, show the alternative raw content of the descriptor that is generated.Wherein, for guaranteeing energy-saving effect, the descriptor that is generated should be the content of static form, for example text, image or the like.
Generating the purpose of descriptor, is to let the user after the content conductively-closed, still can recognize the simple scenario of conductively-closed content.Illustrate, for dynamic content with document form shielding, can be with the filename of conductively-closed content, file type etc. as descriptor; For dynamic content with player form shielding, can with the player title, play object title etc. as descriptor; Especially, for dynamic contents such as animation, videos, a frame or multiframe in all right intercepting animation or the video, promptly at least one frame generates the one or more still image, with the descriptor of still image as said video or animation.The user at first can recognize on corresponding page location according to these descriptors, originally exists the current conductively-closed of some contents and has fallen, and further can also understand the simple scenario of these conductively-closed contents.If the user hopes to browse again these contents, can also trigger the operation of reloading that the restriction that has shielded is loaded object through the mode of click describing information.
According to the technical scheme that present embodiment provided, the user can open energy-saving mode according to the actual requirements through manually being provided with.For example, the user need be gone for a season after opening webpage, is unwilling to close the current opened page again, and this moment can manually opened energy-saving mode, stops the displaying of dynamic content on the webpage, to reduce meaningless power consumption.
According to the technical scheme that present embodiment provided, also can open energy-saving mode automatically through detecting some incidents.For example: the operation behavior to the user is monitored, and does not operate mouse or keyboard for a long time if find the user, can think then that the user is busy to have left, and can open energy-saving mode this moment automatically; Perhaps the dump energy of user terminal is monitored, when dump energy is lower than certain preset threshold value, then open energy-saving mode automatically.This method is specially adapted to the user terminal that notebook computer, panel computer, mobile phone etc. use the powered battery mode, can when terminal battery electricity quantity is low, prolong the service time at terminal.
Shown in Figure 2, be the process flow diagram of the power-saving control method of a kind of client software of unlatching energy-saving mode under the situation about also not loading at the page, this method can may further comprise the steps:
S201 confirms to open energy-saving mode;
S202 searches in the page to be loaded, whether comprises restriction and loads object;
S203 loads object to the restriction that is found, and generates the descriptor of this object;
S204 in the process that the page loads, carries out normal load to the content that does not belong to restriction loading object, and restriction loads the position of object in page Central Plains, shows corresponding descriptor.
For the webpage that does not also load, no matter be still image, or dynamic content such as animated video, all can in loading procedure, consume a large amount of system resources; Therefore; For the purpose that realizes economizing on electricity, can in the process of Web page loading, limit the loading of these contents.
In the S202 of present embodiment; Before Web page loading; At first load object set according to predefined restriction, the dynamic content of treating in the load page is searched, and this step can be through obtaining the Webpage source code, searching the part that has the dynamic content characteristic in the source code then and realize; For example search the filename of the specific format that the page source code quoted, the media player of searching in the page source code calls field, or the like.
In S203, the restriction that is found is loaded object, generate the descriptor of this object.Further, in the page loading procedure of S204, carry out normal load for the content that does not belong to restriction loading object, and limit the position that loads object, replace with corresponding descriptor and show in page Central Plains.
Wherein, showing the purpose of descriptor, is to let the user after the page loads, can recognize that those contents are limited to have loaded.In S203, for the content that loads with document form restriction, can be with the filename that is limited loading content, file type etc. as descriptor; For the content that loads with player form restriction, can with the player title, play object title etc. as descriptor; Especially, for dynamic contents such as animation, videos, a frame or multiframe in all right intercepting animation or the video generate the one or more still image, with the descriptor of still image as said video or animation.The user at first can recognize on corresponding page location according to these descriptors, originally exists current being limited of some contents and has loaded, and further can also understand these by the simple scenario of content.If the user hopes to browse again these contents, can also trigger the operation of reloading that the restriction that has shielded is loaded object through the mode of click describing information.
For the object that restriction loads, save network bandwidth resources thereby can not download earlier, when treating the load operation of user's manual triggers, download again and on the page, show.Certainly, also can download and be buffered in the local terminal in advance for the object that restriction loads, so that during the load operation of user's manual triggers, reading of data and loading fast.
According to the technical scheme that present embodiment provided, the user can open energy-saving mode according to the actual requirements through manually being provided with.For example, the user needs the log-on webpage mailbox to receive mail, but before seeing Mail Contents; Can see the various pictures on the webpage unavoidably, the content that animation etc. are nonsensical had both been wasted system resource; Can cause the consumption of the network bandwidth again, in this case, the user can be before opening webpage; Manually opened energy-saving mode, restriction loads some contents, to reduce meaningless power consumption.
Similar with a last embodiment, the technical scheme that present embodiment provided also can be opened energy-saving mode through detecting some incidents automatically.For example: the operation behavior to the user is monitored, if find that the user does not operate mouse or keyboard for a long time, then can open energy-saving mode automatically; Perhaps the dump energy of user terminal is monitored, when dump energy is lower than certain preset threshold value, then open energy-saving mode automatically, to prolong the service time at terminal.
Corresponding to top method embodiment, the present invention also provides a kind of electricity-saving control device of client software, referring to shown in Figure 3, comprising:
Pattern confirmation unit 310 is used for confirming to open energy-saving mode;
Wherein, the mode of unlatching energy-saving mode can comprise:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
Search unit 320, be used for searching current load page, whether comprise restriction and load object, it is dynamic content that said restriction loads object;
Stop display unit 330, the restriction that is found is loaded object, stop the Dynamic Display of this object in the page.
Referring to shown in Figure 4, in a kind of implementation of the present invention, said electricity-saving control device can also comprise:
Descriptor generation unit 340 is used for the restriction that is found is loaded object, generates the descriptor of this object;
Descriptor display unit 350 is used for loading object with the corresponding restriction of descriptor replacement, in the page, shows.
Wherein, be under the situation of animation or video at the restriction loading content that finds, descriptor generation unit 340 specifically can be used for:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Referring to shown in Figure 4, the electricity-saving control device that present embodiment provided can further include:
Reload unit 360, be used for after showing descriptor,, the restriction that is found is loaded object reload according to the trigger action of user to said descriptor.
The present invention also provides the electricity-saving control device of another kind of client software, referring to shown in Figure 5, comprising:
Pattern confirmation unit 410 is used for confirming to open energy-saving mode;
Wherein, the mode of unlatching energy-saving mode can comprise:
Dump energy to user terminal is monitored, and when dump energy is lower than preset threshold value, opens energy-saving mode;
And/or
Operation behavior to the user is monitored, and when user's shut-down operation time surpasses preset threshold value, opens energy-saving mode.
Search unit 420, be used for searching the page to be loaded, whether comprise restriction and load object;
Descriptor generation unit 430 is used for the restriction that is found is loaded object, generates the descriptor of this object;
Loading unit 440 is used for the process in page loading, and the content that does not belong to restriction loading object is carried out normal load, and restriction loads the position of object in page Central Plains, shows corresponding descriptor.
Wherein, be under the situation of animation or video at the restriction loading content that finds, descriptor generation unit 430 specifically can be used for:
Extract at least one frame in said video or the animation, generate still image;
With the descriptor of said still image as said video or animation.
Referring to shown in Figure 6, the electricity-saving control device that present embodiment provided can further include:
Reload unit 440, be used for after showing descriptor,, the restriction that is found is loaded object reload according to the trigger action of user to said descriptor.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when embodiment of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.The disclosed technical scheme of the embodiment of the invention can combine to be achieved with other devices through running browser or browser on basic hardware facility basis; Realize that by browser technical scheme efficient of the present invention is higher because the realization that browser can quickness and high efficiency to various limiting object stopping to load or stop to show.
Description through above embodiment can know, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than the power-saving control method and the device of client software provided by the present invention carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part all can change on embodiment and range of application.In sum, this description should not be construed as limitation of the present invention.