Media content display, deduplication methods, devices, equipment and storage media

By displaying different states of target media content on the media content display page and using a database to distinguish and store users' media content identifiers, the need for the same user to display preset types of media content multiple times is solved, thus improving the user experience.

CN116226420BActive Publication Date: 2026-07-17BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2023-03-22
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies cannot meet the need to display preset types of media content to the same user again or even multiple times, resulting in a poor user experience.

Method used

By displaying the first or second display state of the target media content on the media content display page, deduplication is performed using the first and second databases, and the media content identifiers of users are stored according to preset durations, enabling multiple displays of preset types of media content.

Benefits of technology

This allows the same user to view preset types of media content multiple times, improving the user's media content browsing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116226420B_ABST
    Figure CN116226420B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, device, and storage medium for media content display and deduplication. The method includes: displaying target media content in a first display state on a media content display page based on a first media content stream. Upon receiving a media content stream request triggered by a first user, and based on the target media content meeting a first preset condition, displaying the target media content in either the first display state or the second display state on the media content display page in the form of a second media content stream. Therefore, in this embodiment, the same target media content can be displayed multiple times for the same user, improving the user's media content browsing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing, and in particular to a media content display, deduplication method, apparatus, device, and storage medium. Background Technology

[0002] Currently, in media content display scenarios, in order to avoid users viewing recently displayed media content and to ensure the user's viewing experience, the server usually needs to perform deduplication processing on the media content that the current user has recently viewed before returning the media content stream to the client.

[0003] However, for certain types of media content, such as interactive unlockable works, there may be a need for the same user to view the same media content again or even multiple times. If deduplication is still implemented using the methods described above, it will not be able to meet the need for the same user to view the same type of media content again or even multiple times. Therefore, how to meet the display needs of the aforementioned types of media content is a technical problem that urgently needs to be solved. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides a method for displaying and deduplicating media content.

[0005] In a first aspect, this disclosure provides a method for displaying media content, the method comprising:

[0006] On the media content display page, the target media content in the first display state is displayed based on the first media content stream;

[0007] In response to a media content stream request triggered by a first user, and based on the target media content meeting a first preset condition, the target media content in the first display state or the target media content in the second display state is displayed on the media content display page; wherein, the target media content belongs to a second media content stream, and the target media content in the second display state is converted from the target media content in the first display state, and the conversion is based on a target operation triggered by the first user and / or the target media content meeting the second preset condition.

[0008] Optionally, the target media content in the first display state includes an image of the target media content after blurring, and the target media content in the second display state includes an image of the target media content without blurring.

[0009] Optionally, the media content stream request is used to perform deduplication processing on the media content in the obtained initial media content stream based on a first database and a second database to obtain a second media content stream. The first database stores the identifiers of preset type media content displayed by the first user within a preset first time period from the current time point, and the second database stores the identifiers of media content displayed by the first user within a preset second time period from the current time point. The preset first time period is less than the preset second time period, and the target media content belongs to the preset type media content.

[0010] Optionally, before displaying the target media content in the first display state or the target media content in the second display state on the media content display page, the method further includes:

[0011] In response to a media content stream request triggered by the first user, the system receives the second media content stream returned by the target server.

[0012] Based on client-side data backup, the second media content stream is deduplicated to obtain a locally deduplicated second media content stream; wherein, the client-side data backup includes identifiers of preset type media content displayed by the first user within a preset first time period from the current time point and identifiers of media content displayed within a preset second time period from the current time point; wherein, the target media content belongs to the locally deduplicated second media content stream.

[0013] Optionally, after displaying the target media content in the first display state based on the first media content stream on the media content display page, the method further includes:

[0014] A media content status synchronization message carrying the identifier of the preset type of media content and the identifier of the target media content is sent to the target server; wherein, the target server is used to store the identifier of the target media content in the first database based on the identifier of the preset type of media content.

[0015] Optionally, after displaying the target media content in the first display state based on the first media content stream on the media content display page, the method further includes:

[0016] Based on the identifier of the preset type of media content and the preset first duration, the identifier of the target media content is stored in a preset backup database.

[0017] Secondly, this disclosure provides a method for deduplicating media content, the method comprising:

[0018] In response to a media content stream request from the first user, obtain the initial media content stream;

[0019] Based on the first database and the second database, the media content in the initial media content stream is deduplicated to obtain a deduplicated media content stream; wherein, the first database stores the identifiers of the preset type of media content displayed by the first user within a preset first time period from the current time point, and the second database stores the identifiers of the media content displayed by the first user within a preset second time period from the current time point, wherein the preset first time period is shorter than the preset second time period.

[0020] The media content stream request returns the deduplicated media content stream.

[0021] Optionally, before performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain the deduplicated media content stream, the process further includes:

[0022] Receive a media content status synchronization message from the first user; wherein the media content status synchronization message carries an identifier of the displayed media content and a type identifier of the displayed media content, the type identifier being used to identify whether the displayed media content belongs to the preset type of media content;

[0023] The media content status synchronization message is parsed. If it is determined that the displayed media content belongs to the preset type of media content, the identifier of the displayed media content is stored in the first database; otherwise, the identifier of the displayed media content is stored in the second database.

[0024] Optionally, the method further includes:

