Skip to content

Commit

Permalink
Merge pull request #1362 from dunkpi/dunkpi_setLimitFPSOnFly
Browse files Browse the repository at this point in the history
Fix setLimitFPSOnFly method
  • Loading branch information
pedroSG94 authored Dec 6, 2023
2 parents 36c2f3e + 69fbce6 commit a3bfc64
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/src/main/java/com/pedro/library/base/Camera1Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,9 @@ public void setVideoBitrateOnFly(int bitrate) {
*/
public void setLimitFPSOnFly(int fps) {
videoEncoder.setFps(fps);
if (glInterface != null) {
glInterface.setFps(fps);
}
}

/**
Expand Down
3 changes: 3 additions & 0 deletions library/src/main/java/com/pedro/library/base/Camera2Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ public void setVideoBitrateOnFly(int bitrate) {
*/
public void setLimitFPSOnFly(int fps) {
videoEncoder.setFps(fps);
if (glInterface != null) {
glInterface.setFps(fps);
}
}

/**
Expand Down
3 changes: 3 additions & 0 deletions library/src/main/java/com/pedro/library/base/DisplayBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ public void setVideoBitrateOnFly(int bitrate) {
*/
public void setLimitFPSOnFly(int fps) {
videoEncoder.setFps(fps);
if (glInterface != null) {
glInterface.setFps(fps);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ public void setVideoBitrateOnFly(int bitrate) {
*/
public void setLimitFPSOnFly(int fps) {
videoEncoder.setFps(fps);
if (glInterface != null) {
glInterface.setFps(fps);
}
}

/**
Expand Down

0 comments on commit a3bfc64

Please sign in to comment.