Resource processing method and electronic equipment

By obtaining the attribute information of media resources in electronic devices and intercepting their presentation according to the rules configured by users, the problem of poor media resources interception in the prior art is solved, and the user experience is improved.

CN120296238APending Publication Date: 2025-07-11HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410046027.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

In the prior art, media resources have poor interception effects, which are difficult to meet users' usage needs, and affect user experience.

Method used

In response to the media resource request, the electronic device obtains its attribute information and intercepts the presentation of the media resource according to the processing rules configured by the user, including judgments on type, resolution, and resource size.

Benefits of technology

It improves the accuracy and effectiveness of media resource interception, improves the user experience, and meets the personalized needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120296238A_ABST
    Figure CN120296238A_ABST
Patent Text Reader

Abstract

The invention provides a resource processing method and electronic equipment, relates to the technical field of terminals, and is used for solving the problem of poor media resource interception effect at present. In the resource processing method, the electronic device can obtain attribute information used for describing a first media resource in response to a first request for the first media resource, and the first request is used for obtaining the first media resource from a server. Afterwards, the electronic device obtains a media resource processing rule configured by a user, and intercepts presentation of the first media resource on the electronic device based on the attribute information used for describing the first media resource and the media resource processing rule. The media resource processing rule can be configured by the user, and the electronic device intercepts the operation of presentation of the first media resource according to the configuration of the user, so that the result of intercepting the media resource can better meet the requirements of the user, the effect of intercepting the media resource is improved, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and particularly to a resource processing method and an electronic device. Background Art

[0002] When users use electronic devices such as mobile phones, in addition to being able to normally view the content they want to watch, they will also passively view various other media resources, such as advertisements, pictures, videos, etc. These media resources may have different resolutions or occupy different memories, and thus the consumption of user traffic and the occupation of network speed by media resources are also different. If a large amount of user traffic is consumed and network speed is occupied, it will affect the user's normal browsing of other content. Also, taking advertisements as an example, according to different push methods, advertisements can be further divided into page banner advertisements, pop-up advertisements, splash advertisements, advertisements inserted in browsing content, etc. When different advertisements are displayed, they will also have different impacts on users, such as blocking the content that users are browsing, causing users to accidentally operate and enter the advertisement page, etc. This will also bring a relatively poor experience to users.

[0003] Currently, in order to reduce the impact of the above-mentioned media resources such as advertisements on users, most are based on the principle of traffic control to intercept or control media resources. However, the effect of intercepting the target media resources that users do not want to watch in this way is poor, and it is difficult to meet the user's usage requirements. Summary of the Invention

[0004] This application provides a resource processing method and an electronic device, which are used to solve the problem of poor interception effect of media resources currently.

[0005] To achieve the above object, this application adopts the following technical solutions:

[0006] In a first aspect, a resource processing method is provided. In this method, the electronic device responds to a first request for a first media resource, and obtains attribute information for describing the first media resource, where the first request is used to obtain the first media resource from a server. After that, the electronic device obtains the media resource processing rules configured by the user, and based on the attribute information for describing the first media resource and the media resource processing rules, intercepts the presentation of the first media resource on the electronic device.

[0007] In the above method, the media resource processing rules can be configured by the user. That is to say, the user can configure how to process media resources. The operation of the electronic device to intercept the presentation of the first media resource can be carried out according to the user's configuration. Therefore, the result of intercepting media resources can better meet the user's requirements, improving the effect of media resource interception and the user's usage experience.

[0008] In an implementation method of the first aspect, when the electronic device obtains attribute information used to describe a first media resource, it can obtain the attribute information of the first media resource according to a first request; or, according to the first request, determine the corresponding first interface, and obtain the attribute information used to describe the first media resource according to interface information of the first interface.

[0009] In this implementation, the attribute information used to describe the first media resource may be information of the first media resource itself. When the application initiates the first request, it may simultaneously specify in the first request which first media resource or resources (which may be represented by the attribute information) to request. That is, the first request includes the attribute information of the first media resource, so that the electronic device can directly obtain the attribute information used to describe the first media resource according to the first request.

[0010] Alternatively, in the case where the electronic device uses an interface to send the first request, since the first request can indicate the interface to be called, the electronic device can also determine the corresponding first interface according to the first request. The interface information of the first interface can be mapped to the attribute information corresponding to the media resource obtained by calling the first interface, or in other words, since the interface has its corresponding media resource (i.e., calling a specific interface can obtain a specific media resource), the electronic device can also obtain the attribute information used to describe the first media resource according to the interface information of the first interface.

[0011] In this way, in different situations, the electronic device can obtain the attribute information of the first media resource in different ways, so as to make an accurate judgment on whether to intercept the presentation of the first media resource later.

[0012] In an implementation manner of the first aspect, when the electronic device obtains the attribute information of the first media resource according to the first request, it can determine to use the interface information of the first interface as the attribute information for describing the first media resource by calling the first interface according to the first request.

[0013] In this implementation, the attribute information used to describe the first media resource is not the information of the first media resource itself, but interface information, which represents the attributes of the first media resource, such as type, resolution, resource size, etc.

[0014] In an implementation manner of the first aspect, the electronic device determines to intercept the first request based on the interface information of the first interface and the media resource processing rule, so as to intercept the presentation of the first media resource on the electronic device.

[0015] In this implementation manner, the interface information is the attribute information used to describe the first media resource. Therefore, the electronic device can continue to determine to intercept the first request based on the interface information of the first interface and the media resource processing rules, so that the first request will not be sent to the server, and the first media resource sent by the server cannot be received. In this way, the electronic device will not present the first media resource either, achieving the purpose of intercepting the presentation of the first media resource on the electronic device.

[0016] In an implementable manner of the first aspect, the electronic device includes multiple interfaces, and the multiple interfaces include a first interface and a second interface. The electronic device responds to a second request for a second media resource and obtains the attribute information used to describe the second media resource, where the second request is used to obtain the second media resource from the server. After that, the electronic device determines the corresponding second interface according to the second request, and allows the presentation of the second media resource on the electronic device according to the interface information of the second interface and the media resource processing rules.

[0017] In this implementation manner, the second media resource can be used to represent a resource that can be presented by the electronic device, or a resource that is allowed to be presented in the media resource processing rules. In this way, when the application runs, the electronic device can provide the second media resource for the user, such as picture resources, video resources, advertisement resources, etc., enabling the user to view various types of media resources and bringing a better and more comprehensive usage experience to the user.

[0018] In an implementable manner of the first aspect, when the electronic device allows the presentation of the second media resource on the electronic device, it can specifically send a second request to the server, receive the second media resource sent by the server and display it, where the second media resource is obtained by the server according to the second request.

[0019] In an implementable manner of the first aspect, the attribute information used to describe the first media resource includes one or more of the type information, resolution information, and resource size of the first media resource. Thus, according to the attribute information, the electronic device can determine whether to intercept the presentation of the first media resource from multiple aspects or angles.

[0020] In an implementable manner of the first aspect, when the electronic device intercepts the presentation of the first media resource on the electronic device based on the attribute information used to describe the first media resource and the media resource processing rules, it can intercept the presentation of the first media resource on the electronic device based on the attribute information used to describe the first media resource, the media resource processing rules, and the preset service rules.

[0021] In this implementation manner, the preset service rules are preset in the electronic device. The specific rule content may be the same as or different from the media resource processing rules configured by the user. Thus, the electronic device can jointly determine the media resources to be intercepted based on the rules configured by the user and the preset rules.

[0022] In an implementable manner of the first aspect, when the electronic device obtains the media resource processing rules configured by the user, it may display a first setting page. Among them, the first setting page includes at least one first processing rule. One first processing rule is for one type of media resource. The first processing rule is used to indicate intercepting or allowing the presentation of the media resource on the electronic device. And the types of media resources include picture resources, video resources, and advertisement resources. After that, the electronic device obtains the media resource processing rules in response to the user's selection operation on at least one first processing rule on the first setting page. Among them, the media resource processing rules include at least one first processing rule.

[0023] In this implementation manner, the user can select at least one first processing rule according to their own needs, and then choose not to watch a certain type or certain types of media resources. The electronic device can also make the interception result more in line with the user's viewing needs for media resources during subsequent interception according to the user's selection.

[0024] In an implementable manner of the first aspect, when the media resource is an advertisement resource, the types of advertisement resources include banner advertisement resources, native advertisement resources, splash advertisement resources, interstitial advertisement resources, video ad resources, and rewarded video advertisement resources. When the electronic device obtains the media resource processing rules configured by the user, it may display a second setting page. Among them, the second setting page includes at least one second processing rule. One second processing rule corresponds to one type of advertisement resource. The second processing rule is used to indicate intercepting or allowing the presentation of the corresponding type of advertisement resource on the electronic device. After that, the electronic device determines at least one second processing rule as the media resource processing rules in response to the user's selection operation on at least one second processing rule on the second setting page.

[0025] In this implementation manner, the user can select to enable one or more second processing rules according to their own needs or preferences, etc., and then choose not to watch a certain type or certain types of advertisement resources. The electronic device can also make the interception result more in line with the user's viewing needs for advertisement resources during subsequent interception according to the user's selection.

[0026] In an implementable manner of the first aspect, when the electronic device obtains the media resource processing rule configured by the user, it may display a third setting page, where the third setting page includes at least one third processing rule, one third processing rule corresponds to one blocking level, and one blocking level is for at least one type of the advertisement resources. Then, the electronic device determines the third processing rule as the media resource processing rule in response to the user's selection operation on the third processing rule on the third setting page.

[0027] In this implementable manner, similarly, the user can also choose not to watch a certain type or several types of advertisement resources, and the electronic device can also make the blocking result more in line with the user's viewing requirements for the advertisement resources during the subsequent blocking process according to the user's selection.

[0028] In an implementable manner of the first aspect, when the electronic device obtains the media resource processing rule configured by the user, it may display a fourth setting page, where the fourth setting page includes at least one fourth processing rule, one fourth processing rule is for a media resource within a resolution range or within a resource size range, and the fourth processing rule is used to indicate blocking or allowing the presentation of the media resource on the electronic device. Then, the electronic device determines the fourth processing rule as the media resource processing rule in response to the user's selection operation on the fourth processing rule on the fourth setting page.

[0029] In this implementable manner, the user can block or intercept some media resources with too high resolution or too large size, and the electronic device can intercept the presentation of some media resources targeted according to the user's selection, flexibly meet the user's requirements for media resources, and improve the user experience.

[0030] In a second aspect, there is provided an electronic device, including: a first acquisition module, configured to obtain attribute information for describing a first media resource in response to a first request for the first media resource, where the first request is used to obtain the first media resource from a server. A second acquisition module, configured to obtain the media resource processing rule configured by the user. A processing module, configured to block the presentation of the first media resource on the electronic device based on the attribute information for describing the first media resource and the media resource processing rule.

[0031] In a third aspect, there is provided an electronic device, including: a memory, one or more processors; the memory is coupled to the processors; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processors, the electronic device executes the resource processing method as in the first aspect and any of its implementable manners.

[0032] Fourthly, a computer-readable storage medium is provided, including computer instructions, which, when running on an electronic device, cause the electronic device to execute the resource processing method as described in the first aspect and any of its implementation manners.

[0033] Fifthly, a computer program product is provided, which, when running on a computer, causes the computer to execute the resource processing method as described in the first aspect and any of its implementation manners.

[0034] For the electronic devices provided in the second aspect, the electronic devices provided in the third aspect, the computer storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect, the beneficial effects that can be achieved can refer to the beneficial effects that can be achieved by the first aspect and any of its implementation manners, which will not be elaborated here. Description of the Drawings

[0035] Figure 1 It is a schematic diagram of a page for controlling media resources shown in an embodiment of the present application;

[0036] Figure 2 It is a schematic diagram of a communication system shown in an embodiment of the present application;

[0037] Figure 3 It is a schematic structural diagram of an electronic device shown in an embodiment of the present application Figure 1 ;

[0038] Figure 4 It is a schematic flowchart of a resource processing method shown in an embodiment of the present application;

[0039] Figure 5 It is a schematic diagram of the display of a banner advertisement resource shown in an embodiment of the present application;

[0040] Figure 6 It is a schematic diagram of the display of a native advertisement resource shown in an embodiment of the present application;

[0041] Figure 7 It is a schematic diagram of the display of a splash screen advertisement resource shown in an embodiment of the present application;

[0042] Figure 8 It is a schematic diagram of the display of a video ad resource shown in an embodiment of the present application;

[0043] Figure 9 It is a schematic diagram of a settings page shown in an embodiment of the present application Figure 1 ;

[0044] Figure 10 It is a schematic diagram of a settings page shown in an embodiment of the present application Figure 2 ;

[0045] Figure 11Schematic diagram of the settings page shown in the embodiments of the present application Figure 3 ;

[0046] Figure 12 Schematic diagram of the settings page shown in the embodiments of the present application Figure 4 ;

[0047] Figure 13 Schematic diagram of the structure of the electronic device shown in the embodiments of the present application Figure 2 ;

[0048] Figure 14 Schematic diagram of the structure of the electronic device shown in the embodiments of the present application Figure 3 。 Detailed implementation manners

[0049] Next, the technical solutions in the embodiments of the present application will be described with reference to the accompanying drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " means that the objects associated before and after are in an "or" relationship. For example, A / B may represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations, where A and B may be singular or plural. And, in the description of the present application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or its similar expression below refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c may be single or multiple. In addition, in order to clearly describe the technical solutions in the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order, and the words such as "first" and "second" do not necessarily limit to be different. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific way for easy understanding.

[0050] In addition, the business scenarios described in the embodiments of this application are for more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As is known to those of ordinary skill in the art, with the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.

[0051] Electronic devices such as mobile phones can install various application programs (APPs). When developing an APP, developers will add code for obtaining various media resources to the software package corresponding to the APP, so that when a user uses the APP, the APP will push media resources to the user. Among them, taking advertisements as an example, when compiling an application, developers will use an advertising software development kit (SDK) to integrate different types of advertisements in the application, such as page banner advertisements, pop-up advertisements, splash screen advertisements, advertisements inserted in browsing content, etc.

[0052] In addition to the above advertisements, the media resources that an APP can push also include pictures, videos, etc. These media resources may have different resolutions or occupy different amounts of memory. Consequently, the consumption of user traffic and the occupation of network speed by the media resources are also different. If it consumes a large amount of user traffic and occupies the network speed, it will affect the user's normal browsing of other content.

[0053] Moreover, taking the above advertisements as an example, when different advertisements are displayed, they will also have different impacts on users. For example, they may block the content that the user is browsing, the display position is relatively special, which may cause the user to accidentally operate and enter the advertisement page, or the splash screen of the application is displayed, delaying the time for the user to view the application page. These situations will also bring a relatively poor experience to the user.

[0054] Currently, there are also some APPs that can provide users with the function of controlling media resources. For example, as shown in (a) of Figure 1 , the user can set the loading of pictures, such as setting to load high-definition pictures, load ordinary pictures, or control the electronic device to adaptively load pictures. Among them, if ordinary pictures are loaded, it may reduce the consumption of user traffic and the occupation of network speed. For another example, as shown in (b) of Figure 1 , the user can also set the loading of videos, such as setting to load only when the electronic device is connected to a wireless local area network (WLAN), setting to load when the electronic device is connected to WLAN and using a mobile data network, or turning off video loading. Among them, if it is set to load videos only when connected to WLAN, it may reduce the consumption of user traffic and the occupation of network speed.

[0055] Almost all of the above media resource controls require manual settings by users, and the setting interfaces of the APPs are generally hidden deeply, making it difficult for users to find. Moreover, the types of media resource controls are limited. For example, for various forms of push advertisements, there are few control contents that users can set, making it difficult to meet the needs of users.

[0056] In addition, there are currently some ways to intercept media resources such as banner ads and pop-up ads. For example, using advertising blockers (such as AdBlock) and advertising guard software (such as AdGuard). The comparison of the interception functions of AdBlock and AdGuard can be seen in Table 1 below.

[0057] Table 1

[0058] Comparison item AdBlock AdGuard Blocking principle Traffic control Traffic control Customized blocking rules Not supported Based on HTML / CSS tags User learning cost None High Blocking effect Average Average

[0059] As can be seen from the above table, AdBlock, AdGuard, etc. are all based on the principle of traffic control. For example, by detecting the requests sent by the browser or APP to the server, and then determining whether a specific media resource (such as an advertisement) is requested based on the data and content included in the request; or, it can also be determined whether a specific media resource (such as an advertisement) is included in the data and content sent by the server. If it is determined that the requested is a specific media resource, the media resource sent back by the server is intercepted.

[0060] Among them, determining whether there is a specific media resource is by detecting whether the request or data has a tag or identifier for marking the specific media resource. For example, the advertising server will tag the data corresponding to the advertisement, and by identifying the tag, it can be determined whether an advertisement is requested. However, not all servers will specifically mark the media resources. Therefore, for media resource data without specific tags, it is difficult for AdBlock and AdGuard to determine whether it is a media resource that needs to be intercepted. Therefore, the interception effects of AdBlock and AdGuard on media resources are generally average or even poor, making it difficult to meet the usage needs of users. When there are too many media resources such as advertisements affecting the normal browsing of content by users, it will also bring a poor experience to users.

[0061] Moreover, AdBlock does not support users to customize the rules for blocking or intercepting, while although AdGuard supports customization, users need to configure or set HTML / CSS tags first. Therefore, for some ordinary users, the operation difficulty is relatively large and the learning cost is also relatively high.

[0062] Based on the above, an embodiment of the present application provides a resource processing method. In this method, the electronic device responds to a first request for a first media resource, and obtains attribute information for describing the first media resource, where the first request is used to obtain the first media resource from the server. After that, the electronic device obtains the media resource processing rules configured by the user, and based on the attribute information for describing the first media resource and the media resource processing rules, intercepts the presentation of the first media resource on the electronic device.

[0063] In the above method, the media resource processing rules can be configured by the user. That is to say, the user can configure how to process the media resource. The operation of the electronic device to intercept the presentation of the first media resource can be performed according to the user's configuration. As a result, the intercepted media resource can better meet the user's requirements, improving the effect of media resource interception and the user experience.

[0064] The above resource processing method can be applied to a communication system. Exemplarily, as shown in Figure 2 the communication system may include an electronic device 201 and a server 202.

[0065] Among them, the electronic device 201 can install at least one application program (hereinafter referred to as an application). In some possible implementation manners, when the application runs on the electronic device 201, it will send a resource request to the electronic device 201, and the electronic device 201 provides corresponding resources for the application according to the resource request to ensure the normal operation of the application.

[0066] Among them, the electronic device 201 can determine the resources locally according to the resource request, or the electronic device 201 can also send a resource request to the server, so as to receive the resources sent by the server according to the resource request. The above resources may include: files, directories, databases, network services, media resources, etc. Among them, the media resources may be picture resources, video resources, advertisement resources, etc.

[0067] In some other possible implementation manners, when the application runs, it can also request the electronic device 201 to call the corresponding interface, so that the electronic device 201 obtains resources through the corresponding interface, and then provides corresponding resources for the application to ensure the normal operation of the application.

[0068] Among them, the electronic device 201 can obtain the resources requested by the application from the local resources through the interface, or the electronic device 201 can also send the resource request of the application for resources to the server through the interface, so as to receive the resources obtained by the server according to the resource request.

[0069] In some possible implementation manners, when the electronic device 201 obtains different types of resources through an interface, different interfaces are used. That is to say, each type of resource has its corresponding interface. Further, for advertising resources, the advertising resources can be specifically divided into banner advertising resources, native advertising resources, splash screen advertising resources, interstitial advertising resources, pre-roll advertising resources, rewarded video advertising resources, etc. For different types of advertising resources, the electronic device 201 can also use different interfaces to obtain them.

[0070] For the above-mentioned media resources, after the electronic device 201 obtains the media resources, it usually presents the media resources during the operation of the application in response to the operation of the application. However, some media resources may be resources that the user does not want to see, or resources that affect the user experience. For example, the media resources are too large and consume too much user traffic, or the media resources are advertising resources, etc. The presentation of these media resources will bring a poor user experience.

