CN108259975B - Video playing method, storage medium and terminal - Google Patents

Video playing method, storage medium and terminal Download PDF

Info

Publication number
CN108259975B
CN108259975B CN201810102009.1A CN201810102009A CN108259975B CN 108259975 B CN108259975 B CN 108259975B CN 201810102009 A CN201810102009 A CN 201810102009A CN 108259975 B CN108259975 B CN 108259975B
Authority
CN
China
Prior art keywords
video
played
playing
buffer data
downloading
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
CN201810102009.1A
Other languages
Chinese (zh)
Other versions
CN108259975A (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 Singapore 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 CN201810102009.1A priority Critical patent/CN108259975B/en
Publication of CN108259975A publication Critical patent/CN108259975A/en
Application granted granted Critical
Publication of CN108259975B publication Critical patent/CN108259975B/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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections

Abstract

The invention provides a video playing method, which comprises the following steps: detecting that the current segment of buffer data of the video being played is downloaded; pre-downloading start playing segment buffer data of a video to be played; receiving an instruction for playing the video to be played; and playing the starting playing segment buffer data. According to the technical scheme, the play-starting segment buffer data of the video to be played is pre-downloaded by utilizing the gap for downloading the play-starting segment buffer data of the video to be played under the condition that the use experience that a user normally watches the video being played is not influenced, the resource of the download gap is effectively utilized, and the play-starting speed for playing the video to be played is improved. The invention also provides a storage medium and a terminal.

Description

Video playing method, storage medium and terminal
Technical Field
The invention relates to the technical field of computers, in particular to a video playing method, a storage medium and a terminal.
Background
When the video player plays the network video, the terminal sends a request to download video data, and then starts to download the buffer data of the video, and when the buffer data of the downloaded video is enough to play, the video player starts to decode and output sound and images. When the user triggers to watch the next video, the same downloading and playing process must be carried out. In the downloading and playing process, if the playing time of the currently playing video is longer, the longer the gap of the buffer data of the downloaded video is, serious resource waste can be caused; meanwhile, the starting of the video depends on whether the buffering data of the downloaded video is enough to start playing, the buffering data of the video must be downloaded only when the user triggers to play the video, and the time for waiting for the buffering data to start playing is long enough, that is, the starting speed of the video directly affects the user experience of watching the video.
Disclosure of Invention
The invention provides a video playing method, a storage medium and a terminal, which are used for solving the problems that the gap for downloading the buffer data of the video being played is utilized to pre-download the buffer data of the playing start segment of the video to be played, the resource of the downloading gap is effectively utilized, and the playing start speed for playing the video to be played is improved under the condition that the use experience that a user normally watches the video being played is not influenced.
In a first aspect, the present invention provides a video playing method, including the steps of:
detecting that the current segment of buffer data of the video being played is downloaded;
pre-downloading start playing segment buffer data of a video to be played;
receiving an instruction for playing the video to be played;
and playing the starting playing segment buffer data.
With reference to the first aspect, in a first implementation manner of the first aspect of the present invention, the playing the start playing segment buffer data after receiving the instruction to play the video to be played includes:
receiving an instruction for playing the video to be played before the completion of the pre-downloading of the start-playing segment buffer data of the video to be played;
continuing to download the start playing segment buffer data of the video to be played;
and when the downloading of the start playing segment buffer data is completed, playing the start playing segment buffer data.
With reference to the first aspect, in a second implementation manner of the first aspect of the present invention, after detecting that the downloading of the current segment of the buffer data of the video being played is completed, the method further includes:
determining the downloading time point of the next section of buffer data of the video being played according to the downloading time length and the playing time length of the current section of buffer data;
determining that the downloading time point arrives, and stopping downloading the start-up buffer data if the start-up buffer data does not complete the pre-downloading;
and downloading the next section of buffer data.
With reference to the first aspect, in a third implementation manner of the first aspect of the present invention, before the pre-downloading the start-of-play segment buffer data with the played video, the method further includes the steps of:
and determining that the current network state supports the pre-download.
With reference to the first aspect, in a fourth implementation manner of the first aspect of the present invention, before the pre-downloading the start-play segment buffer data with the played video, the method further includes:
and taking the video adjacent to the video being played in the current playlist as the video to be played.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect of the present invention, the taking a video adjacent to the currently playing video in the current playlist as a video to be played includes:
judging the direction of the current playlist which is recently moved by the user;
if the video is moved upwards, taking the video below the video being played in the current play list as the video to be played;
if the video is moved downwards, taking the video above the video being played in the current playing list as the video to be played;
if the video is moved to the left, taking the video on the right side of the currently played video in the current playing list as the video to be played;
and if the video is moved to the right, taking the video on the left of the currently played video in the current playing list as the video to be played.
With reference to the first aspect, in a sixth implementation manner of the first aspect of the present invention, before the pre-downloading buffer data of a play-starting segment of a video to be played, the method further includes:
acquiring user playing data, and acquiring habits and interests of a user according to the playing data;
and confirming the video to be played from the current playing list according to the habit and the interest of the user.
With reference to the first aspect, in a seventh implementation manner of the first aspect of the present invention, the number of the videos to be played is two or more; the pre-downloading of the start playing segment buffer data of the video to be played comprises the following steps:
judging whether the current network state is a first network state, if so, downloading all start playing segment buffer data of the video to be played in advance; otherwise, pre-downloading the starting playing segment buffer data of a video to be played next to the video being played in the current playing list.
In a second aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the video playback method according to any one of the embodiments of the first aspect.
In a third aspect, the present invention provides a terminal, including:
one or more processors;
a memory;
one or more computer programs, stored in the memory; the one or more computer programs, when executed by the one or more processors, implement a video playback method as in any one of the embodiments of the first aspect.
Different from the prior art, the technical scheme provided by the invention has the following advantages:
(1) in the video playing method, the storage medium and the terminal provided by the invention, the play-starting segment buffer data of the video to be played is pre-downloaded by detecting whether the current segment buffer data of the video being played is downloaded, so that the gap for downloading the buffer data of the video being played is utilized, the resource of the download gap is effectively utilized, and the play-starting segment buffer data of the video to be played is pre-downloaded, so that when the instruction for playing the video to be played, which is triggered by a user, is received, the play-starting segment buffer data of the video to be played can be directly acquired for playing, the video play-starting speed is improved, and the user experience is improved.
(2) In the video playing method, the storage medium and the terminal provided by the invention, the start-up segment buffer data of the video to be played is pre-downloaded by utilizing the gap for downloading the buffer data of the video being played, wherein the pre-downloaded part only aims at the start-up segment buffer data, the flow required by the pre-downloading is controlled while the start-up speed is improved, the user flow is effectively saved, the cache is controlled, and the excessive pressure on the cache is prevented.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a first video playing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a second video playing method according to a first embodiment of the present invention;
fig. 3 is a block diagram of a terminal structure according to a third embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, a "terminal" includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that have receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link, as will be understood by those skilled in the art. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "terminal" used herein may also be a communication terminal, a web-enabled terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, etc.
Example one
With reference to fig. 1, an embodiment of the present invention provides a video playing method, including:
s01 detecting that the current segment of buffer data of the video being played is completely downloaded;
specifically, downloading the buffered data of the video includes two cases: 1, after the video is triggered to be played, the video starts to download all buffer data of the video (aiming at a short video, namely a short video, an internet content transmission mode is adopted, and generally, the video transmission content with the time length within 5 minutes is adopted); 2, after the video is triggered to be played, the video starts to download the first segment of buffer data of the video, and then continues to download other segments of buffer data along with the playing process of the video (for a long video, in this embodiment, for a non-short video). In the case of the 1 st scenario, in step S01, after the terminal detects that the downloading of all the buffer data of the video being played is completed, if an instruction to play the next video is not received at this time, the terminal enters into the downloading gap time (network bandwidth idle time); wherein the current segment buffer data corresponds to the entire buffer data of the video. In case 2, in step S01, when the terminal detects that the current segment of the buffer data of the video being played has been downloaded, the downloading time point of the next segment of the buffer data is not reached, and the instruction for playing the next segment of the video is not received, entering the downloading gap time; the current segment of buffer data corresponds to the buffer data of the current playing content of the video being played, if the current segment of buffer data corresponds to the last segment of buffer data of the video being played, when the segment of buffer data is completely downloaded, if an instruction for playing the next segment of video is not received at the moment, the downloading gap time is entered.
S02 downloading the start playing segment buffer data of the video to be played in advance;
in step S01, when it is detected that the current segment of buffer data of the video being played has been completely downloaded, i.e. entering the download gap time, the terminal will switch into the pre-download of the start segment of buffer data of the video to be played. In step S02, the start segment buffer data of the pre-downloaded video to be played is buffer data enough for the start segment in the pre-downloaded video to be played. In this embodiment, the buffer data of the video to be played is pre-downloaded by using the download gap time, and only the play start segment part is pre-downloaded, so that the play start segment buffer data of the video to be played is pre-downloaded while the resources of the download gap are effectively used, thereby increasing the play start speed of the video to be played when the video to be played is switched in, that is, reducing the time required by the play start of the video to be played, and reducing the time for a user to wait for watching the video to be played. Further, in step S02, the pre-downloaded part is only for the start-up segment buffer data, which saves the flow of the pre-download by the user (the buffer data of the whole video is not pre-downloaded completely) while increasing the start-up speed, and also reduces the buffer pressure (the start-up segment buffer data only occupies a small part of the buffer data of the whole video). In step S02, a determining step is included, which determines whether the buffering data of the pre-downloaded video to be played is enough to start playing, and if so, stops the pre-download task of the video to be played, specifically, in step S02, only the buffering data of the start playing segment of the video to be played is pre-downloaded.
In this embodiment, for the 1 st case (short video) of downloading the buffer data of the video, step S01 detects that the current segment of buffer data of the video being played has been completely downloaded, and when the downloading gap is entered, the terminal will request to pre-download the start segment of buffer data of the video to be played, and store the buffer data locally.
Further, in this embodiment, for the case 2 (long video) of downloading the buffer data of the video, after the step S01 detects that the downloading of the buffer data of the current segment of the video being played is completed, the method further includes the steps of:
determining the downloading time point of the next section of buffer data of the video being played according to the downloading time length and the playing time length of the current section of buffer data;
determining that the downloading time point arrives, and stopping downloading the start-up buffer data if the start-up buffer data does not complete the pre-downloading;
and downloading the next section of buffer data.
In this case, since the buffering data of the playing video is buffered in multiple segments, the downloading time point of the next segment of buffering data of the playing video is determined according to the downloading time (related to the current network state) and the playing time of the current segment of buffering data, and the starting segment of buffering data of the video to be played is pre-downloaded by using the downloading gap between the time point when the current segment of buffering data finishes downloading and the time point when the next segment of buffering data starts downloading. The pre-downloading task of the buffer data of the play-starting segment of the video to be played is influenced possibly due to poor current network state or when the user accelerates the playing of the current segment of the video being played, the judgment needs to be carried out according to the downloading time point of the next segment of the buffer data of the video being played, when the downloading time point of the next segment of the buffer data of the video being played arrives, the pre-downloading task of the buffer data of the play-starting segment of the video to be played needs to be paused, and the downloading of the next segment of the buffer data of the video being played is started.
Furthermore, when the pre-download task is suspended for the start-play segment buffer data of the video to be played, after the next segment of buffer data is downloaded, the method further includes the following steps:
judging whether the current network state is a first network state, if not, marking the start playing segment buffer data as a stop state;
if so, detecting the downloading speed of the current network, judging that the downloading speed is greater than a preset speed value, if so, continuing to download the start playing segment buffer data, otherwise, marking the start playing segment buffer data as a stop state.
The network states comprise 2G, 3G, 4G, Wifi and the like, the first network state is a Wifi state, when the next section of buffer data of a video being played is downloaded and enters a downloading gap, the terminal judges the current network state, and when the requirement of the first network state is not met, the pause task of the buffer data of the playing starting section of the video to be played is converted into a stop task; when the requirement of the first network state is met, whether the downloading speed of the current network meets the requirement of a preset speed value is further judged, if yes, the pre-downloading task of the start playing segment buffer data of the video to be played is continuously started, and if not, the pause task of the start playing segment buffer data of the video to be played is converted into the stop task. The judgment of the downloading speed of the current network is based on that if the current network speed is too low, even if the pre-downloading task of the start playing segment buffer data of the video to be played is continued, the gap between the playing video segment and the segment buffer data downloading is difficult to complete, and the watching of the playing video is prevented from being influenced.
S03, receiving an instruction for playing the video to be played;
specifically, when receiving an instruction for playing the video to be played, which is triggered by a user, the terminal stops playing the video being played, obtains buffer data of a play start segment of the video to be played locally, and simultaneously switches to a task of playing the video to be played.
S04 plays the start playing segment buffer data.
Specifically, in step S03, after receiving the instruction to play the video to be played, the player of the terminal will go to play the start segment buffer data of the video to be played, and at the same time, will continue to download the buffer data of the rest of the video to be played from the node where the start segment buffer data is downloaded.
Further, with reference to fig. 2, steps S03 and S04, the receiving the instruction to play the video to be played, playing the start playing segment buffer data, includes the steps of:
s05, receiving an instruction for playing the video to be played before the pre-downloading of the start playing segment buffer data of the video to be played is completed;
s06, continuously downloading the start playing segment buffer data of the video to be played;
s07 plays the start-up segment buffer data when the start-up segment buffer data download is completed.
Specifically, in steps S05, S06, and S07 included in steps S03 and S04, when the instruction to play the video to be played is received, the pre-download task of the start-play segment buffer data of the video to be played is not completed, at this time, a part of the start-play segment buffer data of the video to be played may have already been downloaded, but when the instruction to play the video to be played is received, the downloaded part of the start-play segment buffer data is obtained locally, and next to the downloaded node, the buffer data of the other part of the video to be played is continuously downloaded, and when the start-play segment buffer data of the video to be played is completely downloaded, the video to be played is immediately shifted to be played, and simultaneously, the buffer data of the video to be played which has not been downloaded yet is continuously downloaded. In steps S05, S06, and S07, since the start-playing segment buffer data of a part of the video to be played is pre-downloaded, which is equivalent to reducing the time for starting downloading the buffer data of the video to be played after receiving the instruction for playing the video to be played, thereby increasing the start-playing speed of the video and reducing the time required for the user to wait after triggering the playing of the video to be played.
That is, the steps S03, S04 include two schemes, as follows:
(1) and before receiving an instruction for playing the video to be played, finishing pre-downloading the buffer data of the playing starting segment of the video to be played.
(2) When an instruction for playing the video to be played is received, the start playing segment buffer data of the video to be played is not downloaded in advance.
Further, before the step S02 pre-downloading the start segment buffer data with the played video, the method further includes the steps of:
and determining that the current network state supports the pre-download.
Specifically, the network state includes 2G, 3G, 4G, Wifi, etc., and the background will first determine whether the dynamic configuration of the current network state is suitable for supporting the pre-download before executing the pre-download task. For example, when the current state is in a Wifi connection state, since the traffic of the user is not lost, the determination is made as support; when the current network state is 2G, the downloading speed is slow, and the flow of the user is lost, so that the current network state is judged not to be supported.
Further, before the step S02 pre-downloading the start segment buffer data with the played video, the method further includes the steps of:
and taking the video adjacent to the video being played in the current playlist as the video to be played.
The method for taking the video adjacent to the video being played in the current playlist as the video to be played comprises the following steps:
judging the direction of the current playlist which is recently moved by the user;
if the video is moved upwards, taking the video below the video being played in the current play list as the video to be played;
if the video is moved downwards, taking the video above the video being played in the current playing list as the video to be played;
if the video is moved to the left, taking the video on the right side of the currently played video in the current playing list as the video to be played;
and if the video is moved to the right, taking the video on the left of the currently played video in the current playing list as the video to be played.
The video to be played is further determined based on the operation habits of the user. For example, in the recent history operation of the user, assuming that the latest 5 times of operations are taken as an example analysis, and assuming that 4 times of users move to the left, the video on the right of the currently playing video in the current playlist is taken as the video to be played. Wherein, the direction of one moving direction is more than 60% of the directions of the current playlist which is judged to be moved by the user recently, and the direction is judged to be the recent moving direction of the user.
Further, before downloading the start segment buffer data of the video to be played in step S02 in advance, the method further includes the steps of:
acquiring user playing data, and acquiring habits and interests of a user according to the playing data;
and confirming the video to be played from the current playing list according to the habit and the interest of the user.
In this step, the video to be played is determined mainly by combining the habits and interests of the user. The habits and interests of the users are determined according to the types of videos to be watched, for example, the watched historical videos comprise a TV program selection segment of the star A, a short video of the star B interacting with a pet, a short video of the star B receiving the pet and the like, the videos can be screened out, the users like to watch the star B, and the videos which are closest to the sequence of the videos being played and are related to the star B can be screened out in the current play list to serve as the videos to be played.
Further, in step S02, the number of the videos to be played is two or more; the pre-downloading of the start playing segment buffer data of the video to be played comprises the following steps:
judging whether the current network state is a first network state, if so, downloading all start playing segment buffer data of the video to be played in advance; otherwise, pre-downloading the starting playing segment buffer data of a video to be played next to the video being played in the current playing list.
Specifically, in order to more efficiently utilize resources of the download gap, the number of the videos to be played can be more than two, because the pre-downloaded buffer data only for the play start segment of the videos to be played is small in required cache space and low in flow required by downloading, a plurality of videos which are not watched by a user in the current playlist can be selected as the videos to be played, and the play start segment buffer data of the plurality of videos to be played is pre-downloaded, so that the accuracy of determining the videos to be played is improved, the preference of approaching the user is facilitated, and the user experience is improved.
The network states include 2G, 3G, 4G, Wifi, etc., and the first network state is Wifi, that is, when the number of videos to be played is more than two, it is only required that the current network state is the Wifi state to support the pre-downloading of the start-up segment buffer data of all videos to be played; otherwise, only the start segment buffer data of a video to be played next to the video being played in the current playlist is pre-downloaded.
Further, in step S02, before the pre-downloading the start segment buffer data of the video to be played, the method further includes the steps of:
acquiring user playing data, and acquiring habits and interests of a user according to the playing data;
calculating the relative value of the habit and the interest of each playing video and the user in the current playing list;
acquiring a preset number of videos to be played with the maximum correlation value;
the pre-downloading of the start playing segment buffer data of the video to be played comprises the following steps:
judging whether the current network state is a first network state, if so, downloading all start playing segment buffer data of the video to be played in advance; otherwise, judging whether the correlation value of at least one video to be played in the videos to be played is greater than the preset value, if not, pre-downloading the video to be played with the maximum correlation value in the videos to be played, otherwise, pre-downloading the video to be played with the correlation value greater than the preset value in the videos to be played.
In the above embodiment, the relative value of the habit and the interest of the user and the network state are combined, and the video to be played is further determined. The network states comprise 2G, 3G, 4G, Wifi and the like, and the first network state is a Wifi state; the preset number can be 2 or more, and the correlation values are expressed in percentage; for example, assuming that the preset number is 3, the current playlist has three videos with correlation values of 80%, 70%, and 60%, respectively, and if the current network state is in the first network state, the start playing segment buffer data of the three videos is pre-downloaded; if the current network state is in a non-first network state, if the preset value is 90%, downloading start playing segment buffer data of a video with a related value of 80% in advance; if the correlation values of the three videos are not respectively 80%, 70% and 60% but are all greater than 90%, buffering data in the play-starting segment of the three videos is pre-downloaded.
Example two
In this embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the video playing method according to the first embodiment. The storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable programmable Read-Only memories), EEPROMs (Electrically EraSable programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
EXAMPLE III
With reference to fig. 3, in this embodiment, the present invention further provides a terminal, where the terminal includes:
one or more processors;
a memory;
one or more computer programs, stored in the memory; the one or more computer programs, when executed by the one or more processors, implement a video playback method as described in embodiment one.
As shown in fig. 3, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (Wi-Fi) module 1570, processor 1580, and power supply 1590. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
the RF circuit 1510 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1520. The memory 1520 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, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 1520 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 volatile solid-state storage device.
The input unit 1530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1531 using any suitable object or accessory such as a finger or a stylus) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch panel 1531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch operation is transmitted to the processor 1580 to determine the type of the touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of the touch event. Although in fig. 3, the touch panel 1531 and the display panel 1541 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1550, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1541 according to the brightness of ambient light and a proximity sensor that turns off the display panel 1541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1560, speaker 1561, and microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the electrical signal converted from the received audio data to the speaker 1561, and convert the electrical signal into a voiceprint signal by the speaker 1561 and output the voiceprint signal; on the other hand, the microphone 1562 converts the collected voiceprint signals to electrical signals, which are received by the audio circuit 1560 and converted to audio data, which are processed by the audio data output processor 1580 and passed through the RF circuit 1510 for transmission to, for example, another cell phone, or for output to the memory 1520 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 1570, and provides wireless broadband internet access for the user. Although fig. 3 shows a Wi-Fi module 1570, it is understood that it does not belong to the essential constitution of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, and the like, and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
The handset also includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1580 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Example four (application example)
Supposing that when a user A uses a certain video player to play a video, a background monitors whether the current segment of buffer data of the video being played is downloaded completely and acquires a current play list corresponding to the video being played, and once the background detects that the current segment of buffer data of the video being played is downloaded completely, the background automatically determines the video to be played in the current play list and starts to pre-download the start-playing segment of buffer data of the video to be played. When the user A finishes watching the playing video or does not want to watch the playing video and triggers sliding to watch the next video, if the next video which is triggered to watch by the user A is matched with the video to be played, the background calls the start playing segment of the buffer data of the video to be played from the middle local to the player for playing, and meanwhile, the buffer data of other parts of the video to be played are continuously downloaded. In this way, when the next video that the user a triggers to watch matches with the video to be played, the player can directly enter the playing of the video to be played without waiting for buffering.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A video playback method, comprising the steps of:
detecting that the current section of buffer data of the video being played is downloaded and the downloading time point of the next section of buffer data is not reached;
pre-downloading start playing segment buffer data of a video to be played;
determining that the downloading time point arrives, and if the buffering data of the playing start segment does not finish the pre-downloading, stopping downloading the buffering data of the playing start segment and downloading the next buffering data;
receiving an instruction for playing the video to be played;
and playing the starting playing segment buffer data.
2. The video playing method according to claim 1, wherein said receiving the instruction to play the video to be played, playing the start-playing segment buffer data, comprises the steps of:
receiving an instruction for playing the video to be played before the completion of the pre-downloading of the start-playing segment buffer data of the video to be played;
continuing to download the start playing segment buffer data of the video to be played;
and when the downloading of the start playing segment buffer data is completed, playing the start playing segment buffer data.
3. The video playing method according to claim 1, wherein the downloading time point of the next segment of the buffered data is determined according to the downloading time length and the playing time length of the current segment of the buffered data.
4. The video playing method according to claim 1, wherein before downloading the start-playing segment buffer data of the video to be played in advance, the method further comprises the steps of:
and determining that the current network state supports the pre-download.
5. The video playing method according to claim 1, wherein before downloading the start-playing segment buffer data of the video to be played in advance, the method further comprises the steps of:
and taking the video adjacent to the video being played in the current playlist as the video to be played.
6. The video playing method according to claim 5, wherein said step of regarding the video adjacent to said currently playing video in the current playlist as the video to be played comprises the steps of:
judging the direction of the current playlist which is recently moved by the user;
if the video is moved upwards, taking the video below the video being played in the current play list as the video to be played;
if the video is moved downwards, taking the video above the video being played in the current playing list as the video to be played;
if the video is moved to the left, taking the video on the right side of the currently played video in the current playing list as the video to be played;
and if the video is moved to the right, taking the video on the left of the currently played video in the current playing list as the video to be played.
7. The video playing method according to claim 1, wherein before downloading the start-playing segment buffer data of the video to be played in advance, the method further comprises the steps of:
acquiring user playing data, and acquiring habits and interests of a user according to the playing data;
and confirming the video to be played from the current playing list according to the habit and the interest of the user.
8. The video playing method according to claim 1, wherein the number of the videos to be played is two or more; the pre-downloading of the start playing segment buffer data of the video to be played comprises the following steps:
judging whether the current network state is a first network state, if so, downloading all start playing segment buffer data of the video to be played in advance; otherwise, pre-downloading the starting playing segment buffer data of a video to be played next to the video being played in the current playing list.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a video playback method according to any one of claims 1 to 8.
10. A terminal, comprising:
one or more processors;
a memory;
one or more computer programs, stored in the memory; the one or more computer programs, when executed by the one or more processors, implement the video playback method of any of claims 1-8.
CN201810102009.1A 2018-02-01 2018-02-01 Video playing method, storage medium and terminal Active CN108259975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810102009.1A CN108259975B (en) 2018-02-01 2018-02-01 Video playing method, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810102009.1A CN108259975B (en) 2018-02-01 2018-02-01 Video playing method, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108259975A CN108259975A (en) 2018-07-06
CN108259975B true CN108259975B (en) 2020-11-06

Family

ID=62742834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810102009.1A Active CN108259975B (en) 2018-02-01 2018-02-01 Video playing method, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108259975B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343036B (en) * 2018-12-19 2022-05-31 华为技术有限公司 Data buffering method applied to terminal and terminal
CN109819278B (en) * 2019-01-04 2021-11-23 成都随安保网络技术有限公司 Optimization method of live video
CN109756785B (en) * 2019-01-16 2022-05-20 上海哔哩哔哩科技有限公司 Video switching playing method and device and storage medium
CN110022482B (en) * 2019-03-05 2021-07-27 咪咕视讯科技有限公司 Video playing starting method, video service system and storage medium
CN110381355B (en) * 2019-07-12 2021-10-26 上海掌门科技有限公司 Method, equipment and readable medium for controlling streaming media playing
CN110996134B (en) * 2019-12-23 2022-09-09 腾讯科技(深圳)有限公司 Video playing method, device and storage medium
CN111277867B (en) * 2020-03-03 2022-02-18 广州市百果园信息技术有限公司 Video downloading method, device, server and storage medium
CN113676739B (en) * 2020-05-15 2023-11-14 深圳市雅阅科技有限公司 Video playing method, device, equipment and storage medium
CN112203111B (en) * 2020-09-29 2023-03-14 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium
CN112672186B (en) * 2020-12-09 2023-03-24 北京达佳互联信息技术有限公司 Video preloading method and device
CN112738633B (en) * 2020-12-25 2023-06-23 广州繁星互娱信息科技有限公司 Video playing method, device, equipment and readable storage medium
CN113163255B (en) * 2021-03-31 2022-07-15 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN112954409B (en) * 2021-03-31 2023-05-12 百果园技术(新加坡)有限公司 Video downloading method, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872722A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Online video start playing caching system and method
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media
CN106210905A (en) * 2016-08-09 2016-12-07 北京金山安全软件有限公司 Video playing method, device and terminal
CN106791911A (en) * 2016-12-28 2017-05-31 北京风行在线技术有限公司 A kind of loading method of picture and video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201429232A (en) * 2013-01-08 2014-07-16 Compal Electronics Inc Multimedia playback apparatus and multimedia file prefetching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media
CN105872722A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Online video start playing caching system and method
CN106210905A (en) * 2016-08-09 2016-12-07 北京金山安全软件有限公司 Video playing method, device and terminal
CN106791911A (en) * 2016-12-28 2017-05-31 北京风行在线技术有限公司 A kind of loading method of picture and video

