CN110647634B - Method and device for searching media resources, storage medium and electronic device - Google Patents

Method and device for searching media resources, storage medium and electronic device Download PDF

Info

Publication number
CN110647634B
CN110647634B CN201810594461.4A CN201810594461A CN110647634B CN 110647634 B CN110647634 B CN 110647634B CN 201810594461 A CN201810594461 A CN 201810594461A CN 110647634 B CN110647634 B CN 110647634B
Authority
CN
China
Prior art keywords
target
plug
called
plugins
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810594461.4A
Other languages
Chinese (zh)
Other versions
CN110647634A (en
Inventor
李露露
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201810594461.4A priority Critical patent/CN110647634B/en
Publication of CN110647634A publication Critical patent/CN110647634A/en
Application granted granted Critical
Publication of CN110647634B publication Critical patent/CN110647634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

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, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein each plugin in the plugin set is used for executing one function in the determination process of the media resource, and the group of target plugins is used for executing the target function in the determination process of the media resource so as to find the target media resource; and calling a group of target plugins to execute target functions in the determining process of the media resources according to the calling relation so as to find the target media resources. The invention solves the technical problem of poor flexibility in searching media resources.

Description

Method and device for searching media resources, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus 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 endlessly developed, and have pressure to become active after having traffic, and search for existing media resources (such as advertisement retrieval systems) to provide the media resources so as to obtain benefits. The search system of media resources is required to support the search function of media resources of different media with different demands and interfaces, and can access the flow rapidly and ensure the stability and maintainability of the whole system.
Existing media resource searching systems are generally developed for specific requirements of specific media, and various functional differences are generally realized by adding various branching conditions in codes, so that the searching systems are not flexible enough.
In view of the above problems, no effective solution has been proposed at present.
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 an embodiment of the present invention, there is provided a method for searching media resources, 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, determining a group of target plugins with a corresponding relation with the target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plugin in the group of target plugins, each plugin in set is used for executing one function in a media resource determining process, and the group of target plugins is used for executing the target function in the media resource determining process so as to search the target media resource; and calling the group of target plugins to execute the target function in the determination process of the media resource according to the calling relation so as to find the target media resource.
According to another aspect of the embodiment of the present invention, there is also provided a device for searching media resources, including: the first acquisition module is used for 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; the determining module is used for responding to the target media resource request, determining a group of target plugins with a corresponding relation with the target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to find the target media resource; and the calling module is used for calling the group of target plugins to execute the target function in the determining process of the media resource according to the calling relation so as to search the target media resource.
According to a further aspect of an embodiment of the present invention, there is also provided a storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to perform the method of any of the above-mentioned methods when run.
According to a further aspect of an embodiment of the invention there is also provided 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 according to any of the preceding claims by means of 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, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to search the target media resource; according to the calling relation, a group of target plugins are called to execute target functions in the determining process of the media resources, in a mode of searching the target media resources, each function in the determining process of the media resources is packaged into a plugin, the calling relation of a group of plugins is configured for different types of media resource requests, a preset plugin set is obtained, when the target media resource requests are obtained, a group of target plugins corresponding to the requested target request types and the calling relation of the group of target plugins are obtained from the preset plugin set in response to the requests, the group of plugins are called according to the calling relation to execute target functions of each plugin, so that the target media resources can be searched for various types of media resource requests flexibly, the technical effect of improving flexibility in searching the media resources is achieved, and the technical problem that flexibility in searching the media resources is poor is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of an alternative media asset lookup method according to an embodiment of the invention;
FIG. 2 is a schematic illustration of an alternative media asset lookup method application environment according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative method of searching for media assets in accordance with an alternative embodiment of the invention;
FIG. 4 is a schematic diagram of another alternative method of searching for media assets in accordance with an alternative embodiment of the invention;
FIG. 5 is a schematic diagram of another alternative method of searching for media assets in accordance with an alternative embodiment of the invention;
FIG. 6 is a schematic diagram of an alternative media asset lookup device according to an embodiment of the invention;
FIG. 7 is a schematic illustration of an application scenario of an alternative method of searching for media assets according to an embodiment of the invention; and
Fig. 8 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 an embodiment of the present invention, there is provided a method for searching media resources, as shown in fig. 1, including:
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, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to search the target media resource;
s106, according to the calling relation, a group of target plugins are called to execute target functions in the determining process of the media resources so as to find the target media resources.
Alternatively, in this embodiment, the above method for searching media resources 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 that matches a target request type of the target media resource request; responding to a target media resource request, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to search the target media resource; and calling a group of target plugins to execute target functions in the determining process of the media resources according to the calling relation so as to find the target media resources.
Alternatively, in this embodiment, the above-mentioned method for searching for media resources may be applied, but not limited to, in a scenario where a sender (e.g., a client) of a media resource request searches for media resources. 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 broadcast application, a news reading application, and the like. In particular, the method can be applied to the scene of searching the media resources for the multimedia application or can be applied to the scene of searching the media resources for the news reading application to improve the flexibility of searching the media resources. The above is merely an example, and there is no limitation in this embodiment.
Alternatively, in this embodiment, the foregoing media resources may include, but are not limited to: advertising resources, text resources, video resources, audio resources, image resources, and so forth.
Optionally, in this embodiment, the call relation is used to indicate a call condition that needs to be satisfied by calling each target plug-in a set of target plug-ins, where the call condition may be, but is not limited to, represented by a call order of the target plug-ins, for example: a group of target plugins includes plugin 1, plugin 2 and plugin 3, if the execution condition of plugin 1 is first execution, the execution condition of plugin 2 is after plugin 1 is executed, and the execution condition of plugin 3 is after plugin 2 is executed, the calling relationship between them can be in the calling order: plug-in 1→plug-in 2→plug-in 3.
Optionally, in this embodiment, the call condition may also be represented by a current calling plug-in, an execution result of the current calling plug-in, and a corresponding relationship between plug-ins to be called. For example: the above plugin 1, plugin 2, and plugin 3, if the execution condition of plugin 1 is the first execution, the execution condition of plugin 2 is that plugin 1 is executed to obtain result 1, and the execution condition of plugin 3 is that plugin 1 is executed to obtain result 2, then the call relationship between them may be represented by the corresponding relationship among the current calling plugin, the execution result of the current calling plugin, and the plugin to be called, that is, the current calling plugin is plugin 1 to obtain result 1, the plugin to be called is plugin 2, and the current calling plugin is plugin 1 to obtain result 2, and the plugin to be called is plugin 3.
Alternatively, in this embodiment, taking the search of advertisement resources as an example, the request types of the media resource request may include, but are not limited to: video class, information stream class, etc. Different plug-in combinations are configured for the media resource requests of different request types, and different functions are combined through the plug-in combinations, so that corresponding media resources are searched for.
Optionally, in this embodiment, taking searching of advertisement resources as an example, the process of searching media resources may, but is not limited to, adopting a real-time bidding (Open Real Time Bidding, abbreviated as OpenRTB) protocol for data transmission, where the OpenRTB protocol is a real-time bidding service interface formulated by an interactive advertisement Bureau (INTERACTIVE ADVERTISING Bureau, abbreviated as IAB). Banner advertisements, native advertisements, video advertisements, etc. are supported. For example: the search process of the advertisement resource can be applied to an advertisement retrieval system, which is a typical data-driven business model, and the whole flow of the advertisement retrieval system can be regarded as processing the advertisement data flow. In this embodiment, as shown in fig. 3, the data stream data structure of the advertisement retrieval system is an extension based on OpenRTB protocol, which includes three parts, wherein the bid request (BidRequest) and the bid response (BidResponse) are defined in OpenRTB protocol, and the Session control (Session) object is the data of the advertisement retrieval middle process stored according to different media requirements. BidRequest store advertisement request information such as device information, application information, user information, exposure request information (ad slots, etc.), while OpenRTB is an open protocol, each object of which like device information supports additional attributes to which complex demand specific information for different traffic can be added. BidResponse store the final result information of the advertisement retrieval, including information on advertisement resource links, monitoring links, advertisement resource location size, etc., which is also scalable. The ad retrieval system flow may be divided into, but is not limited to, four phases: 1. a request analysis stage, a directional information filling stage, a menu and flow control stage and a construction return data reporting stage. These four phases may be the process of processing and populating the three data stream structures.
In an alternative embodiment, as shown in fig. 4, when the obtained target request type of the target media resource request a is a media resource request of the video traffic a, a group of target plugins a (15 plugins such as a traffic a request parsing plugin, an equipment platform plugin, a crowd information plugin and the like connected by solid arrows shown in fig. 4) having a corresponding relationship with the video traffic a and a calling relationship a of the group of target plugins a are determined from a preset plugin set (shown by solid arrows in fig. 4). And according to the calling relation A, calling a group of target plugins A to execute target functions in the determining process of the media resources so as to find the target media resources A. When the obtained target request type of the target media resource request B is a media resource request of the information flow B, determining a group of target plugins B (10 plugins such as a flow B request analysis plugin, an equipment platform plugin, an IP region plugin and the like connected by a dashed arrow shown in fig. 4) and a calling relationship B (shown by a dashed arrow in fig. 4) of the group of target plugins B, wherein the group of target plugins B has a corresponding relationship with the information flow B from a preset plugin set. And according to the calling relation B, calling a group of target plugins B to execute target functions in the determining process of the media resources so as to find the target media resources B.
Therefore, through the steps, each function in the determining process of the media resource is encapsulated into one plugin, and a calling relation of a group of plugins is configured for different types of media resource requests, so that a preset plugin set is obtained, when a target media resource request is obtained, a group of target plugins corresponding to the target request type of the request and the calling relation of the group of target plugins are obtained from the preset plugin set in response to the request, the group of plugins are called according to the calling relation to execute the target function of each plugin, so that the target media resource is searched, and the media resource can be flexibly searched for various different types of media resource requests, so that the technical effect of improving the flexibility in searching the media resource is achieved, and the technical problem of poor flexibility in searching the media resource is solved.
As an alternative, invoking a set of target plugins to perform a target function in the determination of a media resource according to a call relationship includes:
S1, acquiring an initial plug-in a group of target plug-ins from a calling relation;
S2, taking the initial plug-in as an initial plug-in which is currently called, repeatedly executing the following steps until the plug-in which is to be called and corresponds to the plug-in which is currently called is not determined from the calling relation, acquiring the output information of the plug-in which is currently called, and determining the output information of the plug-in which is currently called as a target media resource:
s3, calling and running the currently-called plug-in;
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, the starting plugin is obtained from the calling relationship, the starting plugin is called and operated, and after each time a round of plugin is operated, the next plugin or a plurality of plugins to be called are obtained from the calling relationship to be called and operated as new plugins to be called currently until the next plugins or a plurality of plugins to be called cannot be determined from the calling relationship, at this time, a skip-out circulation process can be determined, and output information of the plugins to be called currently is obtained, and is determined as the target media resource.
Alternatively, in this embodiment, the currently invoked plugin may be, but is not limited to being, one or more plugins, and the plugin to be invoked may be, but is not limited to being, one or more plugins.
As an alternative, determining the plug-in to be invoked corresponding to the plug-in to be invoked currently from the invoking relation comprises:
S1, searching a plug-in to be called corresponding to a plug-in to be called currently from a calling relation, wherein the calling relation comprises the plug-in to be called currently and the plug-in to be called which have a corresponding relation; and/or the number of the groups of groups,
S2, acquiring an 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 from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called and the plug-in to be called, which have the corresponding relation.
Optionally, in this embodiment, the current calling plugin and the plugin to be called with the corresponding relationship may be recorded in the calling relationship, and in this case, the plugin to be called may be determined according to the currently called plugin. The operation result of the current calling plugin and the plugin to be called with the corresponding relationship can be recorded in the calling relationship, and in this case, the plugin to be called can be determined according to the operation result of the current calling plugin. Or the current calling plugin, the running result of the current calling plugin and the plugin to be called with the corresponding relation can be recorded in the calling relation, and in this case, the plugin to be called can be determined according to the current calling plugin and the running result of the current calling plugin.
In an alternative embodiment, taking searching of advertisement resources as an example, obtaining a target media resource request, where the target media resource request is used for requesting target advertisement resources matched with video traffic a, responding to the target media resource request, determining a group of target plugins (video traffic a request parsing plugins, device platform plugins, internet Protocol (IP) plugins, user basic information plugins, member (VIP) user advertisement plugins, new user advertisement plugins, user advertisement frequency control plugins, video traffic a return construction plugins, user crowd information plugins, and the like) with a corresponding relation to a target request type from a preset plugin set, calling a group of target plugins with a corresponding relation to a current calling plugin (for example, rule 1 and rule 2 in table 1), calling a running result of the current calling plugin and a group of target plugins to be called (for example, rule 3 and rule 4 in table 1) according to a calling relation shown in table 1, and performing a target media resource searching process according to the calling relation shown in table 1.
For example: because different users of different media flows may have different business process logic, for example, VIP users may not be able to advertise, etc., to support such complex needs, the advertisement retrieval system provides a process control rule component. The input of 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 the flow control rule table as shown in table 1 to determine the plug-in to output. And after each round of plug-in processing is finished, a flow control rule component is called, and the function plug-in called in the next round is dynamically determined. After dynamic programming of this component, the video traffic a is the same, but the actual execution flow may be different for different user types. For VIP users, after the user basic information plug-in, the VIP users have the attribute of vip_type=1, and according to rule 3, the next plug-in flow is known to be VIP user advertisement. After the VIP user advertisement plug-in is executed, if the video image of the user is equal to 0, the advertisement duration is 0, and the next plug-in is the video flow A structure return according to the rule 6; if the video. Maxduration time of the user is longer than 0, it indicates that there is an advertisement to be shown, and the next plug-in is user crowd information according to rule 7. Similarly, for a new user, after the user basic information plug-in, the new user has a new_user=1 attribute, and according to rule 4, the next plug-in flow is known to be the new user advertisement plug-in. 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. Note that, the advertisement flow control for the registered user is similar, and will not be described here again.
TABLE 1
As an alternative, before determining a group of target plugins having a corresponding relationship with the target request type and a calling relationship of the group of target plugins from the preset plugin set, the method further includes:
S1, acquiring a group of target plugins corresponding to a target request type and a calling relation of the group of target plugins, wherein the calling relation comprises a called plugin with a corresponding relation, an operation result of the called plugin and a plugin to be called, and the group of target plugins comprises the called plugin and the plugin to be called;
s2, storing the target request type, a group of target plugins and the calling relation of a group of target plugins with corresponding relation in a preset plugin set.
Alternatively, in this embodiment, the called plug-in having a correspondence relationship, the running result of the called plug-in, and the calling relationship of the plug-in to be called as a set of target plug-ins thereof may be preset for each type of media resource request, but are not limited thereto. For example: as shown in table 1, the column in which the upper N plug-ins are located is called plug-ins, the column in which the data stream structure is input is the running result of the called plug-ins, and the column in which the lower N plug-ins are located is plug-ins to be called. And finding out the rule to be executed next according to the corresponding relation of the three, and calling the plug-in according to the rule to be executed next.
As an alternative, before determining a group of target plugins having a corresponding relationship with the target request type and a calling relationship of the group of target plugins from the preset plugin set, the method further includes:
S1, acquiring a group of target plugins corresponding to a target request type and a calling relation of the group of target plugins, wherein the calling relation comprises a calling sequence of the group of target plugins;
s2, storing the target request type with the corresponding relation and the calling sequence of a group of target plugins in a preset plugin set.
Alternatively, in the present embodiment, a set of calling orders of the target plugins may be preset for each type of media resource request, but is not limited to. For example: as shown in table 2, when searching advertisement resources for video traffic a, first, lookup table 2 calls plug-in 1: the video flow A requests to analyze the plug-in, and the lookup table 2 calls the plug-in 2 after the execution is finished: the device platform plug-in and the IP plug-in, after which the look-up table 2 again calls one of the plug-ins 3 according to the running result of the plug-ins 2, and so on.
TABLE 2
As an alternative, after calling a set of target plugins to execute the target function in the process of determining the media resource according to the calling relationship, the method further includes:
S1, returning the searched target media resource to the client side sending the target media resource request.
Alternatively, in the present embodiment, the target media resource request may be, but is not limited to being, sent by the client. Taking looking up advertisement resources for a client, as shown in fig. 5, there may be different types of advertisement slots on the client, such as: ad slots for video traffic, ad slots for information traffic, ad slots for web traffic, etc. The client may, but is not limited to, send different types of targeted media resource requests to the server to obtain advertising resources for different ad spots.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a media resource searching apparatus for implementing the above method for searching media resources, 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 that matches a target request type of the target media resource request;
The determining module 64 is configured to determine, in response to a target media resource request, a set of target plugins and a call relationship between the set of target plugins, where the set of target plugins has a correspondence with a target request type, where the call relationship is used to indicate a call condition that needs to be satisfied by each of the set of target plugins, each plugin in the set of plugins is used to execute a function in a determining process of a media resource, and the set of target plugins is used to execute a target function in the determining process of the media resource, so as to find the target media resource;
And a calling module 66, configured to call a set of target plugins to perform a target function in a process of determining a media resource according to a calling relationship, so as to find a target media resource.
Alternatively, in this embodiment, the above-mentioned media resource searching apparatus 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 that matches a target request type of the target media resource request; responding to a target media resource request, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to search the target media resource; and calling a group of target plugins to execute target functions in the determining process of the media resources according to the calling relation so as to find the target media resources.
Alternatively, in this embodiment, the above-mentioned device for searching for media resources may be applied, but not limited to, in a scenario where a sender (e.g., a client) of a media resource request searches for media resources. 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 broadcast application, a news reading application, and the like. In particular, the method can be applied to the scene of searching the media resources for the multimedia application or can be applied to the scene of searching the media resources for the news reading application to improve the flexibility of searching the media resources. The above is merely an example, and there is no limitation in this embodiment.
Optionally, in this embodiment, the call relation is used to indicate a call condition that needs to be satisfied by calling each target plug-in a set of target plug-ins, where the call condition may be, but is not limited to, represented by a call order of the target plug-ins, for example: a group of target plugins includes plugin 1, plugin 2 and plugin 3, if the execution condition of plugin 1 is first execution, the execution condition of plugin 2 is after plugin 1 is executed, and the execution condition of plugin 3 is after plugin 2 is executed, the calling relationship between them can be in the calling order: plug-in 1→plug-in 2→plug-in 3.
Optionally, in this embodiment, the call condition may also be represented by a current calling plug-in, an execution result of the current calling plug-in, and a corresponding relationship between plug-ins to be called. For example: the above plugin 1, plugin 2, and plugin 3, if the execution condition of plugin 1 is the first execution, the execution condition of plugin 2 is that plugin 1 is executed to obtain result 1, and the execution condition of plugin 3 is that plugin 1 is executed to obtain result 2, then the call relationship between them may be represented by the corresponding relationship among the current calling plugin, the execution result of the current calling plugin, and the plugin to be called, that is, the current calling plugin is plugin 1 to obtain result 1, the plugin to be called is plugin 2, and the current calling plugin is plugin 1 to obtain result 2, and the plugin to be called is plugin 3.
Alternatively, in this embodiment, the foregoing media resources may include, but are not limited to: advertising resources, text resources, video resources, audio resources, image resources, and so forth.
Alternatively, in this embodiment, taking the search of advertisement resources as an example, the request types of the media resource request may include, but are not limited to: video class, information stream class, etc. Different plug-in combinations are configured for the media resource requests of different request types, and different functions are combined through the plug-in combinations, so that corresponding media resources are searched for.
Optionally, in this embodiment, taking searching for advertisement resources as an example, the process of searching for media resources may, but is not limited to, data transmission using OpenRTB protocols, openRTB standard: full scale Open Real Time Bidding is a real-time bidding service interface formulated by the IAB. Banner advertisements, native advertisements, video advertisements, etc. are supported. For example: the search process of the advertisement resource can be applied to an advertisement retrieval system, which is a typical data-driven business model, and the whole flow of the advertisement retrieval system can be regarded as processing the advertisement data flow. In this embodiment, as shown in fig. 3, the data stream data structure of the advertisement retrieval system is an extension based on OpenRTB protocol, and comprises three parts, wherein BidRequest and BidResponse are defined in OpenRTB protocol, and the Session object is data of advertisement retrieval middle process stored according to different media requirements. BidRequest store advertisement request information such as device information, application information, user information, exposure request information (ad slots, etc.), while OpenRTB is an open protocol, each object of which like device information supports additional attributes to which complex demand specific information for different traffic can be added. BidResponse store the final result information of the advertisement retrieval, including information on advertisement resource links, monitoring links, advertisement resource location size, etc., which is also scalable. The ad retrieval system flow may be divided into, but is not limited to, four phases: 1. a request analysis stage, a directional information filling stage, a menu and flow control stage and a construction return data reporting stage. These four phases may be the process of processing and populating the three data stream structures.
In an alternative embodiment, as shown in fig. 4, when the obtained target request type of the target media resource request a is a media resource request of the video traffic a, a group of target plugins a (15 plugins such as a traffic a request parsing plugin, an equipment platform plugin, a crowd information plugin and the like connected by solid arrows shown in fig. 4) having a corresponding relationship with the video traffic a and a calling relationship a of the group of target plugins a are determined from a preset plugin set (shown by solid arrows in fig. 4). And according to the calling relation A, calling a group of target plugins A to execute target functions in the determining process of the media resources so as to find the target media resources A. When the obtained target request type of the target media resource request B is a media resource request of the information flow B, determining a group of target plugins B (10 plugins such as a flow B request analysis plugin, an equipment platform plugin, an IP region plugin and the like connected by a dashed arrow shown in fig. 4) and a calling relationship B (shown by a dashed arrow in fig. 4) of the group of target plugins B, wherein the group of target plugins B has a corresponding relationship with the information flow B from a preset plugin set. And according to the calling relation B, calling a group of target plugins B to execute target functions in the determining process of the media resources so as to find the target media resources B.
By the device, each function in the determining process of the media resource is encapsulated into one plug-in, a calling relation of a group of 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 calling 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 calling relation to execute the target function of each plug-in, so that the target media resource is searched, and the media resource can be flexibly searched for various different types of media resource requests, so that the technical effect of improving the flexibility in searching the media resource is achieved, and the technical problem of poor flexibility in searching the media resource is solved.
As an alternative, 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 plug-in which is currently called, repeatedly executing the following steps until the plug-in which is to be called and corresponds to the plug-in which is currently called is not determined from the calling relation, acquiring the output information of the plug-in which is currently called, and determining the output information of the plug-in which is currently called as a target media resource:
calling and running a 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, the starting plugin is obtained from the calling relationship, the starting plugin is called and operated, and after each time a round of plugin is operated, the next plugin or a plurality of plugins to be called are obtained from the calling relationship to be called and operated as new plugins to be called currently until the next plugins or a plurality of plugins to be called cannot be determined from the calling relationship, at this time, a skip-out circulation process can be determined, and output information of the plugins to be called currently is obtained, and is determined as the target media resource.
Alternatively, in this embodiment, the currently invoked plugin may be, but is not limited to being, one or more plugins, and the plugin to be invoked may be, but is not limited to being, one or more plugins.
As an alternative, the execution unit includes:
The first searching unit is used for searching the plug-in to be called corresponding to the plug-in to be called from the calling relation, wherein the calling relation comprises the plug-in to be called and the plug-in to be called which have the corresponding relation; and/or the number of the groups of groups,
The second searching unit is used for obtaining the running 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 from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called and the plug-in to be called, which have the corresponding relation.
Optionally, in this embodiment, the current calling plugin and the plugin to be called with the corresponding relationship may be recorded in the calling relationship, and in this case, the plugin to be called may be determined according to the currently called plugin. The operation result of the current calling plugin and the plugin to be called with the corresponding relationship can be recorded in the calling relationship, and in this case, the plugin to be called can be determined according to the operation result of the current calling plugin. Or the current calling plugin, the running result of the current calling plugin and the plugin to be called with the corresponding relation can be recorded in the calling relation, and in this case, the plugin to be called can be determined according to the current calling plugin and the running result of the current calling plugin.
In an alternative embodiment, taking searching of advertisement resources as an example, obtaining a target media resource request, wherein the target media resource request is used for requesting target advertisement resources matched with video traffic a, responding to the target media resource request, determining a group of target plugins (a video traffic a request analysis plugin, a device platform plugin, an IP plugin, a user basic information plugin, a VIP user advertisement plugin, a new user advertisement plugin, a user advertisement frequency control plugin, a video traffic a return construction plugin, a user crowd information plugin and the like) with a corresponding relation to a target request type from a preset plugin set, and calling the group of target plugins according to a calling relation shown in table 3, wherein the calling relation comprises a currently-called plugin with the corresponding relation and a plugin to be called (for example, a rule 1 and a rule 2 in table 3), and a running result of the currently-called plugin (for example, a rule 3 and a rule 4 in table 3), and calling the group of target plugins execute a target function in the determining process of the media resources according to the calling relation shown in table 3.
For example: because different users of different media flows may have different business process logic, for example, VIP users may not be able to advertise, etc., to support such complex needs, the advertisement retrieval system provides a process control rule component. The input of 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 the flow control rule table as shown in table 3 to determine the plug-in to output. And after each round of plug-in processing is finished, a flow control rule component is called, and the function plug-in called in the next round is dynamically determined. After dynamic programming of this component, the video traffic a is the same, but the actual execution flow may be different for different user types. For VIP users, after the user basic information plug-in, the VIP users have the attribute of vip_type=1, and according to rule 3, the next plug-in flow is known to be VIP user advertisement. After the VIP user advertisement plug-in is executed, if the video image of the user is equal to 0, the advertisement duration is 0, and the next plug-in is the video flow A structure return according to the rule 6; if the video. Maxduration time of the user is longer than 0, it indicates that there is an advertisement to be shown, and the next plug-in is user crowd information according to rule 7. Similarly, for a new user, after the user basic information plug-in, the new user has a new_user=1 attribute, and according to rule 4, the next plug-in flow is known to be the new user advertisement plug-in. 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. Note that, the advertisement flow control for the registered user is similar, and will not be described here again.
TABLE 3 Table 3
As an alternative, the apparatus further includes:
The second acquisition module is used for acquiring a group of target plugins corresponding to the target request type and a calling relation of the group of target plugins, wherein the calling relation comprises a called plugin with a corresponding relation, an operation result of the called plugin and a plugin to be called, and the group of target plugins comprises the called plugin and the plugin to be called;
the first storage module is used for storing the target request type with the corresponding relation, a group of target plugins and the calling relation of the group of target plugins in a preset plugin set.
Alternatively, in this embodiment, the called plug-in having a correspondence relationship, the running result of the called plug-in, and the calling relationship of the plug-in to be called as a set of target plug-ins thereof may be preset for each type of media resource request, but are not limited thereto. For example: as shown in table 3, the column where the upper N plug-ins are located is called plug-ins, the column where the data stream structure is input is the running result of the called plug-ins, and the column where the lower N plug-ins are located is plug-ins to be called. And finding out the rule to be executed next according to the corresponding relation of the three, and calling the plug-in according to the rule to be executed next.
As an alternative, the apparatus further includes:
The third acquisition module is used for acquiring a group of target plugins corresponding to the target request type and a calling relation of the group of target plugins, wherein the calling relation comprises a calling sequence of the group of target plugins;
The second saving module is used for saving the target request type with the corresponding relation and the calling sequence of a group of target plugins in the preset plugin set.
Alternatively, in the present embodiment, a set of calling orders of the target plugins may be preset for each type of media resource request, but is not limited to. For example: as shown in table 4, when searching advertisement resources for video traffic a, first, lookup table 4 calls plug-in 1: the video flow A requests to analyze the plug-in, and the lookup table 4 calls the plug-in 2 after the execution is finished: the device platform plug-in and the IP plug-in, after which the look-up table 4 again calls one of the plug-ins 3 according to the running result of plug-in 2, and so on.
TABLE 4 Table 4
As an alternative, the apparatus further includes:
and the return module is used for returning the searched target media resource to the client side sending the target media resource request.
Alternatively, in the present embodiment, the target media resource request may be, but is not limited to being, sent by the client. Taking looking up advertisement resources for a client, as shown in fig. 5, there may be different types of advertisement slots on the client, such as: ad slots for video traffic, ad slots for information traffic, ad slots for web traffic, etc. The client may, but is not limited to, send different types of targeted media resource requests to the server to obtain advertising resources for different ad spots.
The application environment of the embodiment of the present invention may be, but is not limited to, the application environment in the above embodiment, and this will not be described in detail in this embodiment. The embodiment of the invention provides an alternative specific application example of the connection method for implementing the real-time communication.
As an alternative embodiment, the above method for searching for media resources may be applied, but not limited to, in a scenario in which advertisement resources are searched for video traffic a as shown in fig. 7. In the present scenario, the plug-in architecture design is introduced into the advertisement retrieval system, defining an advertisement retrieval data stream structure based on Openrtb expansion protocol, and disassembling the whole advertisement retrieval process to process the data stream, each specific functional point can be regarded as a node through which the data stream passes. The advertisement retrieval system also supports different requirements for different media, and utilizes rule matching to dynamically select proper node combinations, so that the whole advertisement retrieval flow is automatically controlled. 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 Openrtb extension protocols. But the input field that each function plug-in specifically depends on may be a specific attribute or certain attributes, such as an IP region plug-in, the input attribute that depends on is IP, and the attribute or attributes that actually affect (backfill) after passing through the function plug-in, such as a region attribute area.
TABLE 5
The directed acyclic graph of the data flow arrow pointing and the functional plug-in can be called a flow control graph of the advertisement retrieval system, for example, a flow control graph of video flow A which is strung by solid arrows in FIG. 4, and a flow control graph of information flow B which is strung by broken arrows. Each different flow and even different users have a control flow chart which is suitable for the special requirements of the users, and the advertisement retrieval system can execute the business flow based on the flow chart, so that the flow is not reversed, and different flows can share a plurality of same functional plug-ins so as to improve the development speed.
Because different users of different media flows may have different business process logic, for example, VIP users may not be able to advertise, etc., to support such complex needs, the advertisement retrieval system provides a process control rule component. The input of 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 the flow control rule table as 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 dynamic programming of this component, again video flow a, but for different user types, the actual flow control charts performed may be different. As shown in fig. 7, for the VIP user, after the user basic information plug-in, the VIP user has a vip_type=1 attribute, and the next plug-in process is VIP user advertisement. After the VIP user advertisement plug-in is executed, if the video image of the user is equal to 0, the advertisement duration is 0, and the next plug-in is the video flow A structure return; if the video. Maxduration time of the user is longer than 0, the next plug-in is user crowd information. The advertising process of the new user and the advertising process of the registered user are similar, and will not be described in detail herein.
In the scene, a Openrtb-based data stream data structure is adopted, and because an IAB formulated standardized protocol for advertisement bidding is used, the application of the industry is wider, the request and the return format of the connected media can be conveniently adapted, the butt-joint threshold is low, and the connection of more media to the advertisement retrieval system is facilitated. The ADX system is compatible with the protocol, so that external advertisement resources can be introduced into the advertisement retrieval system.
And secondly, the function module is plugged, so that the development of repeated codes is reduced, the simplicity of unit test is improved, and the stability of the whole system is improved. The access of the traffic is the combination of the functional plug-ins, so that the advertisement retrieval system can be ensured to be quickly and stably accessed into new media traffic.
In addition, the regularization of the flow control function can simply implement execution of different advertisement flows according to certain specific attributes by modifying rules instead of modifying codes, thereby avoiding the risk of online development test and supporting real-time adjustment of advertisement retrieval system strategies.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-mentioned search of media resources, as shown in fig. 8, the electronic device including: one or more (only one is shown in the figure) processors 802, a memory 804, in which a computer program is stored, which are arranged to perform the steps of any of the method embodiments described above, a sensor 806, an encoder 808, and a transmission means 810.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described 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 a target request type of the target media resource request;
S2, responding to a target media resource request, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to find the target media resource;
s3, according to the calling relation, a group of target plugins are called to execute target functions in the determining process of the media resources so as to find the target media resources.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 8 is only schematic, 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, and a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 8 is not limited to the 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 embodiment of the present invention, and the processor 804 executes the software programs and modules stored in the memory 802, thereby executing various functional applications and data processing, that is, implementing the control method of the target component described above. 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, memory 802 may further include memory remotely located relative to processor 804, which may be connected to the terminal via 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 transmission device 810 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 810 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 810 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
In particular, the memory 802 is used to store applications.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing 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 a target request type of the target media resource request;
S2, responding to a target media resource request, determining a group of target plugins with a corresponding relation with a target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to find the target media resource;
s3, according to the calling relation, a group of target plugins are called to execute target functions in the determining process of the media resources so as to find 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 above embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by 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 exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (12)

1. A method for searching media resources, comprising:
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, determining a group of target plugins with a corresponding relation with the target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plugin in the group of target plugins, each plugin in set is used for executing one function in a media resource determining process, and the group of target plugins is used for executing the target function in the media resource determining process so as to search the target media resource;
according to the calling relation, calling the set of target plugins to execute the target function in the determining process of the media resource so as to find the target media resource, including: acquiring an initial plug-in the group of target plug-ins from the calling relation; and taking the initial plug-in as an initial plug-in which is currently called, repeatedly executing the following steps until the plug-in which is to be called and corresponds to the plug-in which is currently called is not determined from the calling relation, acquiring the output information of the plug-in which is currently called, and determining the output information of the plug-in which is currently called as the target media resource: calling and running the currently-called plug-in; and determining a 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.
2. The method of claim 1, wherein determining, from the call relationship, the plug-in to be called corresponding to the plug-in currently being called comprises:
Searching the plug-in to be called corresponding to the plug-in to be called from the calling relation, wherein the calling relation comprises the plug-in to be called and the plug-in to be called which have the corresponding relation; and/or the number of the groups of groups,
Acquiring an 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 from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called and the plug-in to be called, which have the corresponding relation.
3. The method of claim 1, wherein before determining a set of target plugins having a correspondence with the target request type and a calling relationship of the set of target plugins from a preset plugin set, the method further comprises:
Acquiring the group of target plugins corresponding to the target request type and the calling relation of the group of target plugins, wherein the calling relation comprises a called plugin with a corresponding relation, an operation result of the called plugin and a plugin to be called, and the group of target plugins comprises the called plugin and the plugin to be called;
And storing the target request type, the group of target plugins and the calling relation of the group of target plugins which have the corresponding relation in a preset plugin set.
4. The method of claim 1, wherein before determining a set of target plugins having a correspondence with the target request type and a calling relationship of the set of target plugins from a preset plugin set, the method further comprises:
Acquiring the group of target plugins corresponding to the target request type and the calling relation of the group of target plugins, wherein the calling relation comprises the calling sequence of the group of target plugins;
And storing the target request type with the corresponding relation and the calling sequence of the group of target plugins in a preset plugin set.
5. The method of any of claims 1 to 4, wherein after invoking the set of target plugins to perform the target function in the determination of the media asset in accordance with the invocation relationship to find the target media asset, the method further comprises:
and returning the searched target media resource to the client side sending the target media resource request.
6. A media asset lookup apparatus, comprising:
the first acquisition module is used for 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;
The determining module is used for responding to the target media resource request, determining a group of target plugins with a corresponding relation with the target request type and a calling relation of the group of target plugins from a preset plugin set, wherein the calling relation is used for indicating a calling condition to be met by calling each target plugin in the group of target plugins, each plugin in the plugin set is used for executing one function in the determining process of the media resource, and the group of target plugins is used for executing the target function in the determining process of the media resource so as to find the target media resource;
The calling module is configured to call the set of target plugins to execute the target function in the determining process of the media resource according to the calling relationship, so as to find the target media resource, and includes: the acquisition unit is used for acquiring the initial plugin in the group of target plugins from the calling relationship; the execution unit takes the initial plug-in as an initial plug-in which is currently called, repeatedly executes the following steps until the plug-in which is to be called and corresponds to the plug-in which is currently called is not determined from the calling relation, acquires the output information of the plug-in which is currently called, and determines the output information of the plug-in which is currently called as the target media resource: calling and running the currently-called plug-in; and determining a 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.
7. The apparatus of claim 6, 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 from the calling relation, wherein the calling relation comprises the plug-in to be called and the plug-in to be called which have the corresponding relation; and/or the number of the groups of groups,
The second searching unit is used for obtaining the running 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 from the calling relation, wherein the calling relation comprises the running result of the plug-in to be called and the plug-in to be called, which have the corresponding relation.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the second acquisition module is used for acquiring the group of target plugins corresponding to the target request type and the calling relation of the group of target plugins, wherein the calling relation comprises a called plugin with a corresponding relation, an operation result of the called plugin and a plugin to be called, and the group of target plugins comprises the called plugin and the plugin to be called;
the first storage module is used for storing the target request type, the group of target plugins and the calling relation of the group of target plugins which have the corresponding relation in a preset plugin set.
9. The apparatus of claim 6, wherein the apparatus further comprises:
The third acquisition module is used for acquiring the group of target plugins corresponding to the target request type and the calling relation of the group of target plugins, wherein the calling relation comprises the calling sequence of the group of target plugins;
The second saving module is used for saving the target request type with the corresponding relation and the calling sequence of the group of target plugins in a preset plugin set.
10. The apparatus according to any one of claims 6 to 9, further comprising:
and the return module is used for returning the searched target media resource to the client side sending the target media resource request.
11. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when run.
12. 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 according to any of the claims 1 to 5 by means of the computer program.
CN201810594461.4A 2018-06-11 2018-06-11 Method and device for searching media resources, storage medium and electronic device Active CN110647634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810594461.4A CN110647634B (en) 2018-06-11 2018-06-11 Method and device for searching media resources, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810594461.4A CN110647634B (en) 2018-06-11 2018-06-11 Method and device for searching media resources, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110647634A CN110647634A (en) 2020-01-03
CN110647634B true CN110647634B (en) 2024-07-12

Family

ID=68988337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810594461.4A Active CN110647634B (en) 2018-06-11 2018-06-11 Method and device for searching media resources, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110647634B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112839239B (en) * 2020-12-30 2023-03-21 广州虎牙科技有限公司 Audio and video processing method and device and server
CN113259375B (en) * 2021-06-10 2021-09-28 长视科技股份有限公司 Video service response method and electronic equipment
CN114422637B (en) * 2021-12-20 2023-12-29 阿里巴巴(中国)有限公司 Media request processing method and cross-platform engine system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins
CN106254908A (en) * 2016-09-18 2016-12-21 合网络技术(北京)有限公司 Multimedia resource playing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335187B (en) * 2014-08-14 2019-12-13 阿里巴巴集团控股有限公司 Application processing method and device
CN107659545B (en) * 2016-09-28 2021-02-05 腾讯科技(北京)有限公司 Media information processing method, media information processing system and electronic equipment
CN112866765A (en) * 2017-08-08 2021-05-28 西安万像电子科技有限公司 Processing system of media resource

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins
CN106254908A (en) * 2016-09-18 2016-12-21 合网络技术(北京)有限公司 Multimedia resource playing method and device

Also Published As

Publication number Publication date
CN110647634A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN111913738B (en) Access request processing method, device, computing equipment and medium
CN110647634B (en) Method and device for searching media resources, storage medium and electronic device
KR20100048571A (en) Method, apparatus and system for providing muti user-multi service
CN105897888B (en) Client connection method and system
CN108549567B (en) Animation display method, device, terminal, server and storage medium
US11909812B2 (en) Application control method and apparatus, electronic device, and storage medium
CN103268319A (en) Cloud browser based on webpages
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN111259019A (en) Resource allocation method, device, equipment and storage medium
CN107276842B (en) Interface test method and device and electronic equipment
CN111125497A (en) Information recommendation method, device, processor and storage medium
JP7412594B2 (en) Data processing method, data processing device, computer equipment, and computer program
CN106534268B (en) Data sharing method and device
CN107291744A (en) It is determined that and with the method and device of the relationship between application program
CN113568699B (en) Content display method, device, equipment and storage medium
CN105337841A (en) Information processing method and system, client, and server
CN113094492A (en) Comment information display method, comment information processing system, comment information processing device, comment information equipment and storage medium
CN109561167A (en) A kind of domain name analytic method and device
CN108932640B (en) Method and device for processing orders
CN115527090A (en) Model training method, device, server and storage medium
CN112087335A (en) Flow experiment method, device and storage medium
CN106209584B (en) User information processing method, client and server Internet-based
EP3241344A1 (en) System and method for programmatically creating resource locators
CN112836148B (en) Report display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021884

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant