Method and device for searching media resource, storage medium and electronic device

文档序号:1687121 发布日期:2020-01-03 浏览:25次 中文

阅读说明:本技术 媒体资源的查找方法、装置、存储介质及电子装置 (Method and device for searching media resource, storage medium and electronic device ) 是由 李露露 于 2018-06-11 设计创作,主要内容包括:本发明公开了一种媒体资源的查找方法、装置、存储介质及电子装置。其中,该方法包括:获取目标媒体资源请求,其中,目标媒体资源请求用于请求与目标媒体资源请求的目标请求类型匹配的目标媒体资源;响应目标媒体资源请求,从预设的插件集合中确定出与目标请求类型具有对应关系的一组目标插件以及一组目标插件的调用关系,其中,插件集合中的每个插件用于执行媒体资源的确定过程中的一个功能,一组目标插件用于执行媒体资源的确定过程中的目标功能,以查找目标媒体资源;按照调用关系,调用一组目标插件来执行媒体资源的确定过程中的目标功能,以查找目标媒体资源。本发明解决了媒体资源查找时的灵活性较差的技术问题。(The invention discloses a method and a device for searching media resources, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request; responding to a target media resource request, and determining a group of target plug-ins having a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein each plug-in the plug-in set is used for executing one function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource; and according to the calling relation, calling a group of target plug-ins to execute target functions in the determination process of the media resources so as to search the target media resources. The invention solves the technical problem of poor flexibility in media resource searching.)

1. A method for searching media resources is characterized by comprising the following steps:

acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request;

responding to the target media resource request, and determining a group of target plug-ins which have a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing one function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource;

and calling the group of target plug-ins to execute the target functions in the determination process of the media resources according to the calling relation so as to search the target media resources.

2. The method of claim 1, wherein invoking the set of target plug-ins to perform the target function in the determination of the media resource in accordance with the invocation relationship comprises:

acquiring a starting plug-in the group of target plug-ins from the calling relation;

taking the starting plug-in as an initial currently called plug-in, repeatedly executing the following steps until the plug-in to be called corresponding to the currently called plug-in is not determined from the calling relation, acquiring the output information of the currently called plug-in, and determining the output information of the currently called plug-in as the target media resource:

calling and operating the currently called plug-in;

and determining the plug-in to be called corresponding to the plug-in to be called currently from the calling relation, and taking the plug-in to be called as a new plug-in to be called currently.

3. The method according to claim 2, wherein determining the plug-in to be called corresponding to the currently called plug-in from the calling relationship comprises:

searching the plug-in to be called corresponding to the plug-in to be called in the calling relation, wherein the calling relation comprises the plug-in to be called and the plug-in to be called which have corresponding relations; and/or the presence of a gas in the gas,

obtaining the operation result of the currently called plug-in; and searching the plug-in to be called corresponding to the running result of the currently called plug-in from the calling relationship, wherein the calling relationship comprises the running result of the currently called plug-in with the corresponding relationship and the plug-in to be called.

4. The method of claim 1, before determining a set of target plug-ins having a correspondence with the target request type and calling relationships of the set of target plug-ins from a preset plug-in set, the method further comprising:

acquiring the group of target plug-ins corresponding to the target request type and a calling relation of the group of target plug-ins, wherein the calling relation comprises a called plug-in with a corresponding relation, an operation result of the called plug-in and a plug-in to be called, and the group of target plug-ins comprises the called plug-in and the plug-in to be called;

and storing the target request type with the corresponding relation, the group of target plug-ins and the calling relation of the group of target plug-ins in a preset plug-in set.

5. The method of claim 1, before determining a set of target plug-ins having a correspondence with the target request type and calling relationships of the set of target plug-ins from a preset plug-in set, the method further comprising:

obtaining the group of target plug-ins corresponding to the target request type and the calling relationship of the group of target plug-ins, wherein the calling relationship comprises the calling sequence of the group of target plug-ins;

and storing the target request types with the corresponding relations and the calling sequence of the group of target plug-ins in a preset plug-in set.

6. The method of any of claims 1-5, wherein after invoking the set of target plug-ins to perform the target function in the determination of the media resource to find the target media resource according to the invocation relationship, the method further comprises:

and returning the searched target media resource to the client side sending the target media resource request.

7. An apparatus for searching media resources, comprising:

the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring a target media resource request, and the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request;

a determining module, configured to determine, in response to the target media resource request, a set of target plug-ins having a corresponding relationship with the target request type and a call relationship of the set of target plug-ins from a preset plug-in set, where the call relationship is used to indicate a call condition that needs to be met when each target plug-in the set of target plug-ins is called, each plug-in the plug-in set is used to execute a function in a determination process of a media resource, and the set of target plug-ins is used to execute a target function in the determination process of the media resource to search for the target media resource;

and the calling module is used for calling the group of target plug-ins to execute the target functions in the determination process of the media resources according to the calling relation so as to search the target media resources.

8. The apparatus of claim 7, wherein the invoking module comprises:

the obtaining unit is used for obtaining a starting plug-in the group of target plug-ins from the calling relation;

an execution unit, configured to take the starting plug-in as an initial currently-called plug-in, repeatedly execute the following steps until a to-be-called plug-in corresponding to the currently-called plug-in is not determined from the calling relationship, obtain output information of the currently-called plug-in, and determine the output information of the currently-called plug-in as the target media resource:

calling and operating the currently called plug-in;

and determining the plug-in to be called corresponding to the plug-in to be called currently from the calling relation, and taking the plug-in to be called as a new plug-in to be called currently.

9. The apparatus of claim 8, wherein the execution unit comprises:

the first searching unit is used for searching the plug-in to be called corresponding to the plug-in to be called currently from the calling relationship, wherein the calling relationship comprises the plug-in to be called and the plug-in to be called currently with corresponding relationship; and/or the presence of a gas in the gas,