[0025] Delete the identifier in the first database that displays media content of the preset type that is more than the preset first duration from the current time.

[0026] In addition, the identifiers of media content displayed in the second database that are more than the preset second duration from the current time are deleted.

[0027] Optionally, the step of performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain a deduplicated media content stream includes:

[0028] When it is determined that the media content stream request meets the preset deduplication conditions, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream; wherein, the preset deduplication conditions are determined based on the deduplication processing requirements for the preset type of media content.

[0029] Optionally, the preset deduplication condition is that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content; before determining that the media content stream request meets the preset deduplication condition, and performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain the deduplicated media content stream, the method further includes:

[0030] The media content stream request is parsed to determine whether the media content stream request carries a preset deduplication status identifier; wherein, the preset deduplication status identifier is used to indicate that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content;

[0031] Accordingly, when it is determined that the media content stream request meets the preset deduplication conditions, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream, including:

[0032] When it is determined that the media content stream request carries the preset deduplication status identifier, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream.

[0033] Optionally, the preset type of media content includes blurred media content; the preset deduplication scenario corresponding to the blurred media content includes the first user publishing the blurred media content within a preset third time period from the current time.

[0034] Optionally, before performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain the deduplicated media content stream, the process further includes:

[0035] The media content in the initial media content stream is deduplicated based on the third database to obtain the initial deduplicated media content stream; wherein, the third database stores the identifiers of the media content sent by the first user within a preset fourth time period, and the preset fourth time period is less than the preset first time period.

[0036] Optionally, the media content stream request carries a client data backup, which includes identifiers of preset type media content played by the first user within a preset first duration from the current time and identifiers of media content played within a preset second duration from the current time; the step of deduplicating the media content in the initial media content stream based on the first database and the second database to obtain a deduplicated media content stream includes:

[0037] Based on the first database, the second database, and the client data backup, the media content in the initial media content stream is deduplicated to obtain the deduplicated media content stream.

[0038] Thirdly, this disclosure also provides a media content display device, the device comprising:

[0039] The first display module is used to display the target media content in the first display state on the media content display page based on the first media content stream;

[0040] The second display module is configured to respond to a media content stream request triggered by a first user, and display the target media content in either the first display state or the second display state on the media content display page based on the target media content meeting a first preset condition; wherein the target media content belongs to a second media content stream, and the target media content in the second display state is converted from the target media content in the first display state, the conversion being based on a target operation triggered by the first user and / or the target media content meeting the second preset condition.

[0041] Fourthly, this disclosure also provides a media content deduplication processing device, the device comprising:

[0042] The first acquisition module is used to acquire the initial media content stream in response to a media content stream request from the first user;

[0043] The first deduplication processing module is used to perform deduplication processing on the media content in the initial media content stream based on a first database and a second database to obtain a deduplicated media content stream; wherein, the first database stores the identifiers of the preset type of media content displayed by the first user within a preset first time period from the current time point, and the second database stores the identifiers of the media content displayed by the first user within a preset second time period from the current time point, wherein the preset first time period is shorter than the preset second time period;

[0044] The media content return module is used to return the deduplicated media content stream in response to the media content stream request.

[0045] Fifthly, this disclosure provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the above-described method.

[0046] In a sixth aspect, this disclosure provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described above.

[0047] In a seventh aspect, this disclosure provides a computer program product comprising a computer program / instructions that, when executed by a processor, implement the method described above.

[0048] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:

[0049] This disclosure provides a media content display method. Specifically, on a media content display page, target media content in a first display state is displayed based on a first media content stream. Upon receiving a media content stream request triggered by a first user, based on the target media content meeting a first preset condition, the target media content in either the first or second display state is displayed on the media content display page in the form of a second media content stream. Therefore, this disclosure allows for multiple displays of the same target media content to the same user, improving the user's media content browsing experience. Attached Figure Description

[0050] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0051] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 A flowchart illustrating a media content display method provided in this embodiment of the disclosure;

[0053] Figure 2 A flowchart of a media content deduplication method provided in this embodiment of the disclosure;

[0054] Figure 3 This is a schematic diagram of the structure of a media content display device provided in an embodiment of the present disclosure;

[0055] Figure 4 This is a schematic diagram of the structure of a media content deduplication processing device provided in an embodiment of the present disclosure;

[0056] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0057] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0058] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0059] In practical applications, when a user requests a media content stream through a client, the target server needs to filter out media content that has already been displayed to the user before returning the media content stream. This is to prevent the user from seeing repeated media content that has been displayed recently, thereby improving the user's media content browsing experience. This process can be called deduplication.

[0060] However, for certain types of media content, such as interactive unlockable works, there may be a need for the same user to view the same media content again. That is, it is desirable to support the display of recently viewed media content to meet the user's interactive need to browse the same media content again.

[0061] Therefore, this disclosure provides a media content display method. Specifically, on a media content display page, target media content in a first display state is displayed based on a first media content stream. Upon receiving a media content stream request triggered by a first user, based on the target media content meeting a first preset condition, the target media content in either the first display state or the second display state is displayed on the media content display page in the form of a second media content stream. It is evident that this disclosure embodiment can fulfill the requirement of displaying the same target media content multiple times to the same user, thus improving the user's media content browsing experience.

