# US 2025/0063214 A1 · Method and apparatus for determining live streaming delay, computer 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/0063214 A1
- Document ID: US20250063214A1
- Status: Published application
- Kind: A1
- Application number: 18/807,601
- Filed: 2024-08-16
- Published: 2025-02-20
- Earliest claimed: 2023-08-17
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Donghui ZHANG
- Web page: https://patentgrep.com/patent/US20250063214A1

## CPC

- H04N 21/2187: Live feed
- H04N 21/242: Synchronisation processes, e.g. processing of PCR [Programme Clock References] {(arrangements for synchronising broadcast or distribution via plural systems in broadcast distribution systems H04H20/18)}
- H04N 21/4305: {Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets (arrangements for synchronising receiver with transmitter by comparing receiver clock with transmitter clock H04L7/0012; arrangements for synchronising receiver with transmitter wherein the receiver takes measures against momentary loss of synchronisation H04L7/0083)}
- H04N 21/8547: involving timestamps for synchronizing content
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure relates to the field of computer technology, and discloses a method and apparatus for determining a live streaming delay, a computer device, and a storage medium. The method provided by the present disclosure includes: sending a first clock synchronization request to a first server end node to obtain a first calibrated time difference, where the first server end node is used to process live streaming data; calibrating local time based on the first calibrated time difference to obtain calibrated time; obtaining a live streaming bitstream generated by a peer end from the first server end node to obtain a timestamp of the live streaming bitstream and a local current timestamp; and determining a live streaming delay based on the current timestamp and the timestamp of the live streaming bitstream.

## Claims

### Claim 1

A method for determining a live streaming delay, comprising:
sending a first clock synchronization request to a first server end node to obtain a first calibrated time difference, wherein the first server end node is used to process live streaming data;
calibrating local time based on the first calibrated time difference to obtain calibrated time;
obtaining a live streaming bitstream generated by a peer end from the first server end node to obtain a timestamp of the live streaming bitstream and a local current timestamp, wherein the timestamp is determined after clock synchronization is performed between the peer end and a second server end node, the second server end node and the first server end node are clock-synchronized, and the live streaming bitstream is transmitted from the second server end node to the first server end node; and
determining a live streaming delay based on the local current timestamp and the timestamp of the live streaming bitstream.

### Claim 2 (depends on 1)

The method according to claim 1, wherein sending a first clock synchronization request to a first server end node to obtain a first calibrated time difference comprises:
sending a first clock synchronization request to the first server end node, wherein the first clock synchronization request comprises a first timestamp for sending the first clock synchronization request;
receiving a response message fed back by the first server end node, and determining a fourth timestamp for receiving the response message, wherein the response message carries a second timestamp when the first clock synchronization request arrives the first server end node and a third timestamp when the first server end node sends the response message; and
determining the first calibrated time difference based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.

### Claim 3 (depends on 2)

The method according to claim 2, wherein sending a first clock synchronization request to the first server end node comprises:
obtaining a start instruction for a live streaming application to start the live streaming application; and
triggering local sending of the first clock synchronization request to the first server end node after the live streaming application is started.

### Claim 4 (depends on 1)

The method according to claim 1, wherein obtaining a live streaming bitstream generated by a peer end from the first server end node to obtain a timestamp of the live streaming bitstream and a local current timestamp comprises:
obtaining a live streaming bitstream generated by a peer end from the first server end node, and determining the local current timestamp;
parsing the live streaming bitstream to determine a supplemental enhancement information frame in the live streaming bitstream; and
extracting a timestamp of the live streaming bitstream from the supplemental enhancement information frame.

### Claim 5 (depends on 1)

The method according to claim 1, wherein calibrating local time based on the first calibrated time difference to obtain calibrated time comprises:
determining a sum of the first calibrated time difference and the local time as the calibrated time.

### Claim 6 (depends on 1)

The method according to claim 1, wherein determining a live streaming delay based on the local current timestamp and the timestamp of the live streaming bitstream comprises:
determining the live streaming delay based on a difference between the local current timestamp and the timestamp of the live streaming bitstream.

### Claim 7

A method for determining a live streaming delay, comprising:
sending a second clock synchronization request to a second server end node to obtain a second calibrated time difference, wherein the second server end node is used to process live streaming data;
calibrating local time based on the second calibrated time difference to obtain calibrated time;
obtaining live streaming data to be sent, and a timestamp corresponding to the live streaming data to be sent;
generating a live streaming bitstream based on the timestamp corresponding to the live streaming data to be sent and the live streaming data to be sent; and
sending the live streaming bitstream to the second server end node to arrive a peer end, to determine the live streaming delay at the peer end, wherein the second server end node is used to transmit the live streaming bitstream to a first server end node, the first server end node is used to transmit the live streaming bitstream to the peer end, the second server end node and the first server end node are clock-synchronized, and the peer end is used to determine the live streaming delay based on time synchronized with the first server end node and the timestamp in the live streaming bitstream.

### Claim 8 (depends on 7)

The method according to claim 7, wherein generating a live streaming bitstream based on the timestamp corresponding to the live streaming data to be sent and the live streaming data to be sent comprises:
determining a supplemental enhancement information frame in the live streaming data to be sent; and
writing a timestamp corresponding to the live streaming data to be sent into the supplemental enhancement information frame to generate the live streaming bitstream.

### Claim 9

A computer device, comprising:
a memory and a processor, wherein the memory and the processor are in mutual communication connection, the memory stores computer instructions, and the computer instructions, when executed by the processor, cause the computer device to:
send a first clock synchronization request to a first server end node to obtain a first calibrated time difference, wherein the first server end node is used to process live streaming data;
calibrate local time based on the first calibrated time difference to obtain calibrated time;
obtain a live streaming bitstream generated by a peer end from the first server end node to obtain a timestamp of the live streaming bitstream and a local current timestamp, wherein the timestamp is determined after clock synchronization is performed between the peer end and a second server end node, the second server end node and the first server end node are clock-synchronized, and the live streaming bitstream is transmitted from the second server end node to the first server end node; and
determine a live streaming delay based on the local current timestamp and the timestamp of the live streaming bitstream.

### Claim 10 (depends on 9)

The computer device according to claim 9, wherein the computer instructions causing the computer device to send a first clock synchronization request to a first server end node to obtain a first calibrated time difference further cause the computer device to:
send a first clock synchronization request to the first server end node, wherein the first clock synchronization request comprises a first timestamp for sending the first clock synchronization request;
receive a response message fed back by the first server end node, and determine a fourth timestamp for receiving the response message, wherein the response message carries a second timestamp when the first clock synchronization request arrives the first server end node and a third timestamp when the first server end node sends the response message; and
determine the first calibrated time difference based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.

### Claim 11 (depends on 10)

The computer device according to claim 10, wherein the computer instructions causing the computer device to send a first clock synchronization request to the first server end node further cause the computer device to:
obtain a start instruction for a live streaming application to start the live streaming application; and
trigger local sending of the first clock synchronization request to the first server end node after the live streaming application is started.

### Claim 12 (depends on 9)

The computer device according to claim 9, wherein the computer instructions causing the computer device to obtain a live streaming bitstream generated by a peer end from the first server end node to obtain a timestamp of the live streaming bitstream and a local current timestamp further cause the computer device to:
obtain a live streaming bitstream generated by a peer end from the first server end node, and determine the local current timestamp;
parse the live streaming bitstream to determine a supplemental enhancement information frame in the live streaming bitstream; and
extract a timestamp of the live streaming bitstream from the supplemental enhancement information frame.

### Claim 13 (depends on 9)

The computer device according to claim 9, wherein the computer instructions causing the computer device to calibrate local time based on the first calibrated time difference to obtain calibrated time further cause the computer device to:
determine a sum of the first calibrated time difference and the local time as the calibrated time.

### Claim 14 (depends on 9)

The computer device according to claim 9, wherein the computer instructions causing the computer device to determine a live streaming delay based on the local current timestamp and the timestamp of the live streaming bitstream further cause the computer device to:
determine the live streaming delay based on a difference between the local current timestamp and the timestamp of the live streaming bitstream.
