Media resource processing method and device, equipment and storage medium

By pre-acquiring and storing media resource content while the target list is statically displayed, the problem of delayed viewing of the first frame after the user clicks is solved, fast display is achieved, and the user experience is improved.

CN120610646APending Publication Date: 2025-09-09BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410263247.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

When users click on a media resource card to enter the display page, there is usually a delay in viewing the first frame, causing a sense of lag and affecting the user experience.

Method used

After the target list enters a static display state for a preset time, the media resource content corresponding to the resource card is obtained and stored in advance, and the media resource is obtained and displayed from the storage space in response to the trigger operation.

Benefits of technology

The first frame display time is shortened, the sense of lag is reduced, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610646A_ABST
    Figure CN120610646A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a media resource processing method and device, equipment and a storage medium, and the method comprises the steps: responding to a target list, entering a target display state, and obtaining target media resource contents corresponding to resource cards in the display state in the target list, and storing a corresponding relationship between the resource card and the target media resource content to the target storage space, and in response to a preset triggering operation for the target resource card, obtaining the target media resource content corresponding to the target resource card from the target storage space, and displaying a media resource corresponding to the target resource card based on the target media resource content. According to the embodiment of the invention, the target media resource contents corresponding to the resource cards in the display state are acquired in advance, and the first frame of the media resource is displayed in time when the trigger operation of the target resource cards is received, so that the time consumption of the first frame is shortened, the probability of bringing a jamming feeling to a user is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a method, apparatus, device, and storage medium for processing media resources. Background Art

[0002] In related technologies, a user can trigger the display of the media resource corresponding to a card by clicking on a card in a list (such as a video card).

[0003] Currently, when a user clicks a card to enter the display page of a corresponding media resource, there is usually a certain delay before the user sees the first frame of the media resource. This abnormal phenomenon often gives users a sense of lag and affects the user experience. Summary of the Invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a media resource processing method, apparatus, device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for processing media resources, the method comprising:

[0006] In response to the target list entering a target display state, obtaining target media resource content corresponding to each resource card in the target list that is in the display state, and storing the correspondence between the resource cards and the target media resource content in a target storage space; wherein the target display state is a state in which the target list has been in a static display state for a preset period of time, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number;

[0007] In response to a preset trigger operation on a target resource card among the resource cards in the display state, target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

[0008] In an optional embodiment, in response to the target list entering the target display state, obtaining target media resource content corresponding to resource cards in the display state in the target list includes:

[0009] In response to the target list switching from a single-column display state to a double-column display state, the target media resource content corresponding to the resource cards in the display state in the target list is obtained; wherein, the single-column display state is a state in which the target list displays multiple resource cards in a single column, and the double-column display state is a state in which the target list displays multiple resource cards in a double column.

[0010] In an optional embodiment, in response to the target list entering the target display state, obtaining target media resource content corresponding to resource cards in the display state in the target list includes:

[0011] In response to the target list switching from the sliding display state to the target display state, target media resource contents corresponding to the resource cards in the display state in the target list are obtained; wherein the sliding display state is triggered by a sliding operation on the target list.

[0012] In an optional implementation, the method further includes:

[0013] In response to the target list entering the sliding display state, the resource cards and the target media resource content having a corresponding relationship stored in the target storage space are deleted.

[0014] In an optional implementation, the method further includes:

[0015] In response to a sliding trigger operation on the target list, the sliding display of the target list is controlled, and when it is detected that the target media resource content is in a loading state, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

[0016] In an optional implementation, the method further includes:

[0017] In response to a refresh operation on the target list, the resource cards in the display state in the target list are reloaded, and when it is detected that the target media resource content is in the loading state, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

[0018] In an optional implementation, displaying the media resource corresponding to the target resource card based on the target media resource content includes:

[0019] The target media resource content is displayed, and after the media resource corresponding to the target resource card is acquired, the media resource is continued to be displayed based on the target media resource content.

[0020] In an optional embodiment, in response to the target list entering the target display state, obtaining target media resource content corresponding to each resource card in the display state in the target list, and storing the correspondence between the resource cards and the target media resource content in the target storage space includes:

