CN115065677A - Media resource acquisition method, device, electronic equipment, storage medium and product - Google Patents

Media resource acquisition method, device, electronic equipment, storage medium and product Download PDF

Info

Publication number
CN115065677A
CN115065677A CN202210867217.7A CN202210867217A CN115065677A CN 115065677 A CN115065677 A CN 115065677A CN 202210867217 A CN202210867217 A CN 202210867217A CN 115065677 A CN115065677 A CN 115065677A
Authority
CN
China
Prior art keywords
resource
media
media resources
recommended
client
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.)
Pending
Application number
CN202210867217.7A
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210867217.7A priority Critical patent/CN115065677A/en
Publication of CN115065677A publication Critical patent/CN115065677A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a media resource acquisition method, apparatus, device, storage medium and product. The method comprises the following steps: receiving a resource acquisition request of a client aiming at a resource display page; determining at least two resource types associated with the resource acquisition request, calling an interface corresponding to each resource type of the at least two resource types, and acquiring candidate media resources under the corresponding resource type through the interface of each resource type; determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy; and merging the media resources to be recommended, and returning the merged media resources to the client. According to the method and the device, the client can be prevented from calling corresponding interfaces aiming at different resource types, the complexity of data interaction is reduced, the server flexibly screens or recommends a plurality of candidate media resources according to a resource recommendation strategy, the display effect of the media resources to be recommended is optimized, and the display efficiency of the client media resources is effectively improved.

Description

