WO2020052247A1 - 网络资源批量加载方法、智能电视、存储介质及装置 - Google Patents

网络资源批量加载方法、智能电视、存储介质及装置 Download PDF

Info

Publication number
WO2020052247A1
WO2020052247A1 PCT/CN2019/085714 CN2019085714W WO2020052247A1 WO 2020052247 A1 WO2020052247 A1 WO 2020052247A1 CN 2019085714 W CN2019085714 W CN 2019085714W WO 2020052247 A1 WO2020052247 A1 WO 2020052247A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
resource
displayed
picture
idle rate
Prior art date
Application number
PCT/CN2019/085714
Other languages
English (en)
French (fr)
Inventor
曹芝勇
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2020052247A1 publication Critical patent/WO2020052247A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
    • H04N21/8153Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics comprising still images, e.g. texture, background image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/503Resource availability

Definitions

  • the present application relates to the technical field of network resource loading, and in particular, to a network resource batch loading method, a smart TV, a storage medium, and a device.
  • Embedded devices often have limited hardware resources, such as low memory and CPU performance, resulting in slow loading of network resources, especially picture resources. This can cause users to stutter, poor user experience, and perform better in embedded browser applications. obvious.
  • the loading of text resources and image resources is not synchronized, if too many network resources are loaded at the same time, such as thousands of pictures, the loading of text will be much faster than the loading of pictures, which will also lead to broken pictures (that is, network pictures are not Came out, showing the problem).
  • a large number of pictures are downloaded and loaded at the same time, which consumes CPU and memory resources, causing users to stall and affect user use.
  • the current technical solution is to pre-load network resources on startup to improve the user's operating experience, but this technology will slow down the startup time of the device and cause users to wait longer to perform normal operations.
  • the main purpose of this application is to provide a method for batch loading network resources, a smart TV, a storage medium, and a device, which are intended to solve the technical problems of how to avoid broken pictures and operation freezes when low-performance devices in the prior art load network resources .
  • the present application provides a method for batch loading network resources, which includes the following steps:
  • the smart TV generates a page to be displayed corresponding to the page loading instruction in response to a page loading instruction input by the user, and loads a text resource in the page to be displayed;
  • the step of obtaining a default image from the local storage and loading the default image to the image to be downloaded on the page to be displayed includes:
  • obtaining the system resource idle rate and downloading the picture resource of the page to be displayed according to the system resource idle rate includes:
  • the obtaining the current system resource idle rate includes:
  • the downloading the picture resource of the page to be displayed according to the current system resource idle rate includes:
  • the method for batch loading network resources further includes:
  • the method for batch loading a network resource further includes:
  • the present application also provides a smart TV.
  • the smart TV includes: a memory, a processor, and a network resource batch loading program stored on the memory and executable on the processor.
  • the network resource batch loading program is executed by the processor, the steps of the network resource batch loading method described above are implemented.
  • the present application also provides a storage medium on which a network resource batch loading program is stored.
  • the network resource batch loading program is executed by a processor, the network resource batch loading is implemented as described above. Method steps.
  • the present application further provides a network resource batch loading device.
  • the network resource batch loading device includes:
  • a text loading module configured to generate a page to be displayed corresponding to the page loading instruction in response to a page loading instruction input by a user, and load a text resource in the page to be displayed;
  • a picture obtaining module configured to obtain a default picture from a local storage, and load the default picture to a picture to be downloaded in the page to be displayed;
  • a picture downloading module configured to obtain a system resource idle rate, and download a picture resource of the page to be displayed according to the system resource idle rate;
  • a page refresh module is configured to refresh the page to be displayed according to the image resource, so that the image resource replaces a corresponding default image in the page to be displayed.
  • a text resource and a default image are quickly loaded, which avoids the image breaking phenomenon, and the image resource is downloaded in real time according to the system resource idle rate.
  • the image resource replaces the default image, thereby avoiding the frequent movement of text resources, solving the technical problem of user operation freeze, improving the page display effect, and the user experience is good.
  • FIG. 1 is a schematic structural diagram of a smart TV in a hardware operating environment according to a solution of an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a network resource batch loading method of the present application
  • FIG. 3 is a schematic flowchart of a second embodiment of a network resource batch loading method according to the present application.
  • FIG. 4 is a schematic flowchart of a third embodiment of a method for batch loading network resources according to the present application.
  • FIG. 5 is a functional module diagram of a first embodiment of a network resource batch loading device of the present application.
  • FIG. 1 is a schematic structural diagram of a smart TV in a hardware operating environment according to an embodiment of the present application.
  • the smart TV may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen, and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory or a non-volatile memory. memory), such as disk storage.
  • the memory 1005 may optionally be a storage server independent of the foregoing processor 1001.
  • FIG. 1 does not constitute a limitation on the smart TV, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components.
  • the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and a network resource batch loading program.
  • the network interface 1004 is mainly used to connect to a background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to a user device;
  • the smart TV calls the memory 1005 through the processor 1001 Load network programs stored in the batch and do the following:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • processor 1001 may call the network resource batch loading program stored in the memory 1005, and further perform the following operations:
  • a text resource and a default image are quickly loaded to avoid a broken image phenomenon, and a picture resource is downloaded in real time according to a system resource idle rate. After the picture resource is downloaded, The default image is replaced by an image resource, thereby avoiding the frequent movement of text resources, solving the technical problem of user operation freeze, improving the page display effect, and having a good user experience.
  • FIG. 2 is a schematic flowchart of a first embodiment of a network resource batch loading method according to the present application.
  • the method for batch loading network resources includes the following steps:
  • Step S10 In response to the page loading instruction input by the user, the smart TV generates a page to be displayed corresponding to the page loading instruction, and loads a text resource into the page to be displayed.
  • the executing subject of this embodiment is a smart TV
  • the smart TV may receive user instructions through a remote control or a touch screen to interact with the user, and there is no limitation on the interaction manner in this embodiment.
  • the smart TV When a user inputs a page load instruction, the smart TV will generate a page to be displayed corresponding to the page load instruction, and load a text resource corresponding to the page load instruction in the page to be displayed, so that the user can view it immediately Text resources to improve user experience.
  • Step S20 Obtain a default image from the local storage, and load the default image to the image to be downloaded in the page to be displayed.
  • the text resources and picture resources on the general page are displayed alternately, and a picture is attached to a paragraph of text.
  • the loading speed of the text resources is much faster than the loading speed of the picture resources.
  • the image resources After loading, the image resources have not been loaded, and the image is broken. There is no area for displaying the image resources on the page. In this way, each time a picture resource to be downloaded is loaded, some text resources are moved down to Provide areas for displaying picture resources, while text resources frequently move, resulting in poor user experience.
  • the default image is a plurality of images stored in the local memory in advance, and when the text resource is loaded, the default image is loaded to the image to be downloaded in the page to be displayed, so that the image
  • the display of text resources and the default image on the page to be displayed not only avoids the phenomenon of broken images, the default image also provides an area for subsequent loading of image resources, which can avoid the phenomenon of frequent movement of text resources and greatly improves the user experience.
  • Step S30 Obtain a system resource idle rate, and download a picture resource of the page to be displayed according to the system resource idle rate.
  • the system resource idle rate represents the idle occupancy rate of the smart TV system resources.
  • the system resource idle rate When the system resource idle rate is high, quickly download the picture resources of the page to be displayed.
  • the resource idle rate When the system When the resource idle rate is low, the download of the picture resources in the page to be displayed is suspended, and a timer is started, and the system resource idle rate is periodically queried through the timer, so that when the system resource idle rate is high To download the picture resource of the page to be displayed.
  • Step S40 refresh the page to be displayed according to the image resource, so that the image resource replaces the corresponding default image in the page to be displayed.
  • the page to be displayed will be refreshed through the image resource, specifically: replacing the default image in the page to be displayed with the image resource, thereby
  • the text resource and the image resource are displayed on the page to be displayed, and the phenomenon of broken images and frequent movement of the text resource is avoided.
  • a text resource and a default image are quickly loaded to avoid a broken image phenomenon, and a picture resource is downloaded in real time according to a system resource idle rate. After the picture resource is downloaded, The default image is replaced by an image resource, thereby avoiding the frequent movement of text resources, solving the technical problem of user operation freeze, improving the page display effect, and having a good user experience.
  • FIG. 3 is a schematic flowchart of a second embodiment of a network resource batch loading method according to the present application. Based on the embodiment shown in FIG. 2 above, a second embodiment of the network resource batch loading method of the present application is proposed.
  • step S20 specifically includes:
  • Step S201 Acquire the size of a picture resource corresponding to the page to be displayed.
  • Step S202 Obtain a default image of the same size from the local storage, and load the default image to the image to be downloaded in the page to be displayed.
  • the size of the picture resource includes the picture size and picture pixels.
  • the picture size and picture pixels of the picture resource corresponding to the page to be displayed will also be obtained, and searched from local memory
  • the default image with the same picture size and picture pixels of the image resource is described, and the found default image is obtained, and the default image is loaded into the to-be-downloaded picture on the page to be displayed. Since the default image is the same size as the image resource, the subsequent process of replacing the default image by the image resource will not affect the visual effect, is beneficial to maintaining the stability of the page to be displayed, and brings a better experience to the user.
  • the picture size and picture pixels of the corresponding picture resource are obtained, and a default picture with the same picture size and picture pixels of the picture resource of each picture to be downloaded is found from the local memory, Associate each pair of picture resources with the default picture, and load the corresponding default picture to the to-be-downloaded pictures in the page to be displayed in order according to the arrangement order of the picture resources.
  • the method for batch loading network resources further includes:
  • Step S400 determine whether the user is in an operation idle state, and when the user is in an operation idle state, perform the step of refreshing the page to be displayed according to the picture resource.
  • the method according to the A step of refreshing the page to be displayed by a picture resource when the user is not in an idle state of operation, indicating that the user is operating the page to be displayed, will wait for a fixed period of time, and judge again whether the user is in idle state of operation status.
  • the smart TV downloads a picture resource through a network resource download thread, and after downloading the picture resource, sends a picture download completion message to the page to be displayed through the network resource download thread, and the page to be displayed After receiving the picture download completion message, determine whether an operation command has been received, and if no operation command has been received, perform a page refresh.
  • the subsequent process of replacing the default image by the image resource will not affect the visual effect, which is beneficial to maintaining the stability of the page to be displayed and bringing Better user experience. And before the page is refreshed, judging whether the user is in an idle state of operation, which can avoid refreshing the page when the user operates, and improve the user experience.
  • FIG. 4 is a schematic flowchart of a third embodiment of a network resource batch loading method according to the present application. Based on the embodiment shown in FIG. 2 above, a third embodiment of the network resource batch loading method of the present application is proposed.
  • the step S30 specifically includes:
  • Step S301 Obtain the total number of pictures of the pictures to be downloaded corresponding to the page to be displayed;
  • Step S302 Obtain the current system resource idle rate
  • Step S303 download the picture resource of the page to be displayed according to the current system resource idle rate
  • Step S304 Count the number of downloaded pictures, and when the number of downloaded pictures is less than the total number of pictures, return to the step of obtaining the current system resource idle rate.
  • the current system resource idle rate will be calculated to download the picture resource according to the real-time system resource idle rate, to avoid being unable to download the picture resource when the system resource is insufficient. To improve real-time performance.
  • the smart TV obtains the total number of pictures of the pictures to be downloaded corresponding to the page to be displayed, obtains the current system resource idle rate, and downloads the picture resources of the page to be displayed according to the current system resource idle rate. , For each downloaded picture resource of the picture to be downloaded, counting the number of downloaded pictures, and when the number of downloaded pictures is less than the total number of pictures, return to the step of obtaining the current system resource idle rate until the downloaded pictures The number is equal to the total number of pictures of the pictures to be downloaded. At this time, all the picture resources are downloaded, and it is no longer necessary to obtain the current system resource idle rate.
  • step S302 specifically includes:
  • system resources include processors (CPU, Central Processing Unit) and memory
  • the current system resource idle rate includes the current CPU idle rate and the current memory idle rate.
  • the current memory idle rate is weighted to obtain the current system resource idle rate.
  • the current CPU idle rate m and the current memory idle rate n are obtained, and weights E and F are assigned to the obtained current CPU idle rate m and the current memory idle rate n, respectively, where E and F are fixed constants.
  • E and F are fixed constants.
  • the empirical value obtained from the experimental data, and E + F 1, then the current system resource idle rate is m ⁇ E + n ⁇ F.
  • step S303 specifically includes:
  • This embodiment will calculate the current working frequency of the network resource download thread according to the current system resource idle rate, and The speed of the current working frequency adaptively loads the picture resources of the page to be displayed.
  • the current system resource idle rate is directly proportional to the current working frequency of the network resource download thread, and has the following preset adjustment formulas:
  • x is the current system resource idle rate
  • f (x) is the current operating frequency
  • a, b, c, and d are fixed constants and are empirical values.
  • the method for batch loading network resources further includes:
  • the current system resource idle rate is substituted into the preset adjustment formula to calculate a current operating frequency.
  • the current operating frequency f (x) is greater than a preset threshold, it indicates that the current system resource idle rate is sufficient To download the image resources on the page to be displayed.
  • the current operating frequency f (x) is not greater than the preset threshold, it indicates that the current system resource idle rate is insufficient, and it is necessary to suspend downloading of picture resources, and start a timer to periodically query the current system through the timer.
  • Resource idle rate so that when the current system resource idle rate is high, download the picture resource of the page to be displayed.
  • the current system idle rate is obtained by weighting the current CPU idle rate and the current memory idle rate, and downloading picture resources according to the current system idle rate can make full use of the current system. Resources to maximize the utilization of current system resources when system performance is low.
  • an embodiment of the present application further provides a storage medium.
  • the storage medium stores a network resource batch loading program.
  • the network resource batch loading program is executed by a processor, the following operations are implemented:
  • a text resource and a default image are quickly loaded to avoid a broken image phenomenon, and a picture resource is downloaded in real time according to a system resource idle rate. After the picture resource is downloaded, The default image is replaced by an image resource, thereby avoiding the frequent movement of text resources, solving the technical problem of user operation freeze, improving the page display effect, and having a good user experience.
  • FIG. 5 is a functional module diagram of a first embodiment of a network resource batch loading apparatus according to the present application. Based on the network resource batch loading method, a first embodiment of the network resource batch loading apparatus of the present application is proposed.
  • the network resource batch loading device includes:
  • a text loading module 10 is configured to generate a page to be displayed corresponding to the page loading instruction in response to a page loading instruction input by a user, and load a text resource in the page to be displayed.
  • the smart TV when a user inputs a page load instruction, the smart TV will generate a page to be displayed corresponding to the page load instruction, and load a text resource corresponding to the page load instruction in the page to be displayed. To enable users to consult text resources in real time and improve user experience.
  • the picture obtaining module 20 is configured to obtain a default picture from a local memory, and load the default picture to a picture to be downloaded in the page to be displayed.
  • the text resources and picture resources on the general page are displayed staggered, and a picture is appended with a picture. Since the loading speed of the text resource is much faster than the loading speed of the picture resource, often after the text resource is completely loaded, the picture resource has not been loaded yet. , There is a broken image phenomenon, and there is no area for displaying picture resources on the page. In this way, each time a picture resource to be downloaded is loaded, some text resources are moved down to provide an area for displaying picture resources. Frequent resource movement causes poor user experience.
  • the default image is a plurality of images stored in the local memory in advance, and when the text resource is loaded, the default image is loaded to the image to be downloaded in the page to be displayed, so that the image
  • the display of text resources and the default image on the page to be displayed not only avoids the phenomenon of broken images, the default image also provides an area for subsequent loading of image resources, which can avoid the phenomenon of frequent movement of text resources and greatly improves the user experience.
  • the picture downloading module 30 is configured to obtain a system resource idle rate and download a picture resource of the page to be displayed according to the system resource idle rate.
  • the system resource idle rate represents the idle occupancy rate of the smart TV system resources.
  • the system resource idle rate When the system resource idle rate is high, quickly download the picture resources of the page to be displayed.
  • the resource idle rate When the system When the resource idle rate is low, the download of the picture resources in the page to be displayed is suspended, and a timer is started, and the system resource idle rate is periodically queried through the timer, so that when the system resource idle rate is high To download the picture resource of the page to be displayed.
  • a page refresh module 40 is configured to refresh the page to be displayed according to the image resource, so that the image resource replaces a corresponding default image in the page to be displayed.
  • the page to be displayed will be refreshed through the image resource, specifically: replacing the default image in the page to be displayed with the image resource, thereby
  • the text resource and the image resource are displayed on the page to be displayed, and the phenomenon of broken images and frequent movement of the text resource is avoided.
  • a text resource and a default image are quickly loaded to avoid a broken image phenomenon, and a picture resource is downloaded in real time according to a system resource idle rate. After the picture resource is downloaded, The default image is replaced by an image resource, thereby avoiding the frequent movement of text resources, solving the technical problem of user operation freeze, improving the page display effect, and having a good user experience.
  • each module in the network resource batch loading device is further configured to implement steps in the foregoing method, and details are not described herein again.
  • the method of the embodiment can be implemented by means of software plus a necessary universal hardware platform. Hardware, but in many cases the former is a better implementation.
  • the technical solution of the present application in essence or a part that contributes to the existing technology may be in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, CD-ROM), including several instructions to make a terminal smart TV (can be a mobile phone, computer, server, air conditioner, or network) Smart TV, etc.) execute the methods described in the embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种网络资源批量加载方法、智能电视、存储介质及装置,所述方法包括:智能电视响应于用户输入的页面加载指令,生成与页面加载指令对应的待展示页面,并在待展示页面中加载文字资源;从本地存储器中获取默认图,并将默认图加载至待展示页面中的待下载图片处;获取系统资源空闲率,并根据系统资源空闲率下载待展示页面的图片资源;根据图片资源对待展示页面进行刷新。

