Media content caching method, device, computing device and storage medium

By presenting priority cache icons and priority cache media content when the network status is abnormal, the problems of network resource waste and degraded user experience are solved, and efficient use of network resources and improved user interaction are achieved.

CN115795190BActive Publication Date: 2025-10-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111048634.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2025-10-03
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

When the network status is poor, the media content playback system frequently switches media content, resulting in waste of network resources and a degradation of user viewing experience. The existing preloading mechanism cannot effectively solve this problem.

Method used

When the network status is abnormal, a priority cache icon is displayed to indicate that the relevant media content is being cached first, and cache progress information is provided. Network resources are concentrated to prioritize caching of limited media content, and the caching process is optimized by monitoring network status and interactive operations.

Benefits of technology

It improves the efficiency of network resource utilization, ensures that users can quickly watch priority cached media content during network abnormalities, and enhances user experience and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115795190B_ABST
    Figure CN115795190B_ABST
Patent Text Reader

Abstract

The present application provides a media content caching method, a media content caching device, a computing device, and a computer-readable storage medium. The media content caching method includes: monitoring the network status of the current network; and when it is detected that the network status of the current network is abnormal, in response to receiving a content switching operation for the media content being presented in the content playback area using the current network, stopping the presentation of the media content in the content playback area and presenting a priority cache icon associated with the media content, wherein the priority cache icon associated with the media content indicates that the media content is being cached first and includes information indicating the caching progress of the media content. This media content caching method helps to improve the utilization efficiency of network resources during periods of abnormal network status and ensures a good video user viewing experience and interactive experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a media content caching method, a media content caching apparatus, a computing device, and a computer-readable storage medium. Background Art

[0002] With the development of computer networks, people are increasingly accustomed to watching various media content online through terminal devices, such as video, audio, and short videos. In particular, for continuously played media content such as short videos, in order to achieve a smoother playback effect, a preloading mechanism is usually used. That is, while the current media content is playing, the next (or several) media contents are pre-cached or loaded to provide users with a good viewing experience. However, when the network status is poor, such as when the network signal is weak or there is network jitter, after all the pre-cached media content has been played, the media content playback may become stuck or even unplayable. In this case, the user may frequently try to switch to play different media content, which will cause the media content playback system to try to load or cache a large amount of media content in a short period of time, resulting in a waste of network resources and further reducing the utilization efficiency of the already insufficient network resources. At the same time, this can also have a very negative impact on the user's viewing experience. For example, it may cause the user to be unable to watch any media content normally during the period of poor network status. Summary of the Invention

[0003] In view of this, the present application provides a method, apparatus, computing device, and storage medium for caching media content, which can alleviate, mitigate, or even eliminate the above-mentioned problems.

[0004] According to one aspect of the present application, a media content caching method is provided, comprising: monitoring the network status of a current network; when it is detected that the network status of the current network is abnormal, in response to receiving a content switching operation for media content being presented in a content playback area using the current network, ceasing to present the media content in the content playback area, and presenting a priority caching icon associated with the media content, wherein the priority caching icon associated with the media content indicates that the media content is being cached with priority and includes information indicating the caching progress of the media content.

[0005] In some embodiments, presenting the priority cache icon associated with the media content includes: directly presenting the priority cache icon associated with the media content when the number of priority cache icons currently presented is lower than the priority cache number threshold; or replacing one of the currently presented priority cache icons with the priority cache icon associated with the media content when the number of priority cache icons currently presented is equal to the priority cache number threshold.

[0006] In some embodiments, presenting a priority cache icon associated with the media content includes at least one of the following: presenting a priority cache icon associated with the media content, so that the relative position of the priority cache icon associated with the media content and other priority cache icons that have been presented represents the relative priority of the media content and the media content corresponding to the other priority cache icons when priority caching; presenting a priority cache icon associated with the media content, so that the relative size of the priority cache icon associated with the media content and other priority cache icons that have been presented represents the relative priority of the media content and the media content corresponding to the other priority cache icons when priority caching.

[0007] In some embodiments, the method also includes at least one of the following: in response to a position swap operation for two presented priority cache icons being triggered, swapping the positions of the two priority cache icons and swapping the relative priorities of the media contents corresponding to the two priority cache icons during priority caching; in response to a delete operation for a presented priority cache icon being triggered, no longer presenting the priority cache icon and stopping priority caching of the media content corresponding to the priority cache icon; in response to a later presentation operation for a presented priority cache icon being triggered, no longer presenting the priority cache icon, adding the media content corresponding to the priority cache icon to a later presentation list and stopping priority caching of the media content, wherein the later presentation list is a list stored in the background and can be presented in response to a call-out operation for the later presentation list.

[0008] In some embodiments, the method also includes: receiving a drag action for a presented priority cache icon; in response to receiving the drag action, presenting a delete option area and a later presentation option area; in response to the priority cache icon being dragged to the position of another presented priority cache icon, triggering a position exchange operation for the priority cache icon and the other priority cache icon; in response to the priority cache icon being dragged to the delete option area, triggering a delete operation for the priority cache icon; in response to the priority cache icon being dragged to the later presentation option area, triggering a later presentation operation for the priority cache icon.

[0009] In some embodiments, the method further includes: after monitoring that the network status of the current network recovers from abnormality to normal, and when the later presentation list is not empty, caching the media content in the later presentation list when the network is idle.

[0010] In some embodiments, the method further includes: in response to triggering an information viewing operation for a priority cache icon, presenting descriptive information related to the media content corresponding to the priority cache icon and / or a follow-up option for the publisher of the media content.

[0011] In some embodiments, the method further includes: in response to a playback operation for a priority cache icon being triggered, and the cache progress indication in the priority cache icon indicating that the corresponding media content has been cached, presenting the media content in the content playback area; after the media content has been presented, the priority cache icon is no longer presented.

[0012] In some embodiments, the presented priority cache icon is accommodated in a priority cache icon area, and the method further includes: in response to a deletion operation on the priority cache icon area being triggered, no longer presenting the priority cache icon area within a predetermined period of time.

[0013] In some embodiments, the method further includes: in response to receiving a sliding action on the priority cache icon area, presenting an option for deleting the priority cache icon area; in response to the option for deleting the priority cache icon area being selected, triggering a deletion operation.

[0014] In some embodiments, the method further includes: utilizing a child thread to asynchronously draw the priority cache icon area so as to present the priority cache icon area when the network status is abnormal, and accommodating the presented priority cache icon in the priority cache icon area.

[0015] In some embodiments, the method also includes: when it is monitored that the network status of the current network has recovered from abnormality to normal and no abnormality occurs again within a predetermined time length, the priority cache icon is no longer presented, and the media content corresponding to the priority cache icon previously presented is played in sequence according to the priority order during priority caching.

[0016] In some embodiments, monitoring the current network status includes: adding the most recently occurring network requests to a monitoring queue in chronological order, the monitoring queue being used to accommodate a preset number of network requests; counting the success rate and delay of the network requests in the monitoring queue; when the counted success rate is less than or equal to a threshold success rate, or the counted delay indicates that the proportion of network requests with a delay greater than a delay threshold is greater than or equal to a threshold proportion, it is determined that the current network status is monitored to be abnormal.