[0021] In response to the target list entering the target display state, determining resource identifiers corresponding to the resource cards in the target list that are in the display state, and obtaining target media resource content corresponding to the resource identifiers from the media resource server;

[0022] The resource identifier and the target media resource content having a corresponding relationship are stored in a target storage space; wherein the resource identifier is used to obtain the corresponding target media resource content.

[0023] In a second aspect, the present disclosure provides a media resource processing device, the device comprising:

[0024] A first acquisition module is configured to, in response to a target list entering a target display state, acquire target media resource content corresponding to each resource card in the target list that is in the display state, and store the correspondence between the resource cards and the target media resource content in a target storage space; wherein the target display state is a state in which the target list has been in a static display state for a preset period of time, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number;

[0025] The second acquisition module is used to respond to a preset trigger operation for a target resource card in the resource cards in the display state, obtain the target media resource content corresponding to the target resource card from the target storage space, and display the media resource corresponding to the target resource card based on the target media resource content.

[0026] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; and the processor for reading the executable instructions from the memory and executing the instructions to implement a media resource processing method as provided in an embodiment of the present disclosure.

[0027] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the media resource processing method provided by the embodiment of the present disclosure.

[0028] In a fifth aspect, the present disclosure provides a computer program product, which includes a computer program / instructions, and the computer program / instructions implement the above method when executed by a processor.

[0029] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:

[0030] In the media resource processing method provided by the embodiment of the present disclosure, in response to the target list entering the target display state, the target media resource content corresponding to the resource cards in the target list in the display state is obtained, and the correspondence between the resource cards and the target media resource content is stored in the target storage space, wherein the target display state is a state in which the target list has been in a static display state for a preset time period, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number, and then in response to a preset trigger operation for the target resource card in the resource card in the display state, the target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

[0031] It can be seen that the embodiment of the present disclosure can display the first frame of the media resource to the user in a timely manner when receiving the trigger operation of the target resource card by pre-acquiring the target media resource content corresponding to the resource cards in the display state, thereby shortening the first frame time and reducing the chance of causing the user to feel a lag, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0033] Figure 1 A flowchart of a media resource processing method provided by an embodiment of the present disclosure;

[0034] Figure 2 A schematic diagram of a display page provided in an embodiment of the present disclosure;

[0035] Figure 3 A schematic diagram of the structure of a media resource processing device provided in an embodiment of the present disclosure;

[0036] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0038] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0039] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0040] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0041] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0043] In related technologies, a user can trigger the display of the media resource corresponding to a card by clicking on a card in a list (such as a video card).

[0044] Currently, when a user clicks a card to enter the display page of a corresponding media resource, there is usually a certain delay before the user sees the first frame of the media resource. This abnormal phenomenon often gives users a sense of lag and affects the user experience.

[0045] To this end, an embodiment of the present disclosure provides a media resource processing method. Specifically, in response to a target list entering a target display state, the target media resource content corresponding to each resource card in the target list in the display state is obtained, and the correspondence between the resource card and the target media resource content is stored in a target storage space; wherein, the target display state is a state in which the target list is in a static display state for a preset time length, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number, and then in response to a preset trigger operation for a target resource card in the resource card in the display state, the target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

[0046] It can be seen that the embodiment of the present disclosure can display the first frame of the media resource to the user in a timely manner when receiving the trigger operation of the target resource card by pre-acquiring the target media resource content corresponding to the resource cards in the display state, thereby shortening the first frame time and reducing the chance of causing the user to feel a lag, thereby improving the user experience.

[0047] Based on this, an embodiment of the present disclosure provides a method for processing media resources, which is introduced below in conjunction with specific embodiments.

[0048] Figure 1 This is a flow chart of a media resource processing method provided by an embodiment of the present disclosure. The method can be executed by a media resource processing device, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. Figure 1 As shown, the method includes:

