Media file recommendation method and device
The recommendation function is triggered through the preset operation of the user specifying the number of times in the media playback page, and the recommendation prompt information, progress information and interactive floating layer provide options with different recommendation intensity, which solves the problems of low usage of recommendation functions and poor user interaction experience in the existing technology, and achieves more efficient recommendations and richer user interaction.
Patent Information
- Application Number
- CN202411579039.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-18
AI Technical Summary
In existing media playback services, the usage rate of recommendation functions is low, the user interaction experience is poor, and it is difficult to effectively recommend media files.
The recommendation function is triggered through the preset operation of the user specifying the number of times in the media playback page (such as multiple consecutive clicks), displaying recommendation prompt information and progress information, and providing recommendation options through interactive floating layers to achieve recommendations of different recommendation strengths.
It improves the trigger rate of recommendation functions and user interaction experience, simplifies user operations, provides more refined recommendation control and rich user interaction methods.
Smart Images

Figure CN119646288A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet application technology, and in particular to a method and device for recommending media files. Background Art
[0002] With the rapid development of the Internet and mobile communication technologies, media playback services for mobile terminals such as mobile phones and tablets have been widely used. For example, users can watch videos anytime and anywhere through long video playback applications and short video playback applications. In media playback services, the recommendation function is an important way for users to express their preferences for media files. Therefore, how to reasonably implement the recommendation function of media files and improve user experience has become an urgent problem to be solved. Summary of the invention
[0003] In view of this, the present application provides a method and device for recommending media files, so as to improve the utilization rate of the recommendation function and enrich the user interaction experience.
[0004] This application provides the following solutions:
[0005] In a first aspect, a method for recommending a media file is provided, the method comprising:
[0006] Display the media playback page that plays the media file;
[0007] In response to a preset operation specified by the user for a number of times in the media playback page, a recommendation of the media file is triggered in the media playback page; the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between the at least two click operations is less than a second preset value.
[0008] Optionally, in response to at least two preset operations of the user on the media playback page, triggering a recommendation of the media file on the media playback page includes:
[0009] In response to the user's first preset operation in the media playback page, displaying recommendation prompt information in the media playback page; the recommendation prompt information is used to prompt the user to continue to perform the preset operation to complete the recommendation of the media file;
[0010] In response to at least one preset operation of the user after the first preset operation in the media playback page, a recommendation of the media file is triggered in the media playback page.
[0011] Optionally, the method further comprises:
[0012] In response to the user's first preset operation in the media playback page, recommended progress information is displayed in the media playback page until the preset operation reaches the specified number of times.
[0013] Optionally, the recommended progress information includes: numbers and / or progress bars.
[0014] Optionally, the method further comprises:
[0015] In response to a first preset operation of the user in the media playback page, a like for the media file is triggered in the media playback page.
[0016] Optionally, after triggering the recommendation of the media file in the media playback page, the method further includes:
[0017] Displaying a page element for selecting a recommended object, wherein at least one target user is displayed on the page element;
[0018] In response to the operation of selecting the at least one target user, recommendation information is sent to the selected target user, where the recommendation information is used to represent a recommendation for the media file.
[0019] In a second aspect, a media file recommendation method is provided, the method comprising:
[0020] Displaying a media playing page playing a media file, wherein the media playing page includes preset components related to the media file;
[0021] In response to a first preset operation acting on the preset component, obtaining a duration of the first preset operation;
[0022] If the duration of the first preset operation exceeds a preset first duration, an interactive floating layer is displayed on the media playback page, and the interactive floating layer is used to trigger a recommendation for the media file.
[0023] Optionally, the interactive floating layer includes at least one recommendation option for indicating the strength of the recommendation;
[0024] In response to a second preset operation acting on one of the recommendation options, the media file is recommended according to a recommendation strength corresponding to the one of the recommendation options.
[0025] Optionally, the method further comprises:
[0026] In response to a second preset operation acting on one of the recommended options, a special effect corresponding to one of the recommended options is displayed on the media playback page.
[0027] Optionally, the interactive floating layer includes page elements corresponding to multiple functions, and the multiple functions include a recommended function and at least one non-recommended function;
[0028] In response to the duration of the first preset operation reaching a second duration, a function corresponding to the second duration is triggered in the media playback page; wherein the multiple functions correspond to different second durations, respectively, and the second duration is greater than the first duration.
[0029] Optionally, the page element includes information indicating a corresponding function and progress information indicating triggering of the corresponding function.
[0030] Optionally, the at least one non-recommendation function includes at least one of the following: collection, appreciation, and forwarding.
[0031] Optionally, after triggering the recommendation of the media file, the method further includes:
[0032] Displaying a page element for selecting a recommended object, wherein at least one target user is displayed on the page element;
[0033] In response to the operation of selecting the at least one target user, recommendation information is sent to the selected target user, where the recommendation information is used to represent a recommendation for the media file.
[0034] In a third aspect, a media file recommendation device is provided, the device comprising:
[0035] A first page display unit is configured to display a media playing page having a media file played;
[0036] A recommendation trigger unit is configured to trigger a recommendation for the media file in the media playback page in response to a preset operation performed by the user a specified number of times in the media playback page; the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between the at least two click operations is less than a second preset value.
[0037] In a fourth aspect, a media file recommendation device is provided, the device comprising:
[0038] A second page display unit is configured to display a media playing page playing a media file, wherein the media playing page includes preset components related to the media file;
[0039] a time acquisition unit, configured to acquire a duration of a first preset operation in response to a first preset operation acting on the preset component;
[0040] A floating layer display unit is configured to display an interactive floating layer on the media playback page if the duration of the first preset operation exceeds a preset first duration, wherein the interactive floating layer is used to trigger a recommendation for the media file.
[0041] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any one of the first aspect or the second aspect are implemented.
[0042] In a sixth aspect, an electronic device is provided, including:
[0043] one or more processors; and
[0044] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute steps of implementing the method described in any one of the first aspect or the second aspect.
[0045] In a seventh aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method described in any one of the first aspect or the second aspect.
[0046] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0047] 1) This application quickly triggers the recommendation function by having the user perform a preset operation a specified number of times on the media playback page. This method provides the user with a triggering path for the recommendation function, and implements the recommendation function for media files by multiple consecutive clicks (including double-clicks). This method does not require adding new components to the media playback page, and the implementation method is reasonable, which improves the user's interactive experience.
[0048] 2) This application further improves the user experience by displaying recommendation prompt information on the media playback page, prompting the user to continue to perform preset operations to complete the recommendation, giving the user sufficient operation guidance.
[0049] 3) This application provides users with intuitive feedback by displaying recommendation progress information, such as numbers and / or progress bars, thereby enhancing the intuitiveness and interactivity of the recommendation process.
[0050] 4) Since users usually have the need to like when recommending media files, this application associates the like function with the recommendation function, which is more in line with the user's interaction habits. Users do not need to trigger the like function with an additional component, which simplifies user operations.
[0051] 5) This application triggers the display of an interactive floating layer on the media playback page by long pressing a preset component, and provides a way to trigger the recommendation function through the interactive floating layer, thereby increasing the user's interactive experience.
[0052] 6) This application uses the recommendation options in the interactive floating layer to enable users to trigger recommendation functions of different recommendation strengths by triggering corresponding recommendation options, providing more refined recommendation control, meeting users' diverse recommendation needs, and further improving user experience.
[0053] 7) This application increases the interactivity and fun of the media playback page by displaying special effects corresponding to the recommended options, further improving the user experience.
[0054] 8) The present application also provides a mechanism for linking the recommendation function with other non-recommendation functions, that is, controlling the linkage between the recommendation function and other non-recommendation functions by the duration of the first preset operation, allowing users to trigger multiple functions through a single operation, simplifying user operations, and providing richer user interaction methods, further improving the user experience.
[0055] 9) This application can indicate the information of the corresponding function and the progress information of triggering the corresponding function during the linkage process of triggering the recommended function and other non-recommended functions, so as to prompt the user and give the user sufficient operation guidance, thereby further improving the user experience.
[0056] 10) After triggering the recommendation of a media file, the present application can display a page element for selecting a recommendation object to the user, so that the user can select a specific recommendation object in the page element, thereby achieving accurate and targeted recommendation.
[0057] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 is a system architecture diagram applicable to the embodiments of the present application;
[0060] Figure 2 A flow chart of a method for recommending a media file provided in an embodiment of the present application;
[0061] Figure 3 Provided for the embodiments of this application Figure 2 Flow chart of the specific implementation method of step 202;
[0062] Figure 4 A schematic diagram of each stage of triggering the recommendation of a media file provided in an embodiment of the present application;
[0063] Figure 5 A flow chart of another method for recommending media files provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of various stages of triggering the display of recommended options provided in an embodiment of the present application;
[0065] Figure 7 A schematic diagram of a vertical screen display for triggering the display of recommended options provided in an embodiment of the present application;
[0066] Figure 8 A schematic diagram of a horizontal screen display for triggering the display of recommended options provided in an embodiment of the present application;
[0067] Fig. 9 Schematic diagram of various stages of triggering and displaying recommended functions and non-recommended functions provided in the embodiment of the present application:
[0068] Fig.10 A schematic block diagram of a recommendation device provided in an embodiment of the present application;
[0069] Fig.11 A schematic block diagram of another recommendation device provided in an embodiment of the present application;
[0070] Fig.12 A schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0072] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0073] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0074] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0075] In order to facilitate the understanding of the present application, the system architecture on which the present application is based is first described. Figure 1 An exemplary system architecture to which the embodiments of the present application can be applied is shown. Figure 1 As shown in , the system architecture may include: a user end, a terminal device and a server end.
[0076] Among them, the user end is set on the terminal device. The user end involved in the embodiment of the present application can be a client, a small program running on the terminal device, or a Web application running through a browser, etc.
[0077] Terminal devices may include, but are not limited to, smart mobile terminals, wearable devices, PCs (Personal Computers), smart home devices, etc. Smart mobile devices may include, for example, mobile phones, tablet computers, laptops, PDAs (Personal Digital Assistants), Internet car terminals, etc. Wearable devices may include, for example, smart watches, smart glasses, smart bracelets, VR (Virtual Reality) devices, AR (Augmented Reality), mixed reality devices (i.e., devices that can support both virtual reality and augmented reality), etc. Smart home devices may include, for example, smart TVs, smart refrigerators with display screens, etc.
[0078] The client can interact with the server through the network, request and obtain media files from the server and play them. During the process of playing the media files, the user can recommend the media files through the media playback page displayed on the client.
[0079] The server side can be a platform that provides video playback services, a single server, a server group consisting of multiple servers, or a cloud server. A cloud server, also known as a cloud computing server or cloud host, is a host product in the cloud computing service system to solve the defects of difficult management and weak service scalability in traditional physical hosts and virtual private servers (VPS) services.
[0080] The server can use streaming to send the media file to the client, and the client plays the media file while downloading the media stream. It can also use progressive sending, that is, sending the media file to the client, and the client plays it after downloading the entire video file. In addition, other methods can be used to transmit the media file to the client, such as providing the media file based on CDN (Content Delivery Network) and transmitting it to the client.
[0081] As one of the achievable methods, the user end may request the media file from the server end, and the server end transmits the media file to the user end, and the user end recommends the media file using the method provided in the embodiment of the present application.
[0082] It should be understood that Figure 1 The number of user terminals, terminal devices and server terminals in the embodiment is only for illustration. Any number of user terminals, terminal devices and server terminals may be provided according to implementation requirements.
[0083] Due to the limited screen size of user terminals such as mobile phones, there are already some page elements on the media playback page, including functional components in the interactive area (such as like components, avatar components, comment components, favorite components, forwarding components, etc.), text components used to describe media files, etc. These page elements have already occupied a large area of the media playback page. Therefore, if additional functional components are added to trigger the recommendation function, it will further affect the user's viewing of media files. The implementation method is unreasonable and reduces the user experience.
[0084] In view of this, the present application provides a new approach to implement the recommendation of media files. Figure 2 A flow chart of a method for recommending media files provided in an embodiment of the present application. The method can be performed by Figure 1 The user side of the system shown is executed. Figure 2 As shown in , the method may include the following steps:
[0085] Step 201: Display a media playing page for playing a media file.
[0086] Step 202: In response to a preset operation performed by the user a specified number of times in the media playback page, a recommendation for a media file is triggered in the media playback page; wherein the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between at least two click operations is less than a second preset value.
[0087] The present application quickly triggers the recommendation function by having the user perform a preset operation a specified number of times in the media playback page. The method provides the user with a triggering path for the recommendation function, and implements the recommendation function for media files through multiple consecutive clicks (including double-clicks). This method does not require adding new components to the media playback page, and the implementation method is reasonable, which improves the user's interactive experience.
[0088] The following is a detailed description of each step in the above process and the effects that can be further produced in conjunction with the embodiments. It should be noted that the "first" and "second" and other limitations involved in the present disclosure do not have limitations in terms of size, order, and quantity, and are only used to distinguish them in name. For example, "first preset value" and "second preset value" are used to distinguish two preset values in name. And so on.
[0089] First, the above step 201, namely "displaying a media playing page having a media file played", is described in detail in conjunction with an embodiment.
[0090] The media files involved in the embodiments of the present application may be videos, pictures in an album, etc.
[0091] The video can be a long video or a short video. The distinction between long videos and short videos is mainly reflected in the length and content of the video. Long videos are usually more than tens of minutes long; the content is relatively complete and in-depth, and the content quality is relatively high. For example, movies, TV series, documentaries, etc. are all long videos. Short videos are usually within ten minutes or a few minutes; the content is usually relatively brief and concise, mainly focusing on highlighting a certain highlight or quickly conveying information. Short videos pay more attention to rapid production and rapid dissemination, and emphasize timeliness; for example, some funny videos, life recording videos, advertising videos, short dramas, etc. are all short videos.
[0092] In addition, the above-mentioned videos can be either horizontal or vertical. Horizontal videos are videos whose width is greater than their height, which are more in line with the natural field of vision of the human eye and more suitable for viewing on wide-screen devices (such as TVs and computers). Vertical videos are videos whose height is greater than their width, which are more suitable for viewing on narrow-screen devices (such as smartphones and tablets) and are more popular in the fields of social media and short videos.
[0093] The pictures in the collection can be ordinary pictures or long pictures. Ordinary pictures are usually single, static images, and users can see the complete content of ordinary pictures without additional operations. Long pictures are usually a special form of pictures, consisting of continuous images. Users need to scroll or slide to view the content of the entire long picture. Long pictures usually need to combine multiple image elements together to form a coherent content.
[0094] It should be noted that the “playback” involved in the embodiments of the present application refers to converting the content of the media file into images, sounds, or a combination of the two that can be directly perceived by humans.
[0095] The above step 202, namely, "triggering a recommendation for a media file in the media playback page in response to a preset operation performed by the user for a specified number of times in the media playback page; wherein the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between at least two click operations is less than a second preset value" is described in detail below in conjunction with an embodiment.
[0096] The user can trigger the recommendation of the media file by performing a preset operation a specified number of times in the media playback page. In the embodiment of the present application, the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value, and the preset operation includes at least two click operations, and the click time interval between at least two click operations is less than a second preset value.
[0097] Specifically, the first preset value refers to the maximum allowed time interval between two consecutive preset operations. If the user completes the preset operations a specified number of times within this period, it will be considered as a valid behavior that triggers the recommendation. The second preset value refers to the maximum allowed time interval between two click operations in a single preset operation. If the user completes two click operations within this period, it will be considered as a valid preset operation.
[0098] It should be noted that the embodiment of the present application does not limit the specific execution position of the preset operation in the media playback page, and the user can perform the preset operation at any position on the media playback page.
[0099] In actual applications, the preset operation may be a combo operation, and the preset operation of the specified number of times may be a continuous combo operation. When the user performs a continuous combo operation on the media playback page, the recommendation function for the media file is triggered. For example, the user may double-click anywhere on the media playback page, and double-clicking twice in a row triggers the recommendation function for the media file.
[0100] Furthermore, the embodiment of the present application may also include: in response to the user's first preset operation on the media playback page, triggering a like for the media file on the media playback page. That is, when the user performs only one preset operation, for example, the user double-clicks anywhere on the media playback page to trigger a like for the media file on the media playback page, and the user double-clicks on the media playback page again at a time interval within the first preset value to trigger a recommendation for the media file on the media playback page.
[0101] It can be seen that since users usually have the need to like when recommending media files, this application associates the like function with the recommendation function, which is more in line with the user's interaction habits. Users do not need to trigger the like function with an additional component, which simplifies user operations.
[0102] As one possible implementation method, the above step 202 can be implemented as follows. Figure 3 As shown, the following steps are included:
[0103] Step 2021, in response to the user's first preset operation in the media playback page, display recommendation prompt information in the media playback page, and the recommendation prompt information is used to prompt the user to continue to perform the preset operation to complete the recommendation of the media file.
[0104] When the user performs a preset operation for the first time in the media playback page, a recommendation prompt message is displayed in the media playback page. The purpose of this message is to inform the user that if the user continues to perform the preset operation, the recommendation of the currently playing media file can be completed.
[0105] Among them, the recommendation prompt information can be in various forms, such as brief text descriptions, intuitive icons or images, etc., to ensure clear communication of information and a good user experience.
[0106] Step 2022: In response to at least one preset operation of the user after the first preset operation in the media playback page, triggering a recommendation of a media file in the media playback page.
[0107] In step 221, the user has performed the first preset operation and received the recommendation prompt information. Step 222 involves whether the user has performed at least one additional preset operation after the first preset operation. If the user continues to perform the above preset operations, it means that the user intends to recommend the media file.
[0108] Furthermore, the embodiment of the present application may also include: in response to the user's first preset operation in the media playback page, displaying recommended progress information in the media playback page until the preset operation reaches a specified number of times. The recommended progress information can be in various forms, such as numbers, progress bars, or a combination of the two.
[0109] In addition, when a recommendation for a media file is triggered in the above process, a special effect that triggers the recommendation function can be displayed on the media playback page, for example, two heart-shaped patterns displayed from light to dark, or from dark to light, or other forms of special effects can be used.
[0110] The following takes the preset specified number of operations as 3, the recommended prompt information in text form, and the recommended progress information in the form of a combination of numbers and progress bars as an example to illustrate the method for recommending media files provided in the embodiment of the present application.
[0111] like Figure 4 As shown, Figure 4 (a) shows a media playback page playing a media file, and the user is watching the media file on the media playback page; if the user double-clicks for the first time at any position in the media playback page, such as Figure 4 As shown in (b), the like function is triggered (the like function component can display the function activation in a specific color), and at the same time, the recommendation prompt information "Continue to like, recommend works" and the recommendation progress information are displayed on the media playback page: the number "+1" and the circular progress bar (the circular progress bar displays the progress according to the specified number of double-clicks required and the number of double-clicks currently completed); the user continues to double-click on the page for the second time based on the displayed recommendation prompt information and recommendation progress information, as shown in FIG. Figure 4 As shown in (c), the recommendation prompt information remains unchanged, the number in the recommendation progress information increases to "+2", and the circular progress bar is partially filled; the user continues to double-click for the third time on the media playback page. Figure 4 As shown in (d), the number recommendation prompt information is updated to "Recommendation successful!", the number in the recommendation progress information increases to "+3", and the circular progress bar is filled. That is, the recommendation of the media file is completed through three consecutive double clicks by the user.
[0112] It should be noted that the display styles of the recommendation prompt information and recommendation progress information are not restricted in the embodiments of the present application, and can be flexibly adjusted according to different design requirements and user preferences. This design not only provides intuitive operation feedback, but also enhances the user's interactive experience with the media playback page, making the recommendation process more intuitive and interesting. In this way, users can clearly understand how their operations affect the recommendation results, thereby improving participation and satisfaction.
[0113] In addition, after triggering the recommendation of the media file in the media playback page, the embodiment of the present application may further include:
[0114] A page element for selecting a recommendation object is displayed, and at least one target user is displayed on the page element; in response to an operation of selecting at least one target user, recommendation information is sent to the selected target user, and the recommendation information is used to represent the recommendation of the media file.
[0115] The at least one target user may be a friend of the current user (the user currently using the media playback service), a nearby person (i.e., a user who is relatively close in location), etc. For example, among the friends of the current user, the friends whose interaction frequency with the current user exceeds a preset frequency threshold may be displayed on the page element as the target user; for another example, among the friends of the current user, the friends whose activity exceeds a preset activity threshold may be displayed on the page element as the target user; for another example, among the friends of the current user, the friends who are currently online may be displayed on the page element as the target user, and so on.
[0116] The above method allows users to select specific recommended objects in the page element, thereby achieving accurate targeted recommendations.
[0117] Figure 5 A flowchart of another method for recommending media files provided in an embodiment of the present application. The method can be performed by Figure 1 The user side of the system shown is executed. Figure 5 As shown in , the method may include the following steps:
[0118] Step 501: Display a media playing page for playing a media file, where the media playing page includes preset components related to the media file.
[0119] Step 502: In response to a first preset operation acting on a preset component, obtain a duration of the first preset operation.
[0120] Step 503: If the duration of the first preset operation exceeds the preset first duration, an interactive floating layer is displayed on the media playback page, and the interactive floating layer is used to trigger the recommendation of the media file.
[0121] It can be seen that in the present application, the user performs a first preset operation on a preset component in a media playback page. When the duration of the first preset operation exceeds the preset first duration, an interactive floating layer is displayed on the media playback page. That is, the interactive floating layer is triggered to be displayed on the media playback page by long pressing the preset component. The interactive floating layer provides a way to trigger the recommendation function, thereby increasing the user's interactive experience.
[0122] The following describes in detail each step in the above process and the effects that can be further produced in conjunction with the embodiments.
[0123] First, the above step 501, namely "displaying a media playing page playing a media file, the media playing page including preset components related to the media file" is described in detail in conjunction with an embodiment.
[0124] The preset components in the media playback page refer to components that can trigger specific interactive behaviors in the media playback page. As one of the possible ways to implement it, the preset components can be components with existing functions in the media playback page, such as like components, favorite components, comment components, forwarding components, etc.
[0125] In the embodiment of the present application, the recommendation function of the media file can be triggered by reusing the components with existing functions, which can save screen resources and reduce the impact on the viewing of the media file. In the embodiment of the present application, the preset component that triggers the media file recommendation function can be a like component.
[0126] The above step 502, namely "obtaining the duration of the first preset operation in response to the first preset operation acting on the preset component", is described in detail below in conjunction with an embodiment.
[0127] The first preset operation refers to a specific interactive action performed by the user on the preset component on the media playback page, such as clicking, sliding, etc. When the user interacts with the preset component, the user terminal will start to monitor the occurrence time of the interaction event between the user and the preset component, record the timestamp when the first preset operation starts, and record the timestamp again when the first preset operation ends. The difference between the two timestamps is the duration of the first preset operation.
[0128] The above step 503, namely "if the duration of the first preset operation exceeds the preset first duration, displaying an interactive floating layer on the media playback page, and the interactive floating layer is used to trigger the recommendation of the media file" is described in detail below in conjunction with an embodiment.
[0129] When the duration of the first preset operation exceeds the preset first duration, it can be determined that the first preset operation is a long press operation, and an interactive floating layer is displayed on the media playback page. The interactive floating layer is used to trigger the recommendation of the media file.
[0130] Among them, the interactive floating layer is a page element that can be covered on the media playback page in a transparent or semi-transparent form to display additional information or provide specific interactive functions. In the embodiment of the present application, the interactive floating layer is used as a page element that carries the recommendation function. When the user performs an operation (such as a long press operation) on a preset component (such as a like button) for more than a certain time, the user end believes that the user may want to make a recommendation, so the interactive floating layer is displayed to guide the user to complete the recommendation operation.
[0131] As one of the achievable methods, the interactive floating layer in the embodiment of the present application may be at least one recommendation option for indicating the recommendation strength. In this case, the embodiment of the present application may further include: in response to a second preset operation acting on one of the recommendation options, recommending the media file according to the recommendation strength corresponding to one of the recommendation options.
[0132] The second preset operation mentioned above may be a click, a long press, a double click or other specific interactive actions, and this operation may further refine the user's recommendation intention.
[0133] Among them, the recommendation options used to indicate the recommendation strength can be displayed on the interactive floating layer in the form of a list, button, icon or other elements. Each recommendation option has a corresponding recommendation strength, which represents the strength or priority of the user's recommendation for the media file. The higher the recommendation strength, the higher the user's recommendation for the media file. It should be noted that when displaying the recommendation options, they can be laid out horizontally or vertically according to the user's operating habits or interface design requirements. The indication of the recommendation strength of the recommendation options can be in the form of numbers, icons, symbols, text, and other forms and their combinations. Taking text as an example, "Recommend", "Strongly recommend", etc. can be displayed to indicate different recommendation strengths. Figure 6 Taking the combination of numbers and text as an example, you can display "Recommended × 1", "Recommended × 5", "Recommended × 10", etc. to indicate different recommendation strengths, such as Figure 7 shown.
[0134] Furthermore, after the user recommends a media file according to the recommendation strength corresponding to one of the recommendation options, the special effects corresponding to the recommendation option can be displayed on the media playback page, thereby increasing the interactivity and fun of the media playback page.
[0135] Furthermore, after the user recommends a media file according to the recommendation strength corresponding to one of the recommendation options, the recommendation result can be displayed in the media playback interface in various forms such as text, icons, and combinations thereof, such as "XX (user name) recommends", "XX (user name) strongly recommends", and so on.
[0136] The following uses an example in which the first preset operation is a long press operation, the second preset operation is a click operation, and the interactive floating layer is a recommended option list to demonstrate and illustrate the method for recommending media files provided in an embodiment of the present application.
[0137] like Figure 6 As shown, Figure 6 (a) shows a media playback page playing a media file. The user long presses the like component, and a list of recommendation options is displayed on the media playback page, including "Recommend" and "Strongly Recommend"; Figure 6As shown in (b), the user clicks "strongly recommended" in the recommendation option list to complete the recommendation of the media file; Figure 6 As shown in (c), the media playback page displays a special effect corresponding to "strongly recommended" in the recommendation option list. The special effect may be "strongly recommended" flashing in a special font, or flashing many small heart-shaped patterns, or other forms of special effects.
[0138] by Figure 7 and Figure 8 For example, Figure 7 , which shows the recommendation options in a vertical layout, including “Recommended × 1”, “Recommended × 5”, and “Recommended × 10”, respectively representing different recommendation strengths. Figure 8 , which shows the recommendation options in a horizontal layout, including “×1”, “×5”, and “×10”, that is, only numbers are used to indicate different recommendation strengths.
[0139] It can be seen that this application uses the recommendation options in the interactive floating layer to enable users to trigger recommendation functions with different recommendation strengths by triggering corresponding recommendation options, providing more refined recommendation control, meeting users' diverse recommendation needs, and further improving user experience.
[0140] As another achievable manner, the interactive floating layer involved in the embodiments of the present application may include page elements corresponding to multiple functions, where the multiple functions include a recommended function and at least one non-recommended function.
[0141] The above-mentioned page elements may include information indicating a corresponding function, and may further include progress information indicating triggering of the corresponding function.
[0142] Non-recommendation functions may include but are not limited to other interactive functions such as collection, appreciation, and forwarding.
[0143] It can be seen that the present application also provides a mechanism for linking the recommendation function with other non-recommendation functions, that is, controlling the linkage between the recommendation function and other non-recommendation functions by the duration of the first preset operation, allowing users to trigger multiple functions through a single operation, simplifying user operations, and providing richer user interaction methods, further improving the user experience.
[0144] In this case, in order to distinguish different triggering intentions, different time thresholds can be set in the embodiment of the present application, that is, multiple functions correspond to different second durations, and the second duration is greater than the first duration. In response to the duration of the first preset operation reaching the second duration, the function corresponding to the second duration is triggered in the media playback page.
[0145] The following uses the non-recommendation functions including collection and appreciation as an example to illustrate the method for recommending media files provided in the embodiment of the present application.
[0146] like Fig. 9 As shown, Fig. 9 (a) shows a media playback page with a media file playing. The user long presses the like component. When the long press duration reaches 2s (the first duration), the media playback page displays: "Recommend" and the corresponding circular progress bar, "Appreciate" and the corresponding circular progress bar, "Collect" and the corresponding circular progress bar. The recommendation function is triggered at the same time, that is, the circular progress bar corresponding to the recommendation function is filled, and the circular progress bar corresponding to the appreciation function and the circular progress bar corresponding to the collection function are both empty. Fig. 9 As shown in (b), the user continues to long-press the like component. When the long-press duration reaches 3s (the second duration corresponding to the like function), the like function is triggered, and the circular progress bar corresponding to the like function is filled. At this time, the circular progress bar corresponding to the collection function is empty; Fig. 9 As shown in (c), the user continues to long press the like component. When the long press duration reaches 4 seconds (the second duration corresponding to the collection function), the collection function is triggered and the circular progress bar corresponding to the collection function is filled.
[0147] Similarly, when the user long presses, special effects can be displayed to enhance the recommendation effect, where the special effects can be, for example, flashing many small heart-shaped patterns, or other special effects.
[0148] In addition, after triggering the recommendation of the media file in the media playback page, the embodiment of the present application may further include:
[0149] A page element for selecting a recommendation object is displayed, and at least one target user is displayed on the page element; in response to an operation of selecting at least one target user, recommendation information is sent to the selected target user, and the recommendation information is used to represent the recommendation of the media file.
[0150] The at least one target user may be a friend of the current user (the user currently using the media playback service), a nearby person (i.e., a user who is relatively close in location), etc. For example, among the friends of the current user, the friends whose interaction frequency with the current user exceeds a preset frequency threshold may be displayed on the page element as the target user; for another example, among the friends of the current user, the friends whose activity exceeds a preset activity threshold may be displayed on the page element as the target user; for another example, among the friends of the current user, the friends who are currently online may be displayed on the page element as the target user, and so on.
[0151] The above method allows users to select specific recommended objects in the page element, thereby achieving accurate targeted recommendations.
[0152] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0153] According to an embodiment of another aspect, a device for recommending a media file is provided. Fig.10 A schematic block diagram of a recommendation device according to an embodiment is shown. The device is arranged at Figure 1 The user side of the architecture shown. Fig.10 As shown, the device 1000 includes: a first page display unit 1001, a first operation monitoring unit 1002 and a recommendation triggering unit 1003, and may further include a like triggering unit 1004. The main functions of each component unit are as follows:
[0154] The first page display unit 1001 is configured to display a media playing page having a media file being played.
[0155] The first operation monitoring unit 1002 is configured to monitor the user's operation on the media playing page.
[0156] The recommendation trigger unit 1003 is configured to trigger a recommendation for the media file in the media playback page in response to a preset operation specified by the user for a number of times in the media playback page; the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between the at least two click operations is less than a second preset value.
[0157] As one of the preferred implementations, the recommendation trigger unit 1003 displays recommendation prompt information in the media playback page in response to the user's first preset operation in the media playback page; the recommendation prompt information is used to prompt the user to continue to perform the preset operation to complete the recommendation of the media file; and in response to at least one preset operation of the user after the first preset operation in the media playback page, triggers the recommendation of the media file in the media playback page.
[0158] The recommendation triggering unit 1003 is further configured to display recommendation progress information in the media playback page in response to the user's first preset operation in the media playback page, until the preset operation reaches the specified number of times.
[0159] As one possible implementation method, the recommended progress information includes: numbers and / or progress bars.
[0160] Furthermore, the device 1000 in the embodiment of the present application may also include a like triggering unit 1004, which is configured to: in response to the user's first preset operation in the media playback page, trigger a like for the media file in the media playback page.
[0161] Furthermore, the device 1000 in the embodiment of the present application may also include a first target user recommendation unit 1005, which is configured to: display a page element for selecting a recommendation object, on which at least one target user is displayed; in response to an operation in which the at least one target user is selected, send recommendation information to the selected target user, wherein the recommendation information is used to represent a recommendation for the media file.
[0162] According to an embodiment of another aspect, a device for recommending a media file is provided. Fig.11 A schematic block diagram of a recommendation device according to an embodiment is shown. The device is arranged at Figure 1 The user side of the architecture shown. Fig.11 As shown, the device 1100 includes: a second page display unit 1101, a second operation monitoring unit 1102 and a floating layer display unit 1103, and may further include a second recommendation triggering unit 1104. The main functions of each component unit are as follows:
[0163] The second page display unit 1101 is configured to display a media playing page on which a media file is played, wherein the media playing page includes preset components related to the media file.
[0164] The second operation monitoring unit 1102 is configured to monitor the user's operation on the media playing page.
[0165] The floating layer display unit 1103 is configured to obtain the duration of the first preset operation in response to the first preset operation acting on the preset component; if the duration of the first preset operation exceeds the preset first duration, an interactive floating layer is displayed on the media playback page, and the interactive floating layer is used to trigger the recommendation of the media file.
[0166] As one of the possible implementation methods, the interactive floating layer includes at least one recommendation option for indicating the recommendation strength; the second recommendation trigger unit 1104 is configured to: in response to a second preset operation acting on one of the recommendation options, recommend the media file according to the recommendation strength corresponding to one of the recommendation options.
[0167] Furthermore, the floating layer display unit 1103 is also configured to: in response to a second preset operation acting on one of the recommended options, display a special effect corresponding to one of the recommended options on the media playback page.
[0168] As one of the achievable methods, the interactive floating layer includes page elements corresponding to multiple functions, and the multiple functions include a recommended function and at least one non-recommended function; then the second recommendation trigger unit 1104 is configured to: in response to the duration of the first preset operation reaching a second duration, trigger the function corresponding to the second duration in the media playback page; wherein, the multiple functions correspond to different second durations, respectively, and the second duration is greater than the first duration.
[0169] As one possible implementation method, the page element includes information indicating a corresponding function and progress information indicating triggering of the corresponding function.
[0170] As one possible implementation method, the at least one non-recommendation function includes at least one of the following: collection, appreciation, and forwarding.
[0171] Furthermore, the device 1100 in the embodiment of the present application may also include a second target user recommendation unit 1105, which is configured to: display a page element for selecting a recommendation object, on which at least one target user is displayed; in response to an operation in which the at least one target user is selected, send recommendation information to the selected target user, wherein the recommendation information is used to represent a recommendation for the media file.
[0172] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0173] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0174] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0175] And an electronic device, comprising:
[0176] one or more processors; and
[0177] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0178] The present application also provides a computer program product, including a computer program, which implements the steps of any one of the methods in the aforementioned method embodiments when executed by a processor.
[0179] in, Fig.12 The architecture of the electronic device is shown as an example, which may include a processor 1210, a video display adapter 1211, a disk drive 1212, an input / output interface 1213, a network interface 1214, and a memory 1220. The processor 1210, the video display adapter 1211, the disk drive 1212, the input / output interface 1213, the network interface 1214, and the memory 1220 may be communicatively connected via a communication bus 1230.
[0180] Among them, the processor 1210 can be implemented by a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solutions provided in this application.
[0181] The memory 1220 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1220 can store an operating system 1221 for controlling the operation of the electronic device 1200, and a basic input and output system (BIOS) 1222 for controlling the low-level operation of the electronic device 1200. In addition, a web browser 1223, a data storage management system 1224, and a playback processing device 1225 for media files, etc. can also be stored. The playback processing device 1225 for the above-mentioned media files can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 1220 and is called and executed by the processor 1210.
[0182] The input / output interface 1213 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0183] The network interface 1214 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0184] The bus 1230 comprises a pathway for transmitting information between the various components of the device (eg, the processor 1210 , the video display adapter 1211 , the disk drive 1212 , the input / output interface 1213 , the network interface 1214 , and the memory 1220 ).
[0185] It should be noted that, although the above device only shows a processor 1210, a video display adapter 1211, a disk drive 1212, an input / output interface 1213, a network interface 1214, a memory 1220, a bus 1230, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.
[0186] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a computer program product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0187] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for recommending a media file, characterized in that: The method comprises: Display the media playback page that plays the media file; In response to a preset operation specified by the user for a number of times in the media playback page, a recommendation of the media file is triggered in the media playback page; the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between the at least two click operations is less than a second preset value.
2. The method according to claim 1, characterized in that In response to at least two preset operations of the user on the media playback page, triggering a recommendation of the media file on the media playback page includes: In response to the user's first preset operation in the media playback page, displaying recommendation prompt information in the media playback page; the recommendation prompt information is used to prompt the user to continue to perform the preset operation to complete the recommendation of the media file; In response to at least one preset operation of the user after the first preset operation in the media playback page, a recommendation of the media file is triggered in the media playback page.
3. The method according to claim 1, characterized in that The method further comprises: In response to the user's first preset operation in the media playback page, the recommended progress information is displayed in the media playback page until the preset operation reaches the specified number of times.
4. The method according to claim 3, characterized in that The recommended progress information includes: numbers and / or progress bars.
5. The method according to any one of claims 2 to 4, characterized in that The method further comprises: In response to a first preset operation of the user in the media playback page, a like for the media file is triggered in the media playback page.
6. The method according to any one of claims 1 to 4, characterized in that After triggering the recommendation of the media file in the media playback page, the method further includes: Displaying a page element for selecting a recommended object, wherein at least one target user is displayed on the page element; In response to the operation of selecting the at least one target user, recommendation information is sent to the selected target user, where the recommendation information is used to represent a recommendation for the media file.
7. A media file recommendation method, characterized in that: The method comprises: Displaying a media playing page playing a media file, wherein the media playing page includes preset components related to the media file; In response to a first preset operation acting on the preset component, obtaining a duration of the first preset operation; If the duration of the first preset operation exceeds a preset first duration, an interactive floating layer is displayed on the media playback page, and the interactive floating layer is used to trigger a recommendation for the media file.
8. The method according to claim 7, characterized in that The interactive floating layer includes at least one recommendation option for indicating the strength of the recommendation; In response to a second preset operation acting on one of the recommendation options, the media file is recommended according to a recommendation strength corresponding to the one of the recommendation options.
9. The method according to claim 8, characterized in that The method further comprises: In response to a second preset operation acting on one of the recommended options, a special effect corresponding to one of the recommended options is displayed on the media playback page.
10. The method according to claim 7, characterized in that The interactive floating layer includes page elements corresponding to multiple functions, and the multiple functions include a recommended function and at least one non-recommended function; In response to the duration of the first preset operation reaching a second duration, a function corresponding to the second duration is triggered in the media playback page; wherein the multiple functions correspond to different second durations, respectively, and the second duration is greater than the first duration.
11. The method according to claim 10, characterized in that The page element includes information indicating a corresponding function and progress information indicating triggering of the corresponding function.
12. The method according to claim 10, characterized in that The at least one non-recommendation function includes at least one of the following: collection, appreciation, and forwarding.
13. The method according to any one of claims 7 to 12, characterized in that After triggering the recommendation of the media file, the method further includes: Displaying a page element for selecting a recommended object, wherein at least one target user is displayed on the page element; In response to the operation of selecting the at least one target user, recommendation information is sent to the selected target user, where the recommendation information is used to represent a recommendation for the media file.
14. A media file recommendation device, characterized in that: The device comprises: A first page display unit is configured to display a media playing page having a media file played; A recommendation trigger unit is configured to trigger a recommendation for the media file in the media playback page in response to a preset operation performed by the user a specified number of times in the media playback page; the specified number of times is at least two, and the time interval between each two consecutive preset operations is less than a first preset value; the preset operation includes at least two click operations, and the click time interval between the at least two click operations is less than a second preset value.
15. A media file recommendation device, characterized in that: The device comprises: A second page display unit is configured to display a media playing page playing a media file, wherein the media playing page includes preset components related to the media file; a time acquisition unit, configured to acquire a duration of a first preset operation in response to a first preset operation acting on the preset component; The floating layer display unit is configured to display an interactive floating layer on the media playback page if the duration of the first preset operation exceeds a preset first duration, and the interactive floating layer is used to trigger the recommendation of the media file.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
17. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of claims 1 to 13.
18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
Citation Information
Patent Citations
Video operating method and client
CN105892900A
Information display method and device, computer equipment and storage medium
CN114093208A
Data processing method and device, equipment and storage medium
CN114780842A
Audio and video processing method and device, equipment and storage medium
CN114786063A
Application program recommendation method and electronic equipment
CN115033153A