WO2023093591A1 - 下载方法、装置、电子设备及存储介质 - Google Patents

下载方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023093591A1
WO2023093591A1 PCT/CN2022/132244 CN2022132244W WO2023093591A1 WO 2023093591 A1 WO2023093591 A1 WO 2023093591A1 CN 2022132244 W CN2022132244 W CN 2022132244W WO 2023093591 A1 WO2023093591 A1 WO 2023093591A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
download
target video
time point
download speed
Prior art date
Application number
PCT/CN2022/132244
Other languages
English (en)
French (fr)
Inventor
叶佳辉
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023093591A1 publication Critical patent/WO2023093591A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6373Control signals issued by the client directed to the server or network components for rate control, e.g. request to the server to modify its transmission rate

Definitions

  • the application belongs to the technical field of audio and video playback, and specifically relates to a downloading method, device, electronic equipment and storage medium.
  • An application scenario of electronic devices is that when a user uses an electronic device to download a video while playing the video, the electronic device calls the system background to download other files, which will reduce the video download speed and cause the video to freeze.
  • a higher download threshold is set for the video download speed
  • a lower download threshold is set for the download speed of other files, that is, the total network speed is configured and a higher network speed is used. Download videos and use lower internet speeds to download other tasks to ensure smooth video playback.
  • video downloading takes a relatively short time, while other files take a long time to complete downloading.
  • the configuration of the total network speed is unreasonable, and network resources cannot be fully utilized.
  • the purpose of the embodiment of the present application is a downloading method, device, electronic device and storage medium, which can solve the problem that the configuration mode of the total network speed is unreasonable and cannot make full use of network resources.
  • the embodiment of the present application provides a download method, the method includes:
  • the download task includes a target download task
  • obtain the playing time information of the target video and the target download task is other download tasks except the corresponding download task of the target video;
  • the target video includes at least one target time point.
  • the embodiment of the present application provides a downloading device, which includes:
  • the detection module is used to detect the download task during the process of downloading and playing the target video
  • An acquisition module configured to acquire the playback time information of the target video when the download task includes a target download task, where the target download task is a download task other than the download task corresponding to the target video;
  • a first adjustment module configured to adjust the download speed of the target download task and the target video when the play time information reaches the target time point of the target video
  • the target video includes at least one target time point.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • a computer software product is provided, the computer software product is stored in a non-transitory storage medium, and the computer software product is executed by at least one processor to implement the method described in the first aspect step.
  • an electronic device configured to execute the steps of the method described in the first aspect.
  • the download task is detected; when the download task includes the target download task, the playback time information of the target video is obtained; when the playback time information reaches the target time point of the target video case, adjust the target download task and the download speed of the target video.
  • the total network speed is reasonably configured by adjusting the target download task and the download speed of the target video, so as to make full use of network resources.
  • Fig. 1 is a flow chart of the downloading method provided by the embodiment of the present application.
  • FIG. 2 is one of the application scenario diagrams of the download method provided by the embodiment of the present application.
  • FIG. 3 is the second application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 4 is the third application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 5 is the fourth application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 6 is the fifth application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 7 is the sixth application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 8 is the seventh application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 9 is the eighth application scenario diagram of the download method provided by the embodiment of the present application.
  • FIG. 10 is an application flowchart of the download method provided by the embodiment of the present application.
  • Fig. 11 is a structural diagram of a downloading device provided by an embodiment of the present application.
  • FIG. 12 is a structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 is a hardware structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of a downloading method provided by an embodiment of the present application.
  • the downloading method provided by the embodiment of this application includes the following steps:
  • the downloading method provided in the embodiment of the present application can be applied to a terminal, and the following uses the application of the method to a terminal as an example for illustration.
  • a download task is detected, wherein the above target video can be understood as a video played by the terminal.
  • the above process of downloading and playing the target video refers to downloading the target video while playing the target video, that is, the download task includes the download task corresponding to the target video.
  • the download task can be detected by viewing the download process invoked by the terminal.
  • the download task includes other download tasks other than the download task corresponding to the target video, that is, the target download task
  • the playback time information of the target video is obtained, wherein the above playback time information can be understood as the target video The current playback progress of .
  • the above-mentioned target video includes at least one target time point, and the above-mentioned target time point may be preset, or may be determined by the terminal according to relevant information of the target video.
  • the target download task and the download speed of the target video are adjusted.
  • the download speed corresponding to the target video can be called the first download speed
  • the download speed corresponding to the target download task can be called the second download speed. It should be understood that the sum of the first download speed and the second download speed is the total network download speed. speed.
  • the download task is detected; when the download task includes the target download task, the playback time information of the target video is obtained; when the playback time information reaches the target time point of the target video case, adjust the target download task and the download speed of the target video.
  • the total network speed is reasonably configured by adjusting the target download task and the download speed of the target video, so as to make full use of network resources.
  • the above-mentioned download speed is dynamically adjusted, so as to download the target download task while ensuring smooth playback of the target video.
  • adjusting the target download task and the download speed of the target video includes:
  • the playing time information reaches the second target time point of the target video, based on the user behavior characteristics corresponding to the second target time point, adjust the first download speed corresponding to the download and play target video, and The second download speed corresponding to the target download task is adjusted as a difference result between a preset total network speed and the first download speed.
  • the aforementioned target time point includes a first target time point and a second target time point.
  • An optional implementation manner is that the terminal acquires video information corresponding to the target video in advance, determines the location information of other segments such as the opening song and the ending song of the target video, and determines the start time corresponding to these location information as the target time point.
  • Another optional implementation manner is that the user can customize the target time point in the target video.
  • Another optional implementation manner is to train an information model, and use the trained information model to predict the target time point in the target video. Specifically, each video and the video information corresponding to each video are collected as the training samples of the above-mentioned information model to train the information model. After the training is completed, the target video is input into the trained information model to obtain the information in the target video. target time point.
  • the playback time information reaches the first target time point of the target video
  • the first download speed corresponding to the target video is adjusted
  • the second download speed corresponding to the target download task is adjusted so that the total network speed is the same as the above-mentioned The result of the difference between the first download speed.
  • the playback time information reaches the second target time point of the target video, based on the user behavior characteristics corresponding to the second target time point, the first download speed corresponding to the target video is adjusted, and the second download speed corresponding to the target download task is adjusted. Adjusted to be the result of the difference between the total network speed and the first download speed above.
  • an optional implementation manner is that the terminal obtains buried point data within a preset time period, and determines user behavior characteristics corresponding to the target time point according to the buried point data. For example, get the number of times the user skips the opening song in one month. If the number is greater than the preset threshold, it is determined that when the target time point is the start time corresponding to the opening song, the user behavior characteristic corresponding to the target time point is skipping Opening song.
  • Another optional implementation manner is that the user can customize the user behavior characteristics corresponding to the target time point.
  • Another optional implementation manner is to preset user behavior characteristics corresponding to the target time point.
  • Another optional implementation manner is to train the user model, and use the trained user model to predict the user behavior characteristics corresponding to the target time point. Specifically, collect the buried point data representing the user behavior of the user within a preset period of time, use the above buried point data and video as the training samples of the above user model to train the user model, and after the training is completed, input the target video into From the trained user model, determine the user behavior characteristics corresponding to the target time point.
  • the adjusting the first download speed corresponding to the download and play target video based on the user behavior characteristics corresponding to the second target time point includes:
  • the current download speed of the target video is determined as the first download speed.
  • the second target time point includes the first time point, and the first time point is the start time point of the ending song of the target video.
  • the target video when the playing time information of the target video reaches the first time point, if the user behavior corresponding to the first time point indicates that the ending song is skipped, the target video will continue to be loaded until the second time point corresponding to the target video. At the point in time, adjust the first download speed corresponding to the target video.
  • the second time point is located after the first time point.
  • the current download speed of the target video is determined as the first download speed , load as the target video using the first download speed.
  • the abscissa in FIG. 2 represents the playing time of the target video, and the ordinate represents the first loading speed corresponding to the target video.
  • point A is the starting time point of the ending song, and after point A, all remaining target videos are loaded using the first download speed.
  • adjusting the first download speed corresponding to the target video includes:
  • the first download speed corresponding to the target video is adjusted using a first adjustment manner.
  • the playing time information of the target video reaches the first time point, and the user behavior corresponding to the first time point indicates skipping the ending song, continue to download the target video at the current download speed of the target video until the target video corresponds to
  • the playback time information reaches a second time point, wherein the second time point may be preset.
  • the second time point to the first time point may be referred to as a target time period, and if the first input to the target video is received within the target time period, the target video is turned off.
  • the pointing object of the above-mentioned first input is the target video, and the above-mentioned first input may be touch input, sliding input or other types of input, which is not specifically limited here.
  • the abscissa in FIG. 3 represents the playing time of the target video
  • the ordinate represents the first loading speed corresponding to the target video.
  • t1 in Figure 3 is the first time point
  • t2 is any time point between the first time point and the second time point, during the period from t1 to t2, use the current
  • the download speed downloads the target video, and when the first input is received at t2, the target video is closed.
  • the first adjustment method is used to adjust the first download speed corresponding to the target video, and the second download speed corresponding to the target download task Adjust to the difference between the total network speed and the first download speed above.
  • the abscissa in FIG. 4 represents the playing time of the target video
  • the ordinate represents the first loading speed corresponding to the target video.
  • t1 in FIG. 4 is any time point between the first time point and the second time point
  • t2 is the second time point
  • t3 is the end node of the target video.
  • the first input is not received at the second time point, indicating that the user needs to watch the ending song
  • the first download speed of the target video is adjusted, and the ending song of the target video is loaded.
  • the download speed of the target video is dynamically adjusted. While playing the target video smoothly, download the target download task, so as to make full use of network resources.
  • adjusting the first download speed corresponding to the downloading and playing target video includes:
  • the first adjustment method is used to adjust the first download speed corresponding to the target video.
  • the above-mentioned first target segment may be an easter egg part hidden in the ending song of the target video.
  • the target video includes the first target segment
  • the first download speed corresponding to the target video is adjusted
  • the second download speed corresponding to the target download task is adjusted to the difference between the total network speed and the first download speed.
  • the abscissa in FIG. 5 represents the playing time of the target video, and the ordinate represents the first loading speed corresponding to the target video.
  • t1 in FIG. 5 is the first time point, that is, the starting time point of the ending song
  • t2 is the end node of the target video.
  • the first adjustment method is used at node t1 to adjust the first download speed of the target video.
  • the download speed of the target video is dynamically adjusted, and the target video is played smoothly while ensuring smooth playback of the target video. Download tasks to download, so as to make full use of network resources.
  • adjusting the first download speed corresponding to the downloading and playing target video includes:
  • the first download speed corresponding to the target video is adjusted using a first adjustment manner.
  • the above-mentioned third time point is the starting time point of the second target segment in the target video, and the above-mentioned second target segment may be a highlight segment or a climax segment in the target video.
  • the starting time point corresponding to the highlights in the target video can be determined, that is, the starting time point of the second target segment in the target video, and the starting time point can be determined as the first three time points.
  • the playback progress of the target video reaches the third time point, in order to allow the user to watch the highlights in the target video smoothly, use the first adjustment method to adjust the first download speed corresponding to the target video, and set the target download task
  • the corresponding second download speed is adjusted as the difference between the total network speed and the first download speed.
  • the abscissa in FIG. 6 represents the playing time of the target video, and the ordinate represents the first loading speed corresponding to the target video.
  • t1 in FIG. 6 is the third time point.
  • the first adjustment method is used to adjust the first download speed of the target video.
  • the download speed of the target video is dynamically adjusted, and the target download task is downloaded while ensuring smooth playback of the highlight part, so as to fully Make use of network resources.
  • the method further includes:
  • the download task includes a target download task, receiving a second input of the target video
  • the pointing object corresponding to the second input is the target video, and the second input may be touch input, sliding input or other types of input.
  • the above-mentioned second input may be a user sliding a progress bar or a fast forward instruction.
  • the first adjustment method is used to adjust the first download speed corresponding to the target video, and the second download speed corresponding to the target download task The speed is adjusted as the difference between the total network speed and the first download speed.
  • FIG. 7 The abscissa in FIG. 7 represents the playing time of the target video, and the ordinate represents the first loading speed corresponding to the target video.
  • t1 shown in FIG. 7 is the input time corresponding to the second input.
  • the download speed of the target video is dynamically adjusted, so as to ensure smooth playback of highlights, and download the target download task.
  • the adjusting the first download speed corresponding to the download and play target video based on the user behavior characteristics corresponding to the second target time point includes:
  • the first adjustment method is used to adjust the first download speed corresponding to the target video
  • the first download speed corresponding to the target video is adjusted using the second adjustment method.
  • the above-mentioned second target time point includes a fourth time point, and the above-mentioned fourth time point is the start time point of the title track of the target video.
  • the first adjustment method is used to adjust The first download speed corresponding to the target video.
  • the abscissa of Figure 8 is the playback time of the target video, and the ordinate is the first download speed corresponding to the target video, the curve shown in Figure 8 can be characterized, using the first adjustment method, adjust the first download speed When the download speed is 1, the variation trend of the first download speed.
  • the second adjustment method is used to adjust the first time point corresponding to the target video. download speed.
  • the abscissa of Figure 9 is the playback time of the target video, and the ordinate is the first download speed corresponding to the target video, the curve shown in Figure 9 can be characterized, using the second adjustment method, adjust the first download speed When the download speed is 1, the variation trend of the first download speed.
  • said using the first adjustment method, adjusting the first download speed corresponding to the target video includes:
  • the first download speed is decelerated using a third preset function until the first download speed is equal to the second download speed.
  • the adjustment of the first download speed can be divided into three stages:
  • the first download speed is accelerated by using the first preset function, and the first download speed is accelerated to the total network speed, so as to quickly load the target video. It should be understood that at this stage, the second download speed corresponding to the target download task is reduced until the second download speed is reduced to zero.
  • the second download speed is reduced by using the second preset function. It should be understood that, in this stage, the second download speed corresponding to the target download task is accelerated.
  • the third preset function is used to slow down the first download speed. It should be understood that at this stage, the second download speed corresponding to the target download task is continued to be slowed down. Until the first download speed is equal to the second download speed.
  • the decrease speed corresponding to the first download speed within the second preset time period is greater than the decrease speed corresponding to the first download speed within the third preset time period.
  • the first download speed can be adjusted by the following formula:
  • V cos(sin(cos(x+1.4) ⁇ ) ⁇ )+v', (0 ⁇ x ⁇ 0.16)
  • V e -Inx+1 ,(0.6 ⁇ x ⁇ T)
  • V is the first download speed
  • x is the time point represented by the playing time information of the target video
  • v' is the current download speed of the target video
  • T is the time point when the first download speed is equal to the second download speed.
  • (0 ⁇ x ⁇ 0.16) represents the first preset duration
  • (0.16 ⁇ x ⁇ 0.6) represents the second preset duration
  • (0.6 ⁇ x ⁇ T) represents the third preset duration.
  • the above-mentioned first preset duration, second preset duration, and third preset duration may also be other values, and in this case, corresponding constants in the adjustment formula are required.
  • adjusting the first download speed corresponding to the target video includes:
  • the first download speed is decelerated using a sixth preset function until the first download speed is equal to the second download speed.
  • the adjustment of the second download speed can be divided into three stages:
  • the fourth preset function is used to accelerate the first download speed, and the first download speed is accelerated to the total network speed, so as to quickly load the target video. It should be understood that at this stage, the second download speed corresponding to the target download task is reduced until the second download speed is reduced to zero.
  • the acceleration speed corresponding to accelerating the first download speed by using the fourth preset function is smaller than the acceleration speed corresponding to accelerating the first download speed by using the first preset function. That is to say, the slope corresponding to the first preset function is greater than the slope corresponding to the fourth preset function.
  • the fifth preset function is used to slow down the second download speed within the second preset duration. It should be understood that in this stage, the second download speed corresponding to the target download task is accelerated.
  • the deceleration speed corresponding to decelerating the first download speed by using the fifth preset function is smaller than the deceleration speed corresponding to decelerating the first download speed by using the second preset function. That is to say, the slope corresponding to the second preset function is greater than the slope corresponding to the fifth preset function.
  • the sixth preset function is used to slow down the first download speed. It should be understood that in this stage, the second download speed corresponding to the target download task is continued to be slowed down. Until the first download speed is equal to the second download speed.
  • the deceleration speed corresponding to decelerating the first download speed by using the sixth preset function is smaller than the deceleration speed corresponding to decelerating the first download speed by using the third preset function. That is to say, the slope corresponding to the third preset function is greater than the slope corresponding to the sixth preset function.
  • the first download speed can be adjusted by the following formula:
  • V cos(sin(cos(x+2.8) ⁇ ) ⁇ 2 ⁇ ),(0.36 ⁇ x ⁇ 0.94)
  • V e (-In(x-0.2)) ⁇ 2 ,(0.94 ⁇ x ⁇ T)
  • V is the first download speed
  • x is the time point represented by the playing time information of the target video
  • v' is the current download speed of the target video
  • T is the time point when the first download speed is equal to the second download speed.
  • (0 ⁇ x ⁇ 0.36) represents the first preset duration
  • (0.36 ⁇ x ⁇ 0.94) represents the second preset duration
  • (0.94 ⁇ x ⁇ T) represents the third preset duration.
  • first preset duration, second preset duration, and third preset duration may also be other values, and in this case, corresponding constants in the adjustment formula are required.
  • the start play time and end play time corresponding to the advertisement segment in the target video can be determined, and the data stream corresponding to the advertisement segment can be assigned a value during the loading process of the target video is 0. In this way, when the target video is played, the segment whose data flow is 0 will be directly skipped, that is, the advertisement segment will be skipped, so as to remove the advertisement in the target video and improve user experience.
  • Figure 10 in the process of playing the target video, when the title song is played, it is determined whether the user behavior characteristic indicates that the title song is not skipped. In the case that the user behavior characteristic does not skip the opening song, use the second adjustment method to adjust the first download speed. In the case that the user behavior characteristic indicates skipping the opening song, the first adjustment method is used to adjust the first download speed. When the user adjusts the progress bar, use the first adjustment method to adjust the first download speed. When the highlights in the target video are played, use the first adjustment method to adjust the first download speed.
  • the ending song of the target video When the ending song of the target video is played, it is judged whether the ending song of the target video includes an easter egg, and if the end song of the target video includes an easter egg, the first adjustment method is used to adjust the first download speed. If no easter eggs are included, then determine whether the user behavior feature represents not skipping the ending song. If the user behavior feature does not skip the ending song, the current download speed of the target video is determined as the first download speed. If the user behavior characteristic indicates that the ending song is skipped, the current download speed of the target video is used to download the target video.
  • the target time period determines whether the first input is received within the target time period, that is, whether the user closes the target video within the target time period, if the first input is received within the target time period, then close the video; if not within the target time period
  • use the first adjustment method to adjust the first download speed corresponding to the target video, and load all the target videos.
  • the downloading device 200 includes:
  • the detection module 201 is used to detect the download task during the process of downloading and playing the target video;
  • An acquisition module 202 configured to acquire the playing time information of the target video when the download task includes a target download task
  • the first adjustment module 203 is configured to adjust the target download task and the download speed of the target video when the playing time information reaches the target time point of the target video.
  • the first adjustment module 203 is specifically configured to:
  • the playing time information reaches the second target time point of the target video, based on the user behavior characteristics corresponding to the second target time point, adjust the first download speed corresponding to the download and play target video, and The second download speed corresponding to the target download task is adjusted as a difference result between a preset total network speed and the first download speed.
  • the first adjustment module 203 is further specifically configured to:
  • the current download speed of the target video is determined as the first download speed.
  • the first adjustment module 203 is further specifically configured to:
  • the first download speed corresponding to the target video is adjusted using a first adjustment manner.
  • the first adjustment module 203 is further specifically configured to:
  • a first adjustment manner is used to adjust a first download speed corresponding to the target video.
  • the first adjustment module 203 is further specifically configured to:
  • the first download speed corresponding to the target video is adjusted using a first adjustment manner.
  • the downloading device 200 also includes:
  • a receiving module configured to receive a second input to the target video when the download task includes a target download task
  • the second adjustment module is used to adjust the first download speed corresponding to the target video by using the first adjustment method in response to the second input, and adjust the second download speed corresponding to the target download task to a preset value. The result of the difference between the total network speed of and the first download speed.
  • the first adjustment module 203 is further specifically configured to:
  • the first adjustment method is used to adjust the first download speed corresponding to the target video
  • the first adjustment module 203 is further specifically configured to:
  • the first download speed is decelerated using a third preset function until the first download speed is equal to the second download speed.
  • the first adjustment module 203 is further specifically configured to:
  • the first download speed is decelerated using a sixth preset function until the first download speed is equal to the second download speed.
  • the download task in the process of downloading and playing the target video, the download task is detected; when the download task includes the target download task, the playback time information of the target video is obtained; when the playback time information reaches the target time point of the target video case, adjust the target download task and the download speed of the target video.
  • the total network speed is reasonably configured, and the download of the target download task and the target video is not limited. Speed, in order to make full use of network resources.
  • the downloading device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • assistant, PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the downloading device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the downloading device provided in the embodiment of the present application can realize various processes realized in the method embodiment in FIG. 1 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, and programs or instructions stored in the memory 302 and operable on the processor 301,
  • an electronic device 300 including a processor 301, a memory 302, and programs or instructions stored in the memory 302 and operable on the processor 301,
  • the program or instruction is executed by the processor 301, each process of the above-mentioned downloading method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the processor 1010 is also used to detect the download task during the process of downloading and playing the target video;
  • the input unit 1004 is further configured to obtain the playing time information of the target video when the download task includes a target download task;
  • the processor 1010 is further configured to adjust the target download task and the download speed of the target video when the playing time information reaches the target time point of the target video.
  • the processor 1010 is further configured to adjust the first download speed corresponding to the target video when the playing time information reaches the first target time point of the target video, and correspond the target download task to The second download speed is adjusted as the result of the difference between the preset total network speed and the first download speed;
  • the playing time information reaches the second target time point of the target video, based on the user behavior characteristics corresponding to the second target time point, adjust the first download speed corresponding to the download and play target video, and The second download speed corresponding to the target download task is adjusted as a difference result between a preset total network speed and the first download speed.
  • the processor 1010 is further configured to adjust the first download speed corresponding to the target video at the second time point corresponding to the target video when the user behavior characteristic indicates skipping the ending song;
  • the current download speed of the target video is determined as the first download speed.
  • the processor 1010 is further configured to use the current download speed of the target video to download the target video, so that the playing time information corresponding to the target video reaches the second time point;
  • the input unit 1004 is further configured to close the target video when the first input to the target video is received within the target time period;
  • the processor 1010 is further configured to adjust a first download speed corresponding to the target video by using a first adjustment manner when the first input of the target video is not received within the target time period.
  • the processor 1010 is further configured to use a first adjustment method to adjust the target video when the target video includes the first target segment and the playing time information reaches the first time point of the target video.
  • the processor 1010 is further configured to adjust the first download speed corresponding to the target video in a first adjustment manner when the playing time information reaches the third time point of the target video.
  • the input unit 1004 is further configured to receive a second input to the target video when the download task includes a target download task;
  • the processor 1010 is further configured to adjust the first download speed corresponding to the target video by using the first adjustment method in response to the second input, and adjust the second download speed corresponding to the target download task to a preset value. The result of the difference between the total network speed of and the first download speed.
  • the processor 1010 is further configured to adjust the first download speed corresponding to the target video by using the first adjustment method when the user behavior characteristic indicates that the opening song is skipped;
  • the first download speed corresponding to the target video is adjusted using the second adjustment method.
  • the processor 1010 is further configured to use a first preset function to accelerate the first download speed within a first preset duration;
  • the first download speed is decelerated using a third preset function until the first download speed is equal to the second download speed.
  • the processor 1010 is further configured to use a fourth preset function to accelerate the first download speed within the first preset duration;
  • the first download speed is decelerated using a sixth preset function until the first download speed is equal to the second download speed.
  • the download task is detected; when the download task includes the target download task, the playback time information of the target video is obtained; when the playback time information reaches the target time point of the target video case, adjust the target download task and the download speed of the target video.
  • the total network speed is reasonably configured, and the download of the target download task and the target video is not limited. Speed, in order to make full use of network resources.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above download method embodiment is realized, and the same Technical effects, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above-mentioned download method embodiments. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供了一种下载方法、装置、电子设备及存储介质。该方法包括:在进行下载播放目标视频的过程中,检测下载任务;在下载任务包括目标下载任务的情况下,获取目标视频的播放时间信息,目标下载任务为除目标视频对应的下载任务之外的其他下载任务;在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度;其中,目标视频包括至少一个目标时间点。

Description

下载方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请主张在2021年11月23日在中国提交的中国专利申请No.202111393289.4的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于音视频播放技术领域,具体涉及下载方法、装置、电子设备及存储介质。
背景技术
电子设备的一种应用场景为,用户使用电子设备边下载视频边播放视频的同时,电子设备调用系统后台下载其他文件,这会降低视频下载速度,出现视频播放卡顿的现象。
在上述应用场景中,通常对视频下载速度限定一个较高的下载阈值,对其他文件的下载速度限定一个较低的下载阈值,也就是说,对总网络速度进行配置,使用较高的网速下载视频,使用较低的网速下载其他任务,通过这种方式保证视频播放流畅。
然而,在上述实施方式中,视频下载耗时较短而其他文件需要消耗较长时间才能完成下载,对总网络速度的配置方式不合理,不能充分利用网络资源。
发明内容
本申请实施例的目的是一种下载方法、装置、电子设备及存储介质,能够解决总网络速度的配置方式不合理,不能充分利用网络资源的问题。
第一方面,本申请实施例提供了一种下载方法,该方法包括:
在对目标视频进行下载播放的过程中,检测下载任务;
在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放 时间信息,所述目标下载任务为除所述目标视频对应的下载任务之外的其他下载任务;
在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度;
其中,所述目标视频包括至少一个所述目标时间点。
第二方面,本申请实施例提供了一种下载装置,该装置包括:
检测模块,用于对目标视频进行下载播放的过程中,检测下载任务;
获取模块,用于在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息,所述目标下载任务为除所述目标视频对应的下载任务之外的其他下载任务;
第一调整模块,用于在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度;
其中,所述目标视频包括至少一个所述目标时间点。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,提供了一种计算机软件产品,所述计算机软件产品被存储在非瞬态的存储介质中,所述计算机软件产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。
第七方面,提供了一种电子设备,被配置为执行如第一方面所述的方法的步骤。
本申请实施例在对目标视频进行下载播放的过程中,检测下载任务;在下载任务包括目标下载任务的情况下,获取目标视频的播放时间信息;在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度。本申请实施例中,在目标视频的播放时间信息达到目标时间点的情况下,通过调整目标下载任务和目标视频的下载速度,合理的配置总网络速度,以此充分利用网络资源。
附图说明
图1是本申请实施例提供的下载方法的流程图;
图2是本申请实施例提供的下载方法的应用场景图之一;
图3是本申请实施例提供的下载方法的应用场景图之二;
图4是本申请实施例提供的下载方法的应用场景图之三;
图5是本申请实施例提供的下载方法的应用场景图之四;
图6是本申请实施例提供的下载方法的应用场景图之五;
图7是本申请实施例提供的下载方法的应用场景图之六;
图8是本申请实施例提供的下载方法的应用场景图之七;
图9是本申请实施例提供的下载方法的应用场景图之八;
图10是本申请实施例提供的下载方法的应用流程图;
图11是本申请实施例提供的下载装置的结构图;
图12是本申请实施例提供的电子设备的结构图;
图13是本申请实施例提供的电子设备的硬件结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的下载方法进行详细地说明。
请参阅图1,图1是本申请实施例提供的下载方法的流程图。本申请实施例提供的下载方法包括以下步骤:
S101,在对目标视频进行下载播放的过程中,检测下载任务。
本申请实施例提供的下载方法可以应用在终端,以下以该方法应用于终端为例进行阐述。
本步骤中,在终端对目标视频进行下载播放的过程中,检测下载任务,其中,上述目标视频可以理解为终端播放的视频。应理解,上述对目标视频进行下载播放的过程是指,在播放目标视频的同时,下载目标视频,也就是说,下载任务包括目标视频对应的下载任务。可选地,可以通过查看终端调用的下载进程的方式,检测下载任务。
S102,在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息。
本步骤中,在下载任务包括除目标视频对应的下载任务之外的其他下载任务,即目标下载任务的情况下,获取目标视频的播放时间信息,其中,上述播放时间信息可以理解为是目标视频的当前播放进度。
S103,在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度。
上述目标视频包括至少一个目标时间点,上述目标时间点可以是预先设 置的,也可以是终端根据目标视频的相关信息确定的。本步骤中,在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度。具体的如何动态调整目标下载任务和目标视频的下载速度的技术方案,请参阅后续实施例。
其中,可以将目标视频对应的下载速度称为第一下载速度,将目标下载任务对应的下载速度称为第二下载速度,应理解,第一下载速度和第二下载速度的和值为总网络速度。
本申请实施例在对目标视频进行下载播放的过程中,检测下载任务;在下载任务包括目标下载任务的情况下,获取目标视频的播放时间信息;在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度。本申请实施例中,在目标视频的播放时间信息达到目标时间点的情况下,通过调整目标下载任务和目标视频的下载速度,合理的配置总网络速度,以此充分利用网络资源。此外,本申请实施例中对上述下载速度进行动态的调整,以此在保证流畅播放目标视频的同时,下载目标下载任务。
可选地,所述在所述播放时间信息达到所述目标视频的目标时间节点的情况下,调整所述目标下载任务和所述目标视频的下载速度包括:
在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果;
在所述播放时间信息达到所述目标视频的第二目标时间点的情况下,基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
上述目标时间点包括第一目标时间点和第二目标时间点。
一种可选地实施方式为,终端预先获取目标视频对应的视频信息,确定目标视频的片头曲、片尾曲等其他片段的位置信息,将这些位置信息对应的 起始时间确定为目标时间点。
另一种可选地实施方式为,用户可以对目标视频中的目标时间点进行自定义设置。
另一种可选地实施方式为,训练资讯模型,利用训练完成的资讯模型,预测目标视频中的目标时间点。具体而言,收集各个视频和各个视频对应的视频信息作为上述资讯模型的训练样本对该资讯模型进行训练,在训练完成后,将目标视频输入到训练完成的资讯模型中,得到目标视频中的目标时间点。
本实施例中,在播放时间信息达到目标视频的第一目标时间点的情况下,调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与上述第一下载速度之间的差值结果。
在播放时间信息达到目标视频的第二目标时间点的情况下,基于第二目标时间点对应的用户行为特征,调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与上述第一下载速度之间的差值结果。
其中,一种可选地实施方式为,终端获取预设时间段内的埋点数据,依据该埋点数据确定目标时间点对应的用户行为特征。例如,获取一个月内用户跳过片头曲的次数,若该次数大于预先设置的阈值,确定当目标时间点为片头曲对应的起始时间时,该目标时间点对应的用户行为特征为跳过片头曲。
另一种可选地实施方式为,用户可以对目标时间点对应的用户行为特征进行自定义设置。
另一种可选地实施方式为,预先设置目标时间点对应的用户行为特征。
另一种可选地实施方式为,训练用户模型,利用训练完成的用户模型,预测目标时间点对应的用户行为特征。具体而言,收集用户在预设时间段内的表征用户行为埋点数据,将上述埋点数据和视频作为上述用户模型的训练样本对该用户模型进行训练,在训练完成后,将目标视频输入到训练完成的用户模型中,确定目标时间点对应的用户行为特征。
可选地,所述基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度包括:
在所述用户行为特征表征跳过所述片尾曲的情况下,在所述目标视频对应的第二时间点,动态调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片尾曲的情况下,将所述目标视频当前的下载速度确定为第一下载速度。
上述第二目标时间点包括第一时间点,上述第一时间点为目标视频的片尾曲的起始时间点。
本实施例中,当目标视频的播放时间信息达到第一时间点时,若该第一时间点对应的用户行为表征跳过片尾曲,则继续加载该目标视频,直至在目标视频对应的第二时间点,调整目标视频对应的第一下载速度。其中,第二时间点位于第一时间点之后。具体的技术方案请参阅后续实施例。
本实施例中,当目标视频的播放时间信息达到第一时间点时,若该第一时间点对应的用户行为表征不跳过片尾曲,则将目标视频当前的下载速度确定为第一下载速度,使用第一下载速度加载为目标视频。
示例性的,请参阅图2,图2的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图2所示,A点为片尾曲的起始时间点,在A点之后,使用第一下载速度加载完剩余全部的目标视频。
可选地,所述在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度包括:
使用所述目标视频当前的下载速度下载所述目标视频,以使得所述目标视频对应的播放时间信息达到所述第二时间点;
在目标时间段内接收到对目标视频的第一输入的情况下,关闭所述目标视频;
在目标时间段内未接收到对目标视频的第一输入的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
本实施例中,当目标视频的播放时间信息达到第一时间点,且第一时间 点对应的用户行为表征跳过片尾曲时,继续使用目标视频当前的下载速度下载目标视频,直至目标视频对应的播放时间信息达到第二时间点,其中,上述第二时间点可以是预先设置的。
应理解,可以将第二时间点到第一时间点称为目标时间段,若在目标时间段内接收到对目标视频的第一输入,则关闭目标视频。其中,上述第一输入的指向对象为目标视频,上述第一输入可以是触控输入,也可以是滑动输入或其他类型的输入,在此不做具体限定。
例如,请参阅图3,图3的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图3所示,图3中的t1为第一时间点,t2为第一时间点和第二时间点之间的任一时间点,在t1到t2这段时间内,使用目标视频当前的下载速度下载目标视频,当在t2接收到第一输入后,关闭该目标视频。
本实施例中,若在目标时间段内未接收到对目标视频的第一输入,则使用第一调整方式,调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与上述第一下载速度之间的差值。
例如,请参阅图4,图4的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图4所示,图4中的t1为第一时间点与第二时间点之间的任一时间点,t2为第二时间点,t3为目标视频的结束节点。如图4所示,若在第二时间点未接收到第一输入,表明用户需要观看片尾曲,则调整目标视频的第一下载速度,加载目标视频的片尾曲。
本实施例中,当目标视频播放至片尾曲的起始时间点时,基于用户的行为特征(跳过片尾曲或不跳过片尾曲),对目标视频的下载速度进行动态的调整,在保证流畅的播放目标视频的同时,对目标下载任务进行下载,以此充分利用网络资源。
可选地,所述在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述下载播放目标视频对应的第一下载速度包括:
在所述目标视频包括第一目标片段,且所述播放时间信息达到所述目标 视频的第一时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
上述第一目标片段可以是隐藏在目标视频片尾曲中的彩蛋部分。
本实施例中,可以基于目标视频对应的视频信息,确定目标视频是否包括第一目标片段。在目标视频包括第一目标片段的情况下,当目标视频的播放进度达到目标视频的片尾曲的起始时间点时,为了让用户可以流畅的观看隐藏在片尾曲中的彩蛋,使用第一调整方式,调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与第一下载速度之间的差值。
为便于理解,请参阅图5,图5的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图5所示,图5中的t1为第一时间点,即片尾曲的起始时间点,t2为目标视频的结束节点。当目标视频包括第一目标片段时,在t1节点使用第一调整方式,调整目标视频的第一下载速度。
本实施例中,当目标视频播放至片尾曲的起始时间点时,若目标视频包括彩蛋部分,则对目标视频的下载速度进行动态的调整,在保证流畅的播放目标视频的同时,对目标下载任务进行下载,以此充分利用网络资源。
可选地,所述在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述下载播放目标视频对应的第一下载速度包括:
在所述播放时间信息达到所述目标视频的第三时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
上述第三时间点为目标视频中第二目标片段的起始时间点,上述第二目标片段可以是目标视频中的精彩片段或高潮片段。
本实施例中,可以基于目标视频对应的视频信息,确定目标视频中精彩片段对应的起始时间点,即目标视频中第二目标片段的起始时间点,将该起始时间点确定为第三时间点。在目标视频的播放进度达到第三时间点的情况下,为了让用户可以流畅的观看目标视频中的精彩片段,使用第一调整方式, 调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与第一下载速度之间的差值。
为便于理解,请参阅图6,图6的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图6所示,图6中的t1为第三时间点,当目标视频的播放时间信息达到第三时间点时,使用第一调整方式,调整目标视频的第一下载速度。
本实施例中,当目标视频播放至精彩部分的起始时间点时,对目标视频的下载速度进行动态的调整,在保证流畅的播放精彩部分的同时,对目标下载任务进行下载,以此充分利用网络资源。
可选地,所述在进行下载播放目标视频的过程中,检测下载任务之后,所述方法还包括:
在所述下载任务包括目标下载任务的情况下,接收对所述目标视频的第二输入;
响应于所述第二输入,使用第一调整方式,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
上述第二输入对应的指向对象为目标视频,上述第二输入可以是触控输入,也可以是滑动输入或其他类型的输入。例如,上述第二输入可以是用户滑动进度条或快进指令。
本实施例中,在接收到对目标视频的第二输入的情况下,响应第二输入,使用第一调整方式,调整目标视频对应的第一下载速度,并将目标下载任务对应的第二下载速度调整为总网络速度与第一下载速度之间的差值。
为便于理解,请参阅图7,图7的横坐标表示目标视频的播放时间,纵坐标表示目标视频对应的第一加载速度。如图7所示,图7示出的t1为第二输入对应的输入时间,在接收到第二输入的情况下,使用第一调整方式,调整目标视频的第一下载速度。
本实施例中,当接收到用户对目标视频的第二输入时,对目标视频的下 载速度进行动态的调整,以此在保证流畅的播放精彩部分的同时,对目标下载任务进行下载。
可选地,所述基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度包括:
在所述用户行为特征表征跳过所述片头曲的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片头曲的情况下,使用第二调整方式,调整所述目标视频对应的第一下载速度。
上述第二目标时间点包括第四时间点,上述第四时间点为目标视频的片头曲的起始时间点。
本实施例中,当目标视频的播放时间信息达到第四时间点时,若该第四时间点对应的用户行为表征跳过片头曲,为了保证目标视频的流程播放,使用第一调整方式,调整目标视频对应的第一下载速度。
示例性的,请参阅图8,图8的横坐标为目标视频的播放时间,纵坐标为目标视频对应的第一下载速度,图8示出的曲线可以表征,使用第一调整方式,调整第一下载速度时,第一下载速度的变化趋势。
本实施例中,当目标视频的播放时间信息达到第四时间点时,若该第四时间点对应的用户行为表征不跳过片头曲,则使用第二调整方式,调整目标视频对应的第一下载速度。
示例性的,请参阅图9,图9的横坐标为目标视频的播放时间,纵坐标为目标视频对应的第一下载速度,图9示出的曲线可以表征,使用第二调整方式,调整第一下载速度时,第一下载速度的变化趋势。
从上述图8和图9中可以得到,表征第一调整方式的曲线对应的斜率大于表征第二调整方式的曲线对应的斜率。
以下,具体阐述如何使用第一调整方式,动态调整目标视频对应的第一下载速度:
可选地,所述使用第一调整方式,调整所述目标视频对应的第一下载速 度包括:
在第一预设时长内,使用第一预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第二预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第三预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
本实施例中,使用第一调整方式,调整第一下载速度可以分为3个阶段:
第一个阶段,在第一预设时长内,使用第一预设函数对第一下载速度进行加速,将第一下载速度加速到总网络速度,以快速的加载目标视频。应理解,在这个阶段,对目标下载任务对应的第二下载速度进行降速,直至将第二下载速度降为0。
第二个阶段,在第二预设时长内,使用第二预设函数对第二下载速度进行降速,应理解,在这个阶段,对目标下载任务对应的第二下载速度进行加速。
第三个阶段,在第三预设时长内,使用第三预设函数对第一下载速度进行降速,应理解,在这个阶段,继续对目标下载任务对应的第二下载速度进行降速,直至第一下载速度等于第二下载速度。
其中,第一下载速度在第二预设时长内对应的下降速度大于第一下载速度在第三预设时长内对应的下降速度。
本实施例中,可以通过下述公式对第一下载速度进行调整:
V=cos(sin(cos(x+1.4)×π)×π)+v',(0<x<0.16)
Figure PCTCN2022132244-appb-000001
V=e -Inx+1,(0.6≤x<T)
其中,V为第一下载速度,x为目标视频的播放时间信息表征的时间点,v’为目标视频当前的下载速度,T为第一下载速度与第二下载速度相等时的时间点。
应理解,在上述公式中,(0<x<0.16)表征第一预设时长,(0.16≤x<0.6) 表征第二预设时长,(0.6≤x<T)表征第三预设时长。应理解,上述第一预设时长、第二预设时长和第三预设时长也可以是其他数值,这种情况下,需要对应的调整公式中的常量。
以下,具体阐述如何使用第二调整方式,动态调整目标视频对应的第二下载速度:
可选地,所述使用第二调整方式,调整所述目标视频对应的第一下载速度包括:
在第一预设时长内,使用第四预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第五预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第六预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
本实施例中,使用第二调整方式,调整第二下载速度可以分为3个阶段:
第一个阶段,在第一预设时长内,使用第四预设函数对第一下载速度进行加速,将第一下载速度加速到总网络速度,以快速的加载目标视频。应理解,在这个阶段,对目标下载任务对应的第二下载速度进行降速,直至将第二下载速度降为0。
其中,使用第四预设函数对第一下载速度进行加速对应的加速速度小于使用第一预设函数对第一下载速度进行加速对应的加速速度。也就是说,第一预设函数对应的斜率大于第四预设函数对应的斜率。
第二个阶段,在第二预设时长内,使用第五预设函数对第二下载速度进行降速,应理解,在这个阶段,对目标下载任务对应的第二下载速度进行加速。
其中,使用第五预设函数对第一下载速度进行降速对应的降速速度小于使用第二预设函数对第一下载速度进行降速对应的降速速度。也就是说,第二预设函数对应的斜率大于第五预设函数对应的斜率。
第三个阶段,在第三预设时长内,使用第六预设函数对第一下载速度进行降速,应理解,在这个阶段,继续对目标下载任务对应的第二下载速度进 行降速,直至第一下载速度等于第二下载速度。
其中,使用第六预设函数对第一下载速度进行降速对应的降速速度小于使用第三预设函数对第一下载速度进行降速对应的降速速度。也就是说,第三预设函数对应的斜率大于第六预设函数对应的斜率。
本实施例中,可以通过下述公式对第一下载速度进行调整:
Figure PCTCN2022132244-appb-000002
V=cos(sin(cos(x+2.8)×π)÷2×π),(0.36≤x<0.94)
V=e (-In(x-0.2))÷2,(0.94≤x<T)
其中,V为第一下载速度,x为目标视频的播放时间信息表征的时间点,v’为目标视频当前的下载速度,T为第一下载速度与第二下载速度相等时的时间点。
应理解,在上述公式中,(0<x<0.36)表征第一预设时长,(0.36≤x<0.94)表征第二预设时长,(0.94≤x<T)表征第三预设时长。应理解,上述第一预设时长、第二预设时长和第三预设时长也可以是其他数值,这种情况下,需要对应的调整公式中的常量。
在其他实施例中,可以基于目标视频的视频信息,确定目标视频中广告片段对应的起始播放时间和终止播放时间,在对目标视频进行加载的过程中,将该广告片段对应的数据流赋值为0。这样,当播放到目标视频时,将直接跳过数据流为0的片段,即跳过广告片段,以此去除目标视频中的广告,提高用户体验。
为便于理解整体方案,请参阅图10,如图10所示,在播放目标视频的过程中,当播放至片头曲时,确定用户行为特征是否表征不跳过片头曲。在用户行为特征表征不跳过片头曲的情况下,使用第二调整方式,调整第一下载速度。在用户行为特征表征跳过片头曲的情况下,使用第一调整方式,调整第一下载速度。当用户调节进度条时,使用第一调整方式,调整第一下载 速度。当播放到目标视频中的精彩片段时,使用第一调整方式,调整第一下载速度。当播放到目标视频的片尾曲时,判断目标视频片尾曲是否包括彩蛋,若包括彩蛋,则使用第一调整方式,调整第一下载速度。若不包括彩蛋,则确定用户行为特征是否表征不跳过片尾曲。若用户行为特征表征不跳过片尾曲,则将目标视频当前的下载速度确定为第一下载速度。若用户行为特征表征跳过片尾曲,则使用目标视频当前的下载速度下载目标视频。进一步的,确定是否在目标时间段内接收到第一输入,即用户是否在目标时间段内关闭目标视频,若在目标时间段内接收到第一输入,则关闭视频;若未在目标时间段内接收到第一输入,则使用第一调整方式,调整目标视频对应的第一下载速度,加载全部的目标视频。
如图11所示,下载装置200包括:
检测模块201,用于在对目标视频进行下载播放的过程中,检测下载任务;
获取模块202,用于在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息;
第一调整模块203,用于在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度。
可选地,所述第一调整模块203,具体用于:
在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果;
在所述播放时间信息达到所述目标视频的第二目标时间点的情况下,基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
可选地,所述第一调整模块203,还具体用于:
在所述用户行为特征表征跳过所述片尾曲的情况下,在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片尾曲的情况下,将所述目标视频当前的下载速度确定为第一下载速度。
可选地,所述第一调整模块203,还具体用于:
使用所述目标视频当前的下载速度下载所述目标视频;
在目标时间段内接收到对目标视频的第一输入的情况下,关闭所述目标视频;
在目标时间段内未接收到对目标视频的第一输入的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
可选地,所述第一调整模块203,还具体用于:
在所述目标视频包括第一目标片段,且所述播放时间信息达到所述目标视频的第一时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
可选地,所述第一调整模块203,还具体用于:
在所述播放时间信息达到所述目标视频的第三时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
可选地,所述下载装置200还包括:
接收模块,用于在所述下载任务包括目标下载任务的情况下,接收对所述目标视频的第二输入;
第二调整模块,用于响应于所述第二输入,使用第一调整方式,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
可选地,所述第一调整模块203,还具体用于:
在所述用户行为特征表征跳过所述片头曲的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片头曲的情况下,使用第二调整方 式,调整所述目标视频对应的第一下载速度。
可选地,所述第一调整模块203,还具体用于:
在第一预设时长内,使用第一预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第二预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第三预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
可选地,所述第一调整模块203,还具体用于:
在第一预设时长内,使用第四预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第五预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第六预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
本申请实施例在对目标视频进行下载播的过程中,检测下载任务;在下载任务包括目标下载任务的情况下,获取目标视频的播放时间信息;在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度。本申请实施例中,在目标视频的播放时间信息达到目标时间点的情况下,通过调整目标下载任务和目标视频的下载速度,合理的配置总网络速度,不限制目标下载任务和目标视频的下载速度,以此充分利用网络资源。
本申请实施例中的下载装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的下载装置可以为具有操作系统的装置。该操作系统可 以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的下载装置能够实现图1方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图12所示,本申请实施例还提供一种电子设备300,包括处理器301,存储器302,存储在存储器302上并可在所述处理器301上运行的程序或指令,该程序或指令被处理器301执行时实现上述下载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图13为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1010,还用于在对目标视频进行下载播放的过程中,检测下载任务;
输入单元1004,还用于在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息;
处理器1010,还用于在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度。
其中,处理器1010,还用于在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述目标视频对应的第一下载速度,并将所述 目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果;
在所述播放时间信息达到所述目标视频的第二目标时间点的情况下,基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
其中,处理器1010,还用于在所述用户行为特征表征跳过所述片尾曲的情况下,在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片尾曲的情况下,将所述目标视频当前的下载速度确定为第一下载速度。
其中,处理器1010,还用于使用所述目标视频当前的下载速度下载所述目标视频,以使得所述目标视频对应的播放时间信息达到所述第二时间点;
输入单元1004,还用于在目标时间段内接收到对目标视频的第一输入的情况下,关闭所述目标视频;
处理器1010,还用于在目标时间段内未接收到对目标视频的第一输入的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
其中,处理器1010,还用于在所述目标视频包括第一目标片段,且所述播放时间信息达到所述目标视频的第一时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
其中,处理器1010,还用于在所述播放时间信息达到所述目标视频的第三时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
其中,输入单元1004,还用于在所述下载任务包括目标下载任务的情况下,接收对所述目标视频的第二输入;
处理器1010,还用于响应于所述第二输入,使用第一调整方式,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速 度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
其中,处理器1010,还用于在所述用户行为特征表征跳过所述片头曲的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度;
在所述用户行为特征表征不跳过所述片头曲的情况下,使用第二调整方式,调整所述目标视频对应的第一下载速度。
其中,处理器1010,还用于在第一预设时长内,使用第一预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第二预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第三预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
其中,处理器1010,还用于在第一预设时长内,使用第四预设函数对所述第一下载速度进行加速;
在第二预设时长内,使用第五预设函数对所述第一下载速度进行降速;
在第三预设时长内,使用第六预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度。
本申请实施例在对目标视频进行下载播放的过程中,检测下载任务;在下载任务包括目标下载任务的情况下,获取目标视频的播放时间信息;在播放时间信息达到目标视频的目标时间点的情况下,调整目标下载任务和目标视频的下载速度。本申请实施例中,在目标视频的播放时间信息达到目标时间点的情况下,通过调整目标下载任务和目标视频的下载速度,合理的配置总网络速度,不限制目标下载任务和目标视频的下载速度,以此充分利用网络资源。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户 输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述下载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述下载方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申 请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (24)

  1. 一种下载方法,包括:
    在对目标视频进行下载播放的过程中,检测下载任务;
    在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息,所述目标下载任务为除所述目标视频对应的下载任务之外的其他下载任务;
    在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度;
    其中,所述目标视频包括至少一个所述目标时间点。
  2. 根据权利要求1所述的方法,其中,所述目标时间点包括第一目标时间点和第二目标时间点,所述在所述播放时间信息达到所述目标视频的目标时间节点的情况下,调整所述目标下载任务和所述目标视频的下载速度包括:
    在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果;
    在所述播放时间信息达到所述目标视频的第二目标时间点的情况下,基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
  3. 根据权利要求2所述的方法,其中,所述第二目标时间点包括第一时间点,所述第一时间点为所述目标视频的片尾曲的起始时间点;
    所述基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度包括:
    在所述用户行为特征表征跳过所述片尾曲的情况下,在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度;所述第二时间点位于所述第一时间点之后;
    在所述用户行为特征表征不跳过所述片尾曲的情况下,将所述目标视频当前的下载速度确定为第一下载速度。
  4. 根据权利要求3所述的方法,其中,所述在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度包括:
    使用所述目标视频当前的下载速度下载所述目标视频,以使得所述目标视频对应的播放时间信息达到所述第二时间点;
    在目标时间段内接收到对目标视频的第一输入的情况下,关闭所述目标视频;所述目标时间段为基于第一时间点和所述第二时间点确定的时间段;
    在目标时间段内未接收到对目标视频的第一输入的情况下,使用第一调整方式,动态调整所述目标视频对应的第一下载速度。
  5. 根据权利要求3所述的方法,其中,所述在所述播放时间信息达到所述目标视频的第一目标时间点的情况下调整所述下载播放目标视频对应的第一下载速度包括:
    在所述目标视频包括第一目标片段,且所述播放时间信息达到所述目标视频的第一时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
  6. 根据权利要求2所述的方法,其中,所述第一目标时间点包括第三时间点,所述第三时间点为所述目标视频中第二目标片段的起始时间点;
    所述在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述下载播放目标视频对应的第一下载速度包括:
    在所述播放时间信息达到所述目标视频的第三时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
  7. 根据权利要求1所述的方法,其中,所述在进行下载播放目标视频的过程中,检测下载任务之后,所述方法还包括:
    在所述下载任务包括目标下载任务的情况下,接收对所述目标视频的第二输入;
    响应于所述第二输入,使用第一调整方式,调整所述目标视频对应的第 一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
  8. 根据权利要求2所述的方法,其中,所述第二目标时间点包括第四时间点,所述第四时间点为所述目标视频的片头曲的起始时间点;
    所述基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度包括:
    在所述用户行为特征表征跳过所述片头曲的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度;
    在所述用户行为特征表征不跳过所述片头曲的情况下,使用第二调整方式,调整所述目标视频对应的第一下载速度。
  9. 根据权利要求4至8中任一项所述的方法,其中,所述使用第一调整方式,调整所述目标视频对应的第一下载速度包括:
    在第一预设时长内,使用第一预设函数对所述第一下载速度进行加速;
    在第二预设时长内,使用第二预设函数对所述第一下载速度进行降速;
    在第三预设时长内,使用第三预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度;
    其中,所述第一下载速度在所述第二预设时长内对应的下降速度大于所述第一下载速度在所述第三预设时长内对应的下降速度。
  10. 根据权利要求8所述的方法,其中,所述使用第二调整方式,调整所述目标视频对应的第一下载速度包括:
    在第一预设时长内,使用第四预设函数对所述第一下载速度进行加速;
    在第二预设时长内,使用第五预设函数对所述第一下载速度进行降速;
    在第三预设时长内,使用第六预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度;
    其中,使用第四预设函数对所述第一下载速度进行加速对应的加速速度小于使用第一预设函数对所述第一下载速度进行加速对应的加速速度;
    使用第五预设函数对所述第一下载速度进行降速对应的降速速度小于使 用第二预设函数对所述第一下载速度进行降速对应的降速速度;
    使用第六预设函数对所述第一下载速度进行降速对应的降速速度小于使用第三预设函数对所述第一下载速度进行降速对应的降速速度。
  11. 一种下载装置,包括:
    检测模块,用于在对目标视频进行下载播放的过程中,检测下载任务;
    获取模块,用于在所述下载任务包括目标下载任务的情况下,获取所述目标视频的播放时间信息,所述目标下载任务为除所述目标视频对应的下载任务之外的其他下载任务;
    第一调整模块,用于在所述播放时间信息达到所述目标视频的目标时间点的情况下,调整所述目标下载任务和所述目标视频的下载速度;
    其中,所述目标视频包括至少一个所述目标时间点。
  12. 根据权利要求11所述的装置,其中,所述目标时间点包括第一目标时间点和第二目标时间点,所述第一调整模块,具体用于:
    在所述播放时间信息达到所述目标视频的第一目标时间点的情况下,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果;
    在所述播放时间信息达到所述目标视频的第二目标时间点的情况下,基于所述第二目标时间点对应的用户行为特征,调整所述下载播放目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
  13. 根据权利要求12所述的装置,其中,所述第二目标时间点包括第一时间点,所述第一时间点为所述目标视频的片尾曲的起始时间点;
    所述第一调整模块,还具体用于:
    在所述用户行为特征表征跳过所述片尾曲的情况下,在所述目标视频对应的第二时间点,调整所述目标视频对应的第一下载速度;所述第二时间点位于所述第一时间点之后;
    在所述用户行为特征表征不跳过所述片尾曲的情况下,将所述目标视频当前的下载速度确定为第一下载速度。
  14. 根据权利要求13所述的装置,其中,所述第一调整模块,还具体用于:
    使用所述目标视频当前的下载速度下载所述目标视频,以使得所述目标视频对应的播放时间信息达到所述第二时间点;
    在目标时间段内接收到对目标视频的第一输入的情况下,关闭所述目标视频;所述目标时间段为基于第一时间点和所述第二时间点确定的时间段;
    在目标时间段内未接收到对目标视频的第一输入的情况下,使用第一调整方式,动态调整所述目标视频对应的第一下载速度。
  15. 根据权利要求13所述的装置,其中,所述第一调整模块,还具体用于:
    在所述目标视频包括第一目标片段,且所述播放时间信息达到所述目标视频的第一时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
  16. 根据权利要求12所述的装置,其中,所述第一目标时间点包括第三时间点,所述第三时间点为所述目标视频中第二目标片段的起始时间点;
    所述第一调整模块,还具体用于:
    在所述播放时间信息达到所述目标视频的第三时间点的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度。
  17. 根据权利要求11所述的装置,还包括:
    接收模块,用于在所述下载任务包括目标下载任务的情况下,接收对所述目标视频的第二输入;
    第二调整模块,用于响应于所述第二输入,使用第一调整方式,调整所述目标视频对应的第一下载速度,并将所述目标下载任务对应的第二下载速度调整为预设的总网络速度与所述第一下载速度之间的差值结果。
  18. 根据权利要求12所述的装置,其中,所述第二目标时间点包括第四 时间点,所述第四时间点为所述目标视频的片头曲的起始时间点;
    所述第一调整模块,还具体用于:
    在所述用户行为特征表征跳过所述片头曲的情况下,使用第一调整方式,调整所述目标视频对应的第一下载速度;
    在所述用户行为特征表征不跳过所述片头曲的情况下,使用第二调整方式,调整所述目标视频对应的第一下载速度。
  19. 根据权利要求14至18中任一项所述的装置,其中,所述第一调整模块,还具体用于:
    在第一预设时长内,使用第一预设函数对所述第一下载速度进行加速;
    在第二预设时长内,使用第二预设函数对所述第一下载速度进行降速;
    在第三预设时长内,使用第三预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度;
    其中,所述第一下载速度在所述第二预设时长内对应的下降速度大于所述第一下载速度在所述第三预设时长内对应的下降速度。
  20. 根据权利要求18所述的装置,其中,所述第一调整模块,还具体用于:
    在第一预设时长内,使用第四预设函数对所述第一下载速度进行加速;
    在第二预设时长内,使用第五预设函数对所述第一下载速度进行降速;
    在第三预设时长内,使用第六预设函数对所述第一下载速度进行降速,直至所述第一下载速度等于第二下载速度;
    其中,使用第四预设函数对所述第一下载速度进行加速对应的加速速度小于使用第一预设函数对所述第一下载速度进行加速对应的加速速度;
    使用第五预设函数对所述第一下载速度进行降速对应的降速速度小于使用第二预设函数对所述第一下载速度进行降速对应的降速速度;
    使用第六预设函数对所述第一下载速度进行降速对应的降速速度小于使用第三预设函数对所述第一下载速度进行降速对应的降速速度。
  21. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并 可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至10中任一项所述的下载方法的步骤。
  22. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至10中任一项所述的下载方法的步骤。
  23. 一种计算机软件产品,所述计算机软件产品被存储在非易失的存储介质中,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至10中任一项所述的下载方法的步骤。
  24. 一种电子设备,被配置为执行如权利要求1至10中任一项所述的下载方法的步骤。
PCT/CN2022/132244 2021-11-23 2022-11-16 下载方法、装置、电子设备及存储介质 WO2023093591A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111393289.4 2021-11-23
CN202111393289.4A CN113891170B (zh) 2021-11-23 2021-11-23 下载方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023093591A1 true WO2023093591A1 (zh) 2023-06-01

Family

ID=79015496

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/132244 WO2023093591A1 (zh) 2021-11-23 2022-11-16 下载方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN113891170B (zh)
WO (1) WO2023093591A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891170B (zh) * 2021-11-23 2024-05-03 维沃移动通信有限公司 下载方法、装置、电子设备及存储介质
CN115022717B (zh) * 2022-05-31 2023-11-07 北京字跳网络技术有限公司 一种数据下载方法、装置、计算机设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828219A (zh) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 基于在线播放的多媒体数据流量自动调整的方法及装置
CN106911656A (zh) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 一种数据下载方法和装置
CN110392279A (zh) * 2018-04-17 2019-10-29 腾讯科技(深圳)有限公司 视频播放方法、相关设备及计算机可读存储介质
CN111277867A (zh) * 2020-03-03 2020-06-12 广州市百果园信息技术有限公司 一种视频下载的方法、装置、服务器和存储介质
US20200204842A1 (en) * 2018-12-19 2020-06-25 Oath Inc. Selective streaming of video segments based on buffer data and download rate range
CN112333476A (zh) * 2021-01-05 2021-02-05 智者四海(北京)技术有限公司 一种视频加载方法及装置
CN113891170A (zh) * 2021-11-23 2022-01-04 维沃移动通信有限公司 下载方法、装置、电子设备及存储介质

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962637B2 (en) * 2006-11-03 2011-06-14 Apple Computer, Inc. Dynamic adjustments of video streams
CN101447994B (zh) * 2008-12-30 2012-07-04 深圳市迅雷网络技术有限公司 多媒体文件的下载播放方法及设备
CN101945082B (zh) * 2009-07-09 2014-08-13 联想(北京)有限公司 一种自动调整网络下载速度的方法及网络下载设备
US9392337B2 (en) * 2011-12-22 2016-07-12 Cisco Technology, Inc. Wireless TCP link state monitoring based video content adaptation and data delivery
CN103327415B (zh) * 2013-06-05 2017-04-12 北京奇虎科技有限公司 一种加速网络视频下载的方法和装置
CN103631569B (zh) * 2013-12-23 2016-07-27 百度在线网络技术(北京)有限公司 下载方法和装置
CN105681912A (zh) * 2015-10-16 2016-06-15 乐视致新电子科技(天津)有限公司 一种视频播放方法和装置
US20170171278A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for continuously playing video
CN105657523B (zh) * 2016-01-28 2019-11-08 腾讯科技(深圳)有限公司 视频预加载的方法和装置
CN107333147B (zh) * 2017-06-22 2021-01-08 深圳天珑无线科技有限公司 一种视频缓冲控制方法、终端及存储装置
CN107566609B (zh) * 2017-08-07 2020-01-10 宇龙计算机通信科技(深圳)有限公司 一种下载任务处理方法、装置、终端和存储介质
CN108600368B (zh) * 2018-04-25 2021-10-08 海信视像科技股份有限公司 一种hls网络视频下载优化方法及装置
CN109040230B (zh) * 2018-07-31 2021-06-04 优视科技新加坡有限公司 文件的下载方法、装置、设备/终端/服务器及存储介质
CN111510777B (zh) * 2019-01-30 2021-11-23 上海哔哩哔哩科技有限公司 测量网速的方法、装置、计算机设备及可读存储介质
CN110868642B (zh) * 2019-10-31 2022-03-08 腾讯音乐娱乐科技(深圳)有限公司 视频播放方法、装置及存储介质
CN111314772B (zh) * 2019-11-29 2022-07-08 广州市百果园信息技术有限公司 一种视频下载码率的确定方法、装置、终端和存储介质
CN110971963A (zh) * 2019-12-31 2020-04-07 维沃移动通信有限公司 视频播放控制的方法、电子设备及存储介质
CN111371705B (zh) * 2020-02-24 2023-09-12 维沃移动通信有限公司 一种下载任务执行方法及电子设备
CN112423125A (zh) * 2020-11-20 2021-02-26 上海哔哩哔哩科技有限公司 视频加载方法及装置
CN113115117B (zh) * 2021-03-16 2022-12-23 新东方教育科技集团有限公司 互动视频播放方法、装置、存储介质及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911656A (zh) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 一种数据下载方法和装置
CN105828219A (zh) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 基于在线播放的多媒体数据流量自动调整的方法及装置
CN110392279A (zh) * 2018-04-17 2019-10-29 腾讯科技(深圳)有限公司 视频播放方法、相关设备及计算机可读存储介质
US20200204842A1 (en) * 2018-12-19 2020-06-25 Oath Inc. Selective streaming of video segments based on buffer data and download rate range
CN111277867A (zh) * 2020-03-03 2020-06-12 广州市百果园信息技术有限公司 一种视频下载的方法、装置、服务器和存储介质
CN112333476A (zh) * 2021-01-05 2021-02-05 智者四海(北京)技术有限公司 一种视频加载方法及装置
CN113891170A (zh) * 2021-11-23 2022-01-04 维沃移动通信有限公司 下载方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN113891170A (zh) 2022-01-04
CN113891170B (zh) 2024-05-03

Similar Documents

Publication Publication Date Title
WO2023093591A1 (zh) 下载方法、装置、电子设备及存储介质
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
CN109154943B (zh) 自动播放内容到点击播放内容的基于服务器的转换
WO2018157812A1 (zh) 一种实现视频分支选择播放的方法及装置
WO2016188060A1 (zh) 应用程序安装包的处理方法及装置
WO2022161267A1 (zh) 视频录制方法及装置
WO2022022697A1 (zh) 音频播放方法、装置及电子设备
US10104444B2 (en) Information processing apparatus, information processing method, non-transitory computer readable storage medium, and distribution apparatus
US20240214618A1 (en) Video stream playing control method and apparatus, and storage medium
EP3734446A1 (en) Processing method, storage medium and electronic device
EP4130956A1 (en) Multimedia playback method and device
CN107613315A (zh) 视频画质调整方法、装置、终端设备及存储介质
CN108228776A (zh) 数据处理方法、装置、存储介质及电子设备
WO2023072083A1 (zh) 文件处理的方法和电子设备
CN110221765B (zh) 一种视频文件播放方法、装置、存储介质及终端
CN107734356A (zh) 视频画质调整方法、装置、终端设备及存储介质
WO2018145539A1 (zh) 一种流媒体数据的处理方法及移动终端
US20230328181A1 (en) Video call method and apparatus
WO2023030325A1 (zh) 缓冲处理方法及装置
WO2022161243A1 (zh) 信息显示方法、装置及电子设备
CN112399238B (zh) 视频播放方法、装置及电子设备
CN113873082A (zh) 媒体文件播放方法及装置
CN114327714A (zh) 应用程序控制方法、装置、设备及介质
CN113485600A (zh) 歌单的分享方法、装置和电子设备
CN112261470A (zh) 音频处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22897674

Country of ref document: EP

Kind code of ref document: A1