[0049] S101: In response to a target list entering a target display state, target media resource contents corresponding to resource cards in the target list in the display state are acquired, and corresponding relationships between the resource cards and the target media resource contents are stored in a target storage space.

[0050] The target display state is a state in which the target list has been in a static display state for a preset time period, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number.

[0051] In the disclosed embodiments, a target list can be a list displayed on any page. The target list is used to display multiple resource cards, each of which displays media resource description information for a corresponding media resource. A user can click on a resource card to trigger the display of the corresponding media resource, which can be a video, image, text, audio, or other media resource type.

[0052] like Figure 2 FIG. 1 is a schematic diagram of a display page provided by an embodiment of the present disclosure. The display page displays a target list, which displays multiple resource cards, such as resource card 201, and the target list has a sliding function.

[0053] The target media resource content corresponding to the resource card may include the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number. Specifically, a specific value of N may be set based on demand.

[0054] In the embodiments of the present disclosure, the display status of a target list may include multiple display states, such as the target list being in a sliding display state and the target list being in a static display state. The sliding display state may refer to the target list entering the sliding display state after a user triggers a sliding operation on the target list. The target display state refers to the state in which the target list has been in a static display state for a preset period of time. Specifically, when the target list has been in the static display state for a preset period of time, it can be determined that the target list has entered the above-mentioned target display state.

[0055] In an optional implementation manner, the target list entering the target display state may be triggered by the target list switching from a single-column display state to a double-column display state.

[0056] Specifically, when an interactive operation is received to switch the target list from a single-column display state to a dual-column display state, a timer is started. If the target list does not slide within a preset time, the target list is determined to have entered the target display state. At this time, the target media resource content corresponding to the resource cards in the target list in the display state can be obtained. The single-column display state is used to represent the state in which the target list displays multiple resource cards in a single column, and the dual-column display state is used to represent the state in which the target list displays multiple resource cards in a dual column.

[0057] In another optional implementation, the target list entering the target display state may be triggered by a sliding operation on the target list.

[0058] Specifically, when a sliding operation is received for the target list, the target list is controlled to enter a sliding display state, and the timing starts when the target list enters a static display state from a sliding display state. After determining that the target list does not slide within the preset time, the target media resource content corresponding to the resource cards in the display state in the target list can be obtained.

[0059] In the embodiment of the present disclosure, when it is determined that the target list enters the target display state, the target media resource contents corresponding to the resource cards in the display state in the target list are obtained, and the correspondence between the resource cards and the target media resource contents is stored in the target storage space.

[0060] In an optional implementation, when it is determined that the target list enters the target display state, the resource identifiers corresponding to the resource cards in the display state in the target list are determined, and the target media resource content corresponding to each resource identifier is obtained from the media resource server.

[0061] Then, the resource identifier with corresponding relationship and the target media resource content are stored in the target storage space, wherein the resource identifier is used to obtain the target media resource content corresponding to the resource card, that is, the corresponding target media resource content can be obtained from the target storage space based on the resource identifier, that is, the resource identifier has the function of uniquely identifying the target media resource content.

[0062] In the embodiment of the present disclosure, the target storage space is used to pre-store resource identifiers and target media resource content that have a corresponding relationship. Specifically, the size of the target storage space can be set based on demand. The target media resource content is obtained from the media resource server.

[0063] In an optional implementation, the target storage space may be implemented by creating a management class for storing target media resource content.

[0064] S202: In response to a preset trigger operation for a target resource card among the resource cards in the display state, obtain target media resource content corresponding to the target resource card from the target storage space, and display the media resource corresponding to the target resource card based on the target media resource content.

[0065] In the disclosed embodiments, the target resource card can be any resource card currently displayed in the target list. Clicking the target resource card triggers the display of the media resource corresponding to the target resource card. Preset triggering operations for the target resource card can include any of clicking and long pressing on any resource card currently displayed in the target list, and the disclosed embodiments impose no restrictions on this.

[0066] In an embodiment of the present disclosure, when a preset trigger operation is received for a target resource card in a resource card in a display state, the target media resource content corresponding to the target resource card is obtained from the target storage space. Specifically, the corresponding target media resource content can be pulled from the target storage space based on the resource identifier of the target resource card through the player.

