Skip to content

Commit c3a7498

Browse files
Merge pull request #856 from THEOplayer/maintenance/update-abr-docs
Update ABR docs
2 parents d53a24a + 7017c88 commit c3a7498

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

doc/abr.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ on the chosen strategy, as well as various parameters of the playback buffer.
3333
/>
3434
```
3535

36-
| Property | Description | Supported Platforms |
37-
|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|
38-
| `strategy` | The adaptive bitrate strategy. Possible values are `'performance'`, `'quality'`, `'bandwidth'` or a `ABRStrategyConfiguration` object. Default is **bandwidth** | Android & Web |
39-
| `targetBuffer` | The amount that the player should buffer ahead of the current playback position, in seconds. Default is **20**s. | Android & Web |
40-
| `bufferLookbackWindow` | The amount of data which the player should keep in its buffer before the current playback position, in seconds. Default is **30**s. | Web |
41-
| `maxBufferLength` | The maximum length of the player's buffer, in seconds. | Web | |
42-
| `preferredMaximumResolution` | A preferred upper limit on the resolution of the video to be downloaded. `(0,0)` (the default) removes the cap. | Android & iOS |
36+
| Property | Description | Supported Platforms |
37+
|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|
38+
| `strategy` | The adaptive bitrate strategy. Possible values are `'performance'`, `'quality'`, `'bandwidth'` or a `ABRStrategyConfiguration` object. Default is **bandwidth**. | Android/Web/iOS* |
39+
| `targetBuffer` | The amount that the player should buffer ahead of the current playback position, in seconds. Default is **20**s. | Android/Web/iOS |
40+
| `bufferLookbackWindow` | The amount of data which the player should keep in its buffer before the current playback position, in seconds. Default is **30**s. | Web |
41+
| `maxBufferLength` | The maximum length of the player's buffer, in seconds. | Web |
42+
| `preferredPeakBitRate` | A preferred upper limit on the bandwidth of the video to be downloaded, in bits per second. Defaults to `0`, which indicates there is no limit. | iOS |
43+
| `preferredMaximumResolution` | A preferred upper limit on the resolution of the video to be downloaded. `(0,0)` (the default) removes the cap. | Android & iOS |
44+
45+
\* On native iOS/tvOS, `strategy` will only work with THEOlive and Millicast streams, and will
46+
not have any effect for other types of streams.
4347

4448
When specifying the strategy, apart from the values `'performance'`, `'quality'`, `'bandwidth'`,
4549
an `ABRStrategyConfiguration`

src/api/abr/ABRConfiguration.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export interface ABRConfiguration {
7070
*
7171
* @defaultValue `'bandwidth'`
7272
*
73-
* @platform web,android
73+
* @remarks
74+
* <br/> - On native iOS/tvOS, this configuration will only work with THEOlive and Millicast streams and will not have any effect for other types of streams.
75+
* <br/> - On native iOS/tvOS with Millicast streams, this only applies once during connection establishment; make sure to set it before you start playback.
7476
*/
7577
strategy?: ABRStrategy;
7678

@@ -80,8 +82,6 @@ export interface ABRConfiguration {
8082
* @defaultValue `20`
8183
*
8284
* @remarks
83-
* <br/> - Before v4.3.0: This duration has a maximum of 60 seconds.
84-
* <br/> - After v4.3.0: This duration has no maximum.
8585
* <br/> - The player might reduce or ignore the configured amount because of device or performance constraints.
8686
*/
8787
targetBuffer?: number;
@@ -119,6 +119,9 @@ export interface ABRConfiguration {
119119
* If network bandwidth consumption cannot be lowered to meet the preferredPeakBitRate, it will be reduced as much as possible while continuing to play the item.
120120
*
121121
* @platform ios
122+
*
123+
* @remarks
124+
* <br/> - On native iOS/tvOS with Millicast streams, this only applies once during connection establishment; make sure to set it before you start playback.
122125
*/
123126
preferredPeakBitRate?: number;
124127

0 commit comments

Comments
 (0)