[0017] In some embodiments, monitoring the current network status also includes: when it is detected that the current network status is abnormal, when the counted success rate is greater than the threshold success rate, and the counted delay situation indicates that the proportion of network requests with a delay less than or equal to the delay threshold is greater than or equal to the threshold proportion, it is determined that the current network status has been monitored to recover from abnormal to normal.

[0018] According to another aspect of the present application, a media content caching device is provided, including: a monitoring module, configured to monitor the network status of a current network; a presentation module, configured to, in response to receiving a content switching operation for media content being presented in a content playback area using the current network when it is detected that the network status of the current network is abnormal, stop presenting the media content in the content playback area and present a priority cache icon associated with the media content, wherein the priority cache icon associated with the media content indicates that the media content is being cached with priority and includes information indicating the caching progress of the media content.

[0019] According to another aspect of the present application, a computing device is provided, comprising: a memory configured to store computer-executable instructions; and a processor configured to perform the method according to various embodiments of the aforementioned aspects when the computer-executable instructions are executed by the processor.

[0020] According to another aspect of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed, the methods according to various embodiments of the aforementioned aspects are executed.

[0021] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, which implement the steps of the method described in the above aspects when executed by a processor.

[0022] The media content caching method provided by this application allows, in the event of an abnormal network state, when a user attempts to switch the presented media content, the media content can be added as a priority cached media content and an associated priority cache icon can be presented to indicate to the user that the media content is being cached and to inform the user of the caching progress of the media content. This mechanism allows for the priority caching of a limited number of media contents in the event of an abnormal network state, thereby concentrating limited network resources on caching one or a few media contents. This can avoid the waste of network resources scattered across attempts to cache a large number of different media contents, thereby helping to improve the utilization efficiency of network resources. Furthermore, during periods of abnormal network state, this priority caching mechanism allows one or a few media contents to be cached as quickly as possible, allowing users to fully view these prioritized cached media contents. This helps to enhance the user viewing experience during periods of abnormal network state. In addition, users can always understand the loading progress of the prioritized cached media content, easily find the media content being loaded, and select which media content to watch based on the loading progress, which also helps to enhance the user interaction experience during periods of abnormal network state.

[0023] These and other aspects of the application will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0025] Figure 1 The following schematically illustrates an example scenario in which the technical solution provided by this application can be applied;

[0026] Figure 2 Schematically illustrates an example flow chart of a media content caching method according to some embodiments of the present application;

[0027] Figure 3 Schematically illustrates an example flow chart of a method for monitoring network status according to some embodiments of the present application;

[0028] Figure 4A Schematically illustrates an example diagram of a monitoring queue for monitoring network status according to some embodiments of the present application;

[0029] Figure 4B Schematically shows an example block diagram of a network monitor for monitoring network status according to some embodiments of the present application;

[0030] Figure 5 Schematically illustrates an example interface diagram for presenting a priority cache icon according to some embodiments of the present application;

[0031] Figure 6 Schematically illustrates an example block diagram of a priority buffer for media content according to some embodiments of the present application;

[0032] Figure 7 Schematically illustrates an example flow chart related to drawing and presenting a priority cache icon area according to some embodiments of the present application;

[0033] Figure 8A and 8B Schematically illustrates a process of exchanging priority cache icons according to some embodiments of the present application;

[0034] Figure 9 Schematically illustrates the process of deleting and later presenting a priority cache icon according to some embodiments of the present application;

[0035] Figure 10 Schematically illustrates an example interface for presenting a list to be presented later according to some embodiments of the present application;

[0036] Figure 11Schematically illustrates a process of viewing a priority cache icon according to some embodiments of the present application;

[0037] Figure 12 Schematically illustrates a process of deleting a priority cache icon area according to some embodiments of the present application;

[0038] Figure 13 Schematically shows an example block diagram of a media content caching device according to some embodiments of the present application;

[0039] Figure 14 An example block diagram of an electronic device according to some embodiments of the present application is schematically shown. DETAILED DESCRIPTION

[0040] Figure 1 An example scenario 100 to which the technical solution provided by this application can be applied is schematically shown. Figure 1 As shown, the scenario 100 may include a server 110 and a terminal device 120 , which may communicate via a network 140 .

[0041] In the present application, the server 110 can be a single server or a server cluster, on which an application for executing the media content caching method can be run and related data can be stored. Alternatively, the server 110 can also run other applications and store other data. For example, the server 110 can include multiple virtual hosts to run different applications and provide different services.

[0042] In this application, the terminal device 120 can be various types of devices, such as mobile phones, tablet computers, laptop computers, wearable devices such as smart watches, and in-vehicle devices. A client can be deployed on the terminal device 120, which can be used to present media content and provide other functions for interacting with the user. The client can take any of the following forms: a locally installed application, a mini-program accessed via other applications, a web application accessed via a browser, etc. The user 130 can view the media content presented by the client and perform various interactive operations through the input / output interface of the terminal device 120.

[0043] For example, the terminal device 120 can receive media content to be presented from the server 110 via the network 140, and present the received media content to the user 130 via an output device. The output device can be, for example, a display device such as a display screen or a projector, or an audio device such as a speaker. Further for example, the output device can be a device that combines input functions, such as a touch screen, to facilitate various interactions with the user.

[0044] In addition, in the present application, the network 140 can be a wired network connected via cables, optical fibers, etc., or a wireless network such as 2G, 3G, 4G, 5G, Wi-Fi, Bluetooth, ZigBee, Li-Fi, etc.

[0045] In the related art, short video applications, for example, often employ the aforementioned preloading mechanism. This mechanism can improve video playback smoothness when the network is good, allowing users to continuously watch different video content without interruptions. However, the applicant has discovered that, when the network is poor, such as when the signal is weak or there is network jitter, continuing to use this preloading mechanism can lead to the following problems. First, it wastes network resources. Specifically, when the network is poor, if the video content a user is currently watching cannot play smoothly due to slow caching, the user may switch to another video content to try to watch something else. In this case, the video content that has just been partially cached will stop caching, and the application will attempt to cache new video content. If the user frequently switches between video content, the application will attempt to load a large amount of different video content in a short period of time. This will cause already insufficient network resources to be distributed across the caching process, resulting in a waste of network resources. This will also cause video content to cache even more slowly, resulting in a worse viewing experience for the user. Second, this will lead to a poor interactive experience. Specifically, when the network condition is poor, if a video content that the user is watching has not been loaded completely, he can only switch to other video content to watch. However, in related technologies such as short video applications, users cannot know whether the video content that was not fully watched before has been cached. They can only check its cache status by switching back to the original video content. If the user frequently switches video content, he may find it difficult or even unable to find the video content that he wants to continue watching and has not been fully watched. This will not guarantee a satisfactory interactive experience for users during periods of poor network conditions.

[0046] Figure 2 Schematically shows an example flow chart of a media content caching method 200 according to some embodiments of the present application. The method 200 may be Figure 1 The method 200 is implemented in the terminal device 120 shown, or in the combination of the terminal device 120 and the server 110. For example, it can be deployed in the terminal device 120 or the combination of the terminal device 120 and the server 110 in the form of an application, and helps to solve or alleviate the above-mentioned problems existing in the related art. Specifically, the method 200 may include the following steps.

[0047] In step 210, the network status of the current network may be monitored.

