IP Library Granted Patent US 10,271,072
Granted Patent B2
US 10,271,072 · App. 15/934,473 · Granted Apr 23, 2019

Video preloading method and apparatus

Inventors: Hualiang Yan (Shenzhen, CN); Zirong Zhu (Shenzhen, CN); Rongke Chen (Shenzhen, CN); Tao Feng (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H04N21/23406H04L65/4084H04L65/80H04L67/02H04L67/2847H04N21/238H04N21/2402H04N21/433H04N21/632H04N21/654H04N21/845H04L43/0894
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,271,072
App. No.
15/934,473
Granted
Apr 23, 2019
Kind
B2
Abstract

The present disclosure discloses a video preloading method and apparatus. The method includes: obtaining a playing request for playing a first video in a first application client; detecting a data transmission speed of a network of the first application client when playing the first video; adjusting, according to the detected data transmission speed, a preloading length of the first video in the first application client; and preloading, in the first application client, video frames of the first video based on the preloading length of the first video.

Claims (57)

1. A video preloading method, comprising:

obtaining a playing request for playing a first video in a first application client;

detecting a data transmission speed of a network of the first application client when playing the first video, wherein the data transmission speed comprises a downloading speed at which the first application client downloads the first video from one or more second application client;

detecting the downloading speed at which the first application client downloads the first video from the one or more second application client;

determining, according to the detected downloading speed at which the first application client downloads the first video from the one or more second application client, a preloading length of the first video, comprising:

determining whether a video length of video data in the first video already downloaded by the first application client from the one or more second application client in a preset duration reaches a preset proportion of the preloading length; and

if the video length of the video data reaches the preset proportion in the preset duration, waiting until the first application client completes downloading the preloading length of the first video from the one or more second application client; or

if the video length of the video data does not reach the preset proportion,

determining to download the preloading length of the first video from a server;

adjusting, according to the detected data transmission speed, the preloading length of the first video in the first application client; and

preloading, in the first application client, video frames of the first video based on the preloading length of the first video.

2. The method according to claim 1 , wherein the adjusting, according to the detected data transmission speed, a preloading length of the first video comprises:

increasing the preloading length of the first video, wherein the increased preloading length of the first video corresponds to the data transmission speed; or

decreasing the preloading length of the first video, wherein the decreased preloading length of the first video corresponds to the data transmission speed.

3. The method according to claim 1 , wherein the preloading, in the first application client, video frames of the first video comprise:

preloading, in the first application client, the video frames that are located after a current playing location and that have the preloading length.

4. The method according to claim 1 , wherein after the detecting a data transmission speed of a network of the first application client, the method further comprises:

when the first application client starts to play the first video, preloading the first video by a first duration in the first application client; and

after the first application client plays the first video for a second duration, adjusting the first duration to a third duration corresponding to the preloading length, wherein the second duration is less than the first duration, and the first duration is less than the third duration.

5. A video preloading apparatus, comprising:

a memory;

a processor coupled to the memory, wherein the processor is configured for:

obtaining a playing request for playing a first video in a first application client;

detecting a data transmission speed of a network of the first application client when playing the first video, wherein the data transmission speed comprises a downloading speed at which the first application client downloads the first video from one or more second application client;

detecting the downloading speed at which the first application client downloads the first video from the one or more second application client;

determining, according to the detected downloading speed at which the first application client downloads the first video from the one or more second application client, a preloading length of the first video, comprising:

determining whether a video length of video data in the first video already downloaded by the first application client from the one or more second application client in a preset duration reaches a preset proportion of the preloading length; and

if the video length of the video data reaches the preset proportion in the preset duration, waiting until the first application client completes downloading the preloading length of the first video from the one or more second application client; or

if the video length of the video data does not reach the preset proportion, determining to download the preloading length of the first video from a server;

adjusting, according to the detected data transmission speed, a preloading length of the first video in the first application client; and

preloading, in the first application client, video frames of the first video based on the preloading length of the first video.

6. The apparatus according to claim 5 , wherein the adjusting, according to the detected data transmission speed, a preloading length of the first video comprises:

increasing the preloading length of the first video, wherein the increased preloading length of the first video corresponds to the data transmission speed; or

decreasing the preloading length of the first video, wherein the decreased preloading length of the first video corresponds to the data transmission speed.

7. The apparatus according to claim 5 , wherein the preloading, in the first application client, video frames of the first video comprises:

preloading, in the first application client, the video frames that are located after a current playing location and that have the preloading length.

8. The apparatus according to claim 5 , wherein after the detecting a data transmission speed of a network of the first application client, the processor is further configured for:

when the first application client starts to play the first video, preloading the first video by a first duration in the first application client; and

after the first application client plays the first video for a second duration, adjusting the first duration to a third duration corresponding to the preloading length, wherein the second duration is less than the first duration, and the first duration is less than the third duration.

9. A non-transitory computer readable storage medium storing a program instruction for, when being executed by a processor, implementing a video preloading method, the method comprising:

obtaining a playing request for playing a first video in a first application client;

detecting a data transmission speed of a network of the first application client when playing the first video, wherein the data transmission speed comprises a downloading speed at which the first application client downloads the first video from one or more second application client;

detecting the downloading speed at which the first application client downloads the first video from the one or more second application client;

determining, according to the detected downloading speed at which the first application client downloads the first video from the one or more second application client, a preloading length of the first video, comprising:

determining whether a video length of video data in the first video already downloaded by the first application client from the one or more second application client in a preset duration reaches a preset proportion of the preloading length; and

if the video length of the video data reaches the preset proportion in the preset duration, waiting until the first application client completes downloading the preloading length of the first video from the one or more second application client; or

if the video length of the video data does not reach the preset proportion, determining to download the preloading length of the first video from a server;

adjusting, according to the detected data transmission speed, a preloading length of the first video in the first application client; and

preloading, in the first application client, video frames of the first video based on the preloading length of the first video.

10. The storage medium according to claim 9 , wherein the adjusting, according to the detected data transmission speed, a preloading length of the first video comprises:

increasing the preloading length of the first video, wherein the increased preloading length of the first video corresponds to the data transmission speed; or

decreasing the preloading length of the first video, wherein the decreased preloading length of the first video corresponds to the data transmission speed.

11. The storage medium according to claim 9 , wherein the preloading, in the first application client, video frames of the first video comprises:

preloading, in the first application client, the video frames that are located after a current playing location and that have the preloading length.

12. The storage medium according to claim 9 , wherein after the detecting a data transmission speed of a network of the first application client, the method further comprises:

when the first application client starts to play the first video, preloading the first video by a first duration in the first application client; and

after the first application client plays the first video for a second duration, adjusting the first duration to a third duration corresponding to the preloading length, wherein the second duration is less than the first duration, and the first duration is less than the third duration.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 23, 2018
From: YAN, HUALIANG; ZHU, ZIRONG; CHEN, RONGKE; FENG, TAO
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 045333/0073 →
Priority Claims (1)
CN 2016 1 0059414 · Jan 28, 2016 · national
Continuity (2)
Continuation PCTCN2017072217 · Jan 23, 2017
Related Publication 20180213268A1 · Jul 26, 2018