CN117041631A - Video preloading method and device, electronic equipment and storage medium - Google Patents

Video preloading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117041631A
CN117041631A CN202311009232.9A CN202311009232A CN117041631A CN 117041631 A CN117041631 A CN 117041631A CN 202311009232 A CN202311009232 A CN 202311009232A CN 117041631 A CN117041631 A CN 117041631A
Authority
CN
China
Prior art keywords
video
duration value
downloading
duration
data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311009232.9A
Other languages
Chinese (zh)
Inventor
朱新闻
高炳楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu com Times Technology Beijing Co Ltd
Original Assignee
Baidu com Times Technology Beijing Co Ltd
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 Baidu com Times Technology Beijing Co Ltd filed Critical Baidu com Times Technology Beijing Co Ltd
Priority to CN202311009232.9A priority Critical patent/CN117041631A/en
Publication of CN117041631A publication Critical patent/CN117041631A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25841Management of client data involving the geographical location of the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Abstract

The disclosure provides a video preloading method, a video preloading device, electronic equipment and a storage medium, relates to the technical field of data processing, and particularly relates to the technical field of video processing. The specific implementation scheme is as follows: detecting the motion state of a target user in the running process of a client; responding to the detection that the motion state is a moving state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to be a first duration value, and carrying out data pre-downloading on the video by utilizing the first duration value; the first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video. The video loading rate under the sudden network condition can be reduced through the scheme, so that the playing smoothness is improved, and the user experience is improved.

Description