Description

网络资源批量加载方法、智能电视、存储介质及装置
技术领域
本申请涉及网络资源加载技术领域,尤其涉及一种网络资源批量加载方法、智能电视、存储介质及装置。
背景技术
嵌入式设备往往硬件资源有限,例如内存和CPU性能比较低下,从而导致网络资源加载缓慢,特别是图片资源,这样使得用户操作卡顿,用户体验差,而在嵌入式浏览器应用中表现更为明显。另外,由于文字资源和图片资源加载不同步,若同时加载的网络资源过多,例如上千张图,则文字的加载会远远快于图片加载,这样也会导致破图(即网络图片加载不出来,显示异常)的问题。同时大量的图片同时下载和加载,需要耗费CPU和内存资源,导致用户操作卡顿,影响用户使用。
目前的解决技术方案是开机进行网络资源预加载,从而提升用户的操作体验,但是这种技术会拖慢设备的开机时间,导致用户需要等待更长的时间,才能进行正常操作。
发明内容
本申请的主要目的在于提供一种网络资源批量加载方法、智能电视、存储介质及装置,旨在解决现有技术中低性能设备加载网络资源时如何避免出现破图和操作卡顿现象的技术问题。
为实现上述目的,本申请提供一种网络资源批量加载方法,所述方法包括以下步骤:
智能电视响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;
根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
可选地,所述从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处,包括:
获取所述待展示页面对应的图片资源的大小;
从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
可选地,所述获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源,包括:
获取所述待展示页面对应的待下载图片的图片总数目;
获取当前系统资源空闲率;
根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
可选地,所述获取当前系统资源空闲率,包括:
获取当前CPU空闲率及当前内存空闲率;
对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
可选地,所述根据所述当前系统资源空闲率下载所述待展示页面的图片资源,包括:
根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
可选地,所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率之后,所述网络资源批量加载方法还包括:
当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
可选地,所述根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图之前,所述网络资源批量加载方法还包括:
判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
此外,为实现上述目的,本申请还提供一种智能电视,所述智能电视包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的网络资源批量加载程序,所述网络资源批量加载程序被所述处理器执行时实现如上文所述网络资源批量加载方法的步骤。
此外,为实现上述目的,本申请还提供一种存储介质,所述存储介质上存储有网络资源批量加载程序,所述网络资源批量加载程序被处理器执行时实现如上文所述网络资源批量加载方法的步骤。
此外,为实现上述目的,本申请还提供一种网络资源批量加载装置,所述网络资源批量加载装置包括:
文字加载模块,用于响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
图片获取模块,用于从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
图片下载模块,用于获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;
页面刷新模块,用于根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
在本申请中,当接收到用户输入的页面加载指令时,快速加载文字资源及默认图,避免了出现破图现象,并根据系统资源空闲率实时下载图片资源,在图片资源下载完毕后,通过图片资源替换默认图,从而避免出现文字资源频繁移动的现象,解决了用户操作卡顿的技术问题,提高了页面展示效果,用户体验佳。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的智能电视结构示意图;
图2为本申请网络资源批量加载方法第一实施例的流程示意图;
图3为本申请网络资源批量加载方法第二实施例的流程示意图;
图4为本申请网络资源批量加载方法第三实施例的流程示意图;
图5为本申请网络资源批量加载装置第一实施例的功能模块图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的智能电视结构示意图。
如图1所示,所述智能电视可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储服务器。
本领域技术人员可以理解,图1中示出的结构并不构成对所述智能电视的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种存储介质的存储器1005中可以包括操作装置、网络通信模块、用户接口模块以及网络资源批量加载程序。
在图1所示的智能电视中,网络接口1004主要用于连接后台服务器,与所述后台服务器进行数据通信;用户接口1003主要用于连接用户设备;所述智能电视通过处理器1001调用存储器1005中存储的网络资源批量加载程序,并执行以下操作:
响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;
根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
获取所述待展示页面对应的图片资源的大小;
从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
获取所述待展示页面对应的待下载图片的图片总数目;
获取当前系统资源空闲率;
根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
获取当前CPU空闲率及当前内存空闲率;
对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
进一步地,处理器1001可以调用存储器1005中存储的网络资源批量加载程序,还执行以下操作:
判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
在本实施例中,当接收到用户输入的页面加载指令时,快速加载文字资源及默认图,避免了出现破图现象,并根据系统资源空闲率实时下载图片资源,在图片资源下载完毕后,通过图片资源替换默认图,从而避免出现文字资源频繁移动的现象,解决了用户操作卡顿的技术问题,提高了页面展示效果,用户体验佳。
基于上述硬件结构,提出本申请网络资源批量加载方法的实施例。
参照图2,图2为本申请网络资源批量加载方法第一实施例的流程示意图。
在第一实施例中,所述网络资源批量加载方法包括以下步骤:
步骤S10:智能电视响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源。
需要说明的是,本实施例的执行主体是智能电视,所述智能电视可通过遥控器或者触摸屏接收用户指令从而与用户进行交互,本实施例中对该交互方式不加以限制。在用户输入页面加载指令时,所述智能电视将生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载与所述页面加载指令对应的文字资源,实现用户即时查阅文字资源,提高用户体验。
步骤S20:从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
可以理解的是,一般页面中的文字资源和图片资源交错展示,一段文字后附有一张图片,当所述智能电视性能较低时,文字资源加载速度远大于图片资源加载速度,往往文字资源全部加载完毕后,图片资源还没有加载,出现破图现象,并且页面中并未留下展示图片资源的区域,这样,每加载一张待下载图片的图片资源,部分文字资源就向下移动,以提供展示图片资源的区域,而文字资源频繁移动,造成用户体验差。
需要说明的是,所述默认图是预先存储在本地存储器中的多张图片,在加载文字资源时,将所述默认图加载至所述待展示页面中的待下载图片处,从而在所述待展示页面中展示文字资源和默认图,不仅避免了出现破图现象,所述默认图还提供了后续加载图片资源的区域,可避免出现文字资源频繁移动的现象,极大地提高了用户体验。
步骤S30:获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源。
可以理解的是,所述系统资源空闲率代表了所述智能电视系统资源的空闲占有率,当所述系统资源空闲率较高时,快速下载所述待展示页面的图片资源,当所述系统资源空闲率较低时,暂停下载所述待展示页面中的图片资源,并启动一个定时器,通过所述定时器定时查询所述系统资源空闲率,从而在所述系统资源空闲率较高时,下载所述待展示页面的图片资源。
步骤S40:根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
需要说明的是,在下载完成所述图片资源后,将通过所述图片资源对所述待展示页面进行刷新,具体为:将所述待展示页面中的默认图替换为所述图片资源,从而实现在所述待展示页面中展示所述文字资源及所述图片资源,并避免了破图及文字资源频繁移动的现象。
在本实施例中,当接收到用户输入的页面加载指令时,快速加载文字资源及默认图,避免了出现破图现象,并根据系统资源空闲率实时下载图片资源,在图片资源下载完毕后,通过图片资源替换默认图,从而避免出现文字资源频繁移动的现象,解决了用户操作卡顿的技术问题,提高了页面展示效果,用户体验佳。
参照图3,图3为本申请网络资源批量加载方法第二实施例的流程示意图,基于上述图2所示的实施例,提出本申请网络资源批量加载方法的第二实施例。
在第二实施例中,所述步骤S20,具体包括:
步骤S201:获取所述待展示页面对应的图片资源的大小。
步骤S202:从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
需要说明的是,所述图片资源的大小包括图片尺寸及图片像素,在加载文字资源时,还将获取所述待展示页面对应的图片资源的图片尺寸及图片像素,从本地存储器中查找与所述图片资源的图片尺寸及图片像素相同的默认图,并获取查找到的默认图,将所述默认图加载至所述待展示页面中的待下载图片处。由于所述默认图与所述图片资源的大小相同,后续通过图片资源替换默认图的过程将不会影响视觉效果,有利于维持所述待展示页面的稳定性,带给用户更好的体验。
在具体实现中,根据所述页面加载指令获取对应的图片资源的图片尺寸及图片像素,从本地存储器中查找与每一张待下载图片的图片资源的的图片尺寸及图片像素相同的默认图,将每一对图片资源与默认图进行关联,按照所述图片资源的排列顺序依次将对应的默认图加载至所述待展示页面中的待下载图片处。
进一步地,所述步骤S40之前,所述网络资源批量加载方法还包括:
步骤S400:判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
可以理解的是,为了避免在用户操作时刷新页面,在下载完所述图片资源后,将判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤;当所述用户不处于操作空闲状态时,说明所述用户正在操作所述待展示页面,将等待固定时长,再次判断所述用户是否处于操作空闲状态。
在具体实现中,所述智能电视通过网络资源下载线程下载图片资源,并在下载完所述图片资源后,通过网络资源下载线程发送图片下载完成消息至所述待展示页面,所述待展示页面接收该图片下载完成消息后,判断是否接收到操作命令,若没有接收到操作命令,则进行页面刷新。
在本实施例中,由于所述默认图与所述图片资源的大小相同,后续通过图片资源替换默认图的过程将不会影响视觉效果,有利于维持所述待展示页面的稳定性,带给用户更好的体验。并且在页面刷新之前,判断所述用户是否处于操作空闲状态,能够避免在用户操作时刷新页面,提高用户体验。
参照图4,图4为本申请网络资源批量加载方法第三实施例的流程示意图,基于上述图2所示的实施例,提出本申请网络资源批量加载方法的第三实施例。
在第三实施例中,所述步骤S30,具体包括:
步骤S301:获取所述待展示页面对应的待下载图片的图片总数目;
步骤S302:获取当前系统资源空闲率;
步骤S303:根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
步骤S304:统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
需要说明的是,对于每一张待下载图片的图片资源,在下载之前,都将计算当前系统资源空闲率,以根据实时的系统资源空闲率下载图片资源,避免系统资源不足时无法下载图片资源,提高实时性。
在具体实现中,所述智能电视获取所述待展示页面对应的待下载图片的图片总数目,获取当前系统资源空闲率,并根据所述当前系统资源空闲率下载所述待展示页面的图片资源,每下载一张待下载图片的图片资源,统计一次已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤,直至已下载图片数目等于所述待下载图片的图片总数目,此时,所述图片资源全部下载完成,不再需要获取当前系统资源空闲率。
进一步地,所述步骤S302,具体包括:
获取当前CPU空闲率及当前内存空闲率;
对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
可以理解的是,系统资源包括处理器(CPU,Central Processing Unit)和内存,则所述当前系统资源空闲率包括当前CPU空闲率和当前内存空闲率,为了提高所述当前系统资源空闲率的代表性和全面性,通过对所述当前CPU空闲率和所述当前内存空闲率进行加权计算,得出所述当前系统资源空闲率。
在具体实现中,获取当前CPU空闲率m及当前内存空闲率n,对所述获取当前CPU空闲率m及所述当前内存空闲率n分别赋予权重E,F,其中,E,F为固定常量,由实验数据得出的经验值,并且E+F=1,则当前系统资源空闲率为m×E+n×F。
进一步地,所述步骤S303,具体包括:
根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
需要说明的是,当所述智能电视性能较低时,无法即时加载出全部文字资源和图片资源,本实施例将根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率,并根据所述当前工作频率的快慢适应性地加载所述待展示页面的图片资源。
可以理解的是,当前系统资源空闲率与所述网络资源下载线程的当前工作频率成正比,并且具有以下预设调整公式:
f(x)=b×lg(a×x+c)+d;
其中,x为当前系统资源空闲率,f(x)为当前工作频率,a,b,c,d是固定的常量,为经验值。
进一步地,所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率之后,所述网络资源批量加载方法还包括:
当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
在具体实现中,将所述当前系统资源空闲率代入所述预设调整公式中,计算当前工作频率,当所述当前工作频率f(x)大于预设阈值时,说明当前系统资源空闲率充足,下载所述待展示页面中的图片资源。当所述当前工作频率f(x)不大于所述预设阈值时,说明当前系统资源空闲率不足,需要暂停下载图片资源,并启动一个定时器,通过所述定时器定时查询所述当前系统资源空闲率,从而在所述当前系统资源空闲率较高时,下载所述待展示页面的图片资源。
在本实施例中,通过对所述当前CPU空闲率和所述当前内存空闲率进行加权计算,得出所述当前系统资源空闲率,根据当前系统资源空闲率下载图片资源,能够充分利用当前系统资源,在系统性能较低时实现当前系统资源利用的最大化。
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有网络资源批量加载程序,所述网络资源批量加载程序被处理器执行时实现如下操作:
响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;
根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
获取所述待展示页面对应的图片资源的大小;
从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
获取所述待展示页面对应的待下载图片的图片总数目;
获取当前系统资源空闲率;
根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
获取当前CPU空闲率及当前内存空闲率;
对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
进一步地,所述网络资源批量加载程序被处理器执行时还实现如下操作:
判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
在本实施例中,当接收到用户输入的页面加载指令时,快速加载文字资源及默认图,避免了出现破图现象,并根据系统资源空闲率实时下载图片资源,在图片资源下载完毕后,通过图片资源替换默认图,从而避免出现文字资源频繁移动的现象,解决了用户操作卡顿的技术问题,提高了页面展示效果,用户体验佳。
参照图5,图5为本申请网络资源批量加载装置第一实施例的功能模块图,基于所述网络资源批量加载方法,提出本申请网络资源批量加载装置的第一实施例。
在本实施例中,所述网络资源批量加载装置包括:
文字加载模块10,用于响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源。
需要说明的是,在用户输入页面加载指令时,所述智能电视将生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载与所述页面加载指令对应的文字资源,实现用户即时查阅文字资源,提高用户体验。
图片获取模块20,用于从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
可以理解的是,一般页面中的文字资源和图片资源交错展示,一段文字后附有一张图片,由于文字资源加载速度远大于图片资源加载速度,往往文字资源全部加载完毕后,图片资源还没有加载,出现破图现象,并且页面中并未留下展示图片资源的区域,这样,每加载一张待下载图片的图片资源,部分文字资源就向下移动,以提供展示图片资源的区域,而文字资源频繁移动,造成用户体验差。
需要说明的是,所述默认图是预先存储在本地存储器中的多张图片,在加载文字资源时,将所述默认图加载至所述待展示页面中的待下载图片处,从而在所述待展示页面中展示文字资源和默认图,不仅避免了出现破图现象,所述默认图还提供了后续加载图片资源的区域,可避免出现文字资源频繁移动的现象,极大地提高了用户体验。
图片下载模块30,用于获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源。
可以理解的是,所述系统资源空闲率代表了所述智能电视系统资源的空闲占有率,当所述系统资源空闲率较高时,快速下载所述待展示页面的图片资源,当所述系统资源空闲率较低时,暂停下载所述待展示页面中的图片资源,并启动一个定时器,通过所述定时器定时查询所述系统资源空闲率,从而在所述系统资源空闲率较高时,下载所述待展示页面的图片资源。
页面刷新模块40,用于根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
需要说明的是,在下载完成所述图片资源后,将通过所述图片资源对所述待展示页面进行刷新,具体为:将所述待展示页面中的默认图替换为所述图片资源,从而实现在所述待展示页面中展示所述文字资源及所述图片资源,并避免了破图及文字资源频繁移动的现象。
在本实施例中,当接收到用户输入的页面加载指令时,快速加载文字资源及默认图,避免了出现破图现象,并根据系统资源空闲率实时下载图片资源,在图片资源下载完毕后,通过图片资源替换默认图,从而避免出现文字资源频繁移动的现象,解决了用户操作卡顿的技术问题,提高了页面展示效果,用户体验佳。
可理解的是,所述网络资源批量加载装置中的各模块还用于实现上述方法中的各步骤,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
单词第一、第二、以及第三等的使用不表示任何顺序,可将这些单词解释为名称。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通 过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端智能电视(可以是手机,计算机,服务器,空调器,或者网络智能电视等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种网络资源批量加载方法,其中,所述网络资源批量加载方法包括以下步骤:
    智能电视响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
    从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
    获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;以及
    根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
  2. 如权利要求1所述的网络资源批量加载方法,其中,所述从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处,包括:
    获取所述待展示页面对应的图片资源的大小;
    从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
  3. 如权利要求1所述的网络资源批量加载方法,其中,所述获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源,包括:
    获取所述待展示页面对应的待下载图片的图片总数目;
    获取当前系统资源空闲率;
    根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
    统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
  4. 如权利要求3所述的网络资源批量加载方法,其中,所述获取当前系统资源空闲率,包括:
    获取当前CPU空闲率及当前内存空闲率;
    对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
  5. 如权利要求3所述的网络资源批量加载方法,其中,所述根据所述当前系统资源空闲率下载所述待展示页面的图片资源,包括:
    根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
    当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
  6. 如权利要求5所述的网络资源批量加载方法,其中,所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率之后,所述网络资源批量加载方法还包括:
    当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
    当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
  7. 如权利要求1所述的网络资源批量加载方法,其中,所述根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图之前,所述网络资源批量加载方法还包括:
    判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
  8. 一种智能电视,其中,所述智能电视包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的网络资源批量加载程序,所述网络资源批量加载程序被所述处理器执行时实现如下步骤:
    响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
    从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
    获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;以及
    根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
  9. 如权利要求8所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取所述待展示页面对应的图片资源的大小;
    从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
  10. 如权利要求8所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取所述待展示页面对应的待下载图片的图片总数目;
    获取当前系统资源空闲率;
    根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
    统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
  11. 如权利要求10所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取当前CPU空闲率及当前内存空闲率;
    对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
  12. 如权利要求10所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
    当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
  13. 如权利要求12所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    当所述当前工作频率不大于所述预设阈值时,设置定时器的超时时间,并启动所述定时器;
    当所述定时器超时时,返回所述根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率的步骤。
  14. 如权利要求8所述的智能电视,其中,所述网络资源批量加载程序设置为实现如下步骤:
    判断所述用户是否处于操作空闲状态,当所述用户处于操作空闲状态时,执行所述根据所述图片资源对所述待展示页面进行刷新的步骤。
  15. 一种存储介质,其中,所述存储介质上存储有网络资源批量加载程序,所述网络资源批量加载程序被处理器执行时实现如下步骤:
    响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
    从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
    获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;以及
    根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
  16. 如权利要求15所述的存储介质,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取所述待展示页面对应的图片资源的大小;
    从本地存储器中获取相同大小的默认图,并将所述默认图加载至所述待展示页面中的待下载图片处。
  17. 如权利要求15所述的存储介质,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取所述待展示页面对应的待下载图片的图片总数目;
    获取当前系统资源空闲率;
    根据所述当前系统资源空闲率下载所述待展示页面的图片资源;
    统计已下载图片数目,在所述已下载图片数目小于所述图片总数目时,返回所述获取当前系统资源空闲率的步骤。
  18. 如权利要求17所述的存储介质,其中,所述网络资源批量加载程序设置为实现如下步骤:
    获取当前CPU空闲率及当前内存空闲率;
    对所述当前CPU空闲率及所述当前内存空闲率进行加权,获得当前系统资源空闲率。
  19. 如权利要求17所述的存储介质,其中,所述网络资源批量加载程序设置为实现如下步骤:
    根据所述当前系统资源空闲率计算网络资源下载线程的当前工作频率;
    当所述当前工作频率大于预设阈值时,下载所述待展示页面的图片资源。
  20. 一种网络资源批量加载装置,其中,所述网络资源批量加载装置包括:
    文字加载模块,用于响应于用户输入的页面加载指令,生成与所述页面加载指令对应的待展示页面,并在所述待展示页面中加载文字资源;
    图片获取模块,用于从本地存储器中获取默认图,并将所述默认图加载至所述待展示页面中的待下载图片处;
    图片下载模块,用于获取系统资源空闲率,并根据所述系统资源空闲率下载所述待展示页面的图片资源;以及
    页面刷新模块,用于根据所述图片资源对所述待展示页面进行刷新,以使所述图片资源替换所述待展示页面中对应的默认图。
PCT/CN2019/085714 2018-09-14 2019-05-06 网络资源批量加载方法、智能电视、存储介质及装置 WO2020052247A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811083972.6A CN109361947A (zh) 2018-09-14 2018-09-14 网络资源批量加载方法、智能电视、存储介质及装置
CN201811083972.6 2018-09-14

Publications (1)

Publication Number Publication Date
WO2020052247A1 true WO2020052247A1 (zh) 2020-03-19

Family

ID=65350895

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085714 WO2020052247A1 (zh) 2018-09-14 2019-05-06 网络资源批量加载方法、智能电视、存储介质及装置

Country Status (2)

Country Link
CN (1) CN109361947A (zh)
WO (1) WO2020052247A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361947A (zh) * 2018-09-14 2019-02-19 深圳Tcl数字技术有限公司 网络资源批量加载方法、智能电视、存储介质及装置
CN111695061A (zh) * 2019-03-15 2020-09-22 北京京东尚科信息技术有限公司 一种资源处理方法及装置、设备、存储介质
CN110825994B (zh) * 2019-10-31 2022-08-16 望海康信(北京)科技股份公司 页面缓冲的处理方法、装置、计算机设备及存储介质
CN110807114B (zh) * 2019-11-07 2024-01-30 北京有竹居网络技术有限公司 用于图片展示的方法、装置、终端及存储介质
CN111639281A (zh) * 2020-05-29 2020-09-08 海信视像科技股份有限公司 一种页面资源显示方法及显示设备
CN111798366A (zh) * 2020-06-18 2020-10-20 福州富昌维控电子科技有限公司 基于小内存嵌入式设备加快png显示速度的方法及终端

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108941A1 (en) * 2012-10-17 2014-04-17 Christopher Stephen Joel Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
CN105608152A (zh) * 2015-12-17 2016-05-25 无锡天脉聚源传媒科技有限公司 一种网页资源异步加载的方法及装置
CN107222773A (zh) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 界面图片的占位图的处理系统
CN107463627A (zh) * 2017-07-11 2017-12-12 深圳市云领天下科技有限公司 一种图片加载方法及终端
CN107644018A (zh) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 图片加载方法和装置
CN109361947A (zh) * 2018-09-14 2019-02-19 深圳Tcl数字技术有限公司 网络资源批量加载方法、智能电视、存储介质及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914450B (zh) * 2012-12-31 2017-05-17 北京新媒传信科技有限公司 移动终端平台中网页图片呈现方法和装置
CN103618942B (zh) * 2013-12-16 2016-09-28 乐视致新电子科技(天津)有限公司 智能电视及其浏览器网页视频的播放方法和装置
CN105760405A (zh) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 用于加载web页面的网络资源获取方法、缓存方法及装置
CN108280007B (zh) * 2017-01-05 2021-08-13 中国移动通信集团福建有限公司 一种用于评估设备资源利用率的方法和装置
JP6583296B2 (ja) * 2017-01-19 2019-10-02 京セラドキュメントソリューションズ株式会社 表示制御装置、及び表示制御方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108941A1 (en) * 2012-10-17 2014-04-17 Christopher Stephen Joel Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
CN105608152A (zh) * 2015-12-17 2016-05-25 无锡天脉聚源传媒科技有限公司 一种网页资源异步加载的方法及装置
CN107644018A (zh) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 图片加载方法和装置
CN107222773A (zh) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 界面图片的占位图的处理系统
CN107463627A (zh) * 2017-07-11 2017-12-12 深圳市云领天下科技有限公司 一种图片加载方法及终端
CN109361947A (zh) * 2018-09-14 2019-02-19 深圳Tcl数字技术有限公司 网络资源批量加载方法、智能电视、存储介质及装置

Also Published As

Publication number Publication date
CN109361947A (zh) 2019-02-19

Similar Documents

Publication Publication Date Title
WO2020052247A1 (zh) 网络资源批量加载方法、智能电视、存储介质及装置
WO2018076861A1 (zh) 数据传输的控制方法、装置、存储介质、服务器及系统
WO2018201773A1 (zh) 单元格页面的渲染方法、装置、服务器和可读存储介质
WO2018120681A1 (zh) 数据同步方法、装置、系统、数据处理服务器和存储介质
WO2018076867A1 (zh) 数据备份的删除方法、装置、系统、存储介质和服务器
WO2018201774A1 (zh) 数据审批方法、装置、设备和计算机可读存储介质
WO2018082484A1 (zh) 一种电子设备的截屏方法、系统及电子设备
WO2020155359A1 (zh) 家电设备的控制方法、服务器、家电设备及存储介质
WO2019103280A1 (ko) 클라우드 서비스를 제공하는 적어도 하나의 클라우드 서버의 컴퓨팅 자원들을 관리하는 전자 장치 및 방법
WO2019156506A1 (en) System and method for providing conversational contents
WO2021012481A1 (zh) 系统性能监控方法、装置、设备及存储介质
WO2018120680A1 (zh) 虚拟磁盘备份系统、方法、装置、服务主机和存储介质
WO2017111197A1 (ko) 학습 분석에서 빅데이터 시각화 시스템 및 방법
WO2018161603A1 (zh) 移动终端图像绘制的控制方法、装置、介质及电子设备
WO2017032061A1 (zh) 一种应用程序启动方法、智能手表及存储介质
WO2020062615A1 (zh) 显示面板的伽马值调节方法、装置及显示设备
WO2019184436A1 (zh) 视频推送方法、装置及计算机可读存储介质
WO2020222347A1 (ko) 가상 머신 배치 방법 및 이를 구현하는 가상 머신 배치 장치
WO2017206881A1 (zh) 一种关联应用的处理方法、装置、存储介质及电子设备
WO2019168265A1 (ko) 전자 장치, 전자 장치의 태스크 처리 방법 및 컴퓨터 판독 가능 매체
WO2020056952A1 (zh) 显示面板的控制方法、显示面板及存储介质
WO2020135051A1 (zh) 显示面板的画面优化方法、装置及计算机可读存储介质
WO2017206866A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2020135021A1 (zh) 过流保护方法、显示面板及过流保护装置
WO2022197026A1 (ko) 서버, 서비스 제공 시스템 및 서버의 처리 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19860232

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19860232

Country of ref document: EP

Kind code of ref document: A1