CROSS-REFERENCE TO RELATED APPLICATION

This application is based on and claims priority to Chinese Patent Application No. 202011046118.X, filed on Sep. 28, 2020, the disclosure of which is herein incorporated by reference in its entirety.

TECHNICAL FIELD

The present disclosure relates to the field of Internet technologies, and particularly relates to a method for displaying media resources and a terminal.

BACKGROUND

With rapid development of mobile Internet technologies and computer technologies, except for basic multimedia playback services, current multimedia applications may further provide services of displaying media resources based on city information, such as an intra-city video, an intra-city picture and an intra-city text. Due to strong geographic attributes of the intra-city, more users can be attracted to use multimedia applications by displaying intra-city media resources.

SUMMARY

The present disclosure provides a method for displaying media resources and a terminal, which can improve the human-computer interaction efficiency. Technical solutions of the present disclosure are as follows:

According to an aspect of embodiments of the present disclosure, a method for displaying media resources applicable to a terminal is provided. The method for displaying media resources includes: displaying an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; acquiring a first media resource corresponding to a first region in response to detecting a target event based on the activity page, wherein the first media resource is configured to recommend the first region; and displaying the first media resource in the activity page.

According to another aspect of embodiments of the present disclosure, a method for displaying media resources applicable to a server is provided. The method for displaying media resources includes: receiving a request for media resource acquisition transmitted by a terminal based on an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; selecting a first media resource corresponding to a first region from multiple media resources; and returning resource information of the first media resource and the first region to the terminal.

According to another aspect of embodiments of the present disclosure, a terminal is provided. The terminal includes:

one or more processors; and

a memory configured to store program code executable by the processor, wherein

the processor, when executing the program code, is caused to perform: displaying an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; acquiring a first media resource corresponding to a first region in response to detecting a target event based on the activity page, wherein the first media resource is configured to recommend the first region; and displaying the first media resource in the activity page.

According to another aspect of embodiments of the present disclosure, a server is provided. The server includes:

one or more processors; and

a memory configured to store program code executable by the processor, wherein

the processor, when executing the program code, is caused to perform: receiving a request for media resource acquisition transmitted by a terminal based on an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; selecting a first media resource corresponding to a first region from multiple media resources; and returning resource information of the first media resource and the first region to the terminal.

According to another aspect of embodiments of the present disclosure, a storage medium storing program code is provided. Wherein the program code, when executed by a processor of a terminal, causes the terminal to perform: displaying an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; acquiring a first media resource corresponding to a first region in response to detecting a target event based on the activity page, wherein the first media resource is configured to recommend the first region; and displaying the first media resource in the activity page.

According to another aspect of embodiments of the present disclosure, a storage medium storing program code is provided. Wherein the program code, when executed by a processor of a server, causes the sever to perform: receiving a request for media resource acquisition transmitted by a terminal based on a activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; selecting a first media resource corresponding to a first region from multiple media resources; and returning resource information of the first media resource and the first region to the terminal.

According to another aspect of embodiments of the present disclosure, a computer program product is provided. The computer program product includes computer program code stored in a non-transitory computer-readable storage medium. A processor of a terminal reads the computer program code from the non-transitory computer-readable storage medium, and the computer program code, when executed by the processor, causes the terminal to perform: displaying an activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; acquiring a first media resource corresponding to a first region in response to detecting a target event based on the activity page, wherein the first media resource is configured to recommend the first region; and displaying the first media resource in the activity page.

According to another aspect of embodiments of the present disclosure, a computer program product is provided. The computer program product includes computer program code stored in a non-transitory computer-readable storage medium. A processor of a sever reads the computer program code from the non-transitory computer-readable storage medium, and the computer program code, when executed by the processor, causes the sever to perform: receiving a request for media resource acquisition transmitted by a terminal based on a activity page, wherein the activity page is configured to trigger a display of a media resource corresponding to a region; selecting a first media resource corresponding to a first region from multiple media resources; and returning resource information of the first media resource and the first region to the terminal.