[0071] To improve the user experience, for the above-mentioned media resources (such as the first media resource), the electronic device 201 can obtain the attribute information for describing the first media resource in response to a resource request for the first media resource (such as the first request). After that, the electronic device 201 obtains the media resource processing rules configured by the user, and then based on the attribute information for describing the first media resource and the media resource processing rules, intercepts the presentation of the first media resource on the electronic device. In this way, the user will not see the media resources that they do not want to see on the electronic device 201.

[0072] The above-mentioned attribute information for describing the first media resource includes one or more of the type information, resolution information, and resource size of the first media resource. Thus, based on the attribute information, the electronic device 201 can determine whether to intercept the presentation of the first media resource from multiple aspects or angles.

[0073] In some possible implementation manners, the above-mentioned media resource processing rules can be configured by the user and are used to instruct the electronic device 201 how to process the media resources, such as instructing the electronic device 201 to present the media resources, or instructing the electronic device 201 not to present the media resources, etc.

[0074] For example, if the media resource processing rules instruct the electronic device 201 not to present advertising resources, then when the attribute information for describing the above-mentioned first media resource indicates that the first media resource is an advertising resource, the electronic device 201 will not present the first media resource.

[0075] For another example, if the media resource processing rule instructs the electronic device 201 not to present the banner ad resource, then when the attribute information used to describe the above-mentioned first media resource indicates that the first media resource is a banner ad resource, the electronic device 201 will not present the first media resource.

[0076] For another example, if the media resource processing rule instructs the electronic device 201 not to present media resources with a resolution greater than 720P, then when the attribute information used to describe the above-mentioned first media resource indicates that the resolution of the first media resource is greater than 702P, the electronic device 201 will not present the first media resource.

[0077] For another example, if the media resource processing rule instructs the electronic device 201 not to present media resources larger than 50MB, then when the attribute information used to describe the above-mentioned first media resource indicates that the resource size of the first media resource is greater than 50MB, the electronic device 201 will not present the first media resource.

[0078] It can be seen that if the media resource processing rule is configured by the user, the media resource processing rule can better meet the user's real needs. Furthermore, according to the attribute information used to describe the first media resource in the media resource processing rule, the result of intercepting the presentation of the first media resource by the electronic device can also better meet the user's needs, and can minimize the media resources that the user does not want to see, thereby improving the user experience.

[0079] If the attribute information used to describe the first media resource indicates that the first media resource is not the media resource that the media resource processing rule instructs not to present, or is the media resource that the media resource processing rule instructs to allow presentation, then the electronic device 201 will present the corresponding first media resource. Thus, the user can see the media resources they want to see, which can also improve the user experience.

[0080] In some other possible implementation manners, the above-mentioned media resource processing rule can also be pre-set in the electronic device 201. In this case, the media resource processing rule can also be called a preset service rule. Moreover, the electronic device 201 can intercept the presentation of the first media resource or allow the presentation of the first media resource according to the attribute information used to describe the first media resource and the preset service rule. Or, in the above-mentioned media resource processing rule, a part can be configured by the user, and another part can be pre-set in the electronic device 201. That is, the electronic device 201 can intercept the presentation of the first media resource or allow the presentation of the first media resource according to the attribute information used to describe the first media resource, the resource processing rule configured by the user, and the preset service rule. Thus, the electronic device 201 can jointly determine the media resources to be intercepted based on the rules configured by the user and the preset rules.

[0081] Moreover, in some possible implementation manners, the types of the foregoing media resources, the types of the advertisement resources, etc. may be configured by the user, or may also be preset in the electronic device 201. This application embodiment does not make specific limitations thereto.

[0082] For the case where the electronic device 201 uses an interface to obtain the first media resource, the first request sent by the application may further indicate the first interface to be called. Thus, the electronic device 201 determines the corresponding first interface according to the first request, and obtains the interface information of the first interface. After that, the electronic device 201 further obtains the attribute information for describing the first media resource according to the interface information of the first interface.

[0083] In some possible implementation manners, the interface information of the foregoing first interface may be used to describe or define the corresponding interface. As can be known from the foregoing embodiments, when the electronic device 201 obtains different media resources, different interfaces may be used, or rather, the interface information of the interface may be mapped to the attribute information corresponding to the media resource obtained by calling the interface. Therefore, after determining the foregoing first interface, the electronic device 201 may further determine the first media resource corresponding to the first interface according to the interface information, and obtain the attribute information for describing the first media resource.

[0084] In some other possible implementation manners, the electronic device 201 may determine, according to the call of the first interface in the first request, to use the interface information of the first interface as the attribute information for describing the first media resource. That is to say, the attribute information for describing the first media resource is not the information of the first media resource itself, but the interface information, and the attributes of the first media resource, such as type, resolution, resource size, etc., are characterized by the interface information.

[0085] In this case, since the interface information is the attribute information, the electronic device 201 may continue to determine to intercept the first request according to the interface information of the first interface and the media resource processing rule, so that the first request is not sent to the server, and the first media resource sent by the server cannot be received, and thus the first media resource is not presented on the electronic device 201 either, achieving the purpose of intercepting the presentation of the first media resource on the electronic device.

[0086] For the case where the electronic device 201 does not use an interface to obtain the first media resource, the foregoing attribute information for describing the first media resource may be the information of the first media resource itself, and the first request sent by the application may include the attribute information of the first media resource. In this case, the electronic device 201 may directly obtain the attribute information according to the first request.

[0087] In some possible implementations, when the user configures the media resource processing rules, the electronic device 201 may provide the user with a corresponding setting page or the like.

[0088] On the setting page, the user can select the processing rules for different types of media resources according to their own needs, such as intercepting or allowing, etc. Thus, the processing rules selected by the user are the above-mentioned media resource processing rules. Or, the user can also select the processing rules for different types of advertising resources according to their own needs, such as intercepting or allowing, etc. Thus, the processing rules selected by the user are the above-mentioned media resource processing rules. Or, the user can further select the processing rules for media resources with different resolutions or different resource sizes according to their own needs, such as intercepting or allowing, etc. Thus, the processing rules selected by the user are the above-mentioned media resource processing rules.

[0089] After that, the electronic device 201 determines whether to intercept the presentation of the media resource or allow the presentation of the media resource according to the processing rules selected by the user.

[0090] In some possible implementations, as shown in Figure 3 the above-mentioned electronic device 201 may further include a resource control SDK, a resource control executor, a resource control decision maker, and a resource control policy library, etc.

[0091] Taking the processing of the above-mentioned advertising resources as an example, the resource control SDK includes an advertising SDK. When an application runs on the electronic device 201, the media resources requested by the resource control SDK call interface corresponding to the application are advertising resources.