the second searching unit is used for obtaining the operation result of the currently called plug-in; and searching the plug-in to be called corresponding to the running result of the currently called plug-in from the calling relationship, wherein the calling relationship comprises the running result of the currently called plug-in with the corresponding relationship and the plug-in to be called.

10. The apparatus of claim 7, further comprising:

a second obtaining module, configured to obtain the group of target plug-ins corresponding to the target request type and a calling relationship of the group of target plug-ins, where the calling relationship includes a called plug-in having a corresponding relationship, an operation result of the called plug-in, and a plug-in to be called, and the group of target plug-ins includes the called plug-in and the plug-in to be called;

and the first storage module is used for storing the target request type with the corresponding relation, the group of target plug-ins and the calling relation of the group of target plug-ins in a preset plug-in set.

11. The apparatus of claim 7, further comprising:

a third obtaining module, configured to obtain the group of target plug-ins corresponding to the target request type and a call relationship of the group of target plug-ins, where the call relationship includes a call sequence of the group of target plug-ins;

and the second storage module is used for storing the target request types with the corresponding relations and the calling sequence of the group of target plug-ins in a preset plug-in set.

12. The apparatus of any one of claims 7 to 11, further comprising:

and the returning module is used for returning the searched target media resource to the client side sending the target media resource request.

13. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed.

14. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.

Technical Field

The invention relates to the field of computers, in particular to a method and a device for searching media resources, a storage medium and an electronic device.

Background

With the rapid development of the mobile internet industry, various mobile apps are in a variety, and all of them have pressure to emerge after having traffic, and seek the existing search system of media resources (for example, an advertisement retrieval system) to provide media resources to obtain revenue. This requires that the system for searching media resources not only support the function of retrieving media resources of different media with different requirements and interfaces, but also be able to quickly access the flow and ensure the stability and maintainability of the whole system.

The existing search system for media resources is generally developed according to specific requirements of certain specific media, and various functional differences are generally realized by adding various branch conditions in codes and are not flexible enough.

In view of the above problems, no effective solution has been proposed.

Disclosure of Invention

The embodiment of the invention provides a method and a device for searching media resources, a storage medium and an electronic device, which are used for at least solving the technical problem of poor flexibility in searching the media resources.

According to an aspect of the embodiments of the present invention, a method for searching a media resource is provided, including: acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request; responding to the target media resource request, and determining a group of target plug-ins which have a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing one function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource; and calling the group of target plug-ins to execute the target functions in the determination process of the media resources according to the calling relation so as to search the target media resources.

According to another aspect of the embodiments of the present invention, there is also provided a device for searching for a media resource, including: the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring a target media resource request, and the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request; a determining module, configured to determine, in response to the target media resource request, a set of target plug-ins having a corresponding relationship with the target request type and a call relationship of the set of target plug-ins from a preset plug-in set, where the call relationship is used to indicate a call condition that needs to be met when each target plug-in the set of target plug-ins is called, each plug-in the plug-in set is used to execute a function in a determination process of a media resource, and the set of target plug-ins is used to execute a target function in the determination process of the media resource to search for the target media resource; and the calling module is used for calling the group of target plug-ins to execute the target functions in the determination process of the media resources according to the calling relation so as to search the target media resources.

According to another aspect of the embodiments of the present invention, there is also provided a storage medium, characterized in that the storage medium stores therein a computer program, wherein the computer program is configured to execute the method described in any one of the above when executed.

According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory and a processor, wherein the memory stores therein a computer program, and the processor is configured to execute the method described in any one of the above through the computer program.

In the embodiment of the invention, a target media resource request is acquired, wherein the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request; responding to a target media resource request, and determining a group of target plug-ins which have a corresponding relation with a target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing a function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource; calling a group of target plug-ins to execute target functions in the determination process of the media resources according to the calling relationship so as to search the target media resources, wherein each function in the determination process of the media resources is encapsulated into a plug-in, the calling relationship of the plug-ins is configured for different types of media resource requests so as to obtain a preset plug-in set, when the target media resource request is obtained, a group of target plug-ins corresponding to the target request type of the request and the calling relationship of the group of target plug-ins are obtained from the preset plug-in set in response to the request, the group of plug-ins is called according to the calling relationship so as to execute the target functions of the plug-ins so as to search the target media resources, so that the media resources can be flexibly searched for the media resource requests of different types, and the technical effect of improving the flexibility of the media resource searching is realized, and then the technical problem of poor flexibility when the media resource is searched is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

FIG. 1 is a diagram illustrating an alternative method for finding a media asset according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating an application environment of an alternative method for finding a media resource according to an embodiment of the present invention;

FIG. 3 is a diagram illustrating an alternative media asset lookup method according to an alternative embodiment of the invention;

FIG. 4 is a schematic diagram of another alternative media asset lookup method according to an alternative embodiment of the invention;

FIG. 5 is a schematic diagram of another alternative media asset lookup method according to an alternative embodiment of the invention;

FIG. 6 is a diagram illustrating an alternative apparatus for finding a media asset according to an embodiment of the present invention;

fig. 7 is a schematic application scenario diagram of an alternative media resource searching method according to an embodiment of the present invention; and

FIG. 8 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.

Detailed Description

In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

According to an aspect of the embodiments of the present invention, there is provided a method for searching for a media resource, as shown in fig. 1, the method includes:

s102, acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with a target request type of the target media resource request;

s104, responding to a target media resource request, and determining a group of target plug-ins which have a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing one function in the determination process of the media resource, and the group of target plug-ins is used for executing the target function in the determination process of the media resource so as to search the target media resource;

s106, according to the calling relation, calling a group of target plug-ins to execute the target function in the media resource determining process so as to search the target media resource.

Optionally, in this embodiment, the method for finding a media resource may be applied to a hardware environment formed by the server 202 shown in fig. 2. As shown in fig. 2, the server 202 obtains a target media resource request, where the target media resource request is used to request a target media resource matching a target request type of the target media resource request; responding to a target media resource request, and determining a group of target plug-ins which have a corresponding relation with a target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing a function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource; and according to the calling relation, calling a group of target plug-ins to execute target functions in the determination process of the media resources so as to search the target media resources.

Optionally, in this embodiment, the method for finding a media resource may be applied, but not limited to, in a scenario where a sender (e.g., a client) of a media resource request finds a media resource. The client may be, but not limited to, various types of applications, such as an online education application, an instant messaging application, a community space application, a game application, a shopping application, a browser application, a financial application, a multimedia application, a live application, a news reading application, and the like. Specifically, the method can be applied to, but not limited to, the above-mentioned scenario of finding a media resource for a multimedia application, or can also be applied to, but not limited to, the above-mentioned scenario of finding a media resource for a news reading application, so as to improve flexibility in finding a media resource. The above is only an example, and this is not limited in this embodiment.

Optionally, in this embodiment, the media resources may include, but are not limited to: advertisement assets, text assets, video assets, audio assets, image assets, and the like.

Optionally, in this embodiment, the calling relationship is used to indicate a calling condition to be satisfied for calling each target plug-in a set of target plug-ins, where the calling condition may be, but is not limited to, represented by a calling order of the target plug-ins, for example: the group of target plug-ins comprises plug-in 1, plug-in 2 and plug-in 3, if the execution condition of plug-in 1 is executed first, the execution condition of plug-in 2 is after plug-in 1 is executed, and the execution condition of plug-in 3 is after plug-in 2 is executed, the calling relation among them can be as follows: insert 1 → insert 2 → insert 3.

Optionally, in this embodiment, the calling condition may also be represented by a corresponding relationship among the current calling plug-in, an execution result of the current calling plug-in, and the plug-in to be called. For example: if the execution condition of the plug-in 1 is the first execution, the execution condition of the plug-in 2 is the result 1 obtained after the plug-in 1 is executed, and the execution condition of the plug-in 3 is the result 2 obtained after the plug-in 1 is executed, the calling relationship among the plug-ins can be represented by the corresponding relationship among the currently called plug-in, the execution result of the currently called plug-in and the plug-in to be called, namely, if the currently called plug-in is the plug-in 1 and the result 1 is obtained, the plug-in to be called is the plug-in 2, and if the currently called plug-in is the plug-in 1 and the result 2 is obtained, the plug-in to be called is.

Optionally, in this embodiment, taking the search of the advertisement resource as an example, the request type of the media resource request may include, but is not limited to: video class, information stream class, etc. Different plug-in combinations are configured for media resource requests of different request types, and different functions are combined through the plug-in combinations, so that the corresponding media resources are searched for.

Optionally, in this embodiment, taking the search of the advertisement resource as an example, the process of searching the media resource may be, but is not limited to, performing data transmission by using an Open Real Time Bidding (OpenRTB) protocol, where the OpenRTB protocol is a Real Time Bidding service interface established by an Interactive Advertising Bureau (IAB). Supporting banner advertisements, native advertisements, video advertisements, and the like. For example: the search process of the advertisement resources can be applied to an advertisement retrieval system, and the advertisement retrieval system is a typical data-driven business model, and the whole process of the advertisement retrieval system can be regarded as the processing of the advertisement data stream. In this embodiment, as shown in fig. 3, the data flow structure of the advertisement retrieval system is an extension based on the OpenRTB protocol, and includes three parts, where a bid request (bid request) and a bid response (bid response) are defined in the OpenRTB protocol, and a Session control (Session) object is data of an advertisement retrieval intermediate process stored according to different media requirements. The BidRequest stores advertisement request information, such as device information, application information, user information, exposure request information (advertisement slots and the like), and the OpenRTB is an open protocol, each object of the OpenRTB, such as the device information, supports additional attributes, and complex demand special information of different flows can be added into the additional attributes. BidResponse stores the final result information of the advertisement retrieval, including the information of advertisement resource link, monitoring link, position size of advertisement resource, etc., and is also expandable. The advertisement retrieval system flow may be, but is not limited to, divided into four phases: 1. request analysis stage, 2 directional information filling stage, 3 menu and flow control stage, 4, structure return data reporting stage. These four phases may be the process of processing and filling the three data stream structures.

In an optional implementation, as shown in fig. 4, when the target request type of the obtained target media resource request a is a media resource request of a video traffic a, a group of target plug-ins a (15 plug-ins such as a traffic a request parsing plug-in, a device platform plug-in, and a crowd information plug-in connected by a solid arrow shown in fig. 4) having a corresponding relationship with the video traffic a and a calling relationship a (shown by a solid arrow in fig. 4) of the group of target plug-ins a are determined from a preset plug-in set. And according to the calling relation A, calling a group of target plug-ins A to execute target functions in the determination process of the media resources so as to search the target media resources A. When the target request type of the obtained target media resource request B is a media resource request of an information flow B, a group of target plug-ins B (10 plug-ins such as a flow B request analysis plug-in, an equipment platform plug-in, and an IP regional plug-in connected by a dotted arrow shown in fig. 4) having a corresponding relationship with the information flow B and a calling relationship B of the group of target plug-ins B (shown by a dotted arrow in fig. 4) are determined from a preset plug-in set. And according to the calling relation B, calling a group of target plug-ins B to execute target functions in the media resource determination process so as to search the target media resource B.

