Cache control method and equipment
By introducing cache control controls into the multimedia program playback interface, users can flexibly control the cache progress, solving the problem of waste of network resources during multimedia program playback, and realizing resource conservation and more efficient utilization.
Patent Information
- Application Number
- CN202310582228.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
There is a problem of high network resource consumption during the playback of existing multimedia programs, especially when the user does not play the complete multimedia program, the cached data is not used, resulting in waste of resources.
Display cache controls in the multimedia program playback interface, allowing users to flexibly control cache progress, avoid unnecessary caches, and save network resources.
By independently controlling the cache progress by users, the consumption of network resources is effectively reduced, the cache of some data that is not played by multimedia programs is avoided, and the resource utilization rate is improved.
Smart Images

Figure CN119011938A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer software technology, and more particularly to a cache control method and device. Background Art
[0002] Multimedia programs can include audio programs and video programs. The playback of multimedia programs depends on the application. For example, in an audio application, an audio player can be called to play audio programs. In a video application, a video player can be called to play video programs.
[0003] In the prior art, the playback process of a multimedia program may include: first, caching (also referred to as preloading) a portion of the multimedia program data before playing the multimedia program, and starting to play the multimedia program; then, during the playback of the multimedia program, caching the remaining portion of the multimedia program data to achieve complete playback of the multimedia program.
[0004] However, the above solution has the problem of high network resource consumption. Summary of the invention
[0005] The embodiments of the present disclosure provide a cache control method and device, which can reduce network resource consumption.
[0006] In a first aspect, an embodiment of the present disclosure provides a cache control method, the method comprising:
[0007] Display the playback interface of multimedia programs;
[0008] A cache control control of the multimedia program is displayed in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
[0009] In a second aspect, an embodiment of the present disclosure provides a cache control device, the device comprising:
[0010] A playback interface display module, used to display the playback interface of multimedia programs;
[0011] The cache control control display module is used to display the cache control control of the multimedia program in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
[0012] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0013] The memory stores computer-executable instructions;
[0014] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, a computing device implements the method described in the first aspect.
[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program, wherein the computer program is used to implement the method described in the first aspect.
[0017] The disclosed embodiment provides a cache control method and device, the method comprising: displaying a playback interface of a multimedia program; displaying a cache control control of the multimedia program in the playback interface, the cache control control being used to control the cache progress of the multimedia program. The disclosed embodiment can display a cache control control in the playback interface to allow the user to flexibly cache according to actual needs, which can effectively reduce unnecessary cache and save network resources consumed by cache. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 is a schematic diagram of a multimedia program playback scenario provided by an embodiment of the present disclosure;
[0020] Figure 2 is a flowchart of a cache control method provided by an embodiment of the present disclosure;
[0021] Figure 3 is a schematic diagram of a multimedia program playback interface provided by an embodiment of the present disclosure;
[0022] Figure 4 is a detailed flow chart of a cache control method provided by an embodiment of the present disclosure;
[0023] Figure 5 is a structural block diagram of a cache control device provided by an embodiment of the present disclosure;
[0024] Figure 6 It is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0026] The embodiments of the present disclosure are applied to the playback scenario of multimedia programs. Figure 1 Schematic diagram of a multimedia program playback scenario provided by an embodiment of the present disclosure. Figure 1 As shown, the multimedia program playback process can be implemented by a multimedia program playback system, and the multimedia program playback system can include a client and a server. Specifically, first, the client can send a cache request for the multimedia program to the server; then, when the server receives the cache request, it obtains the corresponding data and returns it to the client; finally, when the client receives the data sent by the server, it plays the data.
[0027] It should be noted that the cache request of the multimedia program can be used to cache part or all of the data of a multimedia program. For example, a cache request is sent before the multimedia program starts playing to cache part of the data of the multimedia program; a cache request is sent after the multimedia program starts playing to cache the remaining part of the data of the multimedia program.
[0028] However, in actual applications, after playing the multimedia data, the user may not play the entire multimedia program. In this case, the above cache strategy may result in the cached data not being played, resulting in a waste of network resources used for the cached multimedia program data.
[0029] In order to solve the above technical problems, the disclosed embodiment can control the caching of multimedia programs through the client. Specifically, a cache control control is displayed in the playback interface of the multimedia program to cache the multimedia program according to the user's operation of the cache control control. The user can perform cache control according to his own will. For example, when the user does not need to watch the remaining part of the multimedia program, the user will not operate the cache control control, and thus will not cache the remaining part of the multimedia program data, which can save the network resources used to cache the remaining part of the data. Of course, when the user needs to watch the remaining part of the multimedia program, the user can operate the cache control control to cache the remaining part of the data to ensure the complete playback of the multimedia program.
[0030] The following specific embodiments are used to describe in detail the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.
[0031] Based on the above Figure 1 The multimedia program playback scene shown in FIG. Figure 2 is a flow chart of the steps of a cache control method provided by an embodiment of the present disclosure. The cache control method of the embodiment of the present disclosure is composed of Figure 1 The client implementation shown. Figure 2 As shown, the cache control method includes:
[0032] S201: Displaying a multimedia program playback interface.
[0033] The playback interface is an interface for playing multimedia programs, which may include one or more areas, different areas have different functions, and some or all areas may include operation controls to operate the multimedia programs. Figure 3 As shown, the playback interface A0 includes a playback area A1 and an operation area A2. The playback area A1 is used to display the multimedia program being played, and the operation area A2 is used to display the operation controls for operating the multimedia program. For example, the operation area A2 may include: a playback progress bar B0 for controlling the playback progress of the multimedia program, a playback control control B1, and a cache control control B2 newly added in the embodiment of the present disclosure for controlling the cache progress. In addition, the operation area may also include other operation controls, such as an operation control for sharing the multimedia program, an operation control for commenting on the multimedia program, etc.
[0034] It should be noted that there may be multiple display strategies for the playback interface in the embodiments of the present disclosure.
[0035] In the first display strategy, the multimedia program is not cached before the playback interface is displayed. When the playback interface is displayed, the playback area in the playback interface does not display the playback content, for example, it may be blank or display a default image.
[0036] In the second display strategy, the multimedia program is cached according to a preset cache size before the play interface is displayed; then, the play interface is displayed to play the multimedia program, that is, the play area of the play interface displays the play content of the multimedia program.
[0037] It can be seen that the second display strategy above implements caching and playing the initial part of the data of the preset cache size in the multimedia program. The caching process is performed before displaying the playback interface, including but not limited to: caching during the playback of the previous multimedia program, or caching during the startup of the client.
[0038] In an example, for the first multimedia program M1 played after the client is started, the multimedia program M1 may be cached according to the preset cache size during the process of starting the client.
[0039] In another example, for the second and subsequent multimedia programs M2 played after the client is started, the multimedia programs M2 may be cached according to the preset cache size when the end portion of the previous multimedia program M3 is played.
[0040] S202: Displaying a cache control control of the multimedia program in the playback interface, where the cache control control is used to control the cache progress of the multimedia program.
[0041] The cache control control may be any type of control displayed at any position in the playback interface, and after the user operates the control, the multimedia program may be cached.
[0042] In one example, the cache operation control may be a button displayed in the playback interface, and when the user clicks it, the complete data cache of the multimedia program can be realized. In actual applications, multiple such buttons may be set, and different buttons correspond to different cache sizes, or different cache sizes may be represented when different operations are performed on the same button.
[0043] In another example, the cache operation control may also be a slider displayed on the cache progress bar. When the user slides the slider, the cache size of the multimedia program may be adjusted according to the position of the slider on the cache progress bar.
[0044] The cache progress bar can be independent of the playback Figure 3 Another progress bar of the playback progress bar B0 shown can also be used with Figure 3 The playback progress bar B0 shown is the same progress bar. When the cache progress bar and the playback progress bar B0 are the same progress bar, the process of displaying the cache control widget may include: displaying the playback progress bar of the multimedia program in the playback interface, referring to Figure 3 As shown, a play control control B1 and a cache control control B2 are displayed on the play progress bar B0. The play control control B1 is used to control the play progress of the multimedia program, and the cache control control B2 is used to control the cache progress of the multimedia program.
[0045] It is understandable that when the user slides the play control B1, the play progress of the multimedia program can be adjusted. When the user slides the cache control B2, the cache progress of the multimedia program can be adjusted. However, since the play content needs to be cached in advance, the cache control B2 is located after the play control B1, or the two are located in the same position.
[0046] The disclosed embodiment can display the playback control control B1 and the cache control control B2 on the playback progress bar at the same time, which can not only better reflect the relationship between playback and cache, but also save display space of the playback interface.
[0047] It should be noted that, when S201 caches the multimedia program according to the preset cache size before displaying the play interface, the cache control control is used to indicate that the cached size of the multimedia data is the preset cache size at the initial position of the play progress bar, and the user's operation instruction on the cache control control adjusts the cache control control in a range from the preset cache size to the size of the multimedia program. The initial position of the play control control in the play progress bar is the starting position of the play progress bar, that is, 0 seconds, indicating that the play starts from the starting position of the multimedia file.
[0048] For example, when the preset cache size is N seconds, the first N seconds of the multimedia program are cached before the playback interface is displayed. Therefore, when the playback interface is displayed, the cache control corresponds to N seconds at the initial position of the playback progress bar, and the user can adjust the cache control between the last position of the N-second playback progress bar. The last position of the playback progress bar is used to indicate the size of the multimedia program, for example, M seconds, where M is greater than or equal to N.
[0049] When a cache control is displayed on the play progress bar, the user can operate it, and the client can receive an operation instruction for the cache control to cache the multimedia program according to the operation instruction. The operation instruction here is used to adjust the position of the cache control on the play progress bar.
[0050] In the embodiment of the present disclosure, the types of the above-mentioned operation instructions are different, and the corresponding cache sizes are different. Specifically, first, the type of the operation instruction is determined; then, the multimedia program is cached according to the type of the operation instruction, and different types correspond to different cache sizes.
[0051] The types of operation instructions may include but are not limited to: click once, click twice, long press, slide, etc. The disclosed embodiment does not limit the types of operation instructions and the relationship between the types and the cache size. For example, when the user clicks the cache control twice, the multimedia program can be cached for L seconds starting from the current cache size.
[0052] In the first example, when the type of the operation instruction is the first type, the complete multimedia data corresponding to the multimedia program is cached. In this way, the user can cache and play the complete multimedia data with one operation, which can reduce the complexity of the user playing the complete multimedia program. For example, when the first type is click once, the complete multimedia data corresponding to the multimedia program is cached. Since the cache is performed according to the preset cache size before the playback interface is displayed, all data after the preset cache size of the multimedia program can be cached.
[0053] In the second example, when the type of the operation instruction is the second type, first, the position of the cache control control on the play progress bar after the operation instruction is determined; then, the target cache size is determined according to the position; finally, the multimedia program is cached according to the target cache size. In this way, the user can flexibly adjust the cache progress.
[0054] The disclosed embodiment can use the length of the playback progress bar to represent the size of the multimedia program. Therefore, the position of the cache control control on the playback progress bar is used to represent the current cache size. Specifically, the current cache size = position on the playback progress bar * size of the multimedia program / length of the playback progress bar. For example, when the second type is a sliding operation, the target cache size can be determined based on the position of the cache control on the playback progress bar after the sliding operation for caching. In other words, the data between the position before sliding and the position after sliding in the multimedia program is cached. For example, before performing the second type of operation instruction, the position of the cache control on the playback progress bar corresponds to N seconds, and the position of the cache control on the playback progress bar after sliding corresponds to K seconds. Then, the target cache size can be KN seconds, indicating that KN seconds of data need to be cached starting from N seconds.
[0055] It is understandable that, regardless of whether the user operates the cache control control, the disclosed embodiment can loop the current cache data. Specifically, according to the position of the cache control control on the play progress bar, the current cache data in the multimedia data is determined to loop the current cache data.
[0056] When the user does not operate the cache control control, the position of the cache control control on the play progress bar is the initial position corresponding to the preset cache size, so that partial data of the preset cache size in the multimedia program can be played in a loop.
[0057] When the user slides the cache operation control to an intermediate position between the initial position and the end position on the play progress bar, the portion before the intermediate position in the multimedia program can be played in a loop.
[0058] When the user slides the cache operation control to the end position on the play progress bar, all parts of the multimedia program can be played in a loop.
[0059] The disclosed embodiments can realize partial or complete loop playback of multimedia programs by caching the position of the control component, thereby improving the flexibility of loop playback of multimedia programs.
[0060] Figure 4 is a detailed flow chart of a cache control method provided by an embodiment of the present disclosure. Figure 4 As shown, the above detailed flow chart includes:
[0061] S301: Cache the multimedia program according to a preset cache size.
[0062] S302: Displaying a multimedia program playback interface to play the multimedia program.
[0063] S303: Displaying a play progress bar of the multimedia program in the play interface, on which a play control control and a cache control control are displayed. The play control control is used to control the play progress of the multimedia program, and the cache control control is used to control the cache progress of the multimedia program.
[0064] S304: Determine whether the user's operation instruction for the cache control control is received. If yes, proceed to S305; if no, proceed to S306.
[0065] S305: Determine the type of the operation instruction.
[0066] S306: Stop caching and loop-play the beginning portion of the multimedia program corresponding to the preset cache size.
[0067] S307: Determine whether the type is the first type. If yes, proceed to S308, if no, proceed to S309.
[0068] S308: Cache the complete multimedia data corresponding to the multimedia program, and play the complete multimedia data in a loop.
[0069] S309: After determining the operation instruction, the position of the cache control control on the play progress bar is determined.
[0070] S310: Determine the target cache size according to the location.
[0071] S311: Continue caching the multimedia program according to the target cache size, and cyclically play the starting portion of the multimedia program corresponding to the sum of the preset cache size and the target cache size.
[0072] It should be noted that the above S301 to S311 in the embodiment of the present disclosure can be flexibly adjusted in sequence on a mutually independent basis, and the embodiment of the present disclosure does not limit their sequence.
[0073] Corresponding to the cache control method of the above embodiment, Figure 5 1 is a structural block diagram of a cache control device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5 , the cache control device 400 includes:
[0074] The play interface display module 401 is used to display the play interface of the multimedia program.
[0075] The cache control control display module 402 is used to display the cache control control of the multimedia program in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
[0076] Optionally, the cache control control display module 402 is used to:
[0077] A play progress bar of the multimedia program is displayed in the play interface. A play control widget and a cache control widget are displayed on the play progress bar. The play control widget is used to control the play progress of the multimedia program.
[0078] Optionally, the device further comprises:
[0079] The operation instruction receiving module is used to receive the operation instruction of the cache control control.
[0080] The control cache module is used to cache the multimedia program according to the operation instruction.
[0081] Optionally, the cache control module is further used for:
[0082] The type of the operation instruction is determined.
[0083] The multimedia program is cached according to the type of the operation instruction, and different types correspond to different cache sizes.
[0084] Optionally, the cache control module is further used for:
[0085] When the type of the operation instruction is the first type, the complete multimedia data corresponding to the multimedia program is cached.
[0086] Optionally, the cache control module is further used for:
[0087] When the type of the operation instruction is the second type, the position of the cache control control on the play progress bar after the operation instruction is determined.
[0088] A target cache size is determined based on the location.
[0089] The multimedia program is cached according to the target cache size.
[0090] Optionally, the playback interface display module 401 is further used for:
[0091] The multimedia program is cached according to a preset cache size, the cache control control is used at the initial position of the play progress bar to indicate that the cached size of the multimedia data is the preset cache size, and the operation instruction adjusts the cache control control in a range from the preset cache size to the size of the multimedia program;
[0092] The playing interface is displayed to play the multimedia program.
[0093] Optionally, the device further comprises:
[0094] The current cache data determination module is used to determine the current cache data in the multimedia data according to the position of the cache control control on the play progress bar.
[0095] The loop playing module is used for loop playing the current cached data.
[0096] The cache control device provided in this embodiment can be used to execute the above Figure 2 The technical solution of the method embodiment shown has similar implementation principles and technical effects, and will not be repeated here in this embodiment.
[0097] Figure 6 6 is a block diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device 600 includes a memory 602 and at least one processor 601 .
[0098] The memory 602 stores computer-executable instructions.
[0099] At least one processor 601 executes the computer execution instructions stored in the memory 602, so that the electronic device 601 implements the aforementioned Figure 2 The method in .
[0100] In addition, the electronic device may further include a receiver 603 and a transmitter 604, wherein the receiver 603 is used to receive information from other devices or equipment and forward it to the processor 601, and the transmitter 604 is used to send the information to other devices or equipment.
[0101] In a first example of the first aspect, an embodiment of the present disclosure provides a cache control method, the method including:
[0102] Display the playback interface of multimedia programs;
[0103] A cache control control of the multimedia program is displayed in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
[0104] Based on the first example of the first aspect, in a second example of the first aspect, displaying a cache control control for the multimedia program in the playback interface includes:
[0105] A play progress bar of the multimedia program is displayed in the play interface. A play control widget and a cache control widget are displayed on the play progress bar. The play control widget is used to control the play progress of the multimedia program.
[0106] Based on the second example of the first aspect, in a third example of the first aspect, the method further includes:
[0107] Receiving an operation instruction for the cache control control;
[0108] The multimedia program is cached according to the operation instruction.
[0109] Based on the third example of the first aspect, in a fourth example of the first aspect, caching the multimedia program according to the operation instruction includes:
[0110] Determining the type of the operation instruction;
[0111] The multimedia program is cached according to the type of the operation instruction, and different types correspond to different cache sizes.
[0112] Based on the fourth example of the first aspect, in a fifth example of the first aspect, caching the multimedia program according to the type of the operation instruction includes:
[0113] When the type of the operation instruction is the first type, the complete multimedia data corresponding to the multimedia program is cached.
[0114] Based on the fourth example of the first aspect, in a sixth example of the first aspect, caching the multimedia program according to the type of the operation instruction includes:
[0115] When the type of the operation instruction is the second type, determining the position of the cache control control on the play progress bar after the operation instruction;
[0116] determining a target cache size based on the location;
[0117] The multimedia program is cached according to the target cache size.
[0118] Based on the third example of the first aspect, in a seventh example of the first aspect, the playback interface for displaying the multimedia program includes:
[0119] The multimedia program is cached according to a preset cache size, the cache control control is used at the initial position of the play progress bar to indicate that the cached size of the multimedia data is the preset cache size, and the operation instruction adjusts the cache control control in a range from the preset cache size to the size of the multimedia program;
[0120] The playing interface is displayed to play the multimedia program.
[0121] Based on the second to seventh examples of the first aspect, in an eighth example of the first aspect, the method further includes:
[0122] Determining current cached data in the multimedia data according to the position of the cache control control on the play progress bar;
[0123] The currently cached data is played in a loop.
[0124] In a first example of the second aspect, a cache control device is provided, the device including:
[0125] A playback interface display module, used to display the playback interface of multimedia programs;
[0126] The cache control control display module is used to display the cache control control of the multimedia program in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
[0127] Based on the first example of the second aspect, in the second example of the second aspect, the cache control control display module is further used to:
[0128] A play progress bar of the multimedia program is displayed in the play interface. A play control widget and a cache control widget are displayed on the play progress bar. The play control widget is used to control the play progress of the multimedia program.
[0129] Based on the second example of the second aspect, in a third example of the second aspect, the device further includes:
[0130] An operation instruction receiving module, used for receiving an operation instruction for the cache control control;
[0131] The control cache module is used to cache the multimedia program according to the operation instruction.
[0132] Based on the third example of the second aspect, in a fourth example of the second aspect, the cache control module is further used to:
[0133] Determining the type of the operation instruction;
[0134] The multimedia program is cached according to the type of the operation instruction, and different types correspond to different cache sizes.
[0135] Based on the fourth example of the second aspect, in a fifth example of the second aspect, the cache control module is further used to:
[0136] When the type of the operation instruction is the first type, the complete multimedia data corresponding to the multimedia program is cached.
[0137] Based on the fourth example of the second aspect, in a sixth example of the second aspect, the cache control module is further used to:
[0138] When the type of the operation instruction is the second type, determining the position of the cache control control on the play progress bar after the operation instruction;
[0139] determining a target cache size based on the location;
[0140] The multimedia program is cached according to the target cache size.
[0141] Based on the third example of the second aspect, in a seventh example of the second aspect, the playback interface display module is further used to:
[0142] The multimedia program is cached according to a preset cache size, the cache control control is used at the initial position of the play progress bar to indicate that the cached size of the multimedia data is the preset cache size, and the operation instruction adjusts the cache control control in a range from the preset cache size to the size of the multimedia program;
[0143] The player interface is displayed to play the multimedia program.
[0144] Based on the second to seventh examples of the second aspect, in an eighth example of the second aspect, the device further includes:
[0145] A current cache data determination module, used to determine the current cache data in the multimedia data according to the position of the cache control control on the play progress bar;
[0146] The loop playing module is used for loop playing the current cached data.
[0147] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory.
[0148] The memory stores computer executable instructions.
[0149] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method described in any one of the first aspects.
[0150] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions, and when a processor executes the computer execution instructions, a computing device implements any method described in the first aspect.
[0151] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program is provided, wherein the computer program is used to implement the method described in any one of the first aspects.
[0152] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0153] 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 are 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.
[0154] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A cache control method, characterized in that: The method comprises: Display the playback interface of multimedia programs; A cache control control of the multimedia program is displayed in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
2. The method according to claim 1, characterized in that The cache control control for displaying the multimedia program in the playback interface includes: A play progress bar of the multimedia program is displayed in the play interface. A play control control and a cache control control are displayed on the play progress bar. The play control control is used to control the play progress of the multimedia program.
3. The method according to claim 2, characterized in that The method further comprises: Receiving an operation instruction for the cache control control; The multimedia program is cached according to the operation instruction.
4. The method according to claim 3, characterized in that The caching of the multimedia program according to the operation instruction includes: Determining the type of the operation instruction; The multimedia program is cached according to the type of the operation instruction, and different types correspond to different cache sizes.
5. The method according to claim 4, characterized in that The caching of the multimedia program according to the type of the operation instruction includes: When the type of the operation instruction is the first type, the complete multimedia data corresponding to the multimedia program is cached.
6. The method according to claim 4, characterized in that The caching of the multimedia program according to the type of the operation instruction includes: When the type of the operation instruction is the second type, determining the position of the cache control control on the play progress bar after the operation instruction; determining a target cache size based on the location; The multimedia program is cached according to the target cache size.
7. The method according to claim 3, characterized in that The playing interface for displaying multimedia programs includes: The multimedia program is cached according to a preset cache size, the cache control control is used at the initial position of the play progress bar to indicate that the cached size of the multimedia data is the preset cache size, and the operation instruction adjusts the cache control control in a range from the preset cache size to the size of the multimedia program; The playing interface is displayed to play the multimedia program.
8. The method according to any one of claims 2 to 7, characterized in that: The method further comprises: Determining current cached data in the multimedia data according to the position of the cache control control on the play progress bar; The currently cached data is played in a loop.
9. A cache control device, characterized in that: include: A playback interface display module, used to display the playback interface of multimedia programs; The cache control control display module is used to display the cache control control of the multimedia program in the play interface, and the cache control control is used to control the cache progress of the multimedia program.
10. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, a computing device implements the method according to any one of claims 1 to 8.