[0092] The resource control executor further determines the type (or display method, etc.) of the requested advertising resource for the advertising resource, such as a banner advertising resource, a native advertising resource, a splash screen advertising resource, an interstitial advertising resource, a video ad resource, an incentivized video ad resource. And the resource control executor sends the type of the advertising resource to the resource control decision maker.

[0093] The resource control decision maker obtains the control policy for this type from the resource control policy library according to the type of the advertising resource, such as refusing to display or allowing to display, etc., and again such as intercepting or allowing, etc.

[0094] If it is allowed to display, the resource control decision maker sends the corresponding decision result to the resource control executor, and the resource control executor allows the resource control SDK call interface to access the advertising resource, that is, sends a resource request to the server. And if it is refused to display, the resource control decision maker also sends the corresponding decision result to the resource control executor, and the resource control executor refuses the resource control SDK call interface to access the advertising resource, that is, intercepts the resource request sent by the advertising SDK.

[0095] The above-mentioned resource control policy library may include pre-stored control policies for various media resources. For example, at least one media resource processing rule in the above embodiments, etc.

[0096] As can be seen from the above, the electronic device can, in response to a resource request for a media resource, obtain attribute information for describing the media resource. After that, the electronic device obtains the media resource processing rules configured by the user, and based on the attribute information for describing the media resource and the media resource processing rules, intercepts the presentation of the media resource on the electronic device.

[0097] In the above method, the media resource processing rules can be configured by the user. That is to say, the user can configure how to process the media resource. The operation of the electronic device to intercept the presentation of the media resource can be carried out according to the user's configuration. Furthermore, the result of intercepting the media resource can better meet the user's requirements, improving the effect of media resource interception and the user's usage experience.

[0098] In addition, for the case where the electronic device obtains the media resource through an interface, since the interface corresponds to the media resource, the electronic device can more accurately determine the attribute information for describing the media resource through the interface information. Thus, the electronic device can also more accurately intercept the presentation of the media resource according to the attribute information and the media resource processing rules, improving the effect of intercepting the media resource, reducing the impact of providing the media resource on the user, and improving the user's usage experience.

[0099] It can be understood that the above-mentioned electronic device can be a terminal device such as a mobile phone, a tablet computer, a personal computer, a laptop computer, a smart TV, a smart central control screen, etc. that can install applications. And, the above-mentioned server can be a resource server, a media resource server, etc. that provides media resources for the electronic device. The forms of the electronic device and the server in the embodiments of the present application are not specifically limited.

[0100] Hereinafter, taking the above-mentioned electronic device as a mobile phone as an example, the resource processing method in the embodiments of the present application will be described. Refer to Figure 4 As shown, the above-mentioned resource processing method may include the following steps S401 - S403.

[0101] S401. The mobile phone, in response to a first request for a first media resource, obtains attribute information for describing the first media resource.

[0102] Among them, at least one application can be installed on the mobile phone. When the application is running, it can send a first request to the mobile phone to request the mobile phone to obtain the first media resource from the server.

[0103] In some embodiments, the mobile phone may obtain attribute information of the first media resource according to the first request. The attribute information here may refer to information of the first media resource itself, such as type information, resolution information, resource size, etc. of the first media resource. When the application initiates the first request, it may specify in the first request which or which first media resource (which may be represented by attribute information) is requested to be obtained, that is, the attribute information of the first media resource is included in the first request.

[0104] Alternatively, in the case where the mobile phone uses an interface to send the first request, since the first request can indicate the interface to be called, the mobile phone can also determine the corresponding first interface based on the first request. Since the interface has its corresponding media resource (i.e., calling a specific interface can obtain a specific media resource), the mobile phone can also obtain attribute information used to describe the first media resource based on the interface information of the first interface. The attribute information used to describe the first media resource may also be information about the first media resource itself, or may not be information about the first media resource itself, such as interface information. That is, the interface information may be used to characterize the attributes of the first media resource, such as type, resolution, resource size, etc.

[0105] It can be seen that in the above embodiments, in different situations, the mobile phone can obtain the attribute information of the first media resource in different ways, so as to make an accurate judgment on whether to intercept the presentation of the first media resource later.

[0106] The attribute information for describing the first media resource includes one or more of type information, resolution information, and resource size of the first media resource.

[0107] The type information of the first media resource is used to indicate the type of the first media resource, including picture resources, video resources, advertising resources, etc. Further, the advertising resources also include type information, which is specifically used to indicate the type of advertising resources, including banner advertising resources, native advertising resources, splash advertising resources, interstitial advertising resources, patch advertising resources, incentive video advertising resources, etc.

[0108] Among them, banner advertising resources can be displayed in the form of rectangular banners on the screen of a mobile phone, for example Figure 5 Native advertising resources can be used to adaptively display advertising content based on the corresponding application features, user and visual experience, content environment and other factors. For example, native advertising resources can be better integrated with application content. Figure 6 As shown. The splash screen ad resources can be displayed first after the app is launched. Users will not see the app content first, but the ad content first. For example Figure 7As shown in the figure. The interstitial ad resource can pop up and be displayed in full screen when the application is launched, paused, or exited. The pre-roll ad resource can be a video or picture ad inserted before, during, or after the video playback. Specifically, it can be further divided into pre-roll ad content, mid-roll ad content, post-roll ad content, etc. For example Figure 8 As shown in the figure. The rewarded video ad resource allows users to obtain in-app rewards by watching videos or engaging in trial play, etc.

[0109] Moreover, exemplarily, when the application requests to obtain different types of ad resources, the interfaces requested to be called are different. Or rather, different interfaces correspond to different ad resources, as shown in Table 2 below.

[0110] Table 2

[0111] Advertising resource type Interface Banner advertising resource BannerView Native advertising resource NativeAdLoader.Builder Splash advertising resource SplashView Interstitial advertising resource InterstitialAd Instream advertising resource InstreamAdLoader.Builder Rewarded video advertising resource RewardAd

[0112] Moreover, the resolution information of the first media resource is used to indicate the resolution of the first media resource requested to be obtained, such as 480P, 720P, 1080P, 4K, etc. The resource size of the first media resource is used to indicate the data volume of the first media resource requested to be obtained, such as 5MB, 10MB, 100MB, 500MB, etc.

[0113] S402. The mobile phone obtains the media resource processing rules configured by the user.

[0114] In some embodiments, the media resource processing rules can be configured by the user according to their own needs, can be pre-set by the mobile phone, or can be partially configured by the user and partially pre-set by the mobile phone.

[0115] For the case where the user configures the media resource processing rules according to their own needs, the mobile phone can provide a corresponding setting page for the user.

[0116] Exemplarily, the mobile phone can display a first setting page. Among them, the first setting page includes at least one first processing rule. One first processing rule is for one type of media resource, and the first processing rule is used to indicate intercepting or allowing the presentation of the media resource on the mobile phone. Then, the mobile phone responds to the user's selection operation on at least one first processing rule on the first setting page and obtains the media resource processing rules, where the media resource processing rules include at least one first processing rule.