[0062] In addition, regarding the above deduplication process, it is a problem that needs to be solved to achieve the deduplication process so that the above-preset media content can be displayed to the same user again or even multiple times.

[0063] Therefore, in the media content deduplication method provided in this embodiment, upon receiving a media content stream request from a first user, an initial media content stream is first obtained. Then, deduplication processing is performed on the media content in the initial media content stream based on a first database and a second database to obtain a deduplicated media content stream. The first database stores identifiers of preset types of media content displayed by the first user within a preset first time period from the current time, and the second database stores identifiers of media content played by the first user within a preset second time period from the current time. The preset first time period is shorter than the preset second time period. Furthermore, the deduplicated media content stream is returned in response to the aforementioned media content stream request.

[0064] As can be seen, this embodiment of the present disclosure utilizes the identifiers of preset type media content that the first user has displayed within a preset first time period from the current point in time to perform deduplication processing on the preset type media content requested by the first user. Since the preset first time period is less than the deduplication time period for other types of media content (i.e., the preset second time period), this embodiment of the present disclosure can remove deduplication for some preset type media content that has been displayed recently, so that users can browse some preset type media content that has been displayed recently, thus satisfying users' display needs for preset type media content.

[0065] Based on this, this disclosure provides a media content deduplication method applied to a client, the method comprising:

[0066] S101: On the media content display page, the target media content in the first display state is displayed based on the first media content stream.

[0067] The media content deduplication method provided in this disclosure is applied to a client, which may include a client deployed on a smartphone, a client deployed on a tablet, etc., and supports functions such as user-triggered acquisition of media content streams.

[0068] In this embodiment of the disclosure, the target media content can be a target video, a target image, a target graphic content, a target article content, etc., and the first media content stream can be any one of multiple media content streams, with the target media content belonging to the first media content stream.

[0069] In this embodiment of the disclosure, the target media content in the first display state may include an image of the target media content after blurring, such as an image after Gaussian blurring, an image in a mosaic state, etc.

[0070] S102: In response to a media content stream request triggered by a first user, based on the target media content meeting a first preset condition, display the target media content in the first display state or the target media content in the second display state on the media content display page.

[0071] The target media content belongs to the second media content stream, and the target media content in the second display state is converted from the target media content in the first display state. The conversion is based on the target operation triggered by the first user and / or the target media content meeting the second preset condition.

[0072] In this embodiment of the disclosure, the target media content satisfies a first preset condition, which may include a preset condition that the target media content is triggered to be displayed again within a preset time period for the same user; or a preset condition that the target media content is triggered to be displayed again for the same user after a target operation on the target media content is triggered.

[0073] In one optional implementation, assuming the target media content has already been displayed to a first user based on a first media content stream, when the first user triggers a media content stream request, a second media content stream including the target media content can also be obtained. If the target media content stream meets a first preset condition, the target media content in the first display state can be displayed again to the first user on the media content display page to satisfy the first user's need to browse the target media content again. The first preset condition for the target media content stream to meet the target media content stream may include a preset condition for the first user that the target media content is triggered to be displayed again within a preset time period.

[0074] In another optional implementation, assuming the target media content has already been displayed to the first user based on the first media content stream, when the first user triggers a media content stream request, a second media content stream including the target media content can also be obtained. If the target media content stream meets a first preset condition, the target media content in a second display state can be displayed again to the first user on the media content display page to satisfy the first user's need to browse the target media content again. The first preset condition for the target media content stream to meet the target media content can include, for the first user, triggering a preset condition for displaying the target media content again after triggering a target operation on the target media content.

[0075] In this embodiment of the disclosure, the target media content of the second display state can be obtained by converting the target media content of the first display state. For example, the target media content of the first display state includes an image of the target media content after blurring, and the target media content of the second display state can include an image of the target media content without blurring. That is, the target media content of the second display state is an image of the target media content without blurring obtained by converting the image of the target media content after blurring. Specifically, the conversion of the target media content of the first display state into the target media content of the second display state can be based on a target operation triggered by a first user, such as an unlock operation triggered by a first user; or it can be triggered when the target media content meets a second preset condition, such as when the target media content has been published for a preset duration (e.g., 48 hours).

[0076] In the media content display method provided in this embodiment, target media content in a first display state is displayed on the media content display page based on a first media content stream. Upon receiving a media content stream request triggered by a first user, based on the target media content meeting a first preset condition, the target media content in either the first display state or the second display state is displayed on the media content display page in the form of a second media content stream. Therefore, in this embodiment, the requirement to display the same target media content multiple times to the same user can be met, improving the user's media content browsing experience.

[0077] Based on the above embodiments, in response to a media content stream request triggered by a first user, the client sends the media content stream request to the target server. Upon receiving the media content stream request, the target server can obtain an initial media content stream for that request. Then, based on a first database and a second database, it performs deduplication processing on the media content in the obtained initial media content stream to obtain a deduplicated media content stream, i.e., a second media content stream. The first database stores identifiers of preset types of media content displayed by the first user within a preset first time period from the current time, and the second database stores identifiers of media content displayed by the first user within a preset second time period from the current time. The preset first time period is shorter than the preset second time period.

