# US 2021/0289017 A1 · Clock compensation for streaming media systems

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

- Number: US 2021/0289017 A1
- Document ID: US20210289017A1
- Status: Published application
- Kind: A1
- Application number: 16/819,816
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Prashant Nandakumar; Zhenheng Li; Roger N. Pantos; Gregory R. Chapman
- Web page: https://patentgrep.com/patent/US20210289017A1

## CPC

- H04L 65/1059: End-user terminal functionalities specially adapted for real-time communication
- H04L 65/764: {at the destination (reformatting of additional data in video clients H04N21/4355)}
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- H04L 65/61: for supporting one-way streaming services, e.g. Internet radio
- H04L 65/612: for unicast
- H04L 65/65: Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/303: Terminal profiles
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In one embodiment, systems, methods and non-transitory machine readable media detect differences between the rate of production, by a server, of media segments identified in an HTTP compliant playlist and the rate of consumption, by a client device, of the media segments in streaming media content. These differences, once detected, can be used to adjust a playback rate at the client to reduce the difference between the server rate and the client rate. This detection can be used in low latency streaming media contexts in which the client device is playing back content that is live, such as a live sports event happening during the playback by the client device. The adjustment of the client's playback rate can avoid running out of buffered media segments (when the client's rate is much faster than the server's rate) and can avoid increasing latency at the client device and overloading a buffer with too many media segments (when the client's rate is much slower than the server's rate).

## Claims

### Claim 1

A non-transitory machine readable medium storing executable program instructions which when executed by a data processing system cause the data processing system to perform a method, the method comprising:
determining a set of one or more differences between a server rate and a client rate, wherein the server rate represents a rate at which a server device is producing media segments identified in a set of one or more playlists used to present streaming media content at a client device, and the client rate represents a rate at which the client device is consuming the produced media segments; and
adjusting, at the client device, the client rate based on the set of one or more differences, the client rate adjusted to reduce future differences between the server rate and the client rate, and the adjusted client rate changing the playback of the streaming media content at the client device.

### Claim 2 (depends on 1)

The medium as claim 1 wherein the client device determines the set of one or more differences using (1) a first set of timestamps applied by the server device to one or more media segments identified in the set of one or more playlists, the client device receiving the first set of timestamps in the set of one or more playlists when the set of one or more playlists are received; and (2) a second set of timestamps applied by the client device to the set of one or more playlists.

### Claim 3 (depends on 2)

The medium as in claim 2 wherein the server device uses a server real time clock to apply the first set of timestamps to the one or more media segments and the client device uses a client real time clock to apply the second set of timestamps to the set of one or more playlists.

### Claim 4 (depends on 3)

The medium as in claim 3 wherein if the client rate is slower than the server rate, the client rate of playback of the streaming media content at the client device is adjusted by increasing the client rate to attempt to converge the client rate to the server rate; and wherein if client rate is faster than the server rate, the client rate is adjusted by decreasing the client rate to attempt to converge the client rate to the server rate.

### Claim 5 (depends on 3)

The medium as in claim 3 wherein the client device requests and receives the set of one or more playlists in a hypertext transfer protocol (HTTP) compliant manner, and wherein the set of one or more playlists is a plurality of playlists, each of which includes a plurality of uniform resource identifiers (URIs) that identify media segments that can be retrieved by the client device using the URIs in the HTTP compliant manner and the plurality of URIs indicating an order of playback of the identified media segments to present the streaming media content at the client device.

### Claim 6 (depends on 5)

The medium as in claim 5 wherein each playlist in the set of one or more playlists is an update playlist that contains URIs for only the most recent media segments in the streaming media content.

### Claim 7 (depends on 6)

The medium as in claim 6 wherein each playlist in the set of one or more playlists contains a server timestamp associated with a URI for a media segment, the server timestamp applied by the server device before the playlist is completed by the server device, and wherein each playlist in the set of one or more playlists is timestamped at the time of receipt by the client device.

### Claim 8 (depends on 6)

The medium as in claim 6, wherein the method further comprises:
performing, at the client device, a regression analysis on a set of pairs of timestamps, a pair in the set of pairs formed by (1) a first timestamp from the first set of timestamps, the first timestamp contained in a first update playlist in the set of one or more playlists, and (2) a second timestamp from the second set of timestamps, the second timestamp associated with the first update playlist by the client device; and wherein the regression analysis attempts to derive a slope of a curve or line fitted to the set of pairs of timestamps and wherein the slope represents the difference between the server rate and the client rate.

### Claim 9 (depends on 8)

The medium as in claim 8, wherein the method further comprises:
determining, at the client device, whether the regression analysis has converged to a solution for the difference between the server rate and the client rate; and wherein the adjusting of the client rate is performed in response to determining that the regression analysis has converged to the solution.

### Claim 10

A non-transitory machine readable medium storing executable program instructions which when executed by a data processing system cause the data processing system to perform a method, the method comprising:
determining a set of one or more differences between a server rate and a client rate, wherein the server rate represents a rate at which a server device is producing media segments identified in a set of one or more playlists used to present streaming media content at a client device, and the client rate represents a rate at which the client device is consuming the produced media segments; and
adjusting, at the client device, the client rate based on the set of one or more differences, the client rate adjusted to reduce future differences between the server rate and the client rate, and the adjusted client rate changing the playback of the streaming media content at the client device; and
wherein the client device determines the set of one or more differences by:
determining a first available duration time from duration data in a first playlist;
determining a second available duration time from duration data in a second playlist;
calculating a first difference between the first and the second available duration times to derive a measure of the difference between the server rate and the client rate.

### Claim 11

A method comprising:
determining a set of one or more differences between a server rate and a client rate, wherein the server rate represents a rate at which a server device is producing media segments identified in a set of one or more playlists used to present streaming media content at a client device, and the client rate represents a rate at which the client device is consuming the produced media segments; and
adjusting, at the client device, the client rate based on the set of one or more differences, the client rate adjusted to reduce future differences between the server rate and the client rate, and the adjusted client rate changing the playback of the streaming media content at the client device.

### Claim 12 (depends on 11)

The method as claim 11 wherein the client device determines the set of one or more differences using (1) a first set of timestamps applied by the server device to one or more media segments identified in the set of one or more playlists, the client device receiving the first set of timestamps in the set of one or more playlists when the set of one or more playlists are received; and (2) a second set of timestamps applied by the client device to the set of one or more playlists.

### Claim 13 (depends on 12)

The method as in claim 12 wherein the server device uses a server real time clock to apply the first set of timestamps to the one or more media segments and the client device uses a client real time clock to apply the second set of timestamps to the set of one or more playlists.

### Claim 14 (depends on 13)

The method as in claim 13 wherein if the client rate is slower than the server rate, the client rate of playback of the streaming media content at the client device is adjusted by increasing the client rate to attempt to converge the client rate to the server rate; and wherein if the client rate is faster than the server rate, the client rate is adjusted by decreasing the client rate to attempt to converge the client rate to the server rate.

### Claim 15 (depends on 13)

The method as in claim 13 wherein the client device requests and receives the set of one or more playlists in a hypertext transfer protocol (HTTP) complaint manner, and wherein the set of one or more playlists is a plurality of playlists, each of which includes a plurality of uniform resource identifiers (URIs) that identify media segments that can be retrieved by the client device using the URIs in the HTTP compliant manner and the plurality of URIs indicating an order of playback of the identified media segments to present the streaming media content at the client device.

### Claim 16 (depends on 15)

The method as in claim 15 wherein each playlist in the set of one or more playlists is an update playlist that contains URIs for only the most recent media segments in the streaming media content.

### Claim 17 (depends on 16)

The method as in claim 16 wherein each playlist in the set of one or more playlists contains a server timestamp associated with a URI for a media segment, the server timestamp applied by the server device before the playlist is completed by the server device, and wherein each playlist in the set of one or more playlists is timestamped at the time of receipt by the client device.

### Claim 18 (depends on 16)

The method as in claim 16, wherein the method further comprises:
performing, at the client device, a regression analysis on a set of pairs of timestamps, a pair in the set of pairs formed by (1) a first timestamp from the first set of timestamps, the first timestamp contained in a first update playlist in the set of one or more playlists, and (2) a second timestamp from the second set of timestamps, the second timestamp associated with the first update playlist by the client device; and wherein the regression analysis attempts to derive a slope of a curve or line fitted to the set of pairs of timestamps and wherein the slope represents the difference between the server rate and the client rate.

### Claim 19 (depends on 18)

The method as in claim 18, wherein the method further comprises:
determining, at the client device, whether the regression analysis has converged to a solution for the difference between the server rate and the client rate; and wherein the adjusting of the client rate is performed in response to determining that the regression analysis has converged to the solution.

### Claim 20

A method comprising:
determining a set of one or more differences between a server rate and a client rate, wherein the server rate represents a rate at which a server device is producing media segments identified in a set of one or more playlists used to present streaming media content at a client device, and the client rate represents a rate at which the client device is consuming the produced media segments; and
adjusting, at the client device, the client rate based on the set of one or more differences, the client rate adjusted to reduce future differences between the server rate and the client rate, and the adjusted client rate changing the playback of the streaming media content at the client device; and
wherein the client device determines the set of one or more differences by:
determining a first available duration time from duration data in a first playlist;
determining a second available duration time from duration data in a second playlist;
calculating a first difference between the first and the second available duration times to derive a measure of the difference between the server rate and the client rate.

### Claim 21 (depends on 1)

The medium as in claim 1, wherein the method further comprises:
performing, at the client device, a regression analysis on a set of pairs of timestamps, a pair in the set of pairs formed by (1) a first timestamp from the first set of timestamps, the first timestamp contained in a first update playlist in the set of one or more playlists, and (2) a second timestamp from the second set of timestamps, the second timestamp associated with the first update playlist by the client device; and wherein the regression analysis attempts to derive a slope of a curve or line fitted to the set of pairs of timestamps and wherein the slope represents the difference between the server rate and the client rate.
