Media resource processing method and device, equipment and storage medium

By using a preset cache pool in media resource processing to obtain and display the media resource description information of the next adjacent location, the problem of lag when users quickly scroll down is solved, and the user experience is improved.

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

Patent Information

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

AI Technical Summary

Technical Problem

When users quickly scroll down after clicking on a media resource card, the page may freeze, resulting in a poor user experience.

Method used

In response to the triggering operation of the target object, the second page is displayed and the timing is started. If the timing has not reached the preset duration when the target interactive operation is received, the media resource description information is obtained from the preset cache pool, and its display position is determined to be the next adjacent position, and the information in the cache pool is used to switch the display of the media resources.

Benefits of technology

It reduces the probability of lag and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120595974A_ABST
    Figure CN120595974A_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 preset triggering operation for a target object in a target list on a first page, displaying a second page, starting timing, and when a target interaction operation acting on the second page is received, displaying the second page; and when it is determined that the timing is within a preset duration, obtaining media resource description information of the first media resource from a preset cache pool, determining a first display position in the target media resource stream as a display position of the first media resource, and displaying the media resource description information of the first media resource on a second page. According to the embodiment of the invention, in the preset duration after the second page is triggered and displayed based on the target object in the target list, if the switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource is utilized to display the media resource; and the occurrence probability of abnormal phenomena such as lagging is reduced.
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, after a user clicks on a card in a list (such as a video card) to trigger entry into the media resource stream corresponding to the card, once the user immediately triggers a quick scrolling operation on the media resource stream, abnormal phenomena such as freezing may occur, resulting in a poor user experience when triggering operations such as quick scrolling. Summary of the Invention

[0003] 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.

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

[0005] In response to a preset trigger operation for a target object in the target list on the first page, a second page is displayed and a timer is started; wherein the second page displays media resources corresponding to the target object;

[0006] Upon receiving a target interactive operation on the second page, if it is determined that the timing has not reached a preset duration, obtaining media resource description information of the first media resource from a preset cache pool, and determining a first display position in the target media resource stream as the display position of the first media resource; wherein the first display position is the next display position adjacent to the display position of the media resource corresponding to the target object, and the target interactive operation is used to trigger switching display of the media resource in the target media resource stream;

[0007] The media resource description information of the first media resource is displayed on the second page.

[0008] In an optional implementation, upon receiving the target interactive operation on the second page, if it is determined that the timing has not reached a preset duration, obtaining media resource description information of the first media resource from a preset cache pool, and determining the first display position in the target media resource stream as the display position of the first media resource includes:

[0009] Upon receiving the target interactive operation on the second page, if it is determined that the timer has not reached the preset duration, determining whether the media resource description information of the second media resource in the target media resource stream has been loaded; wherein the second media resource is the first media resource in the target media resource stream that is located after the media resource corresponding to the target object;

[0010] If it is determined that the media resource description information of the second media resource has not been loaded, the media resource description information of the first media resource is obtained from the preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource.

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

[0012] In response to the completion of loading the media resource description information of the second media resource in the target media resource stream, obtaining a display status of the first media resource;

[0013] If it is determined that the display status of the first media resource is not displayed, the first media resource is removed from the target media resource stream.

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

[0015] If it is determined that the display status of the first media resource is displayed, the next adjacent display position of the first media resource in the target media resource stream is determined as the display position of the second media resource.

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

[0017] If it is determined that the display status of the first media resource is the displayed status, the first media resource is removed from the preset cache pool.

[0018] In an optional embodiment, before the display of the second page and the start of the timer in response to a preset triggering operation on a target object in the target list on the first page, the method further includes:

[0019] In response to a display triggering operation on the first page target list, media resource description information of a first preset number of media resources is obtained, and the media resource description information of the media resources is stored in the preset cache pool.

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

[0021] When it is determined that the number of media resources in the preset buffer pool is less than a second preset number, a request for obtaining media resource description information is sent.

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

[0023] A first display module is configured to display a second page and start timing in response to a preset trigger operation for a target object in a target list on the first page; wherein the second page displays media resources corresponding to the target object;

[0024] A first acquisition module is configured to, upon receiving a target interactive operation on the second page, obtain media resource description information of the first media resource from a preset cache pool if it is determined that the timing has not reached a preset duration, and determine a first display position in the target media resource stream as the display position of the first media resource; wherein the first display position is the next display position adjacent to the display position of the target media resource corresponding to the target object, and the target interactive operation is used to trigger a switching display of the media resource in the target media resource stream;

[0025] The second display module is configured to display the media resource description information of the first media resource on the second page.

[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 a preset trigger operation for a target object in a target list on a first page, a second page is displayed and timing is started, wherein the second page displays media resources corresponding to the object in the target list, and when a target interaction operation acting on the second page is received, if it is determined that the above timing has not reached a preset duration, the media resource description information of the first media resource is obtained from a preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource, wherein the first display position is the next adjacent display position of the display position of the media resource corresponding to the target object, and the target interaction operation is used to trigger the switching display of the media resources in the target media resource stream, and then the media resource description information of the first media resource is displayed on the second page.

[0031] In an embodiment of the present disclosure, within a preset time period after the display of the second page is triggered based on the target object in the target list, if a switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource in the preset cache pool is used to display the media resource, thereby reducing the probability of abnormal phenomena such as freezes and 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 first page provided in an embodiment of the present disclosure;

[0035] Figure 3 A schematic diagram of a second page provided in an embodiment of the present disclosure;

[0036] Figure 4 A schematic diagram of media resource processing provided by an embodiment of the present disclosure;

[0037] Figure 5 A schematic diagram of another media resource processing provided by an embodiment of the present disclosure;

[0038] Figure 6 A schematic diagram of another media resource processing provided by an embodiment of the present disclosure;

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

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

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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".

[0046] 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.

[0047] In related technologies, when a user clicks on a video card in a list, triggering the entry into the media resource stream corresponding to the video card, once the user immediately triggers a fast scrolling operation on the media resource stream, abnormal phenomena such as freezing will occur, causing the user to be unable to browse the next media resource during the process of triggering the fast scrolling operation, resulting in a poor user experience.

[0048] To this end, an embodiment of the present disclosure provides a media resource processing method. Specifically, in response to a preset trigger operation for a target object in a target list on a first page, a second page is displayed and timing is started, wherein the second page displays media resources corresponding to the object in the target list. When a target interaction operation acting on the second page is received, if it is determined that the above timing has not reached a preset duration, the media resource description information of the first media resource is obtained from a preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource, wherein the first display position is the next adjacent display position of the display position of the media resource corresponding to the target object, and the target interaction operation is used to trigger the switching display of the media resource in the target media resource stream, and then the media resource description information of the first media resource is displayed on the second page.

[0049] In an embodiment of the present disclosure, within a preset time period after the display of the second page is triggered based on the target object in the target list, if a switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource in the preset cache pool is used to display the media resource, thereby reducing the probability of abnormal phenomena such as freezes and improving the user experience.

[0050] 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.

[0051] 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:

[0052] S101: In response to a preset triggering operation on a target object in a target list on a first page, a second page is displayed and timing is started.

[0053] The second page is used to display the media resource stream corresponding to the object in the target list.

[0054] In an embodiment of the present disclosure, a target list is displayed on the first page. The target list displays multiple objects. The objects displayed in the target list can be resource cards, etc., which are used to trigger the display of corresponding media resources. For example, they can be video cards, which are used to trigger the playback of corresponding videos. The target object can be any one of the multiple objects in the target list. The media resources corresponding to the resource cards can specifically be media content such as videos, images, and audio.

[0055] like Figure 2 FIG. 2 is a schematic diagram of a first page provided by an embodiment of the present disclosure. The first page displays a target list, which displays multiple video cards, wherein the target object 201 is one of the multiple video cards.

[0056] In the embodiment of the present disclosure, the preset trigger operation for the target object in the target list may include a trigger operation such as clicking on the target object in the target list.

[0057] In an embodiment of the present disclosure, when a preset trigger operation is received for a target object in a target list, a second page is displayed, and media resources corresponding to the target object are displayed on the second page, and a timer is started. The second page is used to display the target media resource stream to which the media resources corresponding to the target object belong. The media resources in the target media resource stream can be determined based on the media resources corresponding to the target object.

[0058] As mentioned above Figure 2 In the first page shown, when a preset trigger operation for the target object 201 is received, the second page is displayed and the timer starts. Figure 3 , which is a schematic diagram of a second page provided by an embodiment of the present disclosure. At this time, the second page displays media resources corresponding to the target object.

[0059] S102: When a target interactive operation acting on the second page is received, if it is determined that the timing has not reached a preset duration, media resource description information of the first media resource is obtained from a preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource.

[0060] The first display position is a display position adjacent to the display position of the media resource corresponding to the target object, and the target interaction operation is used to trigger switching display of the media resource in the target media resource stream.

[0061] In the disclosed embodiment, the preset duration can be a pre-set duration based on demand and is used to determine whether a target interactive operation occurs within the preset duration after triggering the display of the second page. If the target interactive operation occurs, the media resource description information of the first media resource is obtained from the preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource, that is, the first media resource is displayed at the next adjacent position of the media resource corresponding to the target object. The start timer after the display of the second page is used to obtain the duration from the triggering of the display of the second page to the first target interactive operation on the second page.

[0062] The target interaction operation may include a sliding operation on the target list.

[0063] In an embodiment of the present disclosure, a preset cache pool is used to store media resource description information of at least one media resource pre-acquired from a media resource server, wherein the first media resource can be any media resource in the preset cache pool, and the media resource description information can specifically include text description information, author information, like information, collection information, and other relevant information for displaying the cover of the media resource.

[0064] As mentioned above Figure 3 The second page shown in the figure, during the process of displaying the media resources corresponding to the target object on the second page, if a target interactive operation acting on the second page is received, the timing is started from the time when the second page is triggered to be displayed, and the timing duration until the target interactive operation is received is determined. If it is determined that the timing duration does not reach the preset duration, it indicates that an interactive operation such as a rapid scrolling has occurred. To this end, it can be first determined whether the media resource description information of the second media resource in the target media resource stream is loaded. The second media resource is the first media resource in the target media resource stream that is located after the media resource corresponding to the target object, that is, the second media resource in the target media resource stream.

[0065] If it is determined that the media resource description information for the second media resource in the target media resource stream has not been fully loaded, the media resource description information for the first media resource is retrieved from the preset cache pool, and the first display position in the target media resource stream is determined as the display position for the first media resource. In this case, the first media resource is the next media resource adjacent to the media resource corresponding to the target object. In other words, if the media resource description information for the second media resource is not successfully retrieved, the media resource description information for the first media resource is preferentially retrieved from the preset cache pool and inserted into the first display position in the target media resource stream, replacing the second media resource for display, thereby reducing the likelihood of lag and other issues.

[0066] In actual applications, after obtaining the media resource description information of the first media resource from the preset cache pool and determining the first display position in the target media resource stream as the display position of the first media resource, in order to support the user to browse the various media resources in the target media resource stream, the embodiment of the present disclosure processes the first media resource in the target media resource stream upon receiving a message indicating that the loading of the media resource description information for the second media resource in the target media resource stream is complete.

[0067] Specifically, upon receiving a message indicating that loading of the media resource description information for the second media resource in the target media resource stream is complete, if it is determined that the display status of the first media resource in the target media resource stream is not displayed, that is, the user has not triggered playback of the first media resource, the first media resource is removed from the target media resource stream, and the loaded second media resource is spliced ​​to the next position after the media resource corresponding to the target object in the target media resource stream.

[0068] Upon receiving a message indicating that loading of the media resource description information for the second media resource in the target media resource stream is complete, if it is determined that the display status of the first media resource is displayed, that is, the user has triggered playback of the first media resource, then the next display position adjacent to the first media resource in the target media resource stream is determined as the display position of the second media resource. In other words, the second media resource is spliced ​​at the next position of the first media resource in the target media resource stream.

[0069] In addition, when a message is received indicating that the loading of the media resource description information for the second media resource in the target media resource stream is complete, if it is determined that the display status of the first media resource is already displayed, the first media resource can also be removed from the preset cache pool to avoid repeatedly displaying the content of the first media resource to the user, thereby reducing the user experience.

[0070] The media resource processing method provided by the embodiment of the present disclosure specifically displays a second page and starts timing in response to a preset trigger operation for a target object in a target list on a first page, wherein the second page displays media resources corresponding to the object in the target list, and upon receiving a target interactive operation acting on the second page, if it is determined that the timing has not reached a preset duration, obtains media resource description information of the first media resource from a preset cache pool, and determines a first display position in the target media resource stream as the display position of the first media resource, wherein the first display position is an adjacent next display position of the display position of the media resource corresponding to the target object, and the target interactive operation is used to trigger a switching display of the media resource in the target media resource stream, and then displays the media resource description information of the first media resource on the second page.

[0071] In an embodiment of the present disclosure, within a preset time period after the display of the second page is triggered based on the target object in the target list, if a switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource in the preset cache pool is used to display the media resource, thereby reducing the probability of abnormal phenomena such as freezes and improving the user experience.

[0072] In actual applications, when a preset trigger operation for a target object on the first page is received, the second page is displayed, and before the timing starts, the media resource description information of the media resource is obtained and stored in a preset cache pool.

[0073] In an optional embodiment, when a display trigger operation for a target list on a first page is received, a request is sent to a server to obtain media resource description information for a first preset number of media resources. After receiving the request, the server sends the media resource description information for the first preset number of media resources to a preset cache pool. After obtaining the media resource description information for the first preset number of media resources, the server stores the media resource description information for the media resources in the preset cache pool. The first preset number is used to represent the number of requests for media resources.

[0074] By storing the media resource description information of the first preset amount of media resources in the preset cache pool, it can be ensured that the media resource description information of the media resources is successfully pulled from the preset cache pool.

[0075] In actual applications, in order to further ensure that the media resource description information of the media resource is successfully pulled from the preset cache pool, the embodiment of the present disclosure also sets a second preset number. Specifically, when it is determined that the number of media resources in the preset cache pool is less than the second preset number, a request for obtaining the media resource description information is sent to the server. That is, when the number of media resources in the preset cache pool is lower than the second preset number, a request for obtaining the media resource description information is initiated again.

[0076] In actual applications, to ensure that the latest media resource description information of the media resource can be obtained from the preset buffer pool, the embodiment of the present disclosure also sets a timed update logic for the preset buffer pool. Specifically, the media resource in the preset buffer pool can be re-acquired at regular intervals.

[0077] In the embodiment of the present disclosure, the media resources in the preset cache pool are updated periodically so as to obtain the latest media resource description information of the media resources from the preset cache pool.

[0078] In order to facilitate understanding of the media resource processing method provided by the present disclosure, the embodiments of the present disclosure will introduce the media resource processing method as a whole. Figure 4-6 , which is a media resource processing diagram provided in an embodiment of the present disclosure.

[0079] First, when a display trigger operation for the target list on the first page is received, a request is sent to the server to obtain the media resource description information of a first preset number of media resources. After obtaining the media resource description information of the first preset number of media resources, the media resource description information of the media resource is stored in the preset cache pool 401.

[0080] A target list is displayed on a first page 402, containing multiple video cards, with target object A. When a preset trigger operation is received for a target object in the target list, a second page is displayed, and the media resources corresponding to the target object are displayed on the second page, and a timer begins. The second page is used to display the target media resource stream to which the media resources corresponding to the target object belong. The media resources in the target media resource stream can be determined based on the media resources corresponding to the target object.

[0081] Then, when a target interactive operation acting on the second page is received, it is determined whether the timing exceeds the preset time length. If it is determined that the timing has not reached the preset time length, it is determined whether the media resource description information of the second media resource in the target media resource stream is loaded. If the media resource description information of the second media resource is loaded, the second media resource is displayed at the next adjacent position of the media resource display position corresponding to the target object in the target media resource stream.

[0082] If it is determined that the second media resource in the target media resource stream has not been loaded, the media resource description information of the first media resource B is obtained from the preset cache pool 401, and the first media resource is displayed at the next adjacent position of the media resource display position corresponding to the target object in the target media resource stream (e.g., Figure 4 Schematic diagram of media resource processing shown in Figure 1).

[0083] Then, when receiving a message indicating that the loading of the media resource description information of the second media resource in the target media resource stream is complete, the display status of the first media resource is obtained. If it is determined that the first media resource is not displayed, the first media resource is removed from the target media resource stream, and the loaded second media resource is spliced ​​to the next position after the media resource corresponding to the target object in the target media resource stream (such as Figure 5 Media resource processing diagram shown in FIG);

[0084] If the display state of the first media resource is determined to be displayed, the next display position adjacent to the first media resource in the target media resource stream is determined as the display position of the second media resource, and the first media resource is removed from the preset cache pool (e.g., Figure 6 Schematic diagram of media resource processing shown in Figure 1).

[0085] In order to implement the above embodiments, the present disclosure also proposes a media resource processing device. Figure 7 This 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 7 As shown, the device includes:

[0086] The first display module 701 is configured to display a second page and start timing in response to a preset trigger operation for a target object in a target list on the first page; wherein the second page displays media resources corresponding to the target object;

[0087] The first acquisition module 702 is configured to, upon receiving a target interactive operation on the second page, obtain media resource description information of the first media resource from a preset cache pool if it is determined that the timer has not reached a preset duration, and determine a first display position in the target media resource stream as the display position of the first media resource; wherein the first display position is the next display position adjacent to the display position of the media resource corresponding to the target object, and the target interactive operation is used to trigger a switching display of the media resource in the target media resource stream;

[0088] The second display module 703 is configured to display the media resource description information of the first media resource on the second page.

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

[0090] a first determining submodule configured to, upon receiving a target interactive operation on the second page, determine whether the media resource description information of a second media resource in the target media resource stream has been loaded if it is determined that the timing has not reached a preset duration; wherein the second media resource is the first media resource in the target media resource stream that is located after the media resource corresponding to the target object;

[0091] The first acquisition submodule is configured to, when determining that the media resource description information of the second media resource has not been loaded, acquire the media resource description information of the first media resource from a preset cache pool, and determine the first display position in the target media resource stream as the display position of the first media resource.

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

[0093] a second acquiring module, configured to acquire a display status of the first media resource in response to completion of loading of the media resource description information of the second media resource in the target media resource stream;

[0094] The first removing module is configured to remove the first media resource from the target media resource stream when determining that the display status of the first media resource is a non-displayed state.

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

[0096] The first determining module is configured to determine the next adjacent display position of the first media resource in the target media resource stream as the display position of the second media resource if it is determined that the display status of the first media resource is displayed.

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

[0098] The first removing module is configured to remove the first media resource from the preset cache pool when determining that the display status of the first media resource is the displayed status.

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

[0100] The third acquisition module is used to obtain media resource description information of a first preset number of media resources in response to a display trigger operation on the target list on the first page, and store the media resource description information of the media resources in the preset cache pool.

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

[0102] The first sending module is configured to send an acquisition request for media resource description information when it is determined that the number of media resources in the preset buffer pool is less than a second preset number.

[0103] In the media resource processing device provided by the embodiment of the present disclosure, in response to a preset trigger operation for a target object in a target list on a first page, a second page is displayed and timing is started, wherein the media resources corresponding to the objects in the target list are displayed on the second page, and when a target interaction operation acting on the second page is received, if it is determined that the above timing has not reached the preset duration, the media resource description information of the first media resource is obtained from the preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource, wherein the first display position is the next adjacent display position of the display position of the media resource corresponding to the target object, and the target interaction operation is used to trigger the switching display of the media resources in the target media resource stream, and then the media resource description information of the first media resource is displayed on the second page.

[0104] In an embodiment of the present disclosure, within a preset time period after the display of the second page is triggered based on the target object in the target list, if a switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource in the preset cache pool is used to display the media resource, thereby reducing the probability of abnormal phenomena such as freezes and improving the user experience.

[0105] 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.

[0106] 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.

[0107] 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.

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

[0109] The following specific reference Figure 8 , which shows a schematic structural diagram of an electronic device 800 suitable for implementing the embodiments of the present disclosure. The electronic device 800 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 8 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.

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

[0111] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 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.

[0112] 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 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the media resource processing method of the embodiment of the present disclosure are performed.

[0113] 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.

[0114] 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.

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

[0116] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to a preset trigger operation for a target object in a target list on the first page, displays a second page and starts a timer, wherein the second page displays media resources corresponding to the object in the target list. When a target interaction operation is received on the second page, if it is determined that the timer has not reached a preset time, the electronic device obtains media resource description information of the first media resource from a preset buffer pool, and determines a first display position in the target media resource stream as the display position of the first media resource, wherein the first display position is the next display position adjacent to the display position of the media resource corresponding to the target object. The target interaction operation is used to trigger the switching display of the media resource in the target media resource stream, and then displays the media resource description information of the first media resource on the second page. In the embodiment of the present disclosure, within the preset time after the display of the second page is triggered based on the target object in the target list, if a switching display interaction operation for the media resource on the second page is received, the media resource description information of the first media resource in the preset buffer pool is used to display the media resource, thereby reducing the probability of abnormal phenomena such as freezes and improving the user experience. Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving 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).