[0078] In this embodiment, the client can send a media content status synchronization message carrying an identifier of a preset type of media content and an identifier of the target media content to the target server. When the target server receives the media content status synchronization message from the client, it parses the message to determine whether the target media content belongs to the preset type of media content. If the target media content is determined to belong to the preset type of media content, the identifier of the target media content is stored in a first database; otherwise, the identifier of the target media content is stored in a second database.

[0079] Due to issues such as unstable client network, the media content identifier may not be synchronized to the target server in a timely manner after the media content is displayed on the client. This may result in inaccurate information in the first and second databases on the target server. Therefore, in order to further improve the effect of media content deduplication, this embodiment of the disclosure can also perform local deduplication processing on the deduplicated media content stream from the target server on the client to obtain a locally deduplicated media content stream.

[0080] In one optional implementation, after receiving the deduplicated second media content stream from the target server, the client can further deduplicate the deduplicated second media content stream based on the client's data backup to obtain a local deduplicated second media content stream, which can then be used to display media content on the client.

[0081] In practical applications, after receiving the deduplicated second media content stream from the target server, the client can perform local deduplication processing on the deduplicated second media content stream again based on the client's data backup, obtaining a locally deduplicated second media content stream. The client's data backup includes identifiers of preset types of media content displayed by the first user within a preset first time period from the current time and identifiers of media content displayed within a preset second time period from the current time. In other words, the identifiers of the media content stored in the client's data backup belong to the media content sent from the target server to the client and already displayed on the client.

[0082] In one optional implementation, while synchronizing media content display data to the target server, the client can also store the identifier of the target media content in a preset backup database, such as a first backup database. Specifically, in response to a display trigger operation for the target media content, after obtaining the media content type identifier carried by the target media content, if it is determined based on the target media content type identifier that the target media content belongs to a preset type of media content, then the identifier of the target media content is backed up and stored for a preset first duration, for example, in the first backup database; if it is determined based on the target media content type identifier that the target media content does not belong to the preset type of media content, then the identifier of the target media content is backed up and stored for a preset second duration, for example, in the second backup database.

[0083] Specifically, the first backup database stores identifiers for preset types of media content. Once the time elapsed between the display time of the preset type of media content and the current time exceeds a preset first time interval, the identifier for that preset type of media content is deleted from the first backup database. The second backup database stores target media content when it is determined that the target media content does not belong to the preset type of media content. Once the time elapsed between the display time of any media content and the current time exceeds a preset second time interval, the identifier for that media content is deleted from the second backup database.

[0084] In this embodiment of the disclosure, the client sends a media content stream request to the target server, obtains the second media content stream after deduplication from the target server, and performs local deduplication by using the identifiers of preset type media content displayed by the user within a preset first duration in the client's data backup. Since the preset first duration is shorter than the deduplication duration of other types of media content (i.e., the preset second duration), it can remove deduplication for some preset type media content that has been displayed recently, so that the user can browse some preset type media content that has been displayed recently, thus meeting the user's display needs for preset type media content.

[0085] Based on the above embodiments, this disclosure provides a method for deduplicating media content, referring to... Figure 2 This is a flowchart of a media content deduplication method provided in this embodiment of the disclosure. The method is applied to a target server, such as a media content recommendation server, and specifically includes:

[0086] S201: In response to a media content stream request from the first user, obtain the initial media content stream.

[0087] S202: Based on the first database and the second database, perform deduplication processing on the media content in the initial media content stream to obtain a deduplicated media content stream.

[0088] The first database stores identifiers of preset types of media content displayed by the first user within a preset first time period from the current time, and the second database stores identifiers of media content displayed by the first user within a preset second time period from the current time, wherein the preset first time period is shorter than the preset second time period.

[0089] In this embodiment of the disclosure, the target server is deployed with a first database and a second database. The first database stores identifiers of preset type media content displayed by the user within a preset first time period from the current time. Specifically, it includes identifiers of preset type media content displayed by the first user within the preset first time period from the current time, such as identifiers of preset type media content displayed by the first user within the last 2 hours. The second database stores identifiers of media content displayed by the user within a preset second time period from the current time. Specifically, it includes identifiers of media content displayed by the first user within the preset second time period from the current time, such as identifiers of media content displayed by the first user within the last 90 days.

[0090] In one optional implementation, the preset first duration and the preset second duration can be set based on the deduplication processing requirements, and this disclosure does not impose any limitations. For example, the preset first duration can be set to 2*n hours, where n is a positive integer, and the preset second duration can be set to 90 days, etc.

[0091] In this embodiment of the disclosure, after receiving a media content stream request from the client, the target server first obtains an initial media content stream. Optionally, assuming the media content stream request is a recommended media content stream request, the target server determines the initial recommended media content stream based on a recommendation strategy.

[0092] Secondly, after obtaining the initial media content stream, the target server performs deduplication on the media content in the initial media content stream based on the identifiers of the media content stored in the first database and the second database, respectively, to obtain the deduplicated media content stream. Since the first database stores identifiers of preset type media content displayed by the first user within a preset first time period (e.g., the identifiers of preset type media content displayed within the last 2 hours), and the second database stores identifiers of media content displayed by the first user within a preset second time period from the current time (e.g., the identifiers of all types of media content displayed within the last 90 days), deduplication of the media content in the initial media content stream using the first and second databases only applies to preset type media content displayed by the first user within the preset first time period (e.g., the last 2 hours). For preset type media content displayed by the first user more than the preset first time period (e.g., more than 2 hours), the deduplication effect is achieved.

[0093] Therefore, the deduplication media content stream obtained after the above deduplication process can include preset type media content that has been displayed by the first user for a period of time longer than a preset first duration (e.g., more than 2 hours). That is, deduplication is implemented differently for preset type media content.

[0094] In practical applications, the target server monitors the storage duration of media content identifiers in the first and second databases in real time. It deletes identifiers of preset type media content in the first database whose display time exceeds a preset first duration, and deletes identifiers of media content in the second database whose display time exceeds a preset second duration. This ensures that the identifiers of media content stored in the first database belong to preset type media content that has been displayed within the most recent preset first duration, and that the identifiers of media content stored in the second database belong to media content that has been displayed within the most recent preset second duration.

[0095] To further improve the deduplication effect of media content, in this embodiment of the disclosure, when the client sends a media content stream request to the target server, it carries a client data backup in the media content stream request so as to synchronize the client data backup to the target server, so that the target server can perform media content deduplication processing based on the first database, the second database and the client data backup.

[0096] Specifically, in this embodiment of the disclosure, after receiving a media content stream request, the target server obtains client data backup and determines the initial media content stream. Then, based on the first database, the second database, and the client data backup, it performs deduplication processing on the media content in the initial media content stream to obtain the deduplicated media content stream.

[0097] In another optional implementation, the client may have different requirements for deduplication of preset media content types depending on the scenario. Therefore, the client can include information in the media content stream request to determine whether preset deduplication conditions are met. When the target server receives the media content stream request, it first determines whether the request meets the preset deduplication conditions. If the preset conditions are met, the server performs deduplication processing on the media content in the initial media content stream based on a first database and a second database. The preset deduplication conditions can be determined based on the deduplication requirements for preset media content types.

[0098] In one optional implementation, the preset deduplication condition can be that the client currently logged in by the first user is in a preset deduplication scenario corresponding to a preset type of media content. Specifically, when the target server receives a media content stream request, it parses the request to determine whether it carries a preset deduplication status identifier. This identifier indicates that the client currently logged in by the first user is in a preset deduplication scenario corresponding to a preset type of media content. If the request carries this identifier, it means the client is in the preset deduplication scenario. In this case, deduplication can be performed on the initial media content stream based on the first and second databases to obtain a deduplicated media content stream.

[0099] In one optional implementation, the preset type of media content may include mosaic videos, which are videos processed using mosaic technology. Mosaic videos often require repeated playback by the same user within a short period. Therefore, the preset deduplication scenario for mosaic videos may include a user having posted a mosaic video within a preset third time period. That is, a user who posted a mosaic video within a preset third time period (e.g., within the last 4 hours) can replay the mosaic video based on the media content stream within a short period.

[0100] Therefore, the media content deduplication method provided in this disclosure can be used to deduplicatize mosaic videos. Furthermore, other types of media content with the same or similar playback requirements as mosaic videos can also be deduplicated using the media content deduplication method provided in this disclosure. This disclosure does not limit the specific type of preset media content.

[0101] S203: Request the return of the deduplicated media content stream in response to the media content stream request.

[0102] In this embodiment of the disclosure, after receiving a media content stream request from the first user, the target server first obtains the initial media content stream, and then performs deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain the deduplicated media content stream. Finally, the deduplicated media content stream is returned to the client logged in by the first user.

[0103] In this embodiment of the disclosure, the target server uses the identifiers of preset type media content that the first user has displayed within a preset first time period from the current point in time to perform deduplication processing on the preset type media content requested by the first user. Since the preset first time period is shorter than the deduplication time of other types of media content (i.e., the preset second time period), it can remove deduplication for some preset type media content that has been displayed recently, so that the user can browse some preset type media content that has been displayed recently, thus satisfying the user's playback needs for preset type media content.

[0104] In an optional implementation, based on the above steps, in the media content deduplication method provided in this disclosure, after the target server obtains the initial media content stream, it can also perform deduplication processing on the media content in the initial media content stream based on a third database to obtain the initial deduplicated media content stream.

[0105] The third database stores identifiers of media content sent to the first user within a preset fourth time period from the current time point, where the preset fourth time period is shorter than the preset first time period.

[0106] In this embodiment, the target server performs deduplication processing on the media content in the initial media content stream based on the first database and the second database. Essentially, this deduplication processing is performed on the media content that the first user has already displayed on the client. From the perspective of the target server, the media content sent by the target server to the client may differ from the media content displayed on the client; that is, some of the sent media content may not have been displayed on the client. Therefore, the target server can also perform deduplication processing on the media content sent by the target server.

[0107] Specifically, the third database deployed on the target server stores identifiers of media content sent to users within a preset fourth time period from the current time. Specifically, it includes identifiers of media content sent to the first user within the preset fourth time period. The preset fourth time period is shorter than the preset first time period. By setting the fourth time period to a value shorter than the preset first time period, the proportion of preset type media content recently sent by the target server is filtered out when performing deduplication processing on the media content sent to the target server.