[0117] For example, the above-mentioned first setting page can be as Figure 9 shown in the figure. Figure 9The first setting page 901 shown may include first processing rules such as "block picture resources", "block video resources", "block advertisement resources", etc. The user can select at least one first processing rule according to their own needs, and then choose not to watch a certain type or several types of media resources. The mobile phone can also make the interception result more in line with the user's viewing needs for media resources during subsequent interception according to the user's selection.

[0118] Exemplarily, for advertisement resources, the mobile phone can also display a second setting page. The second setting page includes at least one second processing rule, and one second processing rule corresponds to one type of advertisement resource. The second processing rule is used to indicate intercepting or allowing the corresponding type of advertisement resource to be presented on the mobile phone. After that, the mobile phone determines at least one second processing rule as the media resource processing rule in response to the user's selection operation on at least one second processing rule on the second setting page.

[0119] For example, the above-mentioned second setting page can be as Figure 10 shown. Figure 10 The second processing rules that can be displayed on the second setting page 1001 shown include "block native advertisements", "block splash advertisements", "block rewarded video advertisements", etc., and each second processing rule corresponds to a switch control. The user can control the switch control to be turned on or off by selecting the switch control corresponding to the second processing rule. When the switch control is turned on, it means that the user has selected to turn on the corresponding second processing rule. The user can select to turn on one or more second processing rules according to their own needs or preferences, etc., and then choose not to watch a certain type or several types of advertisement resources. The mobile phone can also make the interception result more in line with the user's viewing needs for advertisement resources during subsequent interception according to the user's selection.

[0120] In addition, the second setting page 1001 may also include processing rules for the advertisement resources themselves, such as "block all types of advertisements", etc. If the user selects to turn on this processing rule, the above-mentioned second processing rules are all selectable. If the user selects to turn off this processing rule, the above-mentioned second processing rules are grayed out, indicating that they are not selectable.

[0121] In the above implementation, there may be some advertisement resources that do not affect the user, or the user only dislikes some advertisement resources. Therefore, the user can block the advertisement resources that they dislike or do not want to watch. In this way, the mobile phone can intercept some media resource requests targeted according to the user's selection, flexibly meet the user's needs for advertisement resources, and improve the user's usage experience.

[0122] Exemplarily, for advertising resources, the mobile phone can also display a third setting page. The third setting page includes at least one third processing rule, one third processing rule corresponding to one blocking level, and one blocking level targeting at least one type of the advertising resources. Subsequently, the mobile phone determines the third processing rule as the media resource processing rule in response to the user's selection operation of the third processing rule on the third setting page.

[0123] For example, the above-mentioned third setting page can be as Figure 11 shown. Figure 11 The processing rules that can be displayed on the third setting page 1101 shown in include "ad blocking level", etc. After the user selects this processing rule, the user can further select the third processing rule corresponding to the blocking levels such as "high", "medium", "low", etc. Among them, different blocking levels correspond to blocking at least one type of advertising resources. For example, the blocking level "high" can correspond to blocking pre-roll ad resources, rewarded video ad resources, splash ad resources, interstitial ad resources, native ad resources, banner ad resources, etc., the blocking level "medium" can correspond to blocking splash ad resources, interstitial ad resources, pre-roll ad resources, rewarded video ad resources, etc., and the blocking level "low" can correspond to blocking pre-roll ad resources, rewarded video ad resources, etc. The user can select the corresponding blocking level according to their own needs or preferences, etc., so as to achieve the purpose of selecting the third processing rule. Similarly, in this way, the user can also choose not to watch a certain type or several types of advertising resources, and the mobile phone can also make the blocking result more in line with the user's viewing needs for advertising resources in the subsequent blocking process according to the user's selection.

[0124] In addition, the above-mentioned third setting page 1101 can also include processing rules for the advertising resources themselves, such as "enable ad level blocking", etc. If the user selects to enable this processing rule, the user can further select the third processing rule by referring to the above method. If the user selects to disable this processing rule, the mobile phone will not provide the user with the third processing rules corresponding to different blocking levels as shown above.

[0125] Exemplarily, the mobile phone can also display a fourth setting page. The fourth setting page includes at least one fourth processing rule, one fourth processing rule targeting a media resource within a resolution range, or a media resource within a resource size range, and the fourth processing rule is used to indicate blocking or allowing the presentation of the media resource on the mobile phone. Subsequently, the mobile phone determines the fourth processing rule as the media resource processing rule in response to the user's selection operation of the fourth processing rule on the fourth setting page.

[0126] For example, the above-mentioned fourth setting page can be as Figure 12 shown. Figure 12The fourth processing rules that can be displayed on the fourth setting page 1201 shown include "block high-definition pictures", "block high-definition videos", etc. Among them, "block high-definition pictures" can correspond to picture resources with a resource size in the range of [1MB, +∞), and "block high-definition videos" can correspond to video resources with a resolution in the range of [1080P, 4K]. Users can select the corresponding fourth processing rules according to their own needs or preferences, etc. Similarly, in this way, users can also choose not to watch a certain type or several types of media resources, and the mobile phone can also make the interception result more in line with the user's viewing needs for media resources during subsequent interception according to the user's selection.

[0127] It can be understood that the above explanations of the range of memory occupied by high-definition pictures and the range of resolution of high-definition videos are all exemplary explanations and do not serve as limitations on "high-definition pictures", "high-definition videos", etc. In some other embodiments or implementation manners, the memory occupied by "high-definition pictures" can also be in other ranges, and the resolution of "high-definition videos" can also be in other ranges.

[0128] S403. The mobile phone intercepts the presentation of the first media resource on the mobile phone based on the attribute information used to describe the first media resource and the media resource processing rule.

[0129] For example, if the first processing rule selected by the user on the setting page shown above Figure 9 is "block picture resources", then the media resource processing rule obtained by the mobile phone is "block picture resources". If the attribute information used to describe the first media resource indicates that the first media resource is a picture resource, then the mobile phone will intercept the presentation of this picture resource on the mobile phone, that is, the mobile phone will not display this picture resource, thus meeting the user's need not to watch picture resources.

[0130] Among them, if the user selects "block advertising resources", it can also reduce the presentation of advertisements on the mobile phone, reduce the occlusion of the content browsed by the user by the advertisement content, and can also reduce the user's traffic and network speed occupied by obtaining specific advertising resources from the server, etc., bringing a better user experience to the user.

[0131] For example, the user in the above Figure 10If the second processing rules selected on the settings page shown are "block native ads" and "block splash ads", then the processing rules for media resources obtained by the mobile phone are "block native ads" and "block splash ads". If the attribute information used to describe the first media resource indicates that the first media resource is a native ad resource, then the mobile phone will block the presentation of the native ad resource on the mobile phone. If the attribute information used to describe the first media resource indicates that the first media resource is a splash ad resource, then the mobile phone will block the presentation of the splash ad resource on the mobile phone. That is to say, the mobile phone will not display the above-mentioned native ad resources and splash ad resources, thus meeting the user's need not to watch these ad resources.

