Skip to content

Commit

Permalink
fix(lib): fix zoom ratio max value
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 2, 2024
1 parent abca7aa commit 0dbd09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class ApiVideoLiveStream {
}
set(newValue) {
guard let device = rtmpStream.videoCapture(for: 0)?.device, newValue >= 1,
newValue < device.activeFormat.videoMaxZoomFactor else
newValue <= device.activeFormat.videoMaxZoomFactor else
{
return
}
Expand Down

0 comments on commit 0dbd09c

Please sign in to comment.