[go: nahoru, domu]

CN111277867B - Video downloading method, device, server and storage medium - Google Patents

Video downloading method, device, server and storage medium Download PDF

Info

Publication number
CN111277867B
CN111277867B CN202010139349.9A CN202010139349A CN111277867B CN 111277867 B CN111277867 B CN 111277867B CN 202010139349 A CN202010139349 A CN 202010139349A CN 111277867 B CN111277867 B CN 111277867B
Authority
CN
China
Prior art keywords
video
playing
downloading
currently
played video
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.)
Active
Application number
CN202010139349.9A
Other languages
Chinese (zh)
Other versions
CN111277867A (en
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.)
Bigo Technology Pte Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202010139349.9A priority Critical patent/CN111277867B/en
Publication of CN111277867A publication Critical patent/CN111277867A/en
Application granted granted Critical
Publication of CN111277867B publication Critical patent/CN111277867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a server and a storage medium for downloading videos. Wherein, the method comprises the following steps: determining the downloading progress of the currently played video which is not downloaded in real time; if the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, the next played video is pre-downloaded while the currently played video is downloaded until the downloading progress does not support smooth playing of the currently played video, the pre-downloading of the next played video is suspended, and only the currently played video is downloaded. The technical scheme provided by the embodiment of the invention ensures synchronous downloading of the current playing video and the next playing video, so that the next playing video can be downloaded in advance as soon as possible, thereby avoiding playing pause when the videos are switched to be played, ensuring the downloading priority of the current playing video, avoiding playing pause of the current playing video and improving the playing smoothness of the current playing video.

Description

