Media resource display method and device, equipment and storage medium
Determine the target resource access party through resource access information and obtain the media resources to be displayed, solving the problem of adding access parties in the existing technology that needs to modify the code, realize the flexible display and management of media resources, and improve the stability of the system and management capabilities.
Patent Information
- Application Number
- CN202310848910.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
The existing technology needs to modify the code when adding new media resource access parties, which poses great risks, and the management capabilities of the resource bit provider are not robust enough, and the supported hot plugging and hot modification capabilities are insufficient.
Through the resource access information pre-configured by the resource access party, respond to the media resource display request, determine the target resource access party of the target resource bit, and obtain the media resources to be displayed to realize the display of the media resources, avoiding the addition of the access party the risk of modifying the code.
Reduces the risk of code modification when increasing the access party, improves the flexibility and robustness of resource management, supports dynamic registration and hot modification, and improves the agility and reliability of the business.
Smart Images

Figure CN119316650A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a media resource display method, device, equipment and storage medium. Background Art
[0002] With the development of Internet technology, the display of media resources "such as advertisements, etc." on online platforms such as APP, websites, and the Internet has become increasingly popular.
[0003] At present, there are some common problems with the display of media resources. For example, when adding new resource access parties, the code needs to be modified, which poses a great risk.
[0004] Therefore, how to implement a media resource display method that does not require code modification when adding new resource access parties is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In order to solve the above technical problems, an embodiment of the present disclosure provides a media resource display method.
[0006] In a first aspect, the present disclosure provides a method for displaying media resources, the method comprising:
[0007] In response to a media resource display request for a target resource position, determining at least one resource access party corresponding to the target resource position; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party;
[0008] Based on the resource access information, determining a target resource access party corresponding to the target resource position from the at least one resource access party, and acquiring a to-be-displayed media resource of the target resource access party;
[0009] The media resource to be displayed is returned in response to the media resource display request; wherein the media resource to be displayed is used to be displayed at the target resource position.
[0010] In an optional implementation, the resource access information includes frequency control configuration information, and the frequency control configuration information includes a resource display frequency control condition of a resource access party corresponding to the resource access information; and determining, based on the resource access information, a target resource access party corresponding to the target resource position from the at least one resource access party, comprising:
[0011] Determine whether a resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met; wherein the first resource access party belongs to at least one resource access party corresponding to the target resource position;
[0012] If it is determined that the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met, adding the first resource access party to the candidate access party set;
[0013] A target resource access party corresponding to the target resource position is determined based on the candidate access party set.
[0014] In an optional implementation manner, the resource access information further includes display priority information, and the determining the target resource access party corresponding to the target resource position based on the candidate access party set includes:
[0015] If it is determined that the number of access parties in the candidate access party set is greater than the displayable number of the target resource position, the access party whose display priority information meets the preset conditions in the candidate access party set is determined as the target resource access party corresponding to the target resource position.
[0016] In an optional implementation, the resource display frequency control condition includes a first frequency control condition, the first frequency control condition is determined based on the restricted frequency information, and the judging whether the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met includes:
[0017] Obtaining frequency history data of the initiating user corresponding to the media resource display request;
[0018] Based on the frequency history data of the initiating user, it is determined whether the initiating user meets the first frequency control condition.
[0019] In an optional implementation manner, the resource access information includes access interface information, and the step of obtaining the to-be-displayed media resource of the target resource access party includes:
[0020] Based on the access interface information of the target resource access party, the to-be-displayed media resource of the target resource access party is acquired.
[0021] In an optional implementation manner, before determining at least one resource access party corresponding to the target resource location in response to the media resource display request for the target resource location, the method further includes:
[0022] Receiving an access registration request for the target resource location from a second resource access party; wherein the access registration request carries resource access information of the second resource access party;
[0023] After determining that the second resource access party passes the access verification, the corresponding relationship between the target resource position, the second resource access party and the resource access information is stored.
[0024] In an optional implementation manner, the method further includes:
[0025] receiving a modification operation for the resource access information of the second resource access party;
[0026] The resource access information is updated based on the modification operation.
[0027] In a second aspect, the present disclosure provides a media resource display device, the device comprising:
[0028] A first determination module is configured to determine, in response to a media resource display request for a target resource position, at least one resource access party corresponding to the target resource position; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party;
[0029] A second determination module is configured to determine, based on the resource access information, a target resource access party corresponding to the target resource position from the at least one resource access party, and obtain a to-be-displayed media resource of the target resource access party;
[0030] The display module is used to return the media resource to be displayed in response to the media resource display request; wherein the media resource to be displayed is used to be displayed at the target resource position.
[0031] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the above method.
[0032] In a fourth aspect, the present disclosure provides a media resource display device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0033] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:
[0034] The embodiment of the present disclosure provides a media resource display method, which responds to a media resource display request for a target resource position, determines at least one resource access party corresponding to the target resource position, wherein at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize the resource display conditions of the corresponding resource access party, and then determines the target resource access party corresponding to the target resource position from at least one resource access party based on the resource access information, obtains the media resources to be displayed of the target resource access party, and returns the media resources to be displayed in response to the media resource display request, wherein the media resources to be displayed are used to be displayed on the target resource position. The present disclosure displays media resources at the target resource position based on the resource access information pre-configured by each resource access party. Since the resource access information is implemented based on configuration, the media resource display method provided by the present disclosure does not need to modify the code when adding access parties, thereby reducing the risks caused thereby. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A flowchart of a media resource display method provided by an embodiment of the present disclosure;
[0038] Figure 2 A flow chart of a frequency control condition check provided in an embodiment of the present disclosure;
[0039] Figure 3 A flow chart of a media resource display verification provided by an embodiment of the present disclosure;
[0040] Figure 4 A schematic diagram of the structure of a media resource display device provided by an embodiment of the present disclosure;
[0041] Figure 5 A structural schematic diagram of a media resource display device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0042] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0044] In actual applications, during the maintenance and iteration of microservice architecture, it is often the case that an upstream service provider provides a resource location, and multiple downstream business parties need to register on this resource location one after another. For example, an advertising service provides an advertising resource location, and the data displayed by this resource location when the user loads it comes from one / some access parties that are currently registered on this resource location.
[0045] In addition, there are some common problems with the existing registration and management solutions for access parties by resource providers. First, when the access party registers, the resource provider may be required to modify the code and go online, which makes the process not agile enough and introduces certain overhead and risks. Second, the management capabilities supported by the resource provider may not be robust and complete enough. Third, hot-swap and hot-modification may not be supported when the access party registers, logs out, or modifies the configuration, affecting business revenue during the access period.
[0046] Based on the resource location provider and resource access party under the microservice architecture, the embodiment of the present disclosure provides a media resource display method. First, in response to a media resource display request for a target resource location, at least one resource access party corresponding to the target resource location is determined, wherein the resource access parties are respectively configured with resource access information for characterizing the resource display conditions of the corresponding resource access party. Then, based on the resource access information, the target resource access party corresponding to the target resource location is determined from at least one resource access party, and the media resources to be displayed of the target resource access party are obtained. The media resources to be displayed are returned in response to the media resource display request, wherein the media resources to be displayed are used for display at the target resource location. It can be seen that the present disclosure displays media resources at the target resource location based on the resource access information pre-configured by each resource access party. Since the resource access information is implemented based on configuration, the media resource display method provided by the present disclosure does not need to modify the code when adding access parties, thereby reducing the risks brought about by this.
[0047] Based on this, the present disclosure provides a method for displaying media resources. Figure 1 , is a flow chart of a media resource display method provided by an embodiment of the present disclosure, the method comprising:
[0048] S101: In response to a media resource display request for a target resource location, determine at least one resource access party corresponding to the target resource location; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party.
[0049] Resource position refers to the position on the page of APP, website, online platform and other channels used to display certain information. It is an important promotion method and plays a very important role in attracting users and enhancing marketing activities. For example, a card pops up in the live broadcast room with an advertisement on it, or a link to an activity is displayed in the comment area of a user, revealing the activity.
[0050] The resource access party is the party that provides other services such as resource display data. The resource access party is configured with resource access information, which contains information related to the resource, such as the interface information of the resource, the agreement with the resource provider, etc.
[0051] Since resource positions are limited, and a resource position corresponds to at least one resource access party, competition for resource positions is inevitable. How to reasonably expose resource access parties and their resources on limited resource positions is a technical problem that needs to be solved urgently.
[0052] In order to solve the above problem, in the embodiment of the present disclosure, the resource access party exposed at the resource position is determined through the resource access information configured by the resource access party.
[0053] For example, for a resource position in a live broadcast room, there are multiple resource access parties competing for this resource position. The resource access parties are configured with resource access information. The resource display conditions represented by the resource access information are displayed at the resource position when the resource access information meets the resource display conditions. Otherwise, the resource is not displayed at the resource position.
[0054] S102: Based on the resource access information, determine a target resource access party corresponding to the target resource position from the at least one resource access party, and obtain a to-be-displayed media resource of the target resource access party.
[0055] In the embodiment of the present disclosure, when a media resource display request for a target resource position is received, the target resource access party corresponding to the target resource position is determined from at least one resource access party through the interface information in the resource access information configured by the resource access party, the resource display interface of the target resource access party is called, and the media resource to be displayed that the target resource access party wants to display is obtained. The media resource to be displayed is provided by the resource access party, and the resource access party determines the content of the displayed media resource.
[0056] S103: Return the media resource to be displayed in response to the media resource display request; wherein the media resource to be displayed is used to be displayed at the target resource position.
[0057] In an embodiment of the present disclosure, when a media resource display request for a target resource position is received, a target resource access party corresponding to the target resource position is determined from at least one resource access party through the interface information in the resource access information configured by the resource access party, the resource display interface of the target resource access party is called, and the media resources to be displayed that the target resource access party wants to display are obtained, the obtained media resources to be displayed are returned, and displayed on the resource position.
[0058] The media resource display method provided in the embodiments of the present disclosure can be applied to servers of various applications, websites, and Internet platforms, and can display media resources based on a microservice architecture.
[0059] In the embodiments of the present disclosure, based on the microservice architecture, the resource provider provides a management platform that supports dynamic registration for the resource access party. On this platform, the resource provider defines general interface request and return specifications based on the thrift framework, provides well-known management interfaces, including service registration and deregistration interfaces, and configuration modification interfaces, and maintains the resource access information of the resource access party.
[0060] In actual applications, the resource access information configured by the resource access party includes data related to resource display, which is used to more fully display the resource position and attract users. It specifically includes other resource information such as interface information of each resource interface, such as PSM, Cluser, Pod Name, Method, etc. In the embodiment of the present disclosure, when a user's media resource request for the target resource position is received, the server of the current resource position provider will call the interface information of the resource access party, and call the detailed information of the specific resource display interface according to the interface information.
[0061] In the disclosed embodiment, the resource access information also includes frequency control configuration information, which refers to the configuration related to frequency control and is used to control the display frequency of the resource at the resource position. The frequency control configuration information contains the resource display frequency control conditions of the resource access party corresponding to the resource access information, which is used to describe the frequency control requirements that the current resource access party must meet before exposing a certain user at the current resource position. The target user can only be exposed if it meets all the frequency control conditions.
[0062] Specifically, first, determine the first resource access party, where the first resource access party can be any resource access party corresponding to the target resource position, and then determine whether the resource display frequency of the first resource access party meets the resource display frequency control conditions in the frequency control configuration information of the first resource access party. If it is determined that the resource display frequency control conditions in the frequency control configuration information of the first resource access party are met, the first resource access party is added to the candidate access party set, and the target resource access party corresponding to the target resource position is determined based on the candidate access party set.
[0063] In the embodiment of the present disclosure, the frequency control configuration mainly includes information such as the frequency control range, the frequency control object, the number of frequency control times, the exposure frequency history, and the exposure frequency history timeout period.
[0064] In an optional implementation, the resource display frequency control conditions in the resource access information may be frequency controlled in the spatial dimension, for example, specifying that resources are only displayed at the resource position of a specific live broadcast room; it may also be frequency controlled in the time dimension, for example, displaying resources from June 1 to June 18, or displaying them every 5 minutes every day; the display frequency may also be specified by combining the time dimension with the spatial dimension, for example, specifying that resources are only displayed every 5 minutes at the resource position of a specific live broadcast room on June 18.
[0065] In another optional implementation, the resource display frequency control condition in the resource access information can also configure the display frequency according to the object. For example, it is stipulated that a single user who has viewed the resource will not be displayed for a second time. For another example, it is only displayed to a certain type of users, who may be users who follow the anchor or users who join the anchor's fan group.
[0066] On the basis of the above implementation methods, the frequency control times will also be configured, that is, the maximum number of resource display times is specifically specified. In the embodiment of the present disclosure, the resource display frequency control condition includes a first frequency control condition, which is determined based on the frequency restriction information to determine whether the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met, specifically: obtaining the frequency history data of the initiating user corresponding to the media resource display request, and then determining whether the initiating user meets the first frequency control condition based on the frequency history data of the initiating user.
[0067] In the embodiment of the present disclosure, the frequency history data, which indicates the actual number of times the resource has been displayed at the current resource position, is stored in the Redis / database of the current server. When judging the frequency control times, the current server obtains the frequency history data from the Redis / database and compares it with the frequency control times configured in the current resource access information. When the frequency control times are greater than the frequency history data, there are still remaining display times; when the frequency control times are less than / equal to the frequency history data, no display will be performed.
[0068] For example, when receiving a user's request for displaying a media resource, the current server obtains historical frequency data from Redis to determine the number of times the resource has been displayed at the resource position. Assume that the specified frequency control number is 5 times, and the current resource has been displayed 4 times at the resource position, then it will be displayed 1 more time. If it has been displayed 5 times, then it will not be displayed.
[0069] In addition, in the embodiment of the present disclosure, an exposure frequency control history timeout period is also configured, that is, the retention period of the exposure frequency history data stored in Redis is specified, and regular cleaning is performed according to the exposure frequency control history timeout period.
[0070] For the above-mentioned frequency control conditions, each resource access party may have different display dimensions of interest, which can be combined and used according to specific frequency control conditions to optimally display resources at the resource position.
[0071] In the embodiment of the present disclosure, when a user request for displaying a media resource is received, a check is first performed according to the frequency control conditions configured in the resource access information. When the check passes, the resource access party to be displayed is determined, and the resource interface information configured by the resource access party to be displayed is obtained. According to the content in the interface information, a specific resource display interface is called to obtain the media resource to be displayed.
[0072] In order to facilitate understanding of the above embodiments, the present disclosure provides a frequency control verification process. Figure 2 When a media display request for a certain resource position is received from a user, a resource access party corresponding to the target resource position is determined. The resource access party is configured with resource access information. First, the frequency control condition configuration is read according to the resource access information to determine whether the current time is within the effective time range of the resource. If it is within the effective time range, it is determined whether the current user hits an effective population (user object). If it meets the effective population, the start and end timestamps of the frequency statistics are determined according to the condition type and related configuration fields, and then the display frequency (exposure frequency history) within the start and end timestamps is counted to determine whether the display frequency is less than the frequency control number. If it is less than the frequency control number, the verification passes this time, otherwise the verification fails.
[0073] In addition, there can be more than one frequency control condition for resource display, and there can be multiple conditions. Only when all conditions are met will the resource be displayed. For example, when a user enters a live broadcast room, the access party corresponding to the resource position of the live broadcast room has configured multiple frequency control conditions. Then for the current user, each frequency control configuration of the access party corresponding to the resource position needs to be verified in parallel.
[0074] In the disclosed embodiment, when a media display request for a resource position is received from a user, the resource access party corresponding to the target resource position is determined, and the resource access party is configured with resource access information. First, the configured frequency control condition configuration is read according to the resource access information to determine whether the frequency control condition list is not empty. If it is not empty, the distribution lock of the user under the current resource position and the current access party is obtained. After the lock is successfully obtained, the exposure frequency history of the user under the current resource position and the current access party is read, and multiple frequency control conditions such as frequency control condition 0, frequency control condition 1, and frequency control condition 2 are verified in parallel. When all frequency control conditions are verified, the resource access party to be displayed can be determined and the media resources to be displayed of the resource access party to be displayed can be obtained.
[0075] In actual applications, when the resource location provider receives resource display content returned by multiple access parties through verification, and the number of access parties returning display media content is greater than the number of resource locations, the resource access party that displays resources at the resource location can be determined by the priority of the resource access party to be displayed.
[0076] In the embodiment of the present disclosure, priority information is configured in the resource access information. The priority information includes the priority level for displaying the resource access party. The higher the priority, the higher the priority will be displayed. It is used to select the resource access party with a high priority as the target resource access party when there are multiple resource access parties.
[0077] In an embodiment of the present disclosure, a target resource access party corresponding to a target resource position is determined based on a candidate access party set. When it is determined that the number of access parties in the candidate access party set is greater than the displayable number of the target resource position, the access party whose display priority information meets the preset conditions in the candidate access party set is determined as the target resource access party corresponding to the target resource position. Wherein, when the number of access parties in the candidate access party set is greater than the displayable number of the target resource position, each access party is prioritized based on the display priority information, and one or more access parties are selected in order of priority from high to low as the target resource access party corresponding to the target resource position, and the number of selected access parties does not exceed the displayable number of the target resource position. Specifically, the preset condition refers to a condition that is located in the previous one or more sorting positions after being sorted in order of priority from high to low.
[0078] In order to understand the verification logic of resource display resources as a whole, the embodiment of the present disclosure provides an overall verification logic flow chart, such as Figure 3As shown, when a media display request for multiple resource positions is received from a user, the resource access party corresponding to the target resource position is determined, and the resource access party is configured with resource access information. First, the configured frequency control condition configuration is read according to the resource access information to determine whether the frequency control condition list is not empty. If it is not empty, the distribution lock of the user under the current resource position and the current access party is obtained. After the lock is successfully obtained, the exposure frequency history of the user under the current resource position and the current access party is read, and multiple frequency control conditions such as frequency control condition 0, frequency control condition 1, and frequency control condition 2 are verified in parallel. When all frequency control conditions are verified and passed, other checks are performed at this time, such as sensitive user checks. After other checks are passed, the remaining access parties are compared according to the configured priority, and the one with the highest priority is selected. Then the current timestamp is appended to the exposure frequency history data of the user in the current resource position and the current access party. Then, the data that exceeds the survival time in the frequency history data is deleted through the binary search method, and the appended data is written back to Redis, and the expiration time of the key is set to the current timestamp plus the survival time. Finally, the resources of the access party are exposed at the resource position in this request.
[0079] In the disclosed embodiment, in order to better uniformly manage resource access parties, the resource provider provides a unified registration, deregistration, and configuration platform for the resource access parties, so as to support the access parties to perform hot plugging, hot configuration modification, etc.
[0080] In an optional implementation, an access registration request for a target resource location is received from a second resource access party; wherein the access registration request carries resource access information of the second resource access party; after determining that the second resource access party has passed the access verification, the correspondence between the target resource location, the second resource access party and the resource access information is stored.
[0081] The access verification of the second resource mainly includes resource-related parameter verification and sensitive word verification.
[0082] After ensuring that the second resource access party passes the verification, in the embodiment of the present disclosure, the corresponding relationship between the target resource location, the second resource access party and the resource access information is stored in the cache for calling when requested.
[0083] In fact, the resource access party may display resources differently in different periods. For example, an advertisement only needs to be displayed during festivals. At this time, the resource access information needs to be modified and updated based on the modified resource access information. Since the unified management configuration platform provided in the embodiment of the present disclosure supports hot modification, the configuration can be modified and updated during operation, realizing convenient operation of the access party's resources.
[0084] Based on the above method embodiment, the present disclosure also provides a media resource display device, referring to Figure 4 , is a schematic diagram of the structure of a media resource display device provided by an embodiment of the present disclosure, the device comprising:
[0085] A first determination module 401 is configured to determine, in response to a media resource display request for a target resource position, at least one resource access party corresponding to the target resource position; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party;
[0086] A second determination module 402 is configured to determine, based on the resource access information, a target resource access party corresponding to the target resource position from the at least one resource access party, and obtain a to-be-displayed media resource of the target resource access party;
[0087] The return module 403 is used to return the to-be-displayed media resource in response to the media resource display request; wherein the to-be-displayed media resource is used to be displayed at the target resource position.
[0088] In an optional implementation, the resource access information includes frequency control configuration information, and the frequency control configuration information includes a resource display frequency control condition of a resource access party corresponding to the resource access information; the second determination module includes:
[0089] A judgment module, used to judge whether the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met; wherein the first resource access party is any resource access party corresponding to the target resource position;
[0090] A first determination submodule, configured to determine a resource display frequency control condition that currently satisfies the frequency control configuration information of the first resource access party, and add the first resource access party to a candidate access party set;
[0091] The second determining submodule determines the target resource access party corresponding to the target resource position based on the candidate access party set.
[0092] In an optional implementation manner, the resource access information further includes display priority information, and the second determination module is specifically configured to:
[0093] It is determined that the number of access parties in the candidate access parties is greater than the displayable number of the target resource position, and the access parties whose display priority information meets preset conditions in the candidate access party set are determined as the target resource access parties corresponding to the target resource position.
[0094] In an optional implementation manner, the resource display frequency control condition includes a first frequency control condition, the first frequency control condition is determined based on the limited frequency information, and the judgment module includes:
[0095] A first acquisition module, configured to acquire frequency history data of an initiating user corresponding to the media resource display request;
[0096] The third determination submodule is used to determine whether the initiating user meets the first frequency control condition based on the frequency history data of the initiating user.
[0097] In an optional implementation manner, the resource access information includes access interface information, which is specifically used for:
[0098] Based on the access interface information of the target resource access party, the to-be-displayed media resource of the target resource access party is acquired.
[0099] In an optional implementation, the device further includes:
[0100] A first receiving module, configured to receive an access registration request for the target resource location from a second resource access party; wherein the access registration request carries resource access information of the second resource access party;
[0101] A storage module is used to store the corresponding relationship between the target resource position, the second resource access party and the resource access information after determining that the second resource access party passes the access verification.
[0102] In an optional implementation, the device further includes:
[0103] A second receiving module, configured to receive a modification operation of the resource access information for the second resource access party;
[0104] An updating module is used to update the resource access information based on the modification operation.
[0105] In the media resource display device provided by the embodiment of the present disclosure, first, in response to a media resource display request for a target resource position, at least one resource access party corresponding to the target resource position is determined, wherein the resource access parties are respectively configured with resource access information for characterizing the resource display conditions of the corresponding resource access party, and then, based on the resource access information, the target resource access party corresponding to the target resource position is determined from at least one resource access party, and the media resources to be displayed of the target resource access party are obtained, and the media resources to be displayed are returned in response to the media resource display request, wherein the media resources to be displayed are used for display at the target resource position. The present disclosure improves the management service capability of resources by determining the target resource access party corresponding to the target resource position based on the resource access information, and then obtaining and returning the media resources to be displayed of the target resource access party, and displaying them at the target resource position.
[0106] In addition to the above-mentioned method and apparatus, the embodiments of the present disclosure further provide a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the media resource display method described in the embodiments of the present disclosure.
[0107] The embodiment of the present disclosure further provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the media resource display method described in the embodiment of the present disclosure is implemented.
[0108] In addition, the present disclosure also provides a media resource display device, see Figure 5 As shown, this may include:
[0109] Processor 501, memory 502, input device 503 and output device 504. The number of processors 501 in the data processing device can be one or more. Figure 5 In some embodiments of the present disclosure, the processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means, wherein: Figure 5 The example of connecting through bus is taken in the following.
[0110] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing of the data processing device by running the software programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 503 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the data processing device.
[0111] 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, thereby realizing various functions of the above-mentioned media resource display device.
[0112] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0113] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for displaying media resources, characterized in that: The method comprises: In response to a media resource display request for a target resource position, determining at least one resource access party corresponding to the target resource position; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party; Based on the resource access information, determine a target resource access party corresponding to the target resource position from the at least one resource access party, and obtain a to-be-displayed media resource of the target resource access party; The media resource to be displayed is returned in response to the media resource display request; wherein the media resource to be displayed is used to be displayed at the target resource position.
2. The method according to claim 1, characterized in that: The resource access information includes frequency control configuration information, and the frequency control configuration information includes a resource display frequency control condition of a resource access party corresponding to the resource access information; The determining, based on the resource access information, from the at least one resource access party, a target resource access party corresponding to the target resource position, comprises: Determine whether a resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met; wherein the first resource access party belongs to at least one resource access party corresponding to the target resource position; If it is determined that the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met, adding the first resource access party to the candidate access party set; A target resource access party corresponding to the target resource position is determined based on the candidate access party set.
3. The method according to claim 2, characterized in that The resource access information also includes display priority information, and the determining the target resource access party corresponding to the target resource position based on the candidate access party set includes: If it is determined that the number of access parties in the candidate access party set is greater than the displayable number of the target resource position, the access party whose display priority information meets the preset conditions in the candidate access party set is determined as the target resource access party corresponding to the target resource position.
4. The method according to claim 2, characterized in that: The resource display frequency control condition includes a first frequency control condition, which is determined based on the restricted frequency information, and the judging whether the resource display frequency control condition in the frequency control configuration information of the first resource access party is currently met includes: Obtaining frequency history data of the initiating user corresponding to the media resource display request; Based on the frequency history data of the initiating user, it is determined whether the initiating user meets the first frequency control condition.
5. The method according to claim 1, characterized in that The resource access information includes access interface information, and the acquiring of the to-be-displayed media resource of the target resource access party includes: Based on the access interface information of the target resource access party, the to-be-displayed media resource of the target resource access party is acquired.
6. The method according to claim 1, characterized in that Before the step of responding to the media resource display request for the target resource location and determining at least one resource access party corresponding to the target resource location, the step of: Receiving an access registration request for the target resource location from a second resource access party; wherein the access registration request carries resource access information of the second resource access party; After determining that the second resource access party passes the access verification, the corresponding relationship between the target resource position, the second resource access party and the resource access information is stored.
7. The method according to claim 6, characterized in that The method further comprises: receiving a modification operation for the resource access information of the second resource access party; The resource access information is updated based on the modification operation.
8. A media resource display device, characterized in that: The device comprises: A first determination module is configured to determine, in response to a media resource display request for a target resource position, at least one resource access party corresponding to the target resource position; wherein the at least one resource access party is respectively configured with resource access information, and the resource access information is used to characterize a resource display condition of the corresponding resource access party; A second determination module is configured to determine, based on the resource access information, a target resource access party corresponding to the target resource position from the at least one resource access party, and obtain a to-be-displayed media resource of the target resource access party; The returning module is used to return the to-be-displayed media resource in response to the media resource display request; wherein the to-be-displayed media resource is used to be displayed at the target resource position.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 7.
10. A media resource display device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.