Information storage method, device and electronic equipment
By detecting and adding recommended content information that does not belong to the target set to the target set, the problem of wasted storage resources of electronic devices when users repeatedly play videos is solved, and storage resources are saved and recommended content information is streamlined.
Patent Information
- Application Number
- CN202010857810.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-08-24
AI Technical Summary
When a user repeatedly plays a video, the videos recommended by the electronic device may change, resulting in the storage of a large amount of unnecessary data and a waste of storage resources.
By obtaining the recommended content information when the user played the video N times before, it detects and adds information that does not belong to the target set to the target set, thereby reducing the stored recommended content information and saving storage resources.
It effectively reduces the recommended content information stored in electronic devices, avoids waste of storage resources, and improves storage efficiency.
Smart Images

Figure CN111966861B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to an information storage method, device and electronic device. Background Art
[0002] Usually, a user can use an electronic device to watch a video. When the electronic device plays a video, the electronic device can randomly recommend other videos related to the currently played video.
[0003] At present, after a user triggers an electronic device to exit a video playback page, when the user triggers the electronic device to play the video again, the video recommended by the electronic device may change. Generally, each time the electronic device plays a video, the electronic device can store the information of the recommended video so that the user can view and access the video previously recommended by the electronic device. In this way, more data may be stored in the electronic device, resulting in a waste of storage resources of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an information storage method, device and electronic device, which can solve the problem of storing all recommended information, resulting in a waste of storage resources of the electronic device.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides an information storage method, the method comprising: obtaining M first information, each first information indicating a first content, the M first contents being content recommended based on the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; when it is detected that there is target information that does not belong to the first target set in the M first information, adding the target information that does not belong to the first target set in the M first information to the first target set to obtain a second target set; wherein the information in the first target set is used to indicate the content recommended based on the second content when the electronic device displayed the second content for the previous (N-1) time, and the information in the first target set is different from each other.
[0007] In a second aspect, an embodiment of the present application provides an information storage device, which includes: an acquisition module and a processing module. The acquisition module is used to acquire M first information, each of which indicates a first content, and the M first contents are the contents recommended based on the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; the processing module is used to add the target information that does not belong to the first target set in the M first information to the first target set to obtain the second target set when it is detected that there is target information that does not belong to the first target set in the M first information; wherein the information in the first target set is used to indicate the content recommended based on the second content when the electronic device displays the second content for the previous (N-1) time, and the information in the first target set is different from each other.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0011] In an embodiment of the present application, M first information can be obtained, each of which indicates a first content, and the M first contents are the contents recommended according to the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; and when it is detected that there is target information that does not belong to the first target set in the M first information, the target information that does not belong to the first target set in the M first information is added to the first target set to obtain the second target set; wherein the information in the first target set is used to indicate the content recommended according to the second content when the electronic device displays the second content for the previous (N-1) time, and the information in the first target set is different from each other. Through this method, since the electronic device can selectively add the information of the recommended content that does not belong to the first target set among the information of multiple recommended contents to the first target set, therefore, compared with the solution of storing all the recommended information in the related technology, the technical solution of the present application can significantly reduce the information of the recommended content stored in the electronic device, thereby saving the storage resources of the electronic device and avoiding the waste of storage resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 One of the schematic diagrams of an information storage method provided in an embodiment of the present application;
[0013] Figure 2 A schematic diagram of an electronic device displaying recommended content provided by an embodiment of the present application;
[0014] Figure 3 A second schematic diagram of an information storage method provided in an embodiment of the present application;
[0015] Figure 4 An operation diagram of a first control displayed by an electronic device provided in an embodiment of the present application;
[0016] Figure 5 A third schematic diagram of an information storage method provided in an embodiment of the present application;
[0017] Figure 6 One of the operation schematic diagrams of a second control displayed by an electronic device provided in an embodiment of the present application;
[0018] Figure 7 A fourth schematic diagram of an information storage method provided in an embodiment of the present application;
[0019] Figure 8 A second operation diagram of a second control displayed on an electronic device provided by an embodiment of the present application;
[0020] Fig. 9 One of the structural schematic diagrams of an information storage device provided in an embodiment of the present application;
[0021] Fig.10 A second structural diagram of an information storage device provided in an embodiment of the present application;
[0022] Fig.11 One of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;
[0023] Fig.12 The second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. And the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated before and after are in an "or" relationship.
[0026] The information storage method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0027] The image capturing method according to the embodiment of the present application can be applied to the following scenarios.
[0028] Scenario 1: Video content recommendation. For example, after a user watches a video, the electronic device recommends other videos based on the video watched.
[0029] Scenario 2: News information recommendation. For example, after a user reads a piece of news information, the electronic device recommends other news information based on the news information that has been read.
[0030] Scenario 3: Audio content recommendation. For example, after a user listens to a song, the electronic device recommends other related songs based on the song.
[0031] In the case where an electronic device displays M first information, M first information can be obtained, each first information indicates a first content, and the M first contents are the contents recommended according to the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; and in the case where it is detected that there is target information that does not belong to the first target set in the M first information, the target information that does not belong to the first target set in the M first information is added to the first target set to obtain the second target set; wherein the information in the first target set is used to indicate the content recommended according to the second content when the electronic device displayed the second content for the previous (N-1) time, and the information in the first target set is different from each other. Through this method, since the electronic device can selectively add the information of the recommended content that does not belong to the first target set among the information of multiple recommended contents to the first target set, therefore, compared with the solution of storing all the recommended information in the related technology, the technical solution of the present application can significantly reduce the information of the recommended content stored in the electronic device, thereby saving the storage resources of the electronic device and avoiding the waste of storage resources.
[0032] like Figure 1As shown, an embodiment of the present application provides an information storage method, which may include the following steps 101 and 102.
[0033] Step 101: The electronic device obtains M first information.
[0034] Each first information indicates a first content, and the M first contents are contents recommended according to the second content when the electronic device displays the second content for the Nth time, and both M and N are positive integers.
[0035] Optionally, in an embodiment of the present application, the first content and the second content are of the same type, and the first content is content recommended based on the second content. Specifically, the content may be any of the following: news content, video content, audio content, etc. Exemplarily, if the second content is a video content that the user wants to watch, the first content may be other video content recommended by the electronic device based on the video watched by the user. If the second content is a piece of news information that the user is reading, the first content may be other news information recommended by the electronic device based on the news information watched by the user. It can be determined specifically based on actual usage requirements, and the embodiment of the present application does not make specific limitations.
[0036] It should be noted that the following embodiments are illustrative in that both the first content and the second content are video content, which does not constitute a limitation on the present application.
[0037] Optionally, in the embodiment of the present application, each of the M first information is used to indicate a first content. The first information may include at least one of the following: a link address of the first content, a picture related to the first content (for example, a cover picture or screenshot of the first content), a title of the first content, etc. The specific information may be determined according to actual usage requirements and is not specifically limited in the embodiment of the present application.
[0038] Optionally, in an embodiment of the present application, when a user triggers an electronic device to display an interface of a second content, the electronic device may display M first information in a partial area of the interface (for example, the area below the middle of the interface where the second content is displayed), and each of the M first information indicates a first content recommended based on the second content. At this time, the electronic device may execute the above step 101, i.e., obtain the M first information.
[0039] It should be noted that in the embodiment of the present application, the specific recommendation algorithm for recommending the first content based on the second content is not specifically limited in the embodiment of the present application, and can be determined according to actual needs and with reference to relevant technologies. Exemplarily, the recommendation algorithm can be any of the following: a content-based recommendation algorithm, a user operation-based recommendation algorithm, a filtering-based recommendation algorithm, an association rule-based recommendation algorithm, a user preference-based recommendation algorithm, etc. In addition, while using the above-mentioned recommendation algorithms, the electronic device can also use a random recommendation algorithm and a hybrid recommendation algorithm, etc.
[0040] Step 102: When it is detected that there is target information that does not belong to the first target set in the M first information, the electronic device adds the target information that does not belong to the first target set in the M first information to the first target set to obtain a second target set.
[0041] The information in the first target set is used to indicate the content recommended based on the second content when the electronic device displayed the second content for the previous (N-1) time, and the information in the first target set is different from each other.
[0042] It should be noted that, in the embodiment of the present application, the above-mentioned first target set is used to store historical content recommended based on the second content when the electronic device displayed the second content for the previous (N-1) times, and the information indicating the historical recommended content in the first target set may be different.
[0043] In addition, in the embodiment of the present application, if N=1, it means that the electronic device is displaying the second content for the first time. At this time, the first target set is an empty set, that is, there is no historical recommended content stored in the first target set.
[0044] It should be noted that, in the embodiment of the present application, the above-mentioned detection that there is target information that does not belong to the first target set in the M first information means that the electronic device can detect one by one the M first contents recommended according to the second content when the electronic device displays the second content for the Nth time, and determine the target information that does not belong to the first target set in the M first contents. Wherein, not belonging to the first target set means that some of the M first contents or information indicating the content (for example, target information) is not included in the first target set.
[0045] Optionally, in an embodiment of the present application, the electronic device may determine whether there is information different from the information of the first target set (i.e., target information, which is information of the first target set that supplements the data in the M first information) in the acquired M first information. If the target information does not exist, the electronic device does not update the first target set (i.e., does not add new information); if the target information exists, the electronic device adds the target information to the first target set to obtain the second target set.
[0046] It should be noted that, in the embodiment of the present application, the information in the above-mentioned second target set is also different from each other.
[0047] Optionally, in an embodiment of the present application, the electronic device makes a correspondence between content (such as the second content) and a set of recommended content obtained based on the content (such as the first target set or the second target set) for convenience. The electronic device can set priorities for the second content and the first content, and associate the priorities with the recommended content. Specifically, the electronic device can set the priority of the second content to level 0, set the priority of the content recommended based on the second content (such as the first content and the content corresponding to the information in the first target set) to level 1, set the priority of the content recommended based on the first content to level 2, and so on. Among them, in the above priorities: level 0 is higher than level 1, level 1 is higher than level 2, ..., level S is higher than level (S+1), and S is a natural number.
[0048] It should be noted that in an embodiment of the present application, the electronic device can set the content priority of the second content to S level when displaying the second content for the Nth time, and set the priority of the first content recommended based on the second content to (S+1) level, where S is a natural number.
[0049] Optionally, in an embodiment of the present application, the content priority of the first content indicated by the above target information is lower than the content priority of the second content.
[0050] Optionally, in an embodiment of the present application, in the above step 102, "adding target information that does not belong to the first target set in the M first information to the first target set" can also be implemented by the following step 102A.
[0051] Step 102A: The electronic device determines information whose priority is lower than the content priority of the second content from the M first information, and adds the information whose priority is lower than the content priority of the second content to the first target set.
[0052] It should be noted that in the embodiment of the present application, the electronic device can determine whether to add new information to the first target set to obtain the second target set by determining whether the first information belongs to the first target set (i.e., determining whether a piece of information belongs to a set), or determining whether the content priority of the first content is lower than the content priority of the second content (i.e., determining the priority of the two contents). That is, the relationship with the second content can be determined by the priority information, thereby determining whether the target information exists.
[0053] In addition, in the embodiment of the present application, when multiple target information is included, the electronic device can display the multiple target information according to the priority of the first content corresponding to the multiple target information. Specifically, the electronic device can sort and display the multiple target information in order from high to low according to the priority of the corresponding first content.
[0054] It is understandable that, since the content priority of the first content indicated by the target information is lower than the content priority of the second content, the electronic device can add the target information corresponding to the content whose content priority is lower than the content priority of the second content to the first target set. This enriches the way in which the electronic device determines whether to add information to the first target set, thereby enabling the electronic device to obtain the second target set more quickly, and facilitating the subsequent steps of the electronic device.
[0055] For example, Figure 2 A schematic diagram of displaying recommended content for an electronic device. Figure 2 As shown in (a), the user triggers (i.e., the (N-1)th trigger) the electronic device 00 to display the A video playback interface 001, and the interface 001 includes A video 002 and the identification information 003 of video B, the identification information 004 of video C, and the identification information 005 of video D recommended by the electronic device 00 based on video A. The electronic device stores the information of video B, video C, and video D recommended based on video A into the first target set. Then, the user can trigger the electronic device 00 to exit the A video playback interface 001. After a period of time, when the user triggers the electronic device 00 to display the A video playback interface 001 again (i.e., the Nth trigger), as shown in FIG. Figure 2 As shown in (b), the interface 001 recommends, based on the electronic device 00 of video A, the identification information 003 of video B, the identification information 004 of video C, and the identification information 006 of video E. The electronic device 00 can determine that the information of video E is not in the first target set, so the electronic device 00 can obtain the information of video E and add the information of video E to the first target set to obtain a second target set including: the information of video B, the information of video C, the information of video D, and the information of video E.
[0056] The embodiment of the present application provides an information storage method, which can obtain M first information, each of which indicates a first content, and the M first contents are the contents recommended according to the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; and when it is detected that there is target information that does not belong to the first target set in the M first information, the target information that does not belong to the first target set in the M first information is added to the first target set to obtain the second target set; wherein the information in the first target set is used to indicate the content recommended according to the second content when the electronic device displays the second content for the previous (N-1) time, and the information in the first target set is different from each other. Through this method, since the electronic device can selectively add the information of the recommended content that does not belong to the first target set in the information of multiple recommended contents to the first target set, therefore, compared with the solution of storing all the recommended information in the related technology, the technical solution of the present application can significantly reduce the information of the recommended content stored in the electronic device, thereby saving the storage resources of the electronic device and avoiding the waste of storage resources.
[0057] Optionally, in an embodiment of the present application, the above step 102 can be specifically implemented through the following step 102a.
[0058] Step 102a. When it is detected that there is target information in the M first information that does not belong to the first target set, the electronic device adds the target information, information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set to obtain the second target set.
[0059] It should be noted that, in the embodiment of the present application, the information in the above-mentioned target information or the information of the second content may be at least one of the following: link information, picture information, title information, author information, popularity information, time information, etc. Exemplarily, the information of the second content may be cover picture information (i.e., picture information), and the cover picture information may be used to indicate the second content.
[0060] Optionally, in an embodiment of the present application, when the electronic device adds the content priority of the first content and the content priority of the second content to the first target set, the addition can be performed according to the corresponding relationship with the content. Specifically, since the priority of the second content is higher than the priority of the first content, and the first content is the content recommended based on the second content, the electronic device can set the corresponding relationship between the content priority S of the second content and the first target set (for example, one-to-one correspondence), and then the electronic device will store the information of the second content with the priority (S+1) of the content recommended based on the second content in the first target set, wherein the priority of the corresponding content of all information in the first target set is (S+1). It can be determined specifically according to actual use requirements, and the embodiment of the present application does not make specific limitations.
[0061] It is understandable that, when the electronic device adds the target information to the first target set, it can also add the information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set to obtain the second target information. In this way, the content of the target set of the electronic device can be enriched, so that the target set of the electronic device contains more information and priority information of the second content, which is convenient for subsequent use.
[0062] Optional, combined Figure 1 ,like Figure 3 As shown, after the above step 102, the information storage method provided in the embodiment of the present application also includes the following steps 103 to 105.
[0063] Step 103: When the electronic device displays the second content for the Nth time, the electronic device displays the first control.
[0064] Optionally, in an embodiment of the present application, the electronic device may display the first control in the interface that displays the second content for the Nth time, that is, the first control may be displayed in a floating manner in the current interface.
[0065] Optionally, in an embodiment of the present application, the above-mentioned first control can be used to trigger the electronic device to display information in the second target set except the M first information.
[0066] Optionally, the shape and size of the first control are not specifically limited in the embodiment of the present application and can be determined according to actual usage requirements. Figure 4 The circular control 007 in.
[0067] Step 104: The electronic device receives a first input to the first control.
[0068] Optionally, in an embodiment of the present application, the above-mentioned first input is used to trigger the electronic device to display information in K second target sets except M first information, that is, to trigger the electronic device to display information of K contents recommended based on the second content, and the information is not in the second target set.
[0069] Optionally, in the embodiment of the present application, the first input may be a touch input to the first control, and specifically, the touch input may be at least one of the following: single click, double click, long press, drag along a preset track, etc. The specific input may be determined according to actual use requirements, and the embodiment of the present application does not specifically limit the input.
[0070] Optionally, in an embodiment of the present application, when the user touches the first control and does not make a first input to the first control, the electronic device displays (for example, displays around the first control) a first prompt message, and the first prompt message is used to prompt the user to operate the first control through the first input, which triggers the electronic device to display K second information as information in the second target set other than the M first information.
[0071] Step 105: The electronic device displays K pieces of second information in response to the first input.
[0072] Among them, the above-mentioned K second information are the information in the second target set except the M first information, and K is a positive integer.
[0073] It should be noted that, in the embodiment of the present application, the content priority of the content indicated by the above K second information is lower than the content priority of the second content of the current interface (i.e., the interface of the second content). For example, assuming that the content priority of the second content is level 0, if the content priority of the first content or the content in the target set (first target set or second target set) recommended based on the second content is level 1, then the content priority of the K second information is also level 1, that is, lower than the content priority of the second content of the current interface (i.e., the interface of the second content) of level 0.
[0074] In addition, in the embodiment of the present application, the content priority of the content indicated by the above K second information is at the same level as the priority of the content indicated by the information in the first target set or the second target set.
[0075] It should be noted that in the embodiments of the present application, the size relationship between M and K is not specifically limited. Specifically, M may be greater than or equal to K, or M may be less than K.
[0076] For example, Figure 4 The operation diagram of the first control displayed by the electronic device is shown as follows. Figure 4As shown in (a) of FIG. 1 , the user triggers (i.e., the Nth trigger) the electronic device 00 to display the video A playback interface 001, which includes the video A 002 and the identification information 003 of the video B, the identification information 004 of the video C, and the identification information 006 of the video E recommended by the electronic device 00 based on the video A. The interface 001 also displays a first control 007. The user can long press the first control 007, such as Figure 4 As shown in (b), the electronic device 00 responds to the long press input (i.e., the first input) by displaying a pop-up window 008 in the interface 001, and the pop-up window 008 displays the identification information 005 of the D video, that is, the pop-up window 008 displays the information of the D video in the second target set in addition to the information of the B video, C video, and E video displayed above.
[0077] It is understandable that the electronic device can display the first control in the interface displaying the second content, and receive the user's input to the first control, triggering the electronic device to display the information in the second target set except the M first information. In this way, the user can view other historical content recommended based on the second content, so that it is convenient for the user to find the user's content from the historical recommended content. This makes it convenient for the user to use and improves the user's experience.
[0078] Optional, combined Figure 1 ,like Figure 5 As shown, after the above step 102, the information storage method provided in the embodiment of the present application also includes the following steps 106 and 107.
[0079] Step 106: When displaying M first information, the electronic device receives a second input of third information among the M first information.
[0080] It should be noted that, in the embodiment of the present application, the second input is used to select the third information from the M first information and trigger the electronic device to jump to the display interface of the content indicated by the third information (eg, the first content).
[0081] Optionally, in an embodiment of the present application, the second input can be specifically divided into a first sub-input and a second sub-input, wherein the first sub-input is used to select the third information from the M first information, and the first sub-input can be a single-click selection input, a double-click selection input, a long press selection input, etc. The second sub-input is used to determine the selection of the third information and trigger the electronic device to jump to the display page of the content indicated by the third information. The second sub-input can be a touch input of the second prompt information when the electronic device displays the second prompt information after receiving the first sub-input (the second prompt information is used to prompt the user whether to confirm the selection of the third information and jump to the display page of the content indicated by the third information). The touch input can be a single-click input, a double-click input, a long press input, a drag input according to a preset trajectory, etc. It can be determined specifically according to actual usage requirements.
[0082] It should be noted that, in the embodiment of the present application, the second input may also be a single-click input, a double-click input, a long-press input, a drag input along a preset trajectory, etc. of the third information, so as to trigger the electronic device to select the third information from the M first information, and trigger the electronic device to jump to the display interface of the content indicated by the third information.
[0083] Step 107: The electronic device displays the first content and the second control indicated by the third information in response to the second input.
[0084] The second control is used to trigger the display of information other than the third information in the M first information.
[0085] Optionally, in an embodiment of the present application, the electronic device jumps to display the first content indicated by the third information in response to the second input, that is, triggers display of the first content indicated by the third information recommended based on the second content.
[0086] Optionally, in an embodiment of the present application, the above-mentioned second control is used to trigger the display of information other than the third information in the M first information, that is, to trigger the display of an interface with the same content priority as the content of the currently displayed interface (that is, the interface of the first content indicated by the third information).
[0087] Optionally, in an embodiment of the present application, the above-mentioned second control can be superimposed and displayed on the interface of the first content indicated by the third information. For the specific description of the second control, please refer to the relevant description of the first control in the above embodiment, which will not be repeated here.
[0088] It should be noted that in the embodiment of the present application, the electronic device can be triggered to display the first control and the second control at the same time according to actual use needs, so that the user can choose to use or use them at the same time. Specifically, when the electronic device displays the second content for the Nth time, the first control and the second control can be displayed at the same time on the current display interface. The specific triggering display method can refer to the relevant description in the above steps 103 and 106.
[0089] For example, Figure 6 One of the operation diagrams of the second control displayed by the electronic device. Figure 6 As shown in (a) of FIG. 1 , the user triggers the electronic device 00 to display the video A playback interface 001, which includes the video A 002 and the identification information 003 of the video B, the identification information 004 of the video C, and the identification information 005 of the video D recommended by the electronic device 00 based on the video A (i.e., the electronic device displays three first information). The user clicks the identification information 003 of the video B (i.e., the third information), as shown in FIG. Figure 6 As shown in (b) of FIG. 1 , in response to the single-click input (i.e., the second input), the electronic device 00 displays the play page 009 of video B and video B 010, as well as the identification information 011 of video (1), the identification information 012 of video (2), and the identification information 013 of video (3) recommended by the electronic device 00 based on video B. The interface 009 also displays a second control 014.
[0090] It is understandable that when the electronic device displays M first information, it can receive the user's second input for the third information in the M first information, and display the first content and the second control indicated by the third information in response to the second input. The second control can trigger the display of information other than the third information in the M first information. In this way, the user can select the third information according to actual usage needs and trigger the electronic device to display the first content indicated by the third information. And when the user needs to view the information of the recommended content other than the third information in the M first information, he can view it by triggering the second control. This facilitates the user's use of the electronic device and improves the human-computer interaction performance.
[0091] Optional, combined Figure 5 ,like Figure 7 As shown, after the electronic device displays the second control (ie, after the above step 107), the information storage method provided in the embodiment of the present application further includes the following steps 108 and 109.
[0092] Step 108: The electronic device receives a third input to the second control.
[0093] It should be noted that, in the embodiment of the present application, the third input is used to trigger the electronic device to display information other than the third information among the M first information.
[0094] Optionally, in the embodiment of the present application, the third input may be a touch input to the second control, and the touch input may be at least one of the following: single-clicking the second control, double-clicking the second control, long-pressing the second control, dragging the second control along a preset track, etc. The specific input may be determined according to actual use requirements, and the embodiment of the present application does not make specific limitations.
[0095] Step 109: The electronic device displays information other than the third information in the M first information in response to the third input.
[0096] Optionally, in an embodiment of the present application, the above-mentioned method of displaying information other than the third information in the M first information can be any of the following methods: Method 1, the electronic device displays a target pop-up window, and the target pop-up displays information other than the third information in the first information or identifiers of these information (each identifier is used to indicate a piece of information other than the third information in the first information). Method 2, the electronic device can display a target list, and each list item in the list corresponds to an information other than the third information in the first information. The specific method can be determined according to actual usage requirements, and the embodiment of the present application does not make specific limitations.
[0097] Optionally, in an embodiment of the present application, when there is a large amount of information other than the third information in the M first information displayed, the above-mentioned target pop-up window or target list can be displayed by sliding or turning pages.
[0098] For example, Figure 8 The second operation diagram of the second control displayed on the electronic device. Figure 6 As shown in (b) of FIG. 1 , the electronic device 00 displays the playback page 009 of video B and video B 010, as well as the identification information 011 of video (1), the identification information 012 of video (2), and the identification information 013 of video (3) recommended by the electronic device 00 based on video B. The interface 009 also displays a second control 014. The user can double-click the second control 014, as shown in FIG. Figure 8 As shown, the electronic device 00 displays a target window 015 in response to the double-click operation (i.e., the third input), in which the target window 015 displays identification information 004 of video C, which is at the same level as video B, identification information 005 of video D, and identification information 006 of video E (i.e., information among the M first information except the third information is displayed).
[0099] It is understandable that the electronic device displays information other than the third information in the M first information in response to the user's third input to the second control. In this way, when the user needs to view the information of the recommended content other than the third information in the M first information, the second control can be triggered to view it. That is, after entering a recommendation page, it is convenient for the user to view the recommended content of the same level (i.e., the same priority) as the recommendation page, thereby facilitating the user's use of the electronic device and improving the user's experience.
[0100] It should be noted that the information storage method provided in the embodiment of the present application can be executed by an information storage device or a control module in the information storage device for executing the information storage method. In the embodiment of the present application, the information storage device executing the information storage method is taken as an example to illustrate the device provided in the embodiment of the present application.
[0101] like Fig. 9 As shown, an embodiment of the present application provides an information storage device 900. The information storage device 900 may include an acquisition module 901 and a processing module 902. The acquisition module 901 may be used to acquire M first information, each first information indicating a first content, and the M first contents are contents recommended based on the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers. The processing module 902 may be used to add the target information that does not belong to the first target set in the M first information to the first target set to obtain a second target set when it is detected that there is target information that does not belong to the first target set in the M first information. The information in the first target set is used to indicate the content recommended based on the second content when the electronic device displayed the second content for the previous (N-1) time, and the information in the first target set is different from each other.
[0102] Optional, combined Fig. 9 ,like Fig.10 As shown, the information storage device 900 provided in the embodiment of the present application also includes: a display module 903 and a receiving module 904. The display module 903 can be used to display the first control when the electronic device displays the second content for the Nth time. The receiving module 904 can be used to receive a first input to the first control. The display module 903 can also be used to display K second information in response to the first input received by the receiving module 904, where the K second information is information in the second target set other than the M first information, and K is a positive integer.
[0103] Optional, such as Fig.10As shown, the receiving module 904 can be used to receive a second input of a third information among the M first information when displaying the M first information. The display module 903 can be used to display the first content indicated by the third information and a second control in response to the second input received by the receiving module 904, and the second control is used to trigger the display of information other than the third information among the M first information.
[0104] Optionally, in the embodiment of the present application, the receiving module 904 can also be used to receive a third input to the second control after displaying the second control. The display module 903 can be used to display information other than the third information in the M first information in response to the third input received by the receiving module 904.
[0105] Optionally, in an embodiment of the present application, the content priority of the first content indicated by the target information is lower than the content priority of the second content.
[0106] Optionally, in an embodiment of the present application, the processing module 902 can be specifically used to add the target information, the information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set when it is detected that there is target information that does not belong to the first target set among the M first information, so as to obtain the second target set.
[0107] The information storage device in the embodiment of the present application may be a functional entity and / or functional module that executes the information storage method in an electronic device, or may be a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0108] The information storage device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0109] The information storage device provided in the embodiment of the present application can realize Figures 1 to 8 To avoid repetition, the various processes implemented by the information storage device in the method embodiment are not described here.
[0110] The embodiment of the present application provides an information storage device, which can obtain M first information, each of which indicates a first content, and the M first contents are the contents recommended according to the second content when the second content is displayed for the Nth time, and M and N are both positive integers; and when it is detected that there is target information that does not belong to the first target set in the M first information, the target information that does not belong to the first target set in the M first information is added to the first target set to obtain the second target set; wherein the information in the first target set is used to indicate the content recommended according to the second content when the second content is displayed for the previous (N-1) time, and the information in the first target set is different from each other. Through this method, since the storage device can selectively add the information of the recommended content that does not belong to the first target set in the information of multiple recommended contents to the first target set, therefore, compared with the solution of storing all the recommended information in the related art, the technical solution of the present application can significantly reduce the information of the recommended content stored in the storage device, thereby saving the storage resources of the electronic device and avoiding the waste of storage resources.
[0111] Optional, such as Fig.11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1101, a memory 1102, and a program or instruction stored in the memory 1102 and executable on the processor 1101. When the program or instruction is executed by the processor 1101, each process of the above-mentioned information storage method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0112] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0113] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0114] The electronic device 2000 includes but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010 and other components.
[0115] Among them, the input unit 2004 may include a graphics processor 20041 and a microphone 20042, the display unit 2006 may include a display panel 20061, the user input unit 2007 may include a touch panel 20071 and other input devices 20072, and the memory 2009 can be used to store software programs (such as an operating system, an application required for at least one function) and various data.
[0116] Those skilled in the art will appreciate that the electronic device 2000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 2010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0117] The processor 2010 can be used to obtain M first information, each of which indicates a first content, and the M first contents are the contents recommended based on the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers. The processor 2010 can also be used to add the target information that does not belong to the first target set in the M first information to the first target set to obtain the second target set when it is detected that there is target information that does not belong to the first target set in the M first information. The information in the first target set is used to indicate the content recommended based on the second content when the electronic device displayed the second content for the previous (N-1) time, and the information in the first target set is different from each other.
[0118] The embodiment of the present application provides an electronic device, which can obtain M first information, each of which indicates a first content, and the M first contents are the contents recommended according to the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; and when it is detected that there is target information that does not belong to the first target set in the M first information, the target information that does not belong to the first target set in the M first information is added to the first target set to obtain the second target set; wherein the information in the first target set is used to indicate the content recommended according to the second content when the electronic device displays the second content for the previous (N-1) time, and the information in the first target set is different from each other. Through this method, since the electronic device can selectively add the information of the recommended content that does not belong to the first target set in the information of multiple recommended contents to the first target set, therefore, compared with the solution of storing all the recommended information in the related technology, the technical solution of the present application can significantly reduce the information of the recommended content stored in the electronic device, thereby saving the storage resources of the electronic device and avoiding the waste of storage resources.
[0119] Optionally, in an embodiment of the present application, the display unit 2006 may be used to display a first control when the electronic device displays the second content for the Nth time. The user input unit 2007 may be used to receive a first input to the first control. The display unit 2006 may also be used to display K second information in response to the first input received by the user input unit 2007, where the K second information is information in the second target set other than the M first information, and K is a positive integer.
[0120] It is understandable that the electronic device can display the first control in the interface displaying the second content, and receive the user's input to the first control, triggering the electronic device to display the information in the second target set except the M first information. In this way, the user can view other historical content recommended based on the second content, so that it is convenient for the user to find the user's content from the historical recommended content. This makes it convenient for the user to use and improves the user's experience.
[0121] Optionally, in the embodiment of the present application, the user input unit 2007 may be used to receive a second input of a third information among the M first information when the M first information are displayed. The display unit 2006 may be used to display the first content indicated by the third information and a second control in response to the second input received by the user input unit 2007, wherein the second control is used to trigger the display of information other than the third information among the M first information.
[0122] It is understandable that when the electronic device displays M first information, it can receive the user's second input for the third information in the M first information, and display the first content and the second control indicated by the third information in response to the second input. The second control can trigger the display of information other than the third information in the M first information. In this way, the user can select the third information according to actual usage needs and trigger the electronic device to display the first content indicated by the third information. And when the user needs to view the information of the recommended content other than the third information in the M first information, he can view it by triggering the second control. This facilitates the user's use of the electronic device and improves the human-computer interaction performance.
[0123] Optionally, in the embodiment of the present application, the user input unit 2007 may also be used to receive a third input to the second control after displaying the second control. The display unit 2006 may be used to display information other than the third information in the M first information in response to the third input received by the user input unit 2007.
[0124] It is understandable that the electronic device displays information other than the third information in the M first information in response to the user's third input to the second control. In this way, when the user needs to view the information of the recommended content other than the third information in the M first information, the second control can be triggered to view it. That is, after entering a recommendation page, it is convenient for the user to view the recommended content at the same level as the recommendation page, thereby facilitating the user's use of the electronic device and improving the user's experience.
[0125] Optionally, in an embodiment of the present application, the content priority of the first content indicated by the target information is lower than the content priority of the second content.
[0126] It is understandable that, since the content priority of the first content indicated by the target information is lower than the content priority of the second content, the electronic device can add the target information corresponding to the content whose content priority is lower than the content priority of the second content to the first target set. This enriches the way in which the electronic device determines whether to add information to the first target set, thereby enabling the electronic device to obtain the second target set more quickly, and facilitating the subsequent steps of the electronic device.
[0127] Optionally, in an embodiment of the present application, the processor 2010 can be specifically used to add the target information, the information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set when it is detected that there is target information that does not belong to the first target set among the M first information, so as to obtain the second target set.
[0128] It is understandable that, when the electronic device adds the target information to the first target set, it can also add the information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set to obtain the second target information. In this way, the content of the target set of the electronic device can be enriched, so that the target set of the electronic device contains more information and priority information of the second content, which is convenient for subsequent use.
[0129] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information storage method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0131] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-mentioned information storage method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0132] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0133] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0135] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information storage method, characterized in that: The method comprises: Acquire M first information, each of which indicates a first content, and the M first contents are contents recommended according to the second content when the electronic device displays the second content for the Nth time, and both M and N are positive integers; When it is detected that there is target information that does not belong to the first target set in the M first information, the target information is added to the first target set to obtain a second target set; The information in the first target set is used to indicate the content recommended according to the second content when the electronic device displayed the second content for the (N-1)th time before, and the information in the first target set is different from each other; In the case where it is detected that there is target information that does not belong to the first target set in the M first information, after adding the target information to the first target set to obtain the second target set, the method further includes: When the electronic device displays the second content for the Nth time, displaying a first control; receiving a first input to the first control; In response to the first input, K second information is displayed, where the K second information is information in the second target set other than the M first information, and K is a positive integer; The step of, in a case where it is detected that there is target information that does not belong to the first target set in the M first information, adding the target information that does not belong to the first target set in the M first information to the first target set to obtain the second target set, comprises: When it is detected that there is target information that does not belong to the first target set among the M first information, the target information, the information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content are added to the first target set to obtain the second target set.
2. The method according to claim 1, characterized in that The method further comprises: In a case where the M first information are displayed, receiving a second input of a third information among the M first information; In response to the second input, the first content indicated by the third information and a second control are displayed, and the second control is used to trigger the display of information other than the third information in the M first information.
3. The method according to claim 2, characterized in that After displaying the second control, the method further includes: receiving a third input to the second control; In response to the third input, information other than the third information among the M first information is displayed.
4. An information storage device, characterized in that: The device comprises: an acquisition module and a processing module; The acquisition module is used to acquire M first information when it is detected that there is target information that does not belong to the first target set among the M first information, each first information indicates a first content, and the M first contents are contents recommended according to the second content when the electronic device displays the second content for the Nth time, and M and N are both positive integers; The processing module is used to add the target information that does not belong to the first target set among the M first information to the first target set to obtain a second target set; The information in the first target set is used to indicate the content recommended according to the second content when the electronic device displayed the second content for the (N-1)th time before, and the information in the first target set is different from each other; The device also includes: a display module and a receiving module; The display module is configured to display the first control when the electronic device displays the second content for the Nth time; The receiving module is used to receive a first input to the first control; The display module is further configured to display K second information in response to the first input received by the receiving module, wherein the K second information are information in the second target set other than the M first information, and K is a positive integer; The processing module is specifically used to add the target information, information of the second content, the content priority of the first content indicated by the target information, and the content priority of the second content to the first target set to obtain the second target set when it is detected that there is target information that does not belong to the first target set among the M first information.
5. The device according to claim 4, characterized in that The device also includes: a receiving module and a display module; The receiving module is used to receive a second input of a third information among the M first information when displaying the M first information; The display module is used to display the first content indicated by the third information and a second control in response to the second input received by the receiving module, and the second control is used to trigger the display of information other than the third information in the M first information.
6. The device according to claim 5, characterized in that The receiving module is further configured to receive a third input to the second control after displaying the second control; The display module is used to display information other than the third information among the M first information in response to the third input received by the receiving module.