[0048] In this application, the current network may refer to the network that the device executing method 200 is currently accessing, and the device may use the network to play online media content such as audio, video, short videos, etc. Optionally, the network status of the current network may be monitored in various ways, for example, by monitoring the network speed, network request success rate, packet loss rate, delay rate, etc.

[0049] In step 220, when an abnormal network status of the current network is detected, the content playback area may be stopped from being presented in response to receiving a content switching operation for the media content being presented in the content playback area using the current network, and a priority cache icon associated with the media content may be presented. The priority cache icon associated with the media content may indicate that the media content is being cached first and include information indicating the caching progress of the media content.

[0050] In this application, media content being presented using the current network may refer to media content being presented or played online, which is different from offline presentation or offline playback. In the latter, the media content is first completely saved to local storage, and then the application related to presenting or playing the media content can read the media content from the local storage and present or play it. For example, when the network speed, packet loss rate, delay rate, etc. are monitored to be higher than the preset threshold or the network request success rate is lower than the threshold, it can be determined that the current network is abnormal.

[0051] In this application, a content playback area may refer to an area provided by an output interface of a device for presenting or playing media content, and a content switching operation may refer to a gesture, action, voice command, key input, pointer input, etc. that triggers the presentation of other media content in the content playback area to replace the currently presented media content. For example, a user may trigger a content switching operation by swiping media content left or right or up or down on a touch screen, waving a motion controller in a specific direction, making a specific gesture in front of a device with gesture detection capabilities, speaking a voice command, selecting a specific option button provided in a user interface, or tapping a specific key on a keyboard.

[0052] In this application, the priority cache icon may refer to an icon in any form that can represent the corresponding media content. For example, the icon may be in the form of an item in a list, or may be in the form of a circular, square, polygonal, multi-angled or other regular or irregular shaped logo, or other suitable forms conceived by those skilled in the art. Optionally, the priority cache icon may include one or more of information indicating the media content itself, information indicating the publisher of the media content, information indicating the progress of the media content cache, etc., wherein the progress of the media content cache may be reflected by various forms of progress bars, text, numbers, etc.

[0053] Furthermore, in the present application, priority caching may refer to caching content with a higher priority than other media content, for example, higher than media content currently being presented in a content presentation area, one or more media content to be presented after the currently presented media content, etc. For example, the media content that is prioritized for caching may have a higher caching priority than other media content.

[0054] pass Figure 2 The illustrated media content caching method 200 helps to focus limited network resources on prioritizing the caching of one or more media contents when network conditions are abnormal, thereby avoiding the disparate waste of network resources attempting to cache a large number of different media contents and improving network resource utilization efficiency. Furthermore, the method 200 enables users to watch one or more media contents as quickly as possible and to keep abreast of the caching progress of the one or more media contents when network conditions are abnormal, thereby improving the user's viewing and interactive experience.

[0055] It should be understood that the above method 200 is used when the current network status is abnormal, that is, the priority cache icon only appears when the network status is abnormal, and accordingly, the mechanism for prioritizing caching of one or more media contents is also only used during the period of abnormal network status. During the period of normal network status, the media content can be cached according to relevant technologies, such as the preloading mechanism mentioned above.

[0056] However, in actual application scenarios, the network status may be in an unstable state, sometimes good and sometimes bad. If the priority cache icon is no longer presented when the network status is detected to be changed from abnormal to normal, there may be a frequent switching between presenting the priority cache icon and not presenting the priority cache icon, which will cause trouble to the user and will also affect the operating efficiency of the application. In order to avoid this problem, in some embodiments, when the network status of the current network is detected to be restored from abnormal to normal, and no abnormality occurs again within a predetermined time length, the priority cache icon will no longer be presented (until the network status is detected to be abnormal again), and the media content corresponding to the priority cache icon presented before will be played in sequence according to the priority order at the time of priority caching. For example, after the network status is detected to be restored to normal, if no abnormality occurs again within a predetermined time length such as 2 minutes, 3 minutes or 5 minutes, it can be considered that the network status has indeed returned to normal, so the priority cache icon will no longer be presented. And before the priority cache icon disappears, one or more media contents that are being cached first can be presented in sequence according to, for example, the cache priority. The above-mentioned predetermined time length can be pre-set according to actual needs and / or experience. Otherwise, if the network status is detected to be abnormal again within the predetermined time period, it can be assumed that the network status has not yet fully returned to normal, and the priority cache icon can continue to be displayed, and the corresponding one or more media contents can continue to be cached preferentially. This can help avoid the above-mentioned problems and provide a good user experience during unstable network conditions.

[0057] Figure 3 An example flow chart for implementing step 210 (ie, monitoring the current network status) in method 200 according to some embodiments of the present application is schematically shown. Specifically, according to some embodiments of the present application, step 210 can be implemented through the following steps.

[0058] In step 211, the most recently occurring network requests may be added to a monitoring queue in chronological order, the monitoring queue being used to accommodate a preset number of network requests. For example, the network requests may refer to network requests related to media content, or may also include other types of network requests.

[0059] For example, Figure 4A FIG shows a monitoring queue for monitoring network status. Figure 4A As shown, the monitoring queue can have a tail and a head, and newly generated network requests can be added to the monitoring queue from the tail. When the number of network requests reaches the capacity of the monitoring queue, the network requests that joined earlier can leave the monitoring queue from the head. Exemplarily, the monitoring queue can be pre-set to accommodate a preset number of network requests, such as 100, 200, 500, etc., and the preset number can be determined according to actual needs.

[0060] In step 212, the success rate and delay of the network requests in the monitoring queue can be statistically analyzed. Figure 4A As shown, each network request added to the monitoring queue may include information indicating delay and success or failure. For example, the network request that is about to be added to the queue at the end of the queue is a successful network request and its delay is 100ms.

[0061] In step 213, it can be determined whether the calculated success rate is less than or equal to the threshold success rate, or whether the calculated delay indicates that the proportion of network requests with delays greater than the delay threshold is greater than or equal to the threshold proportion. The threshold success rate, delay threshold, and threshold proportion can be preset based on experience and actual application requirements. For example, the threshold success rate can be set to 90%, the delay threshold can be set to 300ms, and the threshold proportion can be set to 80%.

[0062] When the judgment result of step 213 is yes, it can be determined that the current network status is abnormal (step 214). For example, assuming that the monitoring queue capacity is 100, and the threshold success rate, delay threshold and threshold ratio are set to 90%, 300ms and 80% respectively, when there are 80% of the network requests with a delay of more than 300ms in the last 100 network requests counted, or the success rate of the network requests is less than or equal to 90% (i.e., the proportion of failed network requests reaches 10% or higher), it can be determined that the network status of the current network is abnormal. On the contrary, when the judgment result of step 213 is no, the network status can be continued to be monitored, that is, the most recent network request is continued to be added to the monitoring queue, and the success rate and delay of the network requests in the monitoring queue are counted. Optionally, when the network status is abnormal, a prompt message can be presented to the user by one or more methods such as displaying text, graphics, images, voice broadcasts, etc. to inform the user that the network status of the current network is abnormal.

[0063] In addition, after the network status is detected to be abnormal, newly generated network requests can continue to be added to the monitoring queue, and the real-time success rate and delay of the network requests in the queue can be counted. When the success rate counted is greater than the threshold success rate, and the delay situation counted indicates that the proportion of network requests with a delay less than or equal to the delay threshold is greater than or equal to the threshold proportion, it can be determined that the current network status has been monitored to have recovered from abnormality to normal. For example, in the example described above, when, among the last 100 network requests counted, more than 80% of the network requests have a delay less than or equal to 300ms, and the success rate of the network requests is greater than 90%, it can be determined that the network status of the current network has recovered from abnormality to normal.

[0064] pass Figure 3The method shown can monitor the network status in real time and objectively and effectively reflect whether the current network status is abnormal. Furthermore, it can also objectively and effectively reflect when the current network recovers from abnormality.

[0065] Optionally, in some embodiments, Figure 3 Steps 211 and 212 shown can be performed with the help of Figure 4B The network monitoring class (NetMonitor) 400B shown in FIG. 4 is implemented. For example, after the application for presenting media content online is started, the network monitoring class is created. Figure 4B As shown, the network monitoring class 400B may include an input interface, namely the AddNetStatus interface, and two output interfaces, namely the current success rate interface (currentSuccessRatio) and the current delay rate interface (currentDelayRatio). The AddNetStatus interface can be used to receive information related to the connected network, such as the network type (2G, 3G, 4G, 5G or WiFi, etc.) or the switching of the network type. For example, the network monitoring class 400B can be used with the help of Figure 4A The monitoring queue shown is used to count the success rate and delay timeout rate of network requests, and provides the counted success rate and delay timeout rate to other classes or modules through the current success rate interface and the current delay rate interface, respectively. For example, a module related to the management of priority caching of media content can obtain the counted success rate and delay timeout rate from the network monitoring class 400B to determine whether the network status is abnormal or whether it has returned to normal.

[0066] By setting up a separate network monitoring class to determine the success rate and delay timeout rate of several recent network requests, the module's scalability is improved, and subsequent maintenance can be more convenient. Specifically, the success rate and delay timeout rate determined by the network monitoring class can be used by different business modules, thereby helping to enhance the flexibility of business module expansion. Moreover, under the mechanism of separating data statistics from result judgment, the judgment criteria for network status anomalies and / or recovery from anomalies can be directly set in different business modules, or the set judgment criteria can be modified directly in the business module according to specific needs, which can increase the convenience of subsequent maintenance.

[0067] As about Figure 2 As described above, when an abnormal network status is detected, the current media content may be stopped from being presented in the content playback area, and a priority cache icon associated with the media content may be presented. Figure 5 An example interface 500 for presenting a priority cache icon according to some embodiments of the present application is schematically shown.

[0068] like Figure 5 As shown, the interface 500 may include a content playback area 510 for presenting media content, which can be used to present video images such as videos or short videos. The interface 500 also shows five priority cache icons 521 that have been presented, which respectively correspond to five media contents that are being cached in priority. The arc around each icon indicates the caching progress of the corresponding media content. The larger the angle corresponding to the arc, the higher the proportion that has been cached. When the arc gradually becomes a complete circle, it indicates that the corresponding media content has been cached. The image in each icon can be, for example, the avatar of the publisher of the corresponding media content, or it can be other images related to the corresponding media content, so that the user can quickly know the relevant information of the corresponding media content in the area.

[0069] In some embodiments, the prioritized cached media content may be added to the Figure 6 As shown in the priority cache manager (VideoCacheManager) 600. Figure 6 As shown, the priority cache manager 600 can accommodate, for example, five video-type media contents that are prioritized for caching. Optionally, the media contents accommodated in the priority cache manager 600 can have a priority order, and the media contents with higher priorities can be cached with higher priority. Exemplarily, the relevant information of each media content being prioritized for caching is stored in the corresponding entry of the priority cache manager 600. The stored information may include, for example, one or more of the following: the identifier of the media content (video ID), the current caching progress of the media content, the caching priority of the media content, the name of the media content, the description information of the media content, the avatar of the publisher of the media content, etc.

[0070] In some embodiments, the number of priority cache icons allowed to be presented can be preset, that is, the number of media contents allowed to be cached first can be preset. This number can be preset according to actual needs, for example, set to 3, 5, 6, 8, 10, etc. In this case, presenting the priority cache icons associated with the media content may include: when the number of priority cache icons currently presented is lower than the priority cache number threshold, directly presenting the priority cache icon associated with the media content; or when the number of priority cache icons currently presented is equal to the priority cache number threshold, replacing one of the priority cache icons currently presented with the priority cache icon associated with the media content.

[0071] For example, when the number of currently presented priority cache icons is equal to the priority cache number threshold, for example Figure 5In the case shown, the number of currently presented priority cache icons 521 has reached the priority cache number threshold of 5. Then, when the user performs a content switching operation on the presented media content again, the priority cache icon associated with the media content can replace one of the five presented priority cache icons 521, for example, it can replace the one presented last or the one with the lowest cache priority for the corresponding media content. At the same time, the media content corresponding to the replaced priority cache icon can no longer be cached in priority. For example, if the media content to be cached in priority is stored in a file such as Figure 6 In the priority cache manager shown, the media content corresponding to the newly presented priority cache icon will replace the storage location of the media content corresponding to the replaced priority cache icon in the priority cache manager.

[0072] Therefore, the number of media contents prioritized for caching can be controlled within a threshold number according to actual application requirements, which further helps to concentrate network resources on the priority caching of a smaller number of media contents, thereby improving the utilization efficiency of network resources.

[0073] In some embodiments, presenting a priority cache icon associated with media content may also include at least one of the following: presenting a priority cache icon associated with the media content, so that the relative position of the priority cache icon associated with the media content and other priority cache icons that have been presented represents the relative priority of the media content and the media content corresponding to the other priority cache icons when priority caching; and presenting a priority cache icon associated with the media content, so that the relative size of the priority cache icon associated with the media content and other priority cache icons that have been presented represents the relative priority of the media content and the media content corresponding to the other priority cache icons when priority caching.

[0074] For example, Figure 5 As shown in the interface 500, the five priority cache icons 521 can have different sizes. The larger the icon, the higher the priority of the corresponding media content in the priority cache. For example, the relative size of the priority cache icon can be different from the size of the corresponding media content in the priority cache. Figure 6 Corresponding to the relative position in the priority cache manager shown, the priority cache icon corresponding to the media content in the entry position with a higher priority in the priority cache manager can be presented as having a larger volume or area. Figure 5 As shown in the interface 500, the five priority cache icons 521 can be presented in different positions in order, for example, from left to right, indicating that the priority of the corresponding media content in priority caching decreases in sequence. For example, the relative position of the priority cache icon can be the same as the relative position of the corresponding media content in the priority cache. Figure 6The relative positions of the priority cache icons in the priority cache manager shown correspond to each other, that is, the arrangement order of the priority cache icons can be consistent with the arrangement order of the corresponding media content in the priority cache manager. Optionally, the order from top to bottom can be used to represent the decreasing priority, or other directions can be used.

[0075] The relative position and / or relative size of the media content corresponding to each priority cache icon is used to indicate the relative priority of the media content during priority caching, allowing the user to intuitively understand the caching priority of each media content, thereby helping to further improve the user experience.