[0117] 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.

[0118] 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.

[0119] 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.

[0120] 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.

[0121] 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 encompasses 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 the present disclosure.

[0122] 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.

[0123] 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 a preset trigger operation for a target object in the target list on the first page, a second page is displayed and a timer is started; wherein the second page displays media resources corresponding to the target object; Upon receiving a target interactive operation on the second page, if it is determined that the timing has not reached a preset duration, obtaining media resource description information of the first media resource from a preset cache pool, and determining a first display position in the target media resource stream as the display position of the first media resource; wherein the first display position is the next display position adjacent to the display position of the media resource corresponding to the target object, and the target interactive operation is used to trigger switching display of the media resource in the target media resource stream; The media resource description information of the first media resource is displayed on the second page.

2. The method according to claim 1, characterized in that The method further comprises: upon receiving the target interactive operation on the second page, if it is determined that the timing has not reached a preset duration, obtaining media resource description information of the first media resource from a preset cache pool, and determining the first display position in the target media resource stream as the display position of the first media resource. Upon receiving the target interactive operation on the second page, if it is determined that the timer has not reached the preset duration, determining whether the media resource description information of the second media resource in the target media resource stream has been loaded; wherein the second media resource is the first media resource in the target media resource stream that is located after the media resource corresponding to the target object; If it is determined that the media resource description information of the second media resource has not been loaded, the media resource description information of the first media resource is obtained from the preset cache pool, and the first display position in the target media resource stream is determined as the display position of the first media resource.

