Movatterモバイル変換


[0]ホーム

URL:


CN102354262B - Power saving control method and device of client software - Google Patents

Power saving control method and device of client software
Download PDF

Info

Publication number
CN102354262B
CN102354262BCN201110299810.8ACN201110299810ACN102354262BCN 102354262 BCN102354262 BCN 102354262BCN 201110299810 ACN201110299810 ACN 201110299810ACN 102354262 BCN102354262 BCN 102354262B
Authority
CN
China
Prior art keywords
restriction
page
loads
load
descriptor
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
CN201110299810.8A
Other languages
Chinese (zh)
Other versions
CN102354262A (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing 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 Qizhi Software Beijing Co LtdfiledCriticalQizhi Software Beijing Co Ltd
Priority to CN201410413148.8ApriorityCriticalpatent/CN104156056B/en
Priority to CN201110299810.8Aprioritypatent/CN102354262B/en
Publication of CN102354262ApublicationCriticalpatent/CN102354262A/en
Application grantedgrantedCritical
Publication of CN102354262BpublicationCriticalpatent/CN102354262B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses a power-saving control method and a power-saving control device for client software, wherein the method comprises the following steps: confirming to start the power saving mode; searching whether a current loaded page contains a load limiting object, wherein the load limiting object comprises dynamic content; and stopping the dynamic display of the object in the page for the searched loading-limited object. The invention can generate the power-saving effect and simultaneously enable the user to know what the unloaded contents are and automatically determine whether to load the contents according to the requirement. The invention discloses a power-saving control method and a power-saving control device for client software, wherein the method comprises the following steps: confirming to start the power saving mode; searching whether a current loaded page contains a load limiting object, wherein the load limiting object comprises dynamic content; and stopping the dynamic display of the object in the page for the searched loading-limited object. The invention can generate the power-saving effect and simultaneously enable the user to know what the unloaded contents are and automatically determine whether to load the contents according to the requirement.

Description

Translated fromChinese
客户端软件的节电控制方法及装置Power saving control method and device of client software

技术领域technical field

 本发明涉及计算机应用技术领域,特别是涉及客户端软件的节电控制方法及装置。The present invention relates to the field of computer application technology, in particular to a power-saving control method and device for client software.

背景技术Background technique

随着计算机和互联网的快速发展,用户能够从互联网上获取的到内容也越来越丰富多彩,以网页为例,早期的网页形式比较单一,仅包含文本和静态图像等简单的内容,而现在的网页已经 成为了文本、图像、动画、音视频等多种元素的综合载体。网页内容的丰富,为用户带来了各种新鲜的体验,同时也对用户终端及网络提出了更高的要求。特别是对于图像、音视频等多媒体内容而言,一方面,这类内容的数据量远大于文本,需要占用一定网络带宽资源,另一方面,数据下载到本地终端之后,也需要消耗大量的系统资源来实现媒体内容的加载及展示。With the rapid development of computers and the Internet, the content that users can obtain from the Internet is becoming more and more colorful. Taking web pages as an example, the early web pages were relatively simple in form, containing only simple content such as text and static images. Now The web page has become a comprehensive carrier of various elements such as text, images, animations, audio and video. The abundance of web content brings various fresh experiences to users, and at the same time puts forward higher requirements for user terminals and networks. Especially for multimedia content such as images, audio and video, on the one hand, the data volume of such content is much larger than that of text, which requires a certain amount of network bandwidth resources; on the other hand, after the data is downloaded to the local terminal, it also consumes a lot of system Resources are used to load and display media content.

现有中的“广告过滤”技术,能够在一定程度上解决上述问题。由于一些网站中存在着过多的广告内容,这些内容占据着大量的页面空间,或者以弹出窗口的形式不断出现,对用户的正常浏览造成干扰。“广告过滤”技术的基本原理是:预先根据一些常见广告内容的特征定义一个过滤名单,在打开网页的过程中,首先将网页的所包含的内容与名单进行匹配,对于匹配成功的内容不予加载,从而提升用户的浏览体验。利用这一技术,用户可以通过自行定义过滤名单的方式,实现对特定网页内容的过滤。The existing "advertising filtering" technology can solve the above problems to a certain extent. Because there are too many advertisement contents in some websites, these contents occupy a large amount of page space, or appear continuously in the form of pop-up windows, causing interference to users' normal browsing. The basic principle of "advertising filtering" technology is: define a filtering list in advance according to the characteristics of some common advertising content, and in the process of opening the webpage, firstly match the content contained in the webpage with the list, and ignore the content that matches successfully. Loading, thereby improving the user's browsing experience. Using this technology, users can filter the content of specific web pages by defining their own filtering lists.

上述技术原本是针对广告过滤的需求提出,其最终效果是让用户在浏览网页的过程中,完全感知不到名单中所对应内容的存在。然而有时用户出于节电等特殊目的,仅希望在特定的情况下不加载这些内容,并且,对于有些内容,用户并不希望对其完全屏蔽,有些情况下想看,有些情况下不想看。现有的广告过滤技术还无法满足用户的上述需求。The above-mentioned technology was originally proposed for the requirement of advertisement filtering, and its final effect is to make the user completely unaware of the existence of the corresponding content in the list during the process of browsing the webpage. However, sometimes the user only wishes not to load these contents under specific circumstances for special purposes such as power saving, and, for some contents, the user does not wish to completely shield them, and wants to watch them in some cases, and does not want to watch them in some cases. Existing advertising filtering technologies are still unable to meet the above-mentioned needs of users.

发明内容Contents of the invention

为解决上述技术问题,本发明实施例提供节电控制方法及装置,以针对用户的节电需求对页面内容进行加载控制,技术方案如下:In order to solve the above technical problems, the embodiments of the present invention provide a power-saving control method and device to control the loading of page content according to the user's power-saving needs. The technical solution is as follows:

一种客户端软件的节电控制方法,包括:A power saving control method for client software, comprising:

确认开启节电模式;Confirm that the power saving mode is turned on;

查找当前已加载页面中是否包含限制加载对象,所述限制加载对象包括动态内容;Find whether the currently loaded page contains a restricted loading object, and the restricted loading object includes dynamic content;

对所查找到的限制加载对象,停止所述对象在页面中的动态展示。For the found limited loading object, stop the dynamic display of the object on the page.

优选地,还包括:Preferably, it also includes:

对所查找到的限制加载对象,生成所述对象的描述信息;For the found restricted loading object, generate description information of the object;

以描述信息替换对应的限制加载对象,在页面中展示。Replace the corresponding restricted loading object with description information and display it on the page.

其中,在查找到的限制加载对象为动画或视频的情况下,所述生成对象的描述信息,包括:Wherein, in the case that the found restricted loading object is animation or video, the description information of the generated object includes:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

优选地,在展示描述信息后,还包括:Preferably, after displaying the description information, it also includes:

根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。According to the user's trigger operation on the description information, the found restricted loading object is reloaded.

其中,所述开启节电模式的方式,包括:Wherein, the manner of turning on the power saving mode includes:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

一种客户端软件的节电控制方法,包括:A power saving control method for client software, comprising:

确认开启节电模式;Confirm that the power saving mode is turned on;

查找待加载页面中是否包含限制加载对象;Find out whether the page to be loaded contains a restricted loading object;

对所查找到的限制加载对象,生成该对象的描述信息;For the found restricted loading object, generate description information of the object;

在页面加载的过程中,对不属于限制加载对象的内容进行正常加载,以及,在页面中原限制加载对象的位置展示相应的描述信息。During the page loading process, normally load the content that does not belong to the restricted loading object, and display the corresponding description information at the position of the original restricted loading object on the page.

其中,在查找到的限制加载对象为动画或视频的情况下,所述生成对象的描述信息,包括:Wherein, in the case that the found restricted loading object is animation or video, the description information of the generated object includes:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

优选地,在展示描述信息后,还包括:Preferably, after displaying the description information, it also includes:

根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。According to the user's trigger operation on the description information, the found restricted loading object is reloaded.

其中,所述开启节电模式的方式,包括:Wherein, the manner of turning on the power saving mode includes:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

一种客户端软件的节电控制装置,包括:A power saving control device of client software, comprising:

模式确认单元,用于确认开启节电模式;A mode confirmation unit, configured to confirm that the power saving mode is turned on;

查找单元,用于查找当前已加载页面中是否包含限制加载对象,所述限制加载对象包括动态内容;A search unit, configured to find whether the currently loaded page contains a restricted loading object, and the restricted loading object includes dynamic content;

停止展示单元,用于对所查找到的限制加载对象,停止所述对象在页面中的动态展示。The stop display unit is configured to load the found restricted object, and stop the dynamic display of the object on the page.

优选地,还包括:Preferably, it also includes:

描述信息生成单元,用于对所查找到的限制加载对象,生成所述对象的描述信息;A description information generation unit, configured to generate description information for the found restricted loading object;

描述信息展示单元,用于以描述信息替换对应的限制加载对象,在页面中展示。The description information display unit is used to replace the corresponding restricted loading object with the description information and display it on the page.

其中,在查找到的限制加载内容为动画或视频的情况下,所述描述信息生成单元,具体用于:Wherein, in the case that the found restricted loading content is animation or video, the description information generating unit is specifically used for:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

优选地,还包括:Preferably, it also includes:

重新加载单元,用于在展示描述信息后,根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。The reloading unit is configured to reload the found limited loading object according to a user's trigger operation on the description information after the description information is displayed.

其中,所述开启节电模式的方式,包括:Wherein, the manner of turning on the power saving mode includes:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

一种客户端软件的节电控制装置,包括:A power saving control device of client software, comprising:

模式确认单元,用于确认开启节电模式;A mode confirmation unit, configured to confirm that the power saving mode is turned on;

查找单元,用于查找待加载页面中是否包含限制加载对象;A search unit is used to find whether the page to be loaded contains a restricted loading object;

描述信息生成单元,用于对所查找到的限制加载对象,生成所述对象的描述信息;A description information generation unit, configured to generate description information for the found restricted loading object;

加载单元,用于在页面加载的过程中,对不属于限制加载对象的内容进行正常加载,以及,在页面中原限制加载对象的位置展示相应的描述信息。The loading unit is used to normally load content that does not belong to the restricted loading object during the page loading process, and display corresponding description information at the position of the original restricted loading object on the page.

其中,在查找到的限制加载对象为动画或视频的情况下,所述描述信息生成单元,具体用于:Wherein, in the case that the found restricted loading object is animation or video, the description information generating unit is specifically used for:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

优选地,还包括:Preferably, it also includes:

重新加载单元,用于在展示描述信息后,根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。The reloading unit is configured to reload the found limited loading object according to a user's trigger operation on the description information after the description information is displayed.

其中,所述开启节电模式的方式,包括:Wherein, the manner of turning on the power saving mode includes:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

本发明提供了在节电工作模式下的页面加载方案,其中,第一种实施方式是针对页面已加载的情况提出,当开启节电模式后,会将页面中的动态内容,例如动画、视频、音频等停止播放,从而达到降低终端电量消耗的目的。第二种实施方式则是针对页面尚未加载的情况提出,当开启节电模式后,会对待加载页面中的特定内容进行限制加载,并且在网页上展示这些的限制加载内容的描述信息,以便在产生节电效果的同时,让用户能够了解到未加载内容到底是什么,并根据需要自行决定是否加载这些内容。The present invention provides a page loading solution in the power-saving working mode, wherein the first implementation mode proposes for the situation that the page has been loaded, when the power-saving mode is turned on, the dynamic content in the page, such as animation, video , audio, etc. to stop playing, so as to achieve the purpose of reducing the power consumption of the terminal. The second implementation mode is proposed for the situation that the page has not been loaded. When the power saving mode is turned on, the specific content in the page to be loaded will be restricted from loading, and the description information of these restricted loading content will be displayed on the web page, so that While producing power-saving effects, it allows users to know what the unloaded content is, and decide whether to load the content according to their needs.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the present invention, and those skilled in the art can also obtain other drawings based on these drawings.

图1为本发明实施例客户端软件的节电控制方法的流程图;1 is a flowchart of a power saving control method of client software according to an embodiment of the present invention;

图2为本发明实施例客户端软件的节电控制方法的另一种流程图;FIG. 2 is another flow chart of the power saving control method of the client software according to the embodiment of the present invention;

图3为本发明实施例客户端软件的节电控制装置的第一种结构示意图;FIG. 3 is a first structural schematic diagram of a power-saving control device of client software according to an embodiment of the present invention;

图4为本发明实施例客户端软件的节电控制装置的第二种结构示意图;FIG. 4 is a second structural schematic diagram of the power-saving control device of the client software according to the embodiment of the present invention;

图5为本发明实施例客户端软件的节电控制装置的第三种结构示意图;5 is a schematic diagram of a third structure of a power-saving control device of client software according to an embodiment of the present invention;

图6为本发明实施例客户端软件的节电控制装置的第四种结构示意图。FIG. 6 is a schematic diagram of a fourth structure of the power saving control device of the client software according to the embodiment of the present invention.

具体实施方式Detailed ways

为了使本领域技术人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention shall fall within the protection scope of the present invention.

根据本发明的实施例方案,为用户终端定义了一种工作模式:节电模式,当终端开启这种模式后,页面的加载机制也会相应发生变化,从而达到降低终端功耗的目的。根据节电模式开启时机的不同,又可以分为在已加载页面的情况下开启节电模式,以及在未加载页面的情况下开启节电模式。以下将分别对在这两种情况下节电控制方法进行说明。According to the embodiment of the present invention, a working mode is defined for the user terminal: power-saving mode. When the terminal turns on this mode, the loading mechanism of the page will change accordingly, so as to achieve the purpose of reducing the power consumption of the terminal. According to the timing of turning on the power saving mode, it can be divided into turning on the power saving mode when the page is loaded, and turning on the power saving mode when the page is not loaded. The power saving control methods in these two cases will be described respectively below.

图1所示,为在已加载页面的情况下,开启节电模式的一种客户端软件的节电控制方法的流程图,该方法可以包括以下步骤:As shown in FIG. 1 , it is a flow chart of a method for controlling power saving of a client software in which a power saving mode is turned on when a page has been loaded, and the method may include the following steps:

S101,确认开启节电模式;S101, confirm to turn on the power saving mode;

S102,查找当前已加载页面中是否包含限制加载对象,所述限制加载对象为动态内容;S102. Find whether the currently loaded page contains a restricted loading object, and the restricted loading object is dynamic content;

S103,对所查找到的限制加载对象,停止该对象在页面中的动态展示。S103. For the found restricted loading object, stop the dynamic display of the object on the page.

根据本发明所提供的方案,为了实现对页面加载内容的控制,首先需要定义一个限制加载对象的集合,该集合中,定义了限制加载对象的特征,例如某些特定的文件类型,对于网页而言,加载其中的图像内容、动画内容、视频内容、音频内容等等,都会消耗大量的系统资源,例如CPU、显卡、声卡等资源。因此,为了实现节电的目的,可以将上述内容定义的一种或者多种定义为限制加载对象。According to the solution provided by the present invention, in order to realize the control of the content loaded on the page, it is first necessary to define a collection of restricted loading objects, in which the characteristics of the restricted loading objects are defined, such as some specific file types, for web pages In other words, loading image content, animation content, video content, audio content, etc. therein will consume a lot of system resources, such as resources such as CPU, graphics card, and sound card. Therefore, in order to achieve the purpose of power saving, one or more of the above-mentioned content definitions may be defined as restricted loading objects.

而对于已经完成加载的网页而言,静态图像对于耗电的影响已经不是很明显,但是,在页面尚未关闭的情况下,为了维持页面上的动画、音频、视频等内容的动态播放,仍需要占用较大的系统资源。因此,可以对已加载页面的中的动态内容进行处理以达到节电的目的。 For web pages that have been loaded, the impact of static images on power consumption is not obvious. However, in the case that the page has not been closed, in order to maintain the dynamic playback of animation, audio, video and other content on the page, it is still necessary to Occupies large system resources. Therefore, dynamic content in loaded pages can be processed to save power. the

在本实施例的S102中,首先对已加载页面中的动态内容进行查找,该步骤可以通过获取网页页面源代码、然后查找源代码中具有动态内容特征的部分实现,例如查找页面源代码所引用的特定格式的文件名、查找页面源代码中的媒体播放器调用字段,等等。进一步地,在S103停止这些内容的动态展示,具体可以是停止动画文件的播放、或者对音频/视频播放器触发“停止播放”或“暂停播放”的操作,等等。在动态内容停止播放之后,原本用于维持播放状态的CPU、显卡、声卡等资源也被相应地释放出来,从而达到降低系统功耗的目的。In S102 of this embodiment, first search for the dynamic content in the loaded page, this step can be realized by obtaining the source code of the web page, and then searching for the part with dynamic content characteristics in the source code, for example, searching for the referenced content of the page source code format-specific filenames for , find media player call fields in the page source code, and so on. Further, stop the dynamic presentation of these contents at S103, specifically, stop the animation file playback, or trigger an operation of "stop playing" or "pause playing" on the audio/video player, and so on. After the dynamic content stops playing, resources such as the CPU, graphics card, and sound card originally used to maintain the playing state are also released accordingly, thereby achieving the purpose of reducing system power consumption.

考虑到用户在开启节电模式之后,可能不再需要浏览这部分内容,因此在本实例的另一种实施方式中,对于网页上的动态内容,也可以进一步采用屏蔽的方式,使这些内容不在网页上展现,从而使用户获得更加简洁的浏览效果。Considering that the user may no longer need to browse this part of the content after turning on the power saving mode, in another embodiment of this example, the dynamic content on the web page can also be further shielded so that these content are not in the Displayed on the web page, so that users can obtain a more concise browsing effect.

进一步地,为了令用户在有需要时,还可以有选择地重新浏览某些已屏蔽的内容,还可以在屏蔽网页动态内容的同时,生成这部分内容的描述信息。并将所生成的描述信息替代原内容,在页面上展示。其中,为保证节能效果,所生成的描述信息应该是静态形式的内容,例如文本、图像等等。Furthermore, in order to allow the user to selectively re-browse some blocked content when necessary, the description information of this part of the content can also be generated while blocking the dynamic content of the webpage. Replace the original content with the generated description information and display it on the page. Wherein, in order to ensure the energy saving effect, the generated description information should be content in a static form, such as text, image and so on.

生成描述信息的目的,是让用户在内容被屏蔽之后,仍然可以了解到被屏蔽内容的简单情况。举例说明,对于以文件形式屏蔽的动态内容,可以以被屏蔽内容的文件名、文件类型等作为描述信息;对于以播放器形式屏蔽的动态内容,可以以播放器名称、播放对象的标题等作为描述信息;特别地,对于动画、视频等动态内容,还可以截取动画或视频中的一帧或多帧,即至少一帧,生成一幅或多幅静态图像,以静态图像作为所述视频或动画的描述信息。用户根据这些描述信息,首先可以了解到在相应的页面位置上,原本存在着一些内容当前被屏蔽掉了,进一步还可以了解这些被屏蔽内容的简单情况。如果用户希望重新浏览这些内容,还可以通过点击描述信息的方式,触发对已屏蔽的限制加载对象的重新加载操作。The purpose of generating the description information is to allow the user to understand the simple situation of the blocked content after the content is blocked. For example, for dynamic content blocked in the form of a file, the file name and file type of the blocked content can be used as description information; for dynamic content blocked in the form of a player, the name of the player, the title of the playback object, etc. can be used as Descriptive information; in particular, for animation, video and other dynamic content, one or more frames in the animation or video, that is, at least one frame, can also be intercepted to generate one or more static images, and the static image can be used as the video or The description information of the animation. Based on the description information, the user can first know that some content is currently blocked at the corresponding page position, and can further understand the simple situation of these blocked content. If the user wishes to re-browse the content, he can also click on the description information to trigger the reloading operation of the blocked restricted loading object.

根据本实施例所提供的技术方案,用户可以根据实际需求通过手动设置,开启节电模式。例如,用户在打开网页之后,需要离开一段时间,又不愿意关闭当前已打开的页面,此时可以手动开启节电模式,停止网页上动态内容的展示,以减少无谓的功率消耗。According to the technical solution provided in this embodiment, the user can turn on the power saving mode through manual settings according to actual needs. For example, after opening a web page, the user needs to leave for a period of time and is unwilling to close the currently opened page. At this time, the power saving mode can be manually turned on to stop the display of dynamic content on the web page to reduce unnecessary power consumption.

根据本实施例所提供的技术方案,也可以通过检测一些事件,自动开启节电模式。例如:对用户的操作行为进行监测,如果发现用户在长时间没有操作鼠标或键盘,则可以认为用户有事离开了,此时可以自动开启节电模式;或者对用户终端的剩余电量进行监测,当剩余电量低于某个预设的阈值时,则自动开启节电模式。该方法特别适用于笔记本电脑、平板电脑、手机等使用电池供电方式的用户终端,可以在终端电池电量较低时,延长终端的使用时间。According to the technical solution provided by this embodiment, the power saving mode can also be automatically turned on by detecting some events. For example: monitor the user's operation behavior, if it is found that the user has not operated the mouse or keyboard for a long time, it can be considered that the user has something to leave, and the power saving mode can be automatically turned on at this time; or the remaining power of the user terminal is monitored. When the remaining power is lower than a preset threshold, the power saving mode is automatically turned on. This method is particularly suitable for user terminals using battery power supply such as notebook computers, tablet computers, and mobile phones, and can prolong the use time of the terminal when the battery power of the terminal is low.

图2所示,为在页面还未加载的情况下开启节电模式的一种客户端软件的节电控制方法的流程图,该方法可以包括以下步骤:As shown in FIG. 2 , it is a flowchart of a power saving control method of a client software that enables power saving mode when the page is not yet loaded, and the method may include the following steps:

S201,确认开启节电模式;S201, confirm to turn on the power saving mode;

S202,查找待加载页面中,是否包含限制加载对象;S202, find whether the page to be loaded contains a restricted loading object;

S203,对所查找到的限制加载对象,生成该对象的描述信息;S203. Generate description information for the found restricted loading object;

S204,在页面加载的过程中,对不属于限制加载对象的内容进行正常加载,以及,在页面中原限制加载对象的位置,展示相应的描述信息。S204 , during the page loading process, normally load the content that does not belong to the restricted loading object, and display corresponding description information at the position of the original restricted loading object on the page.

对于还没进行加载的网页而言,无论是静态图像、还是动画视频等动态内容,都会在加载过程中消费大量系统资源,因此,为了实现节电的目的,可以在加载网页的过程中,限制这些内容的加载。For web pages that have not yet been loaded, dynamic content such as static images or animated videos will consume a lot of system resources during the loading process. Therefore, in order to achieve the purpose of saving power, you can limit the loading of these contents.

在本实施例的S202中,在加载网页之前,首先根据预先定义的限制加载对象集合,对待加载页面中的动态内容进行查找,该步骤可以通过获取网页页面源代码、然后查找源代码中具有动态内容特征的部分实现,例如查找页面源代码所引用的特定格式的文件名、查找页面源代码中的媒体播放器调用字段,等等。In S202 of this embodiment, before loading the webpage, firstly, search for the dynamic content in the page to be loaded according to the predefined limited loading object set, this step can be obtained by obtaining the source code of the webpage, and then searching for dynamic Partial implementation of content features, such as finding filenames of a particular format referenced by page source code, finding media player call fields in page source code, and so on.

在S203中,对所查找到的限制加载对象,生成该对象的描述信息。进一步地,在S204的页面加载过程中,对于不属于限制加载对象的内容进行正常加载,而在页面中原限制加载对象的位置,替换为相应的描述信息进行展示。In S203, generate description information for the found restricted loading object. Further, during the page loading process of S204, the content that does not belong to the restricted loading object is normally loaded, and the position of the original restricted loading object in the page is replaced with corresponding description information for display.

其中,展示描述信息的目的,是让用户能在页面加载之后,可以了解到那些内容被限制加载了。在S203中,对于以文件形式限制加载的内容,可以以被限制加载内容的文件名、文件类型等作为描述信息;对于以播放器形式限制加载的内容,可以以播放器名称、播放对象的标题等作为描述信息;特别地,对于动画、视频等动态内容,还可以截取动画或视频中的一帧或多帧,生成一幅或多幅静态图像,以静态图像作为所述视频或动画的描述信息。用户根据这些描述信息,首先可以了解到在相应的页面位置上,原本存在着一些内容当前被限制加载了,进一步还可以了解这些被内容的简单情况。如果用户希望重新浏览这些内容,还可以通过点击描述信息的方式,触发对已屏蔽的限制加载对象的重新加载操作。Among them, the purpose of displaying the description information is to enable users to know which contents are restricted from loading after the page is loaded. In S203, for the content that is limited to be loaded in the form of a file, the file name and file type of the content that is limited to be loaded can be used as description information; etc. as descriptive information; in particular, for animation, video and other dynamic content, one or more frames in the animation or video can also be intercepted to generate one or more static images, and the static image can be used as the description of the video or animation information. Based on the description information, the user can first understand that some content is currently restricted to be loaded at the corresponding page position, and can further understand the simple situation of these content. If the user wishes to re-browse the content, he can also click on the description information to trigger the reloading operation of the blocked restricted loading object.

对于限制加载的对象,可以先不进行下载从而节省网络带宽资源,待用户手动触发加载操作时,再进行下载并在页面上展示。当然,对于限制加载的对象也可以预先下载并缓存在本地终端,以便用户手动触发加载操作时,能够快速读取数据并加载。For objects with limited loading, you can not download them first to save network bandwidth resources, and then download them and display them on the page when the user manually triggers the loading operation. Of course, objects with limited loading can also be pre-downloaded and cached on the local terminal, so that when the user manually triggers the loading operation, the data can be quickly read and loaded.

根据本实施例所提供的技术方案,用户可以根据实际需求通过手动设置,开启节电模式。例如,用户需要登录网页邮箱接收邮件,但是在看到邮件内容之前,难免会看到网页上的各种图片,动画等没有意义的内容,既浪费系统资源,又会导致网络带宽的消耗,这种情况下,用户可以在打开网页之前,手动开启节电模式,限制加载一些内容,以减少无谓的功率消耗。According to the technical solution provided in this embodiment, the user can turn on the power saving mode through manual settings according to actual needs. For example, users need to log in to the web mailbox to receive emails, but before seeing the contents of the emails, they will inevitably see various pictures, animations and other meaningless content on the webpage, which not only wastes system resources, but also consumes network bandwidth. In this case, the user can manually turn on the power saving mode before opening the webpage to limit the loading of some content to reduce unnecessary power consumption.

与上一实施例类似,本实施例所提供的技术方案也可以通过检测一些事件,自动开启节电模式。例如:对用户的操作行为进行监测,如果发现用户在长时间没有操作鼠标或键盘,则可以自动开启节电模式;或者对用户终端的剩余电量进行监测,当剩余电量低于某个预设的阈值时,则自动开启节电模式,以延长终端的使用时间。Similar to the previous embodiment, the technical solution provided by this embodiment can also automatically enable the power saving mode by detecting some events. For example: monitor the user's operation behavior, if it is found that the user has not operated the mouse or keyboard for a long time, the power saving mode can be automatically turned on; or monitor the remaining power of the user terminal, when the remaining power is lower than a preset When the threshold is exceeded, the power saving mode is automatically turned on to prolong the use time of the terminal.

相应于上面的方法实施例,本发明还提供一种客户端软件的节电控制装置,参见图3所示,包括:Corresponding to the above method embodiment, the present invention also provides a client software power-saving control device, as shown in FIG. 3 , including:

模式确认单元310,用于确认开启节电模式;A mode confirmation unit 310, configured to confirm that the power saving mode is turned on;

其中,开启节电模式的方式可以包括:Wherein, the manner of enabling the power saving mode may include:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

查找单元320,用于查找当前已加载页面中,是否包含限制加载对象,所述限制加载对象为动态内容;A search unit 320, configured to find whether the currently loaded page contains a restricted loading object, and the restricted loading object is dynamic content;

停止展示单元330,对所查找到的限制加载对象,停止该对象在页面中的动态展示。The stop display unit 330 stops the dynamic display of the object on the page for the found restricted loading object.

参见图4所示,在本发明的一种实现方式中,所述节电控制装置,还可以包括:Referring to Fig. 4, in an implementation manner of the present invention, the power-saving control device may further include:

描述信息生成单元340,用于对所查找到的限制加载对象,生成该对象的描述信息;A description information generation unit 340, configured to generate description information for the found restricted loading object;

描述信息展示单元350,用于以描述信息替换对应的限制加载对象,在页面中展示。The descriptive information display unit 350 is configured to replace the corresponding restricted loading object with the descriptive information and display it on the page.

其中,在查找到的限制加载内容为动画或视频的情况下,描述信息生成单元340具体可以用于:Wherein, in the case that the found restricted loading content is animation or video, the description information generation unit 340 may be specifically used to:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

参见图4所示,本实施例所提供的节电控制装置还可以进一步包括:Referring to Figure 4, the power-saving control device provided in this embodiment may further include:

重新加载单元360,用于在展示描述信息后,根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。The reloading unit 360 is configured to reload the found restricted loading object according to a user's trigger operation on the description information after the description information is displayed.

本发明还提供另一种客户端软件的节电控制装置,参见图5所示,包括:The present invention also provides another power-saving control device for client software, as shown in Figure 5, including:

模式确认单元410,用于确认开启节电模式;A mode confirmation unit 410, configured to confirm that the power saving mode is turned on;

其中,开启节电模式的方式可以包括:Wherein, the manner of enabling the power saving mode may include:

对用户终端的剩余电量进行监测,当剩余电量低于预设的阈值时,开启节电模式;Monitor the remaining power of the user terminal, and turn on the power saving mode when the remaining power is lower than the preset threshold;

和/或and / or

对用户的操作行为进行监测,当用户停止操作时间超过预设的阈值时,开启节电模式。The user's operation behavior is monitored, and when the user stops operating for more than the preset threshold, the power saving mode is turned on.

查找单元420,用于查找待加载页面中,是否包含限制加载对象;A search unit 420, configured to find whether the page to be loaded contains a restricted loading object;

描述信息生成单元430,用于对所查找到的限制加载对象,生成该对象的描述信息;A description information generation unit 430, configured to generate description information for the found restricted loading object;

加载单元440,用于在页面加载的过程中,对不属于限制加载对象的内容进行正常加载,以及,在页面中原限制加载对象的位置,展示相应的描述信息。The loading unit 440 is configured to normally load content that does not belong to the restricted loading object during the page loading process, and display corresponding description information at the position of the original restricted loading object on the page.

其中,在查找到的限制加载内容为动画或视频的情况下,描述信息生成单元430具体可以用于:Wherein, in the case that the found restricted loading content is animation or video, the description information generation unit 430 can be specifically used to:

提取所述视频或动画中的至少一帧,生成静态图像;Extract at least one frame in the video or animation to generate a static image;

将所述静态图像作为所述视频或动画的描述信息。The static image is used as the description information of the video or animation.

参见图6所示,本实施例所提供的节电控制装置还可以进一步包括:Referring to Figure 6, the power-saving control device provided in this embodiment may further include:

重新加载单元440,用于在展示描述信息后,根据用户对所述描述信息的触发操作,对所查找到的限制加载对象进行重新加载。The reloading unit 440 is configured to reload the found limited loading object according to a user's trigger operation on the description information after the description information is displayed.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本发明时可以把各单元的功能在同一个或多个软件和/或硬件中实现。本发明实施例所公开的技术方案可以通过在基本硬件设施基础上运行浏览器或者浏览器与其他装置结合予以实现,借助浏览器实现本发明的技术方案效率更高,因为浏览器可以快捷高效的实现对各种限制对象的停止加载或停止展示。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit can be implemented in one or more pieces of software and/or hardware. The technical solutions disclosed in the embodiments of the present invention can be implemented by running a browser on the basis of basic hardware facilities or by combining the browser with other devices. It is more efficient to implement the technical solutions of the present invention with the help of a browser, because the browser can quickly and efficiently Realize the stop loading or stop display of various restricted objects.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。It can be seen from the above description of the implementation manners that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

以上对本发明所提供的客户端软件的节电控制方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。The power-saving control method and device of the client software provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used to help understand the present invention. The method of the invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the invention, there will be changes in the specific implementation and application range. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (18)

CN201110299810.8A2011-09-302011-09-30 Power saving control method and device of client softwareActiveCN102354262B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201410413148.8ACN104156056B (en)2011-09-302011-09-30The power-saving control method and device of client software
CN201110299810.8ACN102354262B (en)2011-09-302011-09-30 Power saving control method and device of client software

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110299810.8ACN102354262B (en)2011-09-302011-09-30 Power saving control method and device of client software

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410413148.8ADivisionCN104156056B (en)2011-09-302011-09-30The power-saving control method and device of client software

Publications (2)

Publication NumberPublication Date
CN102354262A CN102354262A (en)2012-02-15
CN102354262Btrue CN102354262B (en)2014-08-27

Family

ID=45577829

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110299810.8AActiveCN102354262B (en)2011-09-302011-09-30 Power saving control method and device of client software

Country Status (1)

CountryLink
CN (1)CN102354262B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2014010655A (en)*2012-06-292014-01-20Fujitsu LtdControl device, control method, and control program
CN104656871A (en)*2013-11-212015-05-27华为终端有限公司Method for reducing power consumption of electronic device and electronic device
CN107832147A (en)*2017-10-302018-03-23努比亚技术有限公司A kind of browser execution method of adjustment, terminal and computer-readable recording medium
CN111767102B (en)*2020-03-252024-08-16北京沃东天骏信息技术有限公司Application program display method, information processing method, device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH0749819A (en)*1993-08-041995-02-21Canon Inc Server / client communication method
CN1662870A (en)*2002-04-182005-08-31英特尔公司 Method for media content display taking into account system power
CN101207807A (en)*2007-12-182008-06-25孟智平Method and system for processing video
US20100082414A1 (en)*2008-09-262010-04-01Kabushiki Kaisha ToshibaDisplay device and control method for the same
CN101969511A (en)*2009-06-162011-02-09英特尔公司Power conservation for mobile device displays
CN102147744A (en)*2011-04-012011-08-10奇智软件(北京)有限公司 A program loading method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH0749819A (en)*1993-08-041995-02-21Canon Inc Server / client communication method
CN1662870A (en)*2002-04-182005-08-31英特尔公司 Method for media content display taking into account system power
CN101207807A (en)*2007-12-182008-06-25孟智平Method and system for processing video
US20100082414A1 (en)*2008-09-262010-04-01Kabushiki Kaisha ToshibaDisplay device and control method for the same
CN101969511A (en)*2009-06-162011-02-09英特尔公司Power conservation for mobile device displays
CN102147744A (en)*2011-04-012011-08-10奇智软件(北京)有限公司 A program loading method and system

Also Published As

Publication numberPublication date
CN102354262A (en)2012-02-15

Similar Documents

PublicationPublication DateTitle
US10841359B2 (en)Media application backgrounding
CN105339932B (en)Browser driven power saving
CN114065010B (en) Server-based conversion of autoplay content to click-to-play content
KR102084577B1 (en)Activity continuation between electronic devices
US9116698B2 (en)Intelligent selection of operating state upon change of power state
CN108391009A (en) Application page display method, device, storage medium and electronic device
CN103685328B (en)A kind of advertisement broadcast method
CN102354262B (en) Power saving control method and device of client software
JP7586394B2 (en) Previously viewed content processing method and device, electronic device, and computer program
CN102929912A (en)Method and system for generating microblog pictures
WO2022022697A1 (en)Audio playback method and apparatus and electronic device
CN103902575A (en)Pictorial information loading method and related device
CN102147744A (en) A program loading method and system
CN107613315A (en) Video quality adjustment method, device, terminal equipment and storage medium
WO2022156674A1 (en)Chat content processing method and apparatus, and electronic device
CN104778172A (en)Prefetching processing method and device of web information, and corresponding web browsing device
CN104156056B (en)The power-saving control method and device of client software
US20250124073A1 (en)Search processing method and apparatus, device, medium, and program product
CN111935255A (en)Information processing method, device and storage medium
CN113282846B (en)Image display method and device, electronic equipment and computer readable storage medium
CN115086747A (en) Information processing method, apparatus, electronic device and readable storage medium
CN114510280A (en) Animation processing method, device, terminal and computer-readable storage medium
CN116932849A (en)Request processing method, device, computer equipment and storage medium
CN114897550A (en)Information flow content reminding method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CP03Change of name, title or address

Address after:100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after:Beijing Qizhi Business Consulting Co.,Ltd.

Address before:100016 East unit, 4th floor, Zhaowei building, 14 Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before:Qizhi software (Beijing) Co.,Ltd.

CP03Change of name, title or address
TR01Transfer of patent right

Effective date of registration:20220218

Address after:Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after:BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before:100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before:Beijing Qizhi Business Consulting Co.,Ltd.

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp