Video preloading method, device and electronic equipment
The video preloading method enhances playback fluency by allowing users to choose preloading options through floating components, addressing freezes during resume playback and optimizing preloading based on network conditions.
Patent Information
- Application Number
- CN202210342905.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Video playback often freezes when a user resumes playback due to the lack of preloading during pauses, especially for videos not downloadable due to copyright restrictions.
A video preloading method that includes displaying floating information components to remind users about preloading options and allowing them to choose whether to preload based on their needs, with preloading processes adjusted according to network type and progress ratios.
Improves video playback fluency by reducing the likelihood of freezes during resume playback and optimizing preloading based on user inputs and network conditions.
Smart Images

Figure CN114786053B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video loading, and in particular to a video preloading method, device and electronic equipment. Background Art
[0002] When the application client plays a video, in order to avoid freezes during video playback, the video will be preloaded according to the video playback progress to improve the continuity of video playback.
[0003] In the related art, some videos are not supported for downloading by users for the purpose of copyright protection, and users can only watch them online. However, when the user clicks the pause button of the video, the application client stops preloading the video, which causes the video to freeze when the user resumes playing the video. Summary of the invention
[0004] The present invention provides a video preloading method, device and electronic device, which are used to solve the defect in the prior art that video playback is prone to freeze when a user resumes playing the video, and improve the fluency of video playback when the user resumes playing the video.
[0005] The present invention provides a video preloading method, comprising:
[0006] Receiving a user's instruction to pause playback of the first video;
[0007] According to the pause playback instruction, a first floating information component is displayed on the playback interface of the first video; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required;
[0008] receiving a first input of the user to the first floating information component;
[0009] In response to the first input, a first preloading process is performed on the first video.
[0010] According to a video preloading method provided by the present invention, a first control and a second control are provided on the first floating information component; the first input includes a selection operation of the user on the first control;
[0011] The method further comprises:
[0012] When a selection operation of the user on the second control is received, the first preloading process on the first video is prohibited.
[0013] According to a video preloading method provided by the present invention, displaying a first floating information component on the playback interface of the first video according to the pause playback instruction includes:
[0014] According to the pause playback instruction, obtaining the preloading progress of the first video;
[0015] When the preloading progress of the first video is lower than a preset loading ratio, the first floating information component is displayed on the playback interface of the first video.
[0016] According to a video preloading method provided by the present invention, in response to the first input, performing a first preloading process on the first video includes:
[0017] In response to the first input, obtaining the first preloading progress of the first video;
[0018] The first preloading process is performed on the first video according to the preset loading ratio and the first preloading progress.
[0019] According to a video preloading method provided by the present invention, performing the first preloading process on the first video according to a preset loading ratio and the preloading progress includes:
[0020] Determining a first preloaded data amount for the first video according to the preset loading ratio and the preload progress;
[0021] Perform a first preloading process on the first video according to the first preloading data amount.
[0022] According to a video preloading method provided by the present invention, before receiving a user's instruction to pause playback of a first video, the method further includes:
[0023] receiving a play instruction from the user for the first video;
[0024] Detect the network type to which the terminal device is currently connected;
[0025] In the case where the network type is a mobile network, according to the play instruction, a second floating information component is displayed on the play interface of the first video; wherein the content of the second floating information component includes second information; the second information is used to remind the user whether a second preloading process is required when the video is played;
[0026] receiving a second input of the user to the second floating information component;
[0027] In response to the second input, the second preloading process is performed on the first video during video playback.
[0028] According to a video preloading method provided by the present invention, in response to the second input, performing the second preloading process on the first video during video playback, comprising:
[0029] In response to the second input, a third floating information component is displayed on the playback interface of the first video; wherein the content of the third floating information component includes third information; the third information is used to remind the user to determine the first loading ratio of the preloading process;
[0030] receiving a third input from the user to the third floating information component;
[0031] determining a second preloaded data amount for the first video according to the first loading ratio corresponding to the third input;
[0032] According to the second preloaded data amount, the second preload processing is performed on the first video during video playback.
[0033] According to a video preloading method provided by the present invention, after performing the second preloading process on the first video during video playback according to the second preloading data amount, the method further includes:
[0034] When the preloading progress of the first video reaches the first loading ratio, a fourth floating information component is displayed on the playback interface of the first video; wherein the content of the fourth floating information component includes fourth information; the fourth information is used to remind the user whether to perform a third preloading process on the unloaded part of the first video during the video playback process;
[0035] receiving a fourth input from the user to the fourth floating information component;
[0036] In response to the fourth input, the third preloading process is performed on the unloaded portion of the first video during video playback.
[0037] The present invention also provides a video preloading device, comprising:
[0038] A first receiving module is used to receive a user's instruction to pause the playback of the first video;
[0039] A first display module, configured to display a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required;
[0040] A second receiving module, configured to receive a first input of the user to the first floating information component;
[0041] The first processing module is used to perform a first preloading process on the first video in response to the first input.
[0042] According to a video preloading device provided by the present invention, a first control and a second control are arranged on the first floating information component; the first input includes a selection operation of the user on the first control;
[0043] The second receiving module is further used for:
[0044] When a selection operation of the user on the second control is received, the first preloading process on the first video is prohibited.
[0045] According to a video preloading device provided by the present invention, the first display module is specifically used for:
[0046] According to the pause playback instruction, obtaining the preloading progress of the first video;
[0047] When the preloading progress of the first video is lower than a preset loading ratio, the first floating information component is displayed on the playback interface of the first video.
[0048] According to a video preloading device provided by the present invention, the first processing module is specifically used for:
[0049] In response to the first input, obtaining the first preloading progress of the first video;
[0050] The first preloading process is performed on the first video according to the preset loading ratio and the preloading progress.
[0051] According to a video preloading device provided by the present invention, the first processing module is specifically used for:
[0052] Determining a first preloaded data amount for the first video according to the preset loading ratio and the preload progress;
[0053] The first preloading process is performed on the first video according to the first preloading data amount.
[0054] According to a video preloading device provided by the present invention, the device further includes:
[0055] A third receiving module is used to receive a play instruction from the user for the first video;
[0056] A detection module, used to detect the network type to which the terminal device is currently connected;
[0057] a second display module, configured to display a second floating information component on the playback interface of the first video according to the playback instruction when the network type is a mobile network; wherein the content of the second floating information component includes second information; and the second information is configured to remind the user whether a second preloading process is required during video playback;
[0058] A fourth receiving module, configured to receive a second input of the user to the second floating information component according to the play instruction;
[0059] The second processing module is used to perform the second preloading process on the first video during video playback in response to the second input.
[0060] According to a video preloading device provided by the present invention, the second processing module is specifically used for:
[0061] In response to the second input, a third floating information component is displayed on the playback interface of the first video; wherein the content of the third floating information component includes third information; the third information is used to remind the user to determine the first loading ratio of the preloading process;
[0062] receiving a third input from the user to the third floating information component;
[0063] determining a first preloaded data amount for the first video according to the first loading ratio corresponding to the third input;
[0064] According to the first preloaded data amount, the second preload processing is performed on the first video during video playback.
[0065] According to a video preloading device provided by the present invention, the device further includes:
[0066] a third display module, configured to display a fourth floating information component on the playback interface of the first video when the preloading progress of the first video reaches the first loading ratio; wherein the content of the fourth floating information component includes fourth information; the fourth information is configured to remind the user whether to perform a third preloading process on the unloaded portion of the first video during the video playback process;
[0067] A fifth receiving module, configured to receive a fourth input of the user to the fourth floating information component;
[0068] The third processing module is used to respond to the fourth input and perform the third preloading process on the unloaded part of the first video during video playback.
[0069] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned video preloading methods are implemented.
[0070] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned video preloading methods are implemented.
[0071] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned video preloading methods are implemented.
[0072] The video preloading method, device and electronic device provided by the present invention, after receiving a pause playback instruction from the user for the first video, display a first floating information component on the playback interface of the first video according to the pause playback instruction, and the user can choose whether to preload the first video according to his actual needs. When receiving the first input from the user to the first floating information component to indicate the need to preload the first video, the terminal device responds to the first input and performs a first preloading process on the first video. On the one hand, the present invention preloads the first video according to the actual needs of the user, which greatly improves the smoothness of online video playback; on the other hand, the first video continues to be preloaded while the first video is paused, reducing the probability of video playback jams when the user resumes playback of the first video, improving the playback smoothness after resuming playback of the video, and overcoming the playback jams caused by video copyright issues. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 This is one of the flow charts of the video preloading method provided by the present invention;
[0075] Figure 2 is one of the schematic diagrams of the first video playback interface provided by the present invention;
[0076] Figure 3 This is the second flow chart of the video preloading method provided by the present invention;
[0077] Figure 4This is the third flow chart of the video preloading method provided by the present invention;
[0078] Figure 5 This is the second schematic diagram of the first video playback interface provided by the present invention;
[0079] Figure 6 This is the fourth flow chart of the video preloading method provided by the present invention;
[0080] Figure 7 This is the third schematic diagram of the first video playback interface provided by the present invention;
[0081] Figure 8 This is the fifth flow chart of the video preloading method provided by the present invention;
[0082] Fig. 9 This is a fourth schematic diagram of the first video playback interface provided by the present invention;
[0083] Fig.10 It is a structural schematic diagram of the video preloading device provided by the present invention;
[0084] Fig.11 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0086] Combine the following Figure 1-Figure 9 The video preloading method of the present invention is described.
[0087] Figure 1 is one of the flow charts of the video preloading method provided by the present invention, such as Figure 1 As shown, the method includes:
[0088] Step 110: receiving a user's instruction to pause the playback of the first video.
[0089] The execution subject of the present invention is a terminal device, and may also be a video playback device arranged in the terminal device. The video playback device may be implemented by a combination of software and / or hardware.
[0090] Optionally, the terminal device is a device with a video playback function, for example, the terminal device may be a mobile phone, a laptop computer, a tablet computer, a television, or other device.
[0091] The first video is a video played through a terminal device.
[0092] Optionally, during the process of the terminal device playing the first video, the terminal device receives a pause playback instruction for the first video input by the user in the terminal device.
[0093] Optionally, the specific implementation method of the user inputting the pause playback instruction for the first video into the terminal device can be implemented in at least the following three feasible methods.
[0094] In one possible implementation, the display screen of the terminal device may be a touch screen, and the playback interface of the first video includes an icon for pausing the video. The user may click on the icon for pausing the video so that the terminal device receives the user input of a pause instruction for the first video.
[0095] In another possible implementation, a video pause button (physical button) may be provided in the terminal device, and the user may press the video pause button so that the terminal device receives the pause instruction input by the user.
[0096] In another possible implementation, an image acquisition device (such as a camera) is provided in the terminal device, and the image acquisition device can perform image acquisition. The user can pre-set a preset image in the terminal device, and the terminal device can perform recognition processing on the image acquired by the image acquisition device. When it is determined that the image acquired by the image acquisition device matches the preset image, the terminal device generates a pause playback instruction.
[0097] Step 120: Display a first floating information component on the playback interface of the first video according to the pause playback instruction, wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required.
[0098] Step 130: receiving a first input of a user to a first floating information component.
[0099] Next, step 120 and step 130 are described together.
[0100] Optionally, the first floating information component may be a floating window displayed on the playback interface of the first video, wherein the content of the first floating information component includes the first information for reminding the user whether the preloading process is required.
[0101] Optionally, the first information is used to remind the user whether preloading is required. For example, the first information may be: For your subsequent smooth viewing experience, do you need to enable video preloading?
[0102] Optionally, when the terminal device receives a user's instruction to pause playback of the first video, the terminal device displays a first floating information component on the playback interface of the first video.
[0103] It should be noted that, according to the content on the first floating information component, the user inputs an operation to the first floating information component to indicate whether or not to preload the first video.
[0104] The first input is an operation indicating that a first preloading process needs to be performed on the first video.
[0105] Next, combine Figure 2 , taking the terminal device as a mobile phone as an example, this optional implementation method is explained through a specific example.
[0106] Figure 2 is one of the schematic diagrams of the first video playback interface provided by the present invention. Figure 2 , including interface 201 and interface 202.
[0107] Referring to interface 201, the first video is being played in the interface of the terminal device, and there are two play control buttons below the first video: a play pause button and a play progress bar. The play progress bar is used to display the play progress of the first video. The play pause button is a button used to pause the first video during the play of the first video. For example, during the play of the first video, the user can send a pause instruction to the terminal device by pressing the play pause button, and the terminal device pauses the play of the first video after receiving the play pause instruction from the user for the first video.
[0108] As shown in the reference interface 201, when the user presses the play pause button, a pause instruction for the first video is sent to the terminal device.
[0109] As shown in reference interface 202, after the terminal device receives the pause instruction for the first video, it pauses the first video and displays the first floating information component. The first floating information component displays the following reminder content: "For your subsequent smooth viewing experience, do you need to turn on the video preloading process?" At the same time, the first floating information component includes two buttons, which are respectively used to indicate whether the first video needs to be preloaded or not. As shown in interface 202, after the user presses the button corresponding to "need", that is, inputs the first input to the terminal device, the terminal device receives the user's first input to the first floating information component.
[0110] Step 140: In response to the first input, perform a first preloading process on the first video.
[0111] Optionally, the first preloading process is a process of preloading the first video after the terminal device receives a pause playback instruction and receives a first input.
[0112] Optionally, a first control and a second control are arranged on the first floating component. The first input includes a selection operation of the first control by the user.
[0113] Optionally, when a selection operation on the second control is received, the first preloading process is prohibited for the first video, wherein the second control is a control indicating that the first preloading process is not required or prohibited for the first video.
[0114] The video preloading method provided by the present invention, after receiving a pause playback instruction from the user for the first video, displays a first floating information component on the playback interface of the first video according to the pause playback instruction. The user can choose whether to preload the first video according to his actual needs. When receiving the first input from the user to the first floating information component to indicate that the first video needs to be preloaded, the terminal device responds to the first input and performs a first preloading process on the first video. On the one hand, the present invention preloads the first video according to the actual needs of the user, which greatly improves the fluency of online video playback; on the other hand, the first video continues to be preloaded while the first video is paused, reducing the probability of video playback jamming when the user resumes video playback, improving the playback fluency after resuming video playback, and overcoming the playback jamming problem caused by video copyright issues.
[0115] Optionally, Figure 3 FIG. 2 is a flow chart of the video preloading method provided by the present invention. Figure 3 As shown, the method includes:
[0116] Step 310: Receive a user's instruction to pause the first video.
[0117] Optionally, the description and explanation of step 310 may refer to the above description and explanation of step 110, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0118] Step 320: Obtain the preloading progress of the first video according to the pause playback instruction.
[0119] Optionally, the preloading progress is a ratio of the currently loaded video volume of the first video to the total video volume of the first video, wherein the video volume may be a data volume corresponding to the first video.
[0120] Optionally, the total video volume of the first video and the currently loaded video volume of the first video are obtained; and the ratio of the currently loaded video volume of the first video to the total video volume of the first video is determined as the preloading progress of the first video.
[0121] Step 330: When the preloading progress of the first video is lower than a preset loading ratio, a first floating information component is displayed on the playback interface of the first video.
[0122] Optionally, the preset loading ratio is a fixed preloading ratio set during the preloading of the first video during the playback of the first video, for example, 5%, that is, during the playback of the first video, 5% of the video content will be preloaded in advance based on the current playback progress of the first video.
[0123] Optionally, by judging the size of the preloading progress of the first video and the preset loading ratio, it is determined whether to display the first floating information component on the playback interface of the first video. Specifically, when the preloading progress of the first video is lower than the preset loading ratio, the first floating information component is displayed on the playback interface of the first video; when the preloading progress of the first video is not lower than the preset loading ratio, the first floating information component is not displayed on the playback interface of the first video.
[0124] Step 340: Receive a first input from a user on a first floating information component.
[0125] Optionally, the description and explanation of step 340 may refer to the above description and explanation of step 130, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0126] Step 350: In response to the first input, obtain the preloading progress of the first video.
[0127] Optionally, the description and explanation of “obtaining the preloading progress of the first video” can refer to the above description and explanation of step 320, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0128] Step 360: Determine a first preloaded data amount for the first video according to a preset loading ratio and preload progress.
[0129] Optionally, obtain the current playback progress of the first video; determine the difference between the preloading progress and the current playback progress of the first video as the loaded ratio of the first video; determine the difference between the preset loading ratio and the loaded ratio of the first video as the preloading ratio; and determine the first preloading data amount for the first video based on the preloading ratio.
[0130] Below, a possible implementation manner of determining the first preloaded data amount for the first video according to the preload ratio is exemplarily described.
[0131] In a possible implementation, the resolution and the picture refresh rate of the first video are obtained; according to the resolution, the picture refresh rate and the preloading ratio of the first video, a method for determining the first preloading data amount of the first video may refer to Formula 1:
[0132] The first preloaded data amount = resolution × screen refresh rate × preload ratio formula 1. Below, this possible implementation method is explained through a specific example.
[0133] For example, the resolution of the first video is 1024×1024, the screen refresh rate is 100 frames / second, and the preloading ratio is 5%, then the first preloading data amount of the first video = 1024×1024×100×0.05=5242880 (bytes).
[0134] Step 370: Perform a first preloading process on the first video according to the first preloading data amount.
[0135] Based on step 360, the first preloaded data amount for the first video is determined, and then the first preload process is performed on the first video.
[0136] Optionally, for the first video, the first preloaded data volume is loaded based on the preload progress. Specifically, based on the first preloaded data volume, the video data transmission range is determined, and the data transmission range is sent to the server. Afterwards, the server returns the video data stream corresponding to the video data transmission range to the terminal device. It should be noted that the terminal device plays the first video according to the video data stream corresponding to the first video.
[0137] For example, if the first preloaded data volume is 5242880 bytes, the video data transmission range is 0-5242880 bytes. The terminal device sends the video data range (0-5242880) to the server, and the server returns the video data stream corresponding to the video data range (0-5242880) to the terminal device. The terminal device receives the video data stream corresponding to the video data range (0-5242880), and the first preload processing of the first video in the video data range (0-5242880) is completed.
[0138] The video preloading method provided by the present invention, after receiving a user's instruction to pause playback of a first video, does not need to display a first floating information component on the playback interface of the first video when the preloading progress of the first video is greater than a preset loading ratio. When the preloading progress of the first video is lower than the preset loading ratio, the first floating information component is displayed on the playback interface of the first video, and then a responsive preloading process is performed based on the user's input to the first floating information component, which can provide a personalized choice for the user, and the user can determine whether the first video needs to be preloaded according to his or her own needs. At the same time, the first preloading process is performed on the first video according to the first preloading data amount, which can ensure that the preloading amount of the first video accurately reaches the preset loading ratio.
[0139] Optionally, Figure 4 FIG. 3 is a flow chart of the video preloading method provided by the present invention. Figure 4 As shown, the method includes:
[0140] Step 410: Receive a play instruction from a user for a first video.
[0141] Optionally, the specific implementation method of the user inputting the play instruction for the first video into the terminal device may be implemented in at least the following three feasible methods.
[0142] In one possible implementation, the display screen of the terminal device may be a touch screen, and the playback interface of the first video includes a video playback icon, and the user may click on the video playback icon so that the terminal device receives the user input of a playback instruction for the first video.
[0143] In another possible implementation, a video play button (physical button) may be provided in the terminal device, and the user may press the video play button so that the terminal device receives the play instruction input by the user.
[0144] In another possible implementation, an image acquisition device (such as a camera) is provided in the terminal device, and the image acquisition device can perform image acquisition. The user can pre-set a preset image in the terminal device, and the terminal device can perform recognition processing on the image acquired by the image acquisition device. When it is determined that the image acquired by the image acquisition device matches the preset image, the terminal device generates a play instruction.
[0145] Step 420: Detect the network type of the network currently accessed by the terminal device.
[0146] Optionally, the network type includes WiFi network and mobile network.
[0147] Optionally, different network types correspond to different identifiers, and the terminal device stores the network identifier corresponding to the currently accessed network. The network type of the network currently accessed by the terminal device is determined according to the identifier of the currently accessed network in the terminal device, that is, the network type corresponding to the current network identifier of the terminal device is determined as the network type of the network currently accessed by the terminal device.
[0148] Step 430: When the network type is a mobile network, a second floating information component is displayed on the playback interface of the first video according to the playback instruction. The content of the second floating information component includes second information. The second information is used to remind the user whether the second preloading process is required when the video is played.
[0149] It should be noted that, when the network type to which the terminal device is currently connected is a non-mobile network, the terminal device can directly play the first video according to the play instruction.
[0150] Step 440: receiving a second input of the user to the second floating information component.
[0151] Next, steps 430 and 440 are described together.
[0152] Optionally, the second preloading process is a process in which the terminal device preloads the first video during normal playback of the first video after receiving a play instruction from the user for the first video.
[0153] It should be noted that when the network type currently accessed by the user terminal device is a mobile network, considering that different users have different traffic packages, for example, some users have a 20M traffic package, while some users have unlimited traffic. Users can choose whether to enable video preloading processing based on their actual traffic package. This can fully improve the usage rate of traffic for users and avoid traffic waste caused by useless downloads.
[0154] Optionally, the first information is used to remind the user whether preloading is required. For example, the first information may be: The size of this video is 100M. For your subsequent smooth viewing experience, do you need to enable video preloading?
[0155] Optionally, when the terminal device receives a play instruction from the user for the first video, the terminal device displays a first floating information component on the play interface of the first video.
[0156] The user inputs an operation to the second floating information component to indicate whether or not to preload the first video during playback of the first video, based on the content on the second floating information component.
[0157] The second input is an operation indicating that a second preloading process needs to be performed on the first video.
[0158] Next, combine Figure 5 , taking the terminal device as a mobile phone as an example, this optional implementation method is explained through a specific example.
[0159] Figure 5 This is the second schematic diagram of the first video playback interface provided by the present invention.
[0160] See also Figure 5 As shown, after the terminal device receives the play instruction for the first video, the second floating information component is displayed on the first video playback interface. The second floating information component displays the following reminder content: The size of this video is 100M. For your subsequent smooth viewing experience, do you need to enable video preloading processing? At the same time, the second floating information component includes two first controls and second controls indicating "need" and "not needed" respectively. Figure 5 , the user presses the key corresponding to "need", that is, inputs the second input to the terminal device, and the terminal device receives the user's second input to the second floating information component.
[0161] Step 450: In response to the second input, perform a second preloading process on the first video during video playback.
[0162] Optionally, Figure 6 FIG. 4 is a flow chart of the video preloading method provided by the present invention. Figure 6 As shown, the implementation of step 450 may include steps 610 to 640, wherein:
[0163] Step 610: In response to the second input, a third floating information component is displayed on the playback interface of the first video, wherein the content of the third floating information component includes third information, and the third information is used to remind the user to determine the first loading ratio of the preloading process.
[0164] Step 620: Receive a third input from the user on the third floating information component.
[0165] Next, steps 610 and 620 are described together.
[0166] Optionally, the third information is used to remind the user to determine the first loading ratio of the preloading process. For example, the first information may be: the video size is 100M, please select the preloading ratio according to your actual package traffic situation.
[0167] Optionally, when the terminal device receives a second input from the user for the first video, the terminal device displays a third floating information component on the playback interface of the first video in response to the second input.
[0168] The user inputs a first loading ratio for indicating preloading of the first video into the third floating information component according to the content on the third floating information component.
[0169] The third input is an operation of instructing a first loading ratio for preloading the first video.
[0170] Next, combine Figure 7 , taking the terminal device as a mobile phone as an example, this optional implementation method is explained through a specific example.
[0171] Optionally, Figure 7 This is a third schematic diagram of the first video playback interface provided by the present invention, such as Figure 7 As shown, the method includes:
[0172] See also Figure 7 As shown, after the terminal device receives the second input for the first video, the third floating information component is displayed on the first video playback interface. Among them, the second floating information component displays the following reminder content: "The size of this video is 100M, please select the preloading ratio according to your actual package traffic situation:". At the same time, the controls in the third floating information component include:, user-defined preloading ratio controls and "Confirm" controls. Among them, the four preloading ratios are: 25%, 50%, 75%, and 100%.
[0173] For example, see Figure 7 As shown, the preloading ratio selected by the user is 50%. When the user presses the "Confirm" control, the third input of the third floating information component is completed.
[0174] After the user inputs the third input to the third floating information component, the terminal device receives the third input to the third floating information component, that is, the terminal device obtains the first loading ratio corresponding to the third input.
[0175] Step 630: Determine a second pre-loaded data amount for the first video according to the first loading ratio corresponding to the third input.
[0176] Based on the above step 620, the terminal device obtains the first loading ratio corresponding to the third input, and then determines the second preloaded data amount corresponding to the first preloaded ratio in the first video.
[0177] Optionally, the description and explanation of "determining the second preloaded data amount for the first video" can refer to the above description and explanation of step 360, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0178] Step 640: Perform a second preloading process on the first video during video playback according to the second preloading data amount.
[0179] Optionally, the description and explanation of step 640 may refer to the above description and explanation of step 370, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0180] The video preloading method provided by the present invention receives a play instruction from a user for a first video; the terminal device responds to the play instruction and displays a second floating information component to obtain a second input from the user; according to the second input from the user, the first preloading ratio of the user for the first video is obtained; according to the first loading ratio corresponding to the third input, the second preloading data volume for the first video is determined. According to the second preloading data volume, the first video is subjected to a second preloading process during the video playback process. This greatly improves the fluency during the playback process of the first video and greatly enhances the viewing experience of the user.
[0181] Optionally, Figure 8 FIG. 5 is a flowchart of the video preloading method provided by the present invention. Figure 8 As shown, the method includes:
[0182] Step 810: When the preloading progress of the first video reaches the first loading ratio, a fourth floating information component is displayed on the playback interface of the first video. The content of the fourth floating information component includes fourth information. The fourth information is used to remind the user whether to perform a third preloading process on the unloaded part of the first video during the video playback process.
[0183] Step 820: Receive a fourth input from the user on a fourth floating information component.
[0184] Next, step 810 and step 820 are described together.
[0185] Optionally, during the playback of the first video, when the preloading progress of the first video reaches the first loading ratio, a fourth floating information component is displayed on the playback interface of the first video, wherein the content of the fourth floating information component includes fourth information.
[0186] The fourth information is used to remind the user whether to perform a third preloading process on the unloaded part of the first video during the video playback. For example, if the preloaded video of the first loading ratio you just set has been loaded, do you need to preload the remaining video content?
[0187] The fourth input is an operation indicating that a third preloading process needs to be performed on the unloaded portion of the first video.
[0188] Next, combine Fig. 9 Taking a mobile phone as an example, this optional implementation method is described through a specific example. Fig. 9 This is the fourth schematic diagram of the first video playback interface provided by the present invention.
[0189] See also Fig. 9 As shown, when the preloading progress of the first video reaches the first loading ratio, the fourth floating information component is displayed on the first video playback interface. The fourth floating information component displays the following reminder content: "The preloading video of the first loading ratio you just set has been loaded. Do you need to preload the remaining video content?" At the same time, the fourth floating information component includes two first controls and second controls indicating "need" and "not needed" respectively. Fig. 9 , the user presses the key corresponding to "need", that is, inputs the fourth input to the terminal device, and the terminal device receives the user's fourth input to the fourth floating information component.
[0190] Step 830: In response to the fourth input, perform a third preloading process on the unloaded portion of the first video during video playback.
[0191] Optionally, regarding the description and explanation of "after the terminal device receives the fourth input, in response to the fourth input, performing a third preloading process on the unloaded portion of the first video during video playback", you can refer to the description and explanation of step 450, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0192] The video preloading method provided by the present invention displays a fourth floating information component on the playback interface of the first video when the preloading progress of the first video reaches the first loading ratio; by displaying the fourth floating information component, the user is prompted that the preloaded video of the first loading ratio just set has been loaded and whether the remaining video content needs to be preloaded; if the user inputs a fourth input to the first floating information component to indicate that the unloaded part of the first video needs to be subjected to a third preloading process, the terminal device responds to the fourth input and performs a third preloading process on the unloaded part of the first video. This further realizes that the unloaded part of the first video can be preloaded according to user needs, so that the video of the first video can receive more preloading processing.
[0193] The video preloading device provided by the present invention is described below. The video preloading device described below and the video preloading method described above can be referred to each other.
[0194] Combine the following Fig.10 The video preloading device of the present invention is described.
[0195] The present invention provides a video preloading device. Fig.10 is a schematic diagram of the structure of the video preloading device provided by the present invention, such as Fig.10 As shown, the video preloading device 1000 includes: a first receiving module 1001, a first display module 1002, a second receiving module 1003 and a first processing module 1004; wherein,
[0196] The first receiving module 1001 is used to receive a user's instruction to pause the playback of the first video;
[0197] The first display module 1002 is used to display a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required;
[0198] The second receiving module 1003 is used to receive a first input of the user to the first floating information component;
[0199] The first processing module 1004 is configured to perform a first preloading process on the first video in response to the first input.
[0200] The video preloading device provided by the present invention, after receiving a pause playback instruction from the user for the first video, displays a first floating information component on the playback interface of the first video according to the pause playback instruction. The user can choose whether to preload the first video according to his actual needs. When receiving the first input from the user to the first floating information component indicating the need to preload the first video, the terminal device responds to the first input and performs a first preloading process on the first video. On the one hand, the present invention preloads the first video according to the actual needs of the user, which greatly improves the fluency of online video playback; on the other hand, the first video continues to be preloaded while the first video is paused, reducing the probability of video playback jamming when the user resumes video playback, improving the playback fluency after resuming video playback, and overcoming the playback jamming problem caused by video copyright issues.
[0201] Optionally, a first control and a second control are provided on the first floating information component; the first input includes a selection operation of the user on the first control;
[0202] The second receiving module 1003 is further used for:
[0203] When a selection operation of the user on the second control is received, the first preloading process on the first video is prohibited.
[0204] Optionally, the first display module 1002 is specifically used for:
[0205] According to the pause playback instruction, obtaining the preloading progress of the first video;
[0206] When the preloading progress of the first video is lower than a preset loading ratio, the first floating information component is displayed on the playback interface of the first video.
[0207] Optionally, the first processing module 1004 is specifically configured to:
[0208] In response to the first input, obtaining the first preloading progress of the first video;
[0209] The first preloading process is performed on the first video according to the preset loading ratio and the preloading progress.
[0210] Optionally, the first processing module 1004 is specifically configured to:
[0211] Determining a first preloaded data amount for the first video according to the preset loading ratio and the preload progress;
[0212] The first preloading process is performed on the first video according to the first preloading data amount.
[0213] Optionally, the video preloading device 1000 further includes:
[0214] A third receiving module is used to receive a play instruction from the user for the first video;
[0215] A detection module, used to detect the network type to which the terminal device is currently connected;
[0216] a second display module, configured to display a second floating information component on the playback interface of the first video according to the playback instruction when the network type is a mobile network; wherein the content of the second floating information component includes second information; and the second information is configured to remind the user whether a second preloading process is required during video playback;
[0217] A fourth receiving module, configured to receive a second input of the user to the second floating information component;
[0218] The second processing module is used to perform the second preloading process on the first video during video playback in response to the second input.
[0219] Optionally, the second processing module is specifically configured to:
[0220] In response to the second input, a third floating information component is displayed on the playback interface of the first video; wherein the content of the third floating information component includes third information; the third information is used to remind the user to determine the first loading ratio of the preloading process;
[0221] receiving a third input from the user to the third floating information component;
[0222] determining a first preloaded data amount for the first video according to the first loading ratio corresponding to the third input;
[0223] According to the first preloaded data amount, the second preload processing is performed on the first video during video playback.
[0224] Optionally, the video preloading device 1000 further includes:
[0225] a third display module, configured to display a fourth floating information component on the playback interface of the first video when the preloading progress of the first video reaches the first loading ratio; wherein the content of the fourth floating information component includes fourth information; the fourth information is configured to remind the user whether to perform a third preloading process on the unloaded portion of the first video during the video playback process;
[0226] A fifth receiving module, configured to receive a fourth input of the user to the fourth floating information component;
[0227] The third processing module is used to respond to the fourth input and perform the third preloading process on the unloaded part of the first video during video playback.
[0228] The video preloading device provided by the present invention can realize Figures 1 to 9 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0229] Optionally, the present invention provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned video preloading method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0230] Fig.11 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Fig.11As shown, the electronic device 1100 may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic instructions in the memory 1130 to execute the video preloading method, which includes: receiving a user's pause playback instruction for a first video; displaying a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes a first information for reminding the user whether a preloading process is required; receiving a first input of the user to the first floating information component; and performing a first preloading process on the first video in response to the first input.
[0231] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0232] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the video preloading method provided by the above-mentioned methods, which includes: receiving a user's pause playback instruction for a first video; displaying a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required; receiving a first input from the user to the first floating information component; and performing a first preloading processing on the first video in response to the first input.
[0233] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the video preloading method provided by the above-mentioned methods, the method comprising: receiving a user's pause playback instruction for a first video; displaying a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required; receiving a first input from the user to the first floating information component; and performing a first preloading processing on the first video in response to the first input.
[0234] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0235] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0236] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A video preloading method, characterized in that: include: Receive a user's pause playback instruction for a first video; wherein, before receiving the user's pause playback instruction for the first video, the method also includes: receiving the user's play instruction for the first video; detecting the network type to which the terminal device is currently connected; when the network type is a mobile network, according to the play instruction, displaying a second floating information component on the playback interface of the first video; wherein the content of the second floating information component includes second information; the second information is used to remind the user whether a second preloading process is required during video playback; receiving the user's second input to the second floating information component; in response to the second input, preloading the first video during video playback The method comprises: performing the second preloading process on the first video during the video playback in response to the second input, including: displaying a third floating information component on the playback interface of the first video in response to the second input; wherein the content of the third floating information component includes third information; the third information is used to remind the user to determine the first loading ratio of the preloading process; receiving the third input of the user to the third floating information component; determining the second preloading data amount for the first video according to the first loading ratio corresponding to the third input; performing the second preloading process on the first video during the video playback according to the second preloading data amount; According to the pause playback instruction, a first floating information component is displayed on the playback interface of the first video; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required; receiving a first input of the user to the first floating information component; In response to the first input, a first preloading process is performed on the first video.
2. The video preloading method according to claim 1, characterized in that: The first floating information component is provided with a first control and a second control; the first input includes a selection operation of the user on the first control; The method further comprises: When a selection operation of the user on the second control is received, the first preloading process on the first video is prohibited.
3. The video preloading method according to claim 1, characterized in that: The step of displaying a first floating information component on the playback interface of the first video according to the pause playback instruction includes: According to the pause playback instruction, obtaining the preloading progress of the first video; When the preloading progress of the first video is lower than a preset loading ratio, the first floating information component is displayed on the playback interface of the first video.
4. The video preloading method according to claim 3, characterized in that: The step of performing a first preloading process on the first video in response to the first input includes: In response to the first input, obtaining a preloading progress of the first video; The first preloading process is performed on the first video according to the preset loading ratio and the preloading progress.
5. The video preloading method according to claim 1, characterized in that: After performing the second preloading process on the first video during video playback according to the second preloading data amount, the method further includes: When the preloading progress of the first video reaches the first loading ratio, a fourth floating information component is displayed on the playback interface of the first video; wherein the content of the fourth floating information component includes fourth information; the fourth information is used to remind the user whether to perform a third preloading process on the unloaded part of the first video during the video playback process; receiving a fourth input from the user to the fourth floating information component; In response to the fourth input, the third preloading process is performed on the unloaded portion of the first video during video playback.
6. A video preloading device, characterized in that: include: The first receiving module is used to receive a user's pause playback instruction for a first video; wherein, before receiving the user's pause playback instruction for the first video, it also includes: receiving the user's play instruction for the first video; detecting the network type of the network currently connected to the terminal device; when the network type is a mobile network, according to the play instruction, displaying a second floating information component on the play interface of the first video; wherein the content of the second floating information component includes second information; the second information is used to remind the user whether a second preloading process is required during video playback; receiving the user's second input to the second floating information component; in response to the second input, pausing the first video during video playback The method comprises: performing the second preloading process on the first video during the video playback process in response to the second input, including: displaying a third floating information component on the playback interface of the first video in response to the second input; wherein the content of the third floating information component includes third information; the third information is used to remind the user to determine the first loading ratio of the preloading process; receiving the third input of the user to the third floating information component; determining the second preloading data amount for the first video according to the first loading ratio corresponding to the third input; performing the second preloading process on the first video during the video playback process according to the second preloading data amount; A first display module, configured to display a first floating information component on the playback interface of the first video according to the pause playback instruction; wherein the content of the first floating information component includes first information for reminding the user whether preloading processing is required; A second receiving module, configured to receive a first input of the user to the first floating information component; A processing module is used to perform a first preloading process on the first video in response to the first input.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the video preloading method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the video preloading method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Media file caching method and media player
CN104866503A
Network connection method and device, computer readable storage medium and terminal equipment
CN114051270A