[0132] For example, if the third processing rule selected by the user on the settings page shown above Figure 11 is "low-level interception", then the processing rule for media resources obtained by the mobile phone is "intercept ads using low-level interception rules". If the attribute information used to describe the first media resource indicates that the first media resource is a video ad resource, then the mobile phone will block the presentation of the video ad resource on the mobile phone. If the attribute information used to describe the first media resource indicates that the first media resource is an incentivized video ad resource, then the mobile phone will block the presentation of the incentivized video ad resource on the mobile phone.

[0133] In this way, the mobile phone can intercept the presentation of some media resources targeted according to the user's selection, flexibly meet the user's needs for ad resources, and improve the user experience.

[0134] For another example, if the fourth processing rule selected by the user on the settings page shown above Figure 12 is "block high-definition videos", then the processing rule for media resources obtained by the mobile phone is "block high-definition videos". If the attribute information used to describe the first media resource indicates that the first media resource is a video resource and the resolution is 1080P, then the mobile phone will block the video resource.

[0135] In this way, users can block some media resources with too high or too large resolutions. The mobile phone can intercept the presentation of some media resources targeted according to the user's selection, flexibly meet the user's needs for media resources, and improve the user experience.

[0136] In some other embodiments, in addition to ad resources, interception levels can also be set for picture resources, video resources, etc. in the embodiments of the present application. Moreover, which media resources correspond to different interception levels of media resources such as ad resources, picture resources, and video resources can also be determined according to one or more factors such as the type of media resources, resolution / resource size, network download speed, and impact on users. For example, the interception levels for different media resources can be seen in Table 3 shown below.

[0137] Table 3

[0138]

[0139] In some embodiments, when the mobile phone intercepts the presentation of the above first media resource on the mobile phone, if the application sends a first request by requesting to call an interface, the mobile phone can intercept the first request to intercept the presentation of the first media resource on the mobile phone.

[0140] In some embodiments, the above mobile phone may include multiple interfaces, where the multiple interfaces include the above first interface and second interface. The mobile phone can also respond to a second request for a second media resource to obtain attribute information for describing the second media resource. Further, the mobile phone determines the corresponding second interface according to the second request, and allows the presentation of the second media resource on the mobile phone according to the interface information of the second interface and the media resource processing rule.

[0141] The above attribute information for describing the second media resource represents the same content as the attribute information for describing the first media resource, and the second media resource can be used to represent a resource that can be presented by the mobile phone, or a resource that is allowed to be presented in the media resource processing rule.

[0142] In this case, the mobile phone sends a second request to the server. After receiving the second request, the server obtains the corresponding second media resource and sends the second media resource to the mobile phone. After receiving the second media resource, the mobile phone displays it. Thus, the second media resource is presented to the user. In this way, when the application is running, the mobile phone can provide the user with picture resources, video resources, and / or advertisement resources, enabling the user to view various types of media resources and bringing a better and more comprehensive user experience.

[0143] The above presentation method for the second media resource is only an example. In some other embodiments, the mobile phone can also directly obtain the attribute information of the second media resource according to the second request, and allow the presentation of the second media resource on the mobile phone according to the attribute information of the second media resource and the media resource processing rule. The method of obtaining the attribute information of the second media resource can be the same as the method of obtaining the attribute information of the first media resource in the foregoing embodiments, which will not be elaborated here.

[0144] Further, in some other implementations, the mobile phone can also obtain the attribute information for describing the second media resource according to the interface information of the second interface, or determine the interface information of the second interface as the attribute information of the second media resource. The specific methods can all refer to the processing method of the first media resource in the foregoing embodiments, which will not be elaborated here.

[0145] As can be seen from the above, in the resource processing method provided in the embodiments of the present application, the mobile phone can respond to a resource request for a media resource and obtain attribute information for describing the media resource. After that, the mobile phone obtains the media resource processing rules configured by the user, and based on the attribute information for describing the media resource and the media resource processing rules, intercepts the presentation of the media resource on the mobile phone.

[0146] In the above method, the media resource processing rules can be configured by the user. That is to say, the user can configure how to process the media resource. The operation of the mobile phone to intercept the presentation of the media resource can be carried out according to the user's configuration. Furthermore, the result of intercepting the media resource can better meet the user's requirements, improving the effect of media resource interception and enhancing the user experience.

[0147] In addition, for the case where the mobile phone obtains media resources through an interface, since the interface corresponds to the media resource, the mobile phone can more accurately determine the attribute information for describing the media resource through the interface information. Thus, the mobile phone can also more accurately intercept the presentation of the media resource according to the attribute information and the media resource processing rules, improving the effect of intercepting the media resource and reducing the impact of providing the media resource on the user, and enhancing the user experience.

[0148] Moreover, the above method can provide a unified setting entry (i.e., a setting page) for the user, facilitating the user to set the media resources that they want to block or intercept by themselves. The user does not need to perform the above blocking or intercepting settings for each application separately. In this way, the user's operation will be more convenient.

[0149] In addition, on the premise of providing a unified setting entry, the mobile phone can obtain the media resource processing rules according to the user's selection operation of the processing rules on the setting page, and in combination with the attribute information corresponding to the media resource requested by the application, determine whether to intercept the presentation of the media resource. If the presentation of the media resource is intercepted, it means that the mobile phone will not display the corresponding media resource. That is to say, the mobile phone can display the media resource according to the user's operation or preference, etc., so that the display of the media resource is more in line with the user's needs.

[0150] In the above embodiments, the resource processing method is implemented on a mobile phone as an example to illustrate the resource processing method in the embodiments of the present application. In some other embodiments, the electronic device that can implement the above resource processing method can also be a tablet computer, a personal computer, a laptop computer, a smart TV, a smart central control screen, etc. The embodiments of the present application do not make specific limitations on this.

[0151] In some solutions, multiple embodiments of the present application can be combined and the combined solution can be implemented. Optionally, some operations in the processes of the method embodiments are optionally combined, and / or the order of some operations is optionally changed. Moreover, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps. The steps can also be in other execution orders. It is not intended to indicate that the described execution order is the only order in which these operations can be performed. Those of ordinary skill in the art will think of various ways to reorder the operations described in the embodiments of the present application. Additionally, it should be noted that the process details involved in a certain embodiment of the present application are similarly applicable to other embodiments in a similar manner, or different embodiments can be used in combination.

[0152] In addition, some steps in the method embodiments can be equivalently replaced with other possible steps. Or, some steps in the method embodiments can be optional and can be deleted in some usage scenarios. Or, other possible steps can be added to the method embodiments.

[0153] Moreover, the method embodiments can be implemented separately or in combination.

