Information recommendation method and device, electronic equipment and storage medium
By obtaining and playing multiple picture materials and audio materials on the short video platform, the complexity problem of advertisers in producing short videos is solved, efficient information recommendation and product display are achieved, and product competitiveness and user experience are enhanced.
Patent Information
- Application Number
- CN202510171021.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, advertisers need to produce short videos to place product advertisements on short video platforms, which has a complicated process and low output efficiency.
By obtaining multiple picture materials and audio materials for product information to be recommended, in the process of playing short videos, the scroll view and the audio player play the picture materials and audio materials simultaneously, so as to realize the display of product details in the form of multiple pictures combined with audio.
It simplifies the processing process of information recommendation, improves the efficiency of information recommendation, enhances the visual and auditory attractiveness of product information, and improves the competitiveness and conversion rate of product.
Smart Images

Figure CN120336556A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technologies, and particularly to an information recommendation method, apparatus, electronic device, and storage medium. Background Art
[0002] With the rapid development of Internet technologies, users increasingly rely on obtaining various information through the network. To meet user needs, various media platforms have emerged, especially short video platforms, which are increasingly popular among users. At the same time, with the rapid development of the advertising industry, a large number of advertisers want to take advantage of the large user base of short video platforms and attract more users by placing advertisements on short video platforms, thereby increasing the popularity and sales of their own products or services.
[0003] In the current technology, in order to implement advertisement placement on short video platforms, advertisers need to produce product advertisements into short videos and then place the product advertisements in the form of short videos on short video platforms. The short video platforms can recommend the product advertisements in the form of short videos to users. However, this method requires separately producing short videos for product advertisements, the processing process is complex, and the output efficiency of product advertisements is low. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to provide an information recommendation method, apparatus, electronic device, and storage medium to simplify the processing process of information recommendation and improve the efficiency of information recommendation. The specific technical solutions are as follows:
[0005] In the first aspect of the present invention, first, an information recommendation method is provided, which is applied to a client. The method includes:
[0006] Obtain a list of recommended content, where any one of the recommended content is a short video or product information to be recommended;
[0007] During the process of rotating and playing the recommended content, when the product information to be recommended is rotated to, obtain multiple picture materials and audio materials corresponding to the product information to be recommended;
[0008] Play the multiple picture materials and simultaneously play the audio materials.
[0009] Optionally, the playing the multiple picture materials and simultaneously playing the audio materials includes:
[0010] Create a scroll view and multiple picture controls, and create an audio player; the number of the picture materials is the same as the number of the picture controls;
[0011] Use the scroll view and the multiple picture controls to play the multiple picture materials and simultaneously use the audio player to play the audio materials.
[0012] Optionally, playing the multiple picture materials by using the scroll view and the multiple picture controls includes:
[0013] Setting the picture attributes of each of the picture controls; the picture attributes are used to indicate the picture materials to be displayed in the picture controls;
[0014] Setting the paging enabled attribute of the scroll view to be enabled, setting the content offset attribute of the scroll view to the total distance scrolled by the multiple picture controls, and adding the multiple picture controls as subviews of the scroll view to the scroll view;
[0015] Playing the multiple picture materials in pages by using the scroll view according to a preset picture switching method.
[0016] Optionally, the to-be-recommended product information further includes a picture switching time interval; playing the multiple picture materials in pages by using the scroll view according to a preset picture switching method includes: triggering a first scroll event according to the picture switching time interval, so that after receiving the first scroll event, the scroll view switches from the currently played picture material to the next picture material of the currently played picture material.
[0017] Optionally, playing the multiple picture materials in pages by using the scroll view according to a preset picture switching method includes:
[0018] After receiving a screen sliding operation, obtaining the sliding offset and sliding direction corresponding to the screen sliding operation;
[0019] When the sliding offset is greater than a preset threshold, triggering a second scroll event including the sliding direction, so that after receiving the second scroll event, the scroll view switches from the currently played picture material to the adjacent picture material corresponding to the currently played picture material in the sliding direction.
[0020] Optionally, the method further includes: preloading the next recommended content of the current recommended content when playing the current recommended content.
[0021] In a second aspect of the implementation of the present invention, there is also provided an information recommendation device, which is applied to a client, and the device includes:
[0022] A first obtaining module, configured to obtain a list of recommended contents, and any one of the recommended contents is a short video or to-be-recommended product information;
[0023] A second obtaining module, configured to obtain multiple picture materials and audio materials corresponding to the to-be-recommended product information when rotating to the to-be-recommended product information during the process of rotating and playing the recommended contents;
[0024] A playback module, configured to play the multiple picture materials and play the audio material simultaneously.
[0025] Optionally, the playback module includes:
[0026] A creation unit, configured to create a scroll view and a plurality of picture controls, and create an audio player; the number of the picture materials is the same as that of the picture controls;
[0027] A material playback unit, configured to play the multiple picture materials by using the scroll view and the plurality of picture controls, and play the audio material by using the audio player simultaneously.
[0028] Optionally, the material playback unit includes:
[0029] A first setting subunit, configured to set the picture attributes of each of the picture controls; the picture attributes are used to indicate the picture materials to be displayed in the picture controls;
[0030] A second setting subunit, configured to set the paging enabled attribute of the scroll view to be enabled, set the content offset attribute of the scroll view to the total distance of scrolling of the plurality of picture controls, and add the plurality of picture controls as subviews of the scroll view to the scroll view;
[0031] A picture playback subunit, configured to play the multiple picture materials page by page by using the scroll view according to a preset picture switching manner.
[0032] Optionally, the product information to be recommended further includes a picture switching time interval; the picture playback subunit is specifically configured to trigger a first scroll event according to the picture switching time interval, so that after receiving the first scroll event, the scroll view switches from the currently played picture material to the next picture material of the currently played picture material.
[0033] Optionally, the picture playback subunit is specifically configured to, after receiving a screen sliding operation, obtain a sliding offset and a sliding direction corresponding to the screen sliding operation; when the sliding offset is greater than a preset threshold, trigger a second scroll event including the sliding direction, so that after receiving the second scroll event, the scroll view switches from the currently played picture material to an adjacent picture material corresponding to the currently played picture material in the sliding direction.
[0034] Optionally, the device further includes: a preloading module, configured to preload the next recommended content of the current recommended content when playing the current recommended content.
[0035] In yet another aspect of the implementation of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; the memory is used for storing a computer program; the processor is used for implementing the information recommendation method described in any one of the above when executing the program stored on the memory.
[0036] In yet another aspect of the implementation of the present invention, there is also provided a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is enabled to implement the information recommendation method described in any one of the above.
[0037] In yet another aspect of the implementation of the present invention, there is also provided a computer program product, on which a computer program is stored. When the computer program runs on a computer, the computer is enabled to implement the information recommendation method described in any one of the above.
[0038] For advertisers, the information recommendation method, device, electronic device, and storage medium provided by the embodiments of the present invention do not require making the product information to be recommended into a short video for placement. Instead, simply placing multiple picture materials and audio materials corresponding to the product information to be recommended is sufficient. On the client side, during the process of rotating and playing recommended content in the form of a short video or product information to be recommended, when rotating to the product information to be recommended, obtain multiple picture materials and audio materials corresponding to the product information to be recommended, play the multiple picture materials, and simultaneously play the audio materials, so as to realize the interspersed playback of the product information to be recommended during the rotation and playback of the short video. This method comprehensively displays the details of the product in the form of combining multiple pictures with audio, the processing process is more convenient, can improve the efficiency of information recommendation, and expands the form of product information recommendation, enabling users to understand the product information in a shorter time, enhancing the visual and auditory attraction of the product information, and thus improving the competitiveness and conversion rate of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art.
[0040] Figure 1 It is a flowchart of the steps of an information recommendation method in an embodiment of the present invention.
[0041] Figure 2 It is a schematic diagram of an information recommendation process in an embodiment of the present invention.
[0042] Figure 3 It is a structural block diagram of an information recommendation device in an embodiment of the present invention.
[0043] Figure 4 It is a structural block diagram of an electronic device in an embodiment of the present invention. Specific implementation manners
[0044] Next, the technical solutions in the embodiments of the present invention will be described with reference to the accompanying drawings in the embodiments of the present invention.
[0045] The information recommendation method in the embodiment of the present invention can be applied to a client. Among them, the client can specifically be the client in a short video platform, and this client can be installed on a user device, and the user can play short videos through this client. In implementation, the client can be an APP (Application), a small program, and so on.
[0046] Figure 1 It is a step flow chart of an information recommendation method in an embodiment of the present invention.
[0047] As Figure 1 shown, the information recommendation method may include the following steps:
[0048] Step 101, obtain a list of recommended content, and any one of the recommended content is short video or product information to be recommended.
[0049] In order to implement product information recommendation, an advertiser needs to deliver product information to be recommended corresponding to the product to be recommended to a delivery platform for advertising.
[0050] In the embodiment of the present invention, since product information recommendation is to be carried out in the form of combining multiple pictures with audio, therefore, the product information to be recommended corresponding to the product to be recommended delivered by the advertiser to the delivery platform may include multiple picture materials and audio materials. The above-mentioned multiple picture materials and audio materials are used to introduce the product information to be recommended.
[0051] For the above-mentioned multiple picture materials, different picture materials can be used to introduce different features of the product to be recommended, so as to be able to comprehensively understand the product to be recommended through multiple picture materials.
[0052] For the above-mentioned audio materials, since the product information to be recommended will be played between short videos, some audio materials need to be configured for the product to be recommended to ensure the continuity of the user experience and not make the user feel interrupted. And high-quality audio can also more accurately introduce the product to be recommended, so as to better capture the user's attention and make it focus on the introduction of the product to be recommended. In the embodiment of the present invention, the audio materials can be audio made by the advertiser for the product to be recommended, supporting the above-mentioned multiple picture materials for introducing the product to be recommended, or reference audio provided by the delivery platform, and so on. Specifically, it can be processed according to actual needs, and this embodiment does not limit this.
[0053] Of course, the information of the product to be recommended corresponding to the product to be recommended by the advertiser to the placement platform may also include some other information, such as the title, the promotional text, the landing page address, and so on. The embodiments of the present invention do not limit this.
[0054] The server in the short video platform can obtain the information of the product to be recommended corresponding to the product to be recommended by the advertiser from the placement platform. Then, when recommending short videos to the client in the short video platform, the information of the product to be recommended corresponding to the product to be recommended can be interspersed into the short videos and recommended to the client.
[0055] When the user plays a short video using the client in the short video platform on the user device, the server in the short video platform can generate a list of recommended content through operations such as recall and sorting, and return the list of recommended content to the client. The list of recommended content may include information related to the recommended content, such as the unique identifier, the link address, the content type, and other information of the recommended content. Among them, the content type may be a short video or the information of the product to be recommended, that is, any of the recommended content may be a short video or the information of the product to be recommended, so as to achieve interspersing the information of the product to be recommended corresponding to the product to be recommended between short videos when recommending short videos to the client.
[0056] Step 102, during the process of rotating and playing the recommended content, when rotating to the information of the product to be recommended, obtain multiple picture materials and audio materials corresponding to the information of the product to be recommended.
[0057] After obtaining the list of recommended content, the client can rotate and play the recommended content in the list of recommended content according to the list.
[0058] During the process of the client rotating and playing the recommended content, when rotating to a certain recommended content, the client can determine whether the recommended content is a short video or the information of the product to be recommended according to the content type of the recommended content. When the rotated recommended content is the information of the product to be recommended, according to the unique identifier of the information of the product to be recommended, it can be known which information of the product to be recommended is rotated to, so as to obtain multiple picture materials and audio materials corresponding to the information of the product to be recommended.
[0059] In an alternative embodiment, when the client rotates to the product information to be recommended, it can obtain multiple picture materials and audio materials corresponding to the product information to be recommended from the server or the placement platform, so that there is no need to cache multiple picture materials and audio materials corresponding to the product information to be recommended in the client in advance, reducing the occupation of client resources. For example, the client can send a material acquisition request to the server or the placement platform, and the material acquisition request can carry information such as the unique identifier and link address of the product information to be recommended. After receiving the material acquisition request, the server or the placement platform queries multiple picture materials and audio materials corresponding to the product information to be recommended according to the unique identifier and link address of the product information to be recommended, and returns the multiple picture materials and audio materials corresponding to the product information to be recommended to the client.
[0060] In an alternative embodiment, during the process of the client rotating and playing the recommended content, when playing the current recommended content, it can preload the next recommended content of the current recommended content, so as to load the resources of the next recommended content into the cache of the client in advance, so that the resources can be loaded more quickly when playing the next recommended content, ensuring the smoothness of the play.
[0061] For example, if the next recommended content of the current recommended content is the product information to be recommended, multiple picture materials and audio materials corresponding to the product information to be recommended can be preloaded, and multiple picture materials and audio materials corresponding to the product information to be recommended are loaded into the cache of the client in advance. Therefore, when rotating to the product information to be recommended, multiple picture materials and audio materials corresponding to the product information to be recommended can be obtained from the cache of the client, thereby increasing the loading speed of the product information to be recommended and playing the product information to be recommended more quickly. Among them, the process of the client preloading multiple picture materials and audio materials corresponding to the product information to be recommended is the same as the process of the client obtaining multiple picture materials and audio materials corresponding to the product information to be recommended from the server or the placement platform above, and will not be elaborated in detail here.
[0062] Step 103: Play the multiple picture materials and play the audio materials simultaneously.
[0063] After the client obtains multiple picture materials and audio materials corresponding to the product information to be recommended, it plays the multiple picture materials and plays the audio materials simultaneously, thereby realizing the playback of the product information to be recommended in the form of combining multiple pictures with audio.
[0064] In an alternative embodiment, the process of playing the multiple picture materials and simultaneously playing the audio material may include: creating a scroll view and multiple picture controls, and creating an audio player, where the number of the picture materials is the same as the number of the picture controls; playing the multiple picture materials by using the scroll view and the multiple picture controls, and simultaneously playing the audio material by using the audio player.
[0065] A ScrollView is a UI (User Interface) control, which refers to a view that can be scrolled freely, and picture controls can be placed in the scroll view. An ImageView is a control used to display pictures. Therefore, by combining the scroll view with multiple picture controls, playing the multiple picture materials can be achieved.
[0066] Exemplarily, the process of playing the multiple picture materials by using the scroll view and the multiple picture controls may include the following steps A1 to A3:
[0067] Step A1, setting the picture attribute of each of the picture controls; the picture attribute is used to indicate the picture material to be displayed in the picture control.
[0068] In the embodiment of the present invention, for a picture control, since multiple picture controls are created and each picture control is used to display one picture material among the multiple picture materials, the picture (image) attribute of each of the picture controls can be set. The picture attribute is used to indicate the picture material to be displayed in the picture control, so that the picture control can display the picture material indicated by the picture attribute according to its own picture attribute.
[0069] For example, the picture (image) attribute of the picture control can be set to information such as the name or unique identifier of the picture material to be displayed in the picture control.
[0070] Of course, in implementation, other attributes of the picture control can also be set, such as width, height, etc. Among them, the width can be set to the screen width of the user device, etc., and the height can be set according to actual requirements.
[0071] Step A2, setting the paging enabled attribute of the scroll view to enabled, setting the content offset attribute of the scroll view to the total distance that the multiple picture controls scroll, and adding the multiple picture controls as subviews of the scroll view to the scroll view.
[0072] In an embodiment of the present invention, for a scroll view, in order to implement paged playback of the multiple picture materials, the paging enabled property (isPagingEnabled) of the scroll view can be set to enabled (true), and the content offset property (contentOffset) of the scroll view can be set to the total distance that the multiple picture controls scroll. The multiple picture controls are added as subviews of the scroll view to the scroll view, so as to enable the paging effect of the scroll view. The paging effect of the scroll view means that the scroll view will scroll the distance of one subview (i.e., one picture control) each time, so that one subview will be completely displayed each time it scrolls.
[0073] Among them, if the scroll view is set to scroll horizontally, the total distance that the multiple picture controls scroll can refer to the sum of the widths of the multiple picture controls. If the scroll view is set to scroll vertically, the total distance that the multiple picture controls scroll can refer to the sum of the heights of the multiple picture controls.
[0074] For example, the scroll view is set to scroll horizontally, and there are a total of 2 picture materials. Accordingly, 2 picture controls are created, and the width of each picture control is the screen width. For example, the screen width is 414 pixels. Therefore, the contentOffset of the scroll view can be set to 414×2 = 828 pixels.
[0075] Step A3, use the scroll view to play the multiple picture materials in a paged manner according to a preset picture switching method.
[0076] In an embodiment of the present invention, the picture switching method can be set according to actual needs. For example, the method of automatically switching pictures, the method of the user swiping the screen to switch pictures, etc. This embodiment does not limit this.
[0077] In an alternative embodiment, the scroll view can be used to play the multiple picture materials in a paged manner according to the method of automatically switching pictures.
[0078] In this method, the advertiser can set the picture switching time interval, so the product information to be recommended can also include the picture switching time interval. For the specific value of the picture switching time interval, it can be set according to actual needs, and this embodiment of the present invention does not limit this.
[0079] Exemplarily, the process of using the scroll view to play the multiple picture materials in a paged manner according to a preset picture switching method can include: triggering a first scroll event according to the picture switching time interval, so that after receiving the first scroll event, the scroll view switches from the currently played picture material to the next picture material of the current picture material.
[0080] In an embodiment of the present invention, a timer can be used to time, so as to trigger a first scrolling event when the timing reaches the picture switching time interval. After receiving the first scrolling event, the scroll view performs a scrolling operation to switch from the currently played picture material to the next picture material of the currently played picture material.
[0081] In an alternative embodiment, the scroll view can be used to play the multiple picture materials page by page in the way that the user swipes the screen to switch pictures.
[0082] Exemplarily, the process of using the scroll view to play the multiple picture materials page by page according to a preset picture switching method may include: after receiving a screen swiping operation, obtaining a swipe offset and a swipe direction corresponding to the screen swiping operation; when the swipe offset is greater than a preset threshold, triggering a second scrolling event including the swipe direction, so that after receiving the second scrolling event, the scroll view switches from the currently played picture material to an adjacent picture material corresponding to the currently played picture material in the swipe direction.
[0083] For the adjacent picture material corresponding to the currently played picture material in the swipe direction, when the swipe direction is a left swipe, the adjacent picture material corresponding to the currently played picture material in the swipe direction is the next picture material of the currently played picture material; when the swipe direction is a right swipe, the adjacent picture material corresponding to the currently played picture material in the swipe direction is the previous picture material of the currently played picture material.
[0084] For the specific value of the preset threshold, it can be set according to actual experience, and this embodiment does not limit it. For example, the swipe offset of a common page turning operation can be set as the preset threshold, and so on. For example, if the preset threshold is set to 1 / 5 of the screen width and the screen width is 414 pixels, then the preset threshold is 82.8 pixels.
[0085] In an embodiment of the present invention, a switching icon can also be displayed below the picture material, and the switching icon is used to provide visual guidance to the user to guide the user to switch the picture material by swiping the screen.
[0086] While the client renders and displays multiple picture materials, the audio material is played by using an audio player (AVAudioPlayer) at the same time, so as to realize playing the product information to be recommended in the way of combining pictures with audio.
[0087] In the embodiments of the present invention, for advertisers, there is no need to produce short videos for the product information to be recommended and put them on the market. Instead, simply putting multiple picture materials and audio materials corresponding to the product information to be recommended is sufficient. On the client side, during the process of rotating and playing recommended content in the form of short videos or product information to be recommended, when it rotates to the product information to be recommended, obtain multiple picture materials and audio materials corresponding to the product information to be recommended, play the multiple picture materials, and at the same time play the audio materials, then it can realize the interspersed playback of the product information to be recommended during the rotation and playback of short videos. This method comprehensively displays the details of the product in the form of combining multiple pictures with audio. The processing process is more convenient, which can improve the efficiency of information recommendation, and expands the form of product information recommendation, enabling users to understand the product information in a shorter time, enhancing the visual and auditory attractiveness of the product information, and thus improving the competitiveness and conversion rate of the product.
[0088] Figure 2 It is a schematic diagram of an information recommendation process in the embodiments of the present invention. Figure 2 The information recommendation process shown is introduced by taking advertisement recommendation as an example.
[0089] As Figure 2 shown, the information recommendation process may include:
[0090] The first part: Placement
[0091] The advertiser configures the advertisement information to be recommended corresponding to the advertisement (that is, the above-mentioned product information to be recommended). The advertisement information to be recommended includes but is not limited to multiple picture materials, audio materials, the time interval for picture switching, and other materials of the advertisement, and puts the advertisement on the placement platform. In this embodiment, it is illustrated by taking the multiple picture materials including picture material 1, picture material 2, and picture material 3 as an example.
[0092] The second part: Rendering and display
[0093] The client (APP) obtains the to-be-recommended advertisement information corresponding to the advertisement from the placement platform, and inserts the to-be-recommended advertisement information into the short video playback stream. Create a scroll view (UIScrollView), as well as image control 1 (UIImageView1), image control 2 (UIImageView2), and image control 3 (UIImageView3). Use image control 1 (UIImageView1) to display image material 1, use image control 2 (UIImageView2) to display image material 2, use image control 3 (UIImageView3) to display image material 3, and add image control 1 (UIImageView1), image control 2 (UIImageView2), and image control 3 (UIImageView3) to the scroll view (UIScrollView) to implement playing the multiple image materials using the scroll view (UIScrollView) and image control 1 (UIImageView1), image control 2 (UIImageView2), and image control 3 (UIImageView3); at the same time, create an audio player (AVAudioPlayer) and use the audio player (AVAudioPlayer) to play the audio material.
[0094] The embodiment of the present invention can effectively connect the short video playback scenario. In this scenario, the information flow advertisement combining multiple images and audio can comprehensively display the characteristics of the product, thereby triggering user click behavior and increasing the advertising revenue. At the same time, the information flow advertisement combining multiple images and audio also expands the form of the advertisement and can effectively improve the advertisement filling rate.
[0095] Figure 3 It is a structural block diagram of an information recommendation device in the embodiment of the present invention. Figure 3 The shown information recommendation device can be applied to the client.
[0096] As Figure 3 shown, the information recommendation device may include the following modules:
[0097] The first acquisition module 301 is used to acquire a list of recommended content, and any one of the recommended content is a short video or to-be-recommended product information;
[0098] The second acquisition module 302 is used to acquire multiple image materials and audio materials corresponding to the to-be-recommended product information when the to-be-recommended product information is rotated during the process of rotating and playing the recommended content;
[0099] The playback module 303 is used to play the multiple image materials and play the audio materials simultaneously.
[0100] Optionally, the playback module 303 includes:
[0101] A creation unit, configured to create a scroll view, a plurality of picture controls, and create an audio player; the number of picture materials is the same as the number of the picture controls;
[0102] A material playback unit, configured to play the multiple picture materials by using the scroll view and the plurality of picture controls, and simultaneously play the audio material by using the audio player.
[0103] Optionally, the material playback unit includes:
[0104] A first setting subunit, configured to set the picture attributes of each of the picture controls; the picture attributes are used to indicate the picture materials to be displayed in the picture controls;
[0105] A second setting subunit, configured to set the paging enabled attribute of the scroll view to enabled, set the content offset attribute of the scroll view to the total distance of scrolling of the plurality of picture controls, and add the plurality of picture controls as subviews of the scroll view to the scroll view;
[0106] A picture playback subunit, configured to play the multiple picture materials in a paged manner by using the scroll view according to a preset picture switching method.
[0107] Optionally, the product information to be recommended further includes a picture switching time interval; the picture playback subunit is specifically configured to trigger a first scrolling event according to the picture switching time interval, so that after receiving the first scrolling event, the scroll view switches from the currently played picture material to the next picture material of the currently played picture material.
[0108] Optionally, the picture playback subunit is specifically configured to, after receiving a screen sliding operation, obtain a sliding offset and a sliding direction corresponding to the screen sliding operation; when the sliding offset is greater than a preset threshold, trigger a second scrolling event including the sliding direction, so that after receiving the second scrolling event, the scroll view switches from the currently played picture material to an adjacent picture material corresponding to the currently played picture material in the sliding direction.
[0109] Optionally, the device further includes: a preloading module, configured to preload the next recommended content of the current recommended content when playing the current recommended content.
[0110] In the embodiments of the present invention, for an advertiser, there is no need to produce short videos for the product information to be recommended and put them on the market. Instead, simply putting on the market multiple picture materials and audio materials corresponding to the product information to be recommended is sufficient. On the client side, during the process of rotating and playing the recommended content in the form of short videos or product information to be recommended, when rotating to the product information to be recommended, obtain the multiple picture materials and audio materials corresponding to the product information to be recommended, play the multiple picture materials, and play the audio materials simultaneously, so as to realize the insertion of the product information to be recommended during the process of rotating and playing short videos. This method comprehensively displays the details of the product in the form of combining multiple pictures with audio, the processing process is more convenient, can improve the efficiency of information recommendation, and expands the form of product information recommendation, enabling users to understand the product information in a relatively short time, improving the visual and auditory attractiveness of the product information, and thus enhancing the competitiveness and conversion rate of the product.
[0111] The embodiments of the present invention also provide an electronic device, as Figure 4 shown, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404. Among them, the processor 401, the communication interface 402, and the memory 403 complete communication with each other through the communication bus 404.
[0112] The memory 403 is used to store computer programs;
[0113] When the processor 401 is used to execute the programs stored on the memory 403, the following steps are implemented:
[0114] Obtain a list of recommended content, and any one of the recommended content is a short video or product information to be recommended;
[0115] During the process of rotating and playing the recommended content, when rotating to the product information to be recommended, obtain the multiple picture materials and audio materials corresponding to the product information to be recommended;
[0116] Play the multiple picture materials and play the audio materials simultaneously.
[0117] Optionally, the step of playing the multiple picture materials and playing the audio materials simultaneously includes:
[0118] Create a scroll view and multiple picture controls, and create an audio player; the number of the picture materials is the same as the number of the picture controls;
[0119] Use the scroll view and the multiple picture controls to play the multiple picture materials, and use the audio player to play the audio materials simultaneously.
[0120] Optionally, the step of using the scroll view and the multiple picture controls to play the multiple picture materials includes:
[0121] Set the picture attributes of each of the said picture controls; the picture attributes are used to indicate the picture materials to be displayed in the picture controls.
[0122] Set the paging enabled attribute of the scroll view to enabled, and set the content offset attribute of the scroll view to the total distance scrolled by the multiple picture controls, and add the multiple picture controls as subviews of the scroll view to the scroll view.
[0123] Use the scroll view to play the multiple picture materials page by page according to a preset picture switching method.
[0124] Optionally, the product information to be recommended further includes a picture switching time interval; the using the scroll view to play the multiple picture materials page by page according to a preset picture switching method includes: triggering a first scroll event according to the picture switching time interval, so that after receiving the first scroll event, the scroll view switches from the currently played picture material to the next picture material of the current picture material.
[0125] Optionally, the using the scroll view to play the multiple picture materials page by page according to a preset picture switching method includes:
[0126] After receiving a screen sliding operation, obtain the sliding offset and sliding direction corresponding to the screen sliding operation;
[0127] When the sliding offset is greater than a preset threshold, trigger a second scroll event including the sliding direction, so that after receiving the second scroll event, the scroll view switches from the currently played picture material to the adjacent picture material corresponding to the current picture material in the sliding direction.
[0128] Optionally, the method further includes: when playing the current recommended content, preloading the next recommended content of the current recommended content.
[0129] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
[0130] The communication interface is used for communication between the above terminal and other devices.
[0131] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0132] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0133] In another embodiment provided by the present invention, there is also provided a computer-readable storage medium storing instructions, which, when running on a computer, cause the computer to implement the information recommendation method described in any one of the above embodiments.
[0134] In another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, cause the computer to implement the information recommendation method described in any one of the above embodiments.
[0135] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
[0136] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including the element.
[0137] Each embodiment in this specification is described in a related manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference can be made to the corresponding part of the method embodiment for the relevant content.
[0138] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are all included within the protection scope of the present invention.
Claims
1. An information recommendation method, characterized in that, Applied to a client, the method includes: Obtain a list of recommended content, where any one of the recommended content is a short video or product information to be recommended; During the process of rotating and playing the recommended content, when the product information to be recommended is rotated to, obtain multiple picture materials and audio materials corresponding to the product information to be recommended; Play the multiple picture materials and play the audio materials simultaneously.
2. The method according to claim 1, characterized in that, The step of playing the multiple picture materials and playing the audio materials simultaneously includes: Create a scroll view and multiple picture controls, and create an audio player; the number of the picture materials is the same as that of the picture controls; Use the scroll view and the multiple picture controls to play the multiple picture materials, and simultaneously use the audio player to play the audio materials.
3. The method according to claim 2, wherein The step of using the scroll view and the multiple picture controls to play the multiple picture materials includes: Set the picture attributes of each picture control; the picture attributes are used to indicate the picture materials to be displayed in the picture control; Set the paging enabled attribute of the scroll view to enabled, and set the content offset attribute of the scroll view to the total distance of the scrolling of the multiple picture controls, and add the multiple picture controls as subviews of the scroll view to the scroll view; Use the scroll view to play the multiple picture materials page by page according to a preset picture switching method.
4. The method according to claim 3, wherein The product information to be recommended further includes a picture switching time interval; the step of using the scroll view to play the multiple picture materials page by page according to a preset picture switching method includes: Trigger a first scroll event according to the picture switching time interval, so that after receiving the first scroll event, the scroll view switches from the currently played picture material to the next picture material of the current picture material.
5. The method according to claim 3, wherein The step of using the scroll view to play the multiple picture materials page by page according to a preset picture switching method includes: After receiving a screen sliding operation, obtain the sliding offset and sliding direction corresponding to the screen sliding operation; When the sliding offset is greater than a preset threshold, trigger a second scroll event including the sliding direction, so that after receiving the second scroll event, the scroll view switches from the currently played picture material to the adjacent picture material corresponding to the current picture material in the sliding direction.
6. The method according to claim 1, wherein The method further includes: When playing the current recommended content, preload the next recommended content of the current recommended content.
7. An information recommendation device, characterized in that, Applied to a client, the device includes: A first obtaining module, configured to obtain a list of recommended content, where any one of the recommended content is a short video or product information to be recommended; A second obtaining module, configured to obtain multiple picture materials and audio materials corresponding to the product information to be recommended when the product information to be recommended is rotated to during the process of rotating and playing the recommended content; A playing module, configured to play the multiple picture materials and play the audio materials simultaneously.
8. The device according to claim 7, characterized in that, The playing module includes: A creating unit, configured to create a scroll view and multiple picture controls, and create an audio player; the number of the picture materials is the same as that of the picture controls; The material playing unit is used to play the multiple picture materials by using the scroll view and the multiple picture controls, and simultaneously play the audio material by using the audio player.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1-6 when executing the program stored on the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by the processor, implements the method according to any one of claims 1-6.
11. A computer program product having a computer program stored thereon, characterized in that, When the computer program runs on a computer, the computer is caused to implement the method according to any one of claims 1-6.