It can be seen that, through the above steps, each function in the determination process of the media resource is encapsulated into a plug-in, a group of call relations of the plug-ins is configured for different types of media resource requests, a preset plug-in set is obtained, when a target media resource request is obtained, a group of target plug-ins corresponding to the target request type of the request and the call relation of the group of target plug-ins are obtained from the preset plug-in set in response to the request, the group of plug-ins are called according to the call relation to execute the target function of each plug-in, so as to find out the target media resource, and thus the media resource can be flexibly found out for different types of media resource requests, thereby achieving the technical effect of improving the flexibility when the media resource is found out, and further solving the technical problem of poor flexibility when the media resource is found out.

As an alternative, according to the calling relationship, calling a set of target plug-ins to perform the target function in the determination process of the media resource includes:

s1, obtaining a starting plug-in a group of target plug-ins from the calling relation;

s2, taking the initial plug-in as the initial plug-in called currently, repeatedly executing the following steps until the plug-in to be called corresponding to the plug-in called currently is not determined from the calling relation, obtaining the output information of the plug-in called currently, and determining the output information of the plug-in called currently as the target media resource:

s3, calling and running the currently called plug-in;

and S4, determining the plug-in to be called corresponding to the plug-in to be called currently from the calling relation, and taking the plug-in to be called as a new plug-in to be called currently.

Optionally, in this embodiment, a starting plug-in is obtained from the calling relationship, and the starting plug-in is called and run, and then, after each round of plug-ins is run, a next plug-in or plug-ins to be called are obtained from the calling relationship and are called and run as a new plug-in to be called currently until the next plug-in or plug-ins to be called cannot be determined from the calling relationship, at this time, a loop process may be determined to jump out, output information of the currently called plug-in is obtained, and the output information is determined as the target media resource.

Optionally, in this embodiment, the currently invoked plugin may be, but is not limited to, one or more plugins, and the plugin to be invoked may be, but is not limited to, one or more plugins.

As an optional scheme, determining, from the calling relationship, a to-be-called plug-in corresponding to the currently called plug-in includes:

s1, searching a plug-in to be called corresponding to the currently called plug-in from a calling relationship, wherein the calling relationship comprises the currently called plug-in and the plug-in to be called with corresponding relationships; and/or the presence of a gas in the gas,

s2, obtaining the operation result of the currently called plug-in; and searching the plug-in to be called corresponding to the running result of the plug-in to be called currently from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called currently with the corresponding relation and the plug-in to be called.

Optionally, in this embodiment, the current calling plug-in and the plug-in to be called having the corresponding relationship may be recorded in the calling relationship, and in this case, the plug-in to be called may be determined according to the currently called plug-in. The calling relation can record the running result of the current calling plug-in with the corresponding relation and the plug-in to be called, and under the condition, the plug-in to be called can be determined according to the running result of the current calling plug-in. Or the current calling plug-in with the corresponding relationship, the running result of the current calling plug-in and the plug-in to be called can be recorded in the calling relationship, and in this case, the plug-in to be called can be determined according to the current calling plug-in and the running result of the current calling plug-in.

In an optional embodiment, taking the search of the advertisement resource as an example, a target media resource request is obtained, where the target media resource request is used to request a target advertisement resource matching with the video traffic a, a group of target plug-ins (a video traffic a request parsing plug-in, a device platform plug-in, an Internet Protocol (IP) plug-in, a user basic information plug-in, a member (VIP) user advertisement plug-in, a new user advertisement plug-in, a user advertisement frequency control plug-in, a video traffic a return construction plug-in, a user crowd information plug-in, etc.) having a corresponding relationship with the target request type and a calling relationship of the group of target plug-ins as shown in table 1 are determined from a preset plug-in set in response to the target media resource request, where the calling relationship includes a currently called plug-in having a corresponding relationship and plug-ins to be called (e.g., rule 1 and rule 2 in table 1), the method also comprises a currently called plug-in with a corresponding relation, an operation result of the currently called plug-in and a plug-in to be called (for example, a rule 3 and a rule 4 in the table 1), and a group of target plug-ins are called to execute a target function in the determination process of the media resource according to the calling relation shown in the table 1 so as to search the target media resource.

For example: to support such complex needs, the advertisement retrieval system provides a flow control rule component, since different users with different media traffic may have different business flow logic, for example, VIP users may not be advertising. The input to the component is the data stream structure and the last (N) plug-ins, and the output is the next (N) plug-ins. The component uses the inputs to look up a flow control rule table, such as that shown in Table 1, to determine the plug-in to output. After each round of plug-in processing is finished, the flow control rule component is called, and the function plug-in called in the next round is dynamically determined. After the dynamic planning of this component, it is also the video traffic a, but the actually executed flow may be different for different user types. For the VIP user, after the user basic information plug-in, the VIP user has an attribute of VIP _ type ═ 1, and according to rule 3, the next plug-in process is known to be a VIP user advertisement. After the execution of the VIP user advertisement plug-in is finished, if the video.max duration attribute of the user is equal to 0, the advertisement duration is represented to be 0, and the next plug-in is constructed and returned as the video traffic A according to the rule 6; if the duration of the user's video.max duration is greater than 0, it indicates that there is an advertisement to be shown, and according to rule 7, the next plug-in is the user crowd information. Similarly, for a new user, after the user basic information plug-in, the new user has an attribute of new _ user ═ 1, and according to rule 4, it can be known that the next plug-in process is a new user advertisement plug-in. And after the new user advertisement plug-in is executed, determining the next (N) plug-ins to be called according to the operation result obtained by the new user advertisement plug-in. It should be noted that, the advertisement flow control for the registered user is similar to this, and is not described herein again.

TABLE 1

Figure BDA0001691700400000101

As an optional scheme, before determining a set of target plug-ins having a corresponding relationship with the target request type and a calling relationship of the set of target plug-ins from a preset plug-in set, the method further includes:

s1, obtaining a group of target plug-ins corresponding to the target request type and a calling relation of the group of target plug-ins, wherein the calling relation comprises a called plug-in with a corresponding relation, an operation result of the called plug-in and a plug-in to be called, and the group of target plug-ins comprises the called plug-in and the plug-in to be called;

s2, storing the target request type with corresponding relation, a group of target plug-ins and the calling relation of the group of target plug-ins in a preset plug-in set.

Optionally, in this embodiment, a called plug-in with a corresponding relationship, a running result of the called plug-in, and a calling relationship of a plug-in to be called as a set of target plug-ins may be preset for each type of media resource request, but not limited thereto. For example: as shown in table 1, the column where the upper N plug-ins are located is the called plug-in, the column where the data stream structure input is located is the operation result of the called plug-in, and the column where the lower N plug-ins are located is the plug-in to be called. And finding the next rule to be executed according to the corresponding relation of the three, and calling the plug-in according to the next rule to be executed.

As an optional scheme, before determining a set of target plug-ins having a corresponding relationship with the target request type and a calling relationship of the set of target plug-ins from a preset plug-in set, the method further includes:

s1, acquiring a group of target plug-ins corresponding to the target request type and the calling relationship of the group of target plug-ins, wherein the calling relationship comprises the calling sequence of the group of target plug-ins;

s2, storing the target request type with corresponding relation and the calling sequence of a group of target plug-ins in a preset plug-in set.

Optionally, in this embodiment, the calling order of a set of target plug-ins may be preset for each type of media resource request, but is not limited thereto. For example: as shown in table 2, when searching for advertisement resources for video traffic a, first, the plug-in 1 is called by the lookup table 2: the video flow A requests to analyze the plug-in, and after the execution is finished, the lookup table 2 calls the plug-in 2: the device platform plug-in and the IP plug-in, and then the lookup table 2 calls one of the plug-ins 3 according to the running result of the plug-in 2 again, and so on.

TABLE 2

As an optional scheme, after the step of calling a set of target plug-ins to execute the target function in the determination process of the media resource according to the calling relationship to find the target media resource, the method further includes:

and S1, returning the searched target media resource to the client sending the target media resource request.

Optionally, in this embodiment, the target media resource request may be, but is not limited to being, sent by the client. For example, to find an advertisement resource for a client, as shown in fig. 5, there may be different types of ad slots on the client, such as: ad spots for video traffic, ad spots for information stream traffic, ad spots for web page traffic, and so on. The client may send different types of targeted media asset requests to the server to obtain ad assets for different ad slots, but is not limited to.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.

Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.

According to another aspect of the embodiments of the present invention, there is also provided a media resource searching apparatus for implementing the above media resource searching method, as shown in fig. 6, the apparatus includes:

a first obtaining module 62, configured to obtain a target media resource request, where the target media resource request is used to request a target media resource matching a target request type of the target media resource request;

a determining module 64, configured to respond to a target media resource request, and determine, from a preset plug-in set, a set of target plug-ins having a corresponding relationship with a target request type and a call relationship of the set of target plug-ins, where the call relationship is used to indicate a call condition that needs to be met when each target plug-in the set of target plug-ins is called, each plug-in the plug-in set is used to execute a function in a determination process of a media resource, and a set of target plug-ins is used to execute a target function in the determination process of the media resource to search for the target media resource;

and the calling module 66 is used for calling a group of target plug-ins to execute the target functions in the determination process of the media resources according to the calling relation so as to search the target media resources.

Optionally, in this embodiment, the above-mentioned finding apparatus of media resources may be applied in a hardware environment formed by the server 202 shown in fig. 2. As shown in fig. 2, the server 202 obtains a target media resource request, where the target media resource request is used to request a target media resource matching a target request type of the target media resource request; responding to a target media resource request, and determining a group of target plug-ins which have a corresponding relation with a target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition which needs to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing a function in the determination process of the media resource, and the group of target plug-ins are used for executing the target function in the determination process of the media resource so as to search the target media resource; and according to the calling relation, calling a group of target plug-ins to execute target functions in the determination process of the media resources so as to search the target media resources.

Optionally, in this embodiment, the finding apparatus for a media resource may be applied, but not limited to, in a scenario where a sender (e.g., a client) of a media resource request finds a media resource. The client may be, but not limited to, various types of applications, such as an online education application, an instant messaging application, a community space application, a game application, a shopping application, a browser application, a financial application, a multimedia application, a live application, a news reading application, and the like. Specifically, the method can be applied to, but not limited to, the above-mentioned scenario of finding a media resource for a multimedia application, or can also be applied to, but not limited to, the above-mentioned scenario of finding a media resource for a news reading application, so as to improve flexibility in finding a media resource. The above is only an example, and this is not limited in this embodiment.

Optionally, in this embodiment, the calling relationship is used to indicate a calling condition to be satisfied for calling each target plug-in a set of target plug-ins, where the calling condition may be, but is not limited to, represented by a calling order of the target plug-ins, for example: the group of target plug-ins comprises plug-in 1, plug-in 2 and plug-in 3, if the execution condition of plug-in 1 is executed first, the execution condition of plug-in 2 is after plug-in 1 is executed, and the execution condition of plug-in 3 is after plug-in 2 is executed, the calling relation among them can be as follows: insert 1 → insert 2 → insert 3.

Optionally, in this embodiment, the calling condition may also be represented by a corresponding relationship among the current calling plug-in, an execution result of the current calling plug-in, and the plug-in to be called. For example: if the execution condition of the plug-in 1 is the first execution, the execution condition of the plug-in 2 is the result 1 obtained after the plug-in 1 is executed, and the execution condition of the plug-in 3 is the result 2 obtained after the plug-in 1 is executed, the calling relationship among the plug-ins can be represented by the corresponding relationship among the currently called plug-in, the execution result of the currently called plug-in and the plug-in to be called, namely, if the currently called plug-in is the plug-in 1 and the result 1 is obtained, the plug-in to be called is the plug-in 2, and if the currently called plug-in is the plug-in 1 and the result 2 is obtained, the plug-in to be called is.

Optionally, in this embodiment, the media resources may include, but are not limited to: advertisement assets, text assets, video assets, audio assets, image assets, and the like.

Optionally, in this embodiment, taking the search of the advertisement resource as an example, the request type of the media resource request may include, but is not limited to: video class, information stream class, etc. Different plug-in combinations are configured for media resource requests of different request types, and different functions are combined through the plug-in combinations, so that the corresponding media resources are searched for.

Optionally, in this embodiment, taking the search of the advertisement resource as an example, the process of searching the media resource may be, but is not limited to, performing data transmission by using an OpenRTB protocol, where the OpenRTB standard: the Open Real Time Bidding is a Real-Time Bidding service interface established by the IAB. Supporting banner advertisements, native advertisements, video advertisements, and the like. For example: the search process of the advertisement resources can be applied to an advertisement retrieval system, and the advertisement retrieval system is a typical data-driven business model, and the whole process of the advertisement retrieval system can be regarded as the processing of the advertisement data stream. In this embodiment, as shown in fig. 3, the data stream structure of the advertisement retrieval system is an extension based on the OpenRTB protocol, and includes three parts, where a BidRequest and a BidResponse are defined in the OpenRTB protocol, and a Session object is data of an advertisement retrieval intermediate process stored according to different media requirements. The BidRequest stores advertisement request information, such as device information, application information, user information, exposure request information (advertisement slots and the like), and the OpenRTB is an open protocol, each object of the OpenRTB, such as the device information, supports additional attributes, and complex demand special information of different traffic can be added to the additional attributes. BidResponse stores the final result information of the advertisement retrieval, including the information of advertisement resource link, monitoring link, position size of advertisement resource, etc., and is also expandable. The advertisement retrieval system flow may be, but is not limited to, divided into four phases: 1. request analysis stage, 2 directional information filling stage, 3 menu and flow control stage, 4, structure return data reporting stage. These four phases may be the process of processing and filling the three data stream structures.

In an optional implementation, as shown in fig. 4, when the target request type of the obtained target media resource request a is a media resource request of a video traffic a, a group of target plug-ins a (15 plug-ins such as a traffic a request parsing plug-in, a device platform plug-in, and a crowd information plug-in connected by a solid arrow shown in fig. 4) having a corresponding relationship with the video traffic a and a calling relationship a (shown by a solid arrow in fig. 4) of the group of target plug-ins a are determined from a preset plug-in set. And according to the calling relation A, calling a group of target plug-ins A to execute target functions in the determination process of the media resources so as to search the target media resources A. When the target request type of the obtained target media resource request B is a media resource request of an information flow B, a group of target plug-ins B (10 plug-ins such as a flow B request analysis plug-in, an equipment platform plug-in, and an IP regional plug-in connected by a dotted arrow shown in fig. 4) having a corresponding relationship with the information flow B and a calling relationship B of the group of target plug-ins B (shown by a dotted arrow in fig. 4) are determined from a preset plug-in set. And according to the calling relation B, calling a group of target plug-ins B to execute target functions in the media resource determination process so as to search the target media resource B.

It can be seen that, with the above apparatus, each function in the determination process of the media resource is encapsulated into a plug-in, and a group of call relations of the plug-in is configured for different types of media resource requests, so as to obtain a preset plug-in set, when a target media resource request is obtained, a group of target plug-ins corresponding to the target request type of the request and the call relation of the group of target plug-ins are obtained from the preset plug-in set in response to the request, and the group of plug-ins is called according to the call relation to execute the target function of each plug-in, so as to find out the target media resource, thereby being capable of flexibly finding out the media resource for different types of media resource requests, thereby achieving the technical effect of improving the flexibility when finding out the media resource, and further solving the technical problem of poor flexibility when finding out the media resource.

As an optional solution, the calling module includes:

the acquisition unit is used for acquiring a starting plug-in a group of target plug-ins from the calling relation;

the execution unit is used for taking the initial plug-in as an initial currently called plug-in, repeatedly executing the following steps until the plug-in to be called corresponding to the currently called plug-in is not determined from the calling relation, acquiring the output information of the currently called plug-in, and determining the output information of the currently called plug-in as a target media resource:

calling and running the currently called plug-in;

and determining the plug-in to be called corresponding to the plug-in to be called currently from the calling relation, and taking the plug-in to be called as a new plug-in to be called currently.

Optionally, in this embodiment, a starting plug-in is obtained from the calling relationship, and the starting plug-in is called and run, and then, after each round of plug-ins is run, a next plug-in or plug-ins to be called are obtained from the calling relationship and are called and run as a new plug-in to be called currently until the next plug-in or plug-ins to be called cannot be determined from the calling relationship, at this time, a loop process may be determined to jump out, output information of the currently called plug-in is obtained, and the output information is determined as the target media resource.

Optionally, in this embodiment, the currently invoked plugin may be, but is not limited to, one or more plugins, and the plugin to be invoked may be, but is not limited to, one or more plugins.

As an alternative, the execution unit includes:

the system comprises a first searching unit, a second searching unit and a judging unit, wherein the first searching unit is used for searching a plug-in to be called corresponding to a currently called plug-in from a calling relationship, and the calling relationship comprises the currently called plug-in and the plug-in to be called with corresponding relationships; and/or the presence of a gas in the gas,