[0154] It can be understood that, to implement the above functions, the foregoing electronic device includes the corresponding hardware and / or software modules for executing each function. Combining the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the present application.

[0155] This embodiment can divide the functional modules of the electronic device according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is illustrative, only a logical function division, and there can be other division methods in actual implementation.

[0156] The embodiments of the present application also provide an electronic device, as Figure 13 shown. The electronic device can include a first acquisition module 1301, a second acquisition module 1302, and a processing module 1303.

[0157] Among them, the first acquisition module 1301 is configured to acquire attribute information for describing the first media resource in response to a first request for the first media resource, where the first request is used to acquire the first media resource from the server. For example, execute the relevant content of S401 above.

[0158] The second acquisition module 1302 is configured to acquire a media resource processing rule configured by the user. For example, execute the relevant content of S402 above.

[0159] The processing module 1303 is configured to intercept the rendering of the first media resource on the electronic device based on the attribute information for describing the first media resource and the media resource processing rule. For example, execute the relevant content of S403 above.

[0160] An embodiment of this application also provides an electronic device, as Figure 14 shown, the electronic device may include one or more processors 1401, a memory 1402, and a communication interface 1403.

[0161] Among them, the memory 1402 and the communication interface 1403 are coupled to the processor 1401. For example, the memory 1402 and the communication interface 1403 may be coupled to the processor 1401 through a bus 1404.

[0162] Among them, the communication interface 1403 is used for data transmission with other devices. The memory 1402 stores computer program code. The computer program code includes computer instructions, and when the computer instructions are executed by the processor 1401, the electronic device executes the resource processing method in the embodiment of this application.

[0163] Among them, the processor 1401 may be a processor or a controller. For example, it may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.

[0164] Among them, the bus 1404 can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The above-mentioned bus 1404 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 14 only a thick line is used to represent it in Figure 14 , but it does not mean that there is only one bus or one type of bus.

[0165] The embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions run on an electronic device, the electronic device executes the relevant method steps in the above-mentioned method embodiment.

[0166] The embodiment of the present application also provides a computer program product. When the computer program product runs on a computer, it causes the computer to execute the relevant method steps in the above-mentioned method embodiment. The computer program product can be stored in a readable storage medium.

[0167] The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0168] Among them, the electronic device, the computer storage medium, or the computer program product provided by the present application are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.

[0169] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above-mentioned division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0170] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A resource processing method, characterized in that, Applied to an electronic device, the method includes: In response to a first request for a first media resource, obtain attribute information for describing the first media resource; the first request is for obtaining the first media resource from a server. Obtain a media resource processing rule configured by a user. Based on the attribute information for describing the first media resource and the media resource processing rule, intercept the presentation of the first media resource on the electronic device.

2. The method according to claim 1, wherein The obtaining of the attribute information for describing the first media resource includes: According to the first request, obtain the attribute information of the first media resource; or, According to the first request, determine a corresponding first interface, and according to the interface information of the first interface, obtain the attribute information for describing the first media resource.

3. The method according to claim 2, characterized in that, The intercepting of the presentation of the first media resource on the electronic device based on the attribute information for describing the first media resource and the media resource processing rule includes: Based on the interface information of the first interface and the media resource processing rule, determine to intercept the first request to intercept the presentation of the first media resource on the electronic device.

4. The method according to claim 2, wherein The obtaining of the attribute information of the first media resource according to the first request includes: According to the call of the first interface by the first request, determine to use the interface information of the first interface as the attribute information for describing the first media resource.

5. The method according to any one of claims 1-4, characterized in that, The electronic device includes a plurality of interfaces, the plurality of interfaces including the first interface and a second interface; the method further includes: In response to a second request for a second media resource, obtain attribute information for describing the second media resource; the second request is for obtaining the second media resource from a server. According to the second request, determine a corresponding second interface, and according to the interface information of the second interface and the media resource processing rule, allow the presentation of the second media resource on the electronic device.

6. The method according to any one of claims 1-5, characterized in that The attribute information for describing the first media resource includes one or more of the type information, resolution information, and resource size of the first media resource.

7. The method according to any one of claims 1 to 6, characterized in that The intercepting of the presentation of the first media resource on the electronic device based on the attribute information for describing the first media resource and the media resource processing rule includes: Based on the attribute information for describing the first media resource, the media resource processing rule, and a preset service rule, intercept the presentation of the first media resource on the electronic device.

8. The method according to any one of claims 1 to 7, characterized in that, The obtaining of the media resource processing rule configured by the user includes: Display a first setting page; the first setting page includes at least one first processing rule, one of the first processing rules being for one type of media resource, and the first processing rule being for indicating to intercept or allow the presentation of the media resource on the electronic device; the types of the media resource include picture resources, video resources, and advertisement resources. In response to a user's selection operation on at least one of the first processing rules on the first setting page, obtain the media resource processing rule, the media resource processing rule including at least one of the first processing rules.

9. The method according to claim 8, wherein The media resource is an advertising resource, and the types of the advertising resources include banner advertising resources, native advertising resources, splash screen advertising resources, interstitial advertising resources, bumper advertising resources, and rewarded video advertising resources; The obtaining of the media resource processing rule configured by the user includes: Displaying a second setting page; the second setting page includes at least one second processing rule, and one second processing rule corresponds to one type of advertising resource, and the second processing rule is used to indicate intercepting or allowing the corresponding type of advertising resource to be presented on the electronic device; In response to a selection operation of the user on at least one of the second processing rules on the second setting page, determining at least one of the second processing rules as the media resource processing rule.

10. The method according to claim 9, characterized in that, The obtaining of the media resource processing rule configured by the user includes: Displaying a third setting page; the third setting page includes at least one third processing rule, one third processing rule corresponds to one blocking level, and one blocking level is for at least one type of the advertising resources; In response to a selection operation of the user on the third processing rule on the third setting page, determining the third processing rule as the media resource processing rule.

11. The method according to claim 8, wherein The obtaining of the media resource processing rule configured by the user includes: Displaying a fourth setting page; the fourth setting page includes at least one fourth processing rule, one fourth processing rule is for a media resource within a resolution range or within a resource size range, and the fourth processing rule is used to indicate intercepting or allowing the media resource to be presented on the electronic device; In response to a selection operation of the user on the fourth processing rule on the fourth setting page, determining the fourth processing rule as the media resource processing rule.

12. The method according to claim 5, wherein The allowing of the second media resource to be presented on the electronic device includes: Sending the second request to the server; Receiving and displaying the second media resource sent by the server; the second media resource is obtained by the server according to the second request.

13. An electronic device, characterized in that, It includes a memory and one or more processors; the memory is coupled to the processor; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the resource processing method as described in any one of claims 1-12.

14. A computer-readable storage medium, characterized in that, It includes computer instructions, and when the computer instructions run on an electronic device, the electronic device executes the resource processing method as described in any one of claims 1-12.