[0076] In some embodiments, the priority cache icon may be contained in a priority cache icon area. Figure 5 As shown, each priority cache icon 521 can be accommodated in the priority cache icon area 520. The priority cache icon area 520 can be as shown in FIG. Figure 5 As shown, the priority cache icon area 520 may be located above the content playback area 510, or may be located below, to the left, or to the right of the content playback area 510. Alternatively, the priority cache icon area 520 may overlap or partially overlap with the content playback area 510, for example, floating above the content playback area. In other embodiments, the priority cache icon 521 may not be centrally located in the priority cache icon area 520, but may float randomly at any location in the interface 500.

[0077] In some embodiments, a child thread can be used to asynchronously draw a priority cache icon area so that the priority cache icon area is presented when the network status is abnormal, and the presented priority cache icon is accommodated in the priority cache icon area. By drawing the priority cache icon area using a child thread rather than a main thread, the amount of drawing performed by the main thread can be reduced, thereby improving the rendering efficiency of user interfaces such as interface 500. In addition, by asynchronously drawing the priority cache icon area in advance when there are idle processing resources, it can be ensured that the drawn priority cache icon area is presented in a timely manner when the network status is abnormal, thereby avoiding delayed rendering caused by drawing immediately when a network abnormality is detected.

[0078] For example, Figure 7 The flowchart of the asynchronous rendering method 700 for preferentially caching icon areas according to some embodiments of the present application is schematically shown. Specifically, the method 700 may include the following steps.

[0079] In step 701, an application APP related to media content presentation is started. After the APP is started, optionally, the main thread can draw Figure 5 The content presentation area 510 and / or other presentation elements except the priority cache icon area 520 in the interface 500 are shown.

[0080] At step 702, a network monitoring function may be initiated. For example, Figure 4B The network monitoring class shown can start to count the success rate and delay timeout rate of several recent network requests, and continuously provide the statistical results to the module used to trigger and / or manage the priority caching mechanism, so as to monitor in real time whether the network status of the current network is abnormal.

[0081] In step 703, the priority cache icon area can be asynchronously drawn using a child thread. This step can be completed using idle processing resources without affecting the processing efficiency of the main thread. The drawn priority cache icons can be in an initialized state, for example, without including any priority cache icons, and in a hidden state.

[0082] In step 704 , it is determined whether the network status of the current network is abnormal. If not, the process proceeds to step 708 , continuing to hide the drawn priority cache icon area and continuing to monitor the network status of the current network; if so, the process proceeds to step 705 .

[0083] In step 705, in response to a content switching operation for a certain media content being presented, the media content may be added to a priority cache pool, for example, to a buffer pool. Figure 6 The priority cache manager shown.

[0084] In step 706 , the priority cache icon area may be refreshed, a priority cache icon corresponding to the media content may be drawn in the priority cache icon area, and the refreshed priority cache icon area may be presented.

[0085] In step 707, it is determined whether the network status of the current network has returned to normal from abnormality. If not, the process returns to step 706, and the priority cache icon area is refreshed according to the user operation and the refreshed priority cache icon area is displayed. If so, the process proceeds to step 708, and the displayed priority cache icon area is hidden. Optionally, similar to the above, after the network status is detected to have returned to normal, the displayed priority cache icon area may be hidden only when no network abnormality occurs again within a preset time threshold.

[0086] Additionally, optionally, Figure 5 The illustrated interface 500 may further include an information display area 530 and a data display area 540, which may overlap or partially overlap with the content playback area, or may be presented separately. For example, the information display area 530 may be used to display publisher information, description information, audio information, etc. related to the media content being presented in the content playback area 510, while the data display area 540 may be used to display data such as the number of views, number of favorites, number of comments, and number of forwardings related to the media content being presented in the content playback area 510.

[0087] In some embodiments, the user can perform various interactive operations on the presented priority cache icons, such as swapping two priority cache icons, deleting a priority cache icon, playing the media content corresponding to a priority cache icon, etc. Figure 8A-12 The interactive operations according to some embodiments of the present application are described in detail. It should be understood that Figure 8A-12 The various interfaces shown are merely exemplary and schematic. In fact, those skilled in the art can design interfaces of different forms according to specific application requirements.

[0088] In some embodiments, one or more of the following interactive operations can be provided: in response to a position swap operation for two presented priority cache icons being triggered, the positions of the two priority cache icons are swapped, and the relative priorities of the media contents corresponding to the two priority cache icons when priority caching are swapped; in response to a delete operation for a presented priority cache icon being triggered, the priority cache icon is no longer presented, and priority caching of the media content corresponding to the priority cache icon is stopped; and in response to a later presentation operation for a presented priority cache icon being triggered, the priority cache icon is no longer presented, the media content corresponding to the priority cache icon is added to a later presentation list, and priority caching of the media content is stopped, wherein the later presentation list is a list stored in the background and can be presented in response to a call-out operation for the later presentation list.

[0089] Figure 8A and 8B Interfaces 800A and 800B are schematically shown, which illustrate the exchange process of priority cache icons according to some embodiments of the present application. Figure 8A As shown, the priority cache icon 810 is originally located in the middle position, and the priority cache icon 820 is originally located on the left position. The user can, for example, drag the priority cache icon 810 (e.g., along the Figure 8A The position exchange operation for the two priority cache icons is triggered by clicking the priority cache icon 810 and the priority cache icon 820 in sequence, so that the positions of the two priority cache icons are exchanged, as shown in FIG. Figure 8B In some embodiments, in response to the position exchange operation for the priority cache icon 810 and the priority cache icon 820 being triggered, the positions of the two priority cache icons can be exchanged, and the relative priorities of the media contents corresponding to the two priority cache icons can be exchanged. Figure 6 The storage location in the priority cache manager is shown. And illustratively, the relative sizes of the two priority cache icons can be swapped while swapping the locations, to indicate to the user that the relative priorities of the media contents corresponding to the two are swapped during priority caching.

[0090] This allows users to easily adjust the relative caching priority of media content being cached as needed, so as to better prioritize network resources on caching media content that users are more interested in, thereby improving the utilization efficiency of network resources and helping to achieve a better user interaction experience.

[0091] Figure 9 An interface 900 is schematically shown, which illustrates the process of deleting and later presenting a priority cache icon according to some embodiments of the present application. Figure 9 As shown, the user can delete or add the priority cache icon 910 to the later presentation list according to their own needs. For example, the user can trigger the deletion operation or later presentation operation for the priority cache icon by dragging the priority cache icon 910 to the deletion option area 920 or the later presentation option area 930, wherein the deletion option area 920 is marked as an icon similar to a trash can in the interface 900, and the later presentation option area 930 is marked as the words "See later" in the interface 900. It should be understood that the deletion option area 920 and / or the later presentation option area 930 can also be marked in other forms.

[0092] In some embodiments, in response to the deletion operation for the priority cache icon 910 being triggered, the priority cache icon 910 may no longer be presented, and the media content corresponding to the priority cache icon 910 may no longer be prioritized for caching. Figure 6 The priority cache manager shown in FIG. 1 deletes the media content corresponding to the priority cache icon 910. And exemplarily, after deleting the priority cache icon 910, since it is in the last position, the icon position where it is located can be vacated, waiting for the subsequent presentation of other priority cache icons; if the deleted priority cache icon is not in this last position, the priority cache icons behind it can be moved forward in turn to fill the position and vacate the last position, waiting for the subsequent presentation of other priority cache icons. Accordingly, exemplarily, in Figure 6 In the priority cache manager shown, similar filling can also be performed for the corresponding media content, thereby leaving the last position (corresponding to the position with the lowest cache priority) vacant for adding other media content.

[0093] In some embodiments, in response to the triggering of the later presentation operation for the priority cache icon 910, the priority cache icon 910 may no longer be presented, and the media content corresponding to the priority cache icon 910 may no longer be prioritized for caching, and the media content may be added to the later presentation list. Figure 6In the priority cache manager shown, the media content corresponding to the priority cache icon 910 will also be deleted. Similar to the above description of the deletion operation, a similar filling mechanism may also exist in the subsequent presentation operation.

[0094] In some embodiments, the list is presented later, for example, Figure 10 The watch later list is shown in the interface 1000. Figure 10 As shown, the Watch Later list may include relevant information about one or more media contents, such as the publisher's profile picture, account name, description information, gender information, etc., or may also include, for example, a title, screenshot, cover, description information, etc. related to the media content itself. Optionally, a delete option is presented for each piece of media content, as indicated by a cross after each piece of media content in interface 1000. In addition, the user may also optionally view a piece of media content in the list, such as by clicking on the piece of media content; or may also exchange the position of media content, such as by dragging a piece of media content to the position of another piece of media content.

[0095] Exemplarily, the information of the media content added to the later presentation list can be stored locally, and optionally can be uploaded to the server after the network status returns to normal. In addition, the later presentation list can be stored in the background, and will not be stored in a server such as a server. Figure 5 The interface shown includes a content playback area 510 and a priority cache icon 521. When a user wants to view the list to be presented later, the list can be called out through a specific operation, such as shaking a terminal device such as a mobile phone, or finding and selecting an option to view the list in the menu bar, etc. Optionally, when the list to be presented later is empty, when the user performs a related calling operation, the calling operation may not be responded to, or a prompt such as the list being empty may be displayed.

[0096] In some embodiments, the caching priority of the media content in the later presentation list can be the lowest, for example, lower than the media content that is cached first, the media content that is being presented in the content playback area, and the media content that is optionally preloaded when the network status is normal, and these media contents will not be cached or continue to be cached during the abnormal network status. For example, after monitoring that the network status of the current network has recovered from abnormality to normal, and when the later presentation list is not empty, the media content in the later presentation list can be cached when the network is idle.

[0097] Setting up a later presentation list can allow users to add media content that they are interested in but not eager to watch to this later presentation list. On the one hand, it allows users to easily find these media content of interest later. On the other hand, it can also reduce cache pressure during abnormal network conditions and avoid unnecessary dispersion and consumption of network resources, thereby helping to further improve the efficiency of network resource utilization during abnormal network conditions.

[0098] As mentioned above, in some embodiments, the user may be allowed to trigger a position swap operation, a delete operation, and a later presentation operation for a priority cache icon through a drag action. Specifically, a drag action may be received for a presented priority cache icon; in response to receiving the drag action, a delete option area and a later presentation option area may be presented; then, in response to the priority cache icon being dragged to the position of another presented priority cache icon, a position swap operation may be triggered for the priority cache icon and the other priority cache icon; in response to the priority cache icon being dragged to the delete option area, a delete operation may be triggered for the priority cache icon; or, in response to the priority cache icon being dragged to the later presentation option area, a later presentation operation may be triggered for the priority cache icon.

[0099] This allows users to swap, delete, and add priority cache icons to a list for later presentation in a simple and unified manner, thereby helping to reduce the user's learning cost and further improve the user's interactive experience.

[0100] In some embodiments, an information viewing operation for priority cache icons can be provided. Specifically, in response to triggering an information viewing operation for a priority cache icon, descriptive information related to the media content corresponding to the priority cache icon and / or a follow option for the publisher of the media content can be presented. This allows users to more conveniently view relevant information about the media content corresponding to each priority cache icon and / or follow the corresponding publisher, thereby helping to further enhance the user's interactive experience.

[0101] Figure 11 An interface 1100 is schematically shown, which illustrates the viewing process of the priority cache icon according to some embodiments of the present application. Figure 11As shown, when the information viewing operation for the priority cache icon located on the far right is triggered, relevant descriptive information such as the video title and / or description indicated by 1101 can be presented, and optionally, a follow-up option such as the add-follow indicated by 1102 can be presented. Exemplarily, the user can trigger the information viewing operation by double-clicking the priority cache icon or other means. Optionally, after the information viewing operation is triggered, an animation effect can be presented, for example, the corresponding priority cache icon can be flipped, and after the flipping is completed, the above-mentioned descriptive information and / or follow-up option can be presented. In addition, optionally, when the user double-clicks in the same position area again, the flip animation can be presented again, and the corresponding priority cache icon can be reproduced.

[0102] In some embodiments, when the presented priority cache icon is presented in the priority cache icon area, a deletion operation for the entire priority cache icon area can also be provided. Specifically, in response to the deletion operation for the priority cache icon area being triggered, the priority cache icon area can no longer be presented within a predetermined period of time. The predetermined period of time can be pre-set according to actual needs, for example, it can be set to no longer be presented within 1 hour, no longer be presented within 6 hours, no longer be presented on the same day, etc. When the priority cache icon area is deleted, the priority caching mechanism for one or more media content can be stopped accordingly, that is, the priority of the priority caching is no longer set for the media content, and the media content can be optionally cached according to the caching mechanism when the network status is normal, for example, according to the preloading mechanism mentioned above. When the predetermined period ends, when the network status is abnormal again, the priority cache icon area can be presented again and the priority caching mechanism can be started again. This allows users to flexibly choose whether to enable the priority caching mechanism according to their needs and their own preferences, thereby providing more flexibility for user interaction and helping to optimize the user interaction experience.

[0103] For example, Figure 12 An interface 1200 is schematically shown, which illustrates a process of deleting a priority cache icon area according to some embodiments of the present application.

[0104] like Figure 12 As shown, in some embodiments, in response to receiving a sliding action on the priority cache icon area 1210, an option 1220 for deleting the priority cache icon area can be presented; and in response to the option to delete the priority cache icon area being selected, the deletion operation for the priority cache icon area is triggered. Optionally, the deletion operation for the priority cache icon area can also be triggered in other ways, such as presenting the option for deleting the priority cache icon area in response to long pressing a certain position of the priority cache icon area, or by fixedly presenting the option for deleting the priority cache icon area at a specific position of the priority cache icon area, etc.

[0105] In addition, in some embodiments, a play operation for a priority cache icon can also be provided. Specifically, in response to a play operation being triggered for a priority cache icon, and the cache progress indicator in the priority cache icon indicates that the corresponding media content has been cached, the media content can be presented in the content playback area; and after the media content is presented, the priority cache icon is no longer presented. This allows users to watch cached media content at any time and, after watching, promptly release the resources used for priority caching of the media content so that these resources can be promptly used for priority caching of new media content, thereby helping to improve the utilization efficiency of related resources.

[0106] For example, when a user clicks a priority cache icon, a play operation for the priority cache icon can be triggered, and the media content corresponding to the priority cache icon can be presented in the content play area. If the media content has been cached, the corresponding priority cache icon can no longer be presented after the media content is fully presented, and the corresponding priority cache icon can be optionally displayed in the content play area. Figure 6 The corresponding media content is deleted from the priority cache manager shown. At this time, other priority cache icons in the priority cache icon area can be filled in sequence according to the arrangement order. Optionally, if there are other cached priority cached media contents at this time, other cached media contents can continue to be presented in the content playback area. And optionally, while the presented priority cache icons are filled in sequence, a new priority cache icon related to the next media content to be cached (generally speaking, the next media content to be presented in the content playback area) can be presented at the last position.

[0107] Figure 13 The following schematically shows an example block diagram of a media content cache device 1300 according to some embodiments of the present application. For example, the media content cache device 1300 may be deployed in Figure 1 The terminal device 120 or the combination of the terminal device 120 and the server 110 shown. Figure 13 As shown, the media content caching device 1300 may include a monitoring module 1310 and a presentation module 1320 .

[0108] Specifically, the monitoring module 1310 can be configured to monitor the network status of the current network; and the presentation module 1320 can be configured to, when it is detected that the network status of the current network is abnormal, in response to receiving a content switching operation for the media content being presented in the content playback area using the current network, stop presenting the media content in the content playback area and present a priority cache icon associated with the media content, wherein the priority cache icon associated with the media content indicates that the media content is being cached with priority and includes information indicating the caching progress of the media content.

[0109] It should be understood that the apparatus 1300 can be implemented in software, hardware, or a combination of software and hardware. Multiple different modules can be implemented in the same software or hardware structure, or one module can be implemented by multiple different software or hardware structures.

[0110] Furthermore, the apparatus 1300 can be used to implement the method 200 described above, the relevant details of which have been described in detail above and will not be repeated here for the sake of brevity. The apparatus 1300 can have the same features and advantages as those described with respect to the above method.

[0111] Figure 14 Schematically shows an example block diagram of an electronic device 1400 according to some embodiments of the present application. For example, it may represent Figure 1 The terminal device 120 or other types of computing devices that can be used to deploy the apparatus 1300 provided in this application.

[0112] As shown, example computing device 1400 includes a processing system 1401, one or more computer-readable media 1402, and one or more I / O interfaces 1403 that are communicatively coupled to one another. Although not shown, computing device 1400 may also include a system bus or other data and command transmission system that couples the various components to one another. The system bus may include any one or a combination of different bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and / or a processor or local bus utilizing any of a variety of bus architectures, or may also include, for example, control and data lines.

[0113] Processing system 1401 represents functionality that performs one or more operations using hardware. Thus, processing system 1401 is illustrated as including hardware elements 1404 that can be configured as processors, functional blocks, and the like. This can include implementing application-specific integrated circuits (ASICs) or other logic devices formed using one or more semiconductors in hardware. Hardware elements 1404 are not limited by the materials from which they are formed or the processing mechanisms employed therein. For example, a processor can be comprised of (a plurality of) semiconductors and / or transistors (e.g., electronic integrated circuits (ICs)). In such a context, processor-executable instructions can be electronically executable instructions.

[0114] Computer-readable medium 1402 is illustrated as including memory / storage 1405. Memory / storage 1405 represents a memory / storage associated with one or more computer-readable media. Memory / storage 1405 may include volatile storage media (such as random access memory (RAM)) and / or non-volatile storage media (such as read-only memory (ROM), flash memory, optical disk, magnetic disk, etc.). Memory / storage 1405 may include fixed media (e.g., RAM, ROM, fixed hard drive, etc.) and removable media (e.g., flash memory, removable hard drive, optical disk, etc.). Exemplarily, memory / storage 1405 may be used to store relevant information, cached content, etc. of the media content mentioned in the above embodiments. Computer-readable medium 1402 may be configured in various other ways as further described below.

[0115] One or more input / output interfaces 1403 represent functionality that allows a user to type commands and information into the computing device 1400 and also allows information to be presented to the user and / or sent to other components or devices using various input / output devices. Examples of input devices include a keyboard, a cursor control device (e.g., a mouse), a microphone (e.g., for voice input), a scanner, touch functionality (e.g., a capacitive or other sensor configured to detect physical touch), a camera (e.g., that can use visible or invisible wavelengths (such as infrared frequencies) to detect motion that does not involve touch as gestures), a network card, a receiver, and the like. Examples of output devices include a display device (e.g., a monitor or projector), a speaker, a printer, a tactile response device, a network card, a transmitter, and the like. Exemplarily, in the embodiments described above, the input devices may allow the user to perform various interactive operations, etc., and the output devices may allow the user to view presented media content, view presented priority cache icons, and the like.

[0116] The computing device 1400 also includes a media content cache application 1406. The media content cache application 1406 can be stored as computer program instructions in the memory / storage device 1405. The media content cache application 1406 can be implemented in conjunction with the processing system 1401 and the like. Figure 13 The entire functions of each module of the device 1300 are described.

[0117] Various techniques may be described herein in the general context of software, hardware, elements, or program modules. Generally, these modules include routines, programs, objects, elements, components, data structures, etc. that perform specific tasks or implement specific abstract data types. As used herein, the terms "module," "function," etc. generally refer to software, firmware, hardware, or a combination thereof. A feature of the techniques described herein is that they are platform-independent, meaning that these techniques can be implemented on a variety of computing platforms with a variety of processors.

[0118] An implementation of the described modules and techniques may be stored on or transmitted across some form of computer-readable media. Computer-readable media may include various media accessible by computing device 1400. By way of example and not limitation, computer-readable media may include "computer-readable storage media" and "computer-readable signal media."

[0119] As opposed to a mere signal transmission, carrier wave, or signal itself, "computer-readable storage medium" refers to a medium and / or device, and / or tangible storage device, capable of persistently storing information. Thus, computer-readable storage media refers to non-signal-bearing media. Computer-readable storage media include hardware such as volatile and non-volatile, removable and non-removable media and / or storage devices implemented in a method or technology suitable for storing information (such as computer-readable instructions, data structures, program modules, logic elements / circuits, or other data). Examples of computer-readable storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage devices, hard disks, cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or other storage devices, tangible media, or articles of manufacture suitable for storing desired information and accessible by a computer.

[0120] "Computer-readable signal media" refers to signal-bearing media configured to transmit instructions to the hardware of computing device 1400, such as via a network. Signal media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, data signal, or other transport mechanism. Signal media also includes any information delivery media. By way of example, and not limitation, signal media include wired media such as a wired network or direct connection, and wireless media such as acoustic, RF, infrared, and other wireless media.

[0121] As previously mentioned, hardware element 1401 and computer-readable medium 1402 represent instructions, modules, programmable device logic and / or fixed device logic implemented in hardware form, which can be used to implement at least some aspects of the technology described herein in some embodiments. Hardware elements can include other implementations in integrated circuits or systems on a chip, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs) and silicon or components of other hardware devices. In this context, hardware elements can be used as processing equipment for executing program tasks defined by the instructions, modules and / or logic embodied by the hardware elements, as well as hardware devices for storing instructions for execution, such as the computer-readable storage media previously described.

[0122] The aforementioned combinations may also be used to implement the various techniques and modules described herein. Thus, software, hardware, or program modules and other program modules may be implemented as one or more instructions and / or logic on some form of computer-readable storage medium and / or embodied by one or more hardware elements 1401. Computing device 1400 may be configured to implement specific instructions and / or functions corresponding to software and / or hardware modules. Thus, for example, by using a computer-readable storage medium and / or hardware elements 1401 of a processing system, a module may be implemented as a module executable by computing device 1400 as software, at least in part, in hardware. Instructions and / or functions may be executed / operable by, for example, one or more computing devices 1400 and / or processing system 1401 to implement the techniques, modules, and examples described herein.

[0123] The techniques described herein may be supported by these various configurations of computing device 1400 and are not limited to the specific examples of the techniques described herein.

[0124] Should be understood that, for the sake of clarity, the embodiments of the present application are described with reference to different functional units. However, it will be apparent that, without departing from the present application, the functionality of each functional unit can be implemented in a single unit, implemented in multiple units or implemented as a part for other functional units. For example, the functionality that is described as being performed by a single unit can be performed by multiple different units. Therefore, reference to a specific functional unit is only considered as a reference to the appropriate unit for providing the described functionality, rather than indicating strict logical or physical structure or organization. Therefore, the application can be implemented in a single unit, or can be physically and functionally distributed between different units and circuits.

[0125] The present application provides a computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed, the above-mentioned media content caching method is implemented.

[0126] The present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computing device to perform the media content caching method provided in the various embodiments described above.

[0127] Variations on the disclosed embodiments will be understood and effected by those skilled in the art in practicing the claimed subject matter by studying the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

Claims

1. A media content caching method, comprising: Monitor the current network status; When it is monitored that the network status of the current network is abnormal, in response to receiving a content switching operation for media content being presented in the content playback area using the current network, the media content is stopped from being presented in the content playback area, and a priority cache icon associated with the media content is presented in the content playback area or in an area surrounding the content playback area, wherein the priority cache icon associated with the media content indicates that the media content is being cached with priority and includes information indicating the caching progress of the media content.

2. The method of claim 1 , wherein presenting a priority cache icon associated with the media content comprises: When the number of currently presented priority cache icons is lower than the priority cache number threshold, directly presenting the priority cache icon associated with the media content; or When the number of currently presented priority cache icons is equal to a priority cache number threshold, one of the currently presented priority cache icons is replaced with a priority cache icon associated with the media content.

3. The method of claim 1 , wherein presenting a priority cache icon associated with the media content comprises at least one of: Presenting the priority cache icon associated with the media content such that a relative position of the priority cache icon associated with the media content and other presented priority cache icons indicates a relative priority of the media content and the media content corresponding to the other priority cache icons when prioritizing caching; The priority cache icon associated with the media content is presented so that the relative size of the priority cache icon associated with the media content and other presented priority cache icons represents the relative priority of the media content and the media content corresponding to the other priority cache icons when priority caching.

4. The method according to claim 1, further comprising at least one of the following: In response to a position swap operation being triggered for two presented priority cache icons, swapping the positions of the two priority cache icons and swapping the relative priorities of the media contents corresponding to the two priority cache icons during priority caching; In response to a deletion operation being triggered for a presented priority cache icon, the priority cache icon is no longer presented, and priority caching of the media content corresponding to the priority cache icon is stopped; In response to a later presentation operation being triggered for a priority cache icon that has been presented, the priority cache icon is no longer presented, the media content corresponding to the priority cache icon is added to a later presentation list, and priority caching of the media content is stopped, wherein the later presentation list is a list stored in the background and can be presented in response to a call-out operation for the later presentation list.

5. The method according to claim 4, further comprising: Receive a drag action for a presented priority cache icon; In response to receiving the drag action, presenting a delete option area and a present later option area; In response to the priority cache icon being dragged to a position of another presented priority cache icon, triggering a position swap operation for the priority cache icon and the other priority cache icon; In response to the priority cache icon being dragged to the deletion option area, triggering a deletion operation for the priority cache icon; In response to the priority cache icon being dragged to the later presentation option area, a later presentation operation for the priority cache icon is triggered.

6. The method according to claim 4, further comprising: When it is monitored that the network status of the current network recovers from abnormality to normal, and when the later presentation list is not empty, the media content in the later presentation list is cached when the network is idle.

7. The method according to claim 1, further comprising: In response to an information viewing operation for a priority cache icon being triggered, description information related to the media content corresponding to the priority cache icon and / or a follow-up option for the publisher of the media content are presented.

8. The method according to claim 1, further comprising: In response to a play operation for a priority cache icon being triggered, and the media content corresponding to the cache progress indication in the priority cache icon having been completely cached, presenting the media content in the content playback area; After the media content is completely presented, the priority cache icon is no longer presented.

9. The method of claim 1 , wherein the presented priority cache icon is accommodated in a priority cache icon area, and the method further comprises: In response to a deletion operation on the priority cache icon area being triggered, the priority cache icon area is no longer presented within a predetermined period of time.

10. The method according to claim 9, further comprising: In response to receiving a sliding action on the priority cache icon area, presenting an option for deleting the priority cache icon area; In response to the option of deleting the priority cache icon area being selected, the deletion operation is triggered.

11. The method according to claim 1 or 9, further comprising: The priority cache icon area is drawn asynchronously by using a child thread, so that the priority cache icon area is presented when the network status is abnormal, and the presented priority cache icon is accommodated in the priority cache icon area.

12. The method according to claim 1, further comprising: When it is monitored that the network status of the current network has recovered from abnormality to normal and no abnormality occurs again within a predetermined time length, the priority cache icon will no longer be presented, and the media content corresponding to the priority cache icon previously presented will be played in sequence according to the priority order during priority caching.

13. The method according to claim 1, wherein monitoring the current network status comprises: Add the most recently occurring network requests to a monitoring queue in chronological order, wherein the monitoring queue is used to accommodate a preset number of network requests; Counting the success rate and delay of network requests in the monitoring queue; When the counted success rate is less than or equal to the threshold success rate, or the counted delay situation indicates that the proportion of network requests with delays greater than the delay threshold is greater than or equal to the threshold proportion, it is determined that the current network status is monitored to be abnormal.

14. The method according to claim 13, wherein monitoring the current network status further comprises: When the current network status is monitored to be abnormal, when the counted success rate is greater than the threshold success rate, and the counted delay situation indicates that the proportion of network requests with delays less than or equal to the delay threshold is greater than or equal to the threshold proportion, it is determined that the current network status has been monitored to recover from abnormal to normal.

15. A media content caching device, comprising: A monitoring module is configured to monitor the network status of the current network; The presentation module is configured to, when an abnormal network status of the current network is monitored, stop presenting the media content in the content playback area in response to receiving a content switching operation for the media content being presented in the content playback area using the current network, and present a priority cache icon associated with the media content in the content playback area or in an area surrounding the content playback area, wherein the priority cache icon associated with the media content indicates that the media content is being cached with priority and includes information indicating the caching progress of the media content.

16. A computing device comprising: a memory configured to store computer-executable instructions; A processor configured to perform the method according to any one of claims 1 to 14 when the computer executable instructions are executed by the processor. 17 . A computer-readable storage medium storing computer-executable instructions, which, when executed, perform the method according to claim 1 .

18. A computer program product comprising computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Media file caching method and media player

    CN104866503A