[0108] In practical applications, after the target server obtains the initial media content stream, it can first perform deduplication processing on the initial media content stream based on the third database to obtain the initial deduplicated media content stream. The initial deduplicated media content stream is obtained by filtering out the media content in the initial media content stream that was sent by the first user within a preset fourth time period.

[0109] In addition, the preset fourth duration in the embodiments of this disclosure can be set based on the deduplication processing requirements, and the embodiments of this disclosure do not impose any restrictions on this.

[0110] Based on the above method embodiments, this disclosure also provides a media content deduplication processing device, with reference to Figure 3 This is a schematic diagram of a media content deduplication processing device provided in an embodiment of this disclosure. The device includes:

[0111] The first display module 301 is used to display target media content in a first display state on a media content display page based on a first media content stream.

[0112] The second display module 302 is configured to respond to a media content stream request triggered by a first user, and display the target media content in the first display state or the target media content in the second display state on the media content display page based on the target media content meeting a first preset condition; wherein the target media content belongs to a second media content stream, and the target media content in the second display state is converted from the target media content in the first display state, the conversion being based on a target operation triggered by the first user and / or the target media content meeting the second preset condition.

[0113] In one optional implementation, the target media content in the first display state includes an image of the target media content after blurring, and the target media content in the second display state includes an image of the target media content without blurring.

[0114] In one optional implementation, the media content stream request is used to perform deduplication processing on the media content in the obtained initial media content stream based on a first database and a second database to obtain a second media content stream. The first database stores identifiers of preset type media content displayed by the first user within a preset first time period from the current time point, and the second database stores identifiers of media content displayed by the first user within a preset second time period from the current time point. The preset first time period is shorter than the preset second time period, and the target media content belongs to the preset type media content.

[0115] In one optional embodiment, the apparatus further includes:

[0116] The receiving module is used to receive the second media content stream returned by the target server in response to a media content stream request triggered by the first user.

[0117] The local deduplication module is used to perform deduplication processing on the second media content stream based on client data backup to obtain a locally deduplicated second media content stream; wherein, the client data backup includes identifiers of preset type media content displayed by the first user within a preset first time period from the current time and identifiers of media content displayed within a preset second time period from the current time; wherein, the target media content belongs to the locally deduplicated second media content stream.

[0118] In one optional embodiment, the apparatus further includes:

[0119] The message sending module is used to send a media content status synchronization message carrying the identifier of the preset type of media content and the identifier of the target media content to the target server; wherein, the target server is used to store the identifier of the target media content in the first database based on the identifier of the preset type of media content.

[0120] In one optional embodiment, the apparatus further includes:

[0121] A backup storage module is used to store the identifier of the target media content into a preset backup database based on the identifier of the preset type of media content and the preset first duration.

[0122] In the media content display method provided in this embodiment, target media content in a first display state is displayed on the media content display page based on a first media content stream. Upon receiving a media content stream request triggered by a first user, based on the target media content meeting a first preset condition, the target media content in either the first display state or the second display state is displayed on the media content display page in the form of a second media content stream. Therefore, in this embodiment, the requirement to display the same target media content multiple times to the same user can be met, improving the user's media content browsing experience.

[0123] Based on the above method embodiments, this disclosure also provides a media content deduplication processing device, with reference to Figure 4 This is a schematic diagram of a media content deduplication processing device provided in an embodiment of this disclosure. The device includes:

[0124] The first acquisition module 401 is used to acquire an initial media content stream in response to a media content stream request from a first user;

[0125] The first deduplication processing module 402 is used to perform deduplication processing on the media content in the initial media content stream based on a first database and a second database to obtain a deduplicated media content stream; wherein, the first database stores the identifiers of preset type media content displayed by the first user within a preset first time period from the current time point, and the second database stores the identifiers of media content displayed by the first user within a preset second time period from the current time point, wherein the preset first time period is shorter than the preset second time period;

[0126] The media content return module 403 is used to return the deduplicated media content stream in response to the media content stream request.

[0127] In one optional embodiment, the apparatus further includes:

[0128] The message receiving module is used to receive a media content status synchronization message from the first user; wherein the media content status synchronization message carries an identifier of the displayed media content and a type identifier of the displayed media content, and the type identifier is used to identify whether the displayed media content belongs to the preset type of media content;

[0129] The first parsing module is used to parse the media content status synchronization message. If it is determined that the displayed media content belongs to the preset type of media content, the identifier of the displayed media content is stored in the first database; otherwise, the identifier of the displayed media content is stored in the second database.

[0130] In one optional embodiment, the apparatus further includes:

[0131] The deletion module is used to delete the identifiers of the preset type of media content that are displayed in the first database and that are displayed in the second ... they are displayed in the second database and that they are displayed in the second database.

[0132] In one optional implementation, the first deduplication module is specifically used for:

[0133] When it is determined that the media content stream request meets the preset deduplication conditions, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream; wherein, the preset deduplication conditions are determined based on the deduplication processing requirements for the preset type of media content.

[0134] In one optional implementation, the preset deduplication condition is that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content; the device further includes:

[0135] The second parsing module is used to parse the media content stream request and determine whether the media content stream request carries a preset deduplication status identifier; wherein, the preset deduplication status identifier is used to indicate that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content;