Media resource acquisition method, device, electronic equipment, storage medium and product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, a storage medium, and a computer program product for acquiring a media resource.
Background
With the popularization of computer technology, users can browse media resources of different resource types through different pages provided by clients respectively, and when pages are switched, the clients can request data of the corresponding pages respectively. However, in this way, the efficiency of browsing the key information in each page by the user is not high.
In the related art, resource data of multiple pages can be integrated in one page for display, and a client can still acquire media resources in corresponding resource types from interfaces corresponding to the original multiple resource types and sequentially display the acquired multiple media resources according to a preset rule. However, in the above manner, the efficiency of the client to display the media resource is not high.
Disclosure of Invention
The disclosure provides a media resource acquisition method, a device, an electronic apparatus, a storage medium and a computer program product, so as to at least solve the problem of low client media resource display efficiency in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, a method for acquiring a media resource is provided, including:
receiving a resource acquisition request of a client aiming at a resource display page; the resource display page is used for displaying media resources of at least two resource types;
determining at least two resource types associated with the resource acquisition request, calling an interface corresponding to each resource type of the at least two resource types, and acquiring a candidate media resource under the corresponding resource type through the interface of each resource type;
determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy;
and merging the media resources to be recommended, and returning the merged media resources to the client.
In one embodiment, the merging the media resources to be recommended includes:
acquiring a resource type identifier of each media resource to be recommended, and combining each media resource to be recommended and the resource type identifier of each media resource to be recommended to obtain a combined media resource;
the resource type identifier in the merged media resource is used to instruct the client to parse the read media resource according to the resource parsing rule corresponding to the resource type identifier when the client reads the media resource associated with the resource type identifier.
In one embodiment, the receiving a resource obtaining request of a client for a resource presentation page includes:
receiving a resource acquisition request of a client aiming at a resource display page through a preset interface;
the merging the media resources to be recommended includes:
and acquiring a data packaging format corresponding to the preset interface, and merging the media resources to be recommended based on the data packaging format.
According to a second aspect of the embodiments of the present disclosure, there is provided a media resource acquisition method, including:
sending a resource acquisition request aiming at a resource display page to a server; the resource display page is used for displaying media resource data of at least two resource types, the resource acquisition request is used for triggering the server to determine the associated at least two resource types, calling an interface corresponding to each resource type of the at least two resource types, acquiring candidate media resources under the corresponding resource type through the interface of each resource type, determining media resources to be recommended from the candidate media resources according to a predetermined resource recommendation strategy, and combining the media resources to be recommended;
and receiving the merged media resources returned by the server.
In one embodiment, after the receiving the merged media resource returned by the server, the method further includes:
reading a resource type identifier of each media resource from the merged media resources, and analyzing the corresponding media resources according to a resource analysis rule corresponding to the resource type identifier;
and displaying the analyzed media resources of various resource types on the resource display page.
In one embodiment, after the rendering of each media resource data parsed on the resource rendering page, the method further includes:
acquiring a resource analysis rule corresponding to a newly added resource type identifier, wherein the newly added resource type identifier is a resource type identifier corresponding to an added resource type acquired by the server after receiving a resource type addition request aiming at the resource display page;
and under the condition that the merged media resources are obtained again and the newly added resource type identification is read from the merged media resources, analyzing the newly added media resources corresponding to the newly added resource type identification in the merged media resources according to the resource analysis rule corresponding to the newly added resource type identification.
According to a third aspect of the embodiments of the present disclosure, there is provided a media resource acquiring apparatus, including:
the request receiving unit is configured to execute receiving of a resource obtaining request of a client for a resource display page; the resource display page is used for displaying media resources of at least two resource types;
the interface calling unit is configured to execute the steps of determining at least two resource types associated with the resource obtaining request, calling an interface corresponding to each resource type in the at least two resource types, and obtaining candidate media resources under the corresponding resource type through the interface of each resource type;
the recommended resource determining unit is configured to determine a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy;
and the merged resource sending unit is configured to perform merging on the media resources to be recommended and return the merged media resources to the client.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a media resource acquiring apparatus, including:
the request sending unit is configured to execute sending of a resource obtaining request aiming at the resource display page to the server side; the resource display page is used for displaying media resource data of at least two resource types, the resource acquisition request is used for triggering the server to determine the associated at least two resource types, calling an interface corresponding to each resource type of the at least two resource types, acquiring candidate media resources under the corresponding resource type through the interface of each resource type, determining media resources to be recommended from the candidate media resources according to a predetermined resource recommendation strategy, and combining the media resources to be recommended;
and the merged resource receiving unit is configured to execute receiving of the merged media resources returned by the server.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any of the above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method according to any one of the above.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method according to any one of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the media resource obtaining method, after receiving a resource obtaining request of a client for a resource display page, a server can determine at least two resource types associated with the resource obtaining request, call an interface corresponding to each of the at least two resource types, obtain candidate media resources in the corresponding resource type through the interface of each resource type, further determine media resources to be recommended from the candidate media resources according to a predetermined resource recommending strategy, merge the media resources to be recommended, and return the merged media resources to the client. According to the method and the device, the client can trigger the server to call the plurality of interfaces and acquire the media resources under different resource types through the resource acquisition request, the client is prevented from calling corresponding interfaces aiming at different resource types, the number of the interfaces needing to be maintained between the client and the server is reduced, the complexity of data interaction is reduced, the server flexibly screens or recommends a plurality of candidate media resources according to a resource recommendation strategy, the display effect of the media resources to be recommended is optimized, and the display efficiency of the media resources of the client can be effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of a media asset acquisition method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a media asset acquisition method according to an example embodiment.
Fig. 3 is a flowchart illustrating steps of a server issuing a resource resolution rule according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating another method of media asset acquisition according to an exemplary embodiment.
Fig. 5 is a flow chart illustrating another media asset retrieval method according to an example embodiment.
Fig. 6 is a block diagram illustrating a media asset retrieval device, according to an example embodiment.
Fig. 7 is a block diagram illustrating another media asset retrieval device, according to an example embodiment.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 9 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
The media resource acquisition method provided by the present disclosure can be applied to an application environment as shown in fig. 1, where the application environment includes a client and a server, the client can communicate with the server through a network, the server can have a corresponding data storage system, and the data storage system can store data that the server needs to use, such as a plurality of media resources. And the client can acquire one or more media resources from the server to display by sending the related request to the server.
In the disclosure, a client may be provided with a resource display page, where the resource display page may be used to display media resources of multiple resource types, and the client may generate a resource acquisition request for the resource display page and send the resource acquisition request to a server, so as to acquire media resources that can be displayed in the resource display page from the server; after receiving the resource acquisition request, the server can determine at least two resource types associated with the request, call an interface corresponding to each resource type of the at least two resource types, acquire the candidate media resources in the corresponding resource type through the interface of each resource type, determine the media resources to be recommended from the candidate media resources according to a predetermined resource recommendation strategy, and after merging the media resources to be recommended, return the merged media resources to the client.
The client can be deployed on the terminal, the terminal can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart televisions, smart vehicle-mounted equipment and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
Fig. 2 is a flowchart illustrating a media resource acquisition method according to an exemplary embodiment, and as shown in fig. 2, the method is described as being applied to the server in fig. 1, and includes the following steps.
In step S210, a resource obtaining request of the client for the resource display page is received; the resource display page is used for displaying media resources of at least two resource types.
As an example, the resource types of the media resources may be divided according to actual situations. For example, if the media assets are divided according to the presentation form of the media assets, the asset types of the media assets may include at least two of the following asset types: a text-type media asset, a picture-type media asset, a video-type media asset, an audio-type media asset. Or, if the media resources are divided according to the sharing manner of the media resources, the dividing manner may also be referred to as dividing according to a service scene, for example, the resource type of the media resources may include media resources published publicly and media resources designated to be sent, such as videos published by the client a or text information sent by the client a to the client B separately.
In a specific implementation, the client may be provided with a resource display page, where the resource display page may be used to display media resources of at least two resource types, that is, for media resources of different resource types, a display page may not be separately set for each resource type (for example, a type of media resource is displayed on page a, and a type of media resource is displayed on page B), but the media resources of multiple resource types are displayed on the same resource display page. When the client detects a trigger event (for example, a trigger operation for a preset button is detected or the current time reaches a preset resource acquisition time), a resource acquisition request can be generated for the resource display page, and the resource acquisition request is sent to the server, which triggers the server to acquire the relevant media resource according to the received resource acquisition request.
In step S220, at least two resource types associated with the resource obtaining request are determined, an interface corresponding to each resource type of the at least two resource types is called, and a candidate media resource in the corresponding resource type is obtained through the interface of each resource type.
After receiving the resource acquisition request, the server may determine at least two resource types associated with the resource request. For example, the developer may preset at least two resource types displayed on the resource display page, and then the server may use the preset at least two resource types as the resource types associated with the request after receiving the resource acquisition request; or each client may configure the resource type of the media resource displayed on the resource display page to obtain configuration information for the resource display page, and after receiving a resource acquisition request from the client, the server may query the configuration information set by the client for the resource display page, and use the resource type in the configuration information as at least two resource types associated with the resource acquisition request.
In practical applications, for media resources of different resource types, media resources under different resource types may be obtained through different interfaces, and in an example, the interfaces of different resource types may be interfaces used before media resource integration (i.e., media resources of at least two resource types are displayed through a resource display page), and the interfaces do not need to be configured again. After determining at least two resource types associated with the resource acquisition request, the server may invoke an interface corresponding to each of the at least two resource types, and acquire the candidate media resource in the corresponding resource type through the interface of each resource type, for example, interface 1 is used to acquire a type a media resource, and interface 2 is used to acquire a type B media resource, and then the server may send requests to interface 1 and interface 2, respectively, and take the media resource returned by interface 1 and interface 2, respectively, as the candidate media resource.
In this embodiment, when detecting a trigger event for acquiring a media resource in a resource display page, a client does not need to send a request to a plurality of interfaces respectively, but only sends a resource acquisition request to a server, and the server is triggered to automatically invoke the plurality of interfaces according to the request and acquire the media resource in different resource types, so that the number of interfaces required to be maintained between the client and the server is reduced, and the client does not need to send a plurality of requests again when acquiring the media resource in the plurality of resource types, thereby effectively reducing the complexity of data interaction.
In step S230, a media resource to be recommended is determined from a plurality of candidate media resources according to a predetermined resource recommendation policy.
The media resource to be recommended may be a plurality of media resources in different resource types.
After obtaining a plurality of candidate media resources from different interfaces, the server may obtain a resource recommendation policy determined in advance, and determine a media resource to be recommended from the plurality of candidate media resources.
In the related art, after the client acquires the media resources of the corresponding resource type from the interfaces of the multiple resource types, because the number of the media resources is large, it is difficult for a user to browse all the media resources at one time, the client needs to determine the display modes of the acquired multiple media resources according to a preset rule, and then display the multiple media resources one by one according to the determined display modes, for example, the client may sort the media resources, and then display the media resources according to the sorting result. However, limited by the device performance, it is difficult for the client to set up a single presentation manner and a single ranking or recommendation manner for multiple media resources for different users, so that it is difficult for the user to quickly acquire information that the user is interested in or may be interested in, although different types of media resources may be presented in the resource presentation page at the same time.
In this embodiment, after the server acquires the candidate media resources in different resource types from the multiple interfaces, the server may determine the media resources to be recommended in the multiple candidate media resources according to the resource recommendation policy, and the server flexibly screens or recommends the multiple candidate media resources according to the resource recommendation policy, so as to avoid deploying complex recommendation processing logic at the client, and optimize the display effect of the finally obtained media resources to be recommended.
In step S240, the media resources to be recommended are merged, and the merged media resources are returned to the client.
After the media resources to be recommended are obtained, the media resources to be recommended can be merged to obtain merged media resources, and the merged media resources can be returned to the client as response information of the resource obtaining request.
In the media resource obtaining method, after receiving a resource obtaining request of a client for a resource display page, a server can determine at least two resource types associated with the resource obtaining request, call an interface corresponding to each of the at least two resource types, obtain candidate media resources in the corresponding resource type through the interface of each resource type, further determine media resources to be recommended from the candidate media resources according to a predetermined resource recommending strategy, merge the media resources to be recommended, and return the merged media resources to the client. According to the method and the device, the client can trigger the server to call the plurality of interfaces and acquire the media resources under different resource types through the resource acquisition request, the client is prevented from calling corresponding interfaces aiming at different resource types, the number of the interfaces needing to be maintained between the client and the server is reduced, the complexity of data interaction is reduced, the server flexibly screens or recommends a plurality of candidate media resources according to a resource recommendation strategy, the display effect of the media resources to be recommended is optimized, and the display efficiency of the media resources of the client can be effectively improved.
In an exemplary embodiment, in step S240, merging the media resources to be recommended includes:
and acquiring a resource type identifier of each media resource to be recommended, and combining each media resource to be recommended and the resource type identifier of each media resource to be recommended to obtain the combined media resource.
The resource type identifier in the merged media resource can be used to instruct the client to parse the read media resource according to the resource parsing rule corresponding to the resource type identifier under the condition that the media resource associated with the resource type identifier is read. In an example, the resource type identification can also be referred to as "type" indicating a data format type.
Specifically, for media resources of different resource types, the client may analyze in different manners, for example, the audio-type media resource and the text-type media resource are different in analyzing manner, and the server returns a plurality of media resources to be recommended to the client in a merging manner.
Based on this, when merging a plurality of media resources to be recommended, the server can obtain a resource type identifier of each media resource to be recommended, where the resource type identifier can be used to indicate a resource type, and further, the server can merge each media resource to be recommended and a resource type identifier of each media resource to be recommended to obtain a merged media resource. After the server returns the merged media resource to the client, if the client reads one of the merged media resources and the resource type identifier thereof, the resource type identifier may instruct the client to parse the currently read media resource according to the resource parsing rule corresponding to the resource type identifier, and display the parsed media resource in the resource display page.
In this embodiment, the media resources to be recommended and the resource type identifiers of the media resources to be recommended may be merged to obtain merged media resources, so that after the server merges and returns a plurality of media resources from different interfaces to the client, the client may still correctly analyze each media resource, and normal display of the media resources is achieved.
In an exemplary embodiment, as shown in fig. 3, after step S240, the method may further include:
in step S310, in response to the resource type addition request for the resource display page, a new resource type identifier corresponding to the added resource type is obtained.
In practical applications, the resource type of the media resource displayed on the resource display page may be changed, for example, a new resource type may be added or an original resource type may be deleted. If a resource type adding request aiming at the resource display page is received, the server side can determine the resource type added by the resource type adding request, and acquire a resource type identifier corresponding to the added resource type as a newly added resource type identifier.
In step S320, a resource parsing rule corresponding to the added resource type identifier is sent to the client.
After determining the newly added resource type identifier, the server may further obtain a resource parsing rule corresponding to the newly added resource type identifier, and send the newly added resource type identifier and the resource parsing rule corresponding to the newly added resource type identifier to the client, so that a parsing manner for a media resource of the newly added resource type may be agreed with the client.
When the client acquires the merged media resource again and reads the newly added resource type identifier from the merged media resource, the media resource of which the resource type is the newly added resource type can be analyzed according to the resource analysis rule corresponding to the newly added resource type identifier, so that the media resource of the new resource type is displayed in the resource display page.
For example, a newly added resource type identifier "4" may be set for the newly added resource type, that is, the newly added resource type is 4, and if the client reads the resource type identifier "4" from the merged media resource, the client may parse the corresponding media resource according to the resource parsing rule corresponding to the resource type identifier "4".
In this embodiment, by obtaining a newly added resource type identifier corresponding to an added resource type and sending a resource analysis rule corresponding to the newly added resource type identifier to the client, an agreement between the client and the server for a newly added resource type analysis mode is realized, and a media resource of a new resource type can be quickly merged into the resource display page.
In an exemplary embodiment, in step S230, determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation policy may include the following steps:
if the predetermined resource recommendation strategy comprises a first recommendation strategy, determining the attention degree of the client to each candidate media resource, and determining the candidate media resource of which the attention degree meets the attention degree condition; and determining the media resources to be recommended based on the candidate media resources with the attention degree meeting the attention degree condition.
In practical application, the resource recommendation policy may include one or more recommendation policies, and if the predetermined resource recommendation policy includes the first recommendation policy, the server may first determine the attention of the client to each candidate media resource. Specifically, when the client sends a resource acquisition request, an account identifier (such as a userId) corresponding to an account currently logged in by the client may be sent to the server together, and after the server acquires a plurality of candidate media resources, the server may acquire media resource browsing characteristics of the account according to the account identifier, for example, media resource browsing characteristics of a previously browsed media resource based on the account, such as a field concerned by the media resource or a publisher concerned by the media resource, may be determined, and then, a degree of attention of the client to each current candidate media resource may be determined according to the media resource browsing characteristics.
After the attention degrees of the candidate media resources are obtained, a plurality of candidate media resources whose attention degrees satisfy the attention degree condition may be screened from the candidate media resources, for example, N candidate media resources with the highest attention degrees may be determined as media resources to be recommended. Furthermore, the media resource to be recommended may be determined based on the candidate media resources whose attention degrees satisfy the attention degree condition, for example, each candidate media resource whose attention degrees satisfy the attention degree condition may be used as the media resource to be recommended, or a plurality of candidate media resources whose attention degrees satisfy the attention degree condition may be further processed in combination with other recommendation strategies, and the plurality of candidate media resources obtained after the processing may be used as the media resource to be recommended.
In the embodiment, the media resources to be recommended are determined by the candidate media resources with the attention degree satisfying the attention degree condition based on the attention degree, the media resources concerned by the client can be preferentially displayed in the resource display page, data is effectively and reasonably recommended, the efficiency of browsing the media resources by the user is improved, and the media resource display effect is optimized.
In an exemplary embodiment, in step S230, determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation policy may include the following steps:
if the predetermined resource recommendation strategy comprises a second recommendation strategy, determining the display priority corresponding to each candidate media resource; and obtaining the media resources to be recommended based on the candidate media resources carrying the display priority.
In practical application, if the resource recommendation policy includes the second recommendation policy, the server may determine the presentation priority corresponding to each candidate media resource, where the presentation priority may indicate a presentation order of the media resource in the resource presentation page, that is, a media resource with a higher presentation priority is presented in a resource presentation page in a forward order.
After the display priority corresponding to each candidate media resource is obtained, the display priority may be associated with the candidate media resource, so as to obtain a media resource to be recommended based on the candidate media resource carrying the display priority, for example, all the candidate media resources carrying the display priority may be used as the media resource to be recommended, or the candidate media resource carrying the display priority may be further screened in combination with other recommendation strategies, and the media resource carrying the display priority obtained after processing may be used as the media resource to be recommended.
In this embodiment, the media resources to be recommended may be obtained based on the candidate media resources carrying the presentation priorities, and then after the client acquires the merged media resources, the presentation order of each media resource may be quickly determined based on the presentation priorities of the media resources, without rearranging the plurality of media resources, and the server may more accurately determine the presentation priorities of each media resource, so that the user preferentially views the key content, and optimizes the media resource presentation effect.
In an exemplary embodiment, in step S230, determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation policy may include the following steps:
and if the predetermined resource recommendation strategy comprises a third recommendation strategy, filtering the candidate media resources to be shielded in the plurality of candidate media resources, and determining the media resources to be recommended based on the remaining candidate media resources after filtering.
In practical applications, the acquired candidate media resources may include some media resources that need to be masked, for example, media resources published by a masked account of a client or media resources that do not comply with a platform resource publishing rule.
If the resource recommendation strategy comprises a third recommendation strategy, the server side can determine candidate media resources to be shielded in the candidate media resources, filter the candidate media resources to be shielded, and further determine the media resources to be recommended based on the remaining candidate media resources after filtering.
In this embodiment, the server may filter the candidate media resources to be masked out of the plurality of candidate media resources, determine the media resources to be recommended based on the remaining candidate media resources after filtering, avoid the client displaying the media resources that are not concerned by the user or that do not meet the rules, and only display the browsable media resources on the resource display page.
In an exemplary embodiment, in step S210, receiving a resource obtaining request of a client for a resource presentation page may include:
and receiving a resource acquisition request of the client aiming at the resource display page through a preset interface.
In a specific implementation, the server may be preset with an interface, where the preset interface may be used to acquire a media resource displayed in a resource display page, and after detecting a trigger event for acquiring the media resource, the client may generate a resource acquisition request for the resource display page, and send the resource acquisition request to the server by calling the preset interface.
In step S240, merging the media resources to be recommended may include:
and acquiring a data packaging format corresponding to the preset interface, and combining the media resources to be recommended based on the data packaging format.
Specifically, the interface may have a corresponding data encapsulation format, that is, data to be received and transmitted through the interface may be encapsulated according to the data encapsulation format, so that the data receiving side may determine information indicated by the acquired data. After the media resources to be recommended are obtained, the server can obtain a data encapsulation format corresponding to the preset interface, and merge the media resources to be recommended according to the data encapsulation format to obtain merged media resources.
In this embodiment, the server may receive, through the preset interface, a resource acquisition request of the client for the resource display page, and merge media resources to be recommended based on a data encapsulation format corresponding to the preset interface, so that interaction of multiple types of media resources can be realized only by maintaining one preset interface between the client and the server, the client acquires media resources of different resource types, and the service complexity in a media resource fusion display scenario is reduced while a service data fusion function is realized.
Fig. 4 is a flowchart illustrating a media resource acquisition method according to an exemplary embodiment, and as shown in fig. 4, the method is described as being applied to the client in fig. 1, and includes the following steps.
In step S410, a resource obtaining request for the resource display page is sent to the server.
The resource display page is used for displaying media resource data of at least two resource types, the resource obtaining request is used for triggering the server to determine the associated at least two resource types, an interface corresponding to each of the at least two resource types is called, candidate media resources under the corresponding resource types are obtained through the interface of each resource type, the media resources to be recommended are determined from the candidate media resources according to a predetermined resource recommendation strategy, and the media resources to be recommended are combined.
In a specific implementation, when the client detects a trigger event, a resource acquisition request may be generated for a resource display page, and the resource acquisition request for the resource display page is sent to the server, which triggers the server to acquire, according to the received resource acquisition request, a relevant media resource that can be displayed in the resource page.
And after receiving the resource acquisition request, the server can determine at least two resource types associated with the resource request. Different interfaces can be preset for media resources of different resource types, namely, the media resources under different resource types can be obtained through the different interfaces, and then after at least two resource types associated with the resource obtaining request are determined, the server can call an interface corresponding to each resource type of the at least two resource types, and candidate media resources under the corresponding resource type are obtained through the interface of each resource type.
After obtaining the multiple candidate media resources from different interfaces, the server may obtain a resource recommendation policy determined according to a predetermined resource recommendation policy, determine media resources to be recommended from the multiple candidate media resources, and merge the media resources to be recommended to obtain merged media resources.
In step S420, the merged media resource returned by the server is received.
After acquiring the merged media resource, the server may return the merged media resource to the client as response information of the resource acquisition request, so that the client may receive the merged media resource. In a specific implementation, after acquiring the merged media resource, the client may update the content in the current resource display page in time using the merged media resource, or may update the content after a delay, for example, when a trigger operation (such as a page refresh operation or a "next page" click operation) for updating the resource display page is detected, update the page content again, and display the acquired merged media resource.
In the above media resource obtaining method, the client may send a resource obtaining request for a resource display page to the server, where the resource display page is used to display media resource data of at least two resource types, the resource obtaining request may trigger the server to determine at least two associated resource types and call an interface corresponding to each of the at least two resource types, and obtain a candidate media resource in the corresponding resource type through the interface of each resource type, and then the server may determine, according to a predetermined resource recommendation policy, a media resource to be recommended from the multiple candidate media resources, merge the media resources to be recommended, and enable the client to receive the merged media resource returned by the server. According to the method and the device, the client can trigger the server to call the plurality of interfaces and acquire the media resources under different resource types through the resource acquisition request, the client is prevented from calling corresponding interfaces aiming at different resource types, the number of the interfaces needing to be maintained between the client and the server is reduced, the complexity of data interaction is reduced, the server flexibly screens or recommends a plurality of candidate media resources according to a resource recommendation strategy, the display effect of the media resources to be recommended is optimized, and the display efficiency of the media resources of the client can be effectively improved.
In an exemplary embodiment, after step S410, the method may further include:
reading the resource type identification of each media resource from the merged media resources, and analyzing the corresponding media resources according to the resource analysis rule corresponding to the resource type identification; and displaying the analyzed media resources of various resource types on the resource display page.
In practical application, for media resources of different resource types, the client may analyze in different manners, for example, the audio-type media resource and the text-type media resource are different in analyzing manner, and the server returns a plurality of media resources to be recommended to the client in a merging manner.
Based on this, when the server merges a plurality of media resources to be recommended, the server may obtain a resource type identifier of each media resource to be recommended, where the resource type identifier may be used to indicate a resource type, and then the server may merge each media resource to be recommended and the resource type identifier of each media resource to be recommended, to obtain a merged media resource.
After the server returns the combined media resources to the client, the client can obtain the resource type identifier of each media resource from the combined media resources, and then can obtain a resource analysis rule for analyzing the corresponding resource type according to the resource type identifier, and analyze the currently read media resources according to the resource analysis rule corresponding to the resource type identifier, so as to obtain the analyzed media resources. After analyzing each media resource in the combined media resources, the client may display media resources of various analyzed resource types on the resource display page.
In this embodiment, the client may read the resource type identifier of each media resource from the merged media resources, and parse the corresponding media resource according to the resource parsing rule corresponding to the resource type identifier, so that after the server merges and returns a plurality of media resources from different interfaces to the client, the client may still correctly parse each media resource, thereby implementing normal display of the media resources.
In an exemplary embodiment, after the resource presentation page presents the parsed respective media resource data, the method may further include:
acquiring a resource analysis rule corresponding to the newly added resource type identifier; and under the condition that the merged media resources are obtained again and the newly added resource type identification is read from the merged media resources, analyzing the newly added media resources corresponding to the newly added resource type identification in the merged media resources according to the resource analysis rule corresponding to the newly added resource type identification.
The newly added resource type identifier is the resource type identifier corresponding to the added resource type acquired by the server after receiving the resource type adding request for the resource display page.
In practical applications, the resource type of the media resource displayed on the resource display page may change, for example, a new resource type may be added or an original resource type may be deleted. If a resource type adding request aiming at the resource display page is received, the server side can determine the resource type added by the resource type adding request, and acquire a resource type identifier corresponding to the added resource type as a newly added resource type identifier.
After determining the newly added resource type identifier, the server may further obtain a resource parsing rule corresponding to the newly added resource type identifier, and send the newly added resource type identifier and the resource parsing rule corresponding to the newly added resource type identifier to the client, so that a parsing manner for a media resource of the newly added resource type may be agreed with the client.
When the client acquires the merged media resource again and reads a newly added resource type identifier from the merged media resource, the client can analyze the media resource with the resource type being the newly added resource type according to a resource analysis rule corresponding to the newly added resource type identifier, so as to display the media resource with the new resource type in the resource display page.
In this embodiment, the client may obtain a resource analysis rule corresponding to the newly added resource type identifier, and analyze the newly added media resource corresponding to the newly added resource type identifier in the combined media resources according to the resource analysis rule corresponding to the newly added resource type identifier, so as to implement an agreement between the client and the server for a new resource type analysis manner, and quickly integrate a new media resource of a new resource type into the resource display page.
In order to enable those skilled in the art to better understand the above steps, the embodiments of the present disclosure are illustrated below by way of an example, but it should be understood that the embodiments of the present disclosure are not limited thereto.
As shown in fig. 5, after detecting a trigger event for acquiring a media resource (also referred to as service convergence data) in a resource display page, a client may call a preset interface of a server by sending a resource acquisition request to the server, where the resource acquisition request may carry an account identifier userId of a current login account of the client.
After receiving the resource acquisition request, the server may determine resource types of media resources to be displayed in the resource display page, where the number of the resource types is two or more, for example, media resources of 3 resource types may be displayed in the resource display page, and then the server may respectively call interfaces corresponding to multiple resource types, and acquire candidate media resources in the corresponding resource types from each interface.
After obtaining the multiple candidate media resources, the server may obtain multiple media resources to be recommended from the multiple candidate media resources according to one or more recommendation policies, merge the multiple media resources to be recommended, and send the merged media resources to the client, in an example, the server may merge and encapsulate the media resources to be recommended according to the following data encapsulation format:
Figure BDA0003759667810000121
Figure BDA0003759667810000131
after receiving the merged media resources, the client may parse the media resources according to a resource parsing rule (which may also be referred to as a typep protocol) corresponding to each resource type, and display the parsed media resources in a resource display page.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
It is understood that the same/similar parts between the embodiments of the method described above in this specification can be referred to each other, and each embodiment focuses on the differences from the other embodiments, and it is sufficient that the relevant points are referred to the descriptions of the other method embodiments.
Based on the same inventive concept, the embodiment of the present disclosure further provides a media resource acquiring device for implementing the above-mentioned media resource acquiring method.
Fig. 6 is a block diagram illustrating a media asset retrieval device, according to an example embodiment. Referring to fig. 6, the apparatus includes a request receiving unit 601, an interface calling unit 602, a recommended resource determining unit 603, and a merged resource transmitting unit 604.
A request receiving unit 601 configured to execute receiving a resource obtaining request of a client for a resource presentation page; the resource display page is used for displaying media resources of at least two resource types;
an interface calling unit 602, configured to perform determining at least two resource types associated with the resource acquisition request, and call an interface corresponding to each of the at least two resource types, to acquire a candidate media resource in the corresponding resource type through the interface of each resource type;
a recommended resource determining unit 603 configured to perform determining, according to a predetermined resource recommendation policy, a media resource to be recommended from a plurality of candidate media resources;
a merged resource sending unit 604 configured to perform merging on the media resources to be recommended, and return the merged media resources to the client
In an exemplary embodiment, the merged resource sending unit 604 is configured to perform:
acquiring a resource type identifier of each media resource to be recommended, and combining each media resource to be recommended and the resource type identifier of each media resource to be recommended to obtain a combined media resource;
the resource type identifier in the merged media resource is used to instruct the client to parse the read media resource according to the resource parsing rule corresponding to the resource type identifier when the client reads the media resource associated with the resource type identifier.
In an exemplary embodiment, the apparatus further comprises:
a resource type adding request receiving unit configured to execute a resource type adding request in response to the resource display page, and acquire a newly added resource type identifier corresponding to the added resource type;
and the rule issuing unit is configured to execute a resource analysis rule corresponding to the newly added resource type identifier sent to the client.
In an exemplary embodiment, the recommended resources determining unit 603 is configured to perform:
if the predetermined resource recommendation strategy comprises a first recommendation strategy, determining the attention degree of the client to each candidate media resource, and determining the candidate media resource of which the attention degree meets the attention degree condition;
and determining the media resources to be recommended based on the candidate media resources with the attention degree meeting the attention degree condition.
In an exemplary embodiment, the recommended resources determining unit 603 is configured to perform:
if the predetermined resource recommendation strategy comprises a second recommendation strategy, determining the display priority corresponding to each candidate media resource;
and obtaining the media resource to be recommended based on the candidate media resource carrying the display priority.
In an exemplary embodiment, the recommended resources determining unit 603 is configured to perform:
and if the predetermined resource recommendation strategy comprises a third recommendation strategy, filtering the candidate media resources to be shielded in the plurality of candidate media resources, and determining the media resources to be recommended based on the remaining candidate media resources after filtering.
In an exemplary embodiment, the request receiving unit 601 is configured to perform:
receiving a resource acquisition request of a client aiming at a resource display page through a preset interface;
the merged resource transmitting unit 604 is configured to execute
And acquiring a data packaging format corresponding to the preset interface, and merging the media resources to be recommended based on the data packaging format.
Fig. 7 is a block diagram illustrating another media asset retrieval arrangement, according to an example embodiment. Referring to fig. 7, the apparatus includes a request transmitting unit 701 and a merged resource receiving unit 702.
A request sending unit 701 configured to execute sending a resource obtaining request for a resource presentation page to a server; the resource display page is used for displaying media resource data of at least two resource types, the resource acquisition request is used for triggering the server to determine the associated at least two resource types, calling an interface corresponding to each resource type of the at least two resource types, acquiring candidate media resources under the corresponding resource type through the interface of each resource type, determining media resources to be recommended from the candidate media resources according to a predetermined resource recommendation strategy, and combining the media resources to be recommended;
a merged resource receiving unit 702, configured to execute receiving the merged media resource returned by the server.
In an exemplary embodiment, after the receiving the merged media resource returned by the server, the method further includes:
the identification reading unit is configured to read the resource type identification of each media resource from the merged media resources and analyze the corresponding media resources according to the resource analysis rule corresponding to the resource type identification;
and the resource display unit is configured to execute the media resources of various resource types after the resource display page is displayed and analyzed.
In an exemplary embodiment, the apparatus further comprises:
the rule receiving unit is configured to execute a resource analysis rule corresponding to a newly added resource type identifier, wherein the newly added resource type identifier is a resource type identifier corresponding to an added resource type acquired by the server after receiving a resource type addition request for the resource display page;
and the resource analysis unit is configured to analyze the newly added media resource corresponding to the newly added resource type identifier in the merged media resource according to a resource analysis rule corresponding to the newly added resource type identifier under the condition that the merged media resource is obtained again and the newly added resource type identifier is read from the merged media resource.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The modules in the media resource acquiring device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 8 is a block diagram illustrating an electronic device 800 for implementing a media asset acquisition method according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 8, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or components of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes instructions executable by the processor 820 of the electronic device 800 to perform the above-described method.
Fig. 9 is a block diagram illustrating an electronic device 900 for implementing a media asset acquisition method in accordance with an exemplary embodiment. For example, the electronic device 900 may be a server. Referring to fig. 9, electronic device 900 includes a processing component 920 that further includes one or more processors and memory resources, represented by memory 922, for storing instructions, such as applications, that are executable by processing component 920. The application programs stored in memory 922 may include one or more modules that each correspond to a set of instructions. Further, the processing component 920 is configured to execute instructions to perform the above-described methods.
The electronic device 900 may further include: the power component 924 is configured to perform power management of the electronic device 900, the wired or wireless network interface 926 is configured to connect the electronic device 900 to a network, and the input-output (I/O) interface 928. The electronic device 900 may operate based on an operating system stored in the memory 922, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 922 comprising instructions, executable by a processor of the electronic device 900 to perform the above-described method is also provided. The storage medium may be a computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes instructions executable by a processor of the electronic device 900 to perform the above-described method.
It should be noted that the descriptions of the above-mentioned apparatus, the electronic device, the computer-readable storage medium, the computer program product, and the like according to the method embodiments may also include other embodiments, and specific implementations may refer to the descriptions of the related method embodiments, which are not described in detail herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A media resource acquisition method, comprising:
receiving a resource acquisition request of a client aiming at a resource display page; the resource display page is used for displaying media resources of at least two resource types;
determining at least two resource types associated with the resource acquisition request, calling an interface corresponding to each resource type of the at least two resource types, and acquiring a candidate media resource under the corresponding resource type through the interface of each resource type;
determining a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy;
and merging the media resources to be recommended, and returning the merged media resources to the client.
2. The method of claim 1, wherein the merging the media resources to be recommended comprises:
acquiring a resource type identifier of each media resource to be recommended, and combining each media resource to be recommended and the resource type identifier of each media resource to be recommended to obtain a combined media resource;
and the resource type identifier in the merged media resource is used for indicating the client to analyze the read media resource according to the resource analysis rule corresponding to the resource type identifier under the condition that the media resource associated with the resource type identifier is read by the client.
3. The method according to claim 1 or 2, wherein the receiving a resource obtaining request of a client for a resource presentation page comprises:
receiving a resource acquisition request of a client aiming at a resource display page through a preset interface;
the merging the media resources to be recommended includes:
and acquiring a data packaging format corresponding to the preset interface, and combining the media resources to be recommended based on the data packaging format.
4. A media resource acquisition method, comprising:
sending a resource acquisition request aiming at a resource display page to a server; the resource display page is used for displaying media resource data of at least two resource types, the resource acquisition request is used for triggering the server to determine the associated at least two resource types, calling an interface corresponding to each resource type of the at least two resource types, acquiring candidate media resources under the corresponding resource type through the interface of each resource type, determining media resources to be recommended from the candidate media resources according to a predetermined resource recommendation strategy, and combining the media resources to be recommended;
and receiving the merged media resources returned by the server.
5. The method according to claim 4, further comprising, after said receiving the merged media resource returned by the server:
reading a resource type identifier of each media resource from the merged media resources, and analyzing the corresponding media resources according to a resource analysis rule corresponding to the resource type identifier;
and displaying the analyzed media resources of various resource types on the resource display page.
6. The method according to claim 5, further comprising, after the rendering the parsed media asset data on the asset presentation page:
acquiring a resource analysis rule corresponding to a newly added resource type identifier, wherein the newly added resource type identifier is a resource type identifier corresponding to an added resource type acquired by the server after receiving a resource type addition request aiming at the resource display page;
and under the condition that the merged media resources are obtained again and the newly added resource type identification is read from the merged media resources, analyzing the newly added media resources corresponding to the newly added resource type identification in the merged media resources according to the resource analysis rule corresponding to the newly added resource type identification.
7. A media resource acquisition apparatus, comprising:
the request receiving unit is configured to execute receiving of a resource obtaining request of a client for a resource display page; the resource display page is used for displaying media resources of at least two resource types;
the interface calling unit is configured to execute the steps of determining at least two resource types associated with the resource obtaining request, calling an interface corresponding to each resource type in the at least two resource types, and obtaining candidate media resources under the corresponding resource type through the interface of each resource type;
the recommendation resource determining unit is configured to determine a media resource to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy;
and the merged resource sending unit is configured to perform merging on the media resources to be recommended and return the merged media resources to the client.
8. A media resource acquisition apparatus, comprising:
the request sending unit is configured to execute sending of a resource obtaining request aiming at the resource display page to the server; the resource display page is used for displaying media resource data of at least two resource types, the resource acquisition request is used for triggering the server to determine at least two associated resource types, calling an interface corresponding to each of the at least two resource types, acquiring candidate media resources under the corresponding resource types through the interface of each resource type, determining media resources to be recommended from a plurality of candidate media resources according to a predetermined resource recommendation strategy, and combining the media resources to be recommended;
and the merged resource receiving unit is configured to receive the merged media resource returned by the server.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any of claims 1 to 3 or the method of any of claims 4 to 6.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-3 or the method of any of claims 4-6.
11. A computer program product comprising instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1 to 3 or the method of any of claims 4 to 6.
CN202210867217.7A 2022-07-22 2022-07-22 Media resource acquisition method, device, electronic equipment, storage medium and product Pending CN115065677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210867217.7A CN115065677A (en) 2022-07-22 2022-07-22 Media resource acquisition method, device, electronic equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210867217.7A CN115065677A (en) 2022-07-22 2022-07-22 Media resource acquisition method, device, electronic equipment, storage medium and product

