Skip to content

Commit

Permalink
docs: abr configuration (#447)
Browse files Browse the repository at this point in the history
`abr` configuration and some fixes
  • Loading branch information
yairans authored Sep 13, 2020
1 parent 2225a86 commit 14329ba
Showing 1 changed file with 97 additions and 20 deletions.
117 changes: 97 additions & 20 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,16 @@ var config = {
]
},
abr: {
enabled: true,
fpsDroppedFramesInterval: 5000,
fpsDroppedMonitoringThreshold: 0.2,
capLevelOnFPSDrop: true
capLevelOnFPSDrop: true,
capLevelToPlayerSize: false,
defaultBandwidthEstimate: 500e3,
restrictions: {
minBitrate: 0,
maxBitrate: Infinity
}
},
drm: {
keySystem: ''
Expand Down Expand Up @@ -128,7 +135,7 @@ var config = {
> ### config.sources
>
> ##### Type: `PKSourcesConfig`
> ##### Type: `PKSourcesConfigObject`
>
> ```js
> {
Expand Down Expand Up @@ -453,7 +460,7 @@ var config = {
> ### config.playback
>
> ##### Type: `PKPlaybackConfig`
> ##### Type: `PKPlaybackConfigObject`
>
> ```js
> {
Expand Down Expand Up @@ -1235,53 +1242,125 @@ var config = {
>
> ```js
> {
> fpsDroppedMonitoringThreshold: number,
> fpsDroppedFramesInterval: number,
> capLevelOnFPSDrop: boolean
> enabled: boolean,
> fpsDroppedFramesInterval: number,
> fpsDroppedMonitoringThreshold: number,
> capLevelOnFPSDrop: boolean,
> capLevelToPlayerSize: boolean,
> defaultBandwidthEstimate: number,
> restrictions: {
> minBitrate: number,
> maxBitrate: number
> }
> }
> ```
>
> ##### Default:
>
> ```js
> {
> fpsDroppedMonitoringThreshold: 0.2,
> fpsDroppedFramesInterval: 5000,
> capLevelOnFPSDrop: true
> enabled: true,
> fpsDroppedFramesInterval: 5000,
> fpsDroppedMonitoringThreshold: 0.2,
> capLevelOnFPSDrop: true,
> capLevelToPlayerSize: false,
> defaultBandwidthEstimate: 500e3,
> restrictions: {
> minBitrate: 0,
> maxBitrate: Infinity
> }
> }
> ```
>
> ##### Description: Specifies flags to control / restrict the abr mechanism.
> ##### Description: Specifies flags to control / restrict the ABR mechanism.
>
> > ### config.abr.enabled
> >
> > ##### Type: `boolean`
> >
> > ##### Default: `true`
> >
> > ##### Description: Whether the ABR mechanism is enabled.
> >
> > ##
> >
> > ### config.abr.fpsDroppedFramesInterval
> >
> > ##### Type: `number`
> >
> > ##### Default: `5000`
> >
> > ##### Description: Interval time in milliseconds to check if too many frames are dropped
>
> ##
>
> >
> > ##
> >
> > ### config.abr.fpsDroppedMonitoringThreshold
> >
> > ##### Type: `number`
> >
> > ##### Default: `0.2`
> >
> > ##### Description: The allowed frames dropped threshold.
>
> ##
>
> >
> > ##
> >
> > ### config.abr.capLevelOnFPSDrop
> >
> > ##### Type: `boolean`
> >
> > ##### Default: true
> >
> > ##### Description: If the player should cap the level when the fps exceeds the threshold.
>
> ##
> >
> > ##
> >
> > ### config.abr.capLevelToPlayerSize
> >
> > ##### Type: `boolean`
> >
> > ##### Default: false
> >
> > ##### Description: If the player should cap the level to the player dimensions (width and height).
> >
> > ##
> >
> > ### config.abr.defaultBandwidthEstimate
> >
> > ##### Type: `number`
> >
> > ##### Default: 500000
> >
> > ##### Description: The default bandwidth estimate to use if there is not enough data, in bit/sec.
> >
> > ##
> >
> > ### config.abr.restrictions
> >
> > ##### Type: `object`
> >
> > ##### Default: `{}`
> >
> > ##### Description: The restrictions to apply to ABR decisions.
> >
> > ##
> >
> > > ### config.abr.restrictions.minBitrate
> > >
> > > ##### Type: `number`
> > >
> > > ##### Default: `0`
> > >
> > > ##### Description: The minimum bitrate in bit/sec.
> > >
> > > ##
> > >
> > > ### config.abr.restrictions.maxBitrate
> > >
> > > ##### Type: `number`
> > >
> > > ##### Default: `Infinity`
> > >
> > > ##### Description: The maximum bitrate in bit/sec.
##
Expand All @@ -1304,8 +1383,6 @@ var config = {
> > ##### Default: ``
> >
> > ##### Description: A specific DRM key system to use.
>
> ##
##
Expand Down

0 comments on commit 14329ba

Please sign in to comment.