[0136] Accordingly, the first deduplication processing module is specifically used for:

[0137] When it is determined that the media content stream request carries the preset deduplication status identifier, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream.

[0138] In one optional implementation, the preset type of media content includes blurred media content; the preset deduplication scenario corresponding to the blurred media content includes the first user having published the blurred media content within a preset third time period from the current time.

[0139] In one optional embodiment, the apparatus further includes:

[0140] The second deduplication processing module is used to perform deduplication processing on the media content in the initial media content stream based on the third database to obtain the initial deduplicated media content stream; wherein, the third database stores the identifiers of the media content sent by the first user within a preset fourth time period, and the preset fourth time period is less than the preset first time period.

[0141] In one optional implementation, the media content stream request carries a client data backup, which includes identifiers of preset type media content played by the first user within a preset first duration from the current time and identifiers of media content played within a preset second duration from the current time; the first deduplication module is specifically used for:

[0142] Based on the first database, the second database, and the client data backup, the media content in the initial media content stream is deduplicated to obtain the deduplicated media content stream.

[0143] In the media content deduplication processing device provided in this embodiment, in response to a media content stream request from a first user, an initial media content stream is obtained; based on a first database and a second database, deduplication processing is performed on the media content in the initial media content stream to obtain a deduplicated media content stream; wherein, the first database stores identifiers of preset type media content displayed by the first user within a preset first time period from the current time, and the second database stores identifiers of media content displayed by the first user within a preset second time period from the current time, the preset first time period being less than the preset second time period; the deduplicated media content stream is returned in response to the media content stream request. This embodiment utilizes the identifiers of preset type media content viewed by the first user within a preset first time period from the current time to perform deduplication processing on the preset type media content requested by the first user. Since the preset first time period is less than the deduplication time for other types of media content (i.e., the preset second time period), this embodiment can remove deduplication for some preset type media content that has been recently displayed, enabling users to recall some preset type media content that has been recently displayed, thus satisfying users' display needs for preset type media content.

[0144] In addition to the methods and apparatus described above, this disclosure also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the media content deduplication method described in this disclosure.

[0145] This disclosure also provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, it implements the media content deduplication processing method described in this disclosure.

[0146] In addition, this disclosure also provides an electronic device, see [link to relevant documentation]. Figure 5 As shown, it may include:

[0147] The device includes a processor 501, a memory 502, an input device 503, and an output device 504. The number of processors 501 in a media content display device or a media content deduplication processing device can be one or more. Figure 5 Taking a processor as an example. In some embodiments of this disclosure, the processor 501, memory 502, input device 503, and output device 504 can be connected via a bus or other means, wherein, Figure 5 Taking the example of a connection between China and Israel via a bus.

[0148] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing of the media content display device or media content deduplication processing device by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The input device 503 can be used to receive input digital or character information, and generate signal inputs related to user settings and function control of the media content display device or media content deduplication processing device.

[0149] Specifically in this embodiment, the processor 501 will load the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 will run the applications stored in the memory 502 to realize the various functions of the media content display device or the media content deduplication processing device.

[0150] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0151] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for displaying media content, characterized in that, The method includes: On the media content display page, the target media content in the first display state is displayed based on the first media content stream; In response to a media content stream request triggered by a first user, and based on the target media content meeting a first preset condition, the target media content in either the first display state or the second display state is displayed on the media content display page; wherein, the target media content belongs to a second media content stream, the second media content stream includes preset type media content whose display time is greater than a preset first duration from the current time point, and media content whose display time is greater than a preset second duration from the current time point, the preset first duration being less than the preset second duration, the target media content in the second display state being converted from the target media content in the first display state, the conversion being based on a target operation triggered by the first user and / or the target media content meeting the second preset condition.

2. The method according to claim 1, characterized in that, The target media content in the first display state includes an image of the target media content after blurring, while the target media content in the second display state includes an image of the target media content without blurring.

3. The method according to claim 1 or 2, characterized in that, The media content stream request is used to perform deduplication processing on the media content in the obtained initial media content stream based on a first database and a second database to obtain a second media content stream. The first database stores the identifiers of preset type media content displayed by the first user within a preset first time period from the current time point, and the second database stores the identifiers of media content displayed by the first user within a preset second time period from the current time point. The preset first time period is less than the preset second time period, and the target media content belongs to the preset type media content.

4. The method according to claim 3, characterized in that, Before displaying the target media content in the first display state or the target media content in the second display state on the media content display page, the method further includes: In response to a media content stream request triggered by the first user, the system receives the second media content stream returned by the target server. Based on client-side data backup, the second media content stream is deduplicated to obtain a locally deduplicated second media content stream; wherein, the client-side data backup includes identifiers of preset type media content displayed by the first user within a preset first time period from the current time point and identifiers of media content displayed within a preset second time period from the current time point; wherein, the target media content belongs to the locally deduplicated second media content stream.

5. The method according to claim 3, characterized in that, After displaying the target media content in the first display state on the media content display page based on the first media content stream, the method further includes: A media content status synchronization message carrying the identifier of the preset type of media content and the identifier of the target media content is sent to the target server; wherein, the target server is used to store the identifier of the target media content in the first database based on the identifier of the preset type of media content.