Publications (1)

Publication Number Publication Date
CN115065677A true CN115065677A (en) 2022-09-16

Family

ID=83205392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210867217.7A Pending CN115065677A (en) 2022-07-22 2022-07-22 Media resource acquisition method, device, electronic equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN115065677A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069437A (en) * 2020-08-13 2020-12-11 北京达佳互联信息技术有限公司 Webpage request processing method and device, electronic equipment and storage medium
CN112149025A (en) * 2020-10-19 2020-12-29 腾讯科技(深圳)有限公司 Media resource display method and device, storage medium and electronic equipment
CN112364244A (en) * 2020-11-16 2021-02-12 广州酷狗计算机科技有限公司 Multimedia data recommendation method, device, server and storage medium
CN113626679A (en) * 2020-05-07 2021-11-09 北京达佳互联信息技术有限公司 Multimedia resource recommendation method, device and storage medium
CN114218410A (en) * 2021-12-08 2022-03-22 北京达佳互联信息技术有限公司 Information recommendation method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626679A (en) * 2020-05-07 2021-11-09 北京达佳互联信息技术有限公司 Multimedia resource recommendation method, device and storage medium
CN112069437A (en) * 2020-08-13 2020-12-11 北京达佳互联信息技术有限公司 Webpage request processing method and device, electronic equipment and storage medium
CN112149025A (en) * 2020-10-19 2020-12-29 腾讯科技(深圳)有限公司 Media resource display method and device, storage medium and electronic equipment
CN112364244A (en) * 2020-11-16 2021-02-12 广州酷狗计算机科技有限公司 Multimedia data recommendation method, device, server and storage medium
CN114218410A (en) * 2021-12-08 2022-03-22 北京达佳互联信息技术有限公司 Information recommendation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106605224B (en) Information searching method and device, electronic equipment and server
CN106897937B (en) Method and device for displaying social sharing information
CN109525652B (en) Information sharing method, device, equipment and storage medium
CN117390330A (en) Webpage access method and device
CN115185717B (en) Interface calling method and device, electronic equipment and storage medium
CN107402767B (en) Method and device for displaying push message
JP6302098B2 (en) Address filtering method, apparatus, program, and recording medium
CN113259226A (en) Information synchronization method and device, electronic equipment and storage medium
CN110020082B (en) Searching method and device
CN105630948A (en) Web page display method and apparatus
CN112860625B (en) Data acquisition method, data storage method, device, equipment and storage medium
CN114239531A (en) Template recommendation method and device, electronic equipment and storage medium
CN115065677A (en) Media resource acquisition method, device, electronic equipment, storage medium and product
CN109766501B (en) Crawler protocol management method and device and crawler system
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN113918661A (en) Knowledge graph generation method and device and electronic equipment
CN110278228B (en) Data processing method and device for data processing
CN107257384B (en) Service state monitoring method and device
CN111526084A (en) Information processing method, device, equipment and storage medium
CN111736890A (en) Data updating method and device, electronic equipment and storage medium
CN111694999A (en) Information processing method and device and electronic equipment
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN111724398A (en) Image display method and device
CN113378022A (en) In-station search platform, search method and related device
CN110119471B (en) Method and device for checking consistency of search results

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination