# US 2025/0097524 A1 · Live stream processing method, terminal device and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0097524 A1
- Document ID: US20250097524A1
- Status: Published application
- Kind: A1
- Application number: 18/830,112
- Filed: 2024-09-10
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Donghui ZHANG
- Web page: https://patentgrep.com/patent/US20250097524A1

## CPC

- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N 21/2187: Live feed
- H04N 21/2393: {involving handling client requests (scheduling or organising the servicing of application requests H04L67/60)}
- H04N 21/2402: {Monitoring of the downstream path of the transmission network, e.g. bandwidth available (traffic monitoring in data switching networks H04L43/00; monitoring data switching networks utilization H04L43/0876)}
- H04N 21/44209: {Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network (arrangements for maintenance or administration in data switching networks involving bandwidth and capacity management H04L41/0896)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure provides a live stream processing method and apparatus, a terminal device, and a storage medium, and the method includes: acquiring a network bandwidth and a round-trip time; acquiring a maximum buffer and a minimum buffer preset for a live stream when playing is started; determining a first buffer for the live stream during a playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer; and starting to play the live stream based on the first buffer.

## Claims

### Claim 1

A live stream processing method, comprising:
acquiring a network bandwidth and a round-trip time;
acquiring a maximum buffer and a minimum buffer preset for a live stream when playing is started;
determining a first buffer for the live stream during a playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer; and
starting to play the live stream based on the first buffer.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining the first buffer for the live stream during the playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer comprises:
determining a network quality level based on the network bandwidth and the round-trip time; and
determining the first buffer for the live stream during the playing starting stage based on the network quality level, the maximum buffer, and the minimum buffer.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining the network quality level based on the network bandwidth and the round-trip time comprises:
in response to the network bandwidth being less than or equal to a first preset bandwidth and the round-trip time being greater than or equal to a first preset duration, determining the network quality level as a first level;
in response to the network bandwidth being less than or equal to a second preset bandwidth and greater than the first preset bandwidth, and the round-trip time being greater than or equal to a second preset duration and less than the first preset duration, determining the network quality level as a second level;
in response to the network bandwidth being less than or equal to a third preset bandwidth and greater than the second preset bandwidth, and the round-trip time being greater than or equal to a third preset duration and less than the second preset duration, determining the network quality level as a third level; and
in response to the network bandwidth being greater than the third preset bandwidth and the round-trip time being less than the third preset duration, determining the network quality level as a fourth level,
wherein the network quality level is directly proportional to network status.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the determining the first buffer for the live stream during the playing starting stage based on the network quality level, the maximum buffer, and the minimum buffer comprises:
acquiring live stream information of the live stream, wherein the live stream information comprises information regarding whether the live stream is a first live stream and information regarding whether a playing retrying request is made to the live stream;
calculating a second buffer based on the network quality level, the maximum buffer, and the minimum buffer; and
determining the first buffer based on the live stream information and the second buffer.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining the first buffer based on the live stream information and the second buffer comprises:
in response to the live stream information indicating that the live stream is the first live stream and no playing retrying request is made to the live stream, acquiring a first stutter count and a first playing retrying request count of a user watching a live stream during a historical period, and determining the first buffer based on the first stutter count, the first playing retrying request count, and the second buffer;
in response to the live stream information indicating that the live stream is the first live stream and the playing retrying request is made to the live stream, acquiring a second stutter count and a second playing retrying request count of the user watching the live stream, and determining the first buffer based on the second stutter count, the second playing retrying request count, and the second buffer;
in response to the live stream information indicating that the live stream is not the first live stream and no playing retrying request is made to the live stream, acquiring a third stutter count and a third playing retrying request count of a previous live stream, and determining the first buffer based on the third stutter count, the third playing retrying request count, and the second buffer; and
in response to the live stream information indicating that the live stream is not the first live stream and the playing retrying request is made to the live stream, acquiring a fourth stutter count and a fourth playing retrying request count of a previous live stream and the live stream, and determining the first buffer based on the fourth stutter count, the fourth playing retrying request count, and the second buffer.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the determining the first buffer based on the first stutter count, the first playing retrying request count, and the second buffer comprises:
calculating a third buffer based on the first stutter count and the first playing retrying request count; and
adding the third buffer to the second buffer to obtain the first buffer.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the determining the first buffer based on the third stutter count, the third playing retrying request count, and the second buffer comprises:
calculating a fourth buffer based on the third stutter count and the third playing retrying request count;
acquiring a duration between the end of the previous live stream and a current time;
determining a weight based on the duration between the end of the previous live stream and the current time; and
multiplying the fourth buffer by the weight to obtain a fifth buffer, and adding the fifth buffer to the second buffer to obtain the first buffer.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 9 (depends on 2)

The method according to claim 2, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 10 (depends on 3)

The method according to claim 3, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 11 (depends on 4)

The method according to claim 4, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 12 (depends on 5)

The method according to claim 5, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 13 (depends on 6)

The method according to claim 6, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 14 (depends on 7)

The method according to claim 7, wherein the starting to play the live stream based on the first buffer comprises:
acquiring a current buffer of the live stream;
in response to the current buffer of the live stream being greater than or equal to the first buffer, starting to play the live stream; and
in response to the current buffer of the live stream being less than the first buffer, waiting until the current buffer of the live stream is equal to the first buffer, or waiting for a fourth preset duration, before starting to play the live stream.

### Claim 15

A terminal device, comprising a processor and a memory,
wherein the memory is configured to store computer-executable instructions; and
the processor is configured to execute the computer-executable instructions stored in the memory to implement a live stream processing method, and the live stream processing method comprises:
acquiring a network bandwidth and a round-trip time;
acquiring a maximum buffer and a minimum buffer preset for a live stream when playing is started;
determining a first buffer for the live stream during a playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer; and
starting to play the live stream based on the first buffer.

### Claim 16 (depends on 15)

The terminal device according to claim 15, wherein the determining the first buffer for the live stream during the playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer comprises:
determining a network quality level based on the network bandwidth and the round-trip time; and
determining the first buffer for the live stream during the playing starting stage based on the network quality level, the maximum buffer, and the minimum buffer.

### Claim 17 (depends on 16)

The terminal device according to claim 16, wherein the determining the network quality level based on the network bandwidth and the round-trip time comprises:
in response to the network bandwidth being less than or equal to a first preset bandwidth and the round-trip time being greater than or equal to a first preset duration, determining the network quality level as a first level;
in response to the network bandwidth being less than or equal to a second preset bandwidth and greater than the first preset bandwidth, and the round-trip time being greater than or equal to a second preset duration and less than the first preset duration, determining the network quality level as a second level;
in response to the network bandwidth being less than or equal to a third preset bandwidth and greater than the second preset bandwidth, and the round-trip time being greater than or equal to a third preset duration and less than the second preset duration, determining the network quality level as a third level; and
in response to the network bandwidth being greater than the third preset bandwidth and the round-trip time being less than the third preset duration, determining the network quality level as a fourth level,
wherein the network quality level is directly proportional to network status.

### Claim 18 (depends on 16)

The terminal device according to claim 16, wherein the determining the first buffer for the live stream during the playing starting stage based on the network quality level, the maximum buffer, and the minimum buffer comprises:
acquiring live stream information of the live stream, wherein the live stream information comprises information regarding whether the live stream is a first live stream and information regarding whether a playing retrying request is made to the live stream;
calculating a second buffer based on the network quality level, the maximum buffer, and the minimum buffer; and
determining the first buffer based on the live stream information and the second buffer.

### Claim 19 (depends on 18)

The terminal device according to claim 18, wherein the determining the first buffer based on the live stream information and the second buffer comprises:
in response to the live stream information indicating that the live stream is the first live stream and no playing retrying request is made to the live stream, acquiring a first stutter count and a first playing retrying request count of a user watching a live stream during a historical period, and determining the first buffer based on the first stutter count, the first playing retrying request count, and the second buffer;
in response to the live stream information indicating that the live stream is the first live stream and the playing retrying request is made to the live stream, acquiring a second stutter count and a second playing retrying request count of the user watching the live stream, and determining the first buffer based on the second stutter count, the second playing retrying request count, and the second buffer;
in response to the live stream information indicating that the live stream is not the first live stream and no playing retrying request is made to the live stream, acquiring a third stutter count and a third playing retrying request count of a previous live stream, and determining the first buffer based on the third stutter count, the third playing retrying request count, and the second buffer; and
in response to the live stream information indicating that the live stream is not the first live stream and the playing retrying request is made to the live stream, acquiring a fourth stutter count and a fourth playing retrying request count of a previous live stream and the live stream, and determining the first buffer based on the fourth stutter count, the fourth playing retrying request count, and the second buffer.

### Claim 20

A non-transitory computer-readable storage medium, storing computer-executable instructions, wherein a processor, when executing the computer-executable instructions, implements a live stream processing method, and the live stream processing method comprises:
acquiring a network bandwidth and a round-trip time;
acquiring a maximum buffer and a minimum buffer preset for a live stream when playing is started;
determining a first buffer for the live stream during a playing starting stage based on the network bandwidth, the round-trip time, the maximum buffer, and the minimum buffer; and
starting to play the live stream based on the first buffer.