Video preloading method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of data processing, in particular to the technical field of video processing, and specifically relates to a video preloading method, a device, electronic equipment and a storage medium.
Background
Video APP (Application) typically pre-downloads video data for a fixed period of time while playing video, for example: the data of the current video 5s is pre-downloaded and the data of the next video 10s or videos is pre-downloaded.
When a user plays videos by using the video APP, the video APP can be always in an environment with unstable network conditions such as an elevator, a subway and the like, and at the moment, the video APP can play videos according to the pre-downloaded video data.
Disclosure of Invention
The disclosure provides a video preloading method, a video preloading device, electronic equipment and a storage medium, which can reduce video loading rate under sudden network conditions so as to improve playing smoothness and further increase user experience.
According to a first aspect of the present disclosure, there is provided a video preloading method, including:
detecting the motion state of a target user in the running process of a client;
responding to the detection that the motion state is a moving state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to be a first duration value, and carrying out data pre-downloading on the video by utilizing the first duration value;
The first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
Optionally, the method further comprises:
responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
the second duration value is a duration value obtained by reducing the target duration.
Optionally, the pre-downloading of the data of any video includes: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
Optionally, before the duration value of the pre-download duration used for pre-downloading the data of the video is adjusted to the first duration value to perform data pre-downloading on the video by using the first duration value, the method further includes:
and detecting whether the current network state meets a preset weak network condition, if so, triggering the duration value of the pre-downloading duration utilized for pre-downloading the data of the video to be adjusted to a first duration value, so as to utilize the first duration value to pre-download the data of the video.
Optionally, before the adjusting the duration value of the pre-download duration used for pre-downloading the data of the video to the second duration value to perform data pre-downloading on the video by using the second duration value, the method further includes:
and detecting whether the current network state meets a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video, and adjusting the duration value to a second duration value so as to perform data pre-downloading on the video by using the second duration value.
Optionally, the detecting the motion state of the target user in the running process of the client includes:
acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
and determining the motion state of the target user in the running process of the client based on the motion frequency.
Optionally, the determining, based on the motion frequency, a motion state of the target user in the running process of the client includes:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
If the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
wherein the second threshold is greater than the first threshold.
According to a second aspect of the present disclosure, there is provided a video preloading device, comprising:
the first detection module is used for detecting the motion state of a target user in the running process of the client;
the first adjusting module is used for responding to the detection that the motion state is a moving state, and if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to a first duration value so as to carry out data pre-downloading on the video by utilizing the first duration value;
the first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
Optionally, the method further comprises:
the second adjusting module is used for responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting the duration value of the pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
The second duration value is a duration value obtained by reducing the target duration.
Optionally, the pre-downloading of the data of any video includes: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
Optionally, the apparatus further comprises:
and the second detection module is used for detecting whether the current network state accords with a preset weak network condition, if so, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to be adjusted to a first duration value, so that the data of the video is pre-downloaded by using the first duration value.
Optionally, the apparatus further comprises:
and the third detection module is used for detecting whether the current network state accords with a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to adjust the duration value to a second duration value, and carrying out data pre-downloading on the video by using the second duration value.
Optionally, the first detection module includes:
the acquisition sub-module is used for acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
And the determining submodule is used for determining the motion state of the target user in the running process of the client based on the motion frequency.
Optionally, the determining submodule is specifically configured to:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
if the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
wherein the second threshold is greater than the first threshold.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the video preloading methods.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform any of the video preloading methods.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements any of the video preloading methods.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow diagram of a video preloading method provided in accordance with the present disclosure;
FIG. 2 is another flow diagram of a video preloading method provided in accordance with the present disclosure;
FIG. 3 is a further flow diagram of a video preloading method provided in accordance with the present disclosure;
FIG. 4 is a schematic diagram of a video preloading device provided in accordance with the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a video preloading method of embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Video class APP generally optimizes performance when used, such as: and caching more data in advance for the current video, and simultaneously pre-downloading data for one or more videos next to the current video so as to ensure the smoothness of video playing.
But the pre-download for video is typically a fixed duration, such as: the pre-downloaded fixed time length is 5s for the current video and 10s for the next video or videos of the current video.
There is also a scheme in the related art for determining the pre-download duration for the playing time of the current video, for example: if the playing time of the current video is within 0s-5s, pre-downloading data 10s after the current playing time; if the playing time of the current video is within 5s-30s, linearly increasing the pre-downloading time of the current video; if the playing time of the current video is 30s later, pre-downloading data of 50s later than the current playing time; which is also essentially downloading video data of a fixed duration for the current playing time.
Users often stay in unstable environments such as elevators and subways, and when using video APP, the users can play video according to the pre-downloaded data with fixed duration, but if sudden network conditions occur, for example: the network signal suddenly weakens and the like, so that the smooth playing of the video cannot be ensured by the pre-downloaded data with fixed duration, the video loading condition can occur, and the user experience is poor.
Based on the above, the present disclosure provides a video preloading method, a device, an electronic device and a storage medium, which can reduce the video loading rate under the sudden network condition, so as to improve the playing fluency, thereby increasing the user experience.
A video preloading method provided by the present disclosure is first described below.
The video preloading method disclosed by the disclosure can be applied to electronic equipment. The electronic device may be a terminal device, and the terminal device may be a mobile phone, a computer, or the like, which is not limited to a specific form of the electronic device in this disclosure. In addition, the method for preloading can be applied to any scene with video preloading requirements, for example: video scenes played based on video APP, or video scenes played based on other types of APP with video playing function, such as: news APP, shopping APP, etc., to which the present disclosure is not limited.
Specifically, an execution subject of a video preloading method related to the present disclosure may be a video preloading device. The video preloading means may be, for example, functional software running on the terminal device, such as: video class APP; the video preloading device may also be a plug-in an existing client, for example: plug-ins in news class clients, shopping class clients, and the like.
The video preloading method provided by the embodiment of the disclosure may include the following steps:
detecting the motion state of a target user in the running process of a client;
responding to the detection that the motion state is a moving state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to be a first duration value, and carrying out data pre-downloading on the video by utilizing the first duration value;
the first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
The video preloading method is different from video data preloading with fixed duration in the related art, can detect the motion state of a target user in the running process of a client, responds to the detection that the motion state is a moving state, and adjusts the duration value of the preloading duration utilized by the data preloading of any video to a first duration value to utilize the first duration value to perform data preloading on the video if the data preloading of any video is performed on the target user currently; that is, if the target user is in a moving state during the operation of the client, and any video data is pre-downloaded to the target user, the duration value of the pre-download duration used can be adjusted to be a first duration value, that is, the target duration value of the predetermined duration value based on which the data of each video is pre-downloaded as the client is increased, so as to obtain the first duration value, and the video data is pre-downloaded by using the first duration value. Through the scheme, if the sudden network condition occurs, the data volume of the pre-downloaded data is increased due to the fact that the time length value of the pre-download time length is increased in advance, so that the video loading rate under the sudden network condition can be reduced, the playing fluency is improved, and the user experience is improved.
An exemplary description of a video preloading method provided by the present disclosure is provided below with reference to the accompanying drawings.
As shown in fig. 1, a video preloading method provided by the present disclosure may include the following steps:
s101: detecting the motion state of a target user in the running process of a client;
in the embodiment of the disclosure, the subsequent video preloading can be performed according to the motion state of the target user, and the motion state of the target user in the running process of the client can be detected first. The client may be a video client, or other clients with video playing function, such as a news client, a shopping client, a game client, etc., which is not limited in this disclosure.
Illustratively, the detecting the motion state of the target user during the running process of the client includes:
acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
and determining the motion state of the target user in the running process of the client based on the motion frequency.
When detecting the motion state of the target user in the running process of the client, the motion frequency of the target user in a preset time period in the running process of the client can be acquired first, and the motion state of the target user in the running process of the client can be determined based on the motion frequency. Wherein the predetermined time period is a time period determined based on the current time, for example: the predetermined time period is the first 5min, 3min, 1min, etc. of the current time, for example: the current time is 1:00, the predetermined time period may be a time period of 12:55-1:00; alternatively, the predetermined time period is the first 5 minutes 1 minute from the current time interval, for example: the current time is 1:00, the predetermined period of time may be a period of time of 12:54-12:59, which is not limited by the present disclosure.
In addition, the method for obtaining the movement frequency of the target user in the preset time period in the operation process of the client may be as follows: and acquiring the movement frequency of the target user in a preset time period in the running process of the client based on a sensor in the electronic equipment to which the client belongs. The sensor in the electronic device to which the client belongs may be: the position sensor, the motion sensor and/or the acceleration sensor and the like can determine the motion frequency of the target user in a preset time period in the operation process of the client based on the data about the motion or the position acquired by the sensor, and the determination mode can be similar to that of the prior art, and is not repeated herein.
The motion state of the target user in the running process of the client can be accurately determined based on the motion frequency in a mode of the motion frequency of the target user in a preset time period in the running process of the client, so that the follow-up response to the detection that the motion state is a moving state is performed, and the data pre-downloading of the video is performed.
Wherein, based on the motion frequency, determining the motion state of the target user in the running process of the client comprises:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
If the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
wherein the second threshold is greater than the first threshold.
In the embodiment of the disclosure, a first threshold value and a second threshold value for the motion frequency are set, the second threshold value is larger than the first threshold value, when the motion state of the target user in the running process of the client is determined based on the motion frequency, if the motion frequency is lower than the first threshold value, the motion state of the target user in the running process of the client can be determined to be a static state; if the motion frequency is higher than the second threshold value, the motion state of the target user in the running process of the client can be determined to be a moving state. Of course, the determined motion state is a motion state for a predetermined period of time, and the motion states determined for different periods of time may be the same or different. In addition, if the motion frequency is higher than the first threshold value and lower than the second threshold value, the video may be preloaded in a manner provided by the related art.
In the embodiment of the disclosure, a first threshold and a second threshold are set, when the motion state of the target user in the running process of the client is determined based on the motion frequency, the motion state of the target user in the running process of the client can be rapidly determined by comparing the motion frequency with the first threshold and the second threshold according to the size relation of the motion state and the second threshold, and then the data pre-downloading of the video can be rapidly performed in response to the fact that the motion state is detected to be the moving state.
It should be emphasized that the specific implementation of detecting a motion state of a target user during a client operation is merely an example, and any specific implementation capable of detecting a motion state of a target user during a client operation may be applied to the present disclosure. In addition, it can be understood that the motion state of the target user in the running process of the client can be detected when the client is in front-end running, namely not in background running; of course, in other implementations, when the client is in front-end operation and the video playing interface is in an open state, the motion state of the target user during the operation of the client may be detected. In addition, the motion state of the target user in the running process of the client can be periodically detected.
S102: responding to the detection that the motion state is a moving state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to be a first duration value, and carrying out data pre-downloading on the video by utilizing the first duration value;
the first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
When the motion state is the moving state, the video preloading method provided by the invention can respond to the detection that the motion state is the moving state, if any video data is pre-downloaded aiming at the target user at present, longer video can be pre-downloaded, the video loading rate in the burst state is reduced, the play fluency is improved, and the user experience is increased; specifically, the duration value of the pre-download duration utilized by the pre-download of the video data can be adjusted to be the first duration value, so that the pre-download of the video data is performed by using the first duration value, the pre-download duration is longer than the fixed duration at this time, that is, the first duration value is longer than the target duration value, and if the network condition occurs, the pre-download data can be utilized to perform longer-time playing, so that the video loading rate under the sudden condition is reduced, the playing smoothness is improved, and the user experience is increased. The target duration value is a shared fixed duration value of each video.
It can be understood that, before the adjustment, the duration value of the pre-download duration utilized by the data pre-download of the video may be a target duration value; in the present disclosure, a motion state of a target user in a running process of a client may be periodically detected, where the period is a predetermined period of time, and before adjustment, a duration value of a pre-download duration utilized by data pre-download of the video may also be a first duration value adjusted in a previous period, or a second subsequent duration value adjusted in a previous period.
Illustratively, the pre-downloading of data for any video includes: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
For any video, the data can be pre-downloaded for the video at present, and any video can be pre-downloaded by executing the video pre-loading method provided by the disclosure.
The pre-downloading of the data of any video can be the pre-downloading of the data of the video displayed in the playing interface and/or the pre-downloading of the associated video displayed in the playing interface; the playing interface may be a playing interface of a client related to the present disclosure, and the associated video of the video displayed in the playing interface may be the next video or videos of the video displayed in the playing interface, which is not limited in this disclosure.
By pre-downloading the data of the video displayed in the playing interface and/or pre-downloading the associated video of the video displayed in the playing interface, the method can enable: if a network emergency occurs, the user may play the video displayed in the playing interface and/or play the associated video of the video displayed in the playing interface, at this time, video playing may be performed according to the pre-downloaded data, so as to reduce the video loading rate of the video displayed in the playing interface and/or play the associated video of the video displayed in the playing interface, thereby improving the smoothness of playing, further increasing the user experience and having better applicability.
It should be noted that, for any video, the video is a video displayed in the playing interface, and compared with an associated video of the video displayed in the playing interface, because the corresponding target duration value may be different, the value of the first duration value may be different. For example: for the pre-downloading of the video data displayed in the playing interface, the value of the pre-downloading time length based on the pre-downloading of the data can be 5s, namely the target time length value is 5s, and at the moment, the value of the first time length value can be 10s; for each associated video of the video displayed in the playing interface, the value of the pre-download duration is 10s, that is, the target duration value is 10s, and at this time, the first duration value may be 20s.
The above description of the target time period value and the first time period value is merely an example and should not be construed as limiting the present disclosure.
Optionally, before the duration value of the pre-download duration used for pre-downloading the data of the video is adjusted to the first duration value to perform data pre-downloading on the video by using the first duration value, the method further includes:
and detecting whether the current network state meets a preset weak network condition, if so, triggering the duration value of the pre-downloading duration utilized for pre-downloading the data of the video to be adjusted to a first duration value, so as to utilize the first duration value to pre-download the data of the video.
Before the time length value of the pre-downloading time length is adjusted to be the first time length value so as to pre-download the data of the video by utilizing the first time length value, whether the current network state meets the preset weak network condition can be detected, and therefore the time length value of the pre-downloading time length is comprehensively adjusted according to the motion state of the target user and the network state. Illustratively, the weak network condition may be that the network speed is lower than a predetermined speed, or that the network signal is lower than a predetermined strength, etc.; the present disclosure is not limited to the specific content of the weak network condition, and any condition content that characterizes the poor network condition may be used as the specific content of the weak network condition.
Specifically, if the current network state meets a predetermined weak network condition, that is, the current network state is poor or general, and the motion state of the target user in the running process of the client is a moving state, the duration value of the pre-download duration utilized by the pre-download of the video data can be adjusted to be a first duration value at this time, so that the pre-download of the video data is performed by using the first duration value, and if an abrupt network condition occurs, the data volume of the pre-download data is increased due to the pre-increase of the duration value of the pre-download duration, so that the video loading rate under the abrupt network condition can be reduced, the play smoothness can be improved, and the user experience is increased.
In addition, if the current network state does not meet the predetermined weak network condition, that is, the current network state is good, and the motion state of the target user in the running process of the client is a moving state, at this time, the duration value of the pre-download duration utilized by the pre-download of the video data can be adjusted to the target duration value, and of course, the duration value can be adjusted to the subsequent second duration value, which is not limited in the disclosure. At this time, if the network state of the user is good, and the data pre-downloading is performed on the video by adopting the first duration value, the pre-downloaded content may not be completely played, and because the network state is good, the real-time downloading of the video data can be performed, compared with the pre-downloading of the data of the first duration value after the fixed target duration is increased, the data of the redundant duration can be downloaded, and the waste of network resources, flow resources, bandwidth resources and the like is caused; therefore, the time length value of the pre-downloading time length utilized by pre-downloading the video data can be adjusted to be the target time length value or the second time length value, the flow utilization rate is improved, the bandwidth cost is reduced, and the network resources are saved.
In the embodiment of the disclosure, the duration value of the pre-download duration utilized by the pre-download of the data of the video can be comprehensively adjusted according to the mobile state of the user and the current network state, so as to increase, decrease or keep unchanged the duration value of the pre-download duration utilized by the pre-download of the data of the video.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the video data accord with the regulations of related laws and regulations, and the public order is not violated.
The video preloading method is different from video data preloading with fixed duration in the related art, can detect the motion state of a target user in the running process of a client, responds to the detection that the motion state is a moving state, and adjusts the duration value of the preloading duration utilized by the data preloading of any video to a first duration value to utilize the first duration value to perform data preloading on the video if the data preloading of any video is performed on the target user currently; that is, if the target user is in a moving state during the operation of the client, and any video data is pre-downloaded to the target user, the duration value of the pre-download duration used can be adjusted to be a first duration value, that is, the target duration value of the predetermined duration value based on which the data of each video is pre-downloaded as the client is increased, so as to obtain the first duration value, and the video data is pre-downloaded by using the first duration value. Through the scheme, if the sudden network condition occurs, the data volume of the pre-downloaded data is increased due to the fact that the time length value of the pre-download time length is increased in advance, so that the video loading rate under the sudden network condition can be reduced, the playing fluency is improved, and the user experience is improved.
In another embodiment of the present disclosure, as shown in fig. 2, the steps further include:
s103: responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
the second duration value is a duration value obtained by reducing the target duration.
When the motion state is in a static state, the network condition is usually good, and then the video preloading method provided by the invention can respond to the detection that the motion state is in the static state, if any video data is pre-downloaded for a target user at present, shorter video can be pre-downloaded, and the flow utilization rate is improved, so that the bandwidth cost is reduced and the network resource is saved by avoiding the pre-downloading of excessive data; specifically, the duration value of the pre-download duration used for pre-downloading the video data can be adjusted to be a second duration value, so that the pre-download duration of the video data is performed by using the second duration value, and at the moment, the pre-download duration is smaller than the fixed duration, that is, the second duration value is smaller than the target duration value, and at the moment, real-time downloading of the video data can be performed, if the pre-download of the video data is performed according to the target duration value or the first duration value, the pre-downloaded content may not be completely played, so that the pre-download duration of the video data is not excessively long, the pre-download of the video data can be performed by using the second duration value, thereby improving the flow utilization rate, reducing the bandwidth cost and saving the network resources.
It can be understood that, before the adjustment, the duration value of the pre-download duration utilized by the data pre-download of the video may be a target duration value; in the present disclosure, the motion state of the target user in the running process of the client may be periodically detected, and before adjustment, the duration value of the pre-download duration utilized by the pre-download of the data of the video may also be the second duration value adjusted in the previous period, or the first duration value adjusted in the previous period.
Optionally, before the adjusting the duration value of the pre-download duration used for pre-downloading the data of the video to the second duration value to perform data pre-downloading on the video by using the second duration value, the method further includes:
and detecting whether the current network state meets a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video, and adjusting the duration value to a second duration value so as to perform data pre-downloading on the video by using the second duration value.
Before the time length value of the pre-downloading time length is adjusted to be the second time length value, so that the video is pre-downloaded by utilizing the second time length value, whether the current network state meets the preset weak network condition can be detected, and the time length value of the pre-downloading time length is comprehensively adjusted according to the motion state of the target user and the network state. Illustratively, the weak network condition may be that the network speed is lower than a predetermined speed, or that the network signal is lower than a predetermined strength, etc.; the present disclosure is not limited to the specific content of the weak network condition, and any condition content that characterizes the poor network condition may be used as the specific content of the weak network condition.
Specifically, if the current network state does not meet the predetermined weak network condition, that is, the current network state is good, and the motion state of the target user in the running process of the client is a static state, at this time, the network state of the user is good, if the first duration value is adopted to pre-download the video, the pre-downloaded content may not be completely played, and because the network state is good, the real-time downloading of the video data can be performed, and compared with the pre-downloading of the data of the first duration value after the fixed target duration is increased, the redundant duration data can be downloaded, so that the waste of network resources, traffic resources, bandwidth resources and the like is caused; therefore, the time length value of the pre-downloading time length utilized by pre-downloading the video data can be adjusted to be the target time length value or the second time length value, the flow utilization rate is improved, the bandwidth cost is reduced, and the network resources are saved.
In addition, if the current network state meets a predetermined weak network condition, that is, the current network state is poor or general, and the motion state of the target user in the running process of the client is a static state, at this time, the duration value of the pre-download duration utilized by the pre-download of the video data can be adjusted to the target duration value, and of course, the duration value can be adjusted to the first duration value, which is not limited in the disclosure. At this time, the network state of the user is poor or in general, if the second duration value is adopted to pre-download the video, the pre-downloaded content is less, if the network emergency occurs, the pre-downloaded data cannot guarantee smooth playing of the video, and the situation of video loading can occur, so that the user experience is poor. Therefore, the duration value of the pre-download duration utilized by the pre-download of the video data can be adjusted to be the target duration value or the first duration value, so that the pre-download of the video data is performed by using the first duration value, and if the sudden network condition occurs, the data volume of the pre-download data is increased due to the pre-increase of the duration value of the pre-download duration, so that the video loading rate under the sudden network condition can be reduced, the play smoothness is improved, and the user experience is increased.
It should be noted that, for any video, the video is a video displayed in the playing interface, and compared with an associated video of the video displayed in the playing interface, because the corresponding target duration value may be different, the value of the second duration value may be different. For example: for the pre-downloading of the video data displayed in the playing interface, the value of the pre-downloading time length based on the pre-downloading of the data can be 5s, namely the target time length value is 5s, and at the moment, the value of the second time length value can be 0s; for each associated video of the video displayed in the playing interface, the value of the pre-download duration is 10s, that is, the target duration value is 10s, and at this time, the second duration value may be 5s.
The above description of the target time period value and the second time period value is merely an example, and should not be construed as limiting the present disclosure.
The video preloading method provided by the embodiment of the disclosure can also adjust the duration value of the pre-downloading duration utilized by the data pre-downloading of the video to a second duration value in response to the detection that the motion state is the static state, so as to utilize the second duration value to perform the data pre-downloading of the video; at this time, resource waste caused by that the pre-downloaded content may not be completely played can be avoided, the flow utilization rate can be improved, the bandwidth cost can be reduced, and the network resources can be saved. And whether the current network state meets the preset weak network condition can be detected, if not, the duration value of the pre-downloading duration utilized by the pre-downloading of the video data is adjusted to be a second duration value, so that the pre-downloading of the video data is performed by using the second duration value, and if the sudden network condition occurs, the data volume of the pre-downloaded data is increased due to the pre-increased duration value of the pre-downloading duration, so that the video loading rate under the sudden network condition can be reduced, the playing smoothness is improved, and the user experience is improved. It can be seen that, in the embodiment of the present disclosure, the duration value of the pre-download duration utilized by the data pre-download of the video may be comprehensively adjusted according to the static state of the user and the current network state, so as to increase, decrease or keep unchanged the duration value of the pre-download duration utilized by the data pre-download of the video.
A method for preloading video provided by the present disclosure is described in detail below in connection with a specific embodiment.
According to the video preloading method provided by the disclosure, the user can be judged to be in a moving state or a static state according to the motion state of the user, and if the user is in the moving state, the data preloading of the video is increased; if the user is in a static state, reducing the data pre-downloading of the video; specifically, as shown in fig. 3, the steps may be as follows:
s301: analyzing the motion state of the user;
counting the frequency of the remarkable movement (position change) occurring in the previous N minutes of the user, if the frequency is lower than X times, judging that the user is in a static state, and if the frequency is higher than Y times, judging that the user is in a moving state. Corresponding to the acquisition of the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time; and determining the motion state of the target user in the running process of the client based on the motion frequency. The first N minutes correspond to the predetermined period of time described above, X times the first threshold described above, and Y times the second threshold described above.
S302: performing policy optimization according to the motion state of the user;
and performing strategy optimization on the pre-download of the video data according to the motion state of the user.
If the user is in a static state, the size of the pre-downloaded data is reduced (e.g., the data of 3s before downloading from the default is reduced to 0s, i.e., the data is not downloaded), and the size of the buffer level in playing is reduced (e.g., the data of 20s after downloading is reduced to the data of 5s after downloading only).
If the user is in a mobile state, the size of the pre-downloaded data is increased (for example, the data of 3s before downloading is increased to the data of 10s before downloading from the default), and the size of the buffer level in playing is increased (for example, the data of 20s after downloading is increased to the data of 40s after downloading).
The size of the pre-downloaded data is the size of the pre-downloaded associated video of the video displayed in the playing interface, and the size of the buffer water level in playing is the size of the pre-downloaded data of the video displayed in the playing interface.
Of course, the data such as the current network speed and the network signal of the user, namely the data representing the network state, can be obtained, the current network state of the user is determined, and the data pre-downloading of the user for the video is comprehensively adjusted according to the motion state of the user and the network state. For example: the user is in a static state, but the network state is poor or general, the pre-download data amount of the video can not be reduced, even the pre-download data amount of the video is increased, and the like, and the pre-download of the data of the video can be comprehensively adjusted according to the motion state of the user, the network state and the like, and the user is not limited by the method.
According to the video preloading method, the list page in the video APP can be used for executing the video preloading method, the buffer water level control is carried out by combining the motion state of the user, if the user is in a static state, the buffer water level and the pre-downloaded data in playing are reduced, the flow utilization rate is improved, and the bandwidth cost is reduced; if the user is in a mobile state, the cache water level and the pre-downloaded data size in playing are improved, the video loading rate is reduced, the playing fluency is improved, and therefore user experience is improved. Therefore, the scheme provided by the disclosure can realize the reduction of cost, the reduction of video loading rate and the improvement of user experience by downloading less or more video data in more accurate motion state of the user.
Based on the above method embodiment, the present disclosure further provides a video preloading device, as shown in fig. 4, including:
a first detection module 410, configured to detect a motion state of a target user during a running process of a client;
the first adjustment module 420 is configured to, in response to detecting that the motion state is a moving state, adjust a duration value of a pre-download duration used for pre-downloading data of any video to a first duration value if the data of the video is currently pre-downloaded for the target user, so as to perform data pre-downloading on the video by using the first duration value;
The first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
The video preloading device provided by the disclosure is different from video data preloading with fixed duration in the related art, can detect the motion state of a target user in the running process of a client, responds to the detection that the motion state is a moving state, and adjusts the duration value of the preloading duration utilized by the data preloading of any video to a first duration value to utilize the first duration value to perform data preloading on the video if the data preloading of any video is performed on the target user currently; that is, if the target user is in a moving state during the operation of the client, and any video data is pre-downloaded to the target user, the duration value of the pre-download duration used can be adjusted to be a first duration value, that is, the target duration value of the predetermined duration value based on which the data of each video is pre-downloaded as the client is increased, so as to obtain the first duration value, and the video data is pre-downloaded by using the first duration value. Through the scheme, if the sudden network condition occurs, the data volume of the pre-downloaded data is increased due to the fact that the time length value of the pre-download time length is increased in advance, so that the video loading rate under the sudden network condition can be reduced, the playing fluency is improved, and the user experience is improved.
Optionally, the method further comprises:
the second adjusting module is used for responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting the duration value of the pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
the second duration value is a duration value obtained by reducing the target duration.
Optionally, the pre-downloading of the data of any video includes: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
Optionally, the apparatus further comprises:
and the second detection module is used for detecting whether the current network state accords with a preset weak network condition, if so, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to be adjusted to a first duration value, so that the data of the video is pre-downloaded by using the first duration value.
Optionally, the apparatus further comprises:
and the third detection module is used for detecting whether the current network state accords with a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to adjust the duration value to a second duration value, and carrying out data pre-downloading on the video by using the second duration value.
Optionally, the first detection module includes:
the acquisition sub-module is used for acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
and the determining submodule is used for determining the motion state of the target user in the running process of the client based on the motion frequency.
Optionally, the determining submodule is specifically configured to:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
if the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
wherein the second threshold is greater than the first threshold.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
The present disclosure provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the video preloading methods.
The present disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform any of the video preloading methods.
The present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements any of the video preloading methods described.
Fig. 5 illustrates a schematic block diagram of an example electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the video preloading method. For example, in some embodiments, the video preloading method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When a computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the video preloading method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the video preloading method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (17)

1. A video preloading method, comprising:
detecting the motion state of a target user in the running process of a client;
responding to the detection that the motion state is a moving state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to be a first duration value, and carrying out data pre-downloading on the video by utilizing the first duration value;
The first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
2. The method of claim 1, further comprising:
responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
the second duration value is a duration value obtained by reducing the target duration.
3. The method of claim 1 or 2, wherein the pre-downloading of data for either video comprises: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
4. The method of claim 1, wherein the duration value of the pre-download duration utilized for pre-downloading the data of the video is adjusted to a first duration value, and the method further comprises, prior to pre-downloading the data of the video using the first duration value:
And detecting whether the current network state meets a preset weak network condition, if so, triggering the duration value of the pre-downloading duration utilized for pre-downloading the data of the video to be adjusted to a first duration value, so as to utilize the first duration value to pre-download the data of the video.
5. The method of claim 2, wherein the duration value of the pre-download duration utilized for pre-downloading the data of the video is adjusted to a second duration value, and the method further comprises, prior to pre-downloading the data of the video using the second duration value:
and detecting whether the current network state meets a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video, and adjusting the duration value to a second duration value so as to perform data pre-downloading on the video by using the second duration value.
6. The method according to claim 1 or 2, wherein the detecting the motion state of the target user during the client running process comprises:
acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
And determining the motion state of the target user in the running process of the client based on the motion frequency.
7. The method of claim 6, wherein the determining, based on the frequency of motion, a motion state of the target user during the client operation comprises:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
if the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
wherein the second threshold is greater than the first threshold.
8. A video preloading device comprising:
the first detection module is used for detecting the motion state of a target user in the running process of the client;
the first adjusting module is used for responding to the detection that the motion state is a moving state, and if any video data pre-downloading is carried out on the target user currently, adjusting a duration value of a pre-downloading duration utilized by the video data pre-downloading to a first duration value so as to carry out data pre-downloading on the video by utilizing the first duration value;
The first duration value is a duration value obtained by increasing a target duration value, and the target duration value is a preset duration value based on which the client terminal performs data pre-downloading of each video.
9. The apparatus of claim 8, further comprising:
the second adjusting module is used for responding to the detection that the motion state is in a static state, if any video data pre-downloading is carried out on the target user currently, adjusting the duration value of the pre-downloading duration utilized by the video data pre-downloading to a second duration value, and carrying out data pre-downloading on the video by utilizing the second duration value;
the second duration value is a duration value obtained by reducing the target duration.
10. The apparatus of claim 8 or 9, wherein the pre-downloading of data for either video comprises: and the data of the video displayed in the playing interface is pre-downloaded, and/or the associated video of the video displayed in the playing interface is pre-downloaded.
11. The apparatus of claim 8, wherein the apparatus further comprises:
and the second detection module is used for detecting whether the current network state accords with a preset weak network condition, if so, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to be adjusted to a first duration value, so that the data of the video is pre-downloaded by using the first duration value.
12. The apparatus of claim 9, wherein the apparatus further comprises:
and the third detection module is used for detecting whether the current network state accords with a preset weak network condition, if not, triggering the duration value of the pre-downloading duration used for pre-downloading the data of the video to adjust the duration value to a second duration value, and carrying out data pre-downloading on the video by using the second duration value.
13. The apparatus of claim 8 or 9, wherein the first detection module comprises:
the acquisition sub-module is used for acquiring the motion frequency of the target user in a preset time period in the operation process of the client; wherein the predetermined time period is a time period determined based on a current time;
and the determining submodule is used for determining the motion state of the target user in the running process of the client based on the motion frequency.
14. The apparatus of claim 13, wherein the determination submodule is specifically configured to:
if the motion frequency is lower than a first threshold value, determining that the motion state of the target user in the operation process of the client is a static state;
if the motion frequency is higher than a second threshold value, determining that the motion state of the target user in the running process of the client is a moving state;
Wherein the second threshold is greater than the first threshold.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202311009232.9A 2023-08-10 2023-08-10 Video preloading method and device, electronic equipment and storage medium Pending CN117041631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311009232.9A CN117041631A (en) 2023-08-10 2023-08-10 Video preloading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311009232.9A CN117041631A (en) 2023-08-10 2023-08-10 Video preloading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117041631A true CN117041631A (en) 2023-11-10