Video downloading method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of video processing, in particular to a method, a device, a server and a storage medium for video downloading.
Background
With the rapid development of the internet technology, various video playing applications are increasingly and widely popularized in daily life of people, at the moment, when a user continuously watches each video with high definition, if the network transmission rate is unstable or the network bandwidth is insufficient, the user needs to wait for a certain buffer time from the moment when clicking to play the video, the video can be played, and particularly for the playing of short videos, the tolerance of the user to the playing waiting time is limited, and the watching experience of the user can be directly influenced.
At present, in order to speed up video playing, if the current video is cached completely in the playing process of the current video, the next video is continuously cached as required, so that when the next video is played, part of the content of the next video is cached, and the next video is ensured to be played quickly; however, in the existing scheme, the next video must be continuously cached only when the current video is cached completely, and if the user plays the current video and the current video is not cached completely, the next video is directly played in a switching manner, and at this time, the next video does not start to be cached yet, and a certain buffering time still needs to be waited, so that the problem that the playing is blocked when the user frequently switches to play the video exists.
Disclosure of Invention
The embodiment of the invention provides a video downloading method, a video downloading device, a server and a storage medium, which ensure the pre-downloading of the next playing video and avoid the playing jam when the video is switched to be played.
In a first aspect, an embodiment of the present invention provides a method for downloading a video, where the method includes:
determining the downloading progress of the currently played video which is not downloaded in real time;
if the downloading progress supports smooth playing of the currently played video and remaining pre-downloading of the next played video, the currently played video is downloaded, the next played video is pre-downloaded at the same time, and the pre-downloading of the next played video is suspended until the downloading progress does not support smooth playing of the currently played video, and only the currently played video is downloaded.
In a second aspect, an embodiment of the present invention provides an apparatus for downloading a video, where the apparatus includes:
the downloading progress determining module is used for determining the downloading progress of the currently played video which is not downloaded in real time;
and the video downloading module is used for downloading the current playing video and downloading the next playing video in advance at the same time if the downloading progress supports the smooth playing of the current playing video and the residual pre-downloading of the next playing video, and suspending the pre-downloading of the next playing video and only downloading the current playing video until the downloading progress does not support the smooth playing of the current playing video.
In a third aspect, an embodiment of the present invention provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for video downloading as described in any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for video downloading according to any embodiment of the present invention.
In the method, the device, the server and the storage medium for downloading the video, if the currently played video is not downloaded locally, the corresponding downloading progress is determined in real time in the playing process of the currently played video, at the moment, if the downloading progress supports the smooth playing of the currently played video and the residual pre-downloading of the next played video, the next played video is pre-downloaded while the currently played video is downloaded, so that the synchronous downloading of the currently played video and the next played video in the playing process of the currently played video is ensured, the next played video can be continuously downloaded without the downloading completion of the currently played video, the next played video can be pre-downloaded as soon as possible, the playing card pause during the switching playing of the video is avoided, and the pre-downloading of the next played video is paused until the downloading progress does not support the smooth playing of the currently played video, only the currently played video is downloaded, so that the downloading priority of the currently played video is ensured, the playing jam of the currently played video is avoided, and the playing smoothness of the currently played video is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1A is a flowchart of a video downloading method according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a video downloading process according to an embodiment of the present invention;
fig. 2A is a flowchart of a video downloading method according to a second embodiment of the present invention;
fig. 2B is a schematic diagram of a video downloading process according to a second embodiment of the present invention;
fig. 3 is a flowchart of a video downloading method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video downloading apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1A is a flowchart of a video downloading method according to an embodiment of the present invention, which is applicable to a situation where multiple associated videos are played in any service scenario. The method for downloading video provided by this embodiment may be performed by a device for downloading video provided by the embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, and is integrated in a server for performing the method, where the server may be a background server participating in downloading video data.
Specifically, referring to fig. 1A, the method may include the steps of:
s110, determining the downloading progress of the uncompleted downloaded currently played video in real time.
Specifically, when a user continuously plays each associated video, in order to avoid video playing jamming as much as possible, the user usually selects to download the video in advance before playing the video, and at this time, there are two situations that the downloading is already completed and not completed at this time when playing the video, for example, if the user frequently switches the video playing operation, the user switches to the next video playing after only playing a small part of the video before switching, and at this time, the video after switching may only download a part of the video, and not complete the downloading locally; the video which is not downloaded is processed in a side-by-side playing mode so as to avoid pause of subsequent playing of the video.
In this embodiment, in order to avoid the problem that the video playing is paused when the user frequently switches the video playing operation, and the switched video is not yet downloaded during playing, the switched video is downloaded while the video before switching is played in advance, that is, if the currently played video is not downloaded locally, the next played video is selected to be downloaded simultaneously during the video playing process while the currently played video is being played, and the pre-downloading of the next played video occupies a part of the network bandwidth during downloading the currently played video, so that the downloading rate of the currently played video is reduced, and thus the currently played video may be paused, at this time, in order to avoid the playing of the currently played video being paused, the embodiment needs to analyze in real time whether the downloading state of the currently played video can ensure the smooth playing of the currently played video, when the smooth playing of the currently played video cannot be guaranteed, the downloading of the next played video can be selectively suspended, so that the currently played video can be fully downloaded by adopting all network bandwidths, and the downloading priority of the currently played video is realized.
And S120, if the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, pre-downloading the next played video while downloading the currently played video, and suspending the pre-downloading of the next played video until the downloading progress does not support the smooth playing of the currently played video, and only downloading the currently played video.
Specifically, after determining the downloading progress of the currently playing video in real time, first, it needs to be determined whether the downloading progress can support the smooth playing of the currently playing video, the smooth playing of the currently playing video may require that the playing content of the currently playing video that needs to be played at the current time has been downloaded at the previous time, that is, the remaining playable time of the currently playing video is longer than a preset smooth playing lower limit, which is the minimum time length of the currently playing video that is downloaded and is allowed to be played smoothly, if the downloading progress of the currently playing video is determined to support the smooth playing of the currently playing video, it continues to be determined whether the downloading progress can continue to support the remaining pre-downloading of the next playing video, that is, it is determined whether the remaining playable time length of the currently playing video is longer than the remaining downloading time length of the next playing video after subtracting the preset smooth playing lower limit, as shown in fig. 1B, if the downloading progress of the currently playing video supports smooth playing of the currently playing video and remaining pre-downloading of the next playing video, the currently playing video and the next playing video are downloaded simultaneously in the playing process of the currently playing video, so that the next playing video is synchronously pre-downloaded on the basis of ensuring the playing smoothness of the currently playing video, and pre-downloading of the next playing video is realized, so as to ensure that the next playing video can be played as soon as possible after being switched, and avoid pause in playing of the next playing video.
It should be noted that the preset smooth playing lower limit in this embodiment may be configured by using an online service experiment, for example, an online AB experiment.
Further, when the next playing video is kept in the pre-downloading state, the embodiment further determines the downloading progress of the currently playing video in real time, and determines whether the downloading progress at each subsequent moment is smooth playing of the currently playing video, if the next playing video is always in the pre-downloading state in the current time period until the downloading progress of the currently playing video does not support smooth playing of the currently playing video, that is, the remaining playable time length of the currently playing video is less than or equal to the preset smooth playing lower limit, the pre-downloading of the next playing video is suspended, and the currently playing video is downloaded by using all network bandwidths, so as to ensure that the currently playing video is downloaded as soon as possible, so that more downloaded playing contents can exist in the currently playing video to realize smooth playing, at the moment, the next playing video is always in the pre-downloading suspended state, and the downloading progress of the currently playing video is continuously determined in real time subsequently, and continuously downloading the next playing video again while downloading the current playing video until the downloading progress of the current playing video supports the smooth playing of the current playing video and the residual downloading of the next playing video, and circularly updating the state of whether the next playing video is downloaded in advance or not according to the downloading progress of the current playing video, so that the pre-downloading of the next playing video is realized on the basis of ensuring the smooth playing of the current playing video, and the pause of the playing of the next playing video is avoided.
Illustratively, the remaining playable time length of the currently played video refers to a time length that the currently played video has been downloaded but not played, at this time, the present embodiment sets a transition interval with a length of the remaining download time length of the next played video by hopefully ensuring that the next played video can be downloaded within the remaining playable time period of the currently played video as far as possible, the lower limit of the transition interval is a preset lower smooth play limit, the upper limit of the transition interval is the sum of the preset lower smooth play limit and the remaining download time length of the next played video, since the remaining playable time length of the currently played video changes with the network download state, at this time, if the remaining playable time length of the currently played video is greater than the remaining download time length of the next played video after subtracting the preset lower smooth play limit, that is, the remaining playable time length exceeds the transition upper limit, the next played time length starts to be downloaded, if the continuous remaining playing time length is continuously reduced, the next playing time length still keeps the pre-downloading state when the playing time length is reduced to be positioned in the transition interval, the pre-downloading of the next playing video is not suspended until the playing time length is reduced to be below the preset smooth playing, and if the remaining playing time length of the current playing video begins to increase, the next playing video still keeps the suspended pre-downloading when the playing time length is larger than the preset smooth playing and enters the transition interval, and the next playing video is not downloaded again until the sum of the preset smooth playing lower limit and the remaining downloading time length is increased to be more than the upper limit of the transition interval, so that the state of the pre-downloading of the next playing video is kept in the transition interval when the pre-downloading of the next playing video is switched on and switched off, and the frequent switching between the starting and the suspending cannot be carried out along with the change of the remaining playing time length of the current playing video above and below a certain threshold, and the error of the pre-downloading of the next playing video is avoided.
Further, after determining the currently played video, the present embodiment may further include: and determining the next playing video related to the current playing video.
Specifically, the next playing video associated with the currently playing video is determined by judging the association relationship among the set videos, for example, when a user continuously watches different short videos or television series, the playing sequence of each video is preset, and then the next playing video associated with the currently playing video is determined.
In the technical scheme provided by this embodiment, if the currently playing video is not downloaded locally, the corresponding downloading progress is determined in real time during the playing process of the currently playing video, and at this time, if the downloading progress supports smooth playing of the currently playing video and remaining pre-downloading of the next playing video, the next playing video is pre-downloaded while the currently playing video is downloaded, so as to ensure that the currently playing video and the next playing video are downloaded synchronously during the playing process of the currently playing video, and the next playing video can be continuously downloaded without completing downloading of the currently playing video, so that the next playing video can be pre-downloaded as soon as possible, thereby avoiding the playing jam during switching playing of the video, and only downloading the currently playing video until the downloading progress does not support smooth playing of the currently playing video, the downloading priority of the currently played video is ensured, the playing jam of the currently played video is avoided, and the playing smoothness of the currently played video is improved.
Example two
Fig. 2A is a flowchart of a video downloading method according to a second embodiment of the present invention, and fig. 2B is a schematic diagram of a video downloading process according to the second embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 2A, the present embodiment explains in detail a specific process of determining whether the downloading progress of the currently playing video supports the smooth playing of the currently playing video and the remaining downloading process of the next playing video.
Optionally, as shown in fig. 2A, the present embodiment may include the following steps:
s210, determining the downloading progress of the uncompleted downloaded currently played video in real time.
S220, determining the playing progress of the currently played video in real time.
Specifically, when judging whether the download progress of the currently played video supports the smooth playing of the currently played video, it is necessary to judge whether the remaining playable time length of the playing content that can be played after the currently played video has been downloaded can reach the minimum playable time length that supports the smooth playing, that is, the preset smooth playing lower limit in this embodiment, at this time, as shown in fig. 2B, after the download progress of the currently played video is determined in real time, the play progress of the currently played video also needs to be determined in real time, so as to calculate the remaining playable time length of the currently played video in real time; meanwhile, when judging whether the downloading progress of the currently played video supports the remaining downloading of the next played video, whether the remaining playable time of the currently played video is greater than the remaining downloading time of the next played video on the basis of the preset smooth playing lower limit needs to be judged, so that the remaining downloading time of the next played video is further estimated according to the current network state and the data volume which is not downloaded in the next played video.
For example, in this embodiment, estimating the remaining download duration of the next playing video may specifically include: and estimating the residual downloading time length of the next playing video according to the playing time length and the downloading parameters of the current playing video.
Specifically, in this embodiment, the network state of the next playing video during downloading may be predicted by referring to the network change state of the currently playing video during downloading, and the play duration of the currently playing video and the downloading parameters such as the video bitrate and the downloading rate of the currently playing video downloaded in the current play period are determined first, so that the change condition of the current network state is analyzed according to the play duration and the downloading parameters, and meanwhile, the video data amount of the next playing video not yet downloaded at the current time is determined, and then the remaining downloading duration of the next playing video is estimated according to the network state and the remaining downloading data amount, so as to continuously determine whether the remaining playable duration of the currently playing video supports the remaining downloading duration of the next playing video.
And S230, calculating the remaining playable time length of the currently played video according to the downloading progress and the playing progress of the currently played video.
In this embodiment, after determining the downloading progress and the playing progress of the currently played video in real time, a time difference between the downloading progress and the playing progress is calculated as the remaining playable time of the currently played video.
S240, if the remaining playable time of the currently played video is longer than the remaining download time of the next played video on the basis of the preset smooth play lower limit, the currently played video is downloaded, and the next played video is pre-downloaded at the same time, until the remaining playable time of the currently played video is less than or equal to the preset smooth play lower limit, the pre-download of the next played video is suspended, and only the currently played video is downloaded.
In the technical scheme provided by this embodiment, if the currently played video is not downloaded locally, the corresponding download progress and play progress are determined in real time during the playing process of the currently played video, and at this time, if the remaining playable time of the currently played video is longer than the remaining download time of the next played video on the basis of the preset smooth play lower limit, the next played video is pre-downloaded while the currently played video is downloaded, so as to ensure that the currently played video and the next played video are downloaded synchronously during the playing process of the currently played video, and the next played video can be continuously downloaded without downloading the currently played video after the downloading of the currently played video is completed, so that the next played video can be pre-downloaded as soon as possible, thereby avoiding the playing jam during the switching playing of the video until the remaining playable time of the currently played video is less than or equal to the preset smooth play lower limit, the pre-downloading of the next playing video is suspended, only the current playing video is downloaded, the downloading priority of the current playing video is ensured, the playing jam of the current playing video is avoided, and the playing smoothness of the current playing video is improved.
EXAMPLE III
Fig. 3 is a flowchart of a video downloading method according to a third embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 3, the present embodiment explains in detail the other steps existing in the video downloading process.
Optionally, as shown in fig. 3, the present embodiment may include the following steps:
s310, determining the current playing video which is appointed to be played by the user playing instruction.
Optionally, the user may select a currently played video at the client to play, for example, by sliding a plurality of short videos to play the video displayed on the current interface, or clicking the collection number currently played in the television scenario, so as to generate a corresponding user playing instruction, and the server analyzes the user playing instruction to determine that the currently played video is specified, so as to subsequently determine whether the currently played video is completely downloaded at the client.
S320, judging whether the downloading of the current playing video is finished, if so, executing S330; if not, go to S340.
S330, playing the downloaded current playing video and only pre-downloading the next playing video.
In this embodiment, if the currently playing video is completely downloaded, the currently playing video that has been downloaded is directly played, and only the next playing video associated with the currently playing video is pre-downloaded.
S340, when the currently playing video that is not downloaded is started to play, suspending the pre-downloading of the next playing video, and downloading only the currently playing video.
Optionally, when it is determined that the currently played video is not completely downloaded, the currently played video is started to be played according to the playing instruction of the user, and at this time, in order to ensure that the currently played video is played as soon as possible, in this embodiment, the pre-downloading of the next played video is firstly suspended, and only the remaining playing content that is not downloaded in the currently played video is downloaded, so that the current network can be completely used for playing and downloading the currently played video, and the playing delay of the currently played video is avoided.
And S350, determining the downloading progress of the uncompleted downloaded currently played video in real time.
And S360, if the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, pre-downloading the next played video while downloading the currently played video, and suspending the pre-downloading of the next played video until the downloading progress does not support the smooth playing of the currently played video, and only downloading the currently played video.
In the technical scheme provided by this embodiment, if the currently playing video is not downloaded locally, the corresponding downloading progress is determined in real time during the playing process of the currently playing video, and at this time, if the downloading progress supports smooth playing of the currently playing video and remaining pre-downloading of the next playing video, the next playing video is pre-downloaded while the currently playing video is downloaded, so as to ensure that the currently playing video and the next playing video are downloaded synchronously during the playing process of the currently playing video, and the next playing video can be continuously downloaded without completing downloading of the currently playing video, so that the next playing video can be pre-downloaded as soon as possible, thereby avoiding the playing jam during switching playing of the video, and only downloading the currently playing video until the downloading progress does not support smooth playing of the currently playing video, the downloading priority of the currently played video is ensured, the playing jam of the currently played video is avoided, and the playing smoothness of the currently played video is improved.
Example four
Fig. 4 is a schematic structural diagram of a video downloading apparatus according to a fourth embodiment of the present invention, specifically, as shown in fig. 4, the apparatus may include:
a download progress determining module 410, configured to determine a download progress of a currently played video that is not downloaded in real time;
the video downloading module 420 is configured to, if the downloading progress supports smooth playing of the currently playing video and remaining pre-downloading of the next playing video, pre-download the next playing video while downloading the currently playing video, and suspend pre-downloading of the next playing video until the downloading progress does not support smooth playing of the currently playing video, and only download the currently playing video.
In the technical scheme provided by this embodiment, if the currently playing video is not downloaded locally, the corresponding downloading progress is determined in real time during the playing process of the currently playing video, and at this time, if the downloading progress supports smooth playing of the currently playing video and remaining pre-downloading of the next playing video, the next playing video is pre-downloaded while the currently playing video is downloaded, so as to ensure that the currently playing video and the next playing video are downloaded synchronously during the playing process of the currently playing video, and the next playing video can be continuously downloaded without completing downloading of the currently playing video, so that the next playing video can be pre-downloaded as soon as possible, thereby avoiding the playing jam during switching playing of the video, and only downloading the currently playing video until the downloading progress does not support smooth playing of the currently playing video, the downloading priority of the currently played video is ensured, the playing jam of the currently played video is avoided, and the playing smoothness of the currently played video is improved.
Furthermore, the download progress supports smooth playing of the currently played video and remaining pre-downloading of the next played video, so that the difference between the remaining playable time length of the currently played video and the preset smooth playing lower limit is greater than the remaining download time length of the next played video;
the downloading progress does not support smooth playing of the currently played video, and the remaining available playing time length of the currently played video is less than or equal to a preset smooth playing lower limit.
Further, the apparatus for downloading video may further include:
the parameter determining module is used for determining the playing progress of the currently played video in real time;
and the broadcast time length calculating module is used for calculating the residual broadcast time length of the current broadcast video according to the downloading progress and the playing progress of the current broadcast video.
Further, the apparatus for downloading video may further include:
and the residual duration estimation module is used for estimating the residual downloading duration of the next playing video according to the playing duration and the downloading parameters of the current playing video.
Further, the preset smooth playing lower limit is configured by adopting an online service experiment.
Further, the apparatus for downloading video may further include:
and the download judging module is used for determining the currently played video which is appointed to be played by the user playing instruction and judging whether the currently played video is downloaded.
Further, the apparatus for downloading video may further include:
and the pre-download pausing module is used for pausing the pre-download of the next playing video and only downloading the current playing video when the currently playing video which is not downloaded starts to play.
Further, the apparatus for downloading video may further include:
and the video playing and downloading module is used for playing the currently played video which is downloaded and only downloading the next played video in advance.
Further, the apparatus for downloading video may further include:
and the next video determining module is used for determining the next playing video related to the current playing video.
The video downloading device provided by the embodiment can be applied to the video downloading method provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention, and as shown in fig. 5, the server includes a processor 50, a storage device 51, and a communication device 52; the number of the processors 50 in the server may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50, the storage device 51 and the communication device 52 in the server may be connected by a bus or other means, and the bus connection is taken as an example in fig. 5.
The storage device 51 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the video downloading method according to any embodiment of the present invention. The processor 50 executes various functional applications of the server and data processing by running software programs, instructions and modules stored in the storage device 51, that is, implements the above-described video downloading method.
The storage device 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 51 may further include memory located remotely from the processor 50, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication device 52 may be used to enable a network connection or a mobile data connection between the client and the server.
The server provided by this embodiment can be used to execute the video downloading method provided by any of the above embodiments, and has corresponding functions and advantages.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the method for downloading video in any of the above embodiments. The method specifically comprises the following steps:
determining the downloading progress of the currently played video which is not downloaded in real time;
if the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, the next played video is pre-downloaded while the currently played video is downloaded until the downloading progress does not support smooth playing of the currently played video, the pre-downloading of the next played video is suspended, and only the currently played video is downloaded.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for downloading video provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the video downloading apparatus, the units and modules included in the apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of video downloading, comprising:
determining the downloading progress of the currently played video which is not downloaded in real time;
if the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, starting pre-downloading of the next played video while downloading the currently played video until the downloading progress does not support smooth playing of the currently played video, pausing the pre-downloading of the next played video and only downloading the currently played video; the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, and the difference between the residual playable time length of the currently played video and a preset smooth playing lower limit is larger than the residual downloading time length of the next played video; the downloading progress does not support the smooth playing of the currently played video, namely the remaining available playing time length of the currently played video is less than or equal to the preset smooth playing lower limit;
and if the remaining available playing time of the currently played video is increased to be larger than the preset smooth playing lower limit, keeping the pause pre-downloading of the next played video until the remaining available playing time of the currently played video is larger than the sum of the preset smooth playing lower limit and the remaining downloading time, and starting to pre-download the next played video again.
2. The method of claim 1, after determining in real time a download progress of the currently playing video that has not been downloaded, further comprising:
determining the playing progress of the currently played video in real time;
and calculating the remaining playable time length of the currently played video according to the downloading progress and the playing progress of the currently played video.
3. The method of claim 1, further comprising:
and estimating the residual downloading time of the next playing video according to the playing time and the downloading parameters of the current playing video.
4. The method of claim 1, wherein the preset fluent playback lower limit is configured using an online service experiment.
5. The method of claim 1, before determining in real time a download progress of the currently playing video that has not been downloaded, further comprising:
and determining the currently played video appointed to be played by the user playing instruction, and judging whether the currently played video is downloaded.
6. The method of claim 5, after determining whether the currently playing video is completely downloaded, further comprising:
when the current playing video which is not downloaded starts to play, the pre-downloading of the next playing video is paused, and only the current playing video is downloaded.
7. The method of claim 5, after determining whether the currently playing video is completely downloaded, further comprising:
and playing the downloaded currently played video, and only downloading the next played video in advance.
8. The method of any one of claims 1-7, further comprising:
and determining the next playing video related to the current playing video.
9. An apparatus for video downloading, comprising:
the downloading progress determining module is used for determining the downloading progress of the currently played video which is not downloaded in real time;
a video downloading module, configured to, if the downloading progress supports smooth playing of the currently playing video and remaining pre-downloading of a next playing video, start pre-downloading the next playing video while downloading the currently playing video, and suspend pre-downloading of the next playing video until the downloading progress does not support smooth playing of the currently playing video, and only download the currently playing video; the downloading progress supports smooth playing of the currently played video and residual pre-downloading of the next played video, and the difference between the residual playable time length of the currently played video and a preset smooth playing lower limit is larger than the residual downloading time length of the next played video; the downloading progress does not support the smooth playing of the currently played video, namely the remaining available playing time length of the currently played video is less than or equal to the preset smooth playing lower limit; and if the remaining available playing time of the currently played video is increased to be larger than the preset smooth playing lower limit, keeping the pause pre-downloading of the next played video until the remaining available playing time of the currently played video is larger than the sum of the preset smooth playing lower limit and the remaining downloading time, and starting to pre-download the next played video again.
10. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for video downloading as recited in any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of video downloading according to any one of claims 1-8.
CN202010139349.9A 2020-03-03 2020-03-03 Video downloading method, device, server and storage medium Active CN111277867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010139349.9A CN111277867B (en) 2020-03-03 2020-03-03 Video downloading method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010139349.9A CN111277867B (en) 2020-03-03 2020-03-03 Video downloading method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111277867A CN111277867A (en) 2020-06-12
CN111277867B true CN111277867B (en) 2022-02-18

Family

ID=71000550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010139349.9A Active CN111277867B (en) 2020-03-03 2020-03-03 Video downloading method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111277867B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019916B (en) * 2020-08-26 2022-05-03 广州市百果园信息技术有限公司 Video downloading method, device, server and storage medium
CN112672186B (en) * 2020-12-09 2023-03-24 北京达佳互联信息技术有限公司 Video preloading method and device
CN113891170B (en) * 2021-11-23 2024-05-03 维沃移动通信有限公司 Downloading method, downloading device, electronic equipment and storage medium
CN114257870B (en) * 2021-12-20 2024-03-15 北京字跳网络技术有限公司 Short video playing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015044870A1 (en) * 2013-09-25 2015-04-02 Ericsson Television Inc. System and method for managing adjacent channels in an adaptive streaming environment
CN105430425A (en) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 Method and device for accelerating playing of single-fragment video
CN108259975A (en) * 2018-02-01 2018-07-06 广州市百果园信息技术有限公司 Video broadcasting method, storage medium and terminal
CN108600368A (en) * 2018-04-25 2018-09-28 青岛海信电器股份有限公司 A kind of HLS Internet videos download optimization method and device
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN110730376A (en) * 2019-10-24 2020-01-24 上海二三四五网络科技有限公司 Control method and device for realizing video preloading through interface agent

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8600220B2 (en) * 2012-04-02 2013-12-03 JBF Interlude 2009 Ltd—Israel Systems and methods for loading more than one video content at a time
TWI528798B (en) * 2012-10-11 2016-04-01 緯創資通股份有限公司 Streaming data downloading method and computer readable recording medium thereof
US9066048B2 (en) * 2013-06-17 2015-06-23 Spotify Ab System and method for switching between audio content while navigating through video streams

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015044870A1 (en) * 2013-09-25 2015-04-02 Ericsson Television Inc. System and method for managing adjacent channels in an adaptive streaming environment
CN105430425A (en) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 Method and device for accelerating playing of single-fragment video
CN108259975A (en) * 2018-02-01 2018-07-06 广州市百果园信息技术有限公司 Video broadcasting method, storage medium and terminal
CN108600368A (en) * 2018-04-25 2018-09-28 青岛海信电器股份有限公司 A kind of HLS Internet videos download optimization method and device
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN110730376A (en) * 2019-10-24 2020-01-24 上海二三四五网络科技有限公司 Control method and device for realizing video preloading through interface agent