[0067] Based on the above content, after obtaining the target media resource content corresponding to the target resource card, the target media resource content is displayed, and in the process of displaying the target media resource content, the media resources corresponding to the target resource card are obtained, that is, the complete media resources corresponding to the target resource card are obtained, and based on the playback progress of the target media resource content, the media resources corresponding to the target resource card continue to be displayed.

[0068] As mentioned above Figure 2 In the display page shown, when a preset trigger operation for the resource card 201 is received, the target media resource content corresponding to the target resource card is obtained from the target storage space and the target media resource content is displayed, such as Figure 2 Figure B in the figure continues to display the media resources corresponding to the target resource card based on the playback progress of the target media resource content.

[0069] In the media resource processing method provided by the embodiment of the present disclosure, in response to the target list entering the target display state, the target media resource content corresponding to the resource cards in the target list in the display state is obtained, and the correspondence between the resource cards and the target media resource content is stored in the target storage space, wherein the target display state is a state in which the target list has been in a static display state for a preset time period, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number, and then in response to a preset trigger operation for the target resource card in the resource card in the display state, the target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

[0070] It can be seen that the embodiment of the present disclosure can display the first frame of the media resource to the user in a timely manner when receiving the trigger operation of the target resource card by pre-acquiring the target media resource content corresponding to the resource cards in the display state, thereby shortening the first frame time and reducing the chance of causing the user to feel a lag, thereby improving the user experience.

[0071] In actual applications, in order to avoid wasting storage resources, when the target list is switched out of the target display state, the corresponding resource cards and target media resource contents stored in the target storage space can be deleted so that there is enough space for storing the target media resource contents obtained when the target list enters the target display state next time.

[0072] Specifically, when it is determined that the target list has entered the target display state, the target media resource content corresponding to each resource card in the display state in the target list is obtained, and the corresponding relationship between the resource card and the target media resource content is stored in the target storage control. If a trigger operation is received for the target list to re-enter the sliding display state from the target display state, the corresponding resource cards and target media resource content stored in the target storage space are deleted.

[0073] Based on the above content, the embodiment of the present disclosure also supports stopping the acquisition of target media resource content when the target list starts to slide (i.e., enters the sliding display state) to avoid occupying network resources due to obtaining the target media resource content, which affects the user's sliding experience.

[0074] Specifically, when a sliding trigger operation for the target list is received, the sliding display of the target list is controlled, and it is detected whether the target media resource content corresponding to the resource cards in the display state at this time is in the loading state. If it is detected that the target media resource content is in the loading state, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

[0075] Based on the above content, in the process of displaying the target list on the page, if there is a refresh operation for the target list, that is, reloading the resource card currently displayed in the target list, in order to avoid occupying network resources due to obtaining the target media resource content, thereby affecting the user's refresh interaction experience, this embodiment of the present invention supports stopping the acquisition of the target media resource content from the media resource server when the refresh operation is triggered.

[0076] Specifically, when a refresh operation is received for the target list, the resource cards in the display state in the target list are reloaded. At this time, if it is detected that the target media resource content is currently being loaded, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

[0077] In actual applications, when the target list is refreshed, the media resources displayed on the resource cards currently displayed in the target list are updated. To avoid wasting storage resources, when the media resources displayed on the resource cards displayed in the target list are updated, the corresponding resource cards and target media resource contents stored in the target storage space can be deleted so that there is enough space to store the target media resource contents obtained when the target list enters the target display state next time.

[0078] In order to implement the above embodiments, the present disclosure also proposes a media resource processing device. Figure 3This is a structural diagram of a media resource processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 3 As shown, the device includes:

[0079] A first acquisition module 301 is configured to, in response to a target list entering a target display state, acquire target media resource content corresponding to each resource card in the target list that is in the display state, and store the correspondence between the resource cards and the target media resource content in a target storage space; wherein the target display state is a state in which the target list has been in a static display state for a preset period of time, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number;

[0080] The second acquisition module 302 is used to respond to a preset trigger operation on a target resource card in the resource cards in the display state, obtain the target media resource content corresponding to the target resource card from the target storage space, and display the media resource corresponding to the target resource card based on the target media resource content.

[0081] In an optional implementation manner, the first acquisition module is specifically configured to:

[0082] In response to the target list switching from a single-column display state to a double-column display state, the target media resource content corresponding to the resource cards in the display state in the target list is obtained; wherein, the single-column display state is a state in which the target list displays multiple resource cards in a single column, and the double-column display state is a state in which the target list displays multiple resource cards in a double column.

[0083] In an optional implementation manner, the first acquisition module is specifically configured to:

[0084] In response to the target list switching from the sliding display state to the target display state, target media resource contents corresponding to the resource cards in the display state in the target list are obtained; wherein the sliding display state is triggered by a sliding operation on the target list.

[0085] In an optional embodiment, the device further includes:

[0086] The first deleting module is configured to delete the resource cards and the target media resource content having a corresponding relationship stored in the target storage space in response to the target list entering a sliding display state.

[0087] In an optional embodiment, the device further includes:

[0088] The first stop module is used to control the sliding display of the target list in response to the sliding trigger operation for the target list, and when it is detected that the target media resource content is in a loading state, stop executing the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list.

[0089] In an optional embodiment, the device further includes:

[0090] The second stopping module is used to reload the resource cards in the display state in the target list in response to the refresh operation on the target list, and when it is detected that the target media resource content is in the loading state, stop executing the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list.

[0091] In an optional embodiment, the second acquisition module includes a first display module, specifically configured to:

[0092] The target media resource content is displayed, and after the media resource corresponding to the target resource card is acquired, the media resource is continued to be displayed based on the target media resource content.

[0093] In an optional implementation, the first acquisition module includes:

[0094] A first acquisition submodule is configured to, in response to a target list entering a target display state, determine resource identifiers corresponding to resource cards in the target list that are in a display state, and acquire target media resource content corresponding to the resource identifiers from a media resource server;

[0095] The first storage submodule is configured to store the corresponding resource identifiers and the target media resource content into a target storage space; wherein the resource identifier is used to obtain the corresponding target media resource content.

[0096] In the media resource processing device provided by the embodiment of the present disclosure, in response to the target list entering the target display state, the target media resource content corresponding to the resource cards in the target list in the display state is obtained, and the correspondence between the resource cards and the target media resource content is stored in the target storage space, wherein the target display state is a state in which the target list has been in a static display state for a preset time period, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number. Then, in response to a preset trigger operation for the target resource card in the resource card in the display state, the target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

[0097] It can be seen that the embodiment of the present disclosure can display the first frame of the media resource to the user in a timely manner when receiving the trigger operation of the target resource card by pre-acquiring the target media resource content corresponding to the resource cards in the display state, thereby shortening the first frame time and reducing the chance of causing the user to feel a lag, thereby improving the user experience.

[0098] The media resource processing device provided in the embodiments of the present disclosure can execute the media resource processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0099] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the media resource processing method in the above embodiments when executed by a processor.

[0100] The embodiment of the present disclosure further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the media resource processing method described in the embodiment of the present disclosure.

[0101] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.

[0102] The following specific reference Figure 4 , which shows a schematic structural diagram of an electronic device 400 suitable for implementing the embodiments of the present disclosure. The electronic device 400 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0103] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. Various programs and data required for the operation of the electronic device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0104] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0105] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the media resource processing method of the embodiment of the present disclosure are performed.

[0106] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0107] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0108] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0109] The computer-readable medium carries one or more programs. When executed by the electronic device, the electronic device: in response to a target list entering a target display state, obtains target media resource content corresponding to each resource card in the display state in the target list, and stores the correspondence between the resource card and the target media resource content in a target storage space; in response to a preset trigger operation for a target resource card in the display state, obtains the target media resource content corresponding to the target resource card from the target storage space, and displays the media resource corresponding to the target resource card based on the target media resource content. By pre-acquiring the target media resource content corresponding to each resource card in the display state, the embodiment of the present disclosure can promptly display the first frame of the media resource to the user when receiving the trigger operation of the target resource card, shortening the first frame time and reducing the probability of causing a lag to the user, thereby improving the user experience. The computer program code for performing the operations of the present disclosure can be written in one or more programming languages ​​or a combination thereof. The programming languages ​​include but are not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0111] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0112] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0113] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0115] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0116] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A media resource processing method, characterized in that: include: In response to the target list entering a target display state, obtaining target media resource content corresponding to each resource card in the target list that is in the display state, and storing the correspondence between the resource cards and the target media resource content in a target storage space; wherein the target display state is a state in which the target list has been in a static display state for a preset period of time, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number; In response to a preset trigger operation on a target resource card among the resource cards in the display state, target media resource content corresponding to the target resource card is obtained from the target storage space, and the media resource corresponding to the target resource card is displayed based on the target media resource content.

2. The method according to claim 1, characterized in that In response to the target list entering the target display state, obtaining target media resource contents corresponding to the resource cards in the display state in the target list includes: In response to the target list switching from a single-column display state to a double-column display state, the target media resource content corresponding to the resource cards in the display state in the target list is obtained; wherein, the single-column display state is a state in which the target list displays multiple resource cards in a single column, and the double-column display state is a state in which the target list displays multiple resource cards in a double column.

3. The method according to claim 1, characterized in that In response to the target list entering the target display state, obtaining target media resource contents corresponding to the resource cards in the display state in the target list includes: In response to the target list switching from the sliding display state to the target display state, target media resource contents corresponding to the resource cards in the display state in the target list are obtained; wherein the sliding display state is triggered by a sliding operation on the target list.

4. The method according to claim 1, wherein The method further comprises: In response to the target list entering the sliding display state, the resource cards and the target media resource content having a corresponding relationship stored in the target storage space are deleted.

5. The method according to claim 1, wherein The method further comprises: In response to a sliding trigger operation on the target list, the sliding display of the target list is controlled, and when it is detected that the target media resource content is in a loading state, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

6. The method according to claim 1, characterized in that The method further comprises: In response to a refresh operation on the target list, the resource cards in the display state in the target list are reloaded, and when it is detected that the target media resource content is in the loading state, the step of obtaining the target media resource content corresponding to the resource cards in the display state in the target list is stopped.

7. The method according to claim 1, characterized in that The displaying of the media resource corresponding to the target resource card based on the target media resource content includes: The target media resource content is displayed, and after the media resource corresponding to the target resource card is acquired, the media resource is continued to be displayed based on the target media resource content.

8. The method according to claim 1, characterized in that In response to the target list entering the target display state, obtaining target media resource contents corresponding to the resource cards in the display state in the target list, and storing the correspondence between the resource cards and the target media resource contents in the target storage space, includes: In response to the target list entering the target display state, determining resource identifiers corresponding to the resource cards in the display state in the target list, and obtaining target media resource content corresponding to the resource identifiers from the media resource server; The resource identifier and the target media resource content having a corresponding relationship are stored in a target storage space; wherein the resource identifier is used to obtain the corresponding target media resource content.

9. A media resource processing device, characterized in that: The device comprises: A first acquisition module is configured to, in response to a target list entering a target display state, acquire target media resource content corresponding to each resource card in the target list that is in the display state, and store the correspondence between the resource cards and the target media resource content in a target storage space; wherein the target display state is a state in which the target list has been in a static display state for a preset period of time, and the target media resource content includes the first N frames of resource content of the media resource corresponding to the resource card, where N is a preset natural number; The second acquisition module is used to respond to a preset trigger operation for a target resource card in the resource cards in the display state, obtain the target media resource content corresponding to the target resource card from the target storage space, and display the media resource corresponding to the target resource card based on the target media resource content.

10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the media resource processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: The storage medium stores a computer program / instruction, and when the computer program / instruction is executed by the processor, the media resource processing method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that The computer program product comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 8 is implemented.