Plug-in preloading method and device and electronic equipment
By obtaining and predicting plug-in usage records, preloading the plug-in on the TV homepage in advance, solving the problem of user operation lag caused by plug-in loading when the TV is turned on, and improving the user experience.
Patent Information
- Application Number
- CN202410906660.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-07-08
AI Technical Summary
When the TV is turned on, all plug-ins on the homepage need to be loaded, resulting in user operations being stuttered and waiting for the interface to be displayed, affecting the user experience.
By obtaining the plug-in that actually triggered within the preset time after the last time the first frame image was displayed, or using the record prediction plug-in based on the current moment and history, the plug-in is preloaded in advance to avoid user operation lag.
By preloading the plugins that users may use in advance, ensuring that users can use the plugins they need faster, avoiding lags in operation and waiting for the interface to display, and improving the user experience.
Smart Images

Figure CN119562097A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a plug-in preloading method, device and electronic device. Background Art
[0002] When the TV is turned on, the preset application needs to be started and the homepage of the preset application is displayed. During this period, the TV needs to load all the plug-ins of the preset application on the homepage. If the user accesses a plug-in that is not loaded on the homepage at this time, it takes time to load the plug-in accessed by the user, and the user operation may be stuck and the waiting interface may be displayed, resulting in a poor user experience.
[0003] Therefore, how to load plug-ins to avoid user operation jams and waiting for the interface to display has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a plug-in preloading method, device and electronic device.
[0005] The technical solution of the present disclosure is as follows:
[0006] In a first aspect, the present disclosure provides an electronic device, comprising: a display, configured to display a frame image of the first frame after a preset application is started; a controller, configured to: in response to a startup operation, obtain a preloaded plug-in set; wherein the preloaded plug-in set includes preloaded plug-ins that are actually triggered within a preset time length starting from the display moment of the last display of the frame image of the first frame after the last display of the frame image of the first frame, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on both the current moment and historical plug-in usage records; the preloaded plug-ins are preloaded and a home page is displayed.
[0007] In a second aspect, the present disclosure provides a plug-in preloading method, comprising: in response to a startup operation, obtaining a preloaded plug-in collection; wherein the preloaded plug-in collection includes preloaded plug-ins that are actually triggered within a preset time length starting from the display moment of the frame image of the first frame last displayed after the frame image of the first frame was last displayed, or the preloaded plug-in collection includes one or more of the preloaded plug-ins predicted based on both the current moment and historical plug-in usage records; preloading the preloaded plug-ins and displaying the home page.
[0008] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to enable the electronic device to implement any one of the plug-in preloading methods provided in the second aspect when executing the computer program.
[0009] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform any plug-in preloading method provided in the second aspect.
[0010] In a fifth aspect, the present invention provides a computer program product. When the computer program product is run on a computer, the computer executes any one of the plug-in preloading methods provided in the second aspect.
[0011] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium, wherein the first computer-readable storage medium may be packaged together with the processor of the electronic device, or may be packaged separately from the processor of the electronic device, which is not limited in the present disclosure.
[0012] The description of the second, third, fourth and fifth aspects in the present disclosure can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0013] In the present disclosure, the names of the above electronic devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0014] These and other aspects of the present disclosure will become more apparent from the following description.
[0015] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0016] The plug-in preloading method provided by the present disclosure is that the electronic device obtains a preloaded plug-in collection and home page data in response to a startup operation; in this way, the plug-ins that the user may use can be preloaded in advance, thereby ensuring that the user can use the preloaded plug-in faster, thereby avoiding situations such as user operation jams and waiting for the interface to be displayed. At the same time, since the preloaded plug-in is a preloaded plug-in that is actually triggered within a preset time length based on the display time of the frame image of the last display of the first frame after the last display of the first frame, or the preloaded plug-in collection includes one or more of the preloaded plug-ins predicted based on the current moment and the historical plug-in usage records, the preloaded plug-in is more in line with the user's needs. Afterwards, the preset application preloads the preloaded plug-in and displays the home page according to the home page data, solving the problem of how to load the plug-in and avoiding situations such as user operation jams and waiting for the interface to be displayed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A schematic diagram of a scenario of a plug-in preloading method provided in an embodiment of the present application;
[0020] Figure 2 One of the structural schematic diagrams of the display device provided in the embodiment of the present application;
[0021] Figure 3 A second structural schematic diagram of a display device provided in an embodiment of the present application;
[0022] Figure 4 One of the flowcharts of the plug-in preloading method provided in the embodiment of the present application;
[0023] Figure 5 A second flowchart of the plug-in preloading method provided in an embodiment of the present application;
[0024] Figure 6 The third flowchart of the plug-in preloading method provided in the embodiment of the present application;
[0025] Figure 7 A fourth flowchart of the plug-in preloading method provided in an embodiment of the present application;
[0026] Figure 8 A fifth flowchart of the plug-in preloading method provided in an embodiment of the present application;
[0027] Fig. 9 Flow chart six of the plug-in preloading method provided in the embodiment of the present application;
[0028] Fig.10 Flowchart 7 of the plug-in preloading method provided in the embodiment of the present application;
[0029] Fig.11 The eighth flowchart of the plug-in preloading method provided in the embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0032] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart TV, a laser projection device, a monitor, an electronic whiteboard, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.
[0033] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0034] Figure 1 is a schematic diagram of an operation scenario between a household appliance and a control device according to one or more embodiments of the present application, such as Figure 1 As shown, the user can operate the display device 200 through the terminal device 300 and / or the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, mobile terminals, tablet computers, computers, laptops, and other smart devices can also be used to control the display device 200.
[0035] In some embodiments, the electronic device provided by the embodiments of the present disclosure may be the above-mentioned display device 200. Among them, a preset application is installed in the display device 200. When the user uses the display device 200, the display device 200 can be turned on by the control device 100. At this time, the display device 200 responds to the power-on operation and turns on the preset application. At this time, the preset application responds to the startup operation to obtain a preloaded plug-in set and home page data; wherein, the preloaded plug-in set includes the preloaded plug-ins that are actually triggered within a preset time length starting from the display time of the frame image of the last display of the first frame after the last display of the frame image of the first frame, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on the current moment and the historical plug-in usage records; in this way, the plug-ins that the user may use can be preloaded in advance, so as to ensure that the user can use the preloaded plug-in faster, thereby avoiding the user operation jams, waiting for the interface to be displayed, and the like. At the same time, since the preloaded plug-in is a preloaded plug-in that is actually triggered within a preset time period starting from the display time of the last frame image displayed after the last frame image of the first frame was displayed, or the preloaded plug-in set includes preloaded plug-ins predicted based on both the current moment and the historical plug-in usage records, the preloaded plug-in better meets the needs of users. Afterwards, the preset application preloads the preloaded plug-in and displays the home page according to the home page data. This solves the problem of how to load the plug-in and avoids the user's operation being stuck, waiting for the interface to be displayed, etc.
[0036] Figure 2 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 2 The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be a display with a touch function, such as a touch display. The detector 230 is used to collect signals of the external environment or interaction with the outside.
[0037] In some examples, the external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.
[0038] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0039] In some examples, the display device 200 of one or more embodiments is a TV set 1, and the operating system of the TV set 1 is an Android system. Figure 3 As shown, the television 1 can be logically divided into an application layer (Applications) (referred to as "application layer") 21, an application framework layer (Application Framework) (referred to as "framework layer") 22, an Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 29.
[0040] Among them, the application layer 21 includes one or more applications. The application can be a system application or a third-party application. The framework layer 22 provides an application programming interface (API) and a programming framework for the application of the application layer 21. The system runtime layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system will run the C / C++ library contained in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 29° serves as a software middleware between the hardware layer and the application layer 21, and is used to manage and control hardware and software resources.
[0041] In some examples, the electronic device provided by the embodiments of the present application may be the above-mentioned TV 1. Among them, a preset application is installed in the TV 1. When the user uses the TV 1, the TV 1 can be turned on by the control device 100. At this time, the TV 1 responds to the power-on operation and turns on the preset application. At this time, the processing unit 202 of the preset application responds to the startup operation to obtain a preloaded plug-in set and home page data; wherein the preloaded plug-in set includes the preloaded plug-in that is actually triggered within a preset time length starting from the display time of the frame image of the last display of the first frame after the last display of the frame image of the first frame, or the preloaded plug-in set includes the preloaded plug-in predicted based on both the current time and the historical plug-in usage record; the processing unit 202 of the preset application preloads the preloaded plug-in, and controls the display unit 201 to display the home page according to the home page data.
[0042] Specifically, when the subject executing the plug-in preloading method provided by the embodiment of the present disclosure is the television 1, the storage unit 203 of the display device 200 is used to store data such as the program code of the plug-in preloading method provided by the embodiment of the present disclosure.
[0043] In the following embodiments, the method of the embodiment of the present application is described by taking the above-mentioned television 1 as an example of an execution subject of the plug-in preloading method provided by the embodiment of the present disclosure.
[0044] The present application embodiment provides a method for playing audio data, which is applied to a television set 1, such as Figure 4 As shown, the plug-in preloading method may include S11 and S12.
[0045] S11. In response to a start operation, a preloaded plug-in set is obtained; wherein the preloaded plug-in set includes preloaded plug-ins that are actually triggered within a preset time length starting from the display time of the last frame image displayed after the last frame image of the first frame was displayed, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on both the current time and the historical plug-in usage records.
[0046] In some examples, in order to avoid the preset application from taking up a large amount of computing resources when obtaining the preloaded plug-in set, which slows down the loading process of the preloaded set, it is necessary to obtain the preloaded plug-in set while ensuring that the preset application starts normally, such as: the preset application responds to the startup operation and obtains the preloaded plug-in set when the loading conditions are met. The loading conditions include when displaying the frame image of the first frame, or when processing the target stage. The target stage includes any one of the system desktop process, clicking the application icon, applying for resources from the system, creating an application process, and drawing an application interface frame.
[0047] In some examples, after receiving the power-on operation, the TV 1 starts the preset application and displays the home page of the preset application. Since there may be a function that the user needs to use in the home page (the function is implemented by a plug-in), when the TV 1 displays the home page of the preset application, it needs to load each plug-in of the preset application, which will take a certain amount of time. When the user may use the function when the plug-in is not loaded, the TV 1 needs to load the plug-in selected by the user. Since the TV 1 takes time to load the plug-in selected by the user, the user operation may be stuck, the waiting interface may be displayed, etc. For this reason, the plug-in preloading method provided by the embodiment of the present disclosure collects the preloaded plug-ins that are actually triggered within the preset time length starting from the display moment of the frame image of the last display of the first frame, or the preloaded plug-ins predicted based on the current moment and the historical plug-in usage record to obtain the preloaded plug-in set. In this way, the plug-ins that the user may use can be preloaded in advance, so as to ensure that the user can use the preloaded plug-in faster, thereby avoiding the user operation stuck, waiting for the interface to be displayed, etc. At the same time, since the preloaded plug-in is a preloaded plug-in that is actually triggered within a preset time length starting from the display moment of the last frame image displayed after the last frame image was displayed, or the preloaded plug-in set includes preloaded plug-ins predicted based on both the current moment and historical plug-in usage records, the preloaded plug-in better meets user needs.
[0048] In some examples, the preloaded plug-in collection generation process includes, in response to a startup operation, obtaining at least one target plug-in that receives a selection operation within a preset time length starting from the display moment of the frame image when displaying the first frame; using the target plug-in as a preloaded plug-in to generate a preloaded plug-in collection for the next time.
[0049] In some examples, the preloaded plug-in collection generation process includes, in response to a startup operation, obtaining a recommended plug-in corresponding to the current moment; wherein the recommended plug-in is predicted based on both the current moment and historical plug-in usage records; and using the recommended plug-in as a preloaded plug-in to generate a preloaded plug-in collection.
[0050] In some examples, the preloaded plug-in collection generation process includes, in response to a startup operation, obtaining, when displaying a frame image of a first frame, at least one target plug-in that receives a selection operation within a preset time length starting from the display moment of the frame image, and a recommended plug-in corresponding to the current moment; determining a designated plug-in based on the target plug-in and the recommended plug-in; wherein the designated plug-in is a plug-in in the target plug-in that is the same as the recommended plug-in; and using the designated plug-in as a preloaded plug-in to generate a preloaded plug-in collection for the next time.
[0051] In some examples, the preset duration may be a preset setting, such as 2s.
[0052] In some examples, the preset duration may be determined based on the difference between the time corresponding to the TV 1 being turned on and the time corresponding to the TV 1 being turned off in history when the TV 1 currently receives a power-on operation, such as: the TV 1 is turned on at 8:05 on July 4, 2024, and before that, the TV 1 receives a power-on operation at 10:51 on July 2, 2024, a power-off operation at 10:59 on July 2, 2024, a power-on operation at 10:51 on July 3, 2024, and a power-off operation at 12:59 on July 3, 2024. At this time, it can be determined that the first difference between 10:51 on July 2, 2024 and 10:59 on July 2, 2024 is 8 minutes, and the second difference between 10:51 on July 3, 2024 and 12:59 on July 3, 2024 is 128 minutes. Then, the average of the first difference and the second difference is taken as the preset time length, that is, the preset time length is equal to Alternatively, the difference between the average of the first difference and the second difference and the specified duration is used as the preset duration, such as: when the average value is less than the specified duration, the preset duration is equal to the fixed duration (such as 1 minute); or, when the average value is less than the specified duration, the preset duration is equal to the difference between the average value and the specified duration, such as: when the specified duration is 60 minutes, the preset duration is equal to 8 minutes (68-60).
[0053] In some examples, the preset duration is equal to the difference between the display time of the frame image of the currently displayed first frame and the actual time when the switching operation for switching the home page is received, such as: TV set 1 is turned on at 8:05 on July 4, 2024, and displays the home page of the preset application. Afterwards, TV set 1 receives the switching operation for switching the home page at 8:10 on July 4, 2024. At this time, the preset duration is equal to the third difference between 8:05 on July 4, 2024 and 8:10 on July 4, 2024, that is, the preset duration is equal to the third difference, which is equal to 5 minutes.
[0054] S12: preload the preload plug-in and display the home page.
[0055] As can be seen from the above, in the plug-in preloading method provided by the embodiment of the present disclosure, the TV 1 obtains a preloaded plug-in collection and home page data in response to a startup operation; thereafter, the TV 1 preloads the preloaded plug-in and displays the home page according to the home page data. In this way, plug-ins that may be used by the user can be preloaded in advance, thereby ensuring that the user can use the preloaded plug-in faster, thereby avoiding situations such as user operation freezes and waiting for the interface to be displayed. At the same time, since the preloaded plug-in is a preloaded plug-in that is actually triggered within a preset time length starting from the display moment of the frame image of the first frame that was displayed last time after the frame image of the first frame was displayed last time, or the preloaded plug-in collection includes preloaded plug-ins predicted based on both the current moment and historical plug-in usage records, the preloaded plug-in is more in line with user needs.
[0056] In some possible implementation examples, combined with Figure 4 ,like Figure 5 As shown, the plug-in preloading method provided by the embodiment of the present disclosure further includes S13 and S14.
[0057] S13, in response to the start operation, when displaying the frame image of the first frame, obtaining at least one target plug-in that receives a selection operation within a preset time length starting from the display time of the frame image;
[0058] S14: Use the target plug-in as a preload plug-in to generate a next preload plug-in set.
[0059] In some examples, after the target plug-in is used as a preload plug-in, if it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and the next preload plug-in set is generated based on the preload plug-in that can be preloaded.
[0060] In some examples, whether a preloaded plug-in can be preloaded can be determined based on plug-in dependencies, such as: obtaining plug-in dependencies; based on the plug-in dependencies, if the number of plug-ins that have dependencies on the preloaded plug-in is greater than a preset number, determining that the preloaded plug-in cannot be preloaded.
[0061] In some examples, whether a preload plug-in can be preloaded can be determined based on at least one service plug-in currently providing services, such as obtaining at least one service plug-in currently providing services; if there is no service plug-in identical to the preload plug-in, it is determined that the preload plug-in cannot be preloaded.
[0062] In some examples, the plug-in preloading method provided by the embodiments of the present disclosure limits the number of preloaded plug-ins, thereby preventing too many preloaded plug-ins from being preloaded the next time the TV 1 is turned on, thereby affecting the startup speed of the TV 1.
[0063] For example, if the total number of preloaded plug-ins that can be accommodated in the preloaded plug-in set is equal to M, then if the number of target plug-ins is N, when N is less than or equal to M, the target plug-in is used as a preloaded plug-in to generate the next preloaded plug-in set; when N is greater than M, the target plug-ins in the first M order can be selected as preloaded plug-ins according to the order of the triggering time of the target plug-in (i.e., the time when the selection operation of the target plug-in n is received) to generate the next preloaded plug-in set. For example, the target plug-in includes 4 target plug-ins (respectively, target plug-in 1, target plug-in 2, target plug-in 3 and target plug-in 4), the triggering time of target plug-in 1 is 15:53:14 on July 2, 2024, the triggering time of target plug-in 2 is 15:54:14 on July 2, 2024, the triggering time of target plug-in 3 is 16:54:14 on July 2, 2024, and the triggering time of target plug-in 4 is 17:54:14 on July 2, 2024. At this time, the target plug-ins may be sorted according to the order of the triggering time to obtain the arrangement order shown in Table 1. Wherein, n∈[0,N], and n, N and M are all integers greater than or equal to 0.
[0064] Table 1
[0065] Sort order Trigger time Target plugin 1 July 2, 2024 15:53:14 Target Plugin 2 July 2, 2024 15:54:14 Target plugin 3 July 2, 2024 16:54:14 Target Plugin 4 July 2, 2024 17:54:14
[0066] For example, when M is equal to 3, it can be determined that the top three target plug-ins are target plug-in 1, target plug-in 2, and target plug-in 3. Then, target plug-in 1, target plug-in 2, and target plug-in 3 can be used as preload plug-ins respectively to generate the next preload plug-in set.
[0067] The above example is explained by taking the case where the number of preloaded plug-ins in the preloaded plug-in set is greater than M, and selecting the target plug-ins in the top M in the sorting as the preloaded plug-in. In some other examples, the access probability of the target plug-in can also be determined based on the access record of the user account currently logged in to the TV 1, and the preloaded plug-in is determined based on the access probability to generate a preloaded plug-in set. Among them, the access probability is equal to the ratio of the number of accesses to the category to which the target plug-in belongs in the access record to the total number of accesses in the access record.
[0068] Determine the preloaded plug-in based on access probability, including:
[0069] The access probabilities are sorted in descending order, and the top N target plug-ins are selected as preloaded plug-ins to generate the next preloaded plug-in set.
[0070] Exemplarily, taking the case where the number of preloaded plug-ins in the preloaded plug-in set is equal to N, when N is less than or equal to M, the target plug-in is used as the preloaded plug-in to generate the next preloaded plug-in set; when N is greater than M, the access probability of the target plug-in is determined based on the access record of the user account currently logged in to the TV 1, and the preloaded plug-in is determined based on the access probability to generate the next preloaded plug-in set. For example: the preloaded plug-in set contains 4 target plug-ins (target plug-in 1, target plug-in 2, target plug-in 3 and target plug-in 4), the access probability corresponding to target plug-in 1 is 95%, the access probability corresponding to target plug-in 2 is 80%, the access probability corresponding to target plug-in 3 is 85%, and the access probability corresponding to target plug-in 4 is 90%. At this time, the access probabilities are sorted in order from large to small, and the sorting results shown in Table 2 are obtained.
[0071] Table 2
[0072] Sort order Access probability Target plugin 1 95% Target Plugin 4 90% Target plugin 3 85% Target Plugin 2 80%
[0073] When M is equal to 3, it can be determined that the top three target plug-ins are target plug-in 1, target plug-in 4 and target plug-in 3. Then, target plug-in 1, target plug-in 4 and target plug-in 3 can be used as preload plug-ins respectively to generate the next preload plug-in set.
[0074] In some examples, when N is equal to 0, the historical usage records of the plug-in corresponding to the current account can be used to determine the preloaded plug-in and generate a preloaded plug-in set. For example, based on the historical usage records, the number of visits to each plug-in is determined, and then the plug-in with the highest number of visits is used as the preloaded plug-in, and the preloaded plug-in is preloaded.
[0075] In some possible implementation examples, combined with Figure 4 ,like Figure 6 As shown, the above S11 can be specifically implemented through the following S110 and S111.
[0076] S110, in response to the start operation, obtaining a recommended plug-in corresponding to the current moment; wherein the recommended plug-in is predicted based on both the current moment and the historical plug-in usage record;
[0077] S111. Use the recommended plug-in as a preloaded plug-in to generate a preloaded plug-in set.
[0078] In some examples, after the recommended plug-in is used as the preload plug-in, if it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and the next preload plug-in set is generated based on the preload plug-in that can be preloaded.
[0079] In some examples, the TV set 1 can obtain the plug-in usage records of the currently logged-in user account to obtain the plug-in usage records corresponding to different time periods. Afterwards, the plug-in usage records corresponding to the time period are obtained by determining the time period of the landing zone at the current moment. Finally, the plug-in in the plug-in usage record corresponding to the time period is used as a preloaded plug-in to generate a preloaded plug-in set. For example, the plug-in usage records corresponding to different time periods are shown in Table 3.
[0080] Table 3
[0081] Time period Plugin usage record 6:00-8:00 none 8:00-10:00 Plugin 1 10:00-12:00 Plugin 2, Plugin 3 12:00-14:00 Plugin 3, Plugin 4, Plugin 5, Plugin 6
[0082] At this time, if the current time is 7:15, it can be determined that 7:15 falls into the time period 6:00-8:00, and there is no plug-in in the plug-in usage record corresponding to the time period 6:00-8:00. In order to avoid user operation freezes, waiting for the interface to display, etc., the historical usage record of the plug-in corresponding to the current account can be used to determine the preloaded plug-in and generate a preloaded plug-in set.
[0083] If the current time is 8:15, it can be determined that 8:15 falls into the time period 8:00-10:00, and the plug-in in the plug-in usage record corresponding to the time period 8:00-10:00 is plug-in 1, so plug-in 1 can be used as a preload plug-in to generate a preload plug-in set.
[0084] If the current time is 13:15, it can be determined that 13:15 falls into the time period 12:00-14:00, and the plug-ins in the plug-in usage record corresponding to the time period 12:00-14:00 are plug-in 3, plug-in 4, plug-in 5, and plug-in 6. At this time, the number of preloaded plug-ins included in the preloaded plug-in set is M, and when M is 3, 3 plug-ins can be randomly selected from plug-in 3, plug-in 4, plug-in 5, and plug-in 6 as preloaded plug-ins to generate a preloaded plug-in set. Alternatively, the plug-ins with the top 3 access probabilities among plug-in 3, plug-in 4, plug-in 5, and plug-in 6 are preloaded plug-ins to generate a preloaded plug-in set.
[0085] In some possible implementation examples, combined with Figure 4 ,like Figure 7 As shown, the plug-in preloading method provided in the embodiment of the present disclosure further includes S15-S17.
[0086] S15, in response to the start operation, obtaining a recommended plug-in corresponding to the current moment, and at least one target plug-in receiving a selection operation within a preset time length starting from the display moment of the frame image when the frame image of the first frame is displayed;
[0087] S16. Determine a designated plug-in based on the target plug-in and the recommended plug-in; wherein the designated plug-in is a plug-in in the target plug-in that is the same as the recommended plug-in.
[0088] S17: Use the designated plug-in as a preloaded plug-in to generate a next preloaded plug-in set.
[0089] In some examples, after the designated plug-in is used as the preload plug-in, if it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and the next preload plug-in set is generated based on the preload plug-in that can be preloaded.
[0090] In some possible implementation examples, combined with Figure 4 ,like Figure 8 As shown, the plug-in preloading method provided in the embodiment of the present disclosure further includes S18-S20.
[0091] S18, in response to the start operation, obtaining a recommended plug-in corresponding to the current moment, at least one target plug-in that receives a selection operation within a preset time length starting from the display moment of the frame image when the frame image of the first frame is displayed, a first access count of each target plug-in, and a second access count of each recommended plug-in;
[0092] S19. Determine a preset plug-in based on the first access count and the second access count; wherein the preset plug-in includes any one of a target plug-in and a recommended plug-in.
[0093] In some examples, the first access count and the second access count may be sorted in descending order, and the top M plug-ins in the sorting are selected as preset plug-ins, where M is the total number of preset plug-ins that can be accommodated in the preloaded plug-in set.
[0094] In some examples, the first value can be obtained by calculating the average of the first access count and the second historical access count. After that, the first absolute value of the difference between each first access count and the first value, and the second absolute value of the difference between each second historical access count and the first value are calculated. The target plug-in whose first absolute value is less than or equal to the preset value is used as the preset plug-in. Similarly, the target plug-in whose second absolute value is less than or equal to the preset value is used as the preset plug-in. Among them, when the number of preset plug-ins is greater than the total number M of preset plug-ins that can be accommodated in the preloaded plug-in set, the corresponding number of plug-ins can be selected from the target plug-in and the recommended plug-in according to the weight values of the two, so as to ensure that the number of preset plug-ins is less than or equal to the total number M of preset plug-ins that can be accommodated in the preloaded plug-in set.
[0095] For example, the total number of preset plug-ins is 6, including 4 target plug-ins (target plug-in 1, target plug-in 2, target plug-in 3 and target plug-in 4) and 2 recommended plug-ins (recommended plug-in 1 and recommended plug-in 2). At this time, if the weight value corresponding to the target plug-in is 60%, the weight value corresponding to the recommended plug-in is 40%, and the total number M of preset plug-ins that can be accommodated in the preloaded plug-in set is 3, it can be determined that the number corresponding to the target plug-in is 3×60%=1.8, and after rounding, the number corresponding to the target plug-in is 2. Similarly, it can be determined that the number corresponding to the recommended plug-in is 3×40%=1.2, and after rounding, the number corresponding to the target plug-in is 1. Therefore, 2 plug-ins can be selected from target plug-in 1, target plug-in 2, target plug-in 3 and target plug-in 4 as preset plug-ins, and 1 plug-in can be selected from recommended plug-in 2 as a preset plug-in.
[0096] S20: Use the preset plug-in as a preloaded plug-in to generate a next preloaded plug-in set.
[0097] In some possible implementation examples, combined with Figure 8 ,like Fig. 9 As shown, the above S20 can be specifically implemented through the following S200.
[0098] S200: Using a preset plug-in as a preload plug-in, when it is determined that a preload plug-in cannot be preloaded, deleting the preload plug-in that cannot be preloaded, and generating a next preload plug-in set based on the preload plug-in that can be preloaded.
[0099] In some possible implementation examples, combined with Fig. 9 ,like Fig.10 As shown, the above S200 can be specifically implemented through the following S2000 and S2001.
[0100] S2000. Use the preset plug-in as a preloaded plug-in to obtain plug-in dependencies.
[0101] In some examples, there are certain dependencies between the plug-ins when they are running. As a result, when a certain plug-in (such as plug-in 1) is running, other plug-ins that have a dependency relationship with plug-in 1 must also run. At this time, since the total number M of preloaded plug-ins that can be accommodated in the preloaded plug-in set is certain, that is, when the number of plug-ins associated with plug-in 1 is greater than M, when the user accesses the preloaded plug-in 1, other plug-ins associated with plug-in 1 are not all preloaded, resulting in user operation jams, waiting for the interface to be displayed, etc. For this reason, the plug-in preloading method provided in the embodiment of the present disclosure determines whether the preloaded plug-in can be preloaded by judging the size relationship between the number of plug-ins that have a dependency relationship with the preloaded plug-in and the preset number.
[0102] S2001. Based on the plug-in dependency, if the number of plug-ins that have a dependency relationship with the preloaded plug-in is greater than a preset number, it is determined that the preloaded plug-in cannot be preloaded, the preloaded plug-in that cannot be preloaded is deleted, and the next preloaded plug-in set is generated based on the preloaded plug-in that can be preloaded.
[0103] In some examples, the preset number is equal to the total number M of preloaded plug-ins that can be accommodated in the preloaded plug-in set.
[0104] In some possible implementation examples, combined with Fig. 9 ,like Fig.11 As shown, the above S220 can be specifically implemented through the following S2002 and S2003.
[0105] S2002: Based on the plug-in dependency, obtain at least one service plug-in that currently provides a service.
[0106] In some examples, since the service is time-sensitive, the service plug-in corresponding to the service is also time-sensitive. At this time, it is possible to determine whether the preload plug-in can be preloaded by determining whether there is a service plug-in that is the same as the preload plug-in, thereby avoiding the problem of unresponsiveness caused by preloading a plug-in that has stopped service, thereby improving the user experience.
[0107] S2003: If there is no service plug-in identical to the preload plug-in, it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and the next preload plug-in set is generated based on the preload plug-in that can be preloaded.
[0108] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0109] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0110] An embodiment of the present application provides a structural diagram of an electronic device, including a display 101 and a controller 102 .
[0111] The display 101 is configured to display the first frame image after the preset application is started;
[0112] The controller 102 is configured to:
[0113] In response to the start operation, a preloaded plug-in set is obtained; wherein the preloaded plug-in set includes preloaded plug-ins that are actually triggered within a preset time length starting from the display time of the last display of the frame image of the first frame after the last display of the frame image of the first frame, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on both the current time and the historical plug-in usage records;
[0114] Preload the preload plug-in and display the home page.
[0115] In some feasible examples, the controller 102 is further configured to:
[0116] In response to the start operation, when displaying the frame image of the first frame, obtaining at least one target plug-in that receives a selection operation within a preset time length starting from the display time of the frame image;
[0117] Use the target plug-in as a preload plug-in to generate the next preload plug-in set.
[0118] In some feasible examples, the controller 102 is further configured to:
[0119] In response to the start operation, obtaining a recommended plug-in corresponding to the current moment; wherein the recommended plug-in is predicted based on both the current moment and the historical plug-in usage record;
[0120] Use the recommended plug-ins as preloaded plug-ins to generate a preloaded plug-in collection.
[0121] In some feasible examples, the controller 102 is further configured to:
[0122] In response to the start operation, obtaining a recommended plug-in corresponding to the current moment, and at least one target plug-in receiving a selection operation within a preset time length starting from the display moment of the frame image when displaying the frame image of the first frame;
[0123] Determine a designated plug-in based on the target plug-in and the recommended plug-in; wherein the designated plug-in is a plug-in in the target plug-in that is the same as the recommended plug-in;
[0124] Use the specified plug-in as a preload plug-in to generate the next preload plug-in set.
[0125] In some feasible examples, the controller 102 is further configured to:
[0126] In response to the start operation, obtaining a recommended plug-in corresponding to the current moment, at least one target plug-in that receives a selection operation within a preset time period starting from the display moment of the frame image when the frame image of the first frame is displayed, a first access count of each target plug-in, and a second access count of each recommended plug-in;
[0127] Determine a preset plug-in based on the first access count and the second access count; wherein the preset plug-in includes any one of a target plug-in and a recommended plug-in;
[0128] Use the preset plug-in as a preloaded plug-in to generate the next preloaded plug-in set.
[0129] In some feasible examples, the controller 102 is further configured to:
[0130] When it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and a next preload plug-in set is generated based on the preload plug-in that can be preloaded.
[0131] In some feasible examples, the controller 102 is further configured to:
[0132] Get plugin dependencies;
[0133] Based on the plug-in dependency, if the number of plug-ins having a dependency relationship with the preloaded plug-in is greater than a preset number, it is determined that the preloaded plug-in cannot be preloaded.
[0134] In some feasible examples, the controller 102 is further configured to:
[0135] Get at least one service plug-in currently providing services;
[0136] If there is no service plug-in identical to the preload plug-in, it is determined that the preload plug-in cannot be preloaded.
[0137] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0138] Of course, the electronic device provided in the embodiment of the present application includes but is not limited to the above modules, for example, the electronic device may also include a memory 103. The memory 103 may be used to store program codes of the electronic device, and may also be used to store data generated by the electronic device during operation, such as data in a write request.
[0139] As an example, combining Figure 3 The function implemented by the transceiver unit 202 in the TV set 1 is the same as that of the external device interface 101 , the function implemented by the processing unit 201 is the same as that of the controller 103 , and the function implemented by the storage unit 203 is the same as that of the memory 103 .
[0140] The embodiment of the present application also provides a chip system, which can be applied to the electronic device in the aforementioned embodiment. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the above-mentioned electronic device. The processor 1501 and the interface circuit 1502 can be interconnected through a line. The processor 1501 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the electronic device can execute the various steps performed by the electronic device in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.
[0141] An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above electronic device.
[0142] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An electronic device, characterized in that: include: A display, configured to display a first frame image after a preset application is started; The controller is configured as: In response to the start operation, a preloaded plug-in set is obtained; wherein the preloaded plug-in set includes preloaded plug-ins that are actually triggered within a preset time period starting from the display time of the frame image of the first frame last displayed after the frame image of the first frame was last displayed, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on both the current time and the historical plug-in usage records; The preload plug-in is preloaded and the home page is displayed.
2. The electronic device according to claim 1, characterized in that: The controller is further configured to: In response to the start operation, when displaying the frame image of the first frame, obtaining at least one target plug-in that receives a selection operation within a preset time length starting from the display time of the frame image; The target plug-in is used as a preload plug-in to generate a next preload plug-in set.
3. The electronic device according to claim 1, characterized in that: The controller is further configured to: In response to the start operation, obtaining a recommended plug-in corresponding to the current moment; wherein the recommended plug-in is predicted based on both the current moment and the historical plug-in usage record; The recommended plug-in is used as a preloaded plug-in to generate a preloaded plug-in set.
4. The electronic device according to claim 1, characterized in that: The controller is further configured to: In response to the start operation, obtaining a recommended plug-in corresponding to the current moment, and at least one target plug-in receiving a selection operation within a preset time length starting from the display moment of the frame image when displaying the frame image of the first frame; Determine a designated plug-in based on the target plug-in and the recommended plug-in; wherein the designated plug-in is a plug-in in the target plug-in that is the same as the recommended plug-in; The designated plug-in is used as a preloaded plug-in to generate a next preloaded plug-in set.
5. The electronic device according to claim 1, characterized in that: The controller is further configured to: In response to the start operation, obtaining a recommended plug-in corresponding to the current moment, at least one target plug-in that receives a selection operation within a preset time period starting from the display moment of the frame image when displaying the first frame, a first access count of each of the target plug-ins, and a second access count of each of the recommended plug-ins; Determine a preset plug-in based on the first access count and the second access count; wherein the preset plug-in includes any one of the target plug-in and the recommended plug-in; The preset plug-in is used as a preloaded plug-in to generate a next preloaded plug-in set.
6. The electronic device according to any one of claims 2 to 5, characterized in that: The controller is further configured to: When it is determined that the preload plug-in cannot be preloaded, the preload plug-in that cannot be preloaded is deleted, and a next preload plug-in set is generated based on the preload plug-in that can be preloaded.
7. The electronic device according to claim 6, characterized in that: The controller is further configured to: Get plugin dependencies; Based on the plug-in dependency, if the number of plug-ins having a dependency relationship with the preloaded plug-in is greater than a preset number, it is determined that the preloaded plug-in cannot be preloaded.
8. The electronic device according to claim 6, characterized in that: The controller is further configured to: Get at least one service plug-in currently providing services; If there is no service plug-in identical to the preload plug-in, it is determined that the preload plug-in cannot be preloaded.
9. A plug-in preloading method, characterized in that: include: In response to the start operation, a preloaded plug-in set is obtained; wherein the preloaded plug-in set includes preloaded plug-ins that are actually triggered within a preset time period starting from the display time of the frame image of the first frame last displayed after the frame image of the first frame was last displayed, or the preloaded plug-in set includes one or more of the preloaded plug-ins predicted based on both the current time and the historical plug-in usage records; The preload plug-in is preloaded and the home page is displayed.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the plug-in preloading method according to claim 9.
Citation Information
Patent Citations
Resource preloading method and device of web page application in displaying terminal
CN108829856A
Application program preloading method and terminal equipment
CN110471711A
Preloading method and device, electronic equipment and medium
CN110941473A
Updating methodof cloud game software and cloud game system
CN112245927A
Plug-in loading method and device, computer equipment and storage medium
CN115202755A