EP-4742681-A1 - MEDIA CONTENT DISPLAY METHOD, APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM
Abstract
Provided in the embodiments of the present disclosure are a media content display method, an apparatus, an electronic device and a storage medium. The method comprises: acquiring media content, the media content comprising audio, the audio corresponding to a plurality of set timestamps, the media content further comprising a plurality of media resources, and the display form of the plurality of media resources being kept unchanged before and after releasing of the media content; displaying on a display interface at least one media resource included in the media content and playing the audio; when the media content is in an automatic playback mode and the audio is played to a target timestamp among the plurality of set timestamps, switching on the display interface to display the media resource corresponding to the target timestamp, the automatic playback mode being a mode in which each media resource is automatically displayed on the display interface when the audio is played to the corresponding set timestamp; and in response to the switching operation on the display interface, displaying on the display interface the media resource corresponding to the switching operation.
Inventors
- LIU, Yuande
- SHEN, Youjia
Assignees
- Beijing Zitiao Network Technology Co., Ltd.
Dates
- Publication Date
- 20260513
- Application Date
- 20240705
Claims (15)
- A media content display method, comprising: acquiring media content, the media content comprising audio corresponding to a plurality of set timestamps, the media content further comprising a plurality of media resources, and display forms of the plurality of media resources remaining unchanged before and after a post of the media content; displaying, on a display interface, at least one media resource among the plurality of media resources included in the media content, and playing the audio; switching, in response to the media content being in an automatic playback mode and the audio being played to a target timestamp among the plurality of set timestamps, to display a media resource corresponding to the target timestamp on the display interface, the automatic playback mode being a mode in which each of the plurality of media resources is automatically displayed on the display interface in response to the audio being played to a corresponding set timestamp; and displaying, in response to a switching operation on the display interface, on the display interface, a media resource to which the switching operation corresponds.
- The method according to claim 1, wherein the acquiring media content comprises: acquiring the media content and the plurality of set timestamps corresponding to the audio included in the media content, the media content comprising resource download information of the plurality of media resources and audio download information of the audio; and acquiring a media resource corresponding to the resource download information and audio corresponding to the audio download information.
- The method according to claim 2, wherein the media resource comprises image and/or video, and wherein in response to the media resource being video, the acquiring media content comprises one or more of: acquiring a cropped video, wherein the cropped video is a video obtained by cropping based on an audio beat-sync duration, and the audio beat-sync duration is a duration determined based on a difference between a set timestamp corresponding to the cropped video and a next set timestamp after the set timestamp corresponding to the cropped video; acquiring an original video uploaded by a user; acquiring a cropping timestamp corresponding to the original video uploaded by the user and the cropped video, wherein the cropping timestamp is a timestamp corresponding to a cropped position in the original video uploaded by the user.
- The method according to any one of claims 1-3, wherein a quantity of the plurality of set timestamps is one less than a quantity of the plurality of media resources, and all the plurality of media resources, except a first displayed media resource, are in a one-to-one correspondence with the plurality of set timestamps.
- The method according to claim 1, wherein in response to the media resource corresponding to the target timestamp being a target video, switching to display the media resource corresponding to the target timestamp on the display interface in response to the audio being played to the target timestamp among the plurality of set timestamps, comprising: in response to the audio being played to the target timestamp among the plurality of set timestamps, switching to display a cropped target video corresponding to the target timestamp on the display interface.
- The method according to claim 5, wherein the in response to the audio being played to the target timestamp among the plurality of set timestamps, switching to display a cropped target video corresponding to the target timestamp on the display interface comprises: acquiring, in response to the audio being played to the target timestamp among the plurality of set timestamps, the target video corresponding to the target timestamp and a cropping timestamp of the target video; and playing, on the display interface, the target video based on the cropping timestamp.
- The method according to claim 1, wherein the media resource corresponding to the switching operation is video, and wherein the displaying, on the display interface, a media resource to which the switching operation corresponds comprises: cyclically displaying, on the display interface, a cropped video corresponding to the switching operation, wherein the cropped video is obtained by cropping a media resource uploaded or captured for posting; or cyclically displaying, on the display interface, an original video corresponding to the switching operation, wherein the original video is a media resource uploaded or captured for posting.
- The method according to any one of claims 1-7, further comprising: playing, in response to an automatic playback switching operation, the plurality of media resources sequentially by starting from a media resource corresponding to the automatic playback switching operation, and playing the audio by starting from a set timestamp corresponding to the media resource corresponding to the automatic playback switching operation.
- A media content display apparatus, comprising: an acquiring module, configured to acquire media content, the media content comprising audio corresponding to a plurality of set timestamps, the media content further comprising a plurality of media resources, and display forms of the plurality of media resources remaining unchanged before and after a post of the media content; a first display module, configured to display, on a display interface, at least one media resource among the plurality of media resources included in the media content, and play the audio; a second display module, configured to switch, in response to the media content being in an automatic playback mode and the audio being played to a target timestamp among the plurality of set timestamps, to display a media resource corresponding to the target timestamp on the display interface, the automatic playback mode being a mode in which each of the plurality of media resources is automatically displayed on the display interface in response to the audio being played to a corresponding set timestamp; and a third display module, configured to display, in response to a switching operation on the display interface, on the display interface, a media resource to which the switching operation corresponds.
- The apparatus according to claim 9, wherein the acquiring module is configured to: acquire the media content and the plurality of set timestamps corresponding to the audio included in the media content, the media content comprising resource download information of the plurality of media resources and audio download information of the audio; and acquire a media resource corresponding to the resource download information and the audio corresponding to the audio download information.
- The apparatus according to claim 9, wherein in response to the media resource corresponding to the target timestamp being a target video, the second display module is configured to: switch to display a cropped target video corresponding to the target timestamp on the display interface in response to the audio being played to the target timestamp among the plurality of set timestamps.
- The apparatus according to claim 9, wherein in response to the media resource corresponding to the switching operation being a video, the third display module is configured to: cyclically display, on the display interface, a cropped video corresponding to the switching operation, wherein the cropped video is obtained by cropping a media resource uploaded or captured for posting; or cyclically display, on the display interface, an original video corresponding to the switching operation, wherein the original video is a media resource uploaded or captured for posting.
- The apparatus according to any one of claims 9-12, further comprising a playback module configured to: play, in response to an automatic playback switching operation, the plurality of media resources sequentially by starting from a media resource corresponding to the automatic playback switching operation, and play the audio by starting from a set timestamp corresponding to the media resource corresponding to the automatic playback switching operation.
- An electronic device, comprising: one or more processing devices; and a storage device configured to store one or more programs, wherein the one or more programs, when executed by the one or more processing devices, cause the one or more processing devices to implement the media content display method according to any one of claims 1-8.
- A storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, cause the computer processor to perform the media content display method according to any one of claims 1-8.
Description
This application claims the priority of Chinese Patent Application No. 202310835198.4 filed on July 7, 2023 and entitled "MEDIA CONTENT DISPLAY METHOD, APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM". The contents disclosed in the above Chinese Patent Application are incorporated herein by reference in its entirety as a part of this application. TECHNICAL FIELD Embodiments of the present disclosure relate to computer technology, and more particularly to a media content display method and apparatus, an electronic device, and a storage medium. BACKGROUND With the continuous development of computer technology, diverse and substantial media content, such as image, video or the combination of image and video, can be shown to users through a display interface. Users can also share produced media content with others by posting the media content. SUMMARY The present disclosure provides a media content display method and apparatus, an electronic device, and a storage medium to improve the user experience when displaying the media content in the display interface. An embodiment of the present disclosure provides a media content display method, including: acquiring media content, the media content including audio corresponding to a plurality of set timestamps, and the media content further including a plurality of media resources, display forms of the plurality of media resources remaining unchanged before and after a post of the media content;displaying, on a display interface, at least one media resource among the plurality of media resources included in the media content, and playing the audio;switching, in response to the media content being in an automatic playback mode and the audio being played to a target timestamp among the plurality of set timestamps, to display a media resource corresponding to the target timestamp on the display interface, where the automatic playback mode is a mode in which each media resource is automatically displayed on the display interface in response to the audio being played to a corresponding set timestamp; anddisplaying, in response to a switching operation on the display interface, on the display interface, a media resource to which the switching operation corresponds. An embodiment of the present disclosure further provides a media content display apparatus, including: an acquiring module, configured to acquire media content, audio included in the media content corresponding to a plurality of set timestamps, the media content including a plurality of media resources, and display forms of the plurality of media resources remaining unchanged before and after a post of the media content;a first display module, configured to display, on a display interface, at least one media resource included in the media content and play the audio;a second display module, configured to switch to display, on the display interface, a media resource corresponding to a target timestamp among the plurality of set timestamps in response to the media content being in an automatic playback mode and the audio being played to the target timestamp, where the automatic playback mode is a mode in which each media resource is automatically displayed on the display interface in response to the audio being played to a corresponding set timestamp; anda third display module, configured to display, in response to a switching operation on the display interface, on the display interface, a media resource to which the switching operation corresponds. An embodiment of the present disclosure further provides an electronic device, including: one or more processing devices; anda storage device configured to store one or more programs,the one or more programs, when executed by the one or more processing devices, cause the one or more processing devices to implement the media content display method provided by the embodiment of the present disclosure. An embodiment of the present disclosure further provides a storage medium including computer-executable instructions that, when executed by a computer processor, cause the computer processor to perform the media content display method provided by the embodiment of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and referring to of the following Detailed Description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that originals and elements are not necessarily drawn to scale. Fig. 1 is a schematic flow diagram of a media content display method according to an embodiment of the present disclosure.Fig. 2 is a schematic diagram illustrating correspondence relationships between set timestamps and media resources according to an embodiment of the present disclosure.Fig. 3 is a sche