6. The method according to claim 4, characterized in that, After displaying the target media content in the first display state on the media content display page based on the first media content stream, the method further includes: Based on the identifier of the preset type of media content and the preset first duration, the identifier of the target media content is stored in a preset backup database.

7. A method for deduplicating media content, characterized in that, The method includes: In response to a media content stream request from the first user, obtain the initial media content stream; Based on the first database and the second database, the media content in the initial media content stream is deduplicated to obtain a deduplicated media content stream. The first database stores identifiers of preset type media content displayed by the first user within a preset first time interval from the current time point, and the second database stores identifiers of media content displayed by the first user within a preset second time interval from the current time point. The preset first time interval is less than the preset second time interval. The deduplicated media content stream includes the preset type media content whose display time is greater than the preset first time interval from the current time point, and media content whose display time is greater than the preset second time interval from the current time point. The media content stream request returns the deduplicated media content stream.

8. The method according to claim 7, characterized in that, Before performing deduplication processing on the media content in the initial media content stream based on the first and second databases to obtain the deduplicated media content stream, the process further includes: Receive a media content status synchronization message from the first user; wherein the media content status synchronization message carries an identifier of the displayed media content and a type identifier of the displayed media content, the type identifier being used to identify whether the displayed media content belongs to the preset type of media content; The media content status synchronization message is parsed. If it is determined that the displayed media content belongs to the preset type of media content, the identifier of the displayed media content is stored in the first database; otherwise, the identifier of the displayed media content is stored in the second database.

9. The method according to claim 7 or 8, characterized in that, The method further includes: Delete the identifier in the first database that displays media content of the preset type that is more than the preset first duration from the current time. In addition, the identifiers of media content displayed in the second database that are more than the preset second duration from the current time are deleted.

10. The method according to claim 7, characterized in that, The step of performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain a deduplicated media content stream includes: When it is determined that the media content stream request meets the preset deduplication conditions, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream; wherein, the preset deduplication conditions are determined based on the deduplication processing requirements for the preset type of media content.

11. The method according to claim 10, characterized in that, The preset deduplication condition is that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content; before determining that the media content stream request meets the preset deduplication condition, and performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain the deduplicated media content stream, the process further includes: The media content stream request is parsed to determine whether the media content stream request carries a preset deduplication status identifier; wherein, the preset deduplication status identifier is used to indicate that the client currently logged in by the first user is in a preset deduplication scenario corresponding to the preset type of media content; Accordingly, when it is determined that the media content stream request meets the preset deduplication conditions, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream, including: When it is determined that the media content stream request carries the preset deduplication status identifier, the media content in the initial media content stream is deduplicated based on the first database and the second database to obtain the deduplicated media content stream.

12. The method according to claim 11, characterized in that, The preset type of media content includes blurred media content; the preset deduplication scenario corresponding to the blurred media content includes the first user publishing the blurred media content within a preset third time period from the current time.

13. The method according to claim 7, characterized in that, Before performing deduplication processing on the media content in the initial media content stream based on the first and second databases to obtain the deduplicated media content stream, the process further includes: Based on the third database, the media content in the initial media content stream is deduplicated to obtain the initial deduplicated media content stream; wherein, the third database stores the identifiers of media content sent by the first user within a preset fourth time period from the current time point, and the preset fourth time period is less than the preset first time period.

14. The method according to claim 7, characterized in that, The media content stream request carries a client data backup, which includes an identifier of a preset type of media content played by the first user within a preset first time period from the current time and an identifier of media content played within a preset second time period from the current time. The step of performing deduplication processing on the media content in the initial media content stream based on the first database and the second database to obtain a deduplicated media content stream includes: Based on the first database, the second database, and the client data backup, the media content in the initial media content stream is deduplicated to obtain the deduplicated media content stream.

15. A media content display device, characterized in that, The device includes: The first display module is used to display the target media content in the first display state on the media content display page based on the first media content stream; The second display module is configured to respond to a media content stream request triggered by a first user, and display the target media content in either the first display state or the second display state on the media content display page based on the target media content meeting a first preset condition; wherein the target media content belongs to a second media content stream, the second media content stream includes preset type media content whose display time is greater than a preset first duration, and media content whose display time is greater than a preset second duration, the preset first duration being less than the preset second duration, the target media content in the second display state being converted from the target media content in the first display state, the conversion being based on a target operation triggered by the first user and / or the target media content meeting the second preset condition.

16. A media content deduplication processing device, characterized in that, The device includes: The first acquisition module is used to acquire the initial media content stream in response to a media content stream request from the first user; The first deduplication processing module is used to perform deduplication processing on the media content in the initial media content stream based on a first database and a second database to obtain a deduplicated media content stream. The first database stores identifiers of preset type media content displayed by the first user within a preset first time interval from the current time point, and the second database stores identifiers of media content displayed by the first user within a preset second time interval from the current time point. The preset first time interval is less than the preset second time interval. The deduplicated media content stream includes the preset type media content whose display time is greater than the preset first time interval from the current time point, and media content whose display time is greater than the preset second time interval from the current time point. The media content return module is used to return the deduplicated media content stream in response to the media content stream request.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-14.

18. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in any one of claims 1-14.