Resource display method and device and resource recommendation method and device
By obtaining animation materials in advance and performing synchronous playback control on the client, the problem of slow dynamic rendering loading in the feed information flow is solved, improving user experience and display fluency of animation materials.
Patent Information
- Application Number
- CN202510480411.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, the loading of the feed information flow is slow during the dynamic rendering process, which affects the user experience.
By obtaining the animation material in advance on the client and displaying it after receiving the target resource, the loading time of the animation material is reduced, and combined with the dual-list synchronous playback control, the smoothness and consistency of the animation material is ensured.
It improves user interaction experience, reduces the loading time of animation materials, enhances the atmosphere rendering effect of animation materials, and optimizes the user's visual experience.
Smart Images

Figure CN120336636A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and more particularly to the field of intelligent recommendation technology. More specifically, the present disclosure provides a resource display method, a resource recommendation method, an apparatus, an electronic device, a storage medium, and a computer program product. Background Art
[0002] A Feed information stream refers to an information stream that is continuously updated and presented to users. The current Feed information streams are divided into single-column and double-column, and most of them are static information displays. However, when rendering a dynamic Feed information stream in real time, there is an easy problem of slow loading, which affects the user experience. Summary of the Invention
[0003] The present disclosure provides a resource display method, a resource recommendation method, an apparatus, an electronic device, a storage medium, and a computer program product.
[0004] According to a first aspect, a resource display method is provided. The method includes: in response to obtaining, from a server, dynamic effect materials set for a promotion activity of a resource, sending a resource acquisition request including activity readiness information to the server; receiving a target resource sent by the server, where the target resource is determined by the server according to the activity readiness information; and displaying the target resource and the dynamic effect materials.
[0005] According to a second aspect, a resource recommendation method is provided. The method includes: receiving a resource acquisition request from a client, where the resource acquisition request includes activity readiness information, and the activity readiness information is generated by the client in response to obtaining, from the server, dynamic effect materials set for a promotion activity of a resource; determining a target resource and activity configuration information of the target resource according to the activity readiness information; and sending the target resource according to the activity readiness information and the activity configuration information.
[0006] According to a third aspect, a resource display apparatus is provided. The apparatus includes: a request sending module, configured to, in response to obtaining, from a server, dynamic effect materials set for a promotion activity of a resource, send a resource acquisition request including activity readiness information to the server; a resource receiving module, configured to receive a target resource sent by the server, where the target resource is determined by the server according to the activity readiness information; and a display module, configured to display the target resource and the dynamic effect materials.
[0007] According to a fourth aspect, a resource recommendation device is provided. The device includes: a request receiving module, configured to receive a resource acquisition request from a client, where the resource acquisition request includes activity readiness information, and the activity readiness information is generated by the client in response to obtaining animation materials set for a promotion activity of a resource from a server; a resource determination module, configured to determine a target resource and activity configuration information of the target resource according to the activity readiness information; and a resource sending module, configured to send the target resource according to the activity readiness information and the activity configuration information.
[0008] According to a fifth aspect, an electronic device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor; where the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method provided according to the present disclosure.
[0009] According to a sixth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the method provided according to the present disclosure.
[0010] According to a seventh aspect, a computer program product is provided, including a computer program, where the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the method provided according to the present disclosure is implemented.
[0011] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understandable through the following description. Description of the Drawings
[0012] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0013] Figure 1 is an exemplary system architecture diagram to which a resource display method, a resource recommendation method, and a device can be applied according to an embodiment of the present disclosure;
[0014] Figure 2 is a flowchart of a resource display method according to an embodiment of the present disclosure;
[0015] Figure 3 is a dual-list display diagram of a resource display method according to an embodiment of the present disclosure;
[0016] Figure 4 is a flowchart of a resource display method according to another embodiment of the present disclosure;
[0017] Figure 5 It is a flowchart of a resource recommendation method according to an embodiment of the present disclosure;
[0018] Figure 6 It is a schematic diagram of resource acquisition according to an embodiment of the present disclosure;
[0019] Figure 7 It is a schematic diagram of activity configuration information according to an embodiment of the present disclosure;
[0020] Figure 8 It is a flowchart of a resource recommendation method according to another embodiment of the present disclosure;
[0021] Figure 9 It is a block diagram of a resource display device according to an embodiment of the present disclosure;
[0022] Figure 10 It is a block diagram of a resource recommendation device according to an embodiment of the present disclosure; and
[0023] Figure 11 It is a block diagram of an electronic device for a resource display method and a resource recommendation method according to an embodiment of the present disclosure. Detailed Embodiments
[0024] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to assist understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted below.
[0025] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0026] In the technical solution of the present disclosure, before obtaining or collecting user personal information, the authorization or consent of the user is obtained.
[0027] Figure 1 It is a schematic diagram of an exemplary system architecture to which a resource display method, a resource recommendation method, and a device can be applied according to an embodiment of the present disclosure. It should be noted that Figure 1 The illustration shown is only an example of the system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments, or scenarios.
[0028] Such as Figure 1As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0029] Users can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 and obtain the feed information stream resources provided by the server 105. The terminal devices 101, 102, 103 may be various electronic devices, including but not limited to smart phones, tablet computers, laptop portable computers, etc.
[0030] The server 105 may be a server that provides various services, such as a background management server (only for example) that supports the websites browsed by users using the terminal devices 101, 102, 103. The background management server may receive resource acquisition requests initiated by the terminal devices 101, 102, 103 and send the corresponding feed information stream resources to the terminal devices 101, 102, 103.
[0031] The resource display method provided by the embodiments of the present disclosure can generally be executed by the terminal devices 101, 102, 103. Correspondingly, the resource display device provided by the embodiments of the present disclosure can generally be set in the terminal devices 101, 102, 103.
[0032] The resource recommendation method provided by the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the resource recommendation device provided by the embodiments of the present disclosure can generally be set in the server 105.
[0033] Figure 2 is a flowchart of a resource display method according to an embodiment of the present disclosure.
[0034] As Figure 2 shown, the resource display method 200 of this embodiment includes operations S210 - S230. The execution subject of this embodiment may be a client.
[0035] In operation S210, in response to obtaining the animation materials set for the promotion activity of the resource from the server side, a resource acquisition request including activity readiness information is sent to the server side.
[0036] In an embodiment of the present disclosure, the dynamic effect materials may refer to display information such as dynamic pictures, visual animations, interactive special effects, videos, etc. Users can understand the relevant information about the promotion activities of resources through the dynamic materials. The activity ready information may indicate that the client has obtained the dynamic effect materials related to the promotion activity from the server. The resource acquisition request refers to a request for acquiring resources related to the promotion activity.
[0037] For example, after obtaining the dynamic effect materials set for promotion activity A from the server, after the acquisition of the dynamic effect materials is completed, a resource acquisition request is sent to the server, and resources related to promotion activity A can be obtained, and then displayed to the user.
[0038] In operation S220, receive the target resources sent by the server, where the target resources are determined by the server according to the activity ready information.
[0039] In an embodiment of the present disclosure, the target resources may be displayed in the form of a card. The card content may include the activity name, activity initiator information, activity link, etc. The server may be pre-configured with activity configuration information related to the promotion activity. According to the activity ready information, the activity configuration information corresponding to the dynamic effect materials can be determined, and then the target resources related to the promotion activity can be determined.
[0040] For example, the activity ready information indicates that the dynamic effect materials related to the "Shopping Festival" have been obtained. A resource acquisition request including the activity ready information is sent to the server. The server determines that the promotion activity is the "Shopping Festival" according to the activity ready information, and determines the resources related to the "Shopping Festival" as the target resources.
[0041] In operation S230, display the target resources and the dynamic effect materials.
[0042] In an embodiment of the present disclosure, after the target resources are obtained, the target resources may be displayed in the form of a card, and the dynamic effect materials may be displayed in the card.
[0043] For example, the target resources may be displayed in the form of a card, and the dynamic effect materials are played in the card. The dynamic effect materials can improve the attractiveness of the target resources and increase the user's interest in the target resources.
[0044] In the related art, the display of dynamic effect materials in the feed information stream often requires real-time loading and rendering, which makes the user experience easily affected by network problems. The dynamic effect loading is slow, and the white screen problem is likely to occur.
[0045] The embodiments of the present disclosure send the dynamic effect materials to the client in advance. After the client receives the target resources, it can directly obtain the dynamic effect materials located locally on the client for display, thereby reducing the loading time of the dynamic effect materials, improving the smoothness of the dynamic effect material display, and improving the user's interactive experience.
[0046] In an embodiment of the present disclosure, the activity readiness information includes an activity identifier and a dynamic material readiness identifier. The target resource is determined according to the activity configuration information when the activity identifier in the activity readiness information and the activity identifier in the activity configuration information of the server are consistent and the dynamic material readiness identifier is a preset threshold.
[0047] The activity identifier can be an activity name, activity number, or other identification information that can represent different promotional activities. The animation material readiness identifier is used to indicate whether the animation material from the server has been loaded. The server can store activity configuration information of different promotional activities, and the activity configuration information can include the activity identifier of the promotional activity. The server can obtain the target resource corresponding to the animation material by matching the activity identifier in the activity readiness information with the activity identifier in the stored activity configuration information.
[0048] For example, the activity identifier in the activity preparation information is "XX Shopping Festival", and the server determines a resource with the same activity identifier as "XX Shopping Festival" from the activity configuration information as the target resource.
[0049] For example, in the activity readiness information sent to the server, the dynamic material readiness flag may include 1 and 0. When the dynamic material readiness flag is 1, it indicates that the dynamic material obtained from the server has been loaded. When the dynamic material readiness flag is 0, it indicates that the dynamic material obtained from the server has not been loaded.
[0050] In the embodiment of the present disclosure, the activity configuration information includes an activity time range and an activity object range; the target resource is sent by the server at the target time when the client belongs to the activity object range and the target time belongs to the activity time range.
[0051] The activity time range may refer to the time period of the promotion activity, and the activity target range may refer to the display group targeted by the promotion activity, which may include all users or the audience group of the promotion activity. The target time may refer to the current refresh time of the user. If the target time is within the activity time range and the client that initiates the resource acquisition request is within the activity target range, the server may send the target resource to the client.
[0052] For example, in a resource acquisition request initiated by a client to a server, an activity identifier "XX Shopping Festival" is included. The server obtains the activity configuration information with the same activity identifier "XX Shopping Festival" based on the activity identifier. In the activity configuration information, for example, the activity time range is configured as from March 1st to March 30th, and the activity object range is a user group with specific tags (such as food, etc.). When the client user meets the activity object range and the current time meets the activity time range, the server can send the target resources related to the "XX Shopping Festival" to the client for display.
[0053] According to an embodiment of the present disclosure, by pre-configuring the activity configuration information on the server, when the client initiates a resource acquisition request, the corresponding target resources can be obtained according to the activity identifier, and by checking the time and user group, the timeliness and pertinence of resource distribution are ensured, improving the user interaction experience.
[0054] In an embodiment of the present disclosure, displaying the target resources and dynamic effect materials includes: displaying the target resources in a double-list form, and displaying the dynamic effect materials in the target resources of each list; and controlling the playback states of the dynamic effect materials in the double-list to be consistent.
[0055] Next, in combination with Figure 3 the double-list display of the present disclosure will be further described.
[0056] Figure 3 is a schematic diagram of the double-list display of a resource display method according to an embodiment of the present disclosure.
[0057] As Figure 3 shown, the double-list display of this embodiment includes left and right display columns. After the user performs a refresh operation or an open operation on the double-list, the double-list can respectively display the target resource 310 and the target resource 320 in the left and right display columns. The target resource 310 can include an area for displaying the dynamic effect material A, and the target resource 320 can include an area for displaying the dynamic effect material B. Among them, the target resource 310 and the target resource 320 correspond to the same promotion activity. According to actual needs, the target resource 310 and the target resource 320 can be set to be completely the same or different.
[0058] In an embodiment of the present disclosure, the dynamic effect materials include multiple videos; displaying the target resources in a double-list form and displaying the dynamic effect materials in the target resources of each list includes: displaying two different videos in two target resources located in different lists.
[0059] When obtaining animation materials from the server, multiple animation materials for promotional activities can be obtained, such as multiple dynamic pictures, multiple videos, etc. When displaying target resources in a double - list form, the left and right display columns can display different animation materials based on the target resources respectively.
[0060] For example, the animation materials obtained from the server include two videos, namely, the activity introduction and the live broadcast clip of the activity. The user can see the displayed target resources 310 and target resources 320. The titles of target resources 310 and target resources 320 can be the same. The animation material A of target resource 310 is the activity introduction video, and the animation material B of target resource 320 is the live broadcast clip video of the activity.
[0061] In the embodiments of the present disclosure, in order to ensure the playback effect of the animation materials in the double - list, different videos in the animation materials can be set to the same duration. In the case of normal playback of the animation materials, a playback effect that two animation materials play and end simultaneously can be achieved, enhancing the atmosphere rendering effect of the animation materials and improving the user experience.
[0062] In the embodiments of the present disclosure, the double - list display may be affected by network problems, resource configuration problems, etc., resulting in the inability to synchronize the playback states of different animation materials and affecting the user experience. Next, in combination with Figure 4 the control of the playback state of the animation materials of the present disclosure will be further described.
[0063] Figure 4 is a flowchart of a resource display method according to another embodiment of the present disclosure.
[0064] As Figure 4 shown, the resource display method of this embodiment includes operations S401 - S407. The resource display method of this embodiment can be executed by the first player 410, the second player 420, and the synchronization manager 430 in the client. Among them, the synchronization manager 430 can obtain the status information of the first player 410 and the second player 420 and control and adjust the playback states of the first player 410 and the second player 420. Two different animation materials in the list can be played by the first player 410 and the second player 420 of the client respectively.
[0065] In operation S401, the first player 410 and the second player 420 each display the animation materials.
[0066] In operation S402, the first player 410 and the second player 420 respectively send status information to the synchronization manager 430.
[0067] In operation S403, the synchronization manager 430 determines whether the difference between the playback progress of the first player 410 and the playback progress of the second player 420 is greater than a predetermined duration. If the difference in playback progress is greater than the predetermined duration, operation S405 is executed; if the difference in playback progress is not greater than the predetermined duration, operation S404 is executed.
[0068] In operation S404, the normal playback of the first player 410 and the second player 420 is maintained.
[0069] In operation S405, the synchronization manager 430 generates an adjustment instruction according to the difference in playback progress.
[0070] In an embodiment of the present disclosure, when the difference in playback progress is greater than the predetermined duration, an adjustment instruction for adjusting the playback progress of at least one of the first player 410 and the second player 420 is generated.
[0071] In an embodiment of the present disclosure, after operation S405, one of operation S406 and operation S407 may be executed to synchronize the playback progress of the first player 410 and the second player 420 by adjusting the first player 410 or the second player 420.
[0072] For example, if the playback progress of the first player 410 is 3 seconds ahead of the playback progress of the second player 420, an adjustment instruction representing pause may be sent to the first player 410. When the status information of the first player 410 and the second player 420 indicates that the difference in playback progress is less than the predetermined duration, the adjustment ends.
[0073] For example, if the playback progress of the first player 410 is 3 seconds ahead of the playback progress of the second player 420, an adjustment instruction representing frame skipping may be sent to the second player 420. When the status information of the first player 410 and the second player 420 indicates that the difference in playback progress is less than the predetermined duration, the adjustment ends.
[0074] In operation S406, the synchronization manager 430 sends an adjustment instruction to the first player 410.
[0075] In operation S407, the synchronization manager 430 sends an adjustment instruction to the second player 420.
[0076] In an embodiment of the present disclosure, after operation S407, operations S402 - S403 are repeated until the difference in the playback progress of the first player 410 and the second player 420 is less than the predetermined duration.
[0077] In an embodiment of the present disclosure, after operation S405, operations S406 and S407 can also be executed simultaneously. Exemplarily, if the difference in the playback progress between the first player 410 and the second player 420 is too large, adjusting one of the first player 410 and the second player 420 is likely to affect the user's viewing experience. The synchronization manager 430 can send different adjustment instructions to the first player 410 and the second player 420 respectively to adjust the playback states of the first player 410 and the second player 420.
[0078] For example, if the playback progress of the first player 410 leads the playback progress of the second player 420 by 3 seconds, an adjustment instruction representing pause can be sent to the first player 410, and an adjustment instruction representing frame skipping can be sent to the second player 420 simultaneously. When the status information indicating the difference in the playback progress of the first player 410 and the second player 420 is less than a predetermined duration, the adjustment is ended.
[0079] In an embodiment of the present disclosure, controlling the playback states of the dynamic effect materials in the dual list to be consistent includes: receiving the status information sent by the first player and the second player respectively; in response to the inconsistency between the status information of the first player and the status information of the second player, generating an adjustment instruction according to the status priority; and sending the adjustment instruction to at least one of the first player and the second player.
[0080] The inconsistency of the status information may mean that the difference in the playback progress between the first player 410 and the second player 420 is greater than a predetermined duration, or it may also mean that at least one of the first player 410 and the second player 420 has a pause or a playback error. Different status priorities can be set, and corresponding adjustment instructions can be generated according to the status priorities.
[0081] In an embodiment of the present disclosure, the priorities of pause and playback error are higher than the playback progress; in response to the inconsistency between the status information of the first player and the status information of the second player, generating an adjustment instruction according to the status priority includes: in response to the difference in the playback progress between the first player and the second player being greater than a predetermined duration, generating an adjustment instruction for adjusting the playback progress; in response to the status of any one of the players being pause or playback error, generating an adjustment instruction for indicating pause or displaying a preset image.
[0082] For example, when the difference in the playback progress is greater than a predetermined duration, an adjustment instruction for adjusting the playback progress of at least one of the first player 410 and the second player 420 can be generated.
[0083] For example, when at least one of the first player 410 and the second player 420 has a pause or a playback error, an adjustment instruction for indicating pause or displaying a preset image is generated.
[0084] For example, when the playback progress of the first player 410 is 3 seconds ahead of that of the second player 420, but at the same time, the second player 420 pauses. At this time, an adjustment instruction for instructing the first player 410 to pause is generated.
[0085] In an embodiment of the present disclosure, the target resource includes a preset picture. When a playback error occurs in at least one player, an adjustment instruction for instructing to display the preset picture can be generated, so that the first player 410 and the second player 420 stop playing and display the preset picture.
[0086] According to an embodiment of the present disclosure, the resource display method by synchronous playback of double lists can improve the display effect of resources, optimize the user experience, and avoid the influence of abnormal playback states on the double list playback effect.
[0087] Figure 5 It is a flowchart of a resource recommendation method according to an embodiment of the present disclosure.
[0088] As Figure 5 shown, the resource recommendation method 500 of this embodiment includes operation S510 - operation S530. The execution subject of this embodiment can be a server.
[0089] In operation S510, a resource acquisition request from a client is received, where the resource acquisition request includes activity preparation ready information, and the activity preparation ready information is generated by the client in response to the dynamic effect materials set for the promotion activity of the resource obtained from the server.
[0090] In an embodiment of the present disclosure, the resource acquisition request can be initiated by the client after obtaining the dynamic effect materials for the promotion activity, and is used to obtain the target resources related to the dynamic effect materials.
[0091] In operation S520, the target resource and the activity configuration information of the target resource are determined according to the activity preparation ready information.
[0092] In an embodiment of the present disclosure, the activity configuration information can be pre-configured. After receiving the resource acquisition request and the included activity preparation ready information, the resource matching the activity identifier in the activity configuration information is obtained as the target resource.
[0093] In operation S530, the target resource is sent according to the activity preparation ready information and the activity configuration information.
[0094] In an embodiment of the present disclosure, it can be confirmed that the client has obtained the dynamic effect materials according to the activity preparation ready information, the activity identifier in the activity configuration information is matched with the activity identifier in the activity preparation ready information, and the target resource is sent to the client so that the client can display the target resource and the dynamic effect materials.
[0095] According to an embodiment of the present disclosure, by sending the target resource to the client when it is confirmed that the client has obtained the animation materials and the activity identifier matches, it is convenient for the client to display based on the animation materials located locally on the client after obtaining the target resource, reducing the loading time of the animation materials, improving the smoothness of the animation material display, and improving the user interaction experience.
[0096] Next, in combination with Figure 6 the resource acquisition of the present disclosure will be further described.
[0097] Figure 6 is a schematic diagram of resource acquisition according to an embodiment of the present disclosure.
[0098] As Figure 6 shown, the server 620 may be configured with a first cloud platform 621 and a second cloud platform 622. Among them, the cloud users of the server 620 can upload the animation materials related to the promotion activity and the corresponding activity identifier to the first cloud platform 621 in advance, and upload the activity configuration information of the promotion activity to the second cloud platform 622 in advance. The client 610 can directly perform data transmission with the first cloud platform 621, and obtain the animation materials and activity identifier corresponding to the promotion activity from the first cloud platform 621. For example, in response to the user's refresh operation, the client pulls the animation materials from the first cloud platform 621.
[0099] The second cloud platform 622 is configured with activity configuration information. After receiving the resource acquisition request, the server 620 can determine the activity resource corresponding to the activity identifier from the second cloud platform 622 as the target resource according to the activity identifier in the resource acquisition request, and determine whether to send the target resource to the client 610 according to the activity time range and activity object range in the activity configuration information.
[0100] Figure 7 is a schematic diagram of activity configuration information according to an embodiment of the present disclosure.
[0101] In the embodiment of the present disclosure, the activity configuration information may include an activity identifier, an activity time range, and an activity object range. As Figure 7 shown, for example, the activity configuration information 710 may include the activity identifier "Activity 1", the activity time range corresponding to Activity 1 is from November 1st to November 11th, and the activity object range corresponding to Activity 1 is user group A.
[0102] In an embodiment of the present disclosure, the active configuration information 710 may further include specific information of resources for display on the client. For example, it may include information such as the activity name, preset image, jump link, avatar of the activity initiator, display copywriting, default copywriting, etc., as well as playback parameters such as loop points. The loop point may refer to the starting point of the loop playback of the animation materials.
[0103] In an embodiment of the present disclosure, the preset image refers to a static image displayed in the area where the animation materials are played when a playback error occurs in the player. The jump link may refer to the link that the user jumps to after performing a click operation on the card.
[0104] Figure 8 It is a flowchart of a resource recommendation method according to another embodiment of the present disclosure.
[0105] As Figure 8 shown, the resource recommendation method of this embodiment includes operations 801 - 804.
[0106] In operation 801, the client 810 sends a resource acquisition request to the server 820.
[0107] In an embodiment of the present disclosure, the client 810 may be the client 610 described above, and the server 820 may refer to the server 620 described above.
[0108] In operation 802, the server 820 determines whether the animation material readiness flag is a preset threshold. If the animation material readiness flag is the preset threshold, operation 803 is executed. If the animation material readiness flag is not the preset threshold, the operation ends.
[0109] For example, the animation material readiness flag can be set to 1 or 0, where the preset threshold is greater than or equal to 1. If the animation material readiness flag is 1, it means that the client 810 has acquired and loaded the animation materials. If the animation material readiness flag is 0, it means that the client 810 has not acquired the animation materials and there is no need to send the target resources to the client 810.
[0110] In operation 803, the server 820 determines whether the client 810 belongs to the activity object range and whether the target time belongs to the activity time range. If both of the above conditions are met, operation 804 is executed. If at least one of the above conditions is not met, the operation ends.
[0111] In operation 804, the server 820 sends the target resources to the client 810 at the target time.
[0112] In an embodiment of the present disclosure, determining the sending time of the target resource according to the activity configuration information includes: determining the target time as the sending time in response to the client belonging to the scope of the activity object and the target time belonging to the activity time range.
[0113] The sending time refers to the sending time when the server 820 sends the target resource to the client 810. After the server obtains the target resource related to the promotion activity, it is necessary to determine whether to send the target resource to the client 810 according to the activity time range and the activity object range. When both the activity time range and the activity object range are satisfied, the target time is determined as the sending time, and the target resource is sent to the client 810 for display at the sending time.
[0114] In an embodiment of the present disclosure, the activity readiness information includes an activity identifier and an animation material readiness identifier; sending the target resource according to the activity readiness information and the activity configuration information includes: in response to the activity identifier in the activity readiness information being consistent with the activity identifier in the activity configuration information, and the animation material readiness identifier in the activity readiness information being a preset threshold, determining the sending time of the target resource according to the activity configuration information; and sending the target resource in response to the arrival of the sending time.
[0115] For example, the sending time may be the current time. When the activity identifier in the activity readiness information is consistent with the activity identifier in the activity configuration information, and both the activity time range and the activity object range are satisfied at the same time, the target resource can be sent to the client 810 for display.
[0116] According to an embodiment of the present disclosure, by determining the sending time of the target resource and performing an animation material display of a double list on the client, a breakthrough upgrade of the feed information flow can be achieved, improving the visual effect experience of users, and it can be applied to the reporting and display of new hot events and activities, enhancing the atmosphere rendering effect of the animation materials.
[0117] According to an embodiment of the present disclosure, the present disclosure also provides a resource display device.
[0118] Figure 9 It is a block diagram of a resource display device according to an embodiment of the present disclosure.
[0119] As Figure 9 shown, the resource display device 900 of this embodiment includes a request sending module 910, a resource receiving module 920, and a display module 930.
[0120] The request sending module 910 is configured to send a resource acquisition request including activity readiness information to the server in response to obtaining the animation materials set for the promotion activity of the resource from the server.
[0121] The resource receiving module 920 is used to receive the target resource sent by the server, where the target resource is determined by the server according to the activity readiness information.
[0122] The display module 930 is used to display the target resource and the animation materials.
[0123] In an embodiment of the present disclosure, the display module 930 includes a display sub-module and a control sub-module. The display sub-module is used to display the target resource in a double-list form and display the animation materials in the target resources of each list. The control sub-module is used to control the playback states of the animation materials in the double-list to be consistent.
[0124] In an embodiment of the present disclosure, the animation materials in the double-list are played by a first player and a second player respectively. The control sub-module includes a receiving unit, an instruction generating unit, and a sending unit.
[0125] The receiving unit is used to receive the status information sent by the first player and the second player respectively. The instruction generating unit is used to generate an adjustment instruction according to the status priority in response to the inconsistency between the status information of the first player and the status information of the second player. The sending unit is used to send the adjustment instruction to at least one of the first player and the second player.
[0126] In an embodiment of the present disclosure, the status includes at least one of the playback progress, pause, and playback error; the priorities of pause and playback error are higher than the playback progress. The instruction generating unit includes a first generating sub-unit and a second generating sub-unit.
[0127] The first generating sub-unit is used to generate an adjustment instruction for adjusting the playback progress in response to the difference between the playback progress of the first player and the playback progress of the second player being greater than a predetermined duration. The second generating sub-unit is used to generate an adjustment instruction for instructing to pause or display a preset image in response to the status of any one of the players being pause or playback error.
[0128] In an embodiment of the present disclosure, the animation materials include multiple videos. The display sub-module includes a display unit, which is used to display two different videos in two target resources located in different lists.
[0129] In an embodiment of the present disclosure, the activity readiness information includes an activity identifier and an animation material readiness identifier. The target resource is determined by the server when the activity identifier in the activity readiness information is consistent with the activity identifier in the activity configuration information and the animation material readiness identifier is a preset threshold, according to the activity configuration information.
[0130] In an embodiment of the present disclosure, the activity configuration information includes an activity time range and an activity object range; the target resource is sent by the server at the target moment when the client belongs to the activity object range and the target moment belongs to the activity time range.
[0131] Figure 10 It is a block diagram of a resource recommendation device according to an embodiment of the present disclosure.
[0132] As Figure 10 shown, the resource recommendation device 1000 includes a request receiving module 1010, a resource determination module 1020, and a resource sending module 1030.
[0133] The request receiving module 1010 is configured to receive a resource acquisition request from a client. Among them, the resource acquisition request includes activity readiness information, and the activity readiness information is generated by the client in response to the animation materials set for the promotion activity obtained from the server.
[0134] The resource determination module 1020 is configured to determine the target resource and the activity configuration information of the target resource according to the activity readiness information.
[0135] The resource sending module 1030 is configured to send the target resource according to the activity readiness information and the activity configuration information.
[0136] In an embodiment of the present disclosure, the activity readiness information includes an activity identifier and an animation material readiness identifier. The resource sending module 1030 includes a time determination sub-module and a sending sub-module.
[0137] The time determination sub-module is configured to, in response to the activity identifier in the activity readiness information being consistent with the activity identifier in the activity configuration information, and the animation material readiness identifier in the activity readiness information being a preset threshold, determine the distribution time of the target resource according to the activity configuration information. The sending sub-module is configured to send the target resource in response to the arrival of the distribution time.
[0138] In an embodiment of the present disclosure, the activity configuration information includes an activity time range and an activity object range. The time determination sub-module includes a time determination unit, which is configured to determine the target moment as the distribution time in response to the client belonging to the activity object range and the target moment belonging to the activity time range.
[0139] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0140] Figure 11A block diagram of an electronic device for a resource display method and a resource recommendation method according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0141] As Figure 11 shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0142] A plurality of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disc, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0143] The computing unit 1101 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1101 executes the various methods and processes described above, such as the resource display method and the resource recommendation method. For example, in some embodiments, the resource display method and the resource recommendation method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 1108. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the resource display method and the resource recommendation method described above can be executed. Alternatively, in other embodiments, the computing unit 1101 can be configured to execute the resource display method and the resource recommendation method in any other suitable manner (e.g., by means of firmware).
[0144] Various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, the programmable processor can be a special or general programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0145] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0146] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0147] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).
[0148] The systems and techniques described herein can be implemented in a computing system that includes a back-end component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of a communication network include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0149] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship to each other.
[0150] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0151] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A resource display method, comprising: Responding to obtaining dynamic effect materials for a promotion activity of a resource from a server, sending a resource acquisition request containing activity readiness information to the server; Receiving the target resource sent by the server, where the target resource is determined by the server according to the activity readiness information; And Displaying the target resource and the dynamic effect materials.
2. The method according to claim 1, wherein The displaying the target resource and the dynamic effect materials includes: Displaying the target resource in a double - list form and displaying the dynamic effect materials in the target resources of each list; and Controlling the playing states of the dynamic effect materials in the double - list to be consistent.
3. The method according to claim 2, wherein, The dynamic effect materials in the double - list are played by a first player and a second player respectively; The controlling the playing states of the dynamic effect materials in the double - list to be consistent includes: Receiving the status information sent by the first player and the second player respectively; Responding to the inconsistency between the status information of the first player and the status information of the second player, generating an adjustment instruction according to the status priority; and Sending the adjustment instruction to at least one of the first player and the second player.
4. The method according to claim 3, wherein The status includes at least one of playing progress, pause, and playing error; the priorities of pause and playing error are higher than the playing progress; The responding to the inconsistency between the status information of the first player and the status information of the second player, generating an adjustment instruction according to the status priority includes: Responding to the difference in playing progress between the first player and the second player being greater than a predetermined duration, generating an adjustment instruction for adjusting the playing progress; Responding to the status of any one of the players being pause or playing error, generating an adjustment instruction for indicating pause or displaying a preset image.
5. The method according to claim 2, wherein, The dynamic effect materials include multiple videos; The displaying the target resource in a double - list form and displaying the dynamic effect materials in the target resources of each list includes: Displaying two different videos in two target resources located in different lists.
6. The method according to claim 1, wherein The activity readiness information includes an activity identifier and a dynamic effect material readiness identifier. The target resource is determined by the server when the activity identifier in the activity readiness information is consistent with the activity identifier in the activity configuration information, and the dynamic effect material readiness identifier is a preset threshold, according to the activity configuration information.
7. The method according to claim 6, wherein The activity configuration information includes an activity time range and an activity object range; the target resource is sent by the server at the target moment when the client belongs to the activity object range and the target moment belongs to the activity time range.
8. A resource recommendation method, comprising: Receiving a resource acquisition request from a client, where the resource acquisition request includes activity readiness information, and the activity readiness information is generated by the client in response to obtaining dynamic effect materials for a promotion activity of a resource from a server; Determining the target resource and the activity configuration information of the target resource according to the activity readiness information; and Sending the target resource according to the activity readiness information and the activity configuration information.
9. The method according to claim 8, wherein, The activity readiness information includes an activity identifier and an animation material readiness identifier; The sending of the target resource according to the activity readiness information and the activity configuration information includes: In response to the activity identifier in the activity readiness information being consistent with the activity identifier in the activity configuration information, and the animation material readiness identifier in the activity readiness information being a preset threshold, determining the sending time of the target resource according to the activity configuration information; and In response to the arrival of the sending time, sending the target resource.
10. The method according to claim 9, wherein, The activity configuration information includes an activity time range and an activity object range; the determining of the sending time of the target resource according to the activity configuration information includes: In response to the client belonging to the activity object range and the target time belonging to the activity time range, determining the target time as the sending time.
11. A resource display device, comprising: A request sending module, configured to send a resource acquisition request including activity readiness information to the server in response to obtaining animation materials set for a promotion activity of a resource from the server; A resource receiving module, configured to receive the target resource sent by the server, where the target resource is determined by the server according to the activity readiness information; And A display module, configured to display the target resource and the animation materials.
12. A resource recommendation device, comprising: A request receiving module, configured to receive a resource acquisition request from a client, where the resource acquisition request includes activity readiness information, and the activity readiness information is generated by the client in response to obtaining animation materials set for a promotion activity of a resource from the server; A resource determination module, configured to determine a target resource and the activity configuration information of the target resource according to the activity readiness information; and A resource sending module, configured to send the target resource according to the activity readiness information and the activity configuration information.
13. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method according to any one of claims 1 to 10.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 10.
15. A computer program product, comprising a computer program, where the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.