3. The method according to claim 2, characterized in that The method further comprises: In response to the completion of loading the media resource description information of the second media resource in the target media resource stream, obtaining a display status of the first media resource; If it is determined that the display status of the first media resource is not displayed, the first media resource is removed from the target media resource stream.

4. The method according to claim 3, characterized in that The method further comprises: If it is determined that the display status of the first media resource is displayed, the next adjacent display position of the first media resource in the target media resource stream is determined as the display position of the second media resource.

5. The method according to claim 3 or 4, characterized in that The method further comprises: If it is determined that the display status of the first media resource is the displayed status, the first media resource is removed from the preset cache pool.

6. The method according to claim 1, wherein Before the step of displaying the second page and starting the timing in response to a preset triggering operation on a target object in the target list on the first page, the method further includes: In response to a display triggering operation on the target list on the first page, media resource description information of a first preset number of media resources is obtained, and the media resource description information of the media resources is stored in the preset cache pool.

7. The method according to claim 1, characterized in that The method further comprises: When it is determined that the number of media resources in the preset buffer pool is less than a second preset number, a request for obtaining media resource description information is sent.

8. A media resource processing device, characterized in that: The device comprises: A first display module is configured to display a second page and start timing in response to a preset trigger operation for a target object in a target list on the first page; wherein the second page displays media resources corresponding to the target object; A first acquisition module is configured to, upon receiving a target interactive operation on the second page, obtain media resource description information of the first media resource from a preset cache pool if it is determined that the timing has not reached a preset duration, and determine a first display position in the target media resource stream as the display position of the first media resource; wherein the first display position is the next display position adjacent to the display position of the media resource corresponding to the target object, and the target interactive operation is used to trigger a switching display of the media resource in the target media resource stream; The second display module is configured to display the media resource description information of the first media resource on the second page.

9. 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 instructions to implement the media resource processing method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the media resource processing method according to any one of claims 1 to 7.

11. 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 7 is implemented.