Also Published As

Publication number Publication date
CN111277867A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN111277867B (en) Video downloading method, device, server and storage medium
CN110198495B (en) Method, device, equipment and storage medium for downloading and playing video
CN112019916B (en) Video downloading method, device, server and storage medium
US10225613B2 (en) Method and apparatus for video playing processing and television
CN103024456A (en) Online video playing method and video playing server
CN105657520A (en) Video definition switching method and video player
CN110933517B (en) Code rate switching method, client and computer readable storage medium
CN112672186B (en) Video preloading method and device
US20160360262A1 (en) Preloading and switching streaming videos
CN111246302B (en) Method, device and terminal for downloading data by browser
CN103873927B (en) Streaming medium data processing method and electronic equipment
CN110198494A (en) A kind of video broadcasting method, device, equipment and storage medium
CN110022498B (en) Method and device for realizing code rate switching
CN102468989A (en) Method and system for processing network data
CN112203111A (en) Multimedia resource preloading method and device, electronic equipment and storage medium
EP2993911A1 (en) Method and client terminal for receiving a multimedia content split into at least two successive segments, and corresponding computer program product and computer-readable medium
JP2022524711A (en) Techniques for advancing the playback of interactive media works in response to user choices
CN105409229A (en) Information processing apparatus, information processing method, and program
CN105791987B (en) media data playing method and terminal
CN106131689A (en) Method for downloading video and device
CN111385660B (en) Video on demand method, device, equipment and storage medium
CN109995824B (en) Task scheduling method and device in peer-to-peer network
CN107040826B (en) Video loading method and device, computer device and computer readable storage medium
KR20220130837A (en) A method for playing content streamed from the network on a player on a client device
CN106358085B (en) Task management method and TV under television standby state

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221207

Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: 5-13 / F, West Tower, building C, 274 Xingtai Road, Shiqiao street, Panyu District, Guangzhou, Guangdong 510000

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.