the second searching unit is used for obtaining the operation result of the currently called plug-in; and searching the plug-in to be called corresponding to the running result of the plug-in to be called currently from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called currently with the corresponding relation and the plug-in to be called.

Optionally, in this embodiment, the current calling plug-in and the plug-in to be called having the corresponding relationship may be recorded in the calling relationship, and in this case, the plug-in to be called may be determined according to the currently called plug-in. The calling relation can record the running result of the current calling plug-in with the corresponding relation and the plug-in to be called, and under the condition, the plug-in to be called can be determined according to the running result of the current calling plug-in. Or the current calling plug-in with the corresponding relationship, the running result of the current calling plug-in and the plug-in to be called can be recorded in the calling relationship, and in this case, the plug-in to be called can be determined according to the current calling plug-in and the running result of the current calling plug-in.

In an optional implementation manner, taking the search of the advertisement resource as an example, a target media resource request is obtained, where the target media resource request is used to request a target advertisement resource matching with the video traffic a, and in response to the target media resource request, a group of target plug-ins (a video traffic a request parsing plug-in, a device platform plug-in, an IP plug-in, a user basic information plug-in, a VIP user advertisement plug-in, a new user advertisement plug-in, a user advertisement frequency control plug-in, a video traffic a return construction plug-in, a user crowd information plug-in, etc.) having a corresponding relationship with the target request type and a call relationship of the group of target plug-ins as shown in table 3 are determined, where the call relationship includes a currently called plug-in having a corresponding relationship and a plug-in to be called (for example, rule 1 and rule 2 in table 3), the method also comprises a currently called plug-in with a corresponding relation, an operation result of the currently called plug-in and a plug-in to be called (for example, a rule 3 and a rule 4 in a table 3), and a group of target plug-ins are called to execute a target function in the determination process of the media resource according to the calling relation shown in the table 3 so as to search the target media resource.

For example: to support such complex needs, the advertisement retrieval system provides a flow control rule component, since different users with different media traffic may have different business flow logic, for example, VIP users may not be advertising. The input to the component is the data stream structure and the last (N) plug-ins, and the output is the next (N) plug-ins. The component uses the inputs to look up a flow control rule table, such as that shown in table 3, to determine the plug-in to output. After each round of plug-in processing is finished, the flow control rule component is called, and the function plug-in called in the next round is dynamically determined. After the dynamic planning of this component, it is also the video traffic a, but the actually executed flow may be different for different user types. For the VIP user, after the user basic information plug-in, the VIP user has an attribute of VIP _ type ═ 1, and according to rule 3, the next plug-in process is known to be a VIP user advertisement. After the execution of the VIP user advertisement plug-in is finished, if the video.max duration attribute of the user is equal to 0, the advertisement duration is represented to be 0, and the next plug-in is constructed and returned as the video traffic A according to the rule 6; if the duration of the user's video.max duration is greater than 0, it indicates that there is an advertisement to be shown, and according to rule 7, the next plug-in is the user crowd information. Similarly, for a new user, after the user basic information plug-in, the new user has an attribute of new _ user ═ 1, and according to rule 4, it can be known that the next plug-in process is a new user advertisement plug-in. And after the new user advertisement plug-in is executed, determining the next (N) plug-ins to be called according to the operation result obtained by the new user advertisement plug-in. It should be noted that, the advertisement flow control for the registered user is similar to this, and is not described herein again.

TABLE 3

Figure BDA0001691700400000191

As an optional solution, the apparatus further includes:

the second acquisition module is used for acquiring a group of target plug-ins corresponding to the target request type and a calling relation of the group of target plug-ins, wherein the calling relation comprises a called plug-in with a corresponding relation, an operation result of the called plug-in and a plug-in to be called, and the group of target plug-ins comprises the called plug-in and the plug-in to be called;

the first storage module is used for storing the target request type with the corresponding relation, a group of target plug-ins and the calling relation of the group of target plug-ins in a preset plug-in set.

Optionally, in this embodiment, a called plug-in with a corresponding relationship, a running result of the called plug-in, and a calling relationship of a plug-in to be called as a set of target plug-ins may be preset for each type of media resource request, but not limited thereto. For example: as shown in table 3, the column in which the upper N plug-ins are located is the called plug-in, the column in which the data stream structure input is located is the operation result of the called plug-in, and the column in which the lower N plug-ins are located is the plug-in to be called. And finding the next rule to be executed according to the corresponding relation of the three, and calling the plug-in according to the next rule to be executed.

As an optional solution, the apparatus further includes:

the third acquisition module is used for acquiring a group of target plug-ins corresponding to the target request type and a calling relation of the group of target plug-ins, wherein the calling relation comprises a calling sequence of the group of target plug-ins;

and the second storage module is used for storing the target request type with the corresponding relation and the calling sequence of a group of target plug-ins in a preset plug-in set.

Optionally, in this embodiment, the calling order of a set of target plug-ins may be preset for each type of media resource request, but is not limited thereto. For example: as shown in table 4, when searching for advertisement resources for video traffic a, first, the plug-in 1 is called by the lookup table 4: the video flow A requests for analyzing the plug-in, and after the execution is finished, the lookup table 4 calls the plug-in 2: the device platform plug-in and the IP plug-in, and then the lookup table 4 calls one of the plug-ins 3 according to the running result of the plug-in 2 again, and so on.

TABLE 4

Figure BDA0001691700400000201

Figure BDA0001691700400000211

As an optional solution, the apparatus further includes:

and the returning module is used for returning the searched target media resource to the client side sending the target media resource request.

Optionally, in this embodiment, the target media resource request may be, but is not limited to being, sent by the client. For example, to find an advertisement resource for a client, as shown in fig. 5, there may be different types of ad slots on the client, such as: ad spots for video traffic, ad spots for information stream traffic, ad spots for web page traffic, and so on. The client may send different types of targeted media asset requests to the server to obtain ad assets for different ad slots, but is not limited to.

The application environment of the embodiment of the present invention may refer to the application environment in the above embodiments, but is not described herein again. The embodiment of the invention provides an optional specific application example of the connection method for implementing the real-time communication.

As an alternative embodiment, the above method for finding media resources can be applied, but not limited to, in the scenario of finding advertisement resources for video traffic a as shown in fig. 7. In this scenario, a plug-in architecture design is introduced into an advertisement retrieval system, an advertisement retrieval data stream structure based on the Openrtb extension protocol is defined, the whole advertisement retrieval is disassembled into a process of processing the data stream, and each specific function point can be regarded as a node through which the data stream passes. The advertisement retrieval system also supports different requirements on different media, and uses rule matching to dynamically select proper node combinations, thereby automatically controlling the whole advertisement retrieval process. Therefore, the purposes of decoupling each functional module, improving the system stability and improving the efficiency of accessing new media flow are achieved.

Each functional unit may be referred to as a functional plug-in to the advertisement retrieval system. As shown in table 5, the input and output of each plug-in are three data structures in the Openrtb extension protocol. However, the input field on which each functional plug-in depends may be a specific attribute or attributes such as an IP zone plug-in, the input attribute that depends on is IP, and what is actually affected (backfilled) by the functional plug-in is an attribute or attributes such as a zone attribute area.

TABLE 5

Figure BDA0001691700400000221

The directed acyclic graph formed by combining the data flow arrow direction and the functional plug-in may be referred to as a flow control graph of the advertisement retrieval system, for example, the flow control graph of video flow a strung by a solid arrow in fig. 4, and the flow control graph of information flow B strung by a dashed arrow in fig. 4. Each user with different flow and even different user has a control flow chart adapting to the special requirement, the advertisement retrieval system executes the service flow based on the flow chart, the flow is ensured not to be reversed, and different flows can share a plurality of same functional plug-ins, so as to improve the development speed.

To support such complex needs, the advertisement retrieval system provides a flow control rule component, since different users with different media traffic may have different business flow logic, for example, VIP users may not be advertising. The input to the component is the data stream structure and the last (N) plug-ins, and the output is the next (N) plug-ins. The component uses the inputs to look up a flow control rule table, such as that shown in Table 1, to determine the plug-in to output. After each round of plug-in processing is finished, the flow control rule component is called once, and the function plug-in called in the next round is dynamically planned. After the dynamic planning of this component, it is also the video traffic a, but different user types, the actually executed flow control chart may be different. As shown in fig. 7, for the VIP user, after the user basic information plug-in, the VIP user has an attribute of VIP _ type ═ 1, and the next plug-in process is VIP user advertisement. After the execution of the VIP user advertisement plug-in is finished, if the video.max duration attribute of the user is equal to 0, the advertisement duration is 0, and the next plug-in is a video flow A construction return; if the user's video duration is greater than 0, indicating that there is an advertisement to be shown, the next plug-in is user demographic information. The advertisement flow of the new user and the advertisement flow of the registered user are similar to each other, and are not described herein again.

In the scene, a data flow data structure based on Openrtb is adopted, and because a standardized protocol of advertisement bidding formulated by IAB is used, the application in the industry is wide, the request and return formats of the docking media can be conveniently adapted, the docking threshold is low, and more media can be promoted to be accessed into the advertisement retrieval system. A plurality of external DSPs and ADX systems are compatible with the protocol, and external advertisement resources are favorably introduced into the advertisement retrieval system.

And secondly, the functional module is plugged in, so that development of repeated codes is reduced, simplicity of unit testing is increased, and stability of the whole system is improved. The access of the flow is the combination of the functional plug-ins, and the advertisement retrieval system can be ensured to be rapidly and stably accessed to the new media flow.

In addition, the regularization of the flow control function can simply realize the execution of different advertisement flows according to certain specific attributes by modifying rules instead of modifying codes, thereby avoiding the risk of on-line development and test and supporting the real-time adjustment of the strategy of the advertisement retrieval system.

According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-mentioned search of a media resource, as shown in fig. 8, the electronic device includes: one or more processors 802 (only one of which is shown), in which a computer program is stored, a memory 804, in which a sensor 806, an encoder 808 and a transmission device 810 are arranged, wherein the processor is arranged to execute the steps of any of the above-described method embodiments by means of the computer program.

Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.

Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:

s1, acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with the target request type of the target media resource request;

s2, responding to a target media resource request, and determining a group of target plug-ins having a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing a function in the determination process of the media resource, and the group of target plug-ins is used for executing the target function in the determination process of the media resource to search the target media resource;

and S3, according to the calling relation, calling a group of target plug-ins to execute target functions in the determination process of the media resources so as to search the target media resources.

Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 8 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.

The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for searching media resources in the embodiments of the present invention, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, implements the control method of the target component described above. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The transmitting device 810 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 810 includes a network adapter (NIC) that can be connected to a router via a network cable and other network devices to communicate with the internet or a local area network. In one example, the transmission device 810 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.

Wherein the memory 802 is used for storing, inter alia, application programs.

Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.

Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:

s1, acquiring a target media resource request, wherein the target media resource request is used for requesting a target media resource matched with the target request type of the target media resource request;

s2, responding to a target media resource request, and determining a group of target plug-ins having a corresponding relation with the target request type and a calling relation of the group of target plug-ins from a preset plug-in set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plug-in the group of target plug-ins, each plug-in the plug-in set is used for executing a function in the determination process of the media resource, and the group of target plug-ins is used for executing the target function in the determination process of the media resource to search the target media resource;

and S3, according to the calling relation, calling a group of target plug-ins to execute target functions in the determination process of the media resources so as to search the target media resources.

Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.

Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

28页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种图像管理方法及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!