Family

ID=88622239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311009232.9A Pending CN117041631A (en) 2023-08-10 2023-08-10 Video preloading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117041631A (en)

Similar Documents

Publication Publication Date Title
CN110351595B (en) Buffer processing method, device, equipment and computer storage medium
CN107483401B (en) Multimedia data transmission method and equipment, storage medium and server thereof
CN108701026B (en) Method and apparatus for managing processes under memory constraints
US11889135B2 (en) Video stream playing control method and apparatus, and storage medium
WO2018120627A1 (en) Audio data processing method and apparatus
CN115103210A (en) Information processing method, device, terminal and storage medium
CN114786055A (en) Preloading method, preloading device, electronic equipment and medium
CN117041631A (en) Video preloading method and device, electronic equipment and storage medium
CN109831673B (en) Live broadcast room data processing method, device, equipment and storage medium
CN115469816B (en) Method, device, equipment and storage medium for switching reading and writing of memory
CN114501084B (en) Play method, device, equipment and medium of player
CN114071192A (en) Information acquisition method, terminal, server, electronic device, and storage medium
CN114710804A (en) Data transmission adjusting method and device, electronic equipment and readable storage medium
CN115801639A (en) Bandwidth detection method and device, electronic equipment and storage medium
CN113808585A (en) Earphone awakening method, device, equipment and storage medium
CN113727172A (en) Video cache playing method and device, electronic equipment and storage medium
CN106790428B (en) Data transmission method and device
CN113556621B (en) Method, server, client, device and storage medium for switching code streams
CN116033235B (en) Data transmission method, digital person production equipment and digital person display equipment
CN112541472B (en) Target detection method and device and electronic equipment
CN115209224B (en) Transport stream segment verification method, device, equipment and storage medium
CN113721755B (en) Screen power saving method and device
CN115086300B (en) Video file scheduling method and device
CN114125135B (en) Video content presentation method and device, electronic equipment and storage medium
US20230267060A1 (en) Performance testing method and apparatus, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination