Media resource processing method and apparatus, and device, medium and program product
By displaying the target user's historical interactions with other users in the media application, user interactivity and browsing experience are enhanced, solving the problem of insufficient user interactivity in existing technologies.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2026-01-04
- Publication Date
- 2026-07-30
AI Technical Summary
Existing media applications lack effective means to enhance user interaction when recommending media resources, resulting in insufficient user interaction.
By acquiring historical interaction behavior between target users and other users, the reasons for recommendation are displayed in real time in the media resource stream, enhancing users' willingness to interact.
It improves user interactivity and browsing experience, promotes interactive operations between users, and enhances users' affinity and curiosity for recommended resources.
Smart Images

Figure CN2026070048_30072026_PF_FP_ABST
Abstract
Description
Media resource processing methods, devices, equipment, media and program products
[0001] This application claims priority to Chinese Patent Application No. 202510102163.9, filed on January 21, 2025, entitled “Media Resource Processing Method, Apparatus, Equipment, Medium and Program Product”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, and more particularly to the field of media resources, specifically to a media resource processing method, a media resource processing device, a computer equipment, a computer-readable storage medium, and a computer program product. Background Technology
[0003] Online media resources, or media resources, refer to various resources existing on the Internet, and their lifecycle management (including production, distribution, and dissemination) is mainly achieved through media applications.
[0004] Media applications can be web platforms that allow users to generate and share content. Currently, media applications offer relatively simple media resource recommendation technologies, such as recommending media resources to users based on their interests, preferences, or historical behavioral data.
[0005] Therefore, how to effectively recommend media resources in media applications has become a research hotspot.
[0006] Technical content
[0007] This application provides a media resource processing method, apparatus, device, medium, and program product that can identify other users who have interactive behaviors with the target user, increase the willingness of users to interact, and enhance the user's social experience.
[0008] This application provides a media resource processing method, the method comprising:
[0009] In response to a resource request operation performed by a first object in a media application, a first media resource stream is obtained, the first media resource stream including multiple media resources, the multiple media resources including a first media resource published by a second object, the second object having historical interaction behavior with the first object;
[0010] During the sequential playback of multiple media resources of the first media resource stream, when the first media resource is played, a recommendation reason for recommending the first media resource is displayed in the resource display interface of the first media resource. The recommendation reason includes information describing the historical interaction behavior.
[0011] This application provides a media resource processing apparatus, which includes:
[0012] The display unit is configured to respond to a resource request operation performed by a first object in a media application, and to obtain a first media resource stream, wherein the first media resource stream includes multiple media resources, the multiple media resources including the first media resource published by a second object, and the second object has historical interaction behavior with the first object;
[0013] The processing unit is configured to, during the sequential playback of multiple media resources of the first media resource stream, when playing the first media resource, display a recommendation reason for recommending the first media resource in the resource display interface of the first media resource, wherein the recommendation reason includes information describing the historical interaction behavior.
[0014] This application provides a computer device, which includes:
[0015] A processor, adapted to execute computer programs;
[0016] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the media resource processing method described above.
[0017] This application provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed as described above for media resource processing.
[0018] This application provides a computer program product including a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the aforementioned media resource processing method.
[0019] Brief description of the attached figures
[0020] Figure 1 is a schematic diagram of the architecture of a media resource processing system provided in some embodiments of this application;
[0021] Figure 2 is a flowchart illustrating a media resource processing method provided in some embodiments of this application;
[0022] Figure 3a is a schematic diagram of a media resource as a social public dynamic message provided in some embodiments of this application;
[0023] Figure 3b is a schematic diagram of a short video as a media resource provided in some embodiments of this application;
[0024] Figure 4a is a schematic diagram of a resource display operation as a startup operation provided in some embodiments of this application;
[0025] Figure 4b is a schematic diagram of a resource display operation as an option switching operation provided in some embodiments of this application;
[0026] Figure 4c is a schematic diagram of a resource display operation as a resource refresh operation provided in some embodiments of this application;
[0027] Figure 5 is a schematic diagram of displaying recommendation reasons in a resource display interface of a first media resource according to some embodiments of this application;
[0028] Figure 6a is a schematic diagram of a recommendation reason displayed in the form of font color gradient according to some embodiments of this application;
[0029] Figure 6b is a schematic diagram showing how the special effects animation corresponding to a recommendation reason provided in some embodiments of this application is affected by the target factor;
[0030] Figure 6c is a schematic diagram showing the influence of target factors on the special effects animation corresponding to another recommendation reason provided in some embodiments of this application;
[0031] Figure 7 is a schematic diagram of displaying animations related to interactive operations in a resource display interface of a first media resource according to some embodiments of this application;
[0032] Figure 8 is a schematic diagram of how to quickly recall information about multiple historical interactive behaviors from the resource display interface of a first media resource, according to some embodiments of this application.
[0033] Figure 9 is a schematic diagram illustrating how to quickly filter target objects from an interactive details interface, according to some embodiments of this application.
[0034] Figure 10 is a schematic diagram of quickly tracing back to a second media resource from the resource display interface of a first media resource, provided by some embodiments of this application;
[0035] Figure 11 is a schematic diagram illustrating how to quickly initiate the editing of a third media resource from the resource display interface of a first media resource, according to some embodiments of this application.
[0036] Figure 12 is a schematic diagram of quickly following a second object from the resource display interface of a first media resource, according to some embodiments of this application.
[0037] Figure 13 is a flowchart illustrating another media resource processing method provided in some embodiments of this application;
[0038] Figure 14 is a schematic diagram of the background process of a computer device performing a media resource processing method according to some embodiments of this application;
[0039] Figure 15 is a schematic diagram illustrating a resource switching operation performed on a media resource stream according to some embodiments of this application;
[0040] Figure 16 is a schematic diagram of the structure of a media resource processing device provided in some embodiments of this application;
[0041] Figure 17 is a schematic diagram of the structure of a computer device provided in some embodiments of this application. Detailed Implementation
[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0043] This application provides a media resource processing scheme. This scheme can report in real-time the interactive operations / behaviors of other users towards media resources published by a target user, store and process the operation information of these interactive operations / behaviors, and recall and calculate media resources recommended to the target user based on a recommendation algorithm. The aim is to recommend media resources published by other users who have historical interactive behaviors towards the target user. Media resources, also known as multimedia resources or online media resources, refer to information resources containing multiple media forms such as text, images, and sound; media resources include, but are not limited to, audio, video, social media dynamics messages, and animations.
[0044] The following is a description of some terms used in the embodiments of this application.
[0045] Media resources, also known as media content, multimedia resources, or online media resources, refer to the digital content provided by media applications. This digital content can be user-generated or generated by the media application platform.
[0046] A media resource stream, also known as a multimedia resource stream, multimedia resource sequence, or multimedia content sequence, refers to a sequence of multiple media contents returned to a user's terminal by a media application in response to a user's resource request. For example, in some embodiments, the media resource stream includes multiple personalized media resources that can be played continuously.
[0047] Media applications are online platforms that support user-generated, shared, and interactive media resources. Their core functions include content publishing, social interaction, and information dissemination. For example, media applications can include social media platforms and content platforms.
[0048] Public feeds refer to public feeds in media applications (such as social media platforms and content platforms). They are content streams published by users or platforms and made available to all users. They are usually presented in the form of text, images, videos, etc., and are displayed in chronological order or recommended by algorithms.
[0049] For ease of explanation, we will use video as an example of media resources in the following discussion. A video is composed of at least two video frames (or image frames) linked together sequentially; that is, a video frame is the smallest or most basic unit of a video. When a video is played, multiple video frames are output consecutively according to their playback time sequence. Furthermore, based on video length, videos can be roughly divided into long videos and short videos; the video length of a long video is greater than that of a short video.
[0050] For example, in this embodiment of the application, long videos can refer to video content that is longer than 30 minutes and is primarily professionally produced, such as films and television dramas. Short videos can be user-generated content that is shorter than 30 minutes and suitable for rapid consumption on mobile devices.
[0051] Media resources can be provided by media applications, which enable the production, playback, and forwarding of media resources. Media applications are applications capable of editing and playing media resources; an application is a computer program designed to perform one or more specific tasks. Classifying applications according to different dimensions (such as how they operate, their functions, etc.) yields different types of the same application. For example, based on how they operate, applications can include, but are not limited to: clients installed on a terminal, small programs that can be used without downloading and installation (as subroutines of the client), and web (World Wide Web) applications opened through a browser. Another example is based on their functional type, applications can include, but are not limited to: IM (Instant Messaging) applications, content interaction applications, audio applications, or video applications. Instant messaging applications refer to applications that facilitate instant messaging and social interaction over the internet, and can include, but are not limited to: social applications with communication functions, map applications with social interaction functions, and game applications. Content interaction applications are applications capable of content interaction, such as online banking, sharing platforms, personal spaces, and news applications. Audio applications refer to applications that implement audio functions over the internet. Audio applications can include, but are not limited to, music applications with music playback and editing capabilities, radio applications with radio playback capabilities, or live streaming applications, etc. Video applications refer to applications capable of playing video. Video applications can include, but are not limited to, applications capable of playing short videos (often a few seconds or minutes in length) (such as short video platforms), and applications capable of playing long videos (such as movies or TV series with longer playback times), etc.
[0052] In addition to the applications mentioned above, media applications can also be plugins included within those applications that support media resource editing and playback. These plugins can be understood as program modules or code deployed within the application as a functional feature. For example, if the application is a client as mentioned above, and assuming this client has social features, then the media application could be a media plugin included in this social client. To the user, this media plugin represents the media functionality within the client. Adding this media plugin to the client aims to provide users logged in with a space to showcase their creativity, share their lives, and interact. Users can publish and view various types of media resources and interact with other users. In this way, users can edit, publish, and play media resources while using the client for social interaction without needing to switch applications (such as from the client to a standalone application).
[0053] In practical applications, when a first object (i.e., a user logged into a media application with an account) uses the media application, the application pushes media resources published by other objects to the first object. Experience has shown that existing media applications often recommend media resources to the first object based on their interests and historical access data (such as data generated from accessing other objects or media resources within the application). While this method can recall media resources of interest to the first object, it has shortcomings in improving interactivity between objects. To enhance interactivity or willingness to interact between different objects using the media application, the media resource processing solution provided in this application aims to: recommend media resources published by a second object (which has historical interaction behavior with the first object) to the first object requesting media resources based on interactive operations or behaviors between objects.
[0054] The general flow of the media resource processing scheme provided in this application embodiment may include: In a multimedia application, when a user (first object) logs in using their account (first account), if the first object initiates a resource request operation in the media application through the first account, the computer device running the media application will push a media resource stream to the first object according to the resource request operation; the media resource stream includes multimedia content (first media resource) published by other users (second object) in the media application, and the second object is any object that has performed interactive operations (such as liking, commenting, or following) on the first object's first account or the multimedia content published by the first object. Then, the first object realizes continuous playback or continuous output of the media resources in the media resource stream through the media application; wherein, during the continuous playback (or output) of the media resource stream, when the first media resource published by the second object is played, the recommendation reason for recommending the first media resource will be displayed in the resource display interface of the first media resource, and the recommendation reason includes information describing the historical interactive behavior.
[0055] Therefore, on the one hand, considering that the interactive behavior of objects within a media application can reflect the object's taste and aesthetics, if an object performs an interactive operation on another object, such as performing an interactive operation on the media resources published by the other object (e.g., liking, commenting), or performing an interactive operation on the account of the other object (e.g., following), then the object itself identifies with the other object. The two objects may have similarities in interests, geographical location, social relationships, or life stages, etc., and allowing the two objects to see each other's published works can improve the browsing experience of the objects. Therefore, the media resource processing solution provided in this application embodiment, starting from the dimension of interactive operations between two objects, recommends media resources published by a second object that has historical interactive behavior with the first object to the first object, which can increase the willingness of the two objects to interact based on existing interactive relationships, thereby improving the interactivity between objects in the media application.
[0056] On the other hand, embodiments of this application support displaying the recommendation reason for recommending the first media resource to the first object in the resource display interface of the first media resource published by the second object who has interacted with the first object. This allows the first object to more clearly perceive that the second object is an object that has previously recognized him when browsing the first media resource. To a certain extent, this will increase the first object's goodwill and curiosity towards the first media resource published by the second object, and encourage the first object to perform interactive operations on the second object, thereby enhancing the willingness of the first object and the second object to interact in the media application.
[0057] The media resource processing solution provided in this application, as a media resource recommendation solution, can recall or recommend media resource streams that enhance the interactivity between objects in a media application. This makes the media resource processing solution provided in this application applicable to various media resource processing scenarios that require media resource recommendation. The media resource processing scenarios differ depending on the media resources. For example, media resources may include, but are not limited to: ① Video recommendation scenario: In a video recommendation scenario, the media application can stream each short video in the media resource stream, i.e., play one short video at a time, and quickly switch to the next short video after the first short video finishes playing. ② Social public dynamic message recommendation scenario: Social public dynamic messages refer to dynamic messages published on public social interfaces, allowing other objects that have a social relationship with the published object or who have logged into the media application to view them. This application introduces a media resource processing solution in the social public dynamic message recommendation scenario, recommending social public dynamic messages as the first media resource with an existing interactive relationship (i.e., a one-way interactive relationship generated by a second object performing an interactive operation on a first object), thereby enhancing the willingness of objects to interact in the application scenario.
[0058] It should be understood that the above description is merely an exemplary product performance and media resource processing scenario provided by the embodiments of this application, and does not limit the product performance and media resource processing scenario of the media resource processing solution provided by the embodiments of this application. The media resource processing solution provided by the embodiments of this application can provide efficient, accurate and convenient question-and-answer services in various media resource processing scenarios, demonstrating high value and practicality in various media resource processing scenarios, and helping to improve user experience and satisfaction.
[0059] To facilitate understanding of the media resource processing scheme provided in this application embodiment, the media resource processing scenario involved in this application embodiment will be described below with reference to the media resource processing system shown in Figure 1. As shown in Figure 1, the media resource processing system includes a first terminal 101, a second terminal 102, and a server 103. This application embodiment does not limit the types and quantities of the first terminal 101, the second terminal 102, and the server 103. The first terminal 101, the second terminal 102, and the server 103 involved in the media resource processing system will be described below, wherein:
[0060] (1) The first terminal 101 refers to the terminal device held by the first object with resource recommendation needs; correspondingly, the second terminal 102 refers to the terminal device held by the second object who has performed interactive operations on the first object. The number of second terminals 102 can be one or more, and there is no limitation on this. Among them, the terminal device may include, but is not limited to: smartphones (such as smartphones running the Android system, or smartphones running the Internetworking Operating System (IOS)), tablet computers, portable personal computers, mobile Internet devices (MIDs), in-vehicle devices, head-mounted devices, smart TVs, or smart home devices, etc. The embodiments of this application do not limit the type of terminal, which is stated here. Both the first terminal 101 and the second terminal 102 have media applications deployed and running. In this way, after the first terminal publishes the second media resource through the media application running on the first terminal 101, the second object can browse the second media resource published by the first object through the media application deployed and running on the second terminal 102, thereby realizing interactive operations on the first object. Similarly, the first media resource published by the second object through the second terminal 102 can be played in the media application running on the first terminal 101 held by the first object, so as to promote the first object to actively interact with the second object, etc.
[0061] (2) Server 103 is the backend server corresponding to the first terminal 101 and the second terminal 102, used to interact with the first terminal 101 and the second terminal 102. Specifically, it is the server corresponding to the media applications deployed in the first terminal 101 and the second terminal 102, used to interact with the media applications deployed in the first terminal 101 and the second terminal 102 to provide computing and application service support for the media applications deployed in the first terminal 101 and the second terminal 102. Server 103 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
[0062] The first terminal 101, the second terminal 102 and the server 103 mentioned above can be directly or indirectly connected through wired or wireless communication, and this application does not impose any restrictions on this.
[0063] The media resource processing scheme provided in this application embodiment is executed by an electronic device. This electronic device can be the first terminal 101 or the server 103 in the media resource processing system shown in FIG1, or it can be the first terminal 101 and the server 103, or the first terminal 101, the second terminal 102, and the server 103. In other words, the media resource processing scheme provided in this application embodiment can be executed by a single entity of the first terminal 101 and the server 103, or jointly by the first terminal 101 and the server 103, or jointly by the first terminal 101, the second terminal 102, and the server 103. The following is a brief introduction to the scheme flow of the media resource processing scheme provided in this application embodiment, taking the joint execution of the media resource processing scheme by the first terminal 101, the second terminal 102, and the server 103 as an example, in conjunction with the media resource processing system shown in FIG2.
[0064] In specific implementation, if a second object has performed an interactive operation on a first object through a second terminal 102 at any point in history (i.e., any time or period before the current time), the detailed operation information of that interactive operation will be recorded in the high-performance object database in the form of interactive record data. When the first object performs a resource request operation through a media application running on the first terminal 101, it indicates that the first object has a need to browse media resources. The first terminal 101 then generates a resource recommendation request based on the resource request operation and sends the resource recommendation request to the server 103. The resource recommendation request carries the object identifier of the first object (such as information used to uniquely identify the first object, such as an object ID). After receiving the resource recommendation request sent by the first terminal 101, the server 103, in response to the resource recommendation request, retrieves the interactive record data of at least one second object that has performed an interactive operation on the first object from the high-performance object database, and obtains the first media resources published by each second object from the media database based on the interactive record data of each second object. Then, it assembles a media resource stream based on the multiple first media resources. Server 103 returns the media resource stream to the first terminal 101, enabling the first terminal 101 to continuously output each media resource according to the order of each media resource in the media resource stream. When playing the first media resource published by the second object, the resource display interface of the first media resource can display the recommendation reasons describing the historical interactive behavior performed by the second object on the first object, so as to enhance the first object's interest in the first media resource, thereby promoting or improving the interactivity between the first object and the second object.
[0065] As shown in Figure 1, the media resource processing system of this application recommends media resources published by a second object to which the first object has performed interactive operations. This can increase the willingness of the two objects to interact based on the existing interactive relationship. Furthermore, the system supports displaying the reasons for recommending the first media resource to the first object in the resource display interface of the first media resource published by the second object to which the first object has performed interactive operations. This increases the first object's positive feelings and curiosity towards the first media resource published by the second object, encouraging the first object to perform interactive operations on the second object, thereby enhancing the willingness of the first and second objects to interact in the media application.
[0066] Based on the above brief introduction of the media resource processing scheme and media resource processing system provided in the embodiments of this application, the following points should also be noted:
[0067] ① The system architecture shown in Figure 1 mentioned above in this application embodiment is for the purpose of more clearly illustrating the technical solutions of this application embodiment and does not constitute a limitation on the technical solutions provided in this application embodiment. Those skilled in the art will understand that with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in this application embodiment are also applicable to similar technical problems. That is to say, the schematic diagram of the media resource processing system architecture shown in Figure 1 is an exemplary schematic diagram; in practical applications, the number and distribution of computer devices included in the media resource processing system may change, and this application embodiment does not limit the schematic diagram of the media resource processing system architecture.
[0068] ② The data collection and processing in this application embodiment should strictly comply with the requirements of relevant laws and regulations. Obtaining personal information requires the knowledge or consent of the individual (or a legal basis for information acquisition), and subsequent data use and processing should be carried out within the scope of laws, regulations, and the authorization of the personal information subject. For example, when this application embodiment is applied to specific products or technologies, such as collecting operational information on interactive operations performed between objects, the permission or consent of the object is required, and the collection, use, and processing of related data (such as resource recommendations) must comply with relevant national and regional laws, regulations, and standards.
[0069] Based on the media resource processing scheme described above, this application proposes a more detailed media resource processing method. The media resource processing method proposed in this application will be described in detail below with reference to the accompanying drawings.
[0070] Figure 2 shows a flowchart illustrating a media resource processing method according to some embodiments of this application; this media resource processing method can be executed by an electronic device, which can be the first terminal 101 in the media resource processing system shown in Figure 1. The media resource processing method may include, but is not limited to, steps S201-S202:
[0071] S201: In response to a resource request operation performed by a first object in a media application, obtain a media resource stream, the media resource stream including multiple media resources, the multiple media resources including a first media resource published by a second object in the media application, the second object having historical interaction behavior with the first object.
[0072] Specifically, when a first object wants to view or browse media resources while using a media application, it can perform a resource request operation within the application. The computer device then responds to this request by acquiring a media resource stream. This media resource stream can be simply understood as a feed stream, which is an information stream that continuously updates and displays media resources to the first object. Typically, a simple refresh operation is sufficient to obtain a large number of media resources, which together form the media resource stream.
[0073] Depending on the media resource scenario applied in the embodiments of this application, the resource types of the media resources included in the media resource stream may differ. For example, if the media resource stream is the aforementioned social public dynamic messages, the media resource stream in the application interface of the media application includes media resources subscribed to by the first object or recommended by the media application—social public dynamic messages. When there is a resource request operation performed by the first object, the media resource stream is obtained, and a social public dynamic message in the media resource stream is displayed to update the media resources contained in the media resource stream. For example, a schematic diagram of media resources being social public dynamic messages is shown in Figure 3a. As shown in Figure 3a, at least one social public dynamic message in the media resource stream can be displayed on the application interface provided by the media application, such as social public dynamic messages 301 and 302 being displayed simultaneously on the application interface. The resource types of social dynamic messages in the media resource stream may include, but are not limited to, text posts and long videos (videos with a long duration, such as videos with a duration of tens of minutes), etc.
[0074] For example, the media resource stream is a short video stream, which includes media resources—short videos (videos with short durations, such as a few minutes or a few seconds)—that the first object is interested in or that the media application recommends. When the first object performs a resource request operation, the media resource stream is obtained, and the short videos in the media resource stream are played in the application interface of the media application. For example, a schematic diagram of a media resource stream being short videos is shown in Figure 3b. As shown in Figure 3b, only one short video from the media resource stream is played at a time in the application interface provided by the media application. When a refresh operation occurs in the application interface, the next short video in the media resource stream that follows the currently playing short video is played, thus achieving streaming playback of the short videos.
[0075] It should be noted that the media resource stream is not limited to the two types shown in Figures 3a and 3b above; for ease of explanation, the media resource processing scheme provided in the embodiments of this application will be introduced below using short videos as the media resource and short video streams as the media resource stream as an example.
[0076] Furthermore, the resource request operation performed by the first object in the media application is specifically a user operation that can trigger the presentation of media resources in the media resource stream (such as displaying social media updates or playing short videos); this resource request operation may include, but is not limited to, resource display operations or resource refresh operations. Specifically, a resource display operation refers to a media resource display operation triggered by the first object in the media application when the media application has not yet displayed any media resources; while a resource refresh operation refers to an update operation triggered by the user when the media application has already displayed any media resources. The specific implementation process of the two exemplary resource request operations given above is described below:
[0077] (1) Resource display operation.
[0078] The media application's interface includes multiple function options (such as "Follow" and "Recommend"), each corresponding to a specific function provided by the media application. Different functions can be switched using a tab control. For example, when the "Follow" option is selected, the media application plays media streams published by other objects followed by the first object; similarly, when the "Recommend" option is selected, the media application plays media streams recommended by the media application, where the publishers of the media resources may not be objects followed by the first object.
[0079] ① The resource display operation may include: a startup operation performed by the first object on a media application. An exemplary schematic diagram of a startup operation is shown in Figure 4a; as shown in Figure 4a, the interface of the computer device displays application identifiers of various applications installed on the computer device, including the application identifier 401 of the media application. When the application identifier 401 is triggered, the computer device launches the media application and automatically selects an application option corresponding to an application function (such as application option 402 corresponding to the application function to be followed); the computer device also acquires a media resource stream created for the first object and related to the application function to be followed, and outputs the media resource stream, specifically, it begins playing the media resources in the media resource stream.
[0080] ② The resource display operation may include: an option switching operation performed by the first object on the function options provided by the media application. An exemplary schematic diagram of an option switching operation is shown in Figure 4b; as shown in Figure 4b, the media resource corresponding to the currently selected function option 402 is played in the media application. When the first object selects the function option 403 corresponding to the recommended function, function option 402 is switched to an unselected state by default (e.g., the color transparency of function option 402 increases), and function option 403 is set to a selected state (e.g., the color transparency of function option 403 decreases); at this time, the computer device acquires the media resource stream created for the first object and related to the recommended function, and outputs the media resource stream, specifically, it begins playing the media resource in the media resource stream.
[0081] (2) Resource refresh operation.
[0082] A resource refresh operation refers to a user action that refreshes the currently playing media resource in a media application to allow the playback of the next new media resource. This resource refresh operation, often simply referred to as a refresh operation, includes, but is not limited to: triggering a refresh button on the application interface that outputs the media resource stream (e.g., clicking the refresh button); performing refresh gesture operations on the application interface that outputs the media resource stream (e.g., a long press and pull-down gesture); and so on. It should be noted that the media resources in the playback media resource stream can also be updated periodically without performing a resource refresh operation. For example, the media resources included in the playback media resource stream can be updated every minute. This application does not limit the specific implementation method of the resource refresh operation.
[0083] As shown in Figure 4c, during the output of the media resource stream, that is, during the sequential playback of each media resource in the media resource stream on the application interface provided by the media application, if the computer device detects that the first object performs a resource refresh operation on the currently playing media resource, the computer device outputs the next media resource after the currently playing media resource, so as to realize the quick switching of different media resources in the media application.
[0084] It should be noted that Figures 4a, 4b and 4c are merely specific implementations of exemplary resource request operations given in the embodiments of this application, and do not limit the resource request operations involved in the embodiments of this application.
[0085] S202: During the sequential playback of multiple media resources in the media resource stream, when the first media resource is played, a recommendation reason for recommending the first media resource is displayed in the resource display interface of the first media resource. The recommendation reason includes information describing the historical interaction behavior.
[0086] As mentioned above, a media resource stream can be understood as a feed stream, which includes one or more consecutive media resources. When outputting a media resource stream to a computer device, each media resource in the stream is output sequentially using a streaming output method. In this embodiment, it is supported to construct a media resource stream based on a first media resource published by a second object that has performed an interactive operation on the first object. That is, the media resource stream includes a first media resource published by a second object that has performed an interactive operation on the first object.
[0087] To facilitate a more intuitive understanding of the first media resource published by the second object during the browsing of the media resource stream, this embodiment of the application displays a recommendation reason in the resource display interface of the first media resource when the computer device plays the first media resource during the output of the media resource stream. The recommendation reason includes information describing the historical interaction behavior, which aims to facilitate the first object to intuitively understand that the second object has previously endorsed the first object based on the recommendation reason, while also encouraging the first object to perform interactive operations on the second object, thereby enhancing the willingness and interactivity of different objects in the media application.
[0088] The interactive operations (historical interactive behaviors) performed by the second object on the first object can include at least one of the following: a follow operation performed by the second object on the first object's account; and at least one of a like, comment, share, and favorite operation performed by the second object on the second media resource published by the first object. In other words, the interactive operations performed by the second object on the first object mainly consist of two parts: a follow operation performed on the first object itself, and an interactive operation performed on the second media resource published by the first object. It should be understood that the first object can also perform interactive operations on the second object, and the types of interactive operations are the same as those mentioned above for the interactive operations performed by the second object on the first object; therefore, the interactive operations performed by the first object on the second object will not be elaborated upon here.
[0089] Information on historical interaction behavior refers to detailed information about that historical interaction behavior, including at least one of the following: interaction type information, number of interactions, information about the second media resource on which the interaction behavior occurred, and detailed information such as interaction time. Interaction type information describes the specific type of the historical interaction behavior; for example, the type of interaction behavior could be liking, commenting, following, etc. In some embodiments, when the interaction behavior is a liking operation on a second media resource, the interaction type information might be expressed as "She recently liked your post." The number of interactions represents the number of times the second object has performed an interaction behavior on the first object; for example, if the second object has followed the first object in a historical timeframe and has also liked and commented on a second media resource published by the first object, then the number of interactions is 3. Information about the second media resource on which the interaction behavior occurred refers to information that can be used to characterize the second media resource, such as the title, text, or part of the text of the second media resource. Interaction time refers to the moment when the second object performed the interaction behavior on the first object or the second media resource.
[0090] For example, a schematic diagram of displaying the recommendation reason in the resource display interface of the first media resource can be seen in Figure 5. As shown in Figure 5(a), if the second object has performed a follow operation on the first object, the recommendation reason displayed in the resource display interface of the first media resource published by the second object can be expressed as "She recently followed you". Similarly, as shown in Figure 5(b), if the second object has performed a like operation on the first object, the recommendation reason displayed in the resource display interface of the first media resource published by the second object can be expressed as "She recently liked you". Similarly, as shown in Figure 5(c), if the second object has performed both follow and like operations on the first object, the recommendation reason displayed in the resource display interface of the first media resource published by the second object can describe both follow and like operations, such as the recommendation reason expressed as "She recently liked and followed you". Similarly, as shown in Figure 5(d), if the second object has performed a share operation on the first object, and the sharing time was the previous day, the recommendation reason displayed in the resource display interface of the first media resource published by the second object can be expressed as "She shared your video the previous day". It should be understood that the specific form of the recommendation reason is not limited to the styles shown in (a), (b), (c) and (d) of Figure 5 above, and the information of the interactive behavior described by the recommendation reason may include one or more. The embodiments of this application do not limit the display style of the recommendation reason on the resource display interface of the first media resource or the number of interactive behaviors described.
[0091] This application embodiment supports displaying animations in the resource display interface of a first media resource. This is to allow the user to intuitively perceive the difference between the first media resource and other media resources based on the animation. This difference refers to the fact that the publisher of the first media resource—the second user—has previously interacted with the first user. This enhances the first user's positive feelings and curiosity towards the first media resource or the second user, promoting the establishment of a potential two-way interactive relationship between the first and second users based on the existing interactive relationship between the first and second users. The methods for displaying animations in the resource display interface of the first media resource may include, but are not limited to: displaying recommendation reasons in the form of special effects animations in the resource display interface of the first media resource; and displaying animations related to historical interaction behaviors in the resource display interface of the first media resource; etc. The following describes these two methods of displaying animations in the resource display interface of the first media resource with reference to the accompanying drawings:
[0092] (1) In the resource display interface of the first media resource, the recommendation reason is displayed in the form of special effects animation.
[0093] Displaying the recommendation reason in the form of special effects animation means that the recommendation reason can be loaded or displayed on the resource display interface in the form of special effects animation; the special effects animation corresponding to the recommendation reason may include, but is not limited to: the recommendation reason continuously flashing, the recommendation reason glowing, the display position dynamically moving in the resource display interface, the font color of the recommendation reason gradually changing, and the display size of the recommendation reason changing in the resource display interface, etc.
[0094] For example, in the resource display interface of the first media resource, a schematic diagram of displaying the recommendation reason in the form of font color gradient can be seen in Figure 6a. As shown in Figure 6a, the text of recommendation reason 601 is "She has recently followed you". Then, according to a specified order (such as from right to left), the color of the text in recommendation reason 601 gradually changes, such as the color depth of the character "she" being greater than the color depth of the character "most", and the color depth of the character "most" being greater than the color depth of the character "near".
[0095] It is worth noting that the presentation of the special effects animation corresponding to the recommendation reason is related to at least one of the following target factors: the geographical relationship between the first object and the second object, the social relationship between the first object and the second object, the duration of historical interaction behavior, and the media interest relationship between the first object and the second object, etc. In some embodiments, the closer the geographical relationship between the first object and the second object, the more obvious the special effects animation corresponding to the recommendation reason. In some embodiments, when the social relationship between the first object and the second object indicates that the second object has followed the first object, the special effects animation corresponding to the recommendation reason is more obvious. In some embodiments, the longer the duration of the interaction behavior performed by the second object on the first object, the more obvious the special effects animation corresponding to the recommendation reason. For example, the duration of the interaction behavior may include: the time from opening to completing the operation in the like or comment interface. In some embodiments, the more media interest relationship between the first object and the second object indicates that the first object and the second object share common media interests, the more obvious the special effects animation corresponding to the recommendation reason; wherein, the media interests of the first object and the second object can be calculated through the interest tags set by the first object and the second object. The more obvious the special effects animation mentioned above, the more easily the special effects animation is noticed by the first object; for example, when the special effects animation is presented as a gradient of the font color of the recommendation reason, the more obvious the special effects animation is, the greater the change in the presentation of the special effects animation, etc.; the embodiments of this application do not limit this.
[0096] As shown in Figure 6b, assuming the recommendation reason's corresponding special effect animation is a font color gradient, and the target factor is the geographical relationship between the first and second objects, then when the computer device calculates that the geographical relationship between the first and second objects is relatively close, the magnitude of the font color gradient of the recommendation reason should be larger. This is to allow the first object to perceive that the second object is nearby through a larger font color gradient, leveraging the characteristic that nearby friends of the first object have a stronger willingness to interact, thus encouraging the first object to perform interactive actions towards the second object, thereby improving the interactivity between objects in the media application. As shown in Figure 6c, assuming the recommendation reason's corresponding special effect animation is a change in the display size of the recommendation reason in the resource display interface, and the target factor is the media interest relationship between the first and second objects, then when the media interest relationship between the first and second objects indicates that there are many common media interests between the first and second objects, the display area of the recommendation reason in the resource display interface should be larger, and the font size of the recommendation reason should be larger from a visual perspective.
[0097] (2) Display animations related to historical interactive behaviors in the resource display interface of the first media resource.
[0098] Animations related to historical interactive behaviors (interactive operations) refer to animations whose animation style is related to the type of interactive operation. Specifically, the first object can associate the animation style with the corresponding interactive operation. For example, if the interactive operation is a "like," then the animation style of the animation related to that interactive operation is a virtual heart style; similarly, if the interactive operation is a "favorite," then the animation style of the animation related to that interactive operation is a virtual favorite style.
[0099] For example, a schematic diagram of displaying animations related to interactive operations in the resource display interface of the first media resource can be seen in Figure 7; as shown in Figure 7, assuming that the second object has performed a "like" operation on the second media resource published by the first object, and when the second media resource is liked, the virtual heart on the playback interface of the second media resource is displayed in a selected state, then when the first media resource published by the second object is played, virtual hearts (such as virtual hearts 701 and virtual hearts 702) are displayed in the resource display interface of the first media resource. The virtual hearts can have a certain degree of transparency to avoid obscuring the resource content of the first media resource, such as the virtual hearts being displayed in the form of virtual bubbles.
[0100] Considering that the resource display interface of the first media resource published by the second object displays the recommendation reason, making it easy for the first object to intuitively perceive that the publisher of the first media resource has performed interactive operations on the first object, the first object may have a need to view multiple historical interactive behaviors for the first object. Based on this, the embodiments of this application also support quickly recalling information on multiple historical interactive behaviors for the first object in the resource display interface of the first media resource. The multiple historical interactive behaviors can be performed on the same or different objects, improving the convenience for the first object to view historical interactive behaviors.
[0101] In specific implementation, a historical interaction viewing component is displayed in the resource display interface of the first media resource. The display position of this historical interaction viewing component can be adjacent to the recommendation reason, or located in a specified position in the resource display interface of the first media resource (such as the lower right corner), etc. This application embodiment does not limit the display position of the historical interaction viewing component. When the historical interaction viewing component is triggered, it indicates that the first object has a need to view the historical interaction behavior of the first object in batches. Then, an interaction details interface is displayed, and the object identifiers of at least one object that has performed interaction operations on the first object are displayed in the interaction details interface. The at least one object includes the second object. In this way, if the first object wants to view the details of the historical interaction behavior of any one of the at least one objects on the first object, the first object can select the object identifier of any object. At this time, the computer device responds to the selection operation and displays the information of the historical interaction behavior performed by that object on the first object.
[0102] Figure 8 illustrates an exemplary diagram of how to quickly retrieve information on multiple historical interactive behaviors from the resource display interface of the first media resource. As shown in Figure 8, a historical interaction viewing component 802 is displayed in the resource display interface 801 of the first media resource. When this historical interaction component 802 is triggered, an interaction details interface 803 is displayed. This interaction details interface 803 is displayed as a floating window with a display area smaller than that of the resource display interface. The interaction details interface 803 includes object identifiers of at least one object that has performed interactive operations on the first object, such as object identifier 8031, object identifier 8032, and object identifier 8033. In addition to the object identifiers, the interaction details interface 803 may also include operation information (such as interaction type, operation time, etc.) of the interactive operations performed by the objects corresponding to each object identifier on the first object. If the first object wants to view the operation information of the interactive operations performed by object identifier 8031 on itself, the first object can select object identifier 8031, at which point the operation information of the interactive operations performed by the object corresponding to object identifier 8031 on itself will be displayed.
[0103] Furthermore, embodiments of this application also support targeted batch viewing of interactive operations performed by the first object; targeted batch viewing refers to selectively viewing one or more object identifiers that have performed the same interactive operation, which can meet the personalized viewing needs of the first object and enhance the stickiness of the first object to the media application.
[0104] In the specific implementation, the interactive details interface includes an information filtering component. When this component is triggered, it indicates that the first object wants to specifically view operation information related to a certain interactive action. At this time, the computer device displays an information filtering window. This window includes at least one filtering option, each corresponding to an object filtering strategy. This strategy is a rule used to filter target objects from at least one object based on the type of interactive action. For example, the filtering strategy could be: filter out target objects that have performed a "like" action from at least one object; another example is: filter out target objects that have performed a "comment" action from at least one object; and so on. Thus, the first object can select a target filtering option from the information filtering window. In response to the first object's selection, the computer device displays operation information of at least one target object performing an interactive action against the first object in the information filtering window. This target object is determined from at least one object according to the target object filtering strategy corresponding to the target filtering option.
[0105] Figure 9 illustrates how to quickly filter target objects from the interactive details interface. As shown in Figure 9, an information filtering component 901 is displayed in the interactive details interface. If a first object performs a trigger operation on this component, the computer device responds by displaying an information filtering window 902. This window includes at least one filtering option, including but not limited to filtering option 9021, 9022, and 9023. If the first object selects filtering option 9021 from the information filtering window 902, the computer device determines the target object from at least one object that has performed an interactive operation on the first object, according to the target object filtering strategy corresponding to filtering option 9021. For example, if the target object filtering strategy is to filter target objects that have performed comment operations from at least one object based on comment operations, then all target objects determined by the computer device are those that have performed comment operations on the first object. Furthermore, the computer device displays the operation information of the interactive operations performed on the target objects determined from multiple objects in the information filtering window.
[0106] It should be noted that Figures 8 and 9 are exemplary implementation processes for batch displaying and filtering at least one object that has performed interactive operations on a first object, provided by embodiments of this application. In practical applications, the specific implementation process for batch displaying and filtering at least one object can take other forms, and the schematic diagrams shown in Figures 8 and 9 above do not impose limitations. For example, the information filtering component displayed in the interactive details interface shown in Figure 9 is in the form of an input box. The first object can directly input filtering information in this input box. At this time, the computer device filters out the target object from multiple objects that have performed interactive operations on the first object based on the semantics of the filtering information. Furthermore, the information filtering window and the interactive details interface can be on the same interface. That is, the filtering options, the operation of selecting the filtering options, and the operation information of the interactive operations performed on the filtered target objects can all be directly displayed on the interactive details interface.
[0107] As described above, the historical interaction behavior of the second object with respect to the first object may include: interactive operations performed by the second object on the second media resource published by the first object, or follow operations performed by the second object on the first object. This application embodiment allows media applications to provide application functions related to historical interaction behavior, depending on the different historical interaction behaviors performed by the second object on the first object; by enriching the application functions related to historical interaction behavior, the stickiness of the object to the media application is improved to a certain extent. Specifically, the application functions related to the interactive operation of the second media resource may include: quickly triggering the display of the second media resource from the resource display interface of the first media resource; and quickly publishing a third media resource similar to the second media resource from the resource display interface of the first media resource. The application functions related to the follow operation may include: quickly following back the second object from the resource display interface of the first media resource. The specific implementation process of the application functions related to historical interaction behavior will be described in detail below, wherein:
[0108] (1) Application functions related to interactive operations with the second media resource include: quickly triggering the display of the second media resource from the resource display interface of the first media resource; by setting the entry point of the second media resource in the resource display interface of the first media resource, it can help the first object quickly trace back the second media resource to which the interactive operation was performed, improve the convenience of media resource tracing, and enhance the experience of the first object.
[0109] Specifically, this application embodiment supports displaying a resource entry component for a second media resource in the resource display interface of a first media resource. The second media resource is a media resource for which a second object that published the first media resource has historically performed interactive operations, and this second media resource was published by the first object. If the computer device detects that the resource entry component in the resource display interface of the first media resource has been triggered, indicating that the first object wants to trace back to which media resource the second object performed the interactive operation on, the computer device can quickly switch from the resource display interface of the first media resource to the resource display interface of the second media resource and play the second media resource in that resource display interface.
[0110] A schematic diagram illustrating how to quickly navigate back to a second media resource from the resource display interface of a first media resource is shown in Figure 10. As shown in Figure 10, a resource entry component 1001 is displayed in the resource display interface of the first media resource. When a first object performs a trigger operation on the resource entry component 1001, the computer device outputs the resource display interface 1002 of the second media resource on the display screen. It should be noted that, in addition to the method shown in Figure 10, the operation of navigating back to the second media resource from the resource display interface of the first media resource can also be in other ways, such as quickly jumping from the resource display interface of the first media resource to the resource display interface of the second media resource through gesture operation. This application embodiment does not limit the operation method of navigating back to the resource display interface of the second media resource from the resource display interface of the first media resource.
[0111] (2) Application functions related to interactive operations with the second media resource include: quickly publishing a third media resource similar to the second media resource from the resource display interface of the first media resource. When the first object knows that the second object has performed an interactive operation on the second media resource it published, the first object may want to publish a third media resource similar to the second media resource to increase interaction with other objects in the media application. Therefore, this application embodiment supports the first object to quickly initiate the creation and publication of a third media resource from the resource display interface of the first media resource. Compared with creating and publishing a third media resource from a dedicated media resource creation path in the media application, this shortens the operation path for creating and publishing the third media resource, thereby improving the efficiency of creating and publishing the third media resource.
[0112] Specifically, the resource display interface of the first media resource also displays a resource publishing component. When the first object triggers an operation on this resource publishing component, the computer device outputs a resource publishing interface on the display screen based on the trigger operation. This resource publishing interface is an editing interface for publishing a third media resource similar to the second media resource. Specifically, this resource publishing interface may include a resource editing area, a resource details area, and editing prompts. Among these: ① The resource details area includes resource information of the second media resource, which may include, but is not limited to: the text information of the second media resource, the duration information of the second media resource, the theme information of the second media resource, the topic information carried by the second media resource, and the location address information of the second media resource, etc. The consideration for displaying the resource information of the second media resource in the resource details area is that the second media resource may be popular with other objects in the media application because it has resource information that attracts other objects. Therefore, displaying the resource information of the second media resource in the resource details area of the resource publishing interface can help the first object publish a third media resource similar to the second media resource based on this resource information, thereby increasing the popularity of the third media resource. ② The editing prompts are used to guide the first user to edit the third-party media resource in the resource editing area according to the resource information in the resource details area. ③ The resource editing area is a dedicated area for creating third-party media resources.
[0113] The first object can edit a third media resource in the resource editing area. Specifically, the first object can edit the third media resource in the resource editing area according to the resource information of the second media resource in the resource details area. The computer device receives the third media resource edited by the first object in the resource editing area and displays the edited resource content of the second media resource in real time at the corresponding position in the resource editing area. Furthermore, when the first object performs a publishing operation on the edited third media resource in the resource publishing interface, the computer device responds to the publishing operation of the first object on the third media resource and publishes the third media resource in the media application. The publishing operation performed by the first object on the third media resource in the resource publishing interface may include a trigger operation on the publishing option in the resource publishing interface. The specific operation process of the publishing operation is not limited in this embodiment.
[0114] Figure 11 illustrates an exemplary method for quickly initiating the editing of a third media resource from the resource display interface of a first media resource. As shown in Figure 11, the resource display interface of the first media resource includes a resource publishing component 1101. When the resource publishing component 1101 is triggered, a resource publishing interface 1102 is output. The resource publishing interface 1102 includes a resource editing area 1103, a resource details area 1104, and editing prompts 1105. The resource details area 1104 includes resource information of the second media resource. Thus, the first object can create a third media resource in the resource editing area 1103 based on the editing prompts 1105 and the resource information in the resource details area 1104. The resource publishing interface 1102 also includes a publishing option 1106. When the computer device detects that the publishing option 1106 has been triggered, it creates and publishes the third media information.
[0115] (3) Application functions related to the follow operation may include: quickly following a second object from the resource display interface of the first media resource. Here, following a second object means that when the second object has already followed the first object, the first object also follows the second object.
[0116] Specifically, a first prompt message (or social relationship establishment component) is displayed on the resource display interface of the first media resource. This first prompt message (social relationship establishment component) is used to prompt the first object to establish a social relationship between the first object and the second object, such as the first prompt message being "follow back". When the first object wants to establish a social relationship with the second object, the first object can perform a confirmation operation on the first prompt message (such as clicking on the first prompt message). The computer device responds to the first object's confirmation operation on the first prompt message and detects that the second object has previously performed a follow operation on the first object. Then, the computer device establishes a mutual follow social relationship between the first object and the second object and outputs a second prompt message. This second prompt message is used to indicate that the social relationship between the second object and the first object has been successfully established. Therefore, when the first object knows that the first media resource was published by a second object that has previously followed it, this embodiment of the application displays a first prompt message on the resource display interface of the first media resource to prompt the establishment of a social relationship (i.e., a mutual follow relationship) between the first object and the second object. To a certain extent, this can increase the probability of the first object performing an interactive operation on the second object, thereby increasing the willingness of objects in the media application to establish social relationships.
[0117] An exemplary diagram illustrating the quick follow-back of a second object in the resource display interface of a first media resource can be found in Figure 12. As shown in Figure 12, a first prompt message 1201 is displayed in the resource display interface of the first media resource. When the computer device detects a confirmation operation for the first prompt message 1201, it indicates that the first object wants to follow back the second object. The computer device then establishes a social relationship between the first object and the second object and outputs a second prompt message 1202, which indicates that a social relationship has been successfully established between the first object and the second object.
[0118] In summary, the embodiments of this application support recommending first media resources published by a second object that has previously interacted with a first object to the first object. This not only improves the relevance and personalization between the recommended media resources and the first object by recommending first media resources published by a second object that has interacted with the first object based on the first object's historical interaction behavior, but also encourages further interaction between the first and second objects by recommending first media resources published by second objects that have interacted with the first object, thereby promoting interactivity between objects in the media application and enhancing the social experience.
[0119] Please refer to Figure 13, which shows a flowchart illustrating another media resource processing method provided in some embodiments of this application. This media resource processing method can be executed by an electronic device, which may include a first terminal 101, a second terminal 102, and a server 103 in the media resource processing system shown in Figure 1. The media resource processing method may include, but is not limited to, steps S1301-S1304:
[0120] S1301: In response to a resource request operation performed by the first object in the media application, obtain a list of historical interaction behaviors associated with the first object.
[0121] The historical interaction behavior list associated with the first object stores at least one interaction record data for each interaction operation performed on the first object. Each interaction record data includes: object information of the first object, object information of the object that performed the interaction operation on the first object, and operation information of the interaction operation performed by the object. This interaction record data can be represented in key-value (KV) data pair format or other storage formats. If the interaction record data is stored in KV data pair format, K is used to store the object information of the first object, and V is used to store the object information of the object that performed the interaction operation on the first object, as well as the information of the interaction operation performed by that object.
[0122] The process by which a computer device generates a list of historical interaction behaviors for a first object may include: when the computer device detects an interaction operation performed by any object on the first object, the computer device acquires the object information of that object, the operation information of the interaction operation, and the object information of the first object. Then, the computer device performs data preprocessing on the object information of that object, the operation information of the interaction operation, and the object information of the first object to obtain an interaction record associated with the first object. The data preprocessing performed on the object information of that object, the operation information of the interaction operation, and the object information of the first object may include, but is not limited to, data cleaning and data standardization. Data cleaning aims to perform operations such as deletion or interpolation on the object information of that object, the operation information of the interaction operation, and the object information of the first object to make the data clearer. Data standardization refers to the process of constructing the cleaned object information of that object, the operation information of the interaction operation, and the object information of the first object into a standard storage format of interaction record data. For example, if the interaction record data exists in the form of key-value pairs, then data standardization is the process of processing the cleaned object information of that object, the operation information of the interaction operation, and the object information of the first object into key-value pairs. Finally, the computer device generates a list of historical interaction behaviors associated with the first object based on the preprocessed interaction record data associated with the first object.
[0123] It is worth noting that the historical interaction behavior list created for the first object in this application embodiment can be in offline table form or online table form. In some embodiments, when the historical interaction behavior list associated with the first object is a periodically generated offline table, such as generating an offline historical interaction behavior list for the first object every 24 hours, the aforementioned computer device generating the historical interaction behavior list from the interaction record data associated with the first object after data preprocessing includes: the computer device storing the interaction record data in a high-performance object database; then, the computer device periodically (e.g., every 24 hours) retrieves one or more interaction record data associated with the first object from the high-performance object database, and constructs the historical interaction behavior list associated with the first object based on the retrieved one or more interaction record data. Therefore, on the one hand, generating an offline table form of historical interaction behavior list for the first object fully considers the characteristic of low real-time requirements in media resource processing scenarios, which can effectively reduce the occupancy rate of computer device computing resources, thereby improving the computing performance of the computer device. On the other hand, the application embodiment uses high-performance object databases and data preprocessing technologies, which can effectively ensure the real-time and accuracy of media resource recommendations, improving object experience and platform stickiness.
[0124] In some embodiments, when the historical interaction behavior list associated with the first object is an online table, that is, an online table updated in real time based on the object's interaction record data; the aforementioned computer device generating the historical interaction behavior list based on a preprocessed interaction record data associated with the first object includes: storing the preprocessed interaction record data associated with the first object in real time into the historical interaction behavior list associated with the first object, thereby achieving real-time updates to the historical interaction behavior list. The online table format of the historical interaction behavior list enables media resource retrieval, greatly improving resource retrieval efficiency.
[0125] S1302: Retrieve a media recommendation list from the media database based on the historical interaction behavior list.
[0126] S1303: Generate a media resource stream based on the media recommendation list and output the media resource stream.
[0127] In steps S1302-S1303, after the computer device obtains the historical interaction behavior list associated with the first object based on the aforementioned step S1302, it can retrieve the media resources published by each object that has performed interactive operations on the first object from the media database according to the interaction record data in the historical interaction behavior list. These media resources constitute a media recommendation list.
[0128] As mentioned above, the interaction record data contains object information, such as object identifiers, of objects that have performed interactive operations on the first object. The computer device can then use this object identifier to find the most recently published media resource for that object in the media database. This media resource is added to the media recommendation list; specifically, its resource identifier is added to the list. Next, the computer device obtains the first object's historical access data, which includes data on the first object's interactive operations during a historical time period and its interests. Based on this historical access data, the computer device can sort the media resources in the media recommendation list to generate a media resource stream. In other words, this embodiment of the application, based on the aforementioned steps to obtain the media recommendation list, further sorts the list using the first object's historical access data to obtain the final media resource stream displayed to the first object. The sorting of the media recommendation list based on the first object's historical access data may include, but is not limited to: adjusting the order of media resources in the media recommendation list (specifically, the order of the resource identifiers of the media resources) (e.g., placing media resources that are closer to the first object's interests and preferences at the top, and placing media resources that are significantly different from the first object's interests and preferences at the bottom), and inserting media resources published by other objects that have not performed any interactive operations on the first object into the media recommendation list.
[0129] To facilitate understanding of the background process of the media resource processing method executed by the computer device in steps S1301-S1303 described above, the background process of the media resource processing scheme is given below with reference to Figure 14. As shown in Figure 14, on the one hand, the terminal held by the second object (such as the second terminal 102) reports the operation information of the interactive operation performed by the second object on the first object. After receiving the operation information of the interactive operation performed by the second object, the server processes the operation information of the interactive operation to generate interactive record data. This interactive record data is stored in the high-performance object database so that the computer device can retrieve the interactive record data from the high-performance object database to generate an online or offline historical interactive behavior list associated with the first object. On the other hand, when the terminal held by the first object (such as the first terminal 101) receives a resource request operation performed by the first object in the media application, the server recalls media resources from the media database to construct a media recommendation list based on the interactive record data in the historical interactive behavior list. The server further combines the historical access data of the first object to sort the media recommendation list and generate a media resource stream. The server returns the media resource stream to the terminal held by the first object for streaming playback. It is worth noting that, in the embodiments of this application, the first object can refer to an object in a media application whose number of followers (i.e., the number of people following the object) is less than a certain threshold; for example, if the threshold is 1000, the first object refers to an object with fewer than 1000 followers. Since the first object has a relatively small number of followers, when recommending a first media resource published by a second object that has interacted with the first object, the first object may be more interested in the first media resource than an object with a large number of followers.
[0130] Therefore, this application embodiment supports real-time analysis of the interaction operations of the second object with respect to the first object to quickly generate a list of historical interaction behaviors and a media recommendation list, thereby realizing media resource recommendation. Compared with complex collaborative filtering and deep learning models, it has advantages such as relatively simple implementation logic and ease of deployment and maintenance. Furthermore, when generating the media resource stream, this application embodiment supports combining the recommendation list of the first object to improve the relevance between the media resources in the media resource stream and the first object, thereby enhancing the viewing experience of the first object for the media resources in the media resource stream.
[0131] It should be noted that the interface implementation process of the computer device responding to the resource request operation performed by the first object in the media application and outputting the media resource stream shown in steps S1301-S1303 is the same as the specific implementation process shown in step S201 in the embodiment shown in Figure 2 above. Please refer to the relevant description of the specific implementation process shown in step S201, which will not be repeated here.
[0132] S1304: During the sequential playback of multiple media resources in the media resource stream, when the first media resource is played, a recommendation reason for recommending the first media resource is displayed in the resource display interface of the first media resource. The recommendation reason includes information describing the historical interaction behavior.
[0133] It should be noted that the specific implementation process shown in step S1304 is the same as the specific implementation process shown in step S202 in the embodiment shown in Figure 2. Please refer to the relevant description of the specific implementation process shown in step S202 above, which will not be repeated here.
[0134] It should also be noted that, as can be seen from the aforementioned construction process of the media resource stream, the media resource stream may include some media resources published by objects that have not performed interactive operations on the first object; therefore, the media resource stream provided in the above embodiments of this application can be called the first media resource stream, and the first media resource stream can be any one of the following two types of media resource streams: (1) only including media resources published by objects that have performed interactive operations on the first object, (2) including both media resources published by objects that have performed interactive operations on the first object and media resources published by objects that have not performed interactive operations on the first object.
[0135] To accommodate the different viewing needs of the first user for media resources, this application embodiment supports the first user's independent selection of the media resource stream to be played. Specifically, during the output of the media resource stream, if the computer device detects a resource switching operation for the media resource stream during the output of the first media resource stream, the computer device displays a resource stream selection window. The resource stream selection window includes a first stream option and a second stream option. The first stream option corresponds to the first media resource stream, and the second stream option corresponds to the second media resource stream. The second media resource stream is the other of the two media resource streams mentioned above. That is, the first media resource stream and the second media resource stream each correspond to one of the two media resource streams mentioned above. When the computer device detects that the second stream option has been triggered, it outputs the second media resource stream. Through the above process, the first user can achieve seamless switching between the first media resource stream and the second media resource stream, satisfying the first user's different media resource playback needs while also improving the first user's resource viewing experience. For example, a schematic diagram of performing a resource switching operation for a media resource stream can be seen in Figure 15; as shown in Figure 15, assume that the media application is playing media resources in the first media resource stream. When the first object performs a resource switching operation on the first media resource stream, such as triggering application option 1501, a resource stream selection window 1502 is output. The resource stream selection window 1502 includes a first stream option 15021 and a second stream option 15022. When the second stream option 15022 in the resource stream selection window 1502 is triggered, the media application outputs the media resources from the second media resource stream.
[0136] In summary, the embodiments of this application support recommending first media resources published by a second object that has previously interacted with a first object to the first object; not only based on the historical interaction behavior of other objects with the first object, recommending second media resources published by second objects that have interacted with the first object, thus improving the relevance and personalization between the media resources recommended to the first object and the first object, but also by recommending second media resources of second objects that have interacted with the first object, further interaction between the first object and the second object is encouraged, promoting the interactivity between objects in the media application, thereby enhancing the social experience.
[0137] The methods of the embodiments of this application have been described in detail above. To facilitate better implementation of the above-described solutions of the embodiments of this application, the apparatus of the embodiments of this application is provided below. In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0138] Figure 16 shows a schematic diagram of a media resource processing apparatus provided in some embodiments of this application; this media resource processing apparatus can be used to perform some or all of the steps in the method embodiments shown in Figures 2 and 13. Referring to Figure 16, the apparatus includes the following units:
[0139] Display unit 1601 is configured to respond to a resource request operation performed by a first object in a media application, and obtain a first media resource stream, wherein the first media resource stream includes multiple media resources, and the multiple media resources include a first media resource published by a second object in a media application, and the second object has historical interaction behavior with the first object;
[0140] The processing unit 1602 is configured to, during the sequential playback of multiple media resources in the first media resource stream, when playing the first media resource, display a recommendation reason for recommending the first media resource in the resource display interface of the first media resource, wherein the recommendation reason includes information describing the historical interaction behavior.
[0141] According to some embodiments of this application, the various units in the media resource processing apparatus shown in FIG16 can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This can achieve the same operation without affecting the technical effect of the embodiments of this application. The above units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the media resource processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by multiple units working together. According to some other embodiments of this application, the media resource processing apparatus shown in FIG16 and the media resource processing method of the embodiments of this application can be constructed by running a computer program (including program code) capable of executing the steps involved in the corresponding methods shown in FIG2 and FIG13 on a general-purpose computing device including processing elements and storage elements such as a central processing unit (CPU), random access storage medium (RAM), and read-only storage medium (ROM). Computer programs can be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and run therein.
[0142] Figure 17 shows a schematic diagram of the structure of a computer device provided in some embodiments of this application. Referring to Figure 17, the computer device includes a processor 1701, a communication interface 1702, and a computer-readable storage medium 1703. The processor 1701, communication interface 1702, and computer-readable storage medium 1703 can be connected via a bus or other means. The communication interface 1702 is used to receive and send data. The computer-readable storage medium 1703 can be stored in the memory of the computer device and is used to store computer programs. The processor 1701 is used to execute the computer programs stored in the computer-readable storage medium 1703. The processor 1701 (or CPU (Central Processing Unit)) is the computing and control core of the computer device, suitable for implementing one or more computer programs, specifically suitable for loading and executing one or more computer programs to achieve corresponding method flows or corresponding functions.
[0143] This application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both built-in storage media in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the processing system of the computer device. Furthermore, one or more computer programs suitable for loading and execution by the processor 1701 are also stored in this storage space. It should be noted that the computer-readable storage medium here can be high-speed RAM memory or non-volatile memory, such as at least one disk storage device; in some embodiments, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.
[0144] In some embodiments, a computer-readable storage medium stores one or more computer programs; the processor 1701 loads and executes one or more computer programs stored in the computer-readable storage medium to implement the corresponding steps in the above-described media resource processing method embodiments; in specific implementations, one or more computer programs in the computer-readable storage medium are loaded and executed by the processor 1701 to perform the steps of the embodiments of this application.
[0145] Based on the same inventive concept, the principle and beneficial effects of the computer device provided in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the media resource processing method in the embodiments of this application in solving the problem. Please refer to the principle and beneficial effects of the implementation of the method. For the sake of brevity, they will not be repeated here.
[0146] This application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described media resource processing method.
[0147] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0148] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. A computer program product includes one or more computer programs. When a computer program is loaded and executed on a computer device, the computer program performs the processes or functions described above in the embodiments of this application. The computer device can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in or transmitted through a computer-readable storage medium. The computer program can be transmitted from one website, computer device, server, or data center to another website, computer device, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium accessible to the computer device or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0149] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A media resource processing method, executed by an electronic device, comprising: In response to a resource request operation performed by a first object in a media application, a first media resource stream is obtained, the first media resource stream including multiple media resources, the multiple media resources including a first media resource published by a second object in the media application, the second object having historical interaction behavior with the first object; During the sequential playback of multiple media resources in the first media resource stream, when the first media resource is played, a recommendation reason for recommending the first media resource is displayed in the resource display interface of the first media resource. The recommendation reason includes information describing the historical interaction behavior.
2. The method as described in claim 1, wherein, The historical interaction behavior includes at least one of the following: the following operation performed by the second object on the account of the first object; and at least one of the following operations performed by the second object on the second media resource published by the first object: liking, commenting, sharing, and collecting. The information on the historical interaction behavior includes at least one of the following: interaction type information, number of interactions, information on the second media resource, and interaction time.
3. The method as described in claim 1 or 2, wherein, The step of displaying the reasons for recommending the first media resource in the resource display interface of the first media resource includes: The recommendation reasons are displayed in the form of special effects animation in the resource display interface of the first media resource; The presentation of the special effects animation is related to at least one of the following: the geographical location relationship between the first object and the second object, the social relationship between the first object and the second object, the operation duration of the historical interaction behavior, and the media interest relationship between the first object and the second object.
4. The method of any one of claims 1 to 3, further comprising: The resource display interface of the first media resource displays animations related to the historical interactive behavior.
5. The method of claim 4, wherein, The animation style presented in the animation is related to the type of the historical interaction behavior.
6. The method according to any one of claims 1 to 5, wherein, The resource display interface also displays a historical interaction viewing component, and the method further includes: When the historical interaction viewing component is triggered, the interaction details interface is displayed; The interaction details interface displays the object identifier of at least one object that has historical interaction behavior with the first object; the second object is included among the at least one of the objects. In response to a selection operation for an object identifier of any of the at least one object, information about the historical interaction behavior performed by that object against the first object is displayed.
7. The method of claim 6, wherein, The interactive details interface includes an information filtering component, and the method further includes: When the information filtering component is triggered, an information filtering window is displayed; the information filtering window includes at least one filtering option, and each filtering option corresponds to an object filtering strategy. In response to the selection of a target filter option among the at least one filter options, information on the historical interaction behavior performed by at least one target object against the first object is displayed in the interaction details interface; the at least one target object is selected from the at least one object according to the target object filtering strategy corresponding to the target filter option.
8. The method according to any one of claims 1 to 7, wherein, The historical interaction behaviors include: interactive operations performed by the second object on the second media resource published by the first object; the resource display interface also displays the entry component of the second media resource; the method further includes: If the entry component is triggered, the second media resource published by the first object is displayed.
9. The method of claim 8, wherein, The resource display interface also displays a resource publishing component, and the method further includes: Based on the triggered operation of the resource publishing component, a resource publishing interface is output; the resource publishing interface includes a resource editing area, a resource details area, and editing prompts; the resource details area includes information about the second media resource; the editing prompts are used to prompt the user to edit the third media resource in the resource editing area according to the information in the resource details area. Receive the third media resource being edited in the resource editing area; In response to the publishing operation of the third media resource, the third media resource is published in the media application.
10. The method according to any one of claims 1 to 9, wherein, The historical interaction behavior includes: the follow operation performed by the second object on the account of the first object, and the method further includes: The resource display interface displays a first prompt message, which is used to prompt the establishment of a social relationship between the second object; In response to the confirmation operation of the first prompt message, a second prompt message is output; the second prompt message is used to indicate that the social relationship between the second object and the first object has been successfully established.
11. The method according to any one of claims 1 to 10, wherein, The first media resource stream is any one of the following two media resource streams: This includes only media resources published by objects that have a history of interaction with the first object; or This includes media resources published by objects that have historical interaction behavior with the first object, and media resources published by objects that do not have historical interaction behavior with the first object; The method further includes: In response to a resource switching operation, a resource stream selection window is displayed, which includes a first stream option and a second stream option; the first stream option corresponds to the first media resource stream, and the second stream option corresponds to the second media resource stream, which is the other of the two media resource streams. When the second stream option is triggered, the second media resource stream is output.
12. The method of any one of claims 1 to 11, further comprising: Retrieve the list of historical interaction behaviors associated with the first object; The list of historical interaction behaviors includes at least one interaction record associated with the first object; Each interaction record includes: object information of the first object, object information of the object performing the interaction behavior on the first object, and information of the interaction behavior; the object performing the interaction behavior on the first object includes the second object; Based on the historical interaction behavior list, a media recommendation list is retrieved from the media database; the media recommendation list includes: media resources published by each object that performs an interaction behavior against the first object, and the media resources include the first media resources published by the second object; The media resource stream is generated based on the media recommendation list.
13. The method of claim 12, wherein, The process of generating the list of historical interaction behaviors associated with the first object includes: When any interaction behavior of any object is detected with respect to the first object, the object information of the object, the information of the interaction behavior, and the object information of the first object are obtained. Data preprocessing is performed on the object information of any one of the objects, the information of the interaction behavior, and the object information of the first object to obtain an interaction record data associated with the first object; wherein, the interaction record data is stored in the form of key-value data pairs, with the object information of the first object as the key, and the information of the interaction behavior and the object information of any one of the objects as the value; The historical interaction behavior list is generated based on the interaction record data.
14. The method of claim 13, wherein, The list of historical interaction behaviors is an offline table generated periodically; The step of generating the historical interaction behavior list based on the interaction record data includes: The interaction record data is stored in the object database; Periodically retrieve one or more interaction record data associated with the first object from the object database; The historical interaction behavior list is constructed based on one or more interaction record data.
15. The method of claim 13, wherein the historical interaction behavior list is an online table, and generating the historical interaction behavior list based on the interaction record data includes: One interaction record associated with the first object is stored in real time in the historical interaction behavior list associated with the first object.
16. The method as claimed in any one of claims 12 to 15, wherein, The step of generating the media resource stream based on the media recommendation list includes: Obtain the historical access data of the first object; Based on the historical access data of the first object, the media resources in the media recommendation list are sorted to generate the media resource stream.
17. A media resource processing device, comprising: The display unit is configured to, in response to a resource request operation performed by a first object in a media application, acquire a first media resource stream, wherein the first media resource stream includes multiple media resources, and the multiple media resources include a first media resource published by a second object in the media application, wherein the second object has historical interaction behavior with the first object; The processing unit is configured to, during the sequential playback of multiple media resources of the first media resource stream, when playing the first media resource, display a recommendation reason for recommending the first media resource in the resource display interface of the first media resource, wherein the recommendation reason includes information describing the historical interaction behavior.
18. A computer device, comprising: A processor, adapted to execute computer programs; A computer-readable storage medium storing a computer program, which, when executed by the processor, implements the media resource processing method as described in any one of claims 1-16.
19. A computer-readable storage medium storing a computer application program, which, when executed, implements the media resource processing method as described in any one of claims 1-16.
20. A computer program product comprising a computer program that, when executed by a processor, implements the media resource processing method as described in any one of claims 1-16.