WO2015113243A1 - Method, apparatus and electronic device for playing network video - Google Patents

Method, apparatus and electronic device for playing network video Download PDF

Info

Publication number
WO2015113243A1
WO2015113243A1 PCT/CN2014/071748 CN2014071748W WO2015113243A1 WO 2015113243 A1 WO2015113243 A1 WO 2015113243A1 CN 2014071748 W CN2014071748 W CN 2014071748W WO 2015113243 A1 WO2015113243 A1 WO 2015113243A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
data
time
amount
video data
Prior art date
Application number
PCT/CN2014/071748
Other languages
French (fr)
Chinese (zh)
Inventor
黎奎
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2014/071748 priority Critical patent/WO2015113243A1/en
Publication of WO2015113243A1 publication Critical patent/WO2015113243A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play

Definitions

  • Network video refers to a video file provided by a network video service provider and which can be played live or on-demand by streaming media.
  • An existing network video playing method uses an adaptive stream stream technology to prepare a plurality of video streams of different quality for the same video source. In the video playing process, a video stream with better quality can be obtained according to the current network bandwidth. The currently playing video stream continues to play.
  • the inventor finds that the acquired video stream does not immediately display and play, and needs to buffer a certain amount of data first, and different amounts of video streams need to be buffered with different amounts of data, which makes the network video There is a certain playback delay during playback, which affects the playback effect of network video.
  • the present application provides a network video playing method, apparatus, and electronic device, which reduces playback delay and improves playback performance under the premise of ensuring a certain playback quality.
  • a network video playing method including:
  • the second data amount is caused by the second data amount
  • the second video data can be buffered to the third time during the playing time of the video corresponding to the first video data.
  • the amount of data, the third amount of data is a quantity of data that needs to be cached at least for playing the second video stream, and the first amount of data is smaller than the third amount of data;
  • playing the video corresponding to the first video data includes:
  • the first video data is buffered to a second time
  • the first video data is buffered to a second amount of data
  • the second time is based on the first time
  • the first data amount of the first video data Determining, according to the playing time of the corresponding video and the third time, the third time is determined according to the third data amount and the current network bandwidth;
  • a third possible implementation manner of the first aspect is further provided, when the playing time of the video corresponding to the first video data of the first data volume is greater than In the third time, the first time is the same as the second time;
  • the second time is equal to a sum of the first time and the time difference, where the time difference is a time difference between a play time of the video corresponding to the first video data of the first data amount and the third time.
  • a fourth possible implementation manner of the first aspect is further provided, where the first video data of the first data amount corresponds to When the playing time of the video is less than or equal to the third time, the second time is specifically:
  • playing the video corresponding to the second video data includes :
  • the fourth time is: T4 > Tl+2*T3-Ts+a;
  • a network video playing device including:
  • a first acquiring unit configured to acquire first video data of the first video stream of the network video to be played to be cached
  • the second playing unit is configured to play the video corresponding to the second video data when the second video data is at least buffered to the third data amount.
  • the first playing unit includes: a first determining unit, configured to determine, when the first video data is buffered to a first time, that the first video data is buffered to a first data amount, where the first time is according to the first data amount and current Network bandwidth determination;
  • a second determining unit configured to determine that the first video data is buffered to a second data amount when the first video data is buffered to a second time; the second time is according to the first time, the first time Determining a play time of the video corresponding to the first video data of the data quantity and a third time, where the third time is determined according to the third data quantity and the current network bandwidth;
  • the fourth time is: T4 > Tl+2*T3-Ts+a;
  • T4 represents the fourth time
  • T1 represents the first time
  • T3 represents the third time
  • Ts represents the playing time of the video corresponding to the first video data of the first data amount
  • a represents the delay constant, and is greater than or equal to 0.
  • the memory is configured to cache video data
  • the output device is configured to play a video corresponding to the video data
  • the processor is configured to trigger the receiver to acquire first video data of a first video stream of a network video to be played and cache the data into the memory;
  • a second possible implementation manner of the first aspect is further provided, where the processor is specifically configured to: when the first video data is When buffering to the second time, triggering the receiver to acquire second video data of the second video stream of the to-be-played network video and buffering the data into the memory; the second time is according to the first time, Determining a play time of the video corresponding to the first video data of the first data amount and a third time, the third time being determined according to the third data amount and the current network bandwidth.
  • the present application provides a network video playing method, apparatus, and electronic device, which first acquires a first video data of a first video stream of a network video to be played, and then obtains a second video stream of the network video to be played.
  • the second video data is buffered.
  • Playing the first video stream requires at least the first cache
  • the amount of data is smaller than the third amount of data that needs to be cached at least when the second video stream is played, so that when the first video data is buffered to the first amount of data, the playback can start, and in the case where the network bandwidth is constant, the first amount of data is cached.
  • the time is less than the buffering time of the third data volume.
  • the embodiment of the present application Compared with the method of directly acquiring the second video data of the first video stream, the embodiment of the present application enables the video to be played in advance, reducing the playback delay, and the second video stream. It can be selected based on adaptive stream technology, so it can guarantee a certain playback quality, thus improving the playback effect and improving the user experience.
  • FIG. 1 is a flowchart of an embodiment of a network video playing method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of another embodiment of a network video playing method according to an embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of another embodiment of a network video playing device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to an embodiment of the present application.
  • the technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
  • One of the main ideas of the embodiments of the present application may include:
  • Network video refers to the audio and video files provided by the network video service provider and can be played live or on-demand in streaming media.
  • the network video to be played is a network video that is to be played but not yet played.
  • the embodiment of the present application is mainly directed to a playback scheme of the network video to be played.
  • the to-be-played network video may be a video or program that is determined to be played or pre-ordered by the user according to the user's request information.
  • the network video to be played may be determined according to the request information of the user when the video switching needs to be performed.
  • the switched network video to be played is different from the video server of the currently played network video
  • the video data needs to be cached first, so there is a playback delay, which is the embodiment of the present application.
  • the playback effect is improved and the user experience is improved.
  • the embodiment of the present application is implemented based on multiple video streams in the adaptive code stream technology, that is, the video service provider prepares multiple video streams of the same quality but different content for the same network video, and each video stream is the same for the network video.
  • the video stream of content is just different in video quality.
  • Step 102 Play the video corresponding to the first video data when the first video data is buffered to the first data amount.
  • the first data amount is the amount of data of the first video data that needs to be cached at least for playing the first video stream.
  • the first video data When the first video data is buffered to the first data amount, the first video data may be output to implement video playback.
  • the first video data When the first video data is buffered to the second data volume, the first video data may be stopped, and the second video data of the second video stream of the network video is obtained, where the first video data and the second video data are obtained.
  • the video data needs to be video data with continuous video time and continuous content.
  • the second data amount is the total amount of buffered data of the first video data when the first video data buffer ends.
  • the second amount of data needs to be such that the second video data can be buffered to a third amount of data, that is, the second amount of data, during the playing time of the video corresponding to the first video data of the second amount of data.
  • the playing time of the video corresponding to the first video data is greater than or equal to the buffering time of the second video data of the third data amount.
  • the third amount of data is the amount of data of the second video data that needs to be cached at least for playing the second video stream.
  • the second video stream may be determined based on an adaptive stream technology or determined according to a user's playback requirements.
  • the second video stream refers to the determined video stream used to replace the played first video stream.
  • the first data amount needs to be smaller than the third data amount. That is, the first video stream is a video stream whose quality is lower than the second video stream.
  • the video quality of a video stream includes resolution, frame rate, and quantization granularity.
  • different quality video streams can be identified according to the code rate, and the lower the code rate, the lower the quality. Therefore, the code rate of the first video stream is lower than the code rate of the second video stream.
  • the video stream of the lowest bit rate in the video stream may be selected as the first video stream. Therefore the steps 101 is that the first video data of the first video stream that obtains the lowest bit rate of the network video to be played is cached.
  • the first video stream and the second video stream may be determined in other manners, for example, according to the history log, the video stream corresponding to different playback requirements, such as network bandwidth, playback delay, and video quality, may be obtained, so that The current play request determines the first video stream and the second video stream, and only needs to satisfy the minimum amount of data that needs to be cached when playing the first video stream is less than the amount of data that needs to be cached at least for playing the second video stream.
  • the second video data When the second video data is buffered to the third data volume, the second video data may be switched to play the second video data, and the video corresponding to the first video data is stopped, and the video corresponding to the first video data ends, thereby Improve the quality of the playback video.
  • the second video data of the second data amount ends, the second video data is switched to play the second video data, so that resource waste can be avoided.
  • the second data amount is When the second video data is played, the second video data is buffered at least to the third amount of data.
  • the second video stream is switched to the second video stream, and the video corresponding to the second video data is played.
  • Video quality and ensure the smoothness of video playback, while avoiding the waste of system resources.
  • the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video is played.
  • the first amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least when the second video stream is played, so that when the first video data is buffered to the first amount of data, the playback can start, and when the network bandwidth is constant.
  • the buffering time of the first data volume is smaller than the buffering time of the third data volume, so that the video can be played in advance, the playback delay is reduced, and the second video stream is selected according to user requirements or based on adaptive code stream technology.
  • FIG. 2 is a flowchart of another embodiment of a network video playing method according to an embodiment of the present disclosure, where the method may include the following steps: 201: Acquire first video data of the first video stream of the network video to be played to be cached.
  • whether the first video data is buffered to the first data amount may be determined according to the buffer time.
  • the first amount of data is the amount of data that needs to be cached at least for playing the first video stream, when the first video data is buffered to the first time, the first video data can be output and the video is started to be played.
  • the second time may be determined according to the first time, the playing time of the video corresponding to the first video data of the first data amount, and the third time, where the third time is according to the third data quantity. And the current network bandwidth is determined.
  • the T2 T3 - Ts + Tl + a.
  • the second The time can be set in advance.
  • the second video data can be buffered to at least the third amount of data during the playback time of the video corresponding to the first video data of the second data amount. Accordingly, after the first video data buffer T1, at least the time of T3-Ts needs to be cached to ensure that the second video data can be buffered to the third data amount during the playback of the first video data.
  • the second video stream can be switched to play the video corresponding to the second video data to ensure the quality of the video playback.
  • the second video data of the second video stream is specifically a time starting point for acquiring the first video data of the first video stream of the network video to be played, and starting to play after at least the time of T3-TS+T1+T3.
  • the second video data Since the first video data is buffered to the first time T1, the second video data needs to be buffered for the third time T3 to be played, so that the to-be-played video can be played in advance T3-T2, reducing the buffering time. , reducing the playback delay, can improve the playback effect.
  • the play time of the video corresponding to the first video data of the first data amount is less than or equal to the third time.
  • the playing time of the video corresponding to the first video data of the first data amount may be greater than the third time. Therefore, as another embodiment, the video corresponding to the first video data of the first data amount When the playing time is greater than the third time, the second data amount is the same as the first data amount, that is, the second time is the same as the first time.
  • the first video data is buffered to the first time, the second video data of the second video stream for playing the network video is obtained for buffering.
  • the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played.
  • the minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the minimum amount of cached data, so that the first view When the frequency data is buffered to the first time, the playback can be started.
  • the first time required for the first video data buffer of the first data amount is smaller than the second video data buffer of the third data amount.
  • FIG. 3 is a flowchart of still another embodiment of a network video playing method according to an embodiment of the present disclosure, where the method may include the following steps:
  • the video data may be acquired, and the calculation of the buffer time may be performed.
  • the calculation of the buffer time may be performed.
  • it may be preset.
  • the first time may be equal to the ratio of the first data amount to the current network bandwidth.
  • the first video data is buffered to the first time, that is, the first video data of the first data amount is buffered, so the first video data can be output to realize the playing of the video.
  • the third amount of data is the amount of data that needs to be cached at least for the second video stream whose playback quality is higher than that of the first video stream, so that the third time can be calculated accordingly.
  • the third time may be equal to the ratio of the third data amount to the current network bandwidth.
  • step 305 Determine whether a play time of the video corresponding to the first video data of the first data quantity is large At the third time, if no, go to step 306, and if yes, go to step 308. If the playing time of the video corresponding to the first video data of the first data amount is greater than the third time, after the first video data is buffered by the first data amount, the acquiring may be stopped, thereby acquiring the second video data of the second video stream. The buffering can therefore ensure that the second video data is at least buffered to the third amount of data when the first video data of the first data amount is played.
  • the video data needs to be continued. Get and cache the first video data.
  • the second time is the total buffer time of the first video data, and the second video data is buffered to the second data amount after the second time, and the playing time of the video corresponding to the first video data of the second data quantity may be
  • the second video data is guaranteed to be buffered to a third amount of data.
  • the second time may be equal to the third time minus the playing time of the video corresponding to the first video data of the first data amount, and the first time, wherein, in order to improve the accuracy, the second time may be the third time.
  • step 307 When the first video data is buffered to the second time, proceed to step 308.
  • the first video data is buffered to the second time, that is, the cache is stopped.
  • the first video data of the first video stream of the network video to be played is used as a time starting point. After the fourth time, the second video stream is switched to play the video corresponding to the second video data.
  • the fourth time T4 can be:
  • the delay constants may have the same or different values when calculating different times.
  • the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played.
  • the minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the amount of data that needs to be cached at least, so that when the first video data is buffered to the first time, the data can be started.
  • the first time required for the first video data buffer of the first data amount is smaller than the third time required for the second video data buffer of the third data amount, so that the video can be advanced Playback, reducing the play delay; and the second video data can be cached after the first video data is buffered to the first time or the second time, ensuring video play continuity, and the second video stream meets user requirements Or based on adaptive stream technology, so the quality of playback can be guaranteed at the same time, thus improving the broadcast.
  • FIG. 4 is a schematic structural diagram of an embodiment of a network video playing device according to an embodiment of the present disclosure, where the device may include:
  • the first obtaining unit 401 is configured to cache the first video data of the first video stream of the network video to be played.
  • the network video to be played is a network video that is to be played but not yet played.
  • the embodiment of the present application is mainly directed to a playback scheme of the network video to be played.
  • the to-be-played network video may be a video or program that is determined to be played or pre-ordered by the user according to the user's request information.
  • the first playing unit 402 is configured to play the video corresponding to the first video data when the first video data acquired by the first acquiring unit is buffered to the first data amount.
  • the first amount of data is the amount of data of the first video data that needs to be cached at least for playing the first video stream.
  • the first video data may be output, and the video corresponding to the first video data is played.
  • the second obtaining unit 403 is configured to: when the first video data acquired by the first acquiring unit is cached to the second data amount, acquire the second video data of the second video stream of the network video to be played for buffering.
  • the second amount of data enables the second video data to be buffered to a third amount of data during the playing time of the video corresponding to the first video data of the second amount of data, the first amount of data and
  • the third amount of data is a quantity of data that needs to be cached at least for playing the corresponding video stream, and the first amount of data is smaller than the third amount of data.
  • the first video data When the first video data is buffered to the second data volume, the first video data may be stopped, and the second video data of the second video stream of the network video is obtained, where the first video data and the second video data are obtained.
  • the video data needs to be video data with continuous video time and continuous content.
  • the second amount of data is the total amount of buffered data of the first video data.
  • the second video stream may be determined based on an adaptive stream technology or determined according to a user's playback requirements.
  • the second playing unit 404 is configured to play the video corresponding to the second video data when the second video data is at least buffered to the third data amount.
  • the second video data When the second video data is buffered to the third data amount, the second video data can be switched to play the second video data, and the video corresponding to the first video data is stopped, so that the quality of the played video can be improved.
  • the second video data of the second data amount ends, the second video data is switched to play the second video data, so that resource waste can be avoided.
  • the second data amount is When the second video data is played, the second video data is buffered at least to the third amount of data.
  • the second video stream is switched to the second video stream, and the video corresponding to the second video data is played, so that the video is guaranteed.
  • the video quality ensures the smoothness of video playback while avoiding the waste of system resources.
  • the buffering time of the first data amount is smaller than the buffering time of the third data amount, so that the video can be played in advance.
  • the playback delay is reduced, and the second video stream is selected according to user requirements or based on adaptive code stream technology, so that the playback quality can be ensured at the same time, thereby improving the playback effect and improving the user experience.
  • FIG. 5 is a schematic structural diagram of another embodiment of a network video playing device according to an embodiment of the present disclosure, where the device may include:
  • the first obtaining unit 501 is configured to obtain the first video data of the first video stream of the network video to be played.
  • the first playing unit 502 is configured to play the video corresponding to the first video data when the first video data acquired by the first acquiring unit is cached to the first data amount.
  • the first playing unit 502 may include: a first determining unit 5021, configured to determine, when the first video data is buffered to a first time, determining that the first video data is buffered to The first amount of data.
  • the first time is determined according to the first amount of data and the current network bandwidth.
  • the playing subunit 5022 is configured to play a video corresponding to the first video data.
  • the second obtaining unit 503 is configured to: when the first video data acquired by the first acquiring unit is cached to the second data amount, acquire the second video data of the second video stream of the network video to be played for buffering.
  • the second amount of data needs to be corresponding to the first video data of the second amount of data
  • the second video data is at least buffered to a third amount of data, where the first amount of data and the third amount of data are at least a quantity of data to be cached for playing the corresponding video stream, and the first The amount of data is less than the third amount of data.
  • the second determining unit 5031 is configured to determine that the first video data is buffered to the second data amount when the first video data is buffered to the second time.
  • Determining, according to the first time, the playing time of the video corresponding to the first video data of the first data amount, and the third time, the third time according to the third data amount and the current network Bandwidth is determined.
  • the amount of data of the first video data buffer that is, the video playback corresponding to the first video data of the second data amount ends, it is necessary to ensure that the second video data can be buffered to at least the third data amount. Accordingly, after the first video data buffer T1, the time of T3-Ts needs to be buffered to ensure that the second video data can buffer the third data amount when the first video data is played.
  • the second playing unit 504 is configured to play the video corresponding to the second video data when the second video data is buffered to the third data amount.
  • the second video data needs to be buffered for the third time T3 to be played, so that the to-be-played video can be played in advance T3-T2, which reduces the buffering time. Reduced playback delay and improved playback.
  • the second playing unit may be specifically configured to: acquire a first video stream of the network video to be played.
  • the first video data is a time starting point, and after a fourth time, the video stream plays the video corresponding to the second video data.
  • the fourth time T4 can be:
  • Tl a+Datal/B
  • T3 a+Data3/B, a >0.
  • the presentation of the video corresponding to the first video data of the first data amount is less than or equal to the third time.
  • the playback time of the video corresponding to the first video data of the first data amount may be greater than the third time, so as another embodiment:
  • the second time is the same as the first time. That is, after the first video data is buffered to the first time, the second video data of the second video stream for playing the network video is obtained for buffering. That is, the second obtaining unit is configured to acquire the second video data of the second video stream of the network video to be played to be cached when the first video data acquired by the first acquiring unit is buffered to the first time.
  • the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played.
  • the minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the amount of data that needs to be cached at least, so that when the first video data is buffered to the first time, the data can be started.
  • the first time required for the buffer of the first data amount is smaller than the third time required for the buffer of the third data amount, so that the video can be played in advance, and the play delay is reduced.
  • the second video stream is selected according to the user requirement or based on the adaptive stream stream technology, so that the playback quality can be ensured at the same time.
  • the second video stream can be buffered to the third data amount. Switching to the second video stream to play the video corresponding to the second video data, thereby improving the playback effect and improving the user Experience.
  • the network video playing device described in the foregoing embodiment may be used as a single device in an actual application, or integrated in various electronic devices capable of realizing network video playing, such as a set top. Box, Mobile Phone, Tablet Personal Computer, Laptop Computer, Multimedia Player, Digital Camera, Personal Digital Assistant (PDA), Navigation Device, Mobile Internet Device (Mobile Internet) Device, MID) or wearable device (Wearable Device).
  • PDA Personal Digital Assistant
  • Navigation Device Mobile Internet Device (Mobile Internet) Device, MID) or wearable device (Wearable Device).
  • an embodiment of the present application further provides an electronic device, where the electronic device includes at least a memory 601, a processor 602, a receiver 603, and an output device 604, wherein the memory 601, the receiver 603, and the output device 604 It is connected to the processor 602 via a bus, respectively.
  • the memory 601 is configured to cache video data
  • the receiver 603 is configured to acquire video data.
  • the output device 604 is configured to play a video corresponding to the video data.
  • the processor 602 is configured to trigger the receiver 603 to acquire the first video data of the first video stream of the network video to be played and cache the first video data into the memory 602.
  • the output device 604 is triggered to play the video corresponding to the first video data, where the first data amount is the minimum amount of data to be cached for playing the third video stream. ;
  • the receiver 603 When the first video data is buffered to the second data amount, triggering the receiver 603 to acquire second video data of the second video stream of the to-be-played network video and buffering into the memory 602; When the second video data is buffered to the third data amount, the output device 604 is triggered to play the video corresponding to the second video data.
  • the second data amount is such that the second video data can be buffered to a third data amount during the playing time of the video corresponding to the first video data of the second data amount, where the third data is The quantity is the amount of data that needs to be cached at least for playing the second video stream, and the first amount of data is smaller than the third amount of data.
  • the electronic device can be used to perform the network video playing method shown in FIG. 1 to FIG. 3 provided by the embodiment of the present application.

Landscapes

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

Abstract

Provided are a method, apparatus and electronic device for playing a network video in the embodiments of the present application. The method comprises: obtaining and buffering the first video data of a first video stream of the network video to be played; when the buffered first video data reach to a first data amount, playing the video corresponding to the first video data; when the buffered first video data reach to a second data amount, obtaining and buffering the second video data of a second video stream of the network video to be played, so that when the playing of the first video data is finished, at least a third data amount of the second video data are buffered, and the first data amount and the third data amount are the least data amount required to be buffered and the first data amount is less than the third data amount; when the buffered second video data reach to the third data amount, playing the video corresponding to the second video data. With the embodiments of the present application, the playing delay is reduced and the playing effect is improved.

Description

网络视频播放方法、 装置和电子设备  Network video playing method, device and electronic device
技术领域 本申请涉及网络信息处理技术领域,更具体的说是涉及一种网络视频播放 方法、 装置和电子设备。 背景技术 网络视频, 是指由网络视频服务商提供的、 以流媒体为播放格式、 可以在 线直播或点播的声像文件。 TECHNICAL FIELD The present application relates to the field of network information processing technologies, and in particular, to a network video playing method, apparatus, and electronic device. BACKGROUND OF THE INVENTION Network video refers to a video file provided by a network video service provider and which can be played live or on-demand by streaming media.
现有的一种网络视频播放方法是采用自适应码流技术,为同一视频源准备 多份不同质量的视频流, 在视频播放过程中, 可以根据当前网络带宽, 获取质 量较好的视频流替换当前播放的视频流, 继续进行播放。  An existing network video playing method uses an adaptive stream stream technology to prepare a plurality of video streams of different quality for the same video source. In the video playing process, a video stream with better quality can be obtained according to the current network bandwidth. The currently playing video stream continues to play.
但是, 在实现本发明过程中发明人发现, 获取的视频流并不会立即进行显 示播放,需要先緩存一定的数据量,不同质量的视频流需要緩存的数据量不同, 这就使得在网络视频播放时存在一定的播放时延, 影响网络视频的播放效果。  However, in the process of implementing the present invention, the inventor finds that the acquired video stream does not immediately display and play, and needs to buffer a certain amount of data first, and different amounts of video streams need to be buffered with different amounts of data, which makes the network video There is a certain playback delay during playback, which affects the playback effect of network video.
发明内容 Summary of the invention
有鉴于此, 本申请提供了一种网络视频播放方法、 装置和电子设备, 在保 证一定播放质量的前提下, 减少了播放时延, 改善了播放效果。  In view of this, the present application provides a network video playing method, apparatus, and electronic device, which reduces playback delay and improves playback performance under the premise of ensuring a certain playback quality.
为实现上述目的, 本申请提供如下技术方案:  To achieve the above objective, the present application provides the following technical solutions:
第一方面, 提供了一种网络视频播放方法, 包括:  In a first aspect, a network video playing method is provided, including:
获取待播放网络视频的第一视频流的第一视频数据进行緩存;  Acquiring the first video data of the first video stream of the network video to be played to be cached;
所述第一视频数据緩存至第一数据量时 ,播放所述第一视频数据对应的视 频, 所述第一数据量为播放所述第一视频流最少需要緩存的数据量;  When the first video data is buffered to the first data amount, the video corresponding to the first video data is played, and the first data amount is a quantity of data that needs to be cached at least when the first video stream is played;
所述第一视频数据緩存至第二数据量时,获取所述待播放网络视频的第二 视频流的第二视频数据进行緩存;所述第二数据量使得在所述第二数据量的所 述第一视频数据对应的视频的播放时间内,所述第二视频数据能够緩存至第三 数据量, 所述第三数据量为播放所述第二视频流最少需要緩存的数据量, 所述 第一数据量小于所述第三数据量; Acquiring the second video data of the second video stream of the to-be-played network video for buffering when the first video data is buffered to the second data amount; the second data amount is caused by the second data amount The second video data can be buffered to the third time during the playing time of the video corresponding to the first video data. The amount of data, the third amount of data is a quantity of data that needs to be cached at least for playing the second video stream, and the first amount of data is smaller than the third amount of data;
所述第二视频数据至少緩存至所述第三数据量时 ,播放所述第二视频数据 对应的视频。  And playing the video corresponding to the second video data when the second video data is at least buffered to the third data amount.
在所述第一方面的第一种可能实现方式中,所述第一视频数据緩存至第一 数据量时, 播放所述第一视频数据对应的视频包括:  In a first possible implementation manner of the first aspect, when the first video data is buffered to the first data volume, playing the video corresponding to the first video data includes:
所述第一视频数据緩存至第一时间时 ,确定所述第一视频数据緩存至第一 数据量, 所述第一时间根据所述第一数据量以及当前网络带宽确定;  Determining, when the first video data is buffered to a first time, the first video data is buffered to a first data amount, where the first time is determined according to the first data amount and a current network bandwidth;
播放所述第一视频数据对应的视频。  Playing the video corresponding to the first video data.
结合所述第一方面或所述第一方面的第一种可能实现方式,还提供了所述 第一方面的第二种可能实现方式, 所述第一视频数据緩存至第二数据量时, 获 取所述待播放网络视频的第二视频流的第二视频数据进行緩存包括:  In conjunction with the first aspect or the first possible implementation of the first aspect, a second possible implementation manner of the first aspect is further provided, when the first video data is buffered to the second data volume, Acquiring the second video data of the second video stream of the network video to be played to be cached includes:
所述第一视频数据緩存至第二时间时 ,确定所述第一视频数据緩存至第二 数据量; 所述第二时间根据所述第一时间、所述第一数据量的第一视频数据对 应的视频的播放时间以及第三时间确定,所述第三时间根据所述第三数据量以 及当前网络带宽确定;  Determining, when the first video data is buffered to a second time, the first video data is buffered to a second amount of data; and the second time is based on the first time, the first data amount of the first video data Determining, according to the playing time of the corresponding video and the third time, the third time is determined according to the third data amount and the current network bandwidth;
获取所述待播放网络视频的第二视频流的第二视频数据进行緩存。  Acquiring the second video data of the second video stream of the to-be-played network video for buffering.
结合所述第一方面的第二种可能实现方式,还提供了所述第一方面的第三 种可能实现方式,当所述第一数据量的第一视频数据对应的视频的播放时间大 于所述第三时间时, 所述第一时间与所述第二时间相同;  In conjunction with the second possible implementation of the first aspect, a third possible implementation manner of the first aspect is further provided, when the playing time of the video corresponding to the first video data of the first data volume is greater than In the third time, the first time is the same as the second time;
当所述第一数据量的第一视频数据对应的视频的播放时间小于或等于所 述第三时间时, 所述第二时间等于所述第一时间与时间差的和值, 所述时间差 为所述第一数据量的第一视频数据对应的视频的播放时间和所述第三时间的 时间差。  And when the playing time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time is equal to a sum of the first time and the time difference, where the time difference is a time difference between a play time of the video corresponding to the first video data of the first data amount and the third time.
结合所述第一方面的第二种可能实现方式或第三种可能实现方式,还提供 了所述第一方面的第四种可能实现方式,当所述第一数据量的第一视频数据对 应的视频的播放时间小于或等于所述第三时间时, 所述第二时间具体为: In conjunction with the second possible implementation or the third possible implementation of the first aspect, a fourth possible implementation manner of the first aspect is further provided, where the first video data of the first data amount corresponds to When the playing time of the video is less than or equal to the third time, the second time is specifically:
T2=T3-Ts+Tl+a; 其中, T3表示第三时间, Ts表示第一数据量的第一视频数据对应的视频 的播放时间, a表示时延常数, 且大于等于 0。 T2=T3-Ts+Tl+a; Wherein, T3 represents a third time, Ts represents a play time of a video corresponding to the first video data of the first data amount, and a represents a delay constant, and is greater than or equal to zero.
结合所述第一方面的第二种可能实现方式或第三种可能实现方式或第四 种可能实现方式,还提供了所述第一方面的第五种可能实现方式, 当所述第一 数据量的第一视频数据对应的视频的播放时间小于或等于所述第三时间时,所 述第二视频数据至少緩存至所述第三数据量时,播放所述第二视频数据对应的 视频包括:  A fifth possible implementation manner of the first aspect, When the playing time of the video corresponding to the first video data is less than or equal to the third time, when the second video data is at least buffered to the third data amount, playing the video corresponding to the second video data includes :
以获取待播放网络视频第一视频流的第一视频数据作为时间起始点,经过 第四时间, 播放所述第二视频数据对应的视频;  The first video data of the first video stream of the network video to be played is obtained as a time starting point, and after the fourth time, the video corresponding to the second video data is played;
所述第四时间为: T4 > Tl+2*T3-Ts+a;  The fourth time is: T4 > Tl+2*T3-Ts+a;
其中, T4表示第四时间, T1表示第一时间, T3表示第三时间, Ts表示 第一数据量的第一视频数据对应的视频的播放时间, a表示时延常数, 且大于 等于 0。  Wherein, T4 represents the fourth time, T1 represents the first time, T3 represents the third time, Ts represents the playing time of the video corresponding to the first video data of the first data amount, and a represents the delay constant, and is greater than or equal to 0.
第二方面, 提供了一种网络视频播放装置, 包括:  In a second aspect, a network video playing device is provided, including:
第一获取单元,用于获取待播放网络视频的第一视频流的第一视频数据进 行緩存;  a first acquiring unit, configured to acquire first video data of the first video stream of the network video to be played to be cached;
第一播放单元,用于当所述第一获取单元获取的所述第一视频数据緩存至 第一数据量时,播放所述第一视频数据对应的视频, 所述第一数据量为播放所 述第一视频流最少需要緩存的数据量;  a first playing unit, configured to: when the first video data acquired by the first acquiring unit is buffered to a first data amount, playing a video corresponding to the first video data, where the first data amount is a playing station The minimum amount of data that needs to be cached in the first video stream;
第二获取单元,用于当所述第一获取单元获取的所述第一视频数据緩存至 第二数据量时,获取所述待播放网络视频的第二视频流的第二视频数据进行緩 存 ,所述第二数据量使得在所述第二数据量的所述第一视频数据对应的视频的 播放时间内, 所述第二视频数据能够緩存至第三数据量, 所述第三数据量为播 放所述第二视频流最少需要緩存的数据量 ,所述第一数据量小于所述第三数据 量;  a second acquiring unit, configured to: when the first video data acquired by the first acquiring unit is buffered to a second data amount, acquire second video data of the second video stream of the to-be-played network video, and cache The second data amount is such that the second video data can be buffered to a third data amount during a playing time of the video corresponding to the first video data of the second data amount, where the third data amount is Playing the second video stream at least the amount of data to be buffered, the first amount of data being less than the third amount of data;
第二播放单元, 用于当所述第二视频数据至少緩存至第三数据量时,播放 所述第二视频数据对应的视频。  The second playing unit is configured to play the video corresponding to the second video data when the second video data is at least buffered to the third data amount.
在所述第二方面的第一种可能实现方式中, 所述第一播放单元包括: 第一判断单元, 用于判断出所述第一视频数据緩存至第一时间时,确定所 述第一视频数据緩存至第一数据量,所述第一时间根据所述第一数据量以及当 前网络带宽确定; In a first possible implementation manner of the second aspect, the first playing unit includes: a first determining unit, configured to determine, when the first video data is buffered to a first time, that the first video data is buffered to a first data amount, where the first time is according to the first data amount and current Network bandwidth determination;
播放子单元, 用于播放所述第一视频数据对应的视频。  a playing subunit, configured to play a video corresponding to the first video data.
结合所述第二方面或所述第二方面的第一种可能实现方式,还提供了所述 第二方面的第二种可能实现方式, 所述第二获取单元包括:  In conjunction with the second aspect or the first possible implementation of the second aspect, the second possible implementation of the second aspect is further provided, where the second obtaining unit includes:
第二判断单元, 用于判断所述第一视频数据緩存至第二时间时,确定所述 第一视频数据緩存至第二数据量; 所述第二时间根据所述第一时间、所述第一 数据量的第一视频数据对应的视频的播放时间以及第三时间确定,所述第三时 间根据所述第三数据量以及当前网络带宽确定;  a second determining unit, configured to determine that the first video data is buffered to a second data amount when the first video data is buffered to a second time; the second time is according to the first time, the first time Determining a play time of the video corresponding to the first video data of the data quantity and a third time, where the third time is determined according to the third data quantity and the current network bandwidth;
获取子单元,用于获取所述待播放网络视频的第二视频流的第二视频数据 进行緩存。  And obtaining a subunit, configured to acquire second video data of the second video stream of the to-be-played network video for buffering.
结合所述第二方面的第二种可能实现方式,还提供了所述第二方面的第三 种可能实现方式,当所述第一数据量的第一视频数据对应的视频的播放时间大 于所述第三时间时, 所述第一时间与所述第二时间相同;  In conjunction with the second possible implementation of the second aspect, a third possible implementation manner of the second aspect is further provided, where a play time of the video corresponding to the first video data of the first data amount is greater than In the third time, the first time is the same as the second time;
当所述第一数据量的第一视频数据对应的视频的播放时间小于或等于所 述第三时间时, 所述第二时间等于所述第一时间与时间差的和值, 所述时间差 为所述第一数据量的第一视频数据对应的视频的播放时间和所述第三时间的 时间差。  And when the playing time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time is equal to a sum of the first time and the time difference, where the time difference is a time difference between a play time of the video corresponding to the first video data of the first data amount and the third time.
结合所述第二方面的第二种可能实现方式或第三种可能实现方式,还提供 了所述第二方面的第四种可能实现方式,所述第二播放单元具体用于以获取待 播放网络视频第一视频流的第一视频数据作为时间起始点, 经过第四时间时 , 切换至所述第二视频流, 播放所述第二视频数据对应的视频;  In conjunction with the second possible implementation or the third possible implementation of the second aspect, a fourth possible implementation manner of the second aspect is further provided, where the second playback unit is specifically configured to obtain a to-be-played The first video data of the first video stream of the network video is used as a time starting point. After the fourth time, the second video stream is switched to play the video corresponding to the second video data.
所述第四时间为: T4 > Tl+2*T3-Ts+a;  The fourth time is: T4 > Tl+2*T3-Ts+a;
其中, T4表示第四时间, T1表示第一时间, T3表示第三时间, Ts表示 第一数据量的第一视频数据对应的视频的播放时间, a表示时延常数, 且大于 等于 0。  Wherein, T4 represents the fourth time, T1 represents the first time, T3 represents the third time, Ts represents the playing time of the video corresponding to the first video data of the first data amount, and a represents the delay constant, and is greater than or equal to 0.
第三方面, 提供了一种电子设备, 包括处理器、 以及分别与所述处理器连 接的存储器、 接收器以及输出设备; In a third aspect, an electronic device is provided, including a processor, and respectively connected to the processor Connected memory, receiver and output device;
所述存储器, 用于緩存视频数据;  The memory is configured to cache video data;
所述接收器, 用于获取视频数据;  The receiver is configured to acquire video data;
所述输出设备, 用于播放视频数据对应的视频;  The output device is configured to play a video corresponding to the video data;
所述处理器,用于触发所述接收器获取待播放网络视频的第一视频流的第 一视频数据并緩存至所述存储器中;  The processor is configured to trigger the receiver to acquire first video data of a first video stream of a network video to be played and cache the data into the memory;
当所述第一视频数据緩存至第一数据量时,触发所述输出设备播放所述第 一视频数据对应的视频 ,所述第一数据量为播放所述第一视频流最少需要緩存 的数据量;  When the first video data is buffered to the first data amount, the output device is triggered to play the video corresponding to the first video data, where the first data amount is data that needs to be cached at least when the first video stream is played. the amount;
当所述第一视频数据緩存至第二数据量时,触发所述接收器获取所述待播 放网络视频的第二视频流的第二视频数据并緩存至所述存储器中; 其中, 所述 第二数据量使得在所述第二数据量的第一视频数据对应的视频的播放时间内, 所述第二视频数据能够緩存至第三数据量 ,所述第三数据量为播放所述第二视 频流最少需要緩存的数据量, 所述第一数据量 d、于所述第三数据量;  When the first video data is buffered to the second data amount, the receiver is triggered to acquire the second video data of the second video stream of the to-be-played network video and cached into the memory; The amount of data is such that the second video data can be buffered to a third amount of data during a playing time of the video corresponding to the first video data of the second amount of data, and the third amount of data is played for the second The video stream requires a minimum amount of data to be buffered, and the first data amount d is at the third data amount;
当所述第二视频数据至少緩存至所述第三数据量时,触发所述输出设备播 放所述第二视频数据对应的视频。  And when the second video data is at least buffered to the third data amount, triggering, by the output device, to play a video corresponding to the second video data.
在所述第三方面的第一种可能实现方式中,所述处理器具体用于当所述第 一视频数据緩存至第一时间时 ,触发所述输出设备播放所述第一视频数据对应 的视频, 所述第一时间根据所述第一数据量以及当前网络带宽确定。  In a first possible implementation manner of the third aspect, the processor is specifically configured to: when the first video data is buffered to a first time, trigger the output device to play the corresponding corresponding to the first video data. Video, the first time is determined according to the first data amount and the current network bandwidth.
结合所述第三方面或所述第三方面的第一种可能实现方式,还提供了所述 第一方面的第二种可能实现方式 ,所述处理器具体用于当所述第一视频数据緩 存至第二时间时,触发所述接收器获取所述待播放网络视频的第二视频流的第 二视频数据并緩存至所述存储器中; 所述第二时间根据所述第一时间、所述第 一数据量的第一视频数据对应的视频的播放时间以及第三时间确定,所述第三 时间根据所述第三数据量以及当前网络带宽确定。  In conjunction with the third aspect or the first possible implementation of the third aspect, a second possible implementation manner of the first aspect is further provided, where the processor is specifically configured to: when the first video data is When buffering to the second time, triggering the receiver to acquire second video data of the second video stream of the to-be-played network video and buffering the data into the memory; the second time is according to the first time, Determining a play time of the video corresponding to the first video data of the first data amount and a third time, the third time being determined according to the third data amount and the current network bandwidth.
综上, 本申请提供了一种网络视频播放方法、 装置和电子设备, 首先获取 待播放网络视频的第一视频流的第一视频数据进行緩存,再获取待播放网络视 频的第二视频流的第二视频数据进行緩存。播放第一视频流最少需要緩存的第 一数据量小于播放第二视频流最少需要緩存的第三数据量,从而第一视频数据 緩存至第一数据量时, 即可以开始播放, 在网络带宽一定的情况下, 第一数据 量的緩存时间要小于第三数据量的緩存时间 ,相较于直接获取第一视频流的第 二视频数据进行播放的方式, 本申请实施例使得视频可以提前播放, 减少了播 放时延, 第二视频流可以是基于自适应码流技术选择的, 因此可以保证一定的 播放质量, 从而改善了播放效果, 提高了用户体验。 In summary, the present application provides a network video playing method, apparatus, and electronic device, which first acquires a first video data of a first video stream of a network video to be played, and then obtains a second video stream of the network video to be played. The second video data is buffered. Playing the first video stream requires at least the first cache The amount of data is smaller than the third amount of data that needs to be cached at least when the second video stream is played, so that when the first video data is buffered to the first amount of data, the playback can start, and in the case where the network bandwidth is constant, the first amount of data is cached. The time is less than the buffering time of the third data volume. Compared with the method of directly acquiring the second video data of the first video stream, the embodiment of the present application enables the video to be played in advance, reducing the playback delay, and the second video stream. It can be selected based on adaptive stream technology, so it can guarantee a certain playback quality, thus improving the playback effect and improving the user experience.
附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创 造性劳动的前提下, 还可以根据提供的附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are merely examples of the present application, and those skilled in the art can obtain other drawings based on the drawings provided without any creative work.
图 1为本申请实施例提供的一种网络视频播放方法一个实施例的流程图; 图 2 为本申请实施例提供的一种网络视频播放方法另一个实施例的流程 图;  1 is a flowchart of an embodiment of a network video playing method according to an embodiment of the present disclosure; FIG. 2 is a flowchart of another embodiment of a network video playing method according to an embodiment of the present application;
图 3 为本申请实施例提供的一种网络视频播放方法又一个实施例的流程 图;  FIG. 3 is a flowchart of still another embodiment of a network video playing method according to an embodiment of the present application;
图 4 为本申请实施例提供的一种网络视频播放装置一个实施例的结构示 意图;  FIG. 4 is a schematic structural diagram of an embodiment of a network video playing device according to an embodiment of the present application;
图 5 为本申请实施例提供的一种网络视频播放装置另一个实施例的结构 示意图;  FIG. 5 is a schematic structural diagram of another embodiment of a network video playing device according to an embodiment of the present disclosure;
图 6为本申请实施例提供的一种电子设备一个实施例的结构示意图。 具体实施方式 下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本申请一部分实施例, 而不是 全部的实施例。基于本申请中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本申请保护的范围。 本申请实施例的主要思想之一可以包括: FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to an embodiment of the present application. The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application. One of the main ideas of the embodiments of the present application may include:
获取待播放网络视频的第一视频流的第一视频数据进行緩存;所述第一视 频数据緩存至第一数据量时,播放所述第一视频数据对应的视频; 所述第一视 频数据緩存至第二数据量时,获取所述待播放网络视频的第二视频流的第二视 频数据进行緩存, 所述第二视频数据緩存至第三数据量时,播放所述第二视频 数据对应的视频。播放第一视频流最少需要緩存的第一数据量小于播放第二视 频流最少需要緩存的第三数据量,从而第一视频数据緩存至第一数据量时, 即 可以开始播放,在网络带宽一定的情况下, 第一数据量的緩存时间要小于第三 数据量的緩存时间,相较于直接获取第二视频流的第二视频数据进行播放的方 式, 本申请实施例使得视频可以提前播放, 减少了播放时延, 且第二视频流为 满足用户需求或者基于自适应码流技术选择的, 因此同时可以保证播放质量, 从而改善了播放效果, 提高了用户体验。 图 1为本申请实施例提供的一种网络视频播放方法一个实施例的流程图, 该方法可以包括以下几个步骤:  Acquiring the first video data of the first video stream of the network video to be played to be cached; when the first video data is buffered to the first data amount, playing the video corresponding to the first video data; Obtaining, by the second data quantity, the second video data of the second video stream of the to-be-played network video is buffered, and when the second video data is buffered to the third data quantity, playing the second video data corresponding to video. The first data amount that needs to be cached at least for playing the first video stream is smaller than the third data amount that needs to be cached at least when the second video stream is played, so that when the first video data is buffered to the first data amount, the content can be started, and the network bandwidth is constant. In this case, the buffering time of the first data volume is smaller than the buffering time of the third data volume, and the video in the embodiment of the present application enables the video to be played in advance, in a manner that the second video data of the second video stream is directly played. The playback delay is reduced, and the second video stream is selected according to user requirements or based on adaptive stream technology, so that the playback quality can be ensured at the same time, thereby improving the playback effect and improving the user experience. FIG. 1 is a flowchart of an embodiment of a network video playing method according to an embodiment of the present disclosure, where the method may include the following steps:
101 : 获取待播放网络视频的第一视频流的第一视频数据进行緩存。  101: Acquire a first video data of a first video stream of a network video to be played to be cached.
网络视频, 是指由网络视频服务商提供的、 以流媒体为播放格式的、 可以 在线直播或点播的声像文件。  Network video refers to the audio and video files provided by the network video service provider and can be played live or on-demand in streaming media.
待播放网络视频是指即将播放但还未播放的网络视频,本申请实施例主要 针对待播放网络视频的播放方案。  The network video to be played is a network video that is to be played but not yet played. The embodiment of the present application is mainly directed to a playback scheme of the network video to be played.
待播放网络视频可以是根据用户的请求信息,确定的用户请求播放或预先 点播的视频或节目。  The to-be-played network video may be a video or program that is determined to be played or pre-ordered by the user according to the user's request information.
该待播放网络视频可以具体是需要进行视频切换时,根据用户的请求信息 所确定的。  The network video to be played may be determined according to the request information of the user when the video switching needs to be performed.
由于切换的待播放网络视频与当前播放的网络视频的视频服务器等是不 同的, 因此在切换至待播放网络视频时, 由于视频数据需要先进行緩存, 因此 存在播放时延, 本申请实施例即是为了实现减少播放时延的目的, 以提高播放 效果, 提高用户体验。 本申请实施例基于自适应码流技术中的多个视频流实现,即视频服务商为 同一网络视频准备有多份质量不同,但是内容相同的视频流,每一个视频流均 为网络视频的相同内容的视频流, 只是视频质量不同。 Since the switched network video to be played is different from the video server of the currently played network video, when the network video to be played is switched, the video data needs to be cached first, so there is a playback delay, which is the embodiment of the present application. In order to reduce the playback delay, the playback effect is improved and the user experience is improved. The embodiment of the present application is implemented based on multiple video streams in the adaptive code stream technology, that is, the video service provider prepares multiple video streams of the same quality but different content for the same network video, and each video stream is the same for the network video. The video stream of content is just different in video quality.
102: 所述第一视频数据緩存至第一数据量时, 播放所述第一视频数据对 应的视频。  Step 102: Play the video corresponding to the first video data when the first video data is buffered to the first data amount.
由于视频播放时, 需要先緩存一定的数据量才能进行播放, 该第一数据量 即为播放第一视频流最少需要緩存的第一视频数据的数据量。  Since the video is played, it is necessary to buffer a certain amount of data before playing, and the first data amount is the amount of data of the first video data that needs to be cached at least for playing the first video stream.
当第一视频数据緩存至第一数据量时, 即可以输出第一视频数据, 实现视 频的播放。  When the first video data is buffered to the first data amount, the first video data may be output to implement video playback.
103: 所述第一视频数据緩存至第二数据量时, 获取所述待播放网络视频 的第二视频流的第二视频数据进行緩存。  103: When the first video data is buffered to the second data volume, acquire the second video data of the second video stream of the to-be-played network video for buffering.
第一视频数据緩存至第二数据量时, 则可以停止获取该第一视频数据, 而 获取该播放网络视频的第二视频流的第二视频数据, 其中, 该第一视频数据和 该第二视频数据需为视频时间连续, 且内容连续的视频数据。  When the first video data is buffered to the second data volume, the first video data may be stopped, and the second video data of the second video stream of the network video is obtained, where the first video data and the second video data are obtained. The video data needs to be video data with continuous video time and continuous content.
其中, 该第二数据量为第一视频数据緩存结束时, 第一视频数据的全部緩 存数据量。该第二数据量需要使得在所述第二数据量的所述第一视频数据对应 的视频的播放时间内, 所述第二视频数据能够緩存至第三数据量,也即第二数 据量的第一视频数据对应的视频的播放时间要大于或等于第三数据量的第二 视频数据的緩存时间。  The second data amount is the total amount of buffered data of the first video data when the first video data buffer ends. The second amount of data needs to be such that the second video data can be buffered to a third amount of data, that is, the second amount of data, during the playing time of the video corresponding to the first video data of the second amount of data. The playing time of the video corresponding to the first video data is greater than or equal to the buffering time of the second video data of the third data amount.
该第三数据量为播放第二视频流最少需要緩存的第二视频数据的数据量。 其中, 该第二视频流可以基于自适应码流技术确定, 或者根据用户的播放 要求确定。 该第二视频流即是指确定的用来替换播放的第一视频流的视频流。  The third amount of data is the amount of data of the second video data that needs to be cached at least for playing the second video stream. The second video stream may be determined based on an adaptive stream technology or determined according to a user's playback requirements. The second video stream refers to the determined video stream used to replace the played first video stream.
而为了减少緩存时间, 减少播放时延, 本申请实施例中, 该第一数据量需 小于该第三数据量。 即第一视频流为质量低于第二视频流的视频流。  In order to reduce the buffering time and reduce the playback delay, in the embodiment of the present application, the first data amount needs to be smaller than the third data amount. That is, the first video stream is a video stream whose quality is lower than the second video stream.
视频流的视频质量包括分辨率、 帧率以及量化精细度等。在一种可能实现 方式中, 可以根据码率识别不同质量的视频流, 码率越低, 质量越低。 因此该 第一视频流的码率低于第二视频流的码率。  The video quality of a video stream includes resolution, frame rate, and quantization granularity. In a possible implementation, different quality video streams can be identified according to the code rate, and the lower the code rate, the lower the quality. Therefore, the code rate of the first video stream is lower than the code rate of the second video stream.
其中, 可以选择视频流中最低码率的视频流作为第一视频流。 因此步骤 101 也即是获取待播放网络视频的最低码率的第一视频流的第一视频数据进 行緩存。 The video stream of the lowest bit rate in the video stream may be selected as the first video stream. Therefore the steps 101 is that the first video data of the first video stream that obtains the lowest bit rate of the network video to be played is cached.
当然也可以采用其他方式确定第一视频流和第二视频流,例如根据历史记 录日志, 统计得出的满足网络带宽、播放时延以及视频质量等的不同播放要求 对应的视频流, 从而可以根据当前播放要求确定出第一视频流和第二视频流, 只需满足播放第一视频流最少需要緩存的数据量小于播放第二视频流最少需 要緩存的数据量即可。  Of course, the first video stream and the second video stream may be determined in other manners, for example, according to the history log, the video stream corresponding to different playback requirements, such as network bandwidth, playback delay, and video quality, may be obtained, so that The current play request determines the first video stream and the second video stream, and only needs to satisfy the minimum amount of data that needs to be cached when playing the first video stream is less than the amount of data that needs to be cached at least for playing the second video stream.
104: 所述第二视频数据至少緩存至第三数据量时, 播放所述第二视频数 据对应的视频。  104: Play the video corresponding to the second video data when the second video data is buffered to the third data amount.
当第二视频数据緩存至第三数据量, 即可以切换至第二视频流,播放该第 二视频数据,停止播放第一视频数据对应的视频, 第一视频数据对应的视频播 放结束, 从而可以提高播放视频的质量。  When the second video data is buffered to the third data volume, the second video data may be switched to play the second video data, and the video corresponding to the first video data is stopped, and the video corresponding to the first video data ends, thereby Improve the quality of the playback video.
当然,也可以是在第二数据量的第二视频数据播放结束时,切换至第二视 频流, 播放该第二视频数据, 使得可以避免资源浪费, 在该情况下, 第二数据 量的第二视频数据播放结束时, 第二视频数据至少緩存至第三数据量。  Of course, when the second video data of the second data amount ends, the second video data is switched to play the second video data, so that resource waste can be avoided. In this case, the second data amount is When the second video data is played, the second video data is buffered at least to the third amount of data.
若使得第二数据量的第二视频数据播放结束时,第二视频数据同时緩存至 第三数据量, 则此时切换至该第二视频流, 播放第二视频数据对应的视频, 可 以既保证视频质量,且保证了视频播放的流畅性,同时避免了系统资源的浪费。  If the second video data is buffered to the third data amount when the second video data of the second data is played, the second video stream is switched to the second video stream, and the video corresponding to the second video data is played. Video quality, and ensure the smoothness of video playback, while avoiding the waste of system resources.
在本实施例中 ,首先获取待播放网络视频的第一视频流的第一视频数据进 行緩存,再获取待播放网络视频的第二视频流的第二视频数据进行緩存, 由于 播放该第一视频流最少需要緩存的第一数据量小于播放该第二视频流最少需 要緩存的第三数据量,从而第一视频数据緩存至第一数据量时, 即可以开始播 放,在网络带宽一定的情况下, 第一数据量的緩存时间要小于第三数据量的緩 存时间, 因此使得视频可以提前播放, 减少了播放时延, 且第二视频流为满足 用户需求或者基于自适应码流技术选择的, 因此同时可以保证播放质量,从而 改善了播放效果, 提高了用户体验。 图 2 为本申请实施例提供的一种网络视频播放方法另一个实施例的流程 图, 该方法可以包括以下几个步骤: 201: 获取待播放网络视频的第一视频流的第一视频数据进行緩存。 In this embodiment, the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video is played. The first amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least when the second video stream is played, so that when the first video data is buffered to the first amount of data, the playback can start, and when the network bandwidth is constant. The buffering time of the first data volume is smaller than the buffering time of the third data volume, so that the video can be played in advance, the playback delay is reduced, and the second video stream is selected according to user requirements or based on adaptive code stream technology. Therefore, the playback quality can be guaranteed at the same time, thereby improving the playback effect and improving the user experience. FIG. 2 is a flowchart of another embodiment of a network video playing method according to an embodiment of the present disclosure, where the method may include the following steps: 201: Acquire first video data of the first video stream of the network video to be played to be cached.
202: 所述第一视频数据緩存至第一时间时, 确定所述第一视频数据緩存 至第一数据量。  202: When the first video data is buffered to the first time, determining that the first video data is buffered to the first data amount.
本实施例中, 可以根据緩存时间确定第一视频数据是否緩存至第一数据 量。  In this embodiment, whether the first video data is buffered to the first data amount may be determined according to the buffer time.
该第一时间是根据当前网络带宽以及所述第一数据量确定,在一种可能实 现方式中, 该第一时间即等于第一数据量与当前网络带宽的比值。 即 Tl=Datal/B, 其中, T1表示第一时间, Data 1表示第一数据量, B表示当前网 络带宽。 该第一时间可以预先设定。  The first time is determined according to the current network bandwidth and the first amount of data. In a possible implementation manner, the first time is equal to a ratio of the first data amount to the current network bandwidth. That is, Tl = Datal / B, where T1 represents the first time, Data 1 represents the first amount of data, and B represents the current network bandwidth. This first time can be set in advance.
由于视频数据的启动接收都存在一定时延, 因此为了提高准确度,在另一 种可能实现方式中,该第一时间可以是时延常数和第一数据量与当前网络带宽 的比值的和值, 即 Tl=a+ Datal/B, a表示时延常数, 其可以根据实际应用情 况确定, a > 0。  In order to improve the accuracy, in another possible implementation manner, the first time may be a sum of a delay constant and a ratio of the first data amount to the current network bandwidth. , that is, Tl=a+ Datal/B, a represents the delay constant, which can be determined according to the actual application, a > 0.
203: 播放所述第一视频数据对应的视频。  203: Play a video corresponding to the first video data.
由于第一数据量为播放第一视频流最少需要緩存的数据量,因此在第一视 频数据緩存至第一时间时, 即可以输出该第一视频数据, 开始播放视频。  Since the first amount of data is the amount of data that needs to be cached at least for playing the first video stream, when the first video data is buffered to the first time, the first video data can be output and the video is started to be played.
204: 所述第一视频数据緩存至第二时间时, 确定所述第一视频数据緩存 至第二数据量。  204: When the first video data is buffered to the second time, determining that the first video data is buffered to a second amount of data.
205: 获取所述待播放网络视频的第二视频流的第二视频数据进行緩存。 其中, 该第二时间可以根据所述第一时间、所述第一数据量的第一视频数 据对应的视频的播放时间、 以及第三时间确定, 所述第三时间根据所述第三数 据量以及当前网络带宽确定。 205: Acquire second video data of the second video stream of the to-be-played network video for buffering. The second time may be determined according to the first time, the playing time of the video corresponding to the first video data of the first data amount, and the third time, where the third time is according to the third data quantity. And the current network bandwidth is determined.
在一种可能实现方式中,第二时间可以等于第三时间减去第一数据量的第 一视频数据对应的视频的播放时间再加上该第一时间 ,即 T2=T3-Ts+Tl ,其中 , T2表示第二时间, T3表示第三时间, Ts表示第一数据量的第一视频数据对应 的视频的播放时间。 其中, T3==Data3/B, 其中, Data3 表示第三数据量, 可 知 T1小于 T3。  In a possible implementation manner, the second time may be equal to the playing time of the video corresponding to the first video data of the first data amount minus the third time plus the first time, that is, T2=T3-Ts+Tl, Wherein, T2 represents the second time, T3 represents the third time, and Ts represents the playing time of the video corresponding to the first video data of the first data amount. Where T3==Data3/B, where Data3 represents the third amount of data, and it is known that T1 is smaller than T3.
在另一种可能实现方式中, 为了提高准确度, 该 T2=T3-Ts+Tl+a。 该第二 时间可以预先设定。 In another possible implementation, to improve accuracy, the T2 = T3 - Ts + Tl + a. The second The time can be set in advance.
由于第一视频数据緩存的数据量, 即第二数据量, 需要保证第二数据量的 第一视频数据对应的视频的播放时间内,第二视频数据能够至少緩存至第三数 据量。 据此, 第一视频数据緩存 T1后, 还需要至少緩存 T3-Ts的时间, 以保 证在第一视频数据播放过程中, 第二视频数据即能够緩存至第三数据量。  Due to the amount of data buffered by the first video data, that is, the second amount of data, the second video data can be buffered to at least the third amount of data during the playback time of the video corresponding to the first video data of the second data amount. Accordingly, after the first video data buffer T1, at least the time of T3-Ts needs to be cached to ensure that the second video data can be buffered to the third data amount during the playback of the first video data.
206: 所述第二视频数据緩存至第三数据量时, 播放所述第二视频数据对 应的视频。  206: When the second video data is buffered to the third data amount, playing the video corresponding to the second video data.
第二视频数据緩存至第三数据量时 ,第一视频数据的緩存数据量还未全部 播放, 或者第一视频数据的緩存数据量全部播放完时, 第二视频数据同时緩存 至第三数据量, 此时即可切换至第二视频流, 播放第二视频数据对应的视频, 以保证视频播放的质量。  When the second video data is buffered to the third data amount, the buffered data amount of the first video data is not all played, or the second video data is simultaneously buffered to the third data amount when the buffered data amount of the first video data is all played. At this point, the second video stream can be switched to play the video corresponding to the second video data to ensure the quality of the video playback.
第二视频数据緩存至第三数据量时, 即可播放该第二视频数据。 第二视频 流的第二视频数据具体是在以获取待播放网络视频的第一视频流的第一视频 数据为时间起始点 , 至少经过 T3-TS+T1+T3时间后开始进行播放。  When the second video data is buffered to the third data amount, the second video data can be played. The second video data of the second video stream is specifically a time starting point for acquiring the first video data of the first video stream of the network video to be played, and starting to play after at least the time of T3-TS+T1+T3.
由于第一视频数据緩存至第一时间 T1即可进行播放, 第二视频数据需緩 存第三时间 T3才可进行播放, 因此使得待播放视频可以提前 T3-T2的时间进 行播放, 减少了緩存时间, 减少了播放时延, 可以提高播放效果。  Since the first video data is buffered to the first time T1, the second video data needs to be buffered for the third time T3 to be played, so that the to-be-played video can be played in advance T3-T2, reducing the buffering time. , reducing the playback delay, can improve the playback effect.
上述描述中,第一数据量的第一视频数据对应的视频的播放时间小于或等 于该第三时间。  In the above description, the play time of the video corresponding to the first video data of the first data amount is less than or equal to the third time.
但是,在实际应用中, 该第一数据量的第一视频数据对应的视频的播放时 间可能大于该第三时间, 因此作为另一实施例, 当第一数据量的第一视频数据 对应的视频的播放时间大于该第三时间时, 第二数据量与第一数据量相同, 也 即该第二时间与第一时间相同。在第一视频数据緩存至第一时间时, 即获取播 放网络视频的第二视频流的第二视频数据进行緩存。  However, in a practical application, the playing time of the video corresponding to the first video data of the first data amount may be greater than the third time. Therefore, as another embodiment, the video corresponding to the first video data of the first data amount When the playing time is greater than the third time, the second data amount is the same as the first data amount, that is, the second time is the same as the first time. When the first video data is buffered to the first time, the second video data of the second video stream for playing the network video is obtained for buffering.
在本实施例中,首先获取待播放网络视频的第一视频流的第一视频数据进 行緩存,再获取待播放网络视频的第二视频流的第二视频数据进行緩存, 由于 播放第一视频流最少需要緩存的第一数据量小于播放第二视频流最少需要緩 存的第三数据量,根据最少需要的緩存数据量可以确定緩存时间,从而第一视 频数据緩存至第一时间时, 即可以开始播放, 在网络带宽一定的情况下, 第一 数据量的第一视频数据緩存所需的第一时间要小于第三数据量的第二视频数 据緩存所需的第三时间, 因此使得视频可以提前播放, 减少了播放时延, 且第 二视频流为满足用户需求或者基于自适应码流技术选择的 ,在第一视频数据播 放过程中, 当第二视频数据緩存至第三数据量时, 即可以切换至第二视频流播 放第二视频数据对应的视频, 因此同时可以保证播放质量,从而改善了播放效 果, 提高了用户体验。 图 3 为本申请实施例提供的一种网络视频播放方法又一个实施例的流程 图, 该方法可以包括以下几个步骤: In this embodiment, the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played. The minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the minimum amount of cached data, so that the first view When the frequency data is buffered to the first time, the playback can be started. When the network bandwidth is constant, the first time required for the first video data buffer of the first data amount is smaller than the second video data buffer of the third data amount. The required third time, thus enabling the video to be played in advance, reducing the playback delay, and the second video stream is selected to meet user requirements or based on adaptive stream technology, during the first video data playback process, when When the second video data is buffered to the third data amount, the second video stream can be switched to play the video corresponding to the second video data, so that the playback quality can be ensured at the same time, thereby improving the playback effect and improving the user experience. FIG. 3 is a flowchart of still another embodiment of a network video playing method according to an embodiment of the present disclosure, where the method may include the following steps:
301 : 获取待播放网络视频的第一视频流的第一视频数据进行緩存。  301: Acquire a first video data of the first video stream of the network video to be played to be cached.
302: 根据第一数据量以及当前网络带宽, 计算第一时间。  302: Calculate the first time according to the first data amount and the current network bandwidth.
本实施例中, 可以在获取视频数据, 进行緩存时间的计算, 当然也可以预 先设定。  In this embodiment, the video data may be acquired, and the calculation of the buffer time may be performed. Of course, it may be preset.
该第一时间可以等于第一数据量与当前网络带宽比值。  The first time may be equal to the ratio of the first data amount to the current network bandwidth.
而为了提高准确度,该第一时间可以具体是第一数据量与当前网络带宽比 值, 再加上时延常数的和值, 即 Tl=a+ Datal/B。  In order to improve the accuracy, the first time may be specifically a ratio of the first data amount to the current network bandwidth, and a sum of delay constants, that is, Tl=a+Datal/B.
303: 当所述第一视频数据緩存至第一时间时, 播放所述第一视频数据对 应的视频。  303: Play the video corresponding to the first video data when the first video data is buffered to the first time.
第一视频数据緩存至第一时间, 即緩存了第一数据量的第一视频数据, 因 此可以输出该第一视频数据, 实现视频的播放。  The first video data is buffered to the first time, that is, the first video data of the first data amount is buffered, so the first video data can be output to realize the playing of the video.
304: 根据第三数据量以及当前网络带宽计算第三时间。  304: Calculate the third time according to the third data amount and the current network bandwidth.
第三数据量为播放质量高于第一视频流的第二视频流最少需要緩存的数 据量, 因此据此可以计算得到第三时间。  The third amount of data is the amount of data that needs to be cached at least for the second video stream whose playback quality is higher than that of the first video stream, so that the third time can be calculated accordingly.
该第三时间可以等于第三数据量与当前网络带宽比值。  The third time may be equal to the ratio of the third data amount to the current network bandwidth.
为了提高准确度, 该第三时间可以具体是第三数据量与当前网络带宽比 值, 再加上时延常数的和值, 即 T3=a+Data3/B。  In order to improve the accuracy, the third time may specifically be the ratio of the third data amount to the current network bandwidth, plus the sum of the delay constants, that is, T3=a+Data3/B.
305: 判断所述第一数据量的第一视频数据对应的视频的播放时间是否大 于所述第三时间, 如果否, 进入步骤 306, 如果是, 进入步骤 308。 如果第一数据量的第一视频数据对应的视频的播放时间大于第三时间,则 第一视频数据緩存第一数据量后, 即可停止获取,从而获取第二视频流的第二 视频数据进行緩存, 因此可以保证在第一数据量的第一视频数据播放结束时 , 第二视频数据至少緩存至第三数据量。 305: Determine whether a play time of the video corresponding to the first video data of the first data quantity is large At the third time, if no, go to step 306, and if yes, go to step 308. If the playing time of the video corresponding to the first video data of the first data amount is greater than the third time, after the first video data is buffered by the first data amount, the acquiring may be stopped, thereby acquiring the second video data of the second video stream. The buffering can therefore ensure that the second video data is at least buffered to the third amount of data when the first video data of the first data amount is played.
而当第一数据量的第一视频数据对应的视频的播放时间小于或等于第三 时间时, 为了保证第一视频数据播放结束时, 第二视频数据可以緩存至第三数 据量, 还需继续获取并緩存第一视频数据。  When the playing time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, in order to ensure that the second video data can be buffered to the third data amount when the first video data ends, the video data needs to be continued. Get and cache the first video data.
306: 根据所述第一时间、 所述第一数据量的第一视频数据对应的视频的 播放时间、 以及所述第三时间计算第二时间。  306. Calculate a second time according to the first time, the playing time of the video corresponding to the first video data of the first data amount, and the third time.
该第二时间为第一视频数据总的緩存时间,经过第二时间可以实现第一视 频数据緩存至第二数据量,在第二数据量的第一视频数据对应的视频的播放时 间内, 可以保证第二视频数据緩存至第三数据量。  The second time is the total buffer time of the first video data, and the second video data is buffered to the second data amount after the second time, and the playing time of the video corresponding to the first video data of the second data quantity may be The second video data is guaranteed to be buffered to a third amount of data.
第二时间可以等于第三时间减去第一数据量的第一视频数据对应的视频 的播放时间再加上该第一时间, 其中, 为了提高准确度, 该第二时间具体可以 是第三时间减去第一数据量的第一视频数据对应的视频的播放时间再加上该 第一时间, 再加上时延常数得到, 即 T2= T3-Ts+Tl+a。  The second time may be equal to the third time minus the playing time of the video corresponding to the first video data of the first data amount, and the first time, wherein, in order to improve the accuracy, the second time may be the third time. The playback time of the video corresponding to the first video data minus the first data amount is added to the first time, and the delay constant is obtained, that is, T2=T3-Ts+Tl+a.
307: 当所述第一视频数据緩存至所述第二时间时, 进入步骤 308。  307: When the first video data is buffered to the second time, proceed to step 308.
第一视频数据緩存至第二时间, 即停止緩存。  The first video data is buffered to the second time, that is, the cache is stopped.
308: 获取所述待播放网络视频的第二视频流的第二视频数据进行緩存。 308: Acquire second video data of the second video stream of the to-be-played network video for buffering.
309: 以获取待播放网络视频第一视频流的第一视频数据为时间起始点, 经过第四时间, 切换至所述第二视频流, 播放所述第二视频数据对应的视频。 309. The first video data of the first video stream of the network video to be played is used as a time starting point. After the fourth time, the second video stream is switched to play the video corresponding to the second video data.
该第四时间 T4可以是:  The fourth time T4 can be:
T4 > T1+2*T3-Ts。 也即根据第一视频数据的緩存时间 T2与第二视频数据 的緩存时间 T3得到。 而 T2= T3-TS+T1 , 因此可以得到该第四时间, 从而使得 经过第四时间, 第二视频流的第二视频数据至少緩存至第三数据量, 可以输出 该第二视频数据, 播放第二视频数据对应的视频。  T4 > T1+2*T3-Ts. That is, it is obtained according to the buffer time T2 of the first video data and the buffer time T3 of the second video data. And T2=T3-TS+T1, so the fourth time can be obtained, so that after the fourth time, the second video data of the second video stream is at least buffered to the third data amount, and the second video data can be output and played. The video corresponding to the second video data.
而为了提高准确度, 该第四时间可以具体是: T4 > Tl+2*T3-Ts+a。 即 T2= T3-Ts+Tl+a, Tl=a+Datal/B, T3=a+Data3/B。 In order to improve the accuracy, the fourth time may specifically be: T4 > Tl+2*T3-Ts+a. That is T2= T3-Ts+Tl+a, Tl=a+Datal/B, T3=a+Data3/B.
其中, 时延常数在计算不同时间时, 其值可以相同或不同。  Wherein, the delay constants may have the same or different values when calculating different times.
在本实施例中 ,首先获取待播放网络视频的第一视频流的第一视频数据进 行緩存,再获取待播放网络视频的第二视频流的第二视频数据进行緩存, 由于 播放第一视频流最少需要緩存的第一数据量小于播放第二视频流最少需要緩 存的第三数据量,根据最少需要緩存的数据量可以确定緩存时间,从而第一视 频数据緩存至第一时间时, 即可以开始播放, 在网络带宽一定的情况下, 第一 数据量的第一视频数据緩存所需的第一时间要小于第三数据量的第二视频数 据緩存所需的第三时间, 因此使得视频可以提前播放, 减少了播放时延; 且第 二视频数据可以在第一视频数据緩存至第一时间或第二时间后再开始进行緩 存,保证了视频播放连续性,且第二视频流为满足用户需求或者基于自适应码 流技术选择的, 因此同时可以保证播放质量, 从而改善了播放效果, 提高了用 户体验。  In this embodiment, the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played. The minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the amount of data that needs to be cached at least, so that when the first video data is buffered to the first time, the data can be started. Playing, in a case where the network bandwidth is constant, the first time required for the first video data buffer of the first data amount is smaller than the third time required for the second video data buffer of the third data amount, so that the video can be advanced Playback, reducing the play delay; and the second video data can be cached after the first video data is buffered to the first time or the second time, ensuring video play continuity, and the second video stream meets user requirements Or based on adaptive stream technology, so the quality of playback can be guaranteed at the same time, thus improving the broadcast. The effect of improving the user experience.
对于前述的各方法实施例, 为了简单描述,故将其都表述为一系列的动作 组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制, 因为依据本申请, 某些步骤可以采用其他顺序或者同时进行。 其次, 本领域技 术人员也应该知悉,说明书中所描述的实施例均属于优选实施例, 所涉及的动 作和模块并不一定是本申请所必须的。 图 4 为本申请实施例提供的一种网络视频播放装置一个实施例的结构示 意图, 该装置可以包括:  For the foregoing method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence, because according to the present application, Some steps can be performed in other orders or at the same time. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the operations and modules involved are not necessarily required by the present application. FIG. 4 is a schematic structural diagram of an embodiment of a network video playing device according to an embodiment of the present disclosure, where the device may include:
第一获取单元 401 , 用于获取待播放网络视频的第一视频流的第一视频数 据进行緩存。  The first obtaining unit 401 is configured to cache the first video data of the first video stream of the network video to be played.
待播放网络视频是指即将播放但还未播放的网络视频,本申请实施例主要 针对待播放网络视频的播放方案。  The network video to be played is a network video that is to be played but not yet played. The embodiment of the present application is mainly directed to a playback scheme of the network video to be played.
待播放网络视频可以是根据用户的请求信息,确定的用户请求播放或预先 点播的视频或节目。  The to-be-played network video may be a video or program that is determined to be played or pre-ordered by the user according to the user's request information.
第一播放单元 402 , 用于当所述第一获取单元获取的所述第一视频数据緩 存至第一数据量时, 播放所述第一视频数据对应的视频。 该第一数据量为播放第一视频流最少需要緩存的第一视频数据的数据量。 当第一视频数据緩存至第一数据量时, 则可以输出该第一视频数据,播放 该第一视频数据对应的视频。 The first playing unit 402 is configured to play the video corresponding to the first video data when the first video data acquired by the first acquiring unit is buffered to the first data amount. The first amount of data is the amount of data of the first video data that needs to be cached at least for playing the first video stream. When the first video data is buffered to the first data amount, the first video data may be output, and the video corresponding to the first video data is played.
第二获取单元 403 , 用于当所述第一获取单元获取的所述第一视频数据緩 存至第二数据量时,获取待播放网络视频的第二视频流的第二视频数据进行緩 存。  The second obtaining unit 403 is configured to: when the first video data acquired by the first acquiring unit is cached to the second data amount, acquire the second video data of the second video stream of the network video to be played for buffering.
所述第二数据量使得在所述第二数据量的所述第一视频数据对应的视频 的播放时间内, 所述第二视频数据能够緩存至第三数据量, 所述第一数据量和 所述第三数据量为播放相应视频流最少需要緩存的数据量,且所述第一数据量 小于所述第三数据量。  The second amount of data enables the second video data to be buffered to a third amount of data during the playing time of the video corresponding to the first video data of the second amount of data, the first amount of data and The third amount of data is a quantity of data that needs to be cached at least for playing the corresponding video stream, and the first amount of data is smaller than the third amount of data.
第一视频数据緩存至第二数据量时, 则可以停止获取该第一视频数据, 而 获取该播放网络视频的第二视频流的第二视频数据, 其中, 该第一视频数据和 该第二视频数据需为视频时间连续,且内容连续的视频数据。该第二数据量即 为第一视频数据总的緩存数据量。  When the first video data is buffered to the second data volume, the first video data may be stopped, and the second video data of the second video stream of the network video is obtained, where the first video data and the second video data are obtained. The video data needs to be video data with continuous video time and continuous content. The second amount of data is the total amount of buffered data of the first video data.
其中, 该第二视频流可以基于自适应码流技术确定, 或者根据用户的播放 要求确定。  The second video stream may be determined based on an adaptive stream technology or determined according to a user's playback requirements.
第二播放单元 404, 用于当第二视频数据至少緩存至第三数据量时, 播放 所述第二视频数据对应的视频。  The second playing unit 404 is configured to play the video corresponding to the second video data when the second video data is at least buffered to the third data amount.
当第二视频数据緩存至第三数据量, 即可以切换至第二视频流,播放该第 二视频数据,停止播放第一视频数据对应的视频,从而可以提高播放视频的质 量。  When the second video data is buffered to the third data amount, the second video data can be switched to play the second video data, and the video corresponding to the first video data is stopped, so that the quality of the played video can be improved.
当然,也可以是在第二数据量的第二视频数据播放结束时,切换至第二视 频流, 播放该第二视频数据, 使得可以避免资源浪费, 在该情况下, 第二数据 量的第二视频数据播放结束时, 第二视频数据至少緩存至第三数据量。  Of course, when the second video data of the second data amount ends, the second video data is switched to play the second video data, so that resource waste can be avoided. In this case, the second data amount is When the second video data is played, the second video data is buffered at least to the third amount of data.
若使得第二数据量的第二视频数据播放结束时,第二视频数据同时緩存至 第三数据量, 则此时切换至该第二视频流, 播放第二视频数据对应的视频, 使 得即保证了视频质量,且保证了视频播放的流畅性, 同时避免了系统资源的浪 费。  If the second video data is buffered to the third data amount when the second video data of the second data is played, the second video stream is switched to the second video stream, and the video corresponding to the second video data is played, so that the video is guaranteed. The video quality ensures the smoothness of video playback while avoiding the waste of system resources.
在本实施例中 ,首先获取待播放网络视频的第一视频流的第一视频数据进 行緩存,再获取待播放网络视频的第二视频流的第二视频数据进行緩存, 由于 播放第一视频流最少需要緩存的第一数据量小于播放第二视频流最少需要緩 存的第三数据量, 从而第一视频数据緩存至第一数据量时, 即可以开始播放, 在网络带宽一定的情况下,第一数据量的緩存时间要小于第三数据量的緩存时 间, 因此使得视频可以提前播放, 减少了播放时延, 且第二视频流为满足用户 需求或者基于自适应码流技术选择的, 因此同时可以保证播放质量,从而改善 了播放效果, 提高了用户体验。 In this embodiment, first acquiring the first video data of the first video stream of the network video to be played. Row buffering, and then acquiring second video data of the second video stream of the network video to be played for buffering, since the first data amount that needs to be cached at least for playing the first video stream is smaller than the third data amount that needs to be cached at least for playing the second video stream Therefore, when the first video data is buffered to the first data amount, the playback can be started. When the network bandwidth is constant, the buffering time of the first data amount is smaller than the buffering time of the third data amount, so that the video can be played in advance. The playback delay is reduced, and the second video stream is selected according to user requirements or based on adaptive code stream technology, so that the playback quality can be ensured at the same time, thereby improving the playback effect and improving the user experience.
图 5 为本申请实施例提供的一种网络视频播放装置另一个实施例的结构 示意图, 该装置可以包括: FIG. 5 is a schematic structural diagram of another embodiment of a network video playing device according to an embodiment of the present disclosure, where the device may include:
第一获取单元 501 , 用于获取待播放网络视频的第一视频流的第一视频数 据进行緩存。  The first obtaining unit 501 is configured to obtain the first video data of the first video stream of the network video to be played.
第一播放单元 502, 用于当所述第一获取单元获取的所述第一视频数据緩 存至第一数据量时, 播放所述第一视频数据对应的视频。  The first playing unit 502 is configured to play the video corresponding to the first video data when the first video data acquired by the first acquiring unit is cached to the first data amount.
其中, 作为一种可能实现方式, 该第一播放单元 502可以包括: 第一判断单元 5021 , 用于判断出所述第一视频数据緩存至第一时间时, 确定所述第一视频数据緩存至第一数据量。  As a possible implementation manner, the first playing unit 502 may include: a first determining unit 5021, configured to determine, when the first video data is buffered to a first time, determining that the first video data is buffered to The first amount of data.
所述第一时间根据所述第一数据量以及当前网络带宽确定。  The first time is determined according to the first amount of data and the current network bandwidth.
在一种可能实现方式中,该第一时间即等于第一数据量与当前网络带宽的 比值。 即 Tl=Datal/B。 该第一时间可以预先设定。  In a possible implementation, the first time is equal to the ratio of the first data amount to the current network bandwidth. That is, Tl=Datal/B. This first time can be set in advance.
由于视频数据的启动接收都存在一定时延, 因此为了提高准确度,在另一 种可能实现方式中,该第一时间可以是时延常数和第一数据量与当前网络带宽 的比值的和值 , 即 Tl=a+ Datal/B。  In order to improve the accuracy, in another possible implementation manner, the first time may be a sum of a delay constant and a ratio of the first data amount to the current network bandwidth. , ie Tl=a+ Datal/B.
播放子单元 5022, 用于播放所述第一视频数据对应的视频。  The playing subunit 5022 is configured to play a video corresponding to the first video data.
第二获取单元 503 , 用于当所述第一获取单元获取的所述第一视频数据緩 存至第二数据量时,获取待播放网络视频的第二视频流的第二视频数据进行緩 存。  The second obtaining unit 503 is configured to: when the first video data acquired by the first acquiring unit is cached to the second data amount, acquire the second video data of the second video stream of the network video to be played for buffering.
所述第二数据量需要使得在所述第二数据量的所述第一视频数据对应的 视频的播放时间内, 所述第二视频数据至少緩存至第三数据量, 所述第一数据 量和所述第三数据量为播放相应视频流最少需要緩存的数据量,且所述第一数 据量小于所述第三数据量。 The second amount of data needs to be corresponding to the first video data of the second amount of data During the playing time of the video, the second video data is at least buffered to a third amount of data, where the first amount of data and the third amount of data are at least a quantity of data to be cached for playing the corresponding video stream, and the first The amount of data is less than the third amount of data.
其中, 在一种可能实现方式中, 该第二获取单元可以包括:  In a possible implementation manner, the second obtaining unit may include:
第二判断单元 5031 , 用于判断所述第一视频数据緩存至第二时间时, 确 定所述第一视频数据緩存至第二数据量。  The second determining unit 5031 is configured to determine that the first video data is buffered to the second data amount when the first video data is buffered to the second time.
所述第二时间根据所述第一时间、所述第一数据量的第一视频数据对应的 视频的播放时间以及第三时间确定,所述第三时间根据所述第三数据量以及当 前网络带宽确定。  Determining, according to the first time, the playing time of the video corresponding to the first video data of the first data amount, and the third time, the third time according to the third data amount and the current network Bandwidth is determined.
一种可能实现方式中,第二时间可以等于第三时间减去第一数据量的第一 视频数据对应的视频的播放时间再加上该第一时间 , 即 T2=T3-Ts+Tl , 其中, T2表示第二时间, T3表示第三时间, Ts表示第一数据量的第一视频数据对应 的视频的播放时间。 其中, T3==Data3/B, 其中, Data3 表示第三数据量, 可 知 T1小于 T3。  In a possible implementation, the second time may be equal to the playing time of the video corresponding to the first video data of the first data amount minus the third time plus the first time, that is, T2=T3-Ts+Tl, where T2 represents the second time, T3 represents the third time, and Ts represents the play time of the video corresponding to the first video data of the first data amount. Where T3==Data3/B, where Data3 represents the third amount of data, and it is known that T1 is smaller than T3.
在另一种可能实现方式中, 为了提高准确度, 该 T2=T3-Ts+Tl+a。 该第二 时间可以预先设定。  In another possible implementation, to improve accuracy, the T2 = T3-Ts + Tl + a. This second time can be set in advance.
获取子单元 5032, 用于获取所述待播放网络视频的第二视频流的第二视 频数据进行緩存。  The obtaining sub-unit 5032 is configured to obtain second video data of the second video stream of the to-be-played network video for buffering.
由于第一视频数据緩存的数据量,即第二数据量的第一视频数据对应的视 频播放结束时, 需要保证第二视频数据能够至少緩存至第三数据量。 据此, 第 一视频数据緩存 T1后, 还需要緩存 T3-Ts的时间, 以保证第一视频数据播放 结束时, 第二视频数据能够緩存第三数据量。  Since the amount of data of the first video data buffer, that is, the video playback corresponding to the first video data of the second data amount ends, it is necessary to ensure that the second video data can be buffered to at least the third data amount. Accordingly, after the first video data buffer T1, the time of T3-Ts needs to be buffered to ensure that the second video data can buffer the third data amount when the first video data is played.
第二播放单元 504, 用于当所述第二视频数据緩存至第三数据量时时, 播 放所述第二视频数据对应的视频。  The second playing unit 504 is configured to play the video corresponding to the second video data when the second video data is buffered to the third data amount.
由于第一视频数据緩存第一时间 T1即可进行播放, 第二视频数据需緩存 第三时间 T3才可进行播放, 因此使得待播放视频可以提前 T3-T2的时间进行 播放, 减少了緩存时间, 减少了播放时延, 可以提高播放效果。  Since the first video data is buffered for the first time T1, the second video data needs to be buffered for the third time T3 to be played, so that the to-be-played video can be played in advance T3-T2, which reduces the buffering time. Reduced playback delay and improved playback.
其中, 该第二播放单元具体可以是在: 以获取待播放网络视频第一视频流 的第一视频数据为时间起始点, 经过第四时间,视频流播放所述第二视频数据 对应的视频。 The second playing unit may be specifically configured to: acquire a first video stream of the network video to be played. The first video data is a time starting point, and after a fourth time, the video stream plays the video corresponding to the second video data.
该第四时间 T4可以是:  The fourth time T4 can be:
T4 > Tl+2*T3-Ts+a。 也即根据第一视频数据的緩存时间 T2与第二视频数 据的緩存时间 T3得到 , 而 T2= T3-Ts+Tl+a, 因此可以得到该第四时间。 从而 使得经过第四时间, 第二视频流的第二视频数据至少緩存至第三数据量, 可以 输出播放。 其中, Tl=a+Datal/B, T3=a+Data3/B, a > 0。  T4 > Tl+2*T3-Ts+a. That is, according to the buffer time T2 of the first video data and the buffer time T3 of the second video data, and T2=T3-Ts+Tl+a, the fourth time can be obtained. Therefore, after the fourth time, the second video data of the second video stream is at least buffered to the third data amount, and the playback can be output. Where Tl=a+Datal/B, T3=a+Data3/B, a >0.
上述描述中,是以第一数据量的第一视频数据对应的视频的播放时间小于 或等于该第三时间进行的介绍。  In the above description, the presentation of the video corresponding to the first video data of the first data amount is less than or equal to the third time.
但是,在实际应用中, 该第一数据量的第一视频数据对应的视频的播放时 间可能大于该第三时间, 因此作为另一实施例:  However, in practical applications, the playback time of the video corresponding to the first video data of the first data amount may be greater than the third time, so as another embodiment:
当第一数据量的第一视频数据对应的视频的播放时间大于该第三时间时, 该第二时间与第一时间相同。 即在第一视频数据緩存至第一时间后, 即获取播 放网络视频的第二视频流的第二视频数据进行緩存。也即第二获取单元具体用 于当所述第一获取单元获取的所述第一视频数据緩存至第一时间时,获取待播 放网络视频的第二视频流的第二视频数据进行緩存。  When the playing time of the video corresponding to the first video data of the first data amount is greater than the third time, the second time is the same as the first time. That is, after the first video data is buffered to the first time, the second video data of the second video stream for playing the network video is obtained for buffering. That is, the second obtaining unit is configured to acquire the second video data of the second video stream of the network video to be played to be cached when the first video data acquired by the first acquiring unit is buffered to the first time.
在本实施例中 ,首先获取待播放网络视频的第一视频流的第一视频数据进 行緩存,再获取待播放网络视频的第二视频流的第二视频数据进行緩存, 由于 播放第一视频流最少需要緩存的第一数据量小于播放第二视频流最少需要緩 存的第三数据量,根据最少需要緩存的数据量可以确定緩存时间,从而第一视 频数据緩存至第一时间时, 即可以开始播放, 在网络带宽一定的情况下, 第一 数据量的緩存所需的第一时间要小于第三数据量的緩存所需的第三时间 ,因此 使得视频可以提前播放, 减少了播放时延,且第二视频流为满足用户需求或者 基于自适应码流技术选择的, 因此同时可以保证播放质量,在第一视频数据播 放过程中, 当第二视频数据緩存至第三数据量时, 即可以切换至第二视频流播 放第二视频数据对应的视频, 从而改善了播放效果, 提高了用户体验。 上述实施例所述的网络视频播放装置, 在实际应用中, 可以作为单独的一 台装置, 或者整合于各种不同可以实现网络视频播放的电子设备中,诸如机顶 盒、 移动电话、 平板电脑 ( Tablet Personal Computer ), 膝上型电脑 ( Laptop Computer ) , 多媒体播放器、 数字摄影机、 个人数字助理 (personal digital assistant, 简称 PDA )、导航装置、移动上网装置( Mobile Internet Device, MID ) 或可穿戴式设备 ( Wearable Device )等。 通过部署本申请实施例网络视频播放 装置的电子设备, 可以在保证一定播放质量的前提下, 减少緩存时间, 减少播 放时延, 提高播放效果, 从而提高用户体验。 In this embodiment, the first video data of the first video stream of the network video to be played is first cached, and the second video data of the second video stream of the network video to be played is obtained for buffering, because the first video stream is played. The minimum amount of data that needs to be cached at least is smaller than the third amount of data that needs to be cached at least for playing the second video stream, and the cache time can be determined according to the amount of data that needs to be cached at least, so that when the first video data is buffered to the first time, the data can be started. Playback, in the case that the network bandwidth is constant, the first time required for the buffer of the first data amount is smaller than the third time required for the buffer of the third data amount, so that the video can be played in advance, and the play delay is reduced. And the second video stream is selected according to the user requirement or based on the adaptive stream stream technology, so that the playback quality can be ensured at the same time. When the second video data is buffered to the third data amount, the second video stream can be buffered to the third data amount. Switching to the second video stream to play the video corresponding to the second video data, thereby improving the playback effect and improving the user Experience. The network video playing device described in the foregoing embodiment may be used as a single device in an actual application, or integrated in various electronic devices capable of realizing network video playing, such as a set top. Box, Mobile Phone, Tablet Personal Computer, Laptop Computer, Multimedia Player, Digital Camera, Personal Digital Assistant (PDA), Navigation Device, Mobile Internet Device (Mobile Internet) Device, MID) or wearable device (Wearable Device). By deploying the electronic device of the network video playing device of the embodiment of the present application, the cache time can be reduced, the play delay can be reduced, and the play effect can be improved, thereby improving the user experience.
通过以上描述可知,本领域的技术人员可以清楚地了解到本申请可借助软 件加必需的通用硬件平台的方式来实现。 因此, 参见图 6, 本申请实施例还提 供了一种电子设备,该电子设备至少包括存储器 601、处理器 602、接收器 603 以及输出设备 604, 其中, 存储器 601、 接收器 603以及输出设备 604分别和 处理器 602通过总线连接。  From the above description, it will be apparent to those skilled in the art that the present application can be implemented by means of software plus a necessary general hardware platform. Therefore, referring to FIG. 6, an embodiment of the present application further provides an electronic device, where the electronic device includes at least a memory 601, a processor 602, a receiver 603, and an output device 604, wherein the memory 601, the receiver 603, and the output device 604 It is connected to the processor 602 via a bus, respectively.
该存储器 601 , 用于緩存视频数据;  The memory 601 is configured to cache video data;
该接收器 603 , 用于获取视频数据;  The receiver 603 is configured to acquire video data.
该输出设备 604 , 用于播放视频数据对应的视频;  The output device 604 is configured to play a video corresponding to the video data.
该处理器 602, 用于触发所述接收器 603获取待播放网络视频的第一视频 流的第一视频数据并緩存至所述存储器 602中;  The processor 602 is configured to trigger the receiver 603 to acquire the first video data of the first video stream of the network video to be played and cache the first video data into the memory 602.
当所述第一视频数据緩存至第一数据量时,触发所述输出设备 604播放所 述第一视频数据对应的视频,所述第一数据量为播放第三视频流最少需要緩存 的数据量;  When the first video data is buffered to the first data amount, the output device 604 is triggered to play the video corresponding to the first video data, where the first data amount is the minimum amount of data to be cached for playing the third video stream. ;
当所述第一视频数据緩存至第二数据量时,触发所述接收器 603获取所述 待播放网络视频的第二视频流的第二视频数据并緩存至所述存储器 602中; 当所述第二视频数据至少緩存至第三数据量时, 触发所述输出设备 604 播放所述第二视频数据对应的视频。  When the first video data is buffered to the second data amount, triggering the receiver 603 to acquire second video data of the second video stream of the to-be-played network video and buffering into the memory 602; When the second video data is buffered to the third data amount, the output device 604 is triggered to play the video corresponding to the second video data.
其中,所述第二数据量使得在所述第二数据量的所述第一视频数据对应的 视频的播放时间内, 所述第二视频数据能够緩存至第三数据量, 所述第三数据 量为播放第二视频流最少需要緩存的数据量,且所述第一数据量小于所述第三 数据量。  The second data amount is such that the second video data can be buffered to a third data amount during the playing time of the video corresponding to the first video data of the second data amount, where the third data is The quantity is the amount of data that needs to be cached at least for playing the second video stream, and the first amount of data is smaller than the third amount of data.
其中, 该处理器 602当所述第一视频数据緩存至第一数据量时,触发所述 输出设备 604播放所述第一视频数据对应的视频可以具体用于当所述第一视 频数据緩存至第一时间时,触发所述输出设备 604播放所述第一视频数据对应 的视频, 所述第一时间根据所述第一数据量以及当前网络带宽确定。 The processor 602, when the first video data is buffered to the first data amount, triggering the output device 604 to play the video corresponding to the first video data, which may be specifically used when the first video is used. When the frequency data is buffered to the first time, the output device 604 is triggered to play the video corresponding to the first video data, and the first time is determined according to the first data amount and the current network bandwidth.
该处理器 602当所述第一视频数据緩存至第二数据量时,触发所述接收器 603 获取所述待播放网络视频的第二视频流的第二视频数据并緩存至所述存 储器 602中具体可以是用于当所述第一视频数据緩存至第二时间时,触发所述 接收器 603 获取所述待播放网络视频的第二视频流的第二视频数据并緩存至 所述存储器 602中; 所述第二时间根据所述第一时间、所述第一数据量的第一 视频数据对应的视频的播放时间以及第三时间确定,所述第三时间根据所述第 三数据量以及当前网络带宽确定。  The processor 602 triggers the receiver 603 to acquire the second video data of the second video stream of the to-be-played network video and cache it in the memory 602 when the first video data is buffered to the second data amount. Specifically, the method may be configured to: when the first video data is buffered to a second time, trigger the receiver 603 to acquire second video data of the second video stream of the to-be-played network video, and cache the second video data into the memory 602. The second time is determined according to the playing time of the video corresponding to the first video data of the first data amount and the third time, and the third time is according to the third data amount and the current time. Network bandwidth is determined.
其中,当所述第一数据量的第一视频数据对应的视频的播放时间大于所述 第三时间时, 所述第一时间与所述第二时间相同; 也即处理器在所述第一视频 数据緩存至第一时间时,即可触发所述接收器 603获取所述待播放网络视频的 第二视频流的第二视频数据并緩存至所述存储器 602中。  When the playing time of the video corresponding to the first video data of the first data amount is greater than the third time, the first time is the same as the second time; that is, the processor is at the first time. When the video data is buffered to the first time, the receiver 603 may be triggered to acquire the second video data of the second video stream of the to-be-played network video and cached in the memory 602.
当所述第一数据量的第一视频数据对应的视频的播放时间小于或等于所 述第三时间时, 所述第二时间等于所述第一时间与时间差的和值, 所述时间差 为所述第一数据量的第一视频数据对应的视频的播放时间和所述第三时间的 时间差。  And when the playing time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time is equal to a sum of the first time and the time difference, where the time difference is a time difference between a play time of the video corresponding to the first video data of the first data amount and the third time.
其中, 该处理器可能是一个中央处理器 CPU, 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ),或者是被配置成实施本发明实施例的 一个或多个集成电路。  The processor may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
该输出设备可以为一播放器。  The output device can be a player.
可选地,该电子设备可以用于执行本申请实施例提供的图 1-图 3所示的网 络视频播放方法。  Optionally, the electronic device can be used to perform the network video playing method shown in FIG. 1 to FIG. 3 provided by the embodiment of the present application.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是 与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于 实施例公开的装置而言, 由于其与实施例公开的方法相对应, 所以描述的比较 简单, 相关之处参见方法部分说明即可。  The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the method part.
最后, 还需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅 仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者 暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 而且, 术语 "包 括"、 "包含"或者其任何其他变体意在涵盖非排他性的包含, 从而使得包括一 系列要素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还包括没有明 确列出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设备所固有的 要素。 在没有更多限制的情况下, 由语句 "包括一个 ... ... " 限定的要素, 并不 排除在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要素。 Finally, it should also be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or Imply that there is any such actual relationship or order between these entities or operations. Furthermore, the terms "including", "comprising" or "comprising" or "comprising" are intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that includes a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or device that comprises the element, without further limitation.
为了描述的方便, 描述以上装置时以功能分为各种单元分别描述。 当然, 在实施本申请时可以把各单元的功能在同一个或多个软件和 /或硬件中实现。  For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of each unit may be implemented in the same software or software and/or hardware when implementing the present application.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本 申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解, 本申 请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形 式体现出来,该计算机软件产品可以存储在存储介质中,如 ROM/RAM、磁碟、 光盘等, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。  It will be apparent to those skilled in the art from the above description of the embodiments that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本 申请。 对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见 的, 本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下, 在 其它实施例中实现。 因此, 本申请将不会被限制于本文所示的这些实施例, 而 是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。  The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims

权 利 要 求 Rights request
1、 一种网络视频播放方法, 其特征在于, 包括: 1. An online video playback method, characterized by including:
获取待播放网络视频的第一视频流的第一视频数据进行緩存; Obtain the first video data of the first video stream of the network video to be played and cache it;
所述第一视频数据緩存至第一数据量时 ,播放所述第一视频数据对应的视 频, 所述第一数据量为播放所述第一视频流最少需要緩存的数据量; When the first video data is cached to a first data amount, the video corresponding to the first video data is played, and the first data amount is the minimum amount of data that needs to be cached to play the first video stream;
所述第一视频数据緩存至第二数据量时,获取所述待播放网络视频的第二 视频流的第二视频数据进行緩存;所述第二数据量使得在所述第二数据量的第 一视频数据对应的视频的播放时间内,所述第二视频数据能够緩存至第三数据 量, 所述第三数据量为播放所述第二视频流最少需要緩存的数据量, 所述第一 数据量 d、于所述第三数据量; When the first video data is cached to the second data amount, the second video data of the second video stream of the network video to be played is obtained and cached; the second data amount is such that when the second data amount is reached, the second video data of the second video stream of the network video to be played is obtained. During the playback time of a video corresponding to a video data, the second video data can be cached to a third data amount, and the third data amount is the minimum amount of data that needs to be cached to play the second video stream, and the first The data amount d is equal to the third data amount;
所述第二视频数据至少緩存至所述第三数据量时 ,播放所述第二视频数据 对应的视频。 When the second video data is buffered to at least the third data amount, the video corresponding to the second video data is played.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一视频数据緩存至 第一数据量时, 播放所述第一视频数据对应的视频包括: 2. The method according to claim 1, wherein when the first video data is cached to a first data amount, playing the video corresponding to the first video data includes:
所述第一视频数据緩存至第一时间时,确定所述第一视频数据緩存至第一 数据量, 所述第一时间根据所述第一数据量以及当前网络带宽确定; When the first video data is cached to a first time, it is determined that the first video data is cached to a first data amount, and the first time is determined based on the first data amount and the current network bandwidth;
播放所述第一视频数据对应的视频。 Play the video corresponding to the first video data.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一视频数据緩 存至第二数据量时,获取所述待播放网络视频的第二视频流的第二视频数据进 行緩存包括: 3. The method according to claim 1 or 2, characterized in that, when the first video data is cached to a second data amount, the second video data of the second video stream of the network video to be played is obtained and cached. include:
所述第一视频数据緩存至第二时间时 ,确定所述第一视频数据緩存至第二 数据量; 所述第二时间根据所述第一时间、所述第一数据量的第一视频数据对 应的视频的播放时间以及第三时间确定,所述第三时间根据所述第三数据量以 及当前网络带宽确定; When the first video data is cached to the second time, it is determined that the first video data is cached to the second data amount; the second time is based on the first time and the first video data of the first data amount. The playback time and the third time of the corresponding video are determined, and the third time is determined based on the third data amount and the current network bandwidth;
获取所述待播放网络视频的第二视频流的第二视频数据进行緩存。 The second video data of the second video stream of the network video to be played is obtained and cached.
4、 根据权利要求 3所述的方法, 其特征在于, 当所述第一数据量的第一 视频数据对应的视频的播放时间大于所述第三时间时 ,所述第一时间与所述第 二时间相同; 当所述第一数据量的第一视频数据对应的视频的播放时间小于或等于所 述第三时间时, 所述第二时间等于所述第一时间与时间差的和值, 所述时间差 为所述第一数据量的第一视频数据对应的视频的播放时间和所述第三时间的 时间差。 4. The method according to claim 3, wherein when the playback time of the video corresponding to the first video data of the first data amount is greater than the third time, the first time and the third time are Two times are the same; When the playback time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time is equal to the sum of the first time and the time difference, and the time difference is the The time difference between the playback time of the video corresponding to the first video data of the first data amount and the third time.
5、 根据权利要求 3或 4所述的方法, 其特征在于, 当所述第一数据量的 第一视频数据对应的视频的播放时间小于或等于所述第三时间时,所述第二时 间具体为: 5. The method according to claim 3 or 4, characterized in that, when the playback time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time Specifically:
T2=T3-Ts+Tl+a; T2=T3-Ts+Tl+a;
其中, T3表示第三时间, Ts表示第一数据量的第一视频数据对应的视频 的播放时间, a表示时延常数且大于等于 0。 Among them, T3 represents the third time, Ts represents the playback time of the video corresponding to the first video data of the first data amount, and a represents the delay constant and is greater than or equal to 0.
6、 根据权利要求 3〜5任一项所述的方法, 其特征在于, 当所述第一数据 量的第一视频数据对应的视频的播放时间小于或等于所述第三时间时; 6. The method according to any one of claims 3 to 5, characterized in that when the playback time of the video corresponding to the first video data of the first data amount is less than or equal to the third time;
所述第二视频数据至少緩存至所述第三数据量时 ,播放所述第二视频数据 对应的视频包括:以获取待播放网络视频第一视频流的第一视频数据作为时间 起始点, 经过第四时间, 播放所述第二视频数据对应的视频; When the second video data is cached to at least the third data amount, playing the video corresponding to the second video data includes: obtaining the first video data of the first video stream of the network video to be played as the time starting point, after At the fourth time, play the video corresponding to the second video data;
所述第四时间为: T4 > Tl+2*T3-Ts+a; The fourth time is: T4 > Tl+2*T3-Ts+a;
其中, T4表示第四时间, T1表示第一时间, T3表示第三时间, Ts表示 第一数据量的第一视频数据对应的视频的播放时间, a表示时延常数且大于等 于 0。 Among them, T4 represents the fourth time, T1 represents the first time, T3 represents the third time, Ts represents the playback time of the video corresponding to the first video data of the first data amount, and a represents the delay constant and is greater than or equal to 0.
7、 一种网络视频播放装置, 其特征在于, 包括: 7. A network video playback device, characterized by including:
第一获取单元,用于获取待播放网络视频的第一视频流的第一视频数据进 行緩存; The first acquisition unit is used to acquire the first video data of the first video stream of the network video to be played and cache it;
第一播放单元,用于当所述第一获取单元获取的所述第一视频数据緩存至 第一数据量时,播放所述第一视频数据对应的视频, 所述第一数据量为播放所 述第一视频流最少需要緩存的数据量; A first playback unit, configured to play the video corresponding to the first video data when the first video data obtained by the first acquisition unit is cached to a first data amount, and the first data amount is the amount of data required for playback. The minimum amount of data that needs to be cached for the first video stream;
第二获取单元,用于当所述第一获取单元获取的所述第一视频数据緩存至 第二数据量时,获取所述待播放网络视频的第二视频流的第二视频数据进行緩 存;所述第二数据量使得在所述第二数据量的第一视频数据对应的视频的播放 时间内, 所述第二视频数据能够緩存至第三数据量, 所述第三数据量为播放所 述第二视频流最少需要緩存的数据量, 所述第一数据量小于所述第三数据量; 第二播放单元, 用于当所述第二视频数据至少緩存至所述第三数据量时 , 播放所述第二视频数据对应的视频。 A second acquisition unit configured to acquire and cache the second video data of the second video stream of the network video to be played when the first video data acquired by the first acquisition unit is cached to a second data amount; The second data amount enables the playback of the video corresponding to the first video data of the second data amount. Within the time, the second video data can be cached to a third data amount. The third data amount is the minimum amount of data that needs to be cached to play the second video stream. The first data amount is smaller than the third data. The second playback unit is configured to play the video corresponding to the second video data when the second video data is buffered to at least the third data amount.
8、 根据权利要求 7所述的装置, 其特征在于, 所述第一播放单元包括: 第一判断单元, 用于判断出所述第一视频数据緩存至第一时间时,确定所 述第一视频数据緩存至第一数据量,所述第一时间根据所述第一数据量以及当 前网络带宽确定; 8. The device according to claim 7, wherein the first playback unit includes: a first judgment unit, configured to determine that the first video data has been cached for a first time. The video data is cached to a first data amount, and the first time is determined based on the first data amount and current network bandwidth;
播放子单元, 用于播放所述第一视频数据对应的视频。 A playback subunit is used to play the video corresponding to the first video data.
9、 根据权利要求 7或 8所述的装置, 其特征在于, 所述第二获取单元包 括: 9. The device according to claim 7 or 8, characterized in that the second acquisition unit includes:
第二判断单元, 用于判断所述第一视频数据緩存至第二时间时,确定所述 第一视频数据緩存至第二数据量; 所述第二时间根据所述第一时间、所述第一 数据量的第一视频数据对应的视频的播放时间以及第三时间确定,所述第三时 间根据所述第三数据量以及当前网络带宽确定; The second judgment unit is used to determine that the first video data is cached to a second data amount when the first video data is cached to a second time; the second time is based on the first time, the third The playback time and the third time of the video corresponding to the first video data of a data amount are determined, and the third time is determined according to the third data amount and the current network bandwidth;
获取子单元,用于获取所述待播放网络视频的第二视频流的第二视频数据 进行緩存。 The acquisition subunit is used to acquire the second video data of the second video stream of the network video to be played and cache it.
10、 根据权利要求 9所述的装置, 其特征在于, 当所述第一数据量的第一 视频数据对应的视频的播放时间大于所述第三时间时 ,所述第一时间与所述第 二时间相同; 10. The device according to claim 9, wherein when the playback time of the video corresponding to the first video data of the first data amount is greater than the third time, the first time is equal to the third time. Two times are the same;
当所述第一数据量的第一视频数据对应的视频的播放时间小于或等于所 述第三时间时, 所述第二时间等于所述第一时间与时间差的和值, 所述时间差 为所述第一数据量的第一视频数据对应的视频的播放时间和所述第三时间的 时间差。 When the playback time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time is equal to the sum of the first time and the time difference, and the time difference is the The time difference between the playback time of the video corresponding to the first video data of the first data amount and the third time.
11、 根据权利要求 9或 10所述的装置, 其特征在于, 当所述第一数据量 的第一视频数据对应的视频的播放时间小于或等于所述第三时间时,所述第二 时间具体为: 11. The device according to claim 9 or 10, wherein when the playback time of the video corresponding to the first video data of the first data amount is less than or equal to the third time, the second time Specifically:
T2=T3-Ts+Tl+a; 其中, T3表示第三时间, Ts表示第一数据量的第一视频数据对应的视频 的播放时间, a表示时延常数且大于等于 0。 T2=T3-Ts+Tl+a; Wherein, T3 represents the third time, Ts represents the playback time of the video corresponding to the first video data of the first data amount, and a represents the delay constant and is greater than or equal to 0.
12、 根据权利要求 9〜11所述的装置, 其特征在于, 所述第二播放单元具 体用于, 以获取待播放网络视频第一视频流的第一视频数据作为时间起始点, 经过第四时间时, 播放所述第二视频数据对应的视频; 12. The device according to claims 9 to 11, characterized in that the second playback unit is specifically configured to obtain the first video data of the first video stream of the network video to be played as the time starting point, and after the fourth time, play the video corresponding to the second video data;
所述第四时间为: T4 > Tl+2*T3-Ts+a; The fourth time is: T4 > Tl+2*T3-Ts+a;
其中, T4表示第四时间, T1表示第一时间, T3表示第三时间, Ts表示 第一数据量的第一视频数据对应的视频的播放时间, a表示时延常数, 且大于 等于 0。 Among them, T4 represents the fourth time, T1 represents the first time, T3 represents the third time, Ts represents the playback time of the video corresponding to the first video data of the first data amount, a represents the delay constant, and is greater than or equal to 0.
13、 一种电子设备, 其特征在于, 包括处理器、 以及分别与所述处理器连 接的存储器、 接收器以及输出设备; 13. An electronic device, characterized in that it includes a processor, a memory, a receiver and an output device respectively connected to the processor;
所述存储器, 用于緩存视频数据; The memory is used to cache video data;
所述接收器, 用于获取视频数据; The receiver is used to obtain video data;
所述输出设备, 用于播放视频数据对应的视频; The output device is used to play the video corresponding to the video data;
所述处理器,用于触发所述接收器获取待播放网络视频的第一视频流的第 一视频数据并緩存至所述存储器中; The processor is configured to trigger the receiver to obtain the first video data of the first video stream of the network video to be played and cache it in the memory;
当所述第一视频数据緩存至第一数据量时,触发所述输出设备播放所述第 一视频数据对应的视频 ,所述第一数据量为播放所述第一视频流最少需要緩存 的数据量; When the first video data is cached to a first data amount, the output device is triggered to play the video corresponding to the first video data. The first data amount is the minimum data that needs to be cached to play the first video stream. quantity;
当所述第一视频数据緩存至第二数据量时,触发所述接收器获取所述待播 放网络视频的第二视频流的第二视频数据并緩存至所述存储器中; 其中, 所述 第二数据量使得在所述第二数据量的第一视频数据对应的视频的播放时间内, 所述第二视频数据能够緩存至第三数据量 ,所述第三数据量为播放所述第二视 频流最少需要緩存的数据量, 所述第一数据量 d、于所述第三数据量; When the first video data is cached to a second data amount, the receiver is triggered to obtain the second video data of the second video stream of the network video to be played and cache it in the memory; wherein, the first The second data amount enables the second video data to be cached to a third data amount within the playback time of the video corresponding to the first video data of the second data amount, and the third data amount is necessary to play the second data amount. The minimum amount of data that needs to be cached for a video stream is that the first data amount d is smaller than the third data amount;
当所述第二视频数据至少緩存至所述第三数据量时,触发所述输出设备播 放所述第二视频数据对应的视频。 When the second video data is buffered to at least the third data amount, the output device is triggered to play the video corresponding to the second video data.
14、 根据权利要求 13所述的电子设备, 其特征在于, 所述处理器具体用 于当所述第一视频数据緩存至第一时间时,触发所述输出设备播放所述第一视 频数据对应的视频, 所述第一时间根据所述第一数据量以及当前网络带宽确 定。 14. The electronic device according to claim 13, wherein the processor is specifically configured to trigger the output device to play the first video when the first video data is cached for a first time. The video corresponding to the frequency data, the first time is determined according to the first data amount and the current network bandwidth.
15、 根据权利要求 13或 14所述的电子设备, 其特征在于, 所述处理器具 体用于当所述第一视频数据緩存至第二时间时 ,触发所述接收器获取所述待播 放网络视频的第二视频流的第二视频数据并緩存至所述存储器中;所述第二时 间根据所述第一时间、所述第一数据量的第一视频数据对应的视频的播放时间 以及第三时间确定, 所述第三时间根据所述第三数据量以及当前网络带宽确 定。 15. The electronic device according to claim 13 or 14, wherein the processor is specifically configured to trigger the receiver to obtain the network to be played when the first video data is buffered to a second time. The second video data of the second video stream of the video is cached in the memory; the second time is based on the first time, the playback time of the video corresponding to the first video data of the first data amount, and the second time. Three times are determined, and the third time is determined according to the third data amount and the current network bandwidth.
PCT/CN2014/071748 2014-01-29 2014-01-29 Method, apparatus and electronic device for playing network video WO2015113243A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/071748 WO2015113243A1 (en) 2014-01-29 2014-01-29 Method, apparatus and electronic device for playing network video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/071748 WO2015113243A1 (en) 2014-01-29 2014-01-29 Method, apparatus and electronic device for playing network video

Publications (1)

Publication Number Publication Date
WO2015113243A1 true WO2015113243A1 (en) 2015-08-06

Family

ID=53756137

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071748 WO2015113243A1 (en) 2014-01-29 2014-01-29 Method, apparatus and electronic device for playing network video

Country Status (1)

Country Link
WO (1) WO2015113243A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795401A (en) * 2010-03-19 2010-08-04 中兴通讯股份有限公司 Method and system for transmitting video streaming medium
CN102905188A (en) * 2012-11-01 2013-01-30 北京奇艺世纪科技有限公司 Video code stream switching method and device
CN103155580A (en) * 2010-09-02 2013-06-12 英国电讯有限公司 Adaptive streaming of video at different quality levels
CN103347212A (en) * 2013-06-04 2013-10-09 青岛海信宽带多媒体技术有限公司 VOD program playing method and VOD program playing device
CN103402136A (en) * 2013-07-29 2013-11-20 重庆大学 Self-adaptive cache adjustment control method and device and self-adaptive player
CN103475932A (en) * 2013-09-05 2013-12-25 深圳Tcl新技术有限公司 Seamless on-line playing method and device of network video and network television system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795401A (en) * 2010-03-19 2010-08-04 中兴通讯股份有限公司 Method and system for transmitting video streaming medium
CN103155580A (en) * 2010-09-02 2013-06-12 英国电讯有限公司 Adaptive streaming of video at different quality levels
CN102905188A (en) * 2012-11-01 2013-01-30 北京奇艺世纪科技有限公司 Video code stream switching method and device
CN103347212A (en) * 2013-06-04 2013-10-09 青岛海信宽带多媒体技术有限公司 VOD program playing method and VOD program playing device
CN103402136A (en) * 2013-07-29 2013-11-20 重庆大学 Self-adaptive cache adjustment control method and device and self-adaptive player
CN103475932A (en) * 2013-09-05 2013-12-25 深圳Tcl新技术有限公司 Seamless on-line playing method and device of network video and network television system

Similar Documents

Publication Publication Date Title
US10797931B2 (en) Systems and methods for using seektables to stream media items
US10110694B1 (en) Adaptive transfer rate for retrieving content from a server
CN110430457B (en) Method and device for playing different-end audio and video and audio playing system
US9473548B1 (en) Latency reduction in streamed content consumption
US10536743B2 (en) Preloading and switching streaming videos
US9626364B2 (en) Streaming media
WO2017166630A1 (en) Task priority correctingon method and device
CN106658226B (en) Playing method and device
JP2017529726A (en) Client and server operating method for streaming service
US11973996B2 (en) Staggered key frame video encoding
CN109195010B (en) Code rate adjusting method and device
CN108933764B (en) Method and device for realizing quick broadcast starting
WO2017161779A1 (en) Method and device for adjusting playback quality level during multi-window-based video playback
CN107690093B (en) Video playing method and device
CN108259998B (en) Player, play control method and device, electronic equipment and play system
WO2016112641A1 (en) Client, streaming media data receiving method and streaming media data transmission system
TW201429232A (en) Multimedia playback apparatus and multimedia file prefetching method
CN104641655A (en) Terminal cache method, terminal and server
WO2015113243A1 (en) Method, apparatus and electronic device for playing network video
CN111837405B (en) Methods, systems, and media for delivering non-manifest streaming media content
TWI598743B (en) Method for downloading multimedia files and electronic device
WO2023277886A1 (en) Noise removal on an electronic device
Gan AUDIO-ONLY MODE FOR VIDEO STREAMING SERVICES

Legal Events

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

Ref document number: 14880843

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14880843

Country of ref document: EP

Kind code of ref document: A1