Skip to content

Commit

Permalink
fix(FEC-12848): set abr.capLevelOnFPSDrop to default false. (#696)
Browse files Browse the repository at this point in the history
"capLevelOnFPSDrop": false
  • Loading branch information
giladna authored Jan 18, 2023
1 parent 181d4af commit f22b4c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var config = {
enabled: true,
fpsDroppedFramesInterval: 5000,
fpsDroppedMonitoringThreshold: 0.2,
capLevelOnFPSDrop: true,
capLevelOnFPSDrop: false,
capLevelToPlayerSize: false,
restrictions: {
minHeight: 0,
Expand Down Expand Up @@ -1584,7 +1584,7 @@ var config = {
> enabled: true,
> fpsDroppedFramesInterval: 5000,
> fpsDroppedMonitoringThreshold: 0.2,
> capLevelOnFPSDrop: true,
> capLevelOnFPSDrop: false,
> capLevelToPlayerSize: false,
> restrictions: {
> minHeight: 0,
Expand Down Expand Up @@ -1633,7 +1633,7 @@ var config = {
> >
> > ##### Type: `boolean`
> >
> > ##### Default: true
> > ##### Default: false
> >
> > ##### Description: If the player should cap the level when the fps exceeds the threshold.
> >
Expand Down
3 changes: 3 additions & 0 deletions src/engines/dropped-frames-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ class DroppedFramesWatcher extends FakeEventTarget {
if (this._getDroppedAndDecodedFrames()[0] === NOT_SUPPORTED) {
DroppedFramesWatcher._logger.debug('Dropped frame watcher is not supported');
} else if (this._config.capLevelOnFPSDrop) {
DroppedFramesWatcher._logger.debug('Initialized capLevelOnFPSDrop = true');
this._init();
} else {
DroppedFramesWatcher._logger.debug('Not Initialized');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/player-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DefaultConfig = {
enabled: true,
fpsDroppedFramesInterval: 5000,
fpsDroppedMonitoringThreshold: 0.2,
capLevelOnFPSDrop: true,
capLevelOnFPSDrop: false,
capLevelToPlayerSize: false,
restrictions: {
minHeight: 0,
Expand Down

0 comments on commit f22b4c7

Please sign in to comment.