Also Published As

Publication number Publication date
CN108259975A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108259975B (en) Video playing method, storage medium and terminal
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
CN110139139B (en) Service processing method, terminal, server and storage medium
CN106792120B (en) Video picture display method and device and terminal
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
WO2019210754A1 (en) Network search control method and device, and mobile terminal
CN109218842B (en) Virtual gift interaction method and device, computer storage medium and terminal
CN108988909B (en) Audio processing method and device, electronic equipment and computer readable storage medium
CN106507204B (en) Video reverse playing method and device
CN109284144B (en) Fast application processing method and mobile terminal
CN107911812B (en) Method for adjusting preferred public land mobile network PPLMN list and mobile terminal
CN106777113B (en) Data processing method and device in application program and mobile terminal
CN110536175B (en) Code rate switching method and device
CN109729384B (en) Video transcoding selection method and device
CN108834132B (en) Data transmission method and equipment and related medium product
CN106879055B (en) Wireless network scanning control method and related equipment
WO2015131768A1 (en) Video processing method, apparatus and system
CN108495349B (en) Switching method of operator network and mobile terminal
CN108337533B (en) Video compression method and device
CN106791916B (en) Method, device and system for recommending audio data
CN108112028B (en) Network searching method and equipment for international roaming
CN107371064B (en) Mobile terminal and audio and video playing method and device thereof
CN115668123A (en) Audio resource allocation method and device and electronic equipment
CN112612552B (en) Application resource loading method and device, electronic equipment and readable 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210622

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

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

Address before: Building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No. 79, Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

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

